/* ============================================================
   THE BAYEUX TAPESTRY · UK 2026
   Shared stylesheet
   Fonts: Cinzel (headings), EB Garamond (body)
   ============================================================ */

/* --- Reset & base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --parchment:    #F0E7D3;
  --cream2:       #ECE2CB;
  --tan:          #E7DABD;
  --body-brown:   #4A3C2C;
  --near-black:   #241C14;
  --rust:         #AD4129;
  --rust-dark:    #8F3320;
  --gold:         #C5902C;
  --gold-bright:  #E0A93A;
  --sage:         #69784F;
  --teal-top:     #2C585D;
  --teal-mid:     #1B3B3F;
  --teal-nav:     #122A2D;
  --wine:         #6F2A26;
  --stone:        #CABFA9;
}

html { scroll-behavior: smooth; }

body {
  background: var(--parchment);
  color: var(--body-brown);
  font-family: 'EB Garamond', Georgia, 'Times New Roman', serif;
  font-weight: 400;
  font-size: 1.125rem;
  line-height: 1.65;
}

a { color: var(--rust); text-decoration: none; }
a:hover { color: var(--rust-dark); }
strong { font-weight: 600; }
em { font-style: italic; }
img { max-width: 100%; height: auto; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 1.25rem; }

/* --- Sticky nav --- */
.site-nav {
  position: sticky; top: 0; z-index: 1000;
  background: var(--teal-nav);
  border-bottom: 2px solid var(--gold);
}
.site-nav .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 60px;
}
.site-nav__logo {
  font-family: 'Cinzel', serif; font-weight: 700; font-size: 1rem;
  color: #fff; letter-spacing: .08em; white-space: nowrap;
}
.site-nav__logo span { color: var(--gold-bright); }
.site-nav__links { display: flex; gap: 1.8rem; list-style: none; }
.site-nav__links a {
  font-family: 'Cinzel', serif; font-weight: 600; font-size: .82rem;
  color: var(--stone); letter-spacing: .04em; text-transform: uppercase;
  padding: .25rem 0; border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
}
.site-nav__links a:hover,
.site-nav__links a.active {
  color: var(--gold-bright); border-bottom-color: var(--gold);
}

/* Articles dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown > a::after { content: ''; }
.nav-dropdown__menu {
  display: none; position: absolute; top: 100%; right: 0;
  background: var(--teal-nav); border: 1px solid var(--gold);
  list-style: none; padding: .5rem 0; min-width: 240px; z-index: 1001;
  box-shadow: 0 4px 12px rgba(0,0,0,.3);
}
.nav-dropdown.open .nav-dropdown__menu { display: block; }
.nav-dropdown__menu li { padding: 0; }
.nav-dropdown__menu a {
  display: block; padding: .55rem 1.2rem; font-size: .78rem;
  border-bottom: none !important; white-space: nowrap;
}
.nav-dropdown__menu a:hover { background: rgba(197,144,44,.15); }

/* mobile hamburger */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: .5rem; }
.nav-toggle span {
  display: block; width: 24px; height: 2px; background: var(--stone);
  margin: 5px 0; transition: .3s;
}

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .site-nav__links {
    display: none; flex-direction: column; gap: 0;
    position: absolute; top: 60px; left: 0; right: 0;
    background: var(--teal-nav); border-bottom: 2px solid var(--gold);
    padding: 1rem 1.25rem;
  }
  .site-nav__links.open { display: flex; }
  .site-nav__links a { padding: .6rem 0; }
  .nav-dropdown__menu { position: static; border: none; box-shadow: none; padding-left: 1rem; }
}

/* --- Hero sections --- */
.hero {
  background: linear-gradient(180deg, var(--teal-top) 0%, var(--teal-mid) 50%, var(--teal-nav) 100%);
  padding: 4rem 1.25rem; text-align: center;
}
.hero h1 {
  font-family: 'Cinzel', serif; font-weight: 900;
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: #EDE6D4; line-height: 1; margin-bottom: 1rem;
  letter-spacing: -0.02em;
}
.hero .subtitle {
  font-family: 'EB Garamond', serif; font-style: italic;
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: var(--stone); opacity: .85; max-width: 700px; margin: 0 auto;
}
.hero .eyebrow {
  font-family: 'Cinzel', serif; font-weight: 600; font-size: .85rem;
  color: var(--gold-bright); letter-spacing: .12em; text-transform: uppercase;
  margin-bottom: .8rem;
}

/* --- Tapestry band dividers --- */
.tapestry-band {
  height: 2px;
  background: var(--gold);
}

/* --- Content sections --- */
.section { padding: 3.5rem 1.25rem; }
.section--cream { background: var(--parchment); }
.section--cream2 { background: var(--cream2); }
.section .wrap { max-width: 1180px; margin: 0 auto; }

