/* =========================================================
   ZeroBunks — agency site (Cookies & Cream variant)
   Friendly chocolate-dapple palette + rounded type.
   Token-driven: every design value lives in :root.
   ========================================================= */

:root {
  /* Palette — chocolate brown + cookies-and-cream */
  --cream: #f5ecdd;        /* vanilla ice-cream base */
  --cream-card: #fbf6ee;   /* whipped cream */
  --white: #ffffff;
  --ink: #392617;          /* dark chocolate (cookie) */
  --ink-soft: #4f3826;
  --accent: #b0632e;       /* milk-chocolate caramel */
  --accent-dark: #8f4f24;
  --accent-soft: #f0e0cd;

  /* Text */
  --text: #392617;
  --text-muted: #7a6a59;   /* warm cocoa gray */
  --text-on-dark: #f5ecdd;
  --text-on-dark-muted: #c4b29c;

  /* Lines & surfaces */
  --border: #e6d8c4;
  --border-dark: #4a3826;
  --stripe: rgba(57, 38, 23, 0.05);

  /* Type — friendly + rounded */
  --font-display: "Poppins", "Trebuchet MS", sans-serif;
  --font-body: "Nunito Sans", system-ui, -apple-system, sans-serif;

  /* Radius — softer/rounder for a friendlier feel */
  --r-sm: 10px;
  --r-md: 20px;
  --r-lg: 28px;
  --r-pill: 999px;

  /* Layout */
  --container: 1120px;
  --gutter: 24px;
  --section-y: 96px;

  /* Shadow */
  --shadow-sm: 0 1px 2px rgba(57, 38, 23, 0.05);
  --shadow-md: 0 18px 40px -24px rgba(57, 38, 23, 0.4);
  --shadow-accent: 0 24px 50px -24px rgba(176, 99, 46, 0.55);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Typography helpers ---------- */
.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
}

.section-title-light {
  color: var(--text-on-dark);
}

.eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.8rem;
}

.eyebrow-light {
  color: var(--accent);
}

.bullet {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4em;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.85em 1.5em;
  border-radius: var(--r-pill);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease,
    border-color 0.15s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.6em 1.1em;
  font-size: 0.85rem;
}

.btn-block {
  width: 100%;
}

.btn-dark {
  background: var(--ink);
  color: var(--text-on-dark);
}
.btn-dark:hover {
  background: var(--ink-soft);
}

.btn-accent {
  background: var(--accent);
  color: var(--white);
}
.btn-accent:hover {
  background: var(--accent-dark);
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--border);
}
.btn-outline:hover {
  border-color: var(--ink);
}

.btn-light {
  background: var(--white);
  color: var(--ink);
}
.btn-light:hover {
  background: var(--cream);
}

.link-arrow {
  font-weight: 600;
  font-size: 0.92rem;
  border-bottom: 1.5px solid currentColor;
  padding-bottom: 2px;
  transition: color 0.15s ease;
}
.link-arrow:hover {
  color: var(--accent);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 243, 236, 0.85);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid transparent;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}
.logo .dot {
  color: var(--accent);
}
.logo-img {
  height: 26px;
  width: auto;
}
.logo-img-footer {
  height: 30px;
}

/* Right-side header cluster: nav + theme toggle + hamburger */
.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex: none;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.theme-toggle:hover {
  border-color: var(--text);
  color: var(--accent);
}
.theme-toggle svg {
  width: 18px;
  height: 18px;
}
.icon-sun {
  display: none;
}
[data-theme="dark"] .icon-sun {
  display: block;
}
[data-theme="dark"] .icon-moon {
  display: none;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav a:not(.btn) {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text);
  transition: color 0.15s ease;
}
.nav a:not(.btn):hover {
  color: var(--accent);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.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 (dark, two-column, device mockups, curved divider) ---------- */
.hero {
  position: relative;
  background: var(--ink);
  color: var(--text-on-dark);
  padding-top: clamp(48px, 7vw, 84px);
  padding-bottom: clamp(130px, 17vw, 240px); /* room for devices + curve */
  overflow: hidden;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
}
.hero-grid > * {
  min-width: 0;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-on-dark-muted);
  margin-bottom: 1.4rem;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.3rem, 4.6vw, 4rem);
  line-height: 1.03;
  letter-spacing: -0.02em;
  color: var(--text-on-dark);
}
.hero-title .accent {
  color: var(--accent);
}

