/* Apex Pickle Works — single theme stylesheet, no preprocessor. */

:root {
  --blue-950: #0f1b2d;
  --blue-800: #1e4785;
  --blue-600: #2c5ab0;
  --blue-500: #3a6fd1;
  --blue-100: #e4edf7;
  --green-700: #2f5d3a;
  --green-600: #3f7d4e;
  --green-200: #c7e0cc;
  --orange-500: #e8743c;
  --orange-600: #cc5a24;
  --cream:     #fbf8f3;
  --ink:       #0f1b2d;
  --ink-soft:  #404a5e;
  --ink-mute:  #6d7486;
  --sand:      #f1ead9;
  --white:     #ffffff;

  --radius-sm: 6px;
  --radius:    12px;
  --radius-lg: 20px;
  --shadow:    0 2px 8px rgba(15,27,45,0.06), 0 12px 32px rgba(15,27,45,0.08);
  --shadow-lg: 0 4px 14px rgba(15,27,45,0.10), 0 24px 48px rgba(15,27,45,0.12);

  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-serif: Georgia, "Iowan Old Style", "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { margin: 0 0 0.5em; letter-spacing: -0.015em; line-height: 1.15; font-weight: 700; }
h1 { font-size: clamp(2.25rem, 4.5vw, 4rem); }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
p { margin: 0 0 1em; }
a { color: var(--blue-600); text-decoration: none; }
a:hover { color: var(--blue-800); text-decoration: underline; text-underline-offset: 3px; }
img { max-width: 100%; height: auto; display: block; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 880px; margin: 0 auto; padding: 0 24px; }

/* ─── Header ─────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 248, 243, 0.88);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgba(15,27,45,0.08);
}
.site-header .inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px; max-width: 1280px; margin: 0 auto;
  gap: 24px;
}
.brand {
  font-weight: 800; letter-spacing: -0.02em; font-size: 1.25rem;
  color: var(--ink); text-decoration: none;
  display: inline-flex; align-items: center; gap: 10px;
}
.brand .brand-mark { color: var(--orange-500); font-size: 1.4rem; }
.brand:hover { text-decoration: none; color: var(--ink); }

.primary-nav {
  display: flex; align-items: center; gap: 28px;
  font-weight: 500; font-size: 0.98rem;
}
.primary-nav a { color: var(--ink-soft); text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.primary-nav a:hover, .primary-nav .current-menu-item > a { color: var(--ink); border-bottom-color: var(--orange-500); }

.nav-cta { display: inline-flex; }
.nav-cta .btn { font-size: 0.95rem; padding: 10px 18px; }

.menu-toggle {
  display: none;
  background: none; border: 1px solid rgba(15,27,45,0.2);
  padding: 8px 12px; border-radius: var(--radius-sm); cursor: pointer;
  font-size: 0.9rem; font-weight: 600;
}

@media (max-width: 900px) {
  .primary-nav { display: none; }
  .primary-nav.is-open {
    display: flex; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream); border-bottom: 1px solid rgba(15,27,45,0.08);
    padding: 12px 24px;
  }
  .primary-nav.is-open a { padding: 12px 0; border-bottom: 1px solid rgba(15,27,45,0.06); }
  .menu-toggle { display: inline-flex; }
  .nav-cta { display: none; }
}

/* ─── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 24px;
  font-weight: 700; font-size: 1rem;
  border-radius: 9999px; border: none; cursor: pointer;
  text-decoration: none;
  transition: transform 150ms, box-shadow 150ms, background 150ms;
}
.btn-primary {
  background: var(--orange-500); color: #fff;
  box-shadow: 0 2px 8px rgba(232,116,60,0.25);
}
.btn-primary:hover { background: var(--orange-600); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(232,116,60,0.35); color: #fff; text-decoration: none; }
.btn-ghost {
  background: var(--white); color: var(--ink);
  border: 1px solid rgba(15,27,45,0.15);
}
.btn-ghost:hover { background: var(--sand); color: var(--ink); text-decoration: none; }
.btn-dark {
  background: var(--blue-950); color: #fff;
}
.btn-dark:hover { background: #000; transform: translateY(-1px); color: #fff; text-decoration: none; }
.btn-lg { padding: 16px 28px; font-size: 1.05rem; }

/* ─── Hero ───────────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  padding: 80px 0 100px;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(1200px 600px at 80% -20%, rgba(58,111,209,0.15), transparent 60%),
              radial-gradient(900px 500px at -10% 80%, rgba(63,125,78,0.12), transparent 60%);
  pointer-events: none; z-index: 0;
}
.hero .container {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center;
}
.hero h1 {
  font-family: var(--font-serif);
  font-weight: 700;
}
.hero .eyebrow {
  display: inline-block;
  font-size: 0.75rem; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 700;
  color: var(--blue-800); background: var(--blue-100);
  padding: 8px 14px; border-radius: 9999px;
  margin-bottom: 20px;
}
.hero-lede {
  font-size: 1.2rem; color: var(--ink-soft); max-width: 42ch;
  margin: 20px 0 32px;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-image {
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3; background: var(--blue-100);
}
.hero-image img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 900px) {
  .hero { padding: 48px 0 64px; }
  .hero .container { grid-template-columns: 1fr; gap: 32px; }
  .hero-image { order: -1; aspect-ratio: 16/10; }
}

/* ─── Generic sections ───────────────────────────────────── */
.section { padding: 80px 0; }
.section-alt { background: var(--white); border-top: 1px solid rgba(15,27,45,0.06); border-bottom: 1px solid rgba(15,27,45,0.06); }
.section-dark { background: var(--blue-950); color: #fff; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark p { color: rgba(255,255,255,0.82); }

.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head .eyebrow {
  display: inline-block;
  font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 700;
  color: var(--orange-500); margin-bottom: 14px;
}
.section-head h2 { font-family: var(--font-serif); font-weight: 700; }
.section-head p.lede { font-size: 1.125rem; color: var(--ink-soft); }

/* ─── Value-prop cards ───────────────────────────────────── */
.valueprop-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.valueprop {
  background: var(--white);
  border: 1px solid rgba(15,27,45,0.08);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform 200ms, box-shadow 200ms, border-color 200ms;
}
.valueprop:hover { transform: translateY(-2px); border-color: var(--orange-500); box-shadow: var(--shadow); }
.valueprop .num {
  display: inline-block; font-family: var(--font-serif); font-size: 2rem; color: var(--orange-500);
  margin-bottom: 8px;
}
.valueprop h3 { margin-bottom: 8px; font-size: 1.25rem; }
.valueprop p { color: var(--ink-soft); margin: 0; }
@media (max-width: 900px) { .valueprop-grid { grid-template-columns: 1fr; } }

/* ─── Designer teaser on home ────────────────────────────── */
.designer-teaser {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
}
.designer-teaser .teaser-visual {
  border-radius: var(--radius-lg); overflow: hidden;
  background: var(--blue-100);
  padding: 32px; box-shadow: var(--shadow);
}
.designer-teaser .teaser-visual svg { width: 100%; height: auto; display: block; }
@media (max-width: 900px) { .designer-teaser { grid-template-columns: 1fr; } }

/* ─── Gallery ────────────────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.gallery-grid a {
  display: block; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 4/3; background: var(--sand);
}
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms ease; }
.gallery-grid a:hover img { transform: scale(1.04); }
@media (max-width: 760px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }

/* ─── How-it-works steps ─────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; counter-reset: step; }
.step {
  padding: 28px 24px; background: var(--white);
  border: 1px solid rgba(15,27,45,0.08); border-radius: var(--radius);
  position: relative;
}
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: -18px; left: 20px;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--orange-500); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1rem;
  box-shadow: 0 2px 8px rgba(232,116,60,0.35);
}
.step h3 { font-size: 1.15rem; margin: 8px 0; }
.step p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ─── FAQ accordion ──────────────────────────────────────── */
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-item {
  background: var(--white);
  border: 1px solid rgba(15,27,45,0.08);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer; padding: 18px 24px;
  font-weight: 600; list-style: none;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; font-size: 1.5rem; color: var(--orange-500); transition: transform 200ms;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-body { padding: 0 24px 20px; color: var(--ink-soft); }

/* ─── CTA Band ───────────────────────────────────────────── */
.cta-band {
  background: linear-gradient(135deg, var(--blue-800) 0%, var(--blue-950) 100%);
  color: #fff;
  padding: 80px 0;
  text-align: center;
}
.cta-band h2 { color: #fff; font-family: var(--font-serif); margin-bottom: 16px; }
.cta-band p { color: rgba(255,255,255,0.82); font-size: 1.125rem; max-width: 620px; margin: 0 auto 28px; }

/* ─── Footer ─────────────────────────────────────────────── */
.site-footer {
  background: var(--blue-950); color: rgba(255,255,255,0.72);
  padding: 64px 0 32px;
}
.site-footer a { color: rgba(255,255,255,0.9); text-decoration: none; }
.site-footer a:hover { color: var(--orange-500); text-decoration: none; }
.site-footer .cols {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px;
  margin-bottom: 40px;
}
.site-footer h4 { color: #fff; font-size: 0.85rem; letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer .brand-line { color: #fff; font-size: 1.25rem; font-weight: 700; margin-bottom: 12px; }
.site-footer .meta { padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.1); font-size: 0.85rem; color: rgba(255,255,255,0.55); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
@media (max-width: 900px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .site-footer .cols { grid-template-columns: 1fr; } }

/* ─── Utilities ──────────────────────────────────────────── */
.eyebrow-sm { font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 700; color: var(--orange-500); }
.text-center { text-align: center; }
.text-muted { color: var(--ink-mute); }
.hidden { display: none; }
.mt-0 { margin-top: 0; }
.mt-4 { margin-top: 24px; }
.mb-0 { margin-bottom: 0; }

/* ─── About / gallery page-specific ──────────────────────── */
.split-image {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
}
.split-image img { border-radius: var(--radius-lg); box-shadow: var(--shadow); aspect-ratio: 4/3; object-fit: cover; }
@media (max-width: 900px) { .split-image { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}