.section h2 {
  font-family: 'Cinzel', serif; font-weight: 700;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  color: var(--rust); margin-bottom: 1.5rem;
}
.section h3 {
  font-family: 'Cinzel', serif; font-weight: 700;
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: var(--rust-dark); margin-bottom: 1rem;
}
.section p { margin-bottom: 1.25rem; }
.section p:last-child { margin-bottom: 0; }

/* --- Featured image panel (home) --- */
.featured-image {
  background: var(--cream2); border: 1px solid var(--tan);
  padding: 1.5rem; margin: 2rem auto; max-width: 900px;
  text-align: center;
}
.featured-image img { width: 100%; margin-bottom: .75rem; }
.featured-image figcaption {
  font-style: italic; font-size: .95rem; color: var(--body-brown); opacity: .8;
}

/* --- Stats row (home) --- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; margin: 2.5rem 0; }
.stat { text-align: center; }
.stat__number {
  font-family: 'Cinzel', serif; font-weight: 900;
  font-size: 2.4rem; color: var(--rust); margin-bottom: .3rem;
}
.stat__label { font-size: .95rem; }

/* --- Countdown --- */
.countdown-wrap { display: flex; justify-content: center; gap: 1.2rem; margin: 1.5rem 0; flex-wrap: wrap; }
.countdown-box {
  border: 2px solid var(--gold); width: 90px; padding: .8rem .5rem;
  text-align: center;
}
.countdown-box__num {
  font-family: 'Cinzel', serif; font-weight: 900;
  font-size: 2rem; color: var(--gold-bright); line-height: 1;
}
.countdown-box__label {
  font-family: 'Cinzel', serif; font-weight: 600;
  font-size: .65rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--stone); margin-top: .3rem;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  font-family: 'Cinzel', serif; font-weight: 600; font-size: .85rem;
  letter-spacing: .06em; text-transform: uppercase;
  padding: .85rem 2rem; cursor: pointer; transition: .2s;
  text-decoration: none;
}
.btn--gold {
  background: var(--gold); color: #fff; border: 2px solid var(--gold);
}
.btn--gold:hover { background: var(--gold-bright); border-color: var(--gold-bright); color: #fff; }
.btn--outline {
  background: transparent; color: var(--stone); border: 2px solid var(--stone);
}
.btn--outline:hover { border-color: var(--gold-bright); color: var(--gold-bright); }
.btn-row { display: flex; gap: 1.2rem; justify-content: center; flex-wrap: wrap; margin-top: 1.5rem; }

/* --- Feature cards (home) --- */
.feature-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; margin-top: 2rem; }
.feature-card {
  background: var(--cream2); border: 1px solid var(--tan); padding: 1.8rem;
}
.feature-card h3 { font-size: 1.1rem; margin-bottom: .8rem; }
.feature-card p { font-size: 1rem; margin-bottom: 1rem; }
.feature-card a {
  font-family: 'Cinzel', serif; font-weight: 600; font-size: .78rem;
  color: var(--rust); letter-spacing: .04em; text-transform: uppercase;
}
.feature-card a:hover { color: var(--rust-dark); }

/* --- FAQ accordion --- */
.faq-item { border-bottom: 1px solid var(--tan); }
.faq-q {
  display: block; width: 100%; text-align: left; background: none; border: none;
  font-family: 'Cinzel', serif; font-weight: 600; font-size: 1rem;
  color: var(--body-brown); padding: 1.1rem 0; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
}
.faq-q::after { content: '+'; font-size: 1.3rem; color: var(--gold); transition: .2s; }
.faq-item.open .faq-q::after { content: '−'; }
.faq-a { display: none; padding: 0 0 1.2rem; font-size: 1rem; }
.faq-item.open .faq-a { display: block; }

/* --- Road to 2066 banner --- */
.banner-2066 {
  background: var(--teal-mid); padding: 3rem 1.25rem; text-align: center;
}
.banner-2066 .big-year {
  font-family: 'Cinzel', serif; font-weight: 900; font-size: 3.5rem;
  color: var(--gold-bright); margin-bottom: .5rem;
}
.banner-2066 h2 { color: var(--stone); margin-bottom: 1rem; }
.banner-2066 p { color: var(--stone); opacity: .85; max-width: 800px; margin: 0 auto; }