.hero-sub {
  margin-top: 1.4rem;
  font-size: 1.06rem;
  color: var(--text-on-dark-muted);
  max-width: 46ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

/* Light outline button for the dark hero */
.btn-outline-light {
  background: transparent;
  color: var(--text-on-dark);
  border-color: rgba(247, 243, 236, 0.28);
}
.btn-outline-light:hover {
  border-color: var(--text-on-dark);
}

/* Trust (on dark) */
.trust {
  margin-top: 2.75rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem 2rem;
}
.trust-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-on-dark-muted);
}
.trust-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
}
.trust-logos li {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: rgba(247, 243, 236, 0.5);
}

/* ---------- Hero device mockups ---------- */
.hero-devices {
  position: relative;
  min-height: 280px;
}

.laptop {
  position: relative;
  width: 100%;
  max-width: 520px;
  margin-left: auto;
  filter: drop-shadow(0 40px 55px rgba(0, 0, 0, 0.5));
}
.laptop-screen {
  background: #0b0a09;
  border: 10px solid #141210;
  border-radius: 14px 14px 0 0;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.laptop-base {
  position: relative;
  height: 16px;
  margin: 0 -6%;
  background: linear-gradient(#d9d3c7, #b6af9f);
  border-radius: 0 0 12px 12px;
}
.laptop-base::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 7px;
  background: rgba(0, 0, 0, 0.16);
  border-radius: 0 0 8px 8px;
}

.phone {
  position: absolute;
  right: -5%;
  bottom: -10%;
  width: 23%;
  min-width: 92px;
  max-width: 132px;
  filter: drop-shadow(0 26px 32px rgba(0, 0, 0, 0.5));
}
.phone-screen {
  background: #0b0a09;
  border: 6px solid #141210;
  border-radius: 22px;
  aspect-ratio: 9 / 19;
  overflow: hidden;
}

/* Placeholder screen fill (swap for a real screenshot <img>) */
.device-screen-ph {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0.7rem;
  background-color: #efe1cd;
  background-image: radial-gradient(
      circle,
      rgba(57, 38, 23, 0.22) 1.6px,
      transparent 2px
    ),
    radial-gradient(circle, rgba(57, 38, 23, 0.12) 1.6px, transparent 2px);
  background-size: 24px 24px, 24px 24px;
  background-position: 0 0, 12px 12px;
}
.ph-pill {
  width: 42%;
  height: 10px;
  border-radius: var(--r-pill);
  background: rgba(28, 26, 23, 0.12);
}
.ph-pill-sm {
  width: 56%;
  height: 6px;
}
.placeholder-label {
  font-family: var(--font-body);
  font-size: 0.74rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

/* Curved divider */
.hero-curve {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  z-index: 1;
  width: 100%;
  line-height: 0;
}
.hero-curve svg {
  display: block;
  width: 100%;
  height: clamp(70px, 9vw, 130px);
}
.hero-curve path {
  fill: var(--white);
}

/* ---------- Section heads ---------- */
.section-head {
  margin-bottom: 3rem;
}
.section-head-center {
  text-align: center;
  max-width: 30ch;
  margin-inline: auto;
}
.services-head,
.work-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  flex-wrap: wrap;
}
.section-lead {
  color: var(--text-muted);
  max-width: 34ch;
  font-size: 0.98rem;
}

/* ---------- Services ---------- */
.services {
  background: var(--white);
  padding-block: var(--section-y);
}

.service-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.service-card {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 2rem;
}
.service-num {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--accent);
  font-size: 0.9rem;
}
.service-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.45rem;
  margin: 0.5rem 0 0.7rem;
}
.service-card p {
  color: var(--text-muted);
  font-size: 0.96rem;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}
.tags li {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  padding: 0.35em 0.85em;
}

.service-extras {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: 1.25rem;
}
.service-extras li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.92rem;
  font-weight: 500;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 1rem 1.25rem;
}

