/* ==========================================================================
   NORTHLINK WORLDWIDE LLC — core stylesheet
   Pet Food & Pet Accessories
   Static build: HTML5 / CSS3 / vanilla JS. No build step required.
   ========================================================================== */

/* --------------------------------------------------------------- tokens */
:root {
  /* palette */
  --navy:        #0C2244;   /* logo navy */
  --navy-deep:   #071A35;
  --forest:      #123B2E;
  --forest-deep: #0E3124;
  --forest-lit:  #18503A;
  --gold:        #C9992A;
  --gold-light:  #E7C067;
  --gold-deep:   #9E7518;
  --cream:       #F4EFE4;
  --sand:        #E8DFCE;
  --paper:       #FBF8F2;
  --ink:         #142119;
  --muted:       #5C6B62;
  --line:        rgba(20, 51, 42, .16);
  --line-soft:   rgba(20, 51, 42, .09);
  --line-dark:   rgba(231, 192, 103, .26);

  /* type */
  --display: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;

  --step--1: clamp(.82rem, .79rem + .14vw, .9rem);
  --step-0:  clamp(1rem, .96rem + .2vw, 1.09rem);
  --step-1:  clamp(1.2rem, 1.12rem + .38vw, 1.42rem);
  --step-2:  clamp(1.5rem, 1.34rem + .76vw, 2.05rem);
  --step-3:  clamp(1.9rem, 1.6rem + 1.45vw, 2.95rem);
  --step-4:  clamp(2.4rem, 1.82rem + 2.7vw, 4.4rem);
  --step-5:  clamp(3rem, 1.9rem + 5vw, 6.2rem);

  /* layout */
  --shell: 1280px;
  --gutter: clamp(1.25rem, 4vw, 4.5rem);
  --header-h: 92px;
  --radius: 2px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* --------------------------------------------------------------- reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; line-height: 1.08; letter-spacing: -.012em; margin: 0; }
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); letter-spacing: -.005em; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: var(--radius);
}
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--forest); color: var(--paper);
  padding: .8rem 1.2rem; text-decoration: none;
}
.skip-link:focus { left: 1rem; top: 1rem; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* --------------------------------------------------------------- helpers */
.shell { width: 100%; max-width: var(--shell); margin-inline: auto; padding-inline: var(--gutter); }
.lede { font-size: var(--step-1); line-height: 1.5; color: var(--forest); max-width: 44ch; }
.prose { max-width: 68ch; color: #32403a; }
.prose h2 { margin-top: 2.6rem; }
.prose h3 { margin-top: 2rem; margin-bottom: .5rem; }
.prose p + p { margin-top: 0; }
.prose ul { margin: 0 0 1.2rem; }
.prose ul li { position: relative; padding-left: 1.4rem; margin-bottom: .5rem; }
.prose ul li::before {
  content: ""; position: absolute; left: 0; top: .72em;
  width: 8px; height: 1px; background: var(--gold);
}
.kicker {
  font-size: var(--step--1); letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold-deep); font-weight: 600; margin: 0 0 1rem;
}
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }
.section { padding-block: clamp(4.5rem, 9vw, 8.5rem); }
.section--tight { padding-block: clamp(3rem, 6vw, 5.5rem); }
.section--paper { background: var(--paper); }
.section--sand { background: var(--sand); }
.section--dark { background: var(--forest); color: #EAE4D6; }
.section--dark h2, .section--dark h3 { color: var(--paper); }
.section--dark .kicker { color: var(--gold-light); }

/* --------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .92rem 1.7rem; border-radius: 999px; border: 1px solid transparent;
  font-size: var(--step--1); font-weight: 600; letter-spacing: .07em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease);
}
.btn--solid { background: var(--forest); color: var(--paper); }
.btn--solid:hover { background: var(--forest-deep); transform: translateY(-2px); }
.btn--gold { background: var(--gold); color: #1B1403; }
.btn--gold:hover { background: var(--gold-light); transform: translateY(-2px); }
.btn--ghost { border-color: var(--forest); color: var(--forest); background: transparent; }
.btn--ghost:hover { background: var(--forest); color: var(--paper); transform: translateY(-2px); }
.btn--ghost-light { border-color: rgba(231,192,103,.6); color: var(--gold-light); background: transparent; }
.btn--ghost-light:hover { background: var(--gold); border-color: var(--gold); color: #1B1403; }
.btn--sm { padding: .7rem 1.25rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }

.link-underline {
  display: inline-block; text-decoration: none; font-weight: 600;
  font-size: var(--step--1); letter-spacing: .08em; text-transform: uppercase;
  padding-bottom: .35rem; border-bottom: 1px solid var(--gold);
  transition: border-color .3s var(--ease), color .3s var(--ease);
}
.link-underline:hover { color: var(--gold-deep); border-color: var(--gold-deep); }

/* --------------------------------------------------------------- header */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(244, 239, 228, .82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .4s var(--ease), background .4s var(--ease);
}
.header.is-stuck { border-bottom-color: var(--line); background: rgba(244, 239, 228, .95); }
.header__inner {
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { height: 60px; width: auto; }
.nav { display: flex; align-items: center; gap: clamp(.5rem, 1.4vw, 1.35rem); }
.nav a {
  text-decoration: none; font-size: .82rem; letter-spacing: .04em; color: var(--forest);
  padding: .4rem 0; position: relative; white-space: nowrap;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0;
  height: 1px; background: var(--gold); transition: right .35s var(--ease);
}
.nav a:hover::after, .nav a[aria-current="page"]::after { right: 0; }
.header__actions { display: flex; align-items: center; gap: .75rem; }
.burger {
  display: none; width: 46px; height: 46px; border: 1px solid var(--line);
  background: transparent; border-radius: 50%; cursor: pointer; position: relative;
}
.burger span {
  position: absolute; left: 13px; width: 20px; height: 1.5px; background: var(--forest);
  transition: transform .35s var(--ease), opacity .2s linear;
}
.burger span:nth-child(1) { top: 18px; }
.burger span:nth-child(2) { top: 24px; }
.burger span:nth-child(3) { top: 30px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* mobile panel */
.mobile-nav {
  position: fixed; inset: var(--header-h) 0 0; z-index: 99;
  background: var(--forest); color: var(--paper);
  padding: clamp(1.5rem, 6vw, 3rem) var(--gutter) 3rem;
  display: flex; flex-direction: column; justify-content: space-between;
  transform: translateY(-101%); visibility: hidden;
  transition: transform .5s var(--ease), visibility 0s linear .5s;
  overflow-y: auto;
}
.mobile-nav.is-open { transform: translateY(0); visibility: visible; transition-delay: 0s; }
.mobile-nav a { text-decoration: none; }
.mobile-nav__links li { border-bottom: 1px solid var(--line-dark); }
.mobile-nav__links a {
  display: block; padding: .95rem 0; font-family: var(--display);
  font-size: clamp(1.4rem, 6vw, 1.9rem); color: var(--paper);
}
.mobile-nav__links a[aria-current="page"] { color: var(--gold-light); }
.mobile-nav__meta { margin-top: 2rem; font-size: var(--step--1); color: #CFC9B8; }
.mobile-nav__meta a { color: var(--gold-light); display: block; margin-top: .35rem; }
body.nav-open { overflow: hidden; }

/* --------------------------------------------------------------- hero */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(90% 70% at 74% 42%, rgba(246, 200, 107, .22), transparent 62%),
    linear-gradient(180deg, var(--cream) 0%, #EFE7D8 100%);
}
.hero__inner {
  position: relative; z-index: 2;
  min-height: calc(100svh - var(--header-h));
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center; gap: 2rem;
  padding-block: clamp(3rem, 6vw, 5rem);
}
.hero__copy { max-width: 36rem; }
.hero__eyebrow {
  display: flex; align-items: center; gap: .8rem; margin-bottom: 1.6rem;
  font-size: var(--step--1); letter-spacing: .16em; text-transform: uppercase; color: var(--gold-deep);
}
.hero__eyebrow::before { content: ""; width: 42px; height: 1px; background: var(--gold); }
.hero h1 {
  font-size: var(--step-5); line-height: .96; letter-spacing: -.025em; color: var(--forest-deep);
}
.hero h1 em { font-style: italic; color: var(--gold-deep); }
.hero__text { margin-top: 1.6rem; font-size: var(--step-1); line-height: 1.5; color: #33453C; max-width: 34ch; }
.hero__scene { position: relative; align-self: end; }
.hero__scene img { width: 100%; }
.hero__strip {
  position: relative; z-index: 2;
  border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.hero__strip div { padding: 1.15rem 1rem 1.15rem 0; }
.hero__strip div + div { border-left: 1px solid var(--line); padding-left: 1.4rem; }
.hero__strip dt { font-family: var(--display); font-size: var(--step-0); color: var(--forest); }
.hero__strip dd { margin: .15rem 0 0; font-size: var(--step--1); color: var(--muted); }

/* --------------------------------------------------------------- statement */
.statement { background: var(--paper); }
.statement__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .9fr); gap: clamp(2rem, 6vw, 5rem); align-items: end; }
.statement h2 { font-size: var(--step-4); line-height: 1.02; color: var(--forest-deep); max-width: 16ch; }
.statement p { color: #3B4A43; }

/* ----------------------------------------------------------- feature rows */
.feature {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5.5rem); align-items: center;
}
.feature--reverse .feature__media { order: 2; }
.feature__media { position: relative; }
.feature__media figure { margin: 0; background: var(--paper); border-radius: 4px; overflow: hidden; }
.section--dark .feature__media figure { background: rgba(251, 248, 242, .06); }
.feature__tag {
  position: absolute; bottom: -1px; left: -1px; background: var(--gold);
  color: #1B1403; font-size: var(--step--1); font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; padding: .6rem 1.1rem;
}
.feature__body h2 { color: var(--forest-deep); }
.section--dark .feature__body h2 { color: var(--paper); }
.feature__body p { margin-top: 1.2rem; color: #3B4A43; max-width: 46ch; }
.section--dark .feature__body p { color: #D6D0C1; }

/* category list (no cards) */
.cats { margin-top: 2.2rem; border-top: 1px solid var(--line); }
.section--dark .cats { border-color: var(--line-dark); }
.cats li {
  display: flex; align-items: baseline; gap: 1rem;
  padding: .85rem 0; border-bottom: 1px solid var(--line);
}
.section--dark .cats li { border-color: var(--line-dark); }
.cats b { font-family: var(--display); font-weight: 600; font-size: var(--step-1); min-width: 8.5rem; }
.cats span { font-size: var(--step--1); color: var(--muted); }
.section--dark .cats span { color: #B9B4A5; }

/* --------------------------------------------------------------- values */
.values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.values > div { background: var(--cream); padding: clamp(1.6rem, 3vw, 2.4rem); }
.section--paper .values > div { background: var(--paper); }
.values h3 { margin: 1.1rem 0 .5rem; color: var(--forest-deep); }
.values p { font-size: var(--step--1); color: var(--muted); margin: 0; }
.values svg { width: 34px; height: 34px; stroke: var(--gold-deep); fill: none; stroke-width: 1.4; }

/* --------------------------------------------------------------- audiences */
.audiences { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(2rem, 5vw, 4rem); }
.audiences > div { padding: 1.5rem 0; border-top: 1px solid var(--line); }
.section--dark .audiences > div { border-color: var(--line-dark); }
.audiences h3 { color: var(--forest-deep); }
.section--dark .audiences h3 { color: var(--paper); }
.audiences p { margin-top: .5rem; font-size: var(--step--1); color: var(--muted); }
.section--dark .audiences p { color: #B9B4A5; }

/* --------------------------------------------------------------- CTA band */
.cta-band {
  position: relative; overflow: hidden; color: var(--paper);
  background: linear-gradient(140deg, var(--forest-deep) 0%, #0A2B3F 55%, var(--navy) 100%);
}
.cta-band::after {
  content: ""; position: absolute; right: -8%; bottom: -35%; width: 46rem; height: 46rem;
  background: radial-gradient(circle, rgba(231, 192, 103, .16), transparent 62%);
  pointer-events: none;
}
.cta-band__inner { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .85fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.cta-band h2 { color: var(--paper); font-size: var(--step-3); max-width: 18ch; }
.cta-band p { margin-top: 1.1rem; color: #CFC9B8; max-width: 46ch; }
.cta-band__contact { display: grid; gap: .6rem; font-size: var(--step-1); font-family: var(--display); }
.cta-band__contact a { color: var(--gold-light); text-decoration: none; border-bottom: 1px solid transparent; }
.cta-band__contact a:hover { border-bottom-color: var(--gold-light); }

/* --------------------------------------------------------------- page head */
.page-head {
  background: linear-gradient(180deg, #EFE7D8 0%, var(--cream) 100%);
  padding-block: clamp(3.5rem, 7vw, 6rem) clamp(2.5rem, 5vw, 4rem);
  border-bottom: 1px solid var(--line);
}
.page-head__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: end; }
.page-head h1 { color: var(--forest-deep); max-width: 15ch; }
.page-head p { color: #3B4A43; }
.breadcrumb { font-size: var(--step--1); color: var(--muted); margin-bottom: 1.2rem; }
.breadcrumb a { text-decoration: none; color: var(--muted); border-bottom: 1px solid var(--line); }
.breadcrumb a:hover { color: var(--forest); }

/* --------------------------------------------------------------- accordion */
.accordion { border-top: 1px solid var(--line); }
.accordion__item { border-bottom: 1px solid var(--line); }
.accordion__trigger {
  width: 100%; background: none; border: 0; cursor: pointer; text-align: left;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 1.35rem 0; font-family: var(--display); font-size: var(--step-1); color: var(--forest-deep);
}
.accordion__icon { position: relative; flex: 0 0 22px; height: 22px; }
.accordion__icon::before, .accordion__icon::after {
  content: ""; position: absolute; background: var(--gold-deep); transition: transform .35s var(--ease);
}
.accordion__icon::before { top: 10.5px; left: 0; width: 22px; height: 1.5px; }
.accordion__icon::after { left: 10.5px; top: 0; width: 1.5px; height: 22px; }
.accordion__trigger[aria-expanded="true"] .accordion__icon::after { transform: scaleY(0); }
.accordion__panel { overflow: hidden; height: 0; transition: height .4s var(--ease); }
.accordion__panel > div { padding-bottom: 1.5rem; max-width: 70ch; color: #3B4A43; }

/* --------------------------------------------------------------- forms */
.contact-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.contact-details dt { font-size: var(--step--1); letter-spacing: .12em; text-transform: uppercase; color: var(--gold-deep); }
.contact-details dd { margin: .3rem 0 1.5rem; font-family: var(--display); font-size: var(--step-1); }
.contact-details a { text-decoration: none; border-bottom: 1px solid var(--line); }
.contact-details a:hover { border-bottom-color: var(--gold); }

.form { background: var(--paper); border: 1px solid var(--line); padding: clamp(1.5rem, 4vw, 2.75rem); }
.form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem 1.25rem; }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: var(--step--1); letter-spacing: .06em; color: var(--forest); font-weight: 600; }
.field .req { color: var(--gold-deep); }
.field input, .field select, .field textarea {
  font: inherit; font-size: var(--step-0); color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: .8rem .9rem; width: 100%; transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201, 153, 42, .16);
}
.field .error { font-size: var(--step--1); color: #A3341F; min-height: 1.1em; }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: #A3341F; }
.form__note { margin-top: 1.2rem; font-size: var(--step--1); color: var(--muted); }
.form__status { margin-top: 1.2rem; padding: 1rem 1.1rem; border-left: 3px solid var(--gold); background: rgba(201,153,42,.1); font-size: var(--step--1); display: none; }
.form__status.is-visible { display: block; }

/* --------------------------------------------------------------- catalogue placeholder */
.catalog {
  border: 1px dashed var(--line); padding: clamp(1.75rem, 4vw, 3rem);
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.5rem; align-items: center;
  background: var(--paper);
}
.catalog h3 { color: var(--forest-deep); }
.catalog p { margin-top: .6rem; color: var(--muted); max-width: 52ch; font-size: var(--step--1); }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.5rem; margin-top: 2rem; }
.product-card { border: 1px solid var(--line); background: var(--paper); display: flex; flex-direction: column; }
.product-card__media { aspect-ratio: 4 / 3; background: var(--sand); }
.product-card__body { padding: 1.1rem 1.2rem 1.4rem; }
.product-card__cat { font-size: var(--step--1); letter-spacing: .1em; text-transform: uppercase; color: var(--gold-deep); }
.product-card h3 { margin: .3rem 0 .4rem; font-size: var(--step-1); }
.product-card p { font-size: var(--step--1); color: var(--muted); }

/* --------------------------------------------------------------- footer */
.footer { background: var(--forest-deep); color: #C9C4B6; padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; }
.footer__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(0, .9fr)); gap: clamp(2rem, 5vw, 4rem); }
.footer__plaque { background: var(--paper); padding: 1rem 1.25rem; border-radius: 3px; display: inline-block; }
.footer__plaque img { height: 96px; width: auto; }
.footer p { font-size: var(--step--1); line-height: 1.7; }
.footer h4 { font-family: var(--body); font-size: var(--step--1); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-light); margin: 0 0 1rem; font-weight: 600; }
.footer a { color: #C9C4B6; text-decoration: none; }
.footer a:hover { color: var(--gold-light); }
.footer__links li { margin-bottom: .55rem; font-size: var(--step--1); }
.footer__contact li { margin-bottom: .55rem; font-size: var(--step--1); }
.footer__bottom {
  margin-top: clamp(2.5rem, 5vw, 3.5rem); padding-top: 1.5rem; border-top: 1px solid var(--line-dark);
  display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; font-size: var(--step--1);
}
.footer__legal { display: flex; flex-wrap: wrap; gap: 1.25rem; }

/* --------------------------------------------------------------- motion */
[data-reveal] { opacity: 0; transform: translateY(18px); }
.no-js [data-reveal] { opacity: 1; transform: none; }
[data-reveal].is-visible { opacity: 1; transform: none; transition: opacity .8s var(--ease), transform .8s var(--ease); }
[data-reveal].is-visible[data-delay="1"] { transition-delay: .09s; }
[data-reveal].is-visible[data-delay="2"] { transition-delay: .18s; }
[data-reveal].is-visible[data-delay="3"] { transition-delay: .27s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}
