/* =========================================================
   EOS — CNB Bordeaux 60 · Charter a Vela
   Design tokens
   ========================================================= */
:root{
  --navy-950: #0B1E27;
  --navy-800: #123647;
  --navy-700: #1C4C61;
  --teak-500: #BD8752;
  --teak-600: #A66F3E;
  --teak-700: #8A5A31;
  --foam-100: #EEF1EF;
  --paper-050: #FAFAF7;
  --ink-900: #12181B;
  --ink-600: #47545A;
  --line: rgba(18,24,27,.12);
  --line-light: rgba(255,255,255,.22);
  --shadow: 0 18px 40px rgba(11,30,39,.16);
  --radius: 2px;
  --maxw: 1180px;
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Work Sans", "Helvetica Neue", Arial, sans-serif;
}

*,*::before,*::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  font-family: var(--sans);
  color: var(--ink-900);
  background: var(--paper-050);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img{ max-width:100%; display:block; }
a{ color: inherit; text-decoration: none; }
h1,h2,h3,h4{
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.12;
  margin: 0 0 .5em;
  letter-spacing: -0.01em;
}
p{ margin: 0 0 1em; max-width: 62ch; }
.container{
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}
section{ padding: 88px 0; }
@media (max-width: 720px){
  section{ padding: 56px 0; }
}

/* Focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible{
  outline: 2px solid var(--teak-500);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce){
  *{ animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* =========================================================
   Header / Navigation
   ========================================================= */