/* ---------- Work ---------- */
.work {
  background: var(--cream);
  padding-block: var(--section-y);
}
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.work-card {
  background: var(--cream-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.work-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.work-thumb {
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  background-color: #efe1cd;
  background-image: radial-gradient(
      circle,
      rgba(57, 38, 23, 0.22) 1.6px,
      transparent 2px
    ),
    radial-gradient(circle, rgba(57, 38, 23, 0.12) 1.6px, transparent 2px);
  background-size: 24px 24px, 24px 24px;
  background-position: 0 0, 12px 12px;
}
.work-thumb span {
  font-size: 0.76rem;
  color: var(--text-muted);
}
.work-meta {
  padding: 1.1rem 1.25rem 1.5rem;
}
.work-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}
.work-row h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
}
.work-year {
  font-size: 0.78rem;
  color: var(--text-muted);
}
.work-meta p {
  margin-top: 0.4rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* ---------- Process (dark) ---------- */
.process {
  background: var(--ink);
  color: var(--text-on-dark);
  padding-block: var(--section-y);
}
.step-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
.step {
  border-top: 1.5px solid var(--accent);
  padding-top: 1.1rem;
}
.step-num {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.7rem;
}
.step h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}
.step p {
  color: var(--text-on-dark-muted);
  font-size: 0.9rem;
}

/* ---------- Pricing ---------- */
.pricing {
  background: var(--cream);
  padding-block: var(--section-y);
}
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  align-items: start;
}
.price-card {
  position: relative;
  background: var(--cream-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 2rem 1.75rem;
}
.price-card-featured {
  border-color: var(--accent);
  border-width: 2px;
  box-shadow: var(--shadow-accent);
}
.price-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--white);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.4em 0.9em;
  border-radius: var(--r-pill);
  white-space: nowrap;
}
.price-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3rem;
}
.price-blurb {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 0.4rem;
  min-height: 2.6em;
}
.price {
  margin: 1.25rem 0;
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}
.price .amount {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.4rem;
  letter-spacing: -0.01em;
}
.price-unit {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.price-feats {
  display: grid;
  gap: 0.7rem;
  margin-bottom: 1.75rem;
}
.price-feats li {
  position: relative;
  padding-left: 1.6rem;
  font-size: 0.92rem;
  color: var(--text);
}
.price-feats li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* ---------- CTA (Section Library — contact Variation E: inverted split panel) ---------- */
.cta {
  padding-block: var(--section-y);
}
.cta-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
  background: var(--ink);
  color: var(--text-on-dark);
  border-radius: var(--r-lg);
  padding: clamp(2rem, 5vw, 4rem);
}

/* Left: copy + details */
.cta-copy {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.cta-copy h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.1;
  color: var(--text-on-dark);
}
.cta-copy p {
  color: var(--text-on-dark-muted);
  max-width: 36ch;
}
.cta-details {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.5rem;
  font-size: 0.95rem;
}
.cta-details a {
  color: var(--text-on-dark);
  border-bottom: 1px solid rgba(247, 243, 236, 0.28);
  padding-bottom: 1px;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.cta-details a:hover {
  color: var(--accent);
  border-color: var(--accent);
}
.cta-details .muted {
  color: var(--text-on-dark-muted);
}

/* Right: form */
.cta-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.field label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-on-dark);
}
.field .optional {
  font-weight: 400;
  color: var(--text-on-dark-muted);
}
.cta-form input,
.cta-form textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-on-dark);
  background: transparent;
  border: 1px solid rgba(247, 243, 236, 0.35);
  border-radius: var(--r-sm);
  padding: 0.7em 0.9em;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.cta-form textarea {
  resize: vertical;
  min-height: 88px;
}
.cta-form input:focus,
.cta-form textarea:focus {
  outline: none;
  border-color: var(--text-on-dark);
  box-shadow: 0 0 0 3px rgba(247, 243, 236, 0.14);
}
.cta-form input[aria-invalid="true"] {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(176, 99, 46, 0.25);
}
.field-error {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  min-height: 1em;
}

/* Light pill submit on the dark panel */
.cta-submit {
  align-self: flex-start;
  margin-top: 0.25rem;
  background: var(--cream);
  color: var(--ink);
}
.cta-submit:hover {
  background: var(--white);
}
.cta-status {
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0;
  min-height: 1.2em;
  color: var(--text-on-dark-muted);
}
.cta-status--success {
  color: var(--text-on-dark);
}
.cta-status--error {
  color: var(--accent);
}