/* --- Scene-by-scene page --- */
.timeline-nav {
  display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center;
  margin: 1.5rem 0 2.5rem;
}
.timeline-nav a {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border: 1px solid var(--tan);
  font-family: 'Cinzel', serif; font-weight: 600; font-size: .8rem;
  color: var(--body-brown); background: var(--cream2);
  transition: .2s;
}
.timeline-nav a:hover { background: var(--gold); color: #fff; border-color: var(--gold); }

.part-heading {
  font-family: 'Cinzel', serif; font-weight: 700;
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  color: var(--rust); margin: 2.5rem 0 1.25rem;
  padding-bottom: .4rem; border-bottom: 3px solid var(--gold);
}

.scene {
  border: 1px solid var(--tan); background: var(--cream2);
  margin: 0 0 2rem; box-shadow: 0 1px 4px rgba(36,28,20,.08);
  scroll-margin-top: 5rem;
}
.scene-title {
  font-family: 'Cinzel', serif; font-weight: 700; font-size: 1.05rem;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--gold-bright); background: var(--teal-nav);
  border-bottom: 3px solid var(--gold); margin: 0; padding: .65rem 1rem;
}

.scene-image-top {
  width: 100%;
  height: 220px;
  overflow: hidden;
  border-bottom: 1px solid var(--tan);
  background: var(--cream2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.scene-image-top img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  cursor: pointer;
}

/* Scrollable image panels for extra-wide scenes */
.scene-image-scroll { overflow-x: auto; overflow-y: hidden; display: flex; align-items: center; }
.scene-image-scroll img { max-width: none; height: 100%; width: auto; }
/* Placeholder when no image yet */
.scene-image-inner {
  width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .4rem;
}
.scene-image-label {
  font-family: 'Cinzel', serif; font-weight: 600; font-size: .85rem;
  letter-spacing: .06em; text-transform: uppercase; color: var(--rust-dark);
}
.scene-image-hint { font-style: italic; font-size: .9rem; color: var(--sage); }

/* Body: translations grid left, description right */
.scene-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.scene-translations {
  display: grid;
  grid-template-columns: auto 1fr;
  border-right: 1px solid var(--tan);
}
.scene-label {
  font-family: 'Cinzel', serif; font-weight: 600; font-size: .78rem;
  letter-spacing: .04em; color: var(--rust-dark); text-transform: uppercase;
  padding: .85rem 1rem;
  border-right: 1px solid var(--tan);
  border-bottom: 1px solid var(--tan);
  display: flex; align-items: flex-start;
}
.scene-value {
  padding: .85rem 1.1rem;
  border-bottom: 1px solid var(--tan);
}
.scene-value p { margin: 0; }
.scene-translations .scene-label:nth-last-child(2),
.scene-translations .scene-value:last-child {
  border-bottom: none;
}

/* Description column */
.scene-desc-col { display: flex; flex-direction: column; }
.scene-desc-label {
  font-family: 'Cinzel', serif; font-weight: 600; font-size: .78rem;
  letter-spacing: .04em; color: var(--rust-dark); text-transform: uppercase;
  padding: .85rem 1rem;
  border-bottom: 1px solid var(--tan);
}
.scene-desc-text { padding: .85rem 1.1rem; flex: 1; }
.scene-desc-text p { margin: 0 0 .7rem; }
.scene-desc-text p:last-child { margin-bottom: 0; }

/* Footer: sources + back on one line */
.scene-footer {
  border-top: 1px solid var(--tan);
  display: flex; justify-content: flex-end; align-items: center;
  gap: 1.5rem; padding: .6rem 1rem;
}
.scene-sources {
  display: flex; align-items: center; gap: .4rem;
  font-family: 'Cinzel', serif; font-weight: 600; font-size: .78rem;
  letter-spacing: .04em; color: var(--rust-dark); text-transform: uppercase;
}
.scene-sources span {
  text-transform: none; font-family: 'EB Garamond', serif; font-size: 1rem;
}
.scene-back a {
  display: flex; align-items: center; gap: .35rem;
  font-family: 'Cinzel', serif; font-weight: 600; font-size: .75rem;
  letter-spacing: .04em; text-transform: uppercase;
  color: var(--rust-dark); text-decoration: none; transition: color .2s;
}
.scene-back a:hover { color: var(--rust); }

.src-link {
  color: var(--rust); font-weight: 600; text-decoration: none;
  border-bottom: 1px dotted var(--gold);
}
.src-link:hover { color: var(--rust-dark); border-bottom-style: solid; }

@media (max-width: 900px) {
  .scene-body { grid-template-columns: 1fr; }
  .scene-translations { border-right: none; border-bottom: 1px solid var(--tan); }
}
@media (max-width: 640px) {
  .scene-translations { grid-template-columns: 1fr; }
  .scene-label { border-right: none; }
}

/* --- Bibliography --- */
.biblio-entry {
  background: var(--cream2); border: 1px solid var(--tan);
  padding: .85rem 1.1rem; margin: 0 0 .9rem; scroll-margin-top: 5rem;
}
.biblio-entry:target { border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold-bright); }

