/* ==========================================================================
   North Peak Pet Supply
   Navy #053056 · pale blue accents · maple red reserved for the logo
   ========================================================================== */

:root {
  --navy:      #053056;
  --navy-700:  #0a4275;
  --navy-900:  #032039;
  --blue:      #5f8fbe;
  --blue-pale: #a9c6e0;
  --blue-wash: #eaf1f7;
  --blue-mist: #f4f8fb;

  --ink:       #1b2a38;
  --grey:      #5d6d7b;
  --grey-soft: #9aa7b3;
  --line:      #dde5ec;
  --line-2:    #c3d2df;

  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.68;
  color: var(--grey);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }

a { color: var(--navy-700); text-decoration: none; }
a:hover { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 32px; }
.narrow { max-width: 760px; }

.block { padding: clamp(58px, 7vw, 100px) 0; }
.block--wash { background: var(--blue-wash); }
.block--mist { background: var(--blue-mist); }
.block--tight { padding-block: clamp(40px, 4.5vw, 64px); }

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 10px; top: 10px; background: var(--navy); color: #fff; padding: 10px 16px; z-index: 100; }

/* --------------------------------------------------------- Headlines -- */
/* Layered, uppercase, alternating weight and colour. */

.stack { margin: 0 0 26px; }
.stack span { display: block; text-transform: uppercase; line-height: 1.04; letter-spacing: -0.005em; }
.stack .lead-line {
  font-size: clamp(1.75rem, 3.5vw, 2.85rem);
  font-weight: 500;
  color: var(--blue);
}
.stack .hero-line {
  font-size: clamp(2.05rem, 4.3vw, 3.5rem);
  font-weight: 800;
  color: var(--navy);
}
.stack .sub-line {
  font-size: clamp(1.15rem, 1.9vw, 1.5rem);
  font-weight: 700;
  color: var(--grey);
  margin-top: 12px;
}
.stack .faint-line {
  font-size: clamp(1.05rem, 1.75vw, 1.35rem);
  font-weight: 400;
  color: var(--grey-soft);
}