/* Screen-reader-only utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 760px) {
  .cta-panel {
    grid-template-columns: 1fr;
  }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--cream);
  border-top: 1px solid var(--border);
  padding-top: 3.5rem;
  padding-bottom: 2rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
}
.footer-brand p {
  margin-top: 1rem;
  color: var(--text-muted);
  font-size: 0.92rem;
  max-width: 34ch;
}
.footer-head {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.footer-col ul {
  display: grid;
  gap: 0.6rem;
}
.footer-col a {
  font-size: 0.92rem;
  transition: color 0.15s ease;
}
.footer-col a:hover {
  color: var(--accent);
}
.footer-col .muted {
  color: var(--text-muted);
  font-size: 0.92rem;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.82rem;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 820px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: left;
  }
  .hero-devices {
    margin-top: 3rem;
    width: 100%;
    max-width: 440px;
  }
  .laptop {
    margin-inline: auto;
  }
}

@media (max-width: 900px) {
  :root {
    --section-y: 72px;
  }
  .service-grid,
  .price-grid {
    grid-template-columns: 1fr;
  }
  .work-grid {
    grid-template-columns: 1fr 1fr;
  }
  .step-grid {
    grid-template-columns: 1fr 1fr;
  }
  .price-card-featured {
    order: -1;
  }
}

@media (max-width: 640px) {
  .nav {
    position: fixed;
    inset: 72px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    background: var(--cream);
    border-bottom: 1px solid var(--border);
    padding: 1rem var(--gutter) 1.5rem;
    box-shadow: var(--shadow-md);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }
  .nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav a:not(.btn) {
    padding: 0.6rem 0;
  }
  .nav .btn {
    margin-top: 0.5rem;
  }
  .nav-toggle {
    display: flex;
  }

  .services-head,
  .work-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .work-grid,
  .step-grid,
  .service-extras {
    grid-template-columns: 1fr;
  }
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* =========================================================
   Dark mode — "cookies & cream after dark"
   Toggle sets <html data-theme="dark">; defaults to system.
   ========================================================= */
[data-theme="dark"] {
  --cream: #241710;        /* page bg — espresso */
  --cream-card: #2f2013;   /* lifted surface (cards) */
  --white: #f5ecdd;        /* stays light: used as on-accent text */
  --ink: #1a100a;          /* darkest feature surface (hero/process/cta) */
  --ink-soft: #2a1c11;
  --accent: #c47a3f;       /* nudge caramel brighter for dark bg */
  --accent-dark: #a86433;
  --accent-soft: #3a2716;

  --text: #f1e7d7;         /* primary text now light */
  --text-muted: #b6a48f;   /* warm cocoa, lightened */

  --border: #3a2a1b;
  --border-dark: #4a3826;
  --stripe: rgba(245, 236, 221, 0.05);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 18px 40px -24px rgba(0, 0, 0, 0.7);
  --shadow-accent: 0 24px 50px -24px rgba(196, 122, 63, 0.5);
}

/* Black wordmark → light it up on the dark header/footer */
[data-theme="dark"] .logo-img {
  filter: invert(1);
}

/* Surfaces that were hardcoded light or used var(--white) */
[data-theme="dark"] .site-header {
  background: rgba(36, 23, 16, 0.85);
}
[data-theme="dark"] .services {
  background: var(--cream-card);
}
[data-theme="dark"] .tags li {
  background: var(--cream-card);
}
[data-theme="dark"] .hero-curve path {
  fill: var(--cream-card);
}
[data-theme="dark"] .nav-toggle span {
  background: var(--text);
}

/* Header CTA + form pill need a visible fill on dark */
[data-theme="dark"] .btn-dark {
  background: var(--accent);
  color: #1a100a;
}
[data-theme="dark"] .btn-dark:hover {
  background: var(--accent-dark);
}
[data-theme="dark"] .cta-submit {
  background: var(--text-on-dark);
  color: var(--ink);
}
[data-theme="dark"] .cta-submit:hover {
  background: #ffffff;
}

/* Speckled placeholders → cream dapple on chocolate */
[data-theme="dark"] .device-screen-ph,
[data-theme="dark"] .work-thumb {
  background-color: #3a2716;
  background-image: radial-gradient(
      circle,
      rgba(245, 236, 221, 0.16) 1.6px,
      transparent 2px
    ),
    radial-gradient(circle, rgba(245, 236, 221, 0.09) 1.6px, transparent 2px);
}
[data-theme="dark"] .ph-pill {
  background: rgba(245, 236, 221, 0.18);
}