/* --- Visiting page --- */
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; margin: 2rem 0; }
@media (max-width: 768px) { .info-grid { grid-template-columns: 1fr; } }

.price-table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; }
.price-table th, .price-table td {
  text-align: left; padding: .75rem 1rem; border-bottom: 1px solid var(--tan);
}
.price-table th {
  font-family: 'Cinzel', serif; font-weight: 600; font-size: .85rem;
  color: var(--rust-dark); background: var(--cream2);
}
.price-table td:last-child { text-align: right; font-weight: 600; }

.transport-list { list-style: none; padding: 0; }
.transport-list li { padding: .6rem 0; border-bottom: 1px solid var(--tan); }
.transport-list li strong { color: var(--rust-dark); }

/* --- Footer --- */
.site-footer { background: var(--near-black); color: var(--stone); padding: 1.5rem 1.25rem 1rem; }
.site-footer a {
  font-family: 'Cinzel', serif; font-weight: 600; font-size: .75rem;
  letter-spacing: .04em; text-transform: uppercase;
  color: var(--stone); text-decoration: none; transition: color .2s;
}
.site-footer a:hover { color: var(--gold-bright); }
.footer-disclaimer {
  padding-top: .8rem; font-size: .8rem; opacity: .7; text-align: center;
}


/* ── Books & Gifts nav item ── */
.nav-books .nav-dropdown__menu a {
  display: block;
  padding: 0.6rem 1rem;
  color: #CABFA9;
  text-decoration: none;
  font-size: 0.82rem;
  transition: background 0.15s, color 0.15s;
}

.nav-books .nav-dropdown__menu a:hover {
  background: #1e4a50;
  color: #E0A93A;
}

.nav-books .nav-dropdown__menu a {
  display: block;
  padding: 0.6rem 1rem;
  color: #CABFA9;
  text-decoration: none;
  font-size: 0.82rem;
  transition: background 0.15s, color 0.15s;
}

.nav-books .nav-dropdown__menu a:hover {
  background: #1e4a50;
  color: #E0A93A;
}



/* ── Homepage promotional banner ── */
.homepage-banner{
  background:linear-gradient(135deg,#122A2D 0%,#1e4a50 50%,#1B3B3F 100%) !important;
  border-bottom:3px solid #AD4129 !important;
  padding:2.5rem 2rem !important;
  display:flex !important;
  flex-direction:column !important;
  align-items:center !important;
  justify-content:center !important;
  text-align:center !important;
  position:relative !important;
  gap:1rem !important;
}
.banner-left{display:flex !important;flex-direction:column !important;align-items:center !important;gap:0.75rem !important;width:100% !important;}
.banner-icon{font-size:2.5rem !important;line-height:1 !important;}
.banner-text-group{text-align:center !important;}
.banner-eyebrow{font-family:'Cinzel',serif !important;font-size:1.05rem !important;font-weight:600 !important;letter-spacing:0.15em !important;text-transform:uppercase !important;color:#E0A93A !important;display:block !important;margin-bottom:0.5rem !important;}
.banner-headline{font-family:'Cinzel',serif !important;font-size:clamp(1.6rem,3vw,2.4rem) !important;font-weight:700 !important;color:#E7DABD !important;display:block !important;line-height:1.2 !important;margin-bottom:0.5rem !important;}
.banner-sub{font-family:'EB Garamond',Georgia,serif !important;font-size:1.15rem !important;font-style:italic !important;color:#CABFA9 !important;display:block !important;}
.banner-btn{display:inline-flex !important;align-items:center !important;background-color:#AD4129 !important;color:#fff !important;font-family:'Cinzel',serif !important;font-size:0.82rem !important;font-weight:600 !important;letter-spacing:0.1em !important;text-transform:uppercase !important;text-decoration:none !important;padding:0.85rem 2rem !important;border-radius:2px !important;margin-top:0.75rem !important;box-shadow:0 2px 10px rgba(0,0,0,0.3) !important;}
.banner-btn:hover{background-color:#8F3320 !important;}
.banner-dismiss{position:absolute !important;top:0.75rem !important;right:1rem !important;color:rgba(202,191,169,0.5) !important;font-size:1.2rem !important;cursor:pointer !important;background:none !important;border:none !important;}

.nav-dropdown.active > a {
  color: #E0A93A !important;
  border-bottom-width: 2px !important;
  border-bottom-style: solid !important;
  border-bottom-color: #E0A93A !important;
}

.faq-a { display: none; }
.faq-item.open .faq-a { display: block; }
.faq-q { cursor: pointer; }

#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.site-nav {
  position: static !important;
}

body {
  padding-top: 60px;
}