/* ============================================================
   BARK & HIKE — shared.css
   Reset · tokens · layout system · nav · footer · buttons
   ============================================================ */

* { padding: 0; margin: 0; box-sizing: border-box; }

:root {
  /* brand palette */
  --forest: #2E3A2C;
  --forest-deep: #232C21;
  --moss: #5C6B4E;
  --sand: #E8DCC6;
  --paper: #FAF6EC;
  --stone: #A89E89;
  --clay: #C26B3D;
  --clay-deep: #A95829;
  --ocean: #2F6066;
  --ink: #191C16;
  --line: rgba(232, 220, 198, 0.16);

  /* fonts */
  --display: "Anton", sans-serif;
  --cond: "Barlow Condensed", sans-serif;
  --body: "DM Sans", sans-serif;

  /* fluid type scale (overridden per breakpoint) */
  --h1: 5.2rem;
  --h2: 3.1rem;
  --h3: 1.55rem;
  --eyebrow: 0.86rem;
  --lead: 1.25rem;

  /* rhythm */
  --section-y: 130px;
  --radius: 4px;
  --maxw: 1320px;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
  font-size: 1.02rem;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ---------- layout ---------- */
.container { margin: 0 auto; max-width: var(--maxw); }
section { padding-inline: 40px; }
.section-y { padding-block: var(--section-y); }

/* ---------- typography ---------- */
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 0.96; letter-spacing: 0.01em; }
h1 { font-size: var(--h1); text-transform: uppercase; }
h2 { font-size: var(--h2); text-transform: uppercase; }
h3 { font-size: var(--h3); text-transform: uppercase; letter-spacing: 0.02em; }
p { max-width: 62ch; }

.eyebrow {
  font-family: var(--cond);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: var(--eyebrow);
  color: var(--clay);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 28px; height: 2px;
  background: var(--clay);
  display: inline-block;
}
.eyebrow.center { justify-content: center; }
.lead { font-size: var(--lead); line-height: 1.55; color: color-mix(in srgb, var(--ink) 82%, transparent); }

.on-dark { color: var(--paper); }
.on-dark .eyebrow { color: var(--sand); }
.on-dark .eyebrow::before { background: var(--clay); }
.on-dark p { color: rgba(250, 246, 236, 0.78); }

/* ---------- cta band ---------- */
.cta-band { text-align: center; padding-block: 80px; }
.cta-inner { max-width: 720px; margin: 0 auto; }
.cta-inner h2 { margin: 14px 0 16px; }
.cta-inner .lead { margin: 0 auto 26px; }

/* ---------- buttons ---------- */
.btn {
  font-family: var(--cond);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 1.02rem;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform .25s ease, background .25s ease, color .25s ease, border-color .25s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--clay); color: var(--paper); }
.btn-primary:hover { background: var(--clay-deep); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--paper); border-color: rgba(250,246,236,0.55); }
.btn-ghost:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn-dark { background: var(--forest); color: var(--paper); }
.btn-dark:hover { background: var(--forest-deep); transform: translateY(-2px); }
.btn-outline-dark { background: transparent; color: var(--forest); border-color: var(--forest); }
.btn-outline-dark:hover { background: var(--forest); color: var(--paper); }
.btn svg { width: 18px; height: 18px; }

/* ============================================================
   ANNOUNCEMENT BAR
   ============================================================ */
.topbar {
  position: relative; z-index: 400;
  background: var(--forest-deep);
  color: var(--sand);
  text-align: center;
  font-family: var(--cond);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.82rem;
  padding: 9px 40px;
  border-bottom: 1px solid var(--line);
}
.topbar b { color: var(--clay); font-weight: 600; }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: sticky; top: 0; z-index: 300;
  background: var(--forest);
  border-bottom: 1px solid var(--line);
  padding-inline: 40px;
}
.navbar .inner {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 78px;
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--sand); }
.brand .mark { width: 42px; height: 42px; color: var(--sand); flex-shrink: 0; }
.brand .mark svg { width: 100%; height: 100%; }
.brand-logo { height: 44px; width: auto; display: block; }
.brand .word { display: flex; flex-direction: column; line-height: 1; }
.brand .word b { font-family: var(--display); font-size: 1.4rem; letter-spacing: 0.04em; text-transform: uppercase; }
.brand .word b em { color: var(--clay); font-style: normal; }
.brand .word span { font-family: var(--cond); font-size: 0.66rem; letter-spacing: 0.34em; text-transform: uppercase; color: var(--stone); margin-top: 2px; }

