/* =========================================================
   DLF — MAIN (AUTHORITATIVE)
   One header / one nav / one footer
   NAV: no ghost lines by default
        Montblanc glide ONLY on hover, then settles to solid line
        Current page = solid line only (no shimmer)
   Stable hamburger
   ========================================================= */

/* ---------- RESET ---------- */
*,
*::before,
*::after{ box-sizing:border-box; }

html, body{ margin:0; padding:0; }

/* ===== STOP WHITE BAR UNDER FOOTER (AUTHORITATIVE) ===== */
html{ background: var(--navy); }

body{
  min-height: 100vh;
  margin: 0;
  background: var(--cream);
}

/* media elements */
img{ max-width:100%; height:auto; display:block; }

button, input, select, textarea{ font:inherit; }

a{ color:inherit; text-decoration:none; }
a:hover{ text-decoration:none; }

/* ---------- TOKENS ---------- */
:root{
  --navy:#0F1E2B;
  --cream:#F7F1E3;
  --gold:#D1B77A;
  --ink:#0A0F14;

  --wrap:1200px;
  --gutter:24px;

  --serif:"Playfair Display", Georgia, "Times New Roman", serif;
  --sans:"Montserrat", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;

  --radius:14px;

  /* Header sizing */
  --logo-h:112px;
  --header-pad-y:12px;

  /* Underline feel (LOCKED) */
  --uline-h:3px;
}

/* ---------- BASE ---------- */
body{
  font-family:var(--sans);
  color:var(--ink);
  background:var(--cream);
  line-height:1.65;
}

.section{ padding:44px 0; }

/* ---------- HEADER / NAV ---------- */
.site-header{
  position:sticky;
  top:0;
  z-index:50;
  background:var(--navy);
  border-bottom:1px solid rgba(247,241,227,.10);
  overflow:visible;
}

.nav-inner{
  max-width:var(--wrap);
  margin:0 auto;
  padding:var(--header-pad-y) var(--gutter);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  position:relative;
  overflow:visible;
}

.logo-area a{
  display:inline-flex;
  align-items:center;
}

.logo-img{
  height:var(--logo-h);
  width:auto;
  max-width:none;
}

/* ---------- NAV ---------- */
.main-nav{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:0;
  flex-wrap:wrap;
}

.main-nav a{
  color:rgba(247,241,227,.90);
  font-weight:600;
  font-size:.86rem;
  letter-spacing:.14em;
  text-transform:uppercase;
  padding:12px 14px 20px; /* room for underline (LOCKED) */
  position:relative;
  opacity:.92;
  transition:color .25s ease, opacity .25s ease;
}

/* Soft separators (keep) */
.main-nav a + a::marker{ content:none; }
.main-nav a + a::before{
  content:"";
  position:absolute;
  left:0;
  top:52%;
  transform:translateY(-50%);
  width:1px;
  height:14px;
  background:rgba(247,241,227,.14);
}

/* =========================
   NAV UNDERLINE — MONTBLANC GLIDE (LOCKED)
   ========================= */
.main-nav a::after{
  content:"";
  position:absolute;
  left:8px;
  right:8px;
  bottom:2px;
  height:var(--uline-h);
  border-radius:999px;

  background-image:
    linear-gradient(90deg, rgba(209,183,122,.44), rgba(209,183,122,.44)),
    linear-gradient(
      90deg,
      rgba(209,183,122,0) 0%,
      rgba(209,183,122,.00) 28%,
      rgba(209,183,122,.58) 50%,
      rgba(209,183,122,.00) 72%,
      rgba(209,183,122,0) 100%
    );
  background-repeat:no-repeat;
  background-size:100% 100%, 240% 100%;
  background-position:0 0, 220% 0;

  box-shadow:0 0 14px rgba(209,183,122,.14);
  opacity:0;
  transition:opacity .22s ease, box-shadow .35s ease;
}

.main-nav a:hover{
  color:rgba(247,241,227,.96);
  opacity:1;
}
.main-nav a:hover::after{
  opacity:1;
  box-shadow:0 0 16px rgba(209,183,122,.18);
  animation:navGlide 2.9s cubic-bezier(.18,.85,.22,1) 1 forwards;
}

.main-nav a.current,
.main-nav a[aria-current="page"]{
  color:var(--gold);
  opacity:1;
}
.main-nav a.current::after,
.main-nav a[aria-current="page"]::after{
  opacity:1;
  background-position:0 0, 999% 0;
  animation:none;
  box-shadow:0 0 16px rgba(209,183,122,.14);
}

@keyframes navGlide{
  0%   { background-position:0 0, 220% 0; }
  100% { background-position:0 0, -220% 0; }
}

/* ---------- NAV TOGGLE (HAMBURGER) ---------- */
.nav-toggle{
  display:none; /* responsive.css enables on mobile */
  width:46px;
  height:42px;
  border:1px solid rgba(247,241,227,.26);
  background:transparent;
  border-radius:14px;
  cursor:pointer;
  padding:0;
  overflow:visible;
  align-items:center;
  justify-content:center;
}
.nav-toggle:focus{ outline:none; }

.nav-toggle .hamburger{
  display:block;
  position:relative;
  width:24px;
  height:2px;
  background:rgba(247,241,227,.98);
  border-radius:999px;
}
.nav-toggle .hamburger::before,
.nav-toggle .hamburger::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  height:2px;
  background:rgba(247,241,227,.98);
  border-radius:999px;
}
.nav-toggle .hamburger::before{ top:-7px; }
.nav-toggle .hamburger::after{ top:7px; }

/* ---------- HERO ---------- */
.page-hero{
  background:var(--navy);
  color:var(--cream);
  padding:44px 0 36px;
  position:relative;
}

.page-hero--slim{
  padding:28px 0 26px;
}

.page-hero-inner{
  max-width:var(--wrap);
  margin:0 auto;
  padding:0 var(--gutter);
}

/* =========================================
   GOLD DIVIDER — HEADER → HERO (LOCKED)
   ========================================= */
.page-hero::before{
  content:"";
  position:absolute;
  left:0;
  right:0;
  top:0;
  height:1px;
  pointer-events:none;
  opacity:.95;
  background:linear-gradient(
    90deg,
    rgba(209,183,122,0) 0%,
    rgba(209,183,122,.25) 18%,
    rgba(209,183,122,.85) 50%,
    rgba(209,183,122,.25) 82%,
    rgba(209,183,122,0) 100%
  );
}

/* =========================================
   GOLD DIVIDER — HERO → BODY (RESTORED)
   subtle glow, fades to edges
   ========================================= */
.page-hero::after{
  content:"";
  position:absolute;
  left:50%;
  transform:translateX(-50%);
  bottom:0;

  width:140px;
  height:1px;

  pointer-events:none;
  opacity:.95;

  background:linear-gradient(
    90deg,
    rgba(209,183,122,0) 0%,
    rgba(209,183,122,.18) 18%,
    rgba(209,183,122,.65) 50%,
    rgba(209,183,122,.18) 82%,
    rgba(209,183,122,0) 100%
  );

  box-shadow:0 0 14px rgba(209,183,122,.14);
}

.eyebrow{
  font-size:.72rem;
  letter-spacing:.22em;
  text-transform:uppercase;
  opacity:.72;
  margin:0 0 10px;
}

.page-hero h1{
  font-family:var(--serif);
  font-size:3.15rem;
  line-height:1.06;
  margin:0 0 12px;
}

.page-subline{
  margin:0;
  opacity:.90;
  max-width:76ch;
  font-size:1.03rem;
}

/* ---------- CONTENT ---------- */
.page-content{
  background:var(--cream);
  padding-top:30px;
  padding-bottom:56px;
}

/* =========================================================
   LEGACY PAGE — CONSOLIDATED (AUTHORITATIVE)
   Targets only body.legacy
   ========================================================= */

body.legacy{ background: var(--cream); }
body.legacy .legacy-body{ background: var(--cream); }

body.legacy .page-subline{
  max-width: 980px;
  margin: 0.75rem auto 0;
  opacity: 0.92;
  line-height: 1.55;
}

body.legacy .legacy-inner{
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(2.25rem, 4vw, 3.25rem) clamp(1.25rem, 3vw, 2.25rem);
}

body.legacy .legacy-prose{
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 18px;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  box-shadow: 0 10px 28px rgba(0,0,0,0.06);
}

body.legacy .legacy-prose p{
  margin: 0 0 1.15rem;
  line-height: 1.8;
  font-size: 1.05rem;
  color: rgba(0,0,0,0.80);
}

body.legacy .legacy-statement{
  margin: 1.6rem 0 1.35rem;
  padding: 1.1rem 1.15rem;
  border-left: 4px solid var(--gold);
  background: rgba(209,183,122,0.10);
  border-radius: 12px;
  font-size: 1.12rem;
  color: rgba(0,0,0,0.88);
}

body.legacy .legacy-close{
  margin-top: 1.4rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(0,0,0,0.10);
}

/* NIGEL ANCHOR PHOTO (LOCKED) */
body.legacy figure.legacy-anchor-photo{
  max-width: 760px;
  margin: 1.15rem auto 1.35rem;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.10);
  box-shadow: 0 10px 28px rgba(0,0,0,0.08);
  background: #fff;
}
body.legacy figure.legacy-anchor-photo img{
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 640px){
  body.legacy .legacy-prose p{ font-size: 1.02rem; }
  body.legacy .legacy-statement{ font-size: 1.06rem; }
  body.legacy figure.legacy-anchor-photo{ margin: 1rem 0 1.2rem; }
}

/* Legacy cards */
body.legacy .legacy-grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:18px;
  margin-top:2rem;
}

body.legacy .legacy-card{
  border:1px solid rgba(30,42,61,0.14);
  border-radius:var(--radius);
  background:rgba(255,255,255,0.14);
  box-shadow:0 10px 26px rgba(0,0,0,0.08);
  padding:20px 18px 18px;
}