h1, h2, h3, h4 { margin: 0 0 .55em; color: var(--navy); }
h2 {
  font-size: clamp(1.55rem, 2.7vw, 2.3rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.005em;
  line-height: 1.12;
}
h2 em { font-style: normal; font-weight: 500; color: var(--blue); }
h3 { font-size: 1.35rem; font-weight: 700; line-height: 1.25; }
h4 { font-size: 1.02rem; font-weight: 700; }

.kicker {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0 0 14px;
}

.pull {
  border-left: 3px solid var(--blue-pale);
  padding-left: 22px;
  font-size: 1.06rem;
  color: var(--grey);
  max-width: 54ch;
}

/* ----------------------------------------------------------- Buttons -- */

.pill {
  display: inline-block;
  font-size: .86rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  line-height: 1;
  padding: 16px 32px;
  border-radius: 999px;
  border: 2px solid var(--navy);
  background: var(--navy);
  color: #fff;
  cursor: pointer;
  transition: background-color .17s ease, color .17s ease, border-color .17s ease;
}
.pill:hover { background: var(--navy-700); border-color: var(--navy-700); color: #fff; text-decoration: none; }
.pill--ghost { background: transparent; color: var(--navy); border-color: var(--blue-pale); }
.pill--ghost:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.pill--light { background: #fff; border-color: #fff; color: var(--navy); }
.pill--light:hover { background: var(--blue-wash); border-color: var(--blue-wash); color: var(--navy); }
.pill--onNavy { background: transparent; border-color: rgba(255,255,255,.45); color: #fff; }
.pill--onNavy:hover { background: #fff; border-color: #fff; color: var(--navy); }

.row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; }

/* ------------------------------------------------------------ Header -- */

.ribbon {
  background: var(--navy);
  color: #d7e6f2;
  text-align: center;
  font-size: .84rem;
  letter-spacing: .03em;
  padding: 11px 32px;
}
.ribbon strong { color: #fff; font-weight: 600; }
.ribbon-rule { height: 5px; background: var(--blue-pale); }

.masthead { background: #fff; border-bottom: 1px solid var(--line); }
.masthead .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 28px; min-height: 134px; position: relative;
}
.logo img { height: 84px; width: auto; }

.nav { display: flex; align-items: center; gap: 30px; }
.nav a {
  font-size: .84rem; font-weight: 700; letter-spacing: .11em; text-transform: uppercase;
  color: var(--navy); padding-bottom: 5px; border-bottom: 3px solid transparent;
}
.nav a:hover { color: var(--navy-700); text-decoration: none; border-bottom-color: var(--blue-pale); }
.nav a[aria-current="page"] { border-bottom-color: var(--blue); }

.nav-btn {
  display: none; width: 46px; height: 46px;
  border: 1px solid var(--line-2); border-radius: 6px; background: #fff; cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-btn span { display: block; width: 19px; height: 2px; background: var(--navy); position: relative; }
.nav-btn span::before, .nav-btn span::after { content: ""; position: absolute; left: 0; width: 19px; height: 2px; background: var(--navy); }
.nav-btn span::before { top: -6px; }
.nav-btn span::after { top: 6px; }

/* -------------------------------------------------------------- Hero -- */

.hero { padding: clamp(46px, 5.5vw, 78px) 0 clamp(52px, 6vw, 86px); }
.hero__grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(36px, 5vw, 70px); align-items: center; }
.hero .row { margin-top: 32px; }

/* Navy showcase panel carrying the logo, reversed out in white. */
.showcase {
  background: var(--navy);
  border-radius: 14px;
  padding: clamp(38px, 4.4vw, 62px) clamp(28px, 3.4vw, 52px);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.showcase::after {
  content: "";
  position: absolute; inset: auto -40% -55% -40%;
  height: 70%;
  background: rgba(255,255,255,.035);
  transform: rotate(-8deg);
  pointer-events: none;
}
.showcase img { width: min(320px, 100%); margin: 0 auto; filter: brightness(0) invert(1); }
.showcase__line {
  position: relative; z-index: 1;
  margin-top: clamp(26px, 3vw, 38px);
  padding-top: clamp(22px, 2.6vw, 30px);
  border-top: 1px solid rgba(255,255,255,.2);
  font-size: .82rem; font-weight: 700; letter-spacing: .17em; text-transform: uppercase;
  color: var(--blue-pale);
  line-height: 2;
}

/* ------------------------------------------------------------ Panels -- */

.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }

.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 5px solid var(--navy);
  border-radius: 4px;
  padding: clamp(28px, 3.2vw, 44px);
}
.panel--accent { border-top-color: var(--blue); }
.panel .tag {
  font-size: .76rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase;
  color: var(--blue); margin: 0 0 12px;
}
.panel h3 { margin-bottom: .5em; }
.panel p { font-size: 1rem; }

/* ------------------------------------------------------------- Bands -- */

.band { background: var(--navy); color: #c4d8e8; padding: clamp(58px, 7vw, 104px) 0; }
.band h2, .band h3 { color: #fff; }
.band h2 em { color: var(--blue-pale); }
.band .kicker { color: var(--blue-pale); }
.band .pull { border-left-color: rgba(255,255,255,.3); color: #dfeaf3; }

.creed { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 4vw, 60px); margin-top: clamp(30px, 3.4vw, 46px); }
.creed h4 { color: var(--blue-pale); font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 14px; }
.creed p { color: #e4eef6; font-size: 1.04rem; }

.band-foot {
  margin-top: clamp(36px, 4vw, 56px);
  padding-top: clamp(28px, 3vw, 40px);
  border-top: 1px solid rgba(255,255,255,.18);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px;
}
.band-foot p { margin: 0; max-width: 52ch; color: #b6cee1; }

/* ------------------------------------------------------------ Pledge -- */

.pledge { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.pledge li { border-top: 3px solid var(--blue-pale); padding-top: 20px; }
.pledge h4 { color: var(--navy); margin-bottom: 8px; }
.pledge p { font-size: .97rem; margin: 0; }

/* ------------------------------------------------------------ Ledger -- */

.ledger { margin: 0; padding: 0; }
.ledger div { display: grid; grid-template-columns: 150px 1fr; gap: 24px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.ledger div:first-child { border-top: 1px solid var(--line); }
.ledger dt { font-size: .78rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--blue); padding-top: 4px; }
.ledger dd { margin: 0; color: var(--ink); }

/* -------------------------------------------------------------- Form -- */

.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.f { display: flex; flex-direction: column; gap: 7px; }
.f--wide { grid-column: 1 / -1; }
.f label { font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--navy); }
.f .req { color: #d31723; }
/* Required marker drawn in CSS so it stays out of the label text Netlify emails. */
.f label.is-required::after { content: " *"; color: #d31723; }
.f input, .f select, .f textarea {
  font-family: var(--sans); font-size: .97rem; color: var(--ink);
  padding: 13px 14px; border: 1px solid var(--line-2); border-radius: 4px; background: #fff; width: 100%;
}
.f textarea { resize: vertical; min-height: 140px; }
.f input:focus, .f select:focus, .f textarea:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px rgba(95,143,190,.18); }
.f .hint { font-size: .85rem; color: var(--grey-soft); }

.agree { display: flex; gap: 11px; align-items: flex-start; font-size: .92rem; color: var(--grey); }
.agree input { width: 17px; height: 17px; margin-top: 4px; flex: none; }

.note { font-size: .88rem; color: var(--grey-soft); margin-top: 18px; }
.said { margin-top: 18px; padding: 14px 16px; border: 1px solid var(--line-2); background: var(--blue-wash); font-size: .94rem; color: var(--navy); display: none; }
.said.on { display: block; }

/* ------------------------------------------------------------ Footer -- */

.foot { background: var(--navy-900); color: #9fbad0; padding: clamp(50px, 5.5vw, 74px) 0 0; font-size: .95rem; }
.foot a { color: #d3e3f0; }
.foot a:hover { color: #fff; }
.foot__top { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px 34px; padding-bottom: 46px; }
.foot img { height: 76px; width: auto; filter: brightness(0) invert(1); opacity: .95; }
.foot__about { margin-top: 20px; max-width: 34ch; }
.foot h4 { color: #82a5c2; font-size: .76rem; letter-spacing: .15em; text-transform: uppercase; margin-bottom: 15px; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin-bottom: 10px; }
.foot__base {
  border-top: 1px solid rgba(255,255,255,.11); padding: 20px 0 30px;
  display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between;
  font-size: .85rem; color: #7d9bb5;
}

/* -------------------------------------------------------- Responsive -- */

@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; }
  .duo, .creed { grid-template-columns: 1fr; }
  .pledge { grid-template-columns: 1fr; gap: 24px; }
  .fields { grid-template-columns: 1fr; }
  .foot__top { grid-template-columns: 1fr 1fr; }

  .masthead .wrap { min-height: 96px; }
  .logo img { height: 52px; }
  .nav-btn { display: inline-flex; }
  .masthead .pill { display: none; }
  .nav {
    position: absolute; top: 100%; left: -32px; right: -32px;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 6px 0; display: none; z-index: 30;
  }
  .nav.open { display: flex; }
  .nav a { padding: 15px 32px; border-bottom: 1px solid var(--line); border-left: 3px solid transparent; }
  .nav a:last-child { border-bottom: 0; }
  .nav a[aria-current="page"] { border-bottom-color: var(--line); border-left-color: var(--blue); background: var(--blue-mist); }
}

@media (max-width: 600px) {
  .wrap { padding-inline: 22px; }
  .nav { left: -22px; right: -22px; }
  .nav a { padding-inline: 22px; }
  .logo img { height: 44px; }
  .foot__top { grid-template-columns: 1fr; gap: 30px; }
  .foot img { height: 58px; }
  .ledger div { grid-template-columns: 1fr; gap: 3px; }
  .band-foot { display: block; }
  .band-foot .pill { margin-top: 20px; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition-duration: .01ms !important; } }

/* Netlify Forms honeypot — must exist in the DOM but never be seen. */
.honey { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