.navbar .links { display: flex; align-items: center; gap: 34px; }
.navbar .links a {
  font-family: var(--cond);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 1rem;
  color: rgba(250,246,236,0.82);
  padding: 6px 0;
  position: relative;
  transition: color .2s ease;
}
.navbar .links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 0; height: 2px; background: var(--clay); transition: width .25s ease;
}
.navbar .links a:hover, .navbar .links a.active { color: var(--paper); }
.navbar .links a.active::after, .navbar .links a:hover::after { width: 100%; }
.navbar .links .nav-cta { margin-left: 8px; padding: 10px 22px; }

/* hamburger */
.mobile-menu {
  display: none;
  width: 50px; height: 50px; border-radius: 50px; overflow: hidden;
  background: var(--clay); border: none; cursor: pointer;
  align-items: center; justify-content: center;
  flex-direction: column; gap: 5px;
  position: relative; z-index: 250;
}
.mobile-menu span { display: block; width: 22px; height: 2px; background: var(--paper); transition: transform .3s ease, opacity .2s ease; }
.mobile-menu.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-menu.open span:nth-child(2) { opacity: 0; }
.mobile-menu.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* mobile drawer */
.mobile-drawer {
  position: fixed; inset: 0 0 0 auto; width: min(80vw, 360px);
  background: var(--forest-deep); z-index: 200;
  transform: translateX(100%); transition: transform .35s cubic-bezier(.7,0,.2,1);
  padding: 140px 36px 40px; display: flex; flex-direction: column; gap: 6px;
  border-left: 1px solid var(--line);
}
.mobile-drawer.open { transform: translateX(0); }
.mobile-drawer a {
  font-family: var(--display); text-transform: uppercase; font-size: 1.8rem;
  color: var(--sand); padding: 12px 0; border-bottom: 1px solid var(--line);
}
.mobile-drawer a:last-of-type { border-bottom: none; }
.mobile-drawer .btn { margin-top: 22px; justify-content: center; }
.drawer-backdrop {
  position: fixed; inset: 0; background: rgba(12,15,10,0.6); z-index: 150;
  opacity: 0; pointer-events: none; transition: opacity .3s ease;
}
.drawer-backdrop.open { opacity: 1; pointer-events: auto; }
body.nav-lock { overflow: hidden; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--forest-deep);
  color: var(--paper);
  padding-inline: 40px;
  border-top: 4px solid var(--clay);
}
.site-footer .inner { max-width: var(--maxw); margin: 0 auto; padding-block: 80px 0; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 48px;
  padding-bottom: 56px; border-bottom: 1px solid var(--line);
}
.footer-brand .brand { margin-bottom: 22px; }
.footer-brand p { color: rgba(250,246,236,0.7); font-size: 0.98rem; }
.footer-col h4 {
  font-family: var(--cond); text-transform: uppercase; letter-spacing: 0.22em;
  font-size: 0.92rem; color: var(--clay); margin-bottom: 20px; font-weight: 600;
}
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul a { color: rgba(250,246,236,0.78); transition: color .2s; font-size: 0.98rem; }
.footer-col ul a:hover { color: var(--paper); }
.footer-contact li { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; color: rgba(250,246,236,0.78); font-size: 0.96rem; }
.footer-contact svg { width: 18px; height: 18px; color: var(--clay); flex-shrink: 0; margin-top: 3px; }
.socials { display: flex; gap: 12px; margin-top: 22px; }
.socials a {
  width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%;
  display: grid; place-items: center; transition: background .25s, border-color .25s, color .25s;
}
.socials a:hover { background: var(--clay); border-color: var(--clay); }
.socials svg { width: 18px; height: 18px; }
.footer-bottom {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  padding-block: 26px; font-size: 0.82rem; color: rgba(250,246,236,0.55);
  font-family: var(--cond); letter-spacing: 0.1em; text-transform: uppercase;
}
.footer-bottom .legal { display: flex; gap: 22px; }
.footer-bottom a:hover { color: var(--paper); }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* image placeholder (swap for real photography) */
.ph {
  position: relative; overflow: hidden;
  background:
    radial-gradient(120% 120% at 20% 10%, rgba(92,107,78,0.45), transparent 55%),
    linear-gradient(145deg, var(--forest), var(--forest-deep) 70%, #1b231a);
}
.ph[data-bush] { background-image: url('../assets/images/dogs-bush-pair.jpg'); background-size: cover; background-position: center 55%; background-repeat: no-repeat; }
.ph[data-beach] { background-image: url('../assets/images/dogs-beach-play.jpg'); background-size: cover; background-position: center 65%; background-repeat: no-repeat; }
.ph[data-sand] { background-image: url('../assets/images/dog-white-beach.jpg'); background-size: cover; background-position: center 65%; background-repeat: no-repeat; }
.ph .ph-label {
  position: absolute; left: 16px; bottom: 14px;
  font-family: var(--cond); text-transform: uppercase; letter-spacing: 0.18em;
  font-size: 0.72rem; color: rgba(250,246,236,0.62);
  border: 1px dashed rgba(250,246,236,0.4); padding: 5px 10px; border-radius: 3px;
  backdrop-filter: blur(2px);
}
.ph .ph-watermark { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0.12; }
.ph .ph-watermark svg { width: 90px; height: 90px; color: var(--paper); }

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero {
  position: relative; color: var(--paper);
  padding-block: 96px;
  display: flex; align-items: center;
  min-height: 360px;
}
.page-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(95deg, rgba(20,26,18,0.9) 0%, rgba(20,26,18,0.6) 60%, rgba(20,26,18,0.25) 100%);
  z-index: 1;
}
.page-hero .container { position: relative; z-index: 2; width: 100%; }
.page-hero h1 { color: var(--paper); margin: 14px 0 18px; }
.page-hero .lead { max-width: 52ch; color: rgba(250,246,236,0.88); }
.page-hero .ph-label { z-index: 3; }
.breadcrumb { font-family: var(--cond); text-transform: uppercase; letter-spacing: 0.2em; font-size: 0.78rem; color: rgba(250,246,236,0.6); margin-top: 26px; }
.breadcrumb a:hover { color: var(--clay); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split.flip .split-media { order: 2; }
.split-media .ph { border-radius: var(--radius); box-shadow: 0 30px 60px -30px rgba(25,28,22,0.4); aspect-ratio: 4/3; }
.split h2 { margin: 14px 0 16px; }
.accent { color: var(--clay); }

.lined-list { display: grid; gap: 12px; margin: 26px 0 30px; }
.lined-list li { display: flex; gap: 14px; align-items: flex-start; }
.lined-list svg { width: 22px; height: 22px; color: var(--clay); flex-shrink: 0; margin-top: 3px; }

.sec-head-c { text-align: center; max-width: 640px; margin: 0 auto 50px; }
.sec-head-c h2 { margin-top: 14px; }

/* ============================================================
   RESPONSIVE — 5 BREAKPOINTS
   ============================================================ */

/* 1) 1200 — COMPRESS */
@media (max-width: 1200px) {
  :root { --h1: 4.4rem; --h2: 2.7rem; --section-y: 110px; --lead: 1.18rem; }
  .navbar .links { gap: 26px; }
  .footer-grid { gap: 36px; }
}

/* 2) 980 — STACK */
@media (max-width: 980px) {
  :root { --h1: 3.4rem; --h2: 2.35rem; --section-y: 90px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .split.flip .split-media { order: 0; }
  .page-hero { min-height: 300px; padding-block: 72px; }
}

/* 3) 850 — HAMBURGER */
@media (max-width: 850px) {
  .navbar .links { display: none; }
  .navbar .nav-cta { display: none; }
  .mobile-menu { display: flex; }
  .topbar { letter-spacing: 0.16em; }
}

/* 4) 650 — MOBILE PADDING + collapse */
@media (max-width: 650px) {
  :root { --h1: 2.9rem; --h2: 2rem; --h3: 1.35rem; --section-y: 56px; --lead: 1.08rem; }
  section { padding-inline: 20px; }
  .navbar { padding-inline: 20px; }
  .topbar { padding-inline: 20px; font-size: 0.72rem; }
  .site-footer { padding-inline: 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; padding-bottom: 40px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .btn { width: 100%; justify-content: center; }
  .brand .word b { font-size: 1.25rem; }
}

/* 5) 480 — SMALL MOBILE */
@media (max-width: 480px) {
  :root { --h1: 2.45rem; --h2: 1.75rem; }
  .navbar .inner { height: 66px; }
  .brand-logo { height: 36px; }
  .mobile-drawer a { font-size: 1.5rem; }
}