body.legacy .legacy-card h3{
  font-family:var(--serif);
  margin:0 0 10px;
  font-size:1.25rem;
}

body.legacy .legacy-card p{
  margin:0 0 16px;
  line-height:1.7;
  opacity:.9;
}

.btn-legacy{
  display:inline-block;
  padding:12px 22px;
  font-family:var(--sans);
  font-size:.90rem;
  letter-spacing:.10em;
  text-transform:uppercase;
  color:var(--navy);
  background:var(--gold);
  border-radius:999px;
  text-decoration:none;
  border:2px solid var(--gold);
  transition:background .22s ease, color .22s ease, transform .12s ease;
}
.btn-legacy:hover{
  background:transparent;
  color:var(--gold);
  text-decoration:none;
}
.btn-legacy:active{ transform:translateY(1px); }

/* ---------- FOOTER (balanced weight) ---------- */
.site-footer{
  background:var(--navy);
  color:var(--cream);
  padding:34px 0 30px;
  margin-top:0;
}

.footer-inner{
  max-width:var(--wrap);
  margin:0 auto;
  padding:0 var(--gutter);
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
  gap:10px;
}

.footer-logo{
  width:190px;
  max-width:190px;
  height:auto;
  display:block;
  margin:0 auto;
  opacity:.95;
}

.footer-tagline{
  margin:2px 0 0;
  font-size:.95rem;
  opacity:.90;
}

.footer-nav{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:10px;
  font-size:.78rem;
  letter-spacing:.14em;
  text-transform:uppercase;
  margin-top:8px;
}
.footer-nav a{ color:var(--cream); opacity:.92; }
.footer-nav a:hover{ opacity:1; }
.footer-nav span{ opacity:.45; }

.footer-cred{
  font-size:.85rem;
  opacity:.82;
  margin-top:6px;
}

.footer-copy{
  font-size:.80rem;
  opacity:.65;
  margin-top:4px;
}

/* =========================================================
   OUR DOGS — PAGE LAYOUT (LOCKED)
   Targets only body.our-dogs so it won't touch other pages
   ========================================================= */

body.our-dogs .dogs-body{ padding-top: 40px; padding-bottom: 70px; }

body.our-dogs .dogs-wrap{
  max-width: 980px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Beliefs section: airy + readable */
body.our-dogs .beliefs-section p{ margin: 0 0 10px; max-width: 70ch; }
body.our-dogs .beliefs-close{ margin-top: 16px; }
body.our-dogs .beliefs-section{ margin-bottom: 34px; }

/* Section headers spacing */
body.our-dogs .dogs-wrap > h2{
  margin: 42px 0 16px;
}

/* Feature card (top dog in each section) */
body.our-dogs .dog-feature{
  display: grid;
  grid-template-columns: minmax(280px, 520px) 1fr;
  gap: 22px;
  align-items: center;
  padding: 22px;
  margin: 0 0 22px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(30,42,61,0.14);
  border-radius: 22px;
  box-shadow: 0 14px 34px rgba(0,0,0,0.06);
}

body.our-dogs .dog-feature-media{
  display: block;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(0,0,0,0.02);
}

body.our-dogs .dog-feature-media img{
  width: 100%;
  height: 100%;
  max-height: 520px;
  object-fit: cover;
  display: block;
}

body.our-dogs .dog-feature-body h3{ margin: 0 0 8px; }
body.our-dogs .dog-feature-body p{ margin: 0; }
body.our-dogs .dog-meta{ opacity: .86; margin-bottom: 8px; }

/* Roster grid + thumbnails */
body.our-dogs .dog-roster{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 18px;
  margin: 0 0 34px;
}

body.our-dogs .dog-row{
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 14px;
  align-items: center;
  color: inherit;
  text-decoration: none;
  padding: 10px 10px;
  border-radius: 16px;
  transition: background .18s ease, transform .12s ease;
}
body.our-dogs .dog-row:hover{
  background: rgba(15,30,43,0.04);
  transform: translateY(-1px);
}

body.our-dogs .dog-thumb{
  width: 84px;
  height: 84px;
  border-radius: 14px;
  object-fit: cover;
  display: block;
}

body.our-dogs .dog-row-name{ font-weight: 600; }
body.our-dogs .dog-row-meta{ opacity: .84; font-size: .95rem; line-height: 1.35; }

/* Notes + CTA spacing */
body.our-dogs .dogs-note{ max-width: 78ch; margin: 0 0 18px; opacity: .92; }
body.our-dogs .dogs-cta{ margin-top: 18px; }

/* Responsive */
@media (max-width: 900px){
  body.our-dogs .dog-feature{
    grid-template-columns: 1fr;
    padding: 18px;
  }
  body.our-dogs .dog-feature-media img{
    max-height: 420px;
  }
}

@media (max-width: 700px){
  body.our-dogs .dog-roster{
    grid-template-columns: 1fr;
  }
}

/* Compatibility / safety */
main{ display:block; }