.site-header{
  position: fixed;
  top:0; left:0; right:0;
  z-index: 100;
  padding: 22px 0;
  transition: background-color .35s ease, padding .35s ease, box-shadow .35s ease;
}
.site-header .container{
  display:flex;
  align-items:center;
  justify-content:space-between;
}
.site-header.is-solid{
  background: var(--navy-950);
  padding: 14px 0;
  box-shadow: 0 6px 24px rgba(0,0,0,.18);
}
.brand{
  display:flex;
  align-items: baseline;
  gap:10px;
  color:#fff;
}
.brand-name{
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: .01em;
}
.brand-tag{
  font-size: .66rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--teak-500);
  font-weight: 600;
  white-space: nowrap;
}
.main-nav{
  display:flex;
  align-items:center;
  gap: 34px;
}
.main-nav a{
  color: #EAF1F1;
  font-size: .95rem;
  font-weight: 500;
  padding: 6px 2px;
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, opacity .2s ease;
}
.main-nav a:hover{ border-color: var(--teak-500); }
.main-nav a.active{ border-color: var(--teak-500); color: #fff; }
.nav-cta{
  background: var(--teak-500);
  color: var(--navy-950) !important;
  padding: 9px 18px !important;
  border-radius: var(--radius);
  font-weight: 600 !important;
  border-bottom: none !important;
}
.nav-cta:hover{ background: #CE9A66; }

.nav-toggle{
  display:none;
  width: 40px; height: 40px;
  border: none;
  background: transparent;
  cursor: pointer;
  position: relative;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after{
  content:"";
  position:absolute; left:8px; right:8px;
  height:2px; background:#fff;
  transition: transform .25s ease, opacity .25s ease, top .25s ease;
}
.nav-toggle span{ top:19px; }
.nav-toggle span::before{ top:-8px; }
.nav-toggle span::after{ top:8px; }
.nav-toggle.is-open span{ background: transparent; }
.nav-toggle.is-open span::before{ top:0; transform: rotate(45deg); background:#fff; }
.nav-toggle.is-open span::after{ top:0; transform: rotate(-45deg); background:#fff; }

@media (max-width: 860px){
  .main-nav{
    position: fixed;
    top:0; right:0; bottom:0; left:auto;
    width: min(320px, 82vw);
    height: 100vh;
    background: var(--navy-950);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 26px;
    padding: 40px 40px;
    transform: translateX(100%);
    transition: transform .35s ease;
  }
  .main-nav.is-open{ transform: translateX(0); }
  .main-nav a{ font-size: 1.15rem; }
  .nav-toggle{ display:block; }
}

/* =========================================================
   Hero
   ========================================================= */
.hero{
  position: relative;
  min-height: 100vh;
  display:flex;
  align-items:flex-end;
  color:#fff;
  background-size: cover;
  background-position: center;
  isolation: isolate;
}
.hero::after{
  content:"";
  position:absolute; top:0; right:0; bottom:0; left:0;
  z-index:-1;
  background: linear-gradient(180deg, rgba(11,30,39,.15) 0%, rgba(11,30,39,.15) 40%, rgba(11,30,39,.86) 100%);
}
.hero-inner{
  padding: 0 0 76px;
  max-width: 760px;
}
.hero .eyebrow{
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--teak-500);
  font-weight: 600;
  margin-bottom: 14px;
}
.hero h1{
  font-size: clamp(3rem, 8vw, 5.6rem);
  margin-bottom: .18em;
  color: #fff;
}
.hero p.lede{
  font-size: 1.2rem;
  color: #E7EEEC;
  max-width: 46ch;
  margin-bottom: 1.8em;
}
.hero-actions{ display:flex; gap:16px; flex-wrap:wrap; }

.hero.hero-short{ min-height: 62vh; }
.hero.hero-short .hero-inner{ padding-bottom: 58px; }
.hero.hero-short h1{ font-size: clamp(2.4rem, 6vw, 3.8rem); }

/* =========================================================
   Buttons
   ========================================================= */
.btn{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 13px 26px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: .95rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn-primary{ background: var(--teak-500); color: var(--navy-950); }
.btn-primary:hover{ background: #CE9A66; }
.btn-outline{ border-color: rgba(255,255,255,.55); color:#fff; }
.btn-outline:hover{ border-color: #fff; background: rgba(255,255,255,.08); }
.btn-dark{ background: var(--navy-950); color:#fff; }
.btn-dark:hover{ background: var(--navy-800); }

/* =========================================================
   Section headings
   ========================================================= */
.section-head{ max-width: 640px; margin-bottom: 44px; }
.section-head h2{ font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
.section-head p{ color: var(--ink-600); font-size: 1.06rem; }
.on-dark .section-head p{ color: #C9D6D6; }

.bg-foam{ background: var(--foam-100); }
.bg-navy{ background: var(--navy-950); color:#fff; }
.bg-navy h2, .bg-navy h3{ color:#fff; }
.bg-navy p{ color: #C9D6D6; }

/* =========================================================
   Stat plates (brass plaques)
   ========================================================= */
.plates{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.plate{
  background: var(--navy-950);
  color: #fff;
  border: 1px solid rgba(189,135,82,.4);
  padding: 30px 26px;
  position: relative;
}
.plate::before{
  content:"";
  position:absolute; top:8px; left:8px; right:8px; bottom:8px;
  border: 1px solid rgba(255,255,255,.14);
  pointer-events:none;
}
.plate .num{
  font-family: var(--serif);
  font-size: 2.5rem;
  color: var(--teak-500);
  display:block;
  margin-bottom: 6px;
}
.plate .label{
  font-size: .82rem;
  color: #C9D6D6;
  letter-spacing: .03em;
}
@media (max-width: 760px){
  .plates{ grid-template-columns: 1fr; }
}

/* =========================================================
   Two-column feature rows
   ========================================================= */
.feature-row{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items:center;
}
.feature-row.reverse .feature-media{ order:2; }
.feature-row.reverse .feature-text{ order:1; }
.feature-media{ position:relative; overflow:hidden; box-shadow: var(--shadow); }
.feature-media::before{ content:""; display:block; padding-top: 75%; } /* 4:3 ratio, works in all browsers */
.feature-media img{ position:absolute; top:0; right:0; bottom:0; left:0; width:100%; height:100%; object-fit:cover; box-shadow:none; }
.feature-text h2{ font-size: clamp(1.8rem,3vw,2.4rem); }
.feature-text p{ color: var(--ink-600); }
.feature-text .btn{ margin-top: 6px; }

@media (max-width: 860px){
  .feature-row, .feature-row.reverse{
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .feature-row.reverse .feature-media,
  .feature-row.reverse .feature-text{ order: initial; }
}

/* =========================================================
   Gallery grid + lightbox
   ========================================================= */
.gallery-teaser-grid{
  display:grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 130px;
  gap: 10px;
}
.gallery-teaser-grid a{ overflow:hidden; }
.gallery-teaser-grid img{ width:100%; height:100%; object-fit:cover; transition: transform .5s ease; }
.gallery-teaser-grid a:hover img{ transform: scale(1.06); }
.gt-1{ grid-column: span 3; grid-row: span 2; }
.gt-2{ grid-column: span 3; grid-row: span 2; }
.gt-3{ grid-column: span 2; }
.gt-4{ grid-column: span 2; }
.gt-5{ grid-column: span 2; }
@media (max-width: 760px){
  .gallery-teaser-grid{ grid-template-columns: repeat(2,1fr); grid-auto-rows: 150px;}
  .gt-1, .gt-2{ grid-column: span 2; grid-row: span 2; }
  .gt-3,.gt-4,.gt-5{ grid-column: span 1; grid-row: span 1; }
}

.tabs{ display:flex; gap: 10px; margin-bottom: 32px; }
.tab-btn{
  padding: 10px 22px;
  border: 1px solid var(--line);
  background: transparent;
  font-family: var(--sans);
  font-weight: 600;
  font-size: .92rem;
  cursor: pointer;
  color: var(--ink-900);
}
.tab-btn.is-active{ background: var(--navy-950); color:#fff; border-color: var(--navy-950); }

.full-gallery-grid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.full-gallery-grid figure{ margin:0; position:relative; overflow:hidden; cursor: zoom-in; background: var(--foam-100); }
.full-gallery-grid figure::before{ content:""; display:block; padding-top: 75%; }
.full-gallery-grid figure a{ position:absolute; top:0; right:0; bottom:0; left:0; display:block; }
.full-gallery-grid img{ position:absolute; top:0; right:0; bottom:0; left:0; width:100%; height:100%; object-fit:cover; transition: transform .4s ease; }
.full-gallery-grid figure:hover img{ transform: scale(1.05); }
.gallery-pane{ display:none; }
.gallery-pane.is-active{ display:block; }

@media (max-width: 860px){
  .full-gallery-grid{ grid-template-columns: repeat(3,1fr); }
}
@media (max-width: 560px){
  .full-gallery-grid{ grid-template-columns: repeat(2,1fr); gap: 8px; }
}

.lightbox{
  position: fixed; top:0; right:0; bottom:0; left:0; z-index: 300;
  background: rgba(11,20,25,.94);
  display:none;
  align-items:center;
  justify-content:center;
  padding: 24px;
}
.lightbox.is-open{ display:flex; }
.lightbox img{ max-width: 90vw; max-height: 84vh; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lightbox-close, .lightbox-prev, .lightbox-next{
  position:absolute;
  background: transparent;
  border: 1px solid rgba(255,255,255,.4);
  color:#fff;
  width: 46px; height:46px;
  cursor:pointer;
  font-size: 1.2rem;
  display:flex; align-items:center; justify-content:center;
}
.lightbox-close{ top:24px; right:24px; }
.lightbox-prev{ left:24px; top:50%; transform: translateY(-50%); }
.lightbox-next{ right:24px; top:50%; transform: translateY(-50%); }
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover{ background: rgba(255,255,255,.12); }
@media (max-width: 620px){
  .lightbox-prev, .lightbox-next{ width:38px; height:38px; }
}

/* =========================================================
   Tables (specs + listino)
   ========================================================= */
.table-wrap{ overflow-x:auto; margin-bottom: 24px; border: 1px solid var(--line); }
table{ width:100%; border-collapse: collapse; min-width: 560px; font-size: .96rem; }
table caption{ text-align:left; padding: 10px 16px; font-weight:600; background: var(--navy-950); color:#fff; }
th, td{ padding: 13px 16px; text-align:left; border-bottom: 1px solid var(--line); }
thead th{ background: var(--foam-100); font-family: var(--serif); font-weight:600; font-size: 1rem;}
tbody tr:last-child td{ border-bottom:none; }
tbody tr:hover{ background: rgba(189,135,82,.06); }
td.num, th.num{ text-align: right; font-variant-numeric: tabular-nums; }

.spec-block{ margin-bottom: 40px; }
.spec-block h3{ font-size: 1.15rem; margin-bottom: 14px; color: var(--navy-950); }
.spec-grid{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 40px;
}
.spec-grid dl{ margin:0; }
.spec-grid > div{
  display:flex; justify-content:space-between; gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: .96rem;
}
.spec-grid dt{ color: var(--ink-600); }
.spec-grid dd{ margin:0; font-weight:600; text-align:right; }
@media (max-width: 640px){ .spec-grid{ grid-template-columns: 1fr; } }

.two-col-list{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
@media (max-width: 700px){ .two-col-list{ grid-template-columns: 1fr; gap: 8px; } }

.check-list{ list-style:none; margin:0; padding:0; }
.check-list li{
  position:relative;
  padding: 9px 0 9px 30px;
  border-bottom: 1px solid var(--line);
  font-size: .98rem;
}
.check-list li:last-child{ border-bottom:none; }
.check-list li::before{
  content:"";
  position:absolute; left:0; top:15px;
  width: 14px; height: 8px;
  border-left: 2px solid var(--teak-600);
  border-bottom: 2px solid var(--teak-600);
  transform: rotate(-45deg);
}
.cross-list li::before{
  border:none;
  width: 14px; height:14px;
  top: 11px;
  transform: none;
  background:
    linear-gradient(45deg, transparent 45%, #9AA6A9 45%, #9AA6A9 55%, transparent 55%),
    linear-gradient(-45deg, transparent 45%, #9AA6A9 45%, #9AA6A9 55%, transparent 55%);
}
.cross-list li{ color: var(--ink-600); }

.reasons-grid{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 40px;
}
.reason{ border-top: 2px solid var(--teak-500); padding-top: 14px; }
.reason h4{ font-family: var(--sans); font-size: 1.02rem; margin-bottom: 6px; }
.reason p{ color: var(--ink-600); font-size: .95rem; margin:0; }
@media (max-width: 700px){ .reasons-grid{ grid-template-columns: 1fr; } }

.info-callout{
  border: 1px solid var(--line);
  padding: 26px 28px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 20px;
  flex-wrap:wrap;
  background: var(--foam-100);
}
.info-callout p{ margin:0; max-width: 48ch; }

/* =========================================================
   Contact page
   ========================================================= */
.contact-card{
  max-width: 640px;
  margin: -110px auto 0;
  background: #fff;
  box-shadow: var(--shadow);
  padding: 52px 44px;
  position: relative;
  z-index: 5;
  text-align:center;
}
.contact-card h1{ font-size: 2rem; }
.contact-card .email-btn{
  font-size: 1.15rem;
  padding: 16px 30px;
  margin-top: 18px;
}
.contact-note{ color: var(--ink-600); font-size: .92rem; margin-top: 22px; }
@media (max-width: 640px){
  .contact-card{ margin-top: -70px; padding: 38px 22px; }
}

/* =========================================================
   CTA band
   ========================================================= */
.cta-band{ text-align:center; }
.cta-band h2{ font-size: clamp(1.8rem,4vw,2.6rem); }
.cta-band .actions{ display:flex; gap:16px; justify-content:center; flex-wrap:wrap; margin-top: 8px; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer{
  background: var(--navy-950);
  color: #C9D6D6;
  padding: 60px 0 30px;
}
.footer-grid{
  display:grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.footer-grid h4{ color:#fff; font-family: var(--sans); font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 16px; }
.footer-grid p{ color:#B7C6C6; font-size: .95rem; }
.footer-grid ul{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:10px; }
.footer-grid a:hover{ color: var(--teak-500); }
.footer-bottom{
  display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap: 12px;
  padding-top: 22px; font-size: .84rem; color: #85999A;
}
.footer-brand{ display:flex; align-items:baseline; gap:8px; margin-bottom: 12px; }
.footer-brand .brand-name{ color:#fff; }
@media (max-width: 760px){
  .footer-grid{ grid-template-columns: 1fr; gap: 28px; }
}

/* Utility */
.text-center{ text-align:center; margin-left:auto; margin-right:auto; }
.mt-0{ margin-top:0; }
.skip-link{
  position:absolute; left:-9999px; top:auto;
  background:#fff; color:#000; padding: 10px 16px; z-index: 1000;
}
.skip-link:focus{ left: 16px; top: 16px; }
