/* ==========================================================================
   PorciniQ — Design Tokens
   ========================================================================== */
:root {
  /* Color */
  --forest-950: #071B12;
  --forest-900: #0A2618;
  --forest-800: #0B3020;
  --forest-700: #133A28;
  --forest-600: #1F4A34;
  --forest-500: #2E5C43;
  --gold-600:   #96702E;
  --gold-500:   #B8863E;
  --gold-400:   #C79C55;
  --gold-300:   #D9B77A;
  --gold-200:   #E9D5AA;
  --ivory-100:  #F1ECE0;
  --ivory-50:   #F8F5EE;
  --white:      #FFFFFF;
  --charcoal-800: #22221E;
  --charcoal-700: #3A3934;
  --charcoal-500: #6B6A62;
  --line: rgba(11,48,32,0.14);
  --line-on-dark: rgba(233,213,170,0.22);

  /* Type */
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Layout */
  --max-w: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius-sm: 3px;
  --radius-md: 6px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ==========================================================================
   Reset & base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--charcoal-700);
  background: var(--ivory-50);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; margin: 0; color: var(--forest-900); }
p { margin: 0; }
button { font-family: inherit; cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--gold-500);
  outline-offset: 3px;
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.on-dark { color: var(--ivory-50); }

/* ==========================================================================
   Type scale
   ========================================================================== */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-600);
  font-weight: 600;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--gold-500);
  display: inline-block;
}
.on-dark .eyebrow { color: var(--gold-300); }
.on-dark .eyebrow::before { background: var(--gold-300); }

.h-display {
  font-size: clamp(2.4rem, 4.4vw, 4.1rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  font-weight: 600;
}
.h-section {
  font-size: clamp(1.9rem, 2.7vw, 2.6rem);
  line-height: 1.12;
  letter-spacing: -0.005em;
}
.h-card { font-size: 1.2rem; line-height: 1.3; }
.lede {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  color: var(--charcoal-500);
  line-height: 1.65;
  max-width: 46ch;
}
.on-dark .lede { color: rgba(248,245,238,0.72); }

/* Flourish divider — echoes the mark under the wordmark */
.flourish {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--gold-500);
  margin: 0 auto;
}
.flourish::before, .flourish::after {
  content: "";
  height: 1px;
  width: 46px;
  background: var(--gold-400);
}
.flourish span { font-size: 13px; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: all 0.25s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--gold-500);
  color: var(--forest-950);
}
.btn-primary:hover { background: var(--gold-400); transform: translateY(-1px); }

.btn-outline-dark {
  border-color: var(--forest-800);
  color: var(--forest-900);
  background: transparent;
}
.btn-outline-dark:hover { background: var(--forest-800); color: var(--ivory-50); }

.btn-outline-light {
  border-color: var(--line-on-dark);
  color: var(--ivory-50);
  background: transparent;
}
.btn-outline-light:hover { border-color: var(--gold-300); color: var(--gold-300); }

.btn-ghost-light {
  color: var(--ivory-50);
  padding: 14px 4px;
  border-bottom: 1px solid var(--line-on-dark);
  border-radius: 0;
}
.btn-ghost-light:hover { border-color: var(--gold-300); color: var(--gold-300); }

/* ==========================================================================
   Nav
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgb(255, 255, 255);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-on-dark);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 00px var(--gutter);
  max-width: var(--max-w);
  margin: -20px auto;
}
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo img { height: 120px; width: auto; }
.nav-logo-word { font-family: var(--font-display); font-size: 1.1rem; letter-spacing: 0.04em; color: var(--ivory-50); font-weight: 600; }
.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-links a {
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.78);
  font-weight: 500;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--gold-300); border-color: var(--gold-300); }
.nav-actions { display: flex; align-items: center; gap: 20px; }
.nav-cta { padding: 11px 22px; font-size: 13px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  width: 32px;
  height: 24px;
  position: relative;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: var(--ivory-50);
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}
.nav-toggle span { top: 50%; transform: translateY(-50%); }
.nav-toggle span::before { top: -8px; }
.nav-toggle span::after { top: 8px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: rotate(45deg) translate(0,0); top: 0; }
.nav-toggle[aria-expanded="true"] span::after { transform: rotate(-45deg); top: 0; }

/* ==========================================================================
   Sections
   ========================================================================== */
.section { padding: 108px 0; }
.section-tight { padding: 72px 0; }
.section-dark { background: var(--forest-900); }
.section-forest { background: var(--forest-800); }
.section-ivory { background: var(--ivory-50); }
.section-ivory-100 { background: var(--ivory-100); }

.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head.centered { margin-left: auto; margin-right: auto; text-align: center; }
.section-head .eyebrow { margin-bottom: 18px; }
.section-head h2 { margin-bottom: 16px; }

/* ==========================================================================
   Gill-line texture (signature motif)
   Concentric radiating lines echo the underside of a mushroom cap.
   ========================================================================== */
