/* David Strausser — personal brand site. Bright pop theme. */

:root {
  --bg: #fff8ef;            /* cream */
  --bg-raised: #ffffff;      /* white cards */
  --bg-alt: #fdeeda;         /* peach band */
  --ink: #221610;            /* near-black brown */
  --text: #221610;           /* alias used by blog inline styles */
  --muted: #6f5f52;          /* warm gray-brown */
  --faint: #a08e7c;
  --accent: #e63946;         /* pop red — display text, large accents */
  --accent-deep: #c1121f;    /* deeper red — buttons, links, small text */
  --accent-hot: #ff5c38;     /* coral — gradients */
  --violet: #7c3aed;         /* purple — gradient accents */
  --blue: #1d4ed8;           /* electric blue — gradient accents */
  --line: #ecdcc4;
  --card: #ffffff;
  --radius: 14px;
  --font-display: "Anton", "Arial Black", Impact, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--accent-hot); color: #fff; }
/* Buttons are red with white text — invert selection so highlighted text stays readable. */
.btn::selection { background: #fff; color: var(--accent-deep); }

.wrap { width: min(1120px, 92%); margin: 0 auto; }
.wrap.narrow { width: min(760px, 92%); }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent-deep); color: #fff;
  padding: 0.6rem 1rem; z-index: 200; font-weight: 700;
}
.skip-link:focus { left: 0; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: rgba(255, 248, 239, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: 0.65rem; text-decoration: none; color: var(--ink); }
.brand-logo {
  width: 40px; height: 40px; border-radius: 10px;
  display: block;
  box-shadow: 0 2px 8px rgba(230, 57, 70, 0.35);
}
.brand-name { font-weight: 700; letter-spacing: 0.01em; font-size: 1.05rem; }
.brand-name small { font-size: 0.68em; font-weight: 500; color: var(--muted); letter-spacing: 0.06em; }

.site-nav { display: flex; align-items: center; gap: 1.75rem; }
.site-nav a {
  color: var(--muted); text-decoration: none; font-weight: 600; font-size: 1rem;
  transition: color 0.2s ease;
  position: relative;
  padding: 0.35rem 0;
}
.site-nav a:hover { color: var(--accent-deep); }
/* Active page indicator: small accent bar under the link */
.site-nav a.active { color: var(--ink); }
.site-nav a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 3px; border-radius: 3px; background: var(--accent);
}
.site-nav .nav-cta {
  color: #fff; background: var(--accent-deep); font-weight: 700; font-size: 1rem;
  padding: 0.7rem 1.5rem; border-radius: 999px;
  box-shadow: 0 6px 18px rgba(230, 57, 70, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.site-nav .nav-cta::after { display: none; } /* no underline bar on the button */
.site-nav .nav-cta:hover {
  background: var(--accent); color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(230, 57, 70, 0.45);
}
/* Scroll-spy adds .active to the CTA in the contact section — keep its text white. */
.site-nav .nav-cta.active { color: #fff; background: var(--accent-deep); }

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  flex-direction: column; gap: 5px; padding: 0.6rem;
  min-width: 48px; min-height: 48px; align-items: center; justify-content: center;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px; background: var(--ink); border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
/* Hamburger -> X morph */
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 9.5rem 0 5.5rem;
  background:
    radial-gradient(42rem 24rem at 88% 0%, rgba(124, 58, 237, 0.16), transparent 60%),
    radial-gradient(46rem 28rem at 100% 40%, rgba(255, 92, 56, 0.22), transparent 60%),
    radial-gradient(50rem 30rem at 5% 100%, rgba(29, 78, 216, 0.12), transparent 60%),
    var(--bg);
}
.hero-glow {
  position: absolute; inset: auto -10% -40% -10%; height: 60%;
  background: radial-gradient(closest-side, rgba(255, 92, 56, 0.10), transparent);
  pointer-events: none;
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem; align-items: center;
}
.hero-copy { min-width: 0; }

.eyebrow {
  text-transform: uppercase; letter-spacing: 0.22em;
  font-size: 0.78rem; font-weight: 700; color: var(--accent-deep);
  margin-bottom: 1.1rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  line-height: 0.95; letter-spacing: 0.01em;
  text-transform: uppercase;
  text-wrap: balance;
}

/* Late-2026 polish: balanced headlines, anchored sections clear the fixed
   header, generous section rhythm. */
h2, h3 { text-wrap: balance; }
section[id], footer[id] { scroll-margin-top: 84px; }
.hero h1 .hl { color: var(--accent); }
.odoo { color: #8e44ad; font-weight: 800; }
.hero-sub .hero-lede { display: inline; font-size: clamp(1.45rem, 3.2vw, 2rem); font-weight: 800; color: var(--ink); line-height: 1.3; }
.hero-sub .hero-lede strong { color: var(--ink); }
.hero-sub .hero-lede .odoo { font-size: 1.08em; }
.tagline {
  margin-top: 1.1rem;
  font-size: clamp(1.15rem, 2.6vw, 1.5rem);
  font-weight: 600; color: var(--ink);
}
.hero-sub { margin-top: 1rem; max-width: 620px; color: var(--muted); }

.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2rem; }
.btn {
  display: inline-block; text-decoration: none; font-weight: 700;
  padding: 0.85rem 1.7rem; border-radius: 999px; font-size: 1rem;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  border: 0; cursor: pointer; font-family: inherit;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent-deep); color: #fff; box-shadow: 0 6px 18px rgba(193, 18, 31, 0.30); }
.btn-primary:hover { background: var(--accent); }
.btn-ghost { border: 2px solid var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--accent-deep); color: var(--accent-deep); }
.btn-light { background: #fff; color: var(--accent-deep); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25); }
.btn-light:hover { background: var(--bg); }

/* Hero photo — polaroid energy */
.hero-media {
  margin: 0; position: relative;
  background: #fff; padding: 0.9rem 0.9rem 0.6rem;
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(193, 18, 31, 0.22), 0 4px 14px rgba(0, 0, 0, 0.12);
  transform: rotate(2.5deg);
  transition: transform 0.3s ease;
}
.hero-media:hover { transform: rotate(0deg) scale(1.015); }
.hero-media img {
  width: 100%; aspect-ratio: 4/5; object-fit: cover;
  border-radius: 6px; display: block;
}
.hero-media figcaption {
  text-align: center; font-size: 0.92rem; color: var(--muted);
  padding: 0.7rem 0.4rem 0.4rem; font-weight: 500;
}

.hero-stats {
  list-style: none; display: flex; flex-wrap: wrap; gap: 2.2rem;
  margin-top: 3rem; padding-top: 2rem; border-top: 2px solid var(--line);
}
.hero-stats li { display: flex; flex-direction: column; gap: 0.15rem; }
.hero-stats strong { font-family: var(--font-display); font-size: 1.35rem; letter-spacing: 0.02em; color: var(--accent-deep); }
.hero-stats span { font-size: 0.85rem; color: var(--faint); }

/* ---------- Sections ---------- */
.section { padding: 5.5rem 0; }
/* Fixed-header clearance (mobile only — desktop is fine): the first content
   block must clear the 72px fixed .site-header. .section's 5.5rem top padding
   left only ~16px of clearance, so eyebrows/titles clipped under the header
   on phones. */
@media (max-width: 860px) {
  main > .section:first-child { padding-top: calc(5.5rem + 44px); }
}
.section-alt {
  background: var(--bg-alt);
  border-top: 2px dashed var(--line);
  border-bottom: 2px dashed var(--line);
}

.section h2 {
  font-family: var(--font-display); text-transform: uppercase;
  font-size: clamp(2rem, 5vw, 3rem); letter-spacing: 0.01em;
  margin-bottom: 1.25rem; line-height: 1.05;
}
.section-lede { color: var(--muted); max-width: 640px; margin-bottom: 2.5rem; font-size: 1.1rem; }

.prose p { margin-bottom: 1.2rem; color: #4a3d31; }
.prose strong { color: var(--ink); }
.prose a, .work-note a { color: var(--accent-deep); font-weight: 600; }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.card {
  background: var(--card); border: 1.5px solid var(--line);
  border-radius: var(--radius); padding: 1.75rem;
  box-shadow: 0 3px 12px rgba(193, 18, 31, 0.06);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  transform: translateY(-4px); border-color: var(--accent-hot);
  box-shadow: 0 12px 28px rgba(255, 92, 56, 0.16);
}
.card h3 {
  font-family: var(--font-display); text-transform: uppercase;
  font-size: 1.3rem; letter-spacing: 0.02em; margin-bottom: 0.7rem; color: var(--accent-deep);
}
.card p { color: var(--muted); font-size: 0.98rem; }
.card .post-card-date { font-size: 0.85rem; margin-bottom: 0.5rem; }
.card h3 a { color: inherit; text-decoration: none; }
.card h3 a:hover { color: var(--accent); }

.work-note { margin-top: 2.5rem; color: var(--muted); font-size: 1.05rem; }
.work-note a { font-weight: 700; text-decoration: none; }
.work-note a:hover { text-decoration: underline; }

.shop-inner { text-align: left; }

/* ---------- Career (LinkedIn-style) ---------- */
.career-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 1.5rem; align-items: start; }
.exp-list { display: grid; gap: 1.1rem; }
.exp-item {
  background: var(--card); border: 1.5px solid var(--line);
  border-left: 6px solid var(--accent-hot);
  border-radius: var(--radius); padding: 1.4rem 1.5rem;
  box-shadow: 0 3px 12px rgba(193, 18, 31, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.exp-item:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(255, 92, 56, 0.15); }
.exp-item h3 { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.02em; font-size: 1.25rem; color: var(--ink); }
.exp-org { font-weight: 700; color: var(--accent-deep); margin-top: 0.2rem; }
.exp-note { font-weight: 500; color: var(--muted); font-size: 0.92rem; }
.exp-dates { font-size: 0.85rem; color: var(--faint); font-weight: 600; margin: 0.15rem 0 0.6rem; }
.exp-item p:last-child { color: var(--muted); font-size: 0.98rem; margin: 0; }
.career-side { display: grid; gap: 1.1rem; }
.side-card {
  background: var(--card); border: 1.5px solid var(--line);
  border-top: 6px solid var(--violet);
  border-radius: var(--radius); padding: 1.3rem 1.4rem;
}
.side-card h3 {
  font-family: var(--font-display); text-transform: uppercase;
  font-size: 1.1rem; letter-spacing: 0.02em; color: var(--violet); margin-bottom: 0.6rem;
}
.side-card p, .side-card li { color: var(--muted); font-size: 0.95rem; }
.side-card ul { list-style: none; display: grid; gap: 0.5rem; }
.side-card li span { color: var(--faint); font-size: 0.85rem; }

/* ---------- CTA banner (Odoo) ---------- */
.cta-banner {
  background: linear-gradient(120deg, var(--accent-deep), var(--accent) 55%, var(--accent-hot));
  color: #fff; text-align: center;
}
.cta-banner .eyebrow { color: #ffe8e6; }
.cta-banner h2 { color: #fff; }
.cta-banner p { color: #fff5f3; font-size: 1.08rem; max-width: 620px; margin-left: auto; margin-right: auto; }

/* ---------- Social ---------- */
.social-grid {
  list-style: none; display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1rem; margin-top: 2.25rem;
}
.social-grid a {
  display: flex; flex-direction: column; gap: 0.15rem;
  background: var(--card); border: 1.5px solid var(--line);
  border-radius: var(--radius); padding: 1.3rem 1.5rem;
  text-decoration: none; transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.social-grid a:hover { transform: translateY(-3px); border-color: var(--violet); box-shadow: 0 10px 24px rgba(124, 58, 237, 0.14); }
.social-grid strong { color: var(--ink); font-size: 1.05rem; }
.social-grid span { color: var(--faint); font-size: 0.9rem; }

/* ---------- Footer ---------- */
.site-footer { background: #221610; border-top: 4px solid var(--accent-hot); padding: 2rem 0; }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; }
.footer-inner p { color: #e9d9c4; font-size: 0.88rem; }
.site-footer a { color: #ffffff; }
.site-footer a:hover { color: #ffd9a0; text-decoration: underline; }
.footer-social { display: flex; align-items: center; gap: 0.85rem; font-weight: 600; }
.footer-social a { text-decoration: none; }
.footer-social span { color: #8a6f56; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { max-width: 420px; }
  .career-layout { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .cards { grid-template-columns: 1fr; }
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(255, 248, 239, 0.98);
    border-bottom: 2px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height 0.3s ease;
  }
  .site-nav.open { max-height: 82vh; overflow-y: auto; }
  /* Mobile menu links: slightly more top padding nudges the label down a
     touch for better optical alignment; 48px+ tap targets throughout. */
  .site-nav a {
    padding: 1.15rem 4% 1rem;
    border-top: 1px solid var(--line);
    line-height: 1.5;
    min-height: 48px;
    display: flex;
    align-items: center;
  }
  .site-nav .nav-cta { margin: 0.75rem 4% 1.25rem; text-align: center; justify-content: center; }
  .hero { padding: 7.5rem 0 4rem; }
  .social-grid { grid-template-columns: 1fr; }
  .section { padding: 4rem 0; }
}

/* ---- Contact form + meeting CTA ---- */
.meeting-cta { margin: 1.75rem 0 2.5rem; }
.meeting-cta .btn { font-size: 1.05rem; padding: 1rem 2rem; }
.call-cta { margin: 0 0 2.5rem; }
.call-cta p { margin-bottom: 1rem; }
.call-buttons { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.contact-form { display: grid; gap: 1.1rem; margin: 0 0 2.5rem; text-align: left; }
.form-row { display: grid; gap: 1.1rem; grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.field label { display: block; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.18em; color: var(--muted); margin-bottom: 0.45rem; }
.field input, .field textarea {
  width: 100%; padding: 0.85rem 1rem; border-radius: 10px;
  border: 1.5px solid var(--line); background: #fff; color: var(--ink);
  font: inherit; resize: vertical;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.15); }
button.btn-ghost[type="submit"] { justify-self: start; }

/* ---- Shark Bite Biz tagline ---- */
.shark-tagline {
  font-family: var(--font-display); font-size: 1.6rem; text-transform: uppercase;
  letter-spacing: 0.04em; color: var(--accent);
}

/* ---- FAQ ---- */
.faq-list { display: grid; gap: 0.9rem; margin-top: 1.5rem; }
.faq-item { border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--card); padding: 1.1rem 1.3rem; }
.faq-item summary { cursor: pointer; font-weight: 600; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.4rem; color: var(--accent-deep); flex-shrink: 0; font-weight: 700; }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { margin: 0.8rem 0 0; color: var(--muted); }

/* ---- Photos ---- */
.card-photo {
  width: 100%; height: auto; aspect-ratio: 16/10; object-fit: cover;
  max-height: 160px; border-radius: 10px; display: block; margin-bottom: 1.1rem;
}
.cards-life .card { padding: 1.1rem; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1.1rem; margin-top: 1.5rem; }
.photo-item { margin: 0; border: 1.5px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--card); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.photo-item:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(255, 92, 56, 0.15); }
.photo-item img { width: 100%; aspect-ratio: 1/1; object-fit: cover; display: block; }
.photo-item figcaption { padding: 0.7rem 0.9rem; font-size: 0.9rem; color: var(--muted); }
/* Smaller display for Liv-and-David photos (David's request: keep them modest) */
.photo-item.photo-sm { display: flex; flex-direction: column; align-items: center; padding: 1.1rem 0.9rem; text-align: center; }
.photo-item.photo-sm img { width: 140px; height: 140px; border-radius: 50%; aspect-ratio: auto; border: 3px solid var(--line); }

/* ---- Focus visibility ---- */
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--accent-hot); outline-offset: 2px;
}

/* ---- Testimonials ---- */
.card-quote { display: flex; flex-direction: column; }
.card-quote blockquote { margin: 0 0 1rem; font-size: 1.02rem; line-height: 1.6; font-style: italic; }
.card-quote blockquote::before { content: "\201C"; display: block; font-size: 2.4rem; line-height: 1; color: var(--accent); font-style: normal; margin-bottom: 0.35rem; }
.card-quote .testimonial-name { font-weight: 700; margin: 0; }
.card-quote .testimonial-name a { color: inherit; }
.card-quote .testimonial-role { font-size: 0.88rem; color: var(--muted); margin: 0.15rem 0 0; }
.card-quote .testimonial-role a { color: var(--muted); }
.cards-testimonials { grid-template-columns: repeat(2, 1fr); }
.testimonial-head { display: flex; align-items: center; gap: 0.9rem; margin-bottom: 0.9rem; }
.testimonial-head > div { min-width: 0; }
.testimonial-avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: none; border: 2px solid var(--accent); }
@media (max-width: 860px) {
  .cards-testimonials { grid-template-columns: 1fr; }
}

/* Mailing list popup */
.popup-overlay {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 1.25rem;
  background: rgba(10, 10, 12, 0.62);
  backdrop-filter: blur(3px);
  opacity: 0; transition: opacity 0.35s ease;
}
.popup-overlay[hidden] { display: none; }
.popup-overlay.open { opacity: 1; }
.popup-card {
  position: relative;
  width: 100%; max-width: 430px;
  background: #fff; color: var(--ink);
  border-radius: 18px;
  border-top: 6px solid var(--accent-deep);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
  padding: 2rem 1.75rem 1.5rem;
  transform: translateY(26px) scale(0.98);
  transition: transform 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}
.popup-overlay.open .popup-card { transform: none; }
.popup-card .eyebrow { margin-bottom: 0.4rem; }
.popup-card h2 {
  font-family: var(--font-display); text-transform: uppercase;
  letter-spacing: 0.02em; font-size: 1.7rem; margin: 0 0 0.4rem;
}
.popup-card h2::selection { background: var(--accent-hot); color: #fff; }
.popup-sub { color: #555; margin: 0 0 1.1rem; font-size: 0.95rem; }
.popup-close {
  position: absolute; top: 0.55rem; right: 0.8rem;
  background: none; border: 0; cursor: pointer;
  font-size: 1.9rem; line-height: 1; color: #999; padding: 0.25rem;
}
.popup-close:hover { color: var(--accent-deep); }
.popup-row { display: flex; gap: 0.75rem; }
.popup-row label { flex: 1; }
.popup-card label {
  display: block; font-size: 0.8rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: #666; margin-bottom: 0.85rem;
}
.popup-card input {
  display: block; width: 100%; margin-top: 0.3rem;
  font: inherit; font-size: 1rem; font-weight: 400; letter-spacing: 0;
  text-transform: none; color: var(--ink);
  border: 2px solid #e3e3e6; border-radius: 10px;
  padding: 0.65rem 0.8rem; background: #fafafa;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.popup-card input:focus {
  outline: none; border-color: var(--accent-deep); background: #fff;
}
.popup-card input.invalid { border-color: var(--accent-deep); background: #fff5f5; }
.popup-submit { width: 100%; justify-content: center; margin-top: 0.2rem; }
.popup-submit:disabled { opacity: 0.65; cursor: wait; transform: none; }
.popup-status { min-height: 1.4em; font-size: 0.9rem; margin: 0.6rem 0 0; }
.popup-status.error { color: var(--accent-deep); font-weight: 600; }
.popup-status.success { color: #1a7f37; font-weight: 600; }
.popup-fine { font-size: 0.75rem; color: #999; margin: 0.9rem 0 0; text-align: center; }
.popup-card.success-state .popup-sub { margin-bottom: 0.4rem; }
@media (max-width: 480px) {
  .popup-row { flex-direction: column; gap: 0; }
  .popup-card { padding: 1.75rem 1.25rem 1.25rem; }
}
@media (prefers-reduced-motion: reduce) {
  .popup-overlay, .popup-card { transition: none; }
}

/* ---------- Services mega-menu (desktop hover / mobile accordion) ---------- */
.nav-drop { position: relative; }
.nav-drop-toggle {
  display: inline-flex; align-items: center; gap: 0.35rem;
  background: none; border: 0; cursor: pointer; font: inherit;
  color: var(--muted); font-weight: 600; font-size: 1rem;
  padding: 0.35rem 0; position: relative;
  transition: color 0.2s ease;
}
.nav-drop-toggle:hover { color: var(--accent-deep); }
.nav-drop-toggle.active { color: var(--ink); }
.nav-drop-toggle.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 3px; border-radius: 3px; background: var(--accent);
}
.nav-drop-toggle .caret {
  width: 12px; height: 12px; flex: none;
  transition: transform 0.22s ease;
  margin-top: 1px;
}
/* Invisible hover bridge so the menu doesn't close crossing the gap */
.nav-drop::after {
  content: ""; position: absolute; top: 100%; left: -1rem; right: -1rem; height: 18px;
  display: none;
}
.nav-drop:hover::after, .nav-drop:focus-within::after, .nav-drop.open::after { display: block; }

.nav-drop-menu {
  visibility: hidden; opacity: 0;
  position: absolute; top: calc(100% + 14px); left: 50%;
  transform: translateX(-50%) translateY(10px);
  width: 580px; max-width: calc(100vw - 2rem);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 28px 64px rgba(34, 22, 16, 0.18);
  padding: 1.2rem 1.2rem 0.9rem;
  z-index: 120;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
}
.nav-drop:hover .nav-drop-menu,
.nav-drop:focus-within .nav-drop-menu,
.nav-drop.open .nav-drop-menu {
  visibility: visible; opacity: 1;
  transform: translateX(-50%) translateY(0);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0s;
}
.nav-drop:hover .nav-drop-toggle .caret,
.nav-drop:focus-within .nav-drop-toggle .caret,
.nav-drop.open .nav-drop-toggle .caret { transform: rotate(180deg); }

.nav-drop-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem 1rem; }
.nav-drop-label {
  margin: 0 0 0.3rem; padding: 0 0.7rem;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--muted);
}
.nav-drop-menu a[role="menuitem"] {
  display: block;
  padding: 0.62rem 0.7rem;
  border-radius: 10px;
  font-size: 0.97rem; font-weight: 500; color: var(--ink);
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}
.nav-drop-menu a[role="menuitem"]:hover { background: var(--bg-alt); color: var(--accent-deep); }
.nav-drop-menu a[role="menuitem"].active { color: var(--accent-deep); font-weight: 700; background: var(--bg-alt); }
.nav-drop-menu a.active::after { display: none; }
.nav-drop-menu .nav-drop-all {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 0.8rem; padding: 0.85rem 1rem 0.4rem;
  border-top: 1px solid var(--line);
  font-weight: 700; font-size: 0.97rem; color: var(--accent-deep);
  border-radius: 0 0 14px 14px;
}
.nav-drop-menu .nav-drop-all:hover { color: var(--accent); }
.nav-drop-menu .nav-drop-all.active { color: var(--accent-deep); }

@media (max-width: 860px) {
  .nav-drop { display: flex; flex-direction: column; }
  .nav-drop-toggle {
    padding: 1.15rem 4% 1rem;
    border-top: 1px solid var(--line);
    line-height: 1.5;
    min-height: 48px;
    display: flex; align-items: center; justify-content: space-between;
    width: 100%;
    color: var(--muted);
  }
  .nav-drop-toggle.active { color: var(--ink); }
  .nav-drop-toggle.active::after { display: none; }
  .nav-drop-menu {
    position: static; transform: none;
    visibility: visible; opacity: 1;
    display: none;
    border: 0; border-radius: 0; box-shadow: none;
    background: rgba(0, 0, 0, 0.03);
    padding: 0.4rem 0 0.6rem;
    width: auto; max-width: none;
    transition: none;
  }
  .nav-drop.open .nav-drop-menu { display: block; }
  .nav-drop-cols { grid-template-columns: 1fr; gap: 0.6rem; }
  .nav-drop-label { padding: 0.4rem 4% 0; }
  .nav-drop-menu a[role="menuitem"] {
    padding: 0.85rem 4% 0.85rem 8%;
    border-top: 1px solid var(--line);
    font-size: 0.95rem;
    white-space: normal;
    border-radius: 0;
  }
  .nav-drop-menu .nav-drop-all {
    margin: 0.4rem 0 0; padding: 0.9rem 4%;
    border-top: 1px solid var(--line);
    border-radius: 0;
  }
  /* Thumb-friendly primary buttons on small screens */
  .btn { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; }
}

/* ---------- Service imagery (landing + long-form pages) ---------- */
.svc-hero-figure { margin: 2rem auto 0; max-width: 960px; }
.svc-hero-figure img { width: 100%; height: auto; display: block; border-radius: var(--radius); box-shadow: var(--shadow); }
.svc-figure { margin: 2.5rem 0; }
.svc-figure img { width: 100%; height: auto; display: block; border-radius: var(--radius); }
.svc-hero-figure figcaption, .svc-figure figcaption { font-size: 0.9rem; color: var(--muted); margin-top: 0.5rem; }
.card-thumb { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); display: block; margin-bottom: 1rem; }

/* ---------- Service imagery: layout variety (no two pages alike) ---------- */
.fig-band { margin: 2rem calc(50% - 50vw) 0; max-width: 100vw; }
.fig-band img { width: 100%; height: auto; display: block; }
.fig-band figcaption { max-width: 1100px; margin: 0.6rem auto 0; padding: 0 1.25rem; font-size: 0.85rem; color: var(--muted); font-style: italic; }
.fig-hero-offset { margin: 2rem 0 0 auto; max-width: 88%; }
.fig-hero-offset img { width: 100%; height: auto; display: block; border-radius: var(--radius) 0 0 var(--radius); box-shadow: var(--shadow); }
.fig-hero-offset figcaption { font-size: 0.85rem; color: var(--muted); margin-top: 0.5rem; text-align: right; padding-right: 0.25rem; }
.fig-inset { max-width: 68%; margin: 2.5rem auto; }
.fig-inset img { width: 100%; height: auto; display: block; border-radius: var(--radius); box-shadow: var(--shadow); }
.fig-inset figcaption { text-align: center; font-size: 0.85rem; color: var(--muted); margin-top: 0.6rem; font-style: italic; }
.fig-wide { margin: 2.5rem calc(50% - 47vw); max-width: 94vw; }
.fig-wide img { width: 100%; height: auto; display: block; border-radius: var(--radius); }
.fig-wide figcaption { max-width: 1100px; margin: 0.6rem auto 0; padding: 0 1.25rem; font-size: 0.85rem; color: var(--muted); }
.fig-frame { background: #fff; padding: 0.9rem 0.9rem 0.5rem; box-shadow: var(--shadow); transform: rotate(-1.1deg); margin: 2.75rem auto; max-width: 80%; border: 1px solid var(--line); }
.fig-frame img { width: 100%; height: auto; display: block; }
.fig-frame figcaption { font-size: 0.85rem; color: var(--muted); margin: 0.55rem 0.2rem 0.2rem; font-style: italic; }
.fig-sidenote { display: grid; grid-template-columns: 3fr 1fr; gap: 1.25rem; align-items: start; margin: 2.5rem 0; }
.fig-sidenote img { width: 100%; height: auto; display: block; border-radius: var(--radius); }
.fig-sidenote figcaption { font-size: 0.82rem; line-height: 1.5; color: var(--muted); border-left: 3px solid var(--accent, #e8b33c); padding-left: 0.8rem; margin-top: 0.2rem; }
.fig-numbered { margin: 2.5rem 0; counter-increment: fignum; }
.fig-numbered img { width: 100%; height: auto; display: block; border-radius: var(--radius); }
.fig-numbered figcaption { font-size: 0.85rem; color: var(--muted); margin-top: 0.5rem; }
.fig-numbered figcaption::before { content: "Fig. " counter(fignum, decimal-leading-zero) " — "; font-weight: 700; color: var(--text); }
main { counter-reset: fignum; }
.fig-left-align { max-width: 86%; margin: 2.5rem 0; }
.fig-left-align img { width: 100%; height: auto; display: block; border-radius: var(--radius) 0 var(--radius) 0; }
.fig-left-align figcaption { font-size: 0.85rem; color: var(--muted); margin-top: 0.5rem; text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.78rem; }
@media (max-width: 720px) {
  .fig-sidenote { grid-template-columns: 1fr; }
  .fig-inset, .fig-frame { max-width: 100%; }
  .fig-frame { transform: none; }
  .fig-wide { margin-left: 0; margin-right: 0; max-width: 100%; }
  .fig-band { margin-left: 0; margin-right: 0; max-width: 100%; }
  .fig-hero-offset { max-width: 100%; }
  .fig-hero-offset img { border-radius: var(--radius); }
  .fig-hero-offset figcaption { text-align: left; }
  .fig-left-align { max-width: 100%; }
}

/* ---------- Header hardening (mobile lockup) ---------- */
.nav-cta { white-space: nowrap; }
.brand, .nav-toggle { flex-shrink: 0; }
@media (max-width: 400px) { .brand { font-size: 1.3rem; } }