.gill-field {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.gill-field svg { position: absolute; opacity: 0.5; }

/* ==========================================================================
   Cards
   ========================================================================== */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 36px 30px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -22px rgba(11,48,32,0.25);
  border-color: var(--gold-300);
}
.card-icon {
  width: 46px; height: 46px;
  margin-bottom: 22px;
  color: var(--gold-500);
}
.card h3 { margin-bottom: 10px; }
.card p { color: var(--charcoal-500); font-size: 0.95rem; line-height: 1.6; }

/* ==========================================================================
   Grids
   ========================================================================== */
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--forest-950); color: rgba(248,245,238,0.65); padding: 76px 0 28px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 48px; padding-bottom: 56px; border-bottom: 1px solid var(--line-on-dark); }
.footer-brand img { height: 75px; margin-bottom: 18px; }
.footer-brand p { font-size: 0.9rem; line-height: 1.7; max-width: 30ch; color: rgba(248,245,238,0.55); }
.footer-col h4 { color: var(--ivory-50); font-family: var(--font-body); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 20px; font-weight: 600; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col a { font-size: 0.92rem; color: rgba(248,245,238,0.65); transition: color 0.2s; }
.footer-col a:hover { color: var(--gold-300); }
.footer-social { display: flex; gap: 14px; margin-top: 22px; }
.footer-social a { width: 34px; height: 34px; border: 1px solid var(--line-on-dark); border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: border-color 0.2s, color 0.2s; }
.footer-social a:hover { border-color: var(--gold-300); color: var(--gold-300); }
.footer-social svg { width: 15px; height: 15px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 26px; font-size: 0.82rem; color: rgba(248,245,238,0.4); }
.footer-bottom a:hover { color: var(--gold-300); }

/* ==========================================================================
   Forms
   ========================================================================== */
.form-field { margin-bottom: 20px; }
.form-field label { display: block; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 600; color: var(--forest-800); margin-bottom: 8px; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid rgba(11,48,32,0.22);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--charcoal-800);
  transition: border-color 0.2s;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  border-color: var(--gold-500);
  outline: none;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-note { font-size: 0.82rem; color: var(--charcoal-500); margin-top: 4px; }
.form-success { display: none; padding: 20px; border: 1px solid var(--gold-300); background: var(--ivory-100); border-radius: var(--radius-md); color: var(--forest-800); font-size: 0.92rem; }
.form-success.visible { display: block; }

/* ==========================================================================
   Misc components
   ========================================================================== */
.stat-row { display: flex; gap: 64px; flex-wrap: wrap; }
.stat-num { font-family: var(--font-display); font-size: 2.4rem; color: var(--gold-300); line-height: 1; margin-bottom: 8px; }
.stat-label { font-size: 0.82rem; letter-spacing: 0.04em; text-transform: uppercase; color: rgba(248,245,238,0.6); }

.tag {
  display: inline-block;
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 20px;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--forest-700);
}

.table-wrap { overflow-x: auto; }
table.spec-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
table.spec-table th, table.spec-table td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); }
table.spec-table th { font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold-600); font-weight: 700; background: var(--ivory-100); }
table.spec-table tr:last-child td { border-bottom: none; }

.breadcrumb { font-size: 0.85rem; color: rgba(248,245,238,0.5); }
.breadcrumb a:hover { color: var(--gold-300); }

/* ==========================================================================
   Reveal-on-scroll
   ========================================================================== */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }
[data-reveal-delay="1"] { transition-delay: 0.08s; }
[data-reveal-delay="2"] { transition-delay: 0.16s; }
[data-reveal-delay="3"] { transition-delay: 0.24s; }
[data-reveal-delay="4"] { transition-delay: 0.32s; }

/* ==========================================================================
   Product photo cards
   ========================================================================== */
.product-photo-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.product-photo-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -22px rgba(11,48,32,0.25); border-color: var(--gold-300); }
.product-photo-card .photo-wrap { aspect-ratio: 4/5; overflow: hidden; background: var(--ivory-100); }
.product-photo-card .photo-wrap img { width: 100%; height: 100%; object-fit: cover; }
.product-photo-card .photo-body { padding: 26px 26px 30px; }
.product-photo-card .tag { margin-bottom: 12px; }

/* Audience / who-we-serve cards */
.audience-card {
  padding: 30px 26px;
  border: 1px solid var(--line-on-dark);
  border-radius: var(--radius-md);
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.audience-card:hover { border-color: var(--gold-400); background: rgba(233,213,170,0.05); }
.audience-card .card-icon { color: var(--gold-300); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .nav-links, .nav-actions .nav-cta-wrap { display: none; }
  .nav-toggle { display: block; }
  .nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--forest-950);
    padding: 24px var(--gutter) 32px;
    gap: 22px;
    border-bottom: 1px solid var(--line-on-dark);
  }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .section { padding: 72px 0; }
  .stat-row { gap: 36px; }
  .footer-bottom { flex-direction: column; gap: 14px; align-items: flex-start; }
}
