/* ================================================================
   TRADESPERSON WEBSITE TEMPLATE — styles.css
   ================================================================

   HOW TO CUSTOMISE
   ──────────────────────────
   Do not edit this file per site. Colours, layout and style come
   from the `theme` block of the JSON data file — the generator
   injects them when it builds index.html (see README.md).

   ================================================================ */


/* ----------------------------------------------------------------
   THEME VARIABLES  —  change these to match your brand
   ---------------------------------------------------------------- */
:root {
  /* ── Primary palette ───────────────────────────────────────── */
  --clr-primary:       #1e293b;   /* deep navy — header, footer  */
  --clr-primary-light: #334155;   /* slightly lighter navy        */
  --clr-accent:        #f59e0b;   /* amber gold — buttons, icons  */
  --clr-accent-dark:   #d97706;   /* darker amber for hover       */
  --clr-accent-light:  #fef3c7;   /* pale amber tint              */

  /* RGB channels of the accent colours, used for translucent tints
     and glows. A generated site can override these (see the inline
     <style> block in the HTML) to re-tint every highlight at once.   */
  --clr-accent-rgb:      245, 158, 11;
  --clr-accent-dark-rgb: 217, 119, 6;

  /* ── Pop colour ─────────────────────────────────────────────── */
  /* Optional third colour used for small highlights that should
     stand apart from the buttons: section labels, accent words in
     headings, hero stat numbers, review stars and focus rings.
     Defaults to the accent, so sites without `theme.pop` look the
     same as before. Set theme.pop for a black/grey site with a red
     flash (think MKBHD or Nothing-phone marketing).                */
  --clr-pop:      var(--clr-accent);
  --clr-pop-dark: var(--clr-accent-dark);
  --clr-pop-rgb:  var(--clr-accent-rgb);

  /* ── Backgrounds ────────────────────────────────────────────── */
  --clr-bg:            #ffffff;   /* main page background         */
  --clr-surface:       #f8fafc;   /* alternating section bg       */
  --clr-border:        #e2e8f0;   /* divider / input borders      */

  /* ── Text ───────────────────────────────────────────────────── */
  --clr-text:          #1e293b;   /* main body copy               */
  --clr-text-muted:    #64748b;   /* secondary / caption text     */
  --clr-text-on-dark:  #ffffff;   /* text on dark backgrounds     */

  /* ── Typography ─────────────────────────────────────────────── */
  --font:          -apple-system, BlinkMacSystemFont, 'Segoe UI',
                   system-ui, Roboto, 'Helvetica Neue', Arial, sans-serif;
  /* Heading font — defaults to the body font. A generated site can
     override --font-heading to pair a distinct display/serif face
     with the body text (see the inline <style> block in the HTML).   */
  --font-heading:  var(--font);
  --font-size-sm:  0.875rem;
  --font-size-md:  1rem;
  --font-size-lg:  1.125rem;
  --font-size-xl:  1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --font-size-4xl: 2.25rem;
  --font-size-5xl: 3rem;
  --line-height:   1.65;

  /* ── Layout ─────────────────────────────────────────────────── */
  --max-width:     1200px;
  --gutter:        clamp(1rem, 5vw, 1.5rem);
  --section-py:    clamp(3.5rem, 8vw, 6rem);

  /* ── Radius ─────────────────────────────────────────────────── */
  --radius-sm:  0.375rem;
  --radius-md:  0.625rem;
  --radius-lg:  1rem;
  --radius-xl:  1.5rem;

  /* ── Shadows ────────────────────────────────────────────────── */
  --shadow-sm:  0 1px 3px rgba(0,0,0,.07), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md:  0 4px 12px rgba(0,0,0,.08), 0 2px 4px rgba(0,0,0,.04);
  --shadow-lg:  0 12px 24px rgba(0,0,0,.10), 0 4px 8px rgba(0,0,0,.05);
  --shadow-xl:  0 24px 48px rgba(0,0,0,.12);

  /* ── Transitions ────────────────────────────────────────────── */
  --ease: 0.22s ease;
}


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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  font-size: var(--font-size-md);
  line-height: var(--line-height);
  color: var(--clr-text);
  background: var(--clr-bg);
}

/* Headings inherit the display face (defaults to the body font). */
h1, h2, h3 {
  font-family: var(--font-heading);
}

img, picture, video {
  display: block;
  max-width: 100%;
  height: auto;
}

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

ul { list-style: none; }

input, select, textarea, button {
  font: inherit;
}

button { cursor: pointer; }


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

.section {
  padding-block: var(--section-py);
}

.section-alt {
  background-color: var(--clr-surface);
}

.section-header {
  text-align: center;
  max-width: 650px;
  margin-inline: auto;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-header h2 {
  font-size: clamp(var(--font-size-2xl), 4vw, var(--font-size-4xl));
  font-weight: 700;
  line-height: 1.2;
  margin-block: .5rem .75rem;
}

.section-header p {
  color: var(--clr-text-muted);
  font-size: var(--font-size-lg);
}

.section-label {
  display: inline-block;
  font-size: var(--font-size-sm);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--clr-pop);
}

.text-accent { color: var(--clr-pop); }

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


/* ----------------------------------------------------------------
   BUTTONS
   ---------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .75rem 1.75rem;
  border-radius: var(--radius-md);
  font-size: var(--font-size-md);
  font-weight: 600;
  transition: background var(--ease), color var(--ease),
              box-shadow var(--ease), transform var(--ease);
  white-space: nowrap;
  border: 2px solid transparent;
  text-decoration: none;
}

.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--clr-accent);
  color: var(--clr-primary);
  border-color: var(--clr-accent);
}

.btn-primary:hover, .btn-primary:focus-visible {
  background: var(--clr-accent-dark);
  border-color: var(--clr-accent-dark);
  box-shadow: 0 4px 12px rgba(var(--clr-accent-rgb),.35);
}

.btn-secondary {
  background: transparent;
  color: var(--clr-text-on-dark);
  border-color: rgba(255,255,255,.45);
}

.btn-secondary:hover, .btn-secondary:focus-visible {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.75);
}

.btn-outline {
  background: transparent;
  color: var(--clr-accent);
  border-color: var(--clr-accent);
}

.btn-outline:hover, .btn-outline:focus-visible {
  background: var(--clr-accent);
  color: var(--clr-primary);
}

.btn-full { width: 100%; }


/* ----------------------------------------------------------------
   NAVIGATION
   ---------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--clr-primary);
  box-shadow: 0 2px 12px rgba(0,0,0,.25);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-weight: 700;
  font-size: var(--font-size-xl);
  color: var(--clr-text-on-dark);
  flex-shrink: 0;
}

.logo-accent { color: var(--clr-pop); }

.nav-menu {
  display: flex;
  align-items: center;
  gap: .25rem;
}

.nav-link {
  padding: .5rem .85rem;
  border-radius: var(--radius-sm);
  color: rgba(255,255,255,.82);
  font-size: var(--font-size-sm);
  font-weight: 500;
  transition: color var(--ease), background var(--ease);
}

.nav-link:hover, .nav-link:focus-visible {
  color: var(--clr-text-on-dark);
  background: rgba(255,255,255,.08);
}

.nav-cta {
  background: var(--clr-accent);
  color: var(--clr-primary) !important;
  font-weight: 700;
  padding: .5rem 1.1rem;
}

.nav-cta:hover, .nav-cta:focus-visible {
  background: var(--clr-accent-dark);
  color: var(--clr-primary) !important;
}

/* ── Top bar ──────────────────────────────────────────────────── */
/* Slim utility strip above the header (tagline + phone + email) —
   the classic local-showroom look. Enabled per site by adding a
   "topbar" object to the data file. */
.topbar {
  background: var(--clr-primary);
  color: rgba(255,255,255,.9);
  font-size: var(--font-size-sm);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: .45rem;
}

.topbar-tagline {
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-size: var(--font-size-xs, .78rem);
}

.topbar-contact {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-left: auto;
}

.topbar-contact a {
  color: rgba(255,255,255,.9);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}

.topbar-contact a:hover { color: #fff; }

@media (max-width: 640px) {
  .topbar-tagline { display: none; }
  .topbar-email   { display: none; }
  .topbar-inner   { justify-content: center; }
  .topbar-contact { margin-left: 0; }
}

/* ── Light "bar" header ───────────────────────────────────────── */
/* theme.header = "light": the header becomes a white bar with dark
   text (instead of the dark menu bar), usually paired with a topbar. */
.header-light .site-header {
  background: var(--clr-bg);
  box-shadow: 0 1px 0 var(--clr-border), 0 2px 12px rgba(0,0,0,.06);
}

.header-light .nav-logo { color: var(--clr-text); }

.header-light .nav-link { color: var(--clr-text-muted); }

.header-light .nav-link:hover,
.header-light .nav-link:focus-visible {
  color: var(--clr-text);
  background: rgba(0,0,0,.05);
}

.header-light .nav-cta {
  background: var(--clr-accent);
  color: #fff !important;
}

.header-light .nav-cta:hover,
.header-light .nav-cta:focus-visible {
  background: var(--clr-accent-dark);
}

.header-light .theme-toggle {
  border-color: var(--clr-border);
  color: var(--clr-text);
}

.header-light .theme-toggle:hover {
  background: rgba(0,0,0,.05);
  border-color: var(--clr-text-muted);
}

/* ── Announcement bar ─────────────────────────────────────────── */
/* Temporary site-wide notice (holidays, response times, offers).
   Always present in the HTML so it can be hand-edited after
   generation — hidden for free when empty. */
.announcement-bar {
  background: var(--clr-accent-light);
  color: var(--clr-text);
  text-align: center;
  padding: .55rem var(--gutter);
  font-size: var(--font-size-sm);
  font-weight: 500;
  border-bottom: 1px solid var(--clr-border);
}

.announcement-bar:empty {
  display: none;
}

/* ── Mobile nav ─────────────────────────────────────────────── */
.nav-toggle       { display: none; }
.nav-toggle-label { display: none; }

@media (max-width: 768px) {
  .nav-toggle-label {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 2.25rem;
    height: 2.25rem;
    cursor: pointer;
    padding: .35rem;
    border-radius: var(--radius-sm);
    z-index: 110;
    transition: background var(--ease);
  }

  .nav-toggle-label:hover { background: rgba(255,255,255,.1); }

  .nav-toggle-label span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--clr-text-on-dark);
    border-radius: 2px;
    transition: transform var(--ease), opacity var(--ease);
  }

  /* animated hamburger → X */
  .nav-toggle:checked + .nav-toggle-label span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .nav-toggle:checked + .nav-toggle-label span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle:checked + .nav-toggle-label span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .nav-menu {
    position: absolute;
    top: 4rem;
    left: 0;
    right: 0;
    background: var(--clr-primary);
    flex-direction: column;
    align-items: stretch;
    gap: .25rem;
    padding: 1rem var(--gutter) 1.5rem;
    border-top: 1px solid rgba(255,255,255,.1);
    box-shadow: 0 8px 24px rgba(0,0,0,.3);

    /* hidden by default */
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease, padding .3s ease;
    padding-block: 0;
  }

  .nav-toggle:checked ~ .nav-menu {
    max-height: 30rem;
    padding-block: 1rem 1.5rem;
  }

  .nav-link {
    padding: .75rem 1rem;
    border-radius: var(--radius-sm);
    font-size: var(--font-size-md);
  }

  .nav-cta {
    margin-top: 1.25rem;
    text-align: center;
  }

  /* light "bar" header — dark hamburger + light dropdown */
  .header-light .nav-toggle-label:hover { background: rgba(0,0,0,.05); }
  .header-light .nav-toggle-label span  { background: var(--clr-text); }
  .header-light .nav-menu {
    background: var(--clr-bg);
    border-top: 1px solid var(--clr-border);
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
  }
}


/* ----------------------------------------------------------------
   HERO
   ---------------------------------------------------------------- */
.hero {
  position: relative;
  background: var(--clr-primary);
  color: var(--clr-text-on-dark);
  overflow: hidden;
  padding-block: clamp(4rem, 12vw, 8rem);
}

/* subtle decorative gradient blob */
.hero::before {
  content: '';
  position: absolute;
  inset: -20% -10%;
  background: radial-gradient(
    ellipse 70% 50% at 80% 30%,
    rgba(var(--clr-accent-rgb),.12) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--clr-pop), var(--clr-pop-dark));
}

/* ── Photo hero ─────────────────────────────────────────────────────────
   Set hero.image in the data file to place a full-bleed photograph
   of the work behind the hero copy — makes the page feel large and
   open. A dark scrim keeps the text readable. */
.hero--photo {
  min-height: min(85vh, 50rem);
  display: flex;
  align-items: center;
}

.hero--photo .hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* dark scrim over the photo so the copy stays readable */
.hero--photo::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(100deg,
    rgba(13, 15, 19, .90) 0%,
    rgba(13, 15, 19, .64) 46%,
    rgba(13, 15, 19, .28) 100%);
  pointer-events: none;
}

.hero--photo .hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
}

/* centred layout reads better under an even scrim */
.layout-centered .hero--photo::before {
  background: rgba(13, 15, 19, .68);
}

/* on small screens the copy spans the full width, so the sideways
   scrim isn't enough — use a heavier, even one */
@media (max-width: 768px) {
  .hero--photo::before {
    background: linear-gradient(180deg,
      rgba(13, 15, 19, .82) 0%,
      rgba(13, 15, 19, .66) 100%);
  }
}

.hero-content {
  position: relative;
  max-width: 760px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: rgba(var(--clr-pop-rgb),.18);
  color: var(--clr-pop);
  border: 1px solid rgba(var(--clr-pop-rgb),.3);
  padding: .3rem .9rem;
  border-radius: 100vw;
  font-size: var(--font-size-sm);
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.hero-title {
  font-size: clamp(var(--font-size-3xl), 6vw, var(--font-size-5xl));
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.02em;
  margin-bottom: 1.25rem;
}

.hero-title .text-accent { color: var(--clr-pop); }

.hero-subtitle {
  font-size: clamp(var(--font-size-md), 2vw, var(--font-size-xl));
  color: rgba(255,255,255,.75);
  max-width: 580px;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,.12);
}

.hero-stats .stat {
  display: flex;
  flex-direction: column;
  gap: .15rem;
}

.hero-stats .stat strong {
  font-size: var(--font-size-2xl);
  font-weight: 800;
  color: var(--clr-pop);
  line-height: 1;
}

.hero-stats .stat span {
  font-size: var(--font-size-sm);
  color: rgba(255,255,255,.6);
}


/* ----------------------------------------------------------------
   ABOUT
   ---------------------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.about-image {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4/5;
  background: var(--clr-surface);
  box-shadow: var(--shadow-xl);
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Portrait images (phone screenshots, tall photos) — set
   about.portrait to true in the data file to show the whole image
   letterboxed instead of cropping it to the 4/5 frame. */
.about-image--portrait {
  aspect-ratio: 3/4;
}

.about-image--portrait img {
  object-fit: contain;
  padding: 1rem 0;
}

/* placeholder when no image */
.about-image::after {
  content: '📷';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: var(--clr-border);
  background: var(--clr-surface);
}

.about-image img + *,
.about-image img ~ *,
.about-image:has(img[src])::after { display: none; }

.about-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.about-content h2 {
  font-size: clamp(var(--font-size-2xl), 3.5vw, var(--font-size-4xl));
  font-weight: 700;
  line-height: 1.2;
}

.about-content p {
  color: var(--clr-text-muted);
  font-size: var(--font-size-lg);
}

.about-badges {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-block: .5rem 1rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  background: var(--clr-accent-light);
  color: var(--clr-accent-dark);
  border: 1px solid rgba(var(--clr-accent-dark-rgb),.2);
  padding: .35rem .85rem;
  border-radius: 100vw;
  font-size: var(--font-size-sm);
  font-weight: 600;
}

@media (max-width: 700px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
  .about-image {
    aspect-ratio: 16/9;
    max-height: 280px;
  }
}


/* ----------------------------------------------------------------
   SERVICES
   ---------------------------------------------------------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 1.5rem;
}

.service-card {
  position: relative;         /* anchor for the stretched quote link */
  background: var(--clr-bg);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  transition: box-shadow var(--ease), transform var(--ease),
              border-color var(--ease);
}

.service-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  border-color: rgba(var(--clr-accent-rgb),.35);
}

/* Small pill flagging something notable about a service (e.g. a
   flexible payment option) — set "tag" on a service item to show it. */
.service-tag {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  /* keep the pill compact and clear of the icon chip (3.25rem wide,
     top-left) — longer tags like "Flexible Payment Plans" were
     overlapping it on desktop card widths */
  max-width: calc(100% - 6rem);
  text-align: center;
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: var(--clr-pop);
  background: rgba(var(--clr-pop-rgb),.15);
  border: 1px solid rgba(var(--clr-pop-rgb),.3);
  padding: .25rem .55rem;
  border-radius: 999px;
}

.service-icon {
  font-size: 2.25rem;
  line-height: 1;
  color: var(--clr-accent);
}

/* When a site supplies inline SVG icons (instead of emoji), present
   them in a subtle tinted chip for a cleaner, more corporate look.
   The :has() scope leaves emoji-based sites completely unchanged.    */
.service-icon:has(svg) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  background: var(--clr-accent-light);
  border-radius: var(--radius-md);
}

.service-icon svg {
  width: 1.7rem;
  height: 1.7rem;
}

.service-card h3 {
  font-size: var(--font-size-xl);
  font-weight: 700;
}

.service-card p {
  color: var(--clr-text-muted);
  font-size: var(--font-size-sm);
  flex: 1;
}

.service-price {
  font-size: var(--font-size-sm);
  color: var(--clr-text-muted);
  padding: .4rem .8rem;
  background: var(--clr-accent-light);
  border-radius: var(--radius-sm);
  width: fit-content;
}

.service-price strong {
  /* Use the theme's main text colour rather than accent-dark: on
     near-monochrome themes (accent-dark close to black) the price
     became unreadable against the low-opacity accent-light chip in
     dark mode. --clr-text always tracks light/dark mode correctly. */
  color: var(--clr-text);
  font-size: var(--font-size-md);
}

/* struck-out previous price for sales/discounts — set "was_price"
   on a service item in the data file */
.service-price .price-was {
  color: var(--clr-text-muted);
  text-decoration: line-through;
  margin-left: .35rem;
  opacity: .8;
}

/* Alternative payment plans for a service (e.g. "pay upfront" vs
   "spread the cost monthly") — set "price_plans" (a list of
   {label, price, note}) on a service item instead of/alongside "price". */
.service-price-plans {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.price-plan {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .1rem .5rem;
  font-size: var(--font-size-sm);
  color: var(--clr-text-muted);
  padding: .5rem .8rem;
  background: var(--clr-accent-light);
  border-radius: var(--radius-sm);
}

.price-plan + .price-plan {
  position: relative;
  /* extra headroom on top of the flex gap so the "or" divider has
     proper breathing room instead of looking squashed between boxes */
  margin-top: 1rem;
}

.price-plan + .price-plan::before {
  content: 'or';
  position: absolute;
  top: -1.2rem;
  left: .8rem;
  font-size: var(--font-size-xs, .78rem);
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--clr-text-muted);
}

.price-plan-label {
  font-weight: 600;
  color: var(--clr-text);
}

.price-plan-price {
  color: var(--clr-text);
  font-size: var(--font-size-md);
}

/* Optional "was" price shown struck through before the sale price —
   set "price_was" alongside "price" on a price plan in the data file. */
.price-plan-was {
  text-decoration: line-through;
  color: var(--clr-text-muted);
  font-size: var(--font-size-sm);
  font-weight: 400;
}

.price-plan-note {
  width: 100%;
  font-size: var(--font-size-xs, .78rem);
  color: var(--clr-text-muted);
}

/* Optional outbound reference link (e.g. to Google Workspace) shown
   under a service's description — set "external_link_href" (+
   "external_link_text") on a service item to show it. Needs its own
   stacking context so it stays clickable above the card-wide quote
   link overlay (see .service-link::after below). */
.service-external-link {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  width: fit-content;
  color: var(--clr-accent);
  font-weight: 600;
  font-size: var(--font-size-xs, .78rem);
  text-decoration: underline;
  text-underline-offset: .15em;
}

.service-external-link:hover { color: var(--clr-accent-dark); }

.service-link {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  color: var(--clr-accent);
  font-weight: 600;
  font-size: var(--font-size-sm);
  transition: gap var(--ease), color var(--ease);
  margin-top: auto;
}

.service-link:hover { gap: .6rem; color: var(--clr-accent-dark); }

/* Stretch the quote link over the whole card so clicking anywhere
   on a service card jumps to the quote form (and triggers the
   prefill JS, since the click lands on the link itself). */
.service-link::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
}

.service-card:hover .service-link { gap: .6rem; color: var(--clr-accent-dark); }


/* ----------------------------------------------------------------
   GALLERY
   ---------------------------------------------------------------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

@media (max-width: 900px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 500px) {
  .gallery-grid { grid-template-columns: 1fr; }
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  aspect-ratio: 4/3;
  background: var(--clr-surface);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}

.gallery-item:hover img {
  transform: scale(1.06);
}

/* Portrait images (phone screenshots, tall photos) — set
   "portrait": true on the gallery item in the data file to show the
   whole image letterboxed on the card instead of cropping it. */
.gallery-item--portrait img {
  object-fit: contain;
  padding: .75rem 0;
}

.gallery-item--portrait:hover img {
  transform: scale(1.02);
}

/* caption overlay */
.gallery-item figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem .9rem .75rem;
  background: linear-gradient(transparent, rgba(0,0,0,.7));
  color: #fff;
  font-size: var(--font-size-sm);
  font-weight: 500;
  transform: translateY(100%);
  transition: transform .28s ease;
}

.gallery-item:hover figcaption {
  transform: translateY(0);
}

/* keyboard focus — photos are clickable (lightbox) */
.gallery-item:focus-visible {
  outline: 3px solid var(--clr-accent);
  outline-offset: 2px;
}

/* ── Lightbox — native <dialog>, opens on gallery photo click ──── */
.lightbox {
  border: 0;
  padding: 0;
  margin: auto;                    /* re-centre (global reset removes it) */
  background: transparent;
  max-width: min(92vw, 70rem);
  max-height: 92vh;
  overflow: visible;
}

.lightbox::backdrop {
  background: rgba(8, 9, 12, .86);
}

.lightbox figure {
  margin: 0;
}

.lightbox img {
  display: block;
  margin: 0 auto;
  max-width: min(92vw, 70rem);
  max-height: 82vh;
  width: auto;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 64px rgba(0, 0, 0, .55);
}

.lightbox figcaption {
  color: rgba(255, 255, 255, .85);
  text-align: center;
  padding: .85rem .5rem 0;
  font-size: var(--font-size-sm);
}

.lightbox-close {
  position: absolute;
  top: -.75rem;
  right: -.75rem;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 50%;
  background: rgba(20, 22, 27, .9);
  color: #fff;
  cursor: pointer;
}

.lightbox-close svg {
  width: 1.1rem;
  height: 1.1rem;
}

.lightbox-close:hover {
  background: rgba(50, 54, 62, .95);
}

/* placeholder icon when image is missing */
.gallery-item::before {
  content: '🏗️';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--clr-border);
}

.gallery-item:has(img[src])::before { display: none; }


/* ----------------------------------------------------------------
   REVIEWS
   ---------------------------------------------------------------- */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

/* More than three reviews — the generator adds this class and the
   grid becomes a horizontal scroll-snap carousel. Pure CSS: native
   scrolling and GPU compositing, so there's no added latency. */
.reviews-grid--scroll {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scroll-padding-inline: .25rem;
  padding-bottom: 1rem;            /* room for the scrollbar */
  scrollbar-width: thin;
  scrollbar-color: var(--clr-border) transparent;
}

.reviews-grid--scroll .review-card {
  flex: 0 0 min(100%, 21rem);
  scroll-snap-align: start;
}

.reviews-grid--scroll::-webkit-scrollbar {
  height: 8px;
}

.reviews-grid--scroll::-webkit-scrollbar-thumb {
  background: var(--clr-border);
  border-radius: 4px;
}

.reviews-grid--scroll::-webkit-scrollbar-track {
  background: transparent;
}

.review-card {
  background: var(--clr-bg);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--ease);
}

.review-card:hover { box-shadow: var(--shadow-md); }

.review-stars {
  color: var(--clr-pop);
  font-size: var(--font-size-xl);
  letter-spacing: .05em;
}

.review-card blockquote p {
  color: var(--clr-text-muted);
  font-size: var(--font-size-sm);
  line-height: 1.7;
  font-style: italic;
}

.review-author {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-top: auto;
}

.review-avatar {
  width: 2.5rem;
  height: 2.5rem;
  background: var(--clr-primary);
  color: var(--clr-text-on-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-sm);
  font-weight: 700;
  flex-shrink: 0;
}

.review-author div {
  display: flex;
  flex-direction: column;
}

.review-author strong { font-size: var(--font-size-sm); }

.review-author span {
  font-size: var(--font-size-sm);
  color: var(--clr-text-muted);
}

.reviews-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.review-platform {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .65rem 1.4rem;
  background: var(--clr-bg);
  border: 1.5px solid var(--clr-border);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: var(--font-size-sm);
  color: var(--clr-text);
  transition: border-color var(--ease), box-shadow var(--ease);
}

.review-platform:hover {
  border-color: var(--clr-accent);
  box-shadow: 0 0 0 3px rgba(var(--clr-accent-rgb),.12);
}


/* ----------------------------------------------------------------
   CONTACT
   ---------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* ── Form ──────────────────────────────────────────────────────── */
.contact-form {
  background: var(--clr-bg);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-xl);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

@media (max-width: 560px) {
  .form-row { grid-template-columns: 1fr; }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: .4rem;
}

.form-group label {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--clr-text);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: .65rem .9rem;
  border: 1.5px solid var(--clr-border);
  border-radius: var(--radius-md);
  font-size: var(--font-size-md);
  color: var(--clr-text);
  background: var(--clr-bg);
  transition: border-color var(--ease), box-shadow var(--ease);
  width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--clr-accent);
  box-shadow: 0 0 0 3px rgba(var(--clr-accent-rgb),.15);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3E%3Cpath fill='%2364748b' d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .75rem center;
  background-size: 1rem;
  padding-right: 2.5rem;
}

.form-note {
  font-size: var(--font-size-sm);
  color: var(--clr-text-muted);
  text-align: center;
}

.contact-form .form-status {
  margin: 0 0 1rem;
  padding: .85rem 1rem;
  border-radius: var(--radius-md);
  font-size: var(--font-size-sm);
  font-weight: 500;
  background: rgba(220, 38, 38, .1);
  color: #b91c1c;
  border: 1px solid rgba(220, 38, 38, .35);
}

/* success variant — swaps the default red error styling for green */
.contact-form .form-status.is-success {
  background: rgba(22, 163, 74, .1);
  color: #15803d;
  border-color: rgba(22, 163, 74, .35);
}

.contact-form .form-status[hidden] { display: none; }

/* submission feedback */
.contact-form .form-success,
.contact-form .form-error {
  display: none;
  padding: .85rem 1rem;
  border-radius: var(--radius-md);
  font-size: var(--font-size-sm);
  font-weight: 500;
}

/* ── Contact details panel ────────────────────────────────────── */
.contact-details {
  background: var(--clr-primary);
  color: var(--clr-text-on-dark);
  border-radius: var(--radius-xl);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-details h3 {
  font-size: var(--font-size-xl);
  font-weight: 700;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255,255,255,.12);
}

.contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--clr-accent-rgb),.18);
  border-radius: var(--radius-sm);
}

/* ── Inline SVG icons ─────────────────────────────────────────────
   Emoji-free icons render identically in every browser (colour-emoji
   fonts are unreliable — e.g. Brave's fingerprint protection can
   block them entirely). SVGs inherit currentColor. */
.contact-icon svg  { width: 1.2rem; height: 1.2rem; color: var(--clr-accent); }
.theme-toggle .icon-moon,
.theme-toggle .icon-sun { line-height: 0; }
.theme-toggle svg  { width: 1.05rem; height: 1.05rem; }
.btn-icon          { width: 1em; height: 1em; vertical-align: -0.125em; }
.nav-logo svg      { width: 1.2em; height: 1.2em; flex-shrink: 0; }
.contact-emergency strong {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}

.contact-item > div {
  display: flex;
  flex-direction: column;
  gap: .2rem;
}

.contact-item strong {
  font-size: var(--font-size-sm);
  font-weight: 700;
  color: var(--clr-accent);
}

.contact-item a,
.contact-item span {
  color: rgba(255,255,255,.8);
  font-size: var(--font-size-sm);
}

.contact-item a:hover { color: var(--clr-accent); }

.contact-emergency {
  margin-top: .5rem;
  padding: 1.25rem;
  background: rgba(var(--clr-accent-rgb),.15);
  border: 1px solid rgba(var(--clr-accent-rgb),.3);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: .4rem;
}

.contact-emergency strong {
  font-size: var(--font-size-sm);
  color: var(--clr-accent);
}

.emergency-number {
  font-size: var(--font-size-2xl);
  font-weight: 800;
  color: var(--clr-text-on-dark) !important;
  letter-spacing: .02em;
}

.emergency-number:hover { color: var(--clr-accent) !important; }


/* ----------------------------------------------------------------
   FOOTER
   ---------------------------------------------------------------- */
.site-footer {
  background: var(--clr-primary);
  color: rgba(255,255,255,.7);
  padding-block: clamp(3rem, 6vw, 5rem) 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
  margin-bottom: 1.5rem;
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 500px) {
  .footer-grid { grid-template-columns: 1fr; gap: 1.75rem; }
}

.footer-logo {
  font-size: var(--font-size-xl);
  font-weight: 800;
  color: var(--clr-text-on-dark);
  margin-bottom: .75rem;
}

.footer-brand p {
  font-size: var(--font-size-sm);
  line-height: 1.7;
  max-width: 28ch;
}

.site-footer h4 {
  font-size: var(--font-size-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--clr-text-on-dark);
  margin-bottom: .9rem;
}

.footer-links ul,
.footer-services ul {
  display: flex;
  flex-direction: column;
  gap: .45rem;
}

.footer-links a {
  font-size: var(--font-size-sm);
  transition: color var(--ease);
}

.footer-links a:hover { color: var(--clr-accent); }

.footer-services li { font-size: var(--font-size-sm); }

.footer-contact p {
  font-size: var(--font-size-sm);
  margin-bottom: .45rem;
}

.footer-contact a { transition: color var(--ease); }
.footer-contact a:hover { color: var(--clr-accent); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .5rem;
  font-size: var(--font-size-sm);
}


/* ----------------------------------------------------------------
   DARK MODE
   ──────────────────────────────────────────────────────────────
   Works in two ways:
     1. Automatically when the visitor's OS is set to dark mode
        (prefers-color-scheme: dark) — no JS needed.
     2. Manually when the JS toggle sets data-theme="dark" on <html>
        (overrides the OS preference and persists in localStorage).

   To keep your site light-only, delete this entire block.
   ---------------------------------------------------------------- */

/* shared variable overrides for dark theme */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --clr-bg:           #0f172a;
    --clr-surface:      #1e293b;
    --clr-border:       #334155;
    --clr-text:         #f1f5f9;
    --clr-text-muted:   #94a3b8;
    --clr-accent-light: rgba(var(--clr-accent-rgb),.15);
    --shadow-sm: 0 1px 3px rgba(0,0,0,.4);
    --shadow-md: 0 4px 12px rgba(0,0,0,.5);
    --shadow-lg: 0 12px 24px rgba(0,0,0,.6);
    --shadow-xl: 0 24px 48px rgba(0,0,0,.7);
  }
}

/* manual dark override — applied by the JS toggle */
[data-theme="dark"] {
  --clr-bg:           #0f172a;
  --clr-surface:      #1e293b;
  --clr-border:       #334155;
  --clr-text:         #f1f5f9;
  --clr-text-muted:   #94a3b8;
  --clr-accent-light: rgba(var(--clr-accent-rgb),.15);
  --shadow-sm: 0 1px 3px rgba(0,0,0,.4);
  --shadow-md: 0 4px 12px rgba(0,0,0,.5);
  --shadow-lg: 0 12px 24px rgba(0,0,0,.6);
  --shadow-xl: 0 24px 48px rgba(0,0,0,.7);
}

/* explicit light override — applied by the JS toggle when OS is dark */
[data-theme="light"] {
  --clr-bg:           #ffffff;
  --clr-surface:      #f8fafc;
  --clr-border:       #e2e8f0;
  --clr-text:         #1e293b;
  --clr-text-muted:   #64748b;
  --clr-accent-light: #fef3c7;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.07), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,.08), 0 2px 4px rgba(0,0,0,.04);
  --shadow-lg: 0 12px 24px rgba(0,0,0,.10), 0 4px 8px rgba(0,0,0,.05);
  --shadow-xl: 0 24px 48px rgba(0,0,0,.12);
}

/* ── Dark mode toggle button ─────────────────────────────────── */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1.5px solid rgba(255,255,255,.25);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--clr-text-on-dark);
  font-size: 1rem;
  cursor: pointer;
  transition: background var(--ease), border-color var(--ease);
  flex-shrink: 0;
}

.theme-toggle:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.5);
}

/* icon swap — JS adds data-theme to <html> */
.theme-toggle .icon-moon  { display: inline; }
.theme-toggle .icon-sun   { display: none;   }

[data-theme="dark"] .theme-toggle .icon-moon  { display: none;   }
[data-theme="dark"] .theme-toggle .icon-sun   { display: inline; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .theme-toggle .icon-moon { display: none;   }
  :root:not([data-theme]) .theme-toggle .icon-sun  { display: inline; }
}


/* ----------------------------------------------------------------
   FOCUS STYLES (accessibility)
   ---------------------------------------------------------------- */
:focus-visible {
  outline: 2px solid var(--clr-pop);
  outline-offset: 3px;
}


/* ----------------------------------------------------------------
   PRINT
   ---------------------------------------------------------------- */
@media print {
  .site-header, .nav, .hero-actions, .contact-form,
  .gallery-section, .reviews-cta, .site-footer { display: none; }

  body { font-size: 11pt; color: #000; }
  a[href]::after { content: " (" attr(href) ")"; }
}


/* ----------------------------------------------------------------
   PRESENTATION VARIANTS
   ----------------------------------------------------------------
   These let a single template dress up differently per site by
   setting `theme.layout` and `theme.style` in the JSON data file.
   The generator emits matching body classes (layout-* / style-*),
   so no HTML or CSS needs editing to switch a site's look.

   layout-left     (default) hero copy aligned to the left
   layout-centered           hero copy centred, stats centred
   layout-split              hero copy left, wider measure

   style-classic   (default) the original amber/navy treatment
   style-soft                larger radii, gentler shadows, calmer
                             accent — pairs well with muted palettes
   style-sharp               square edges, tighter, flatter shadows
   style-bold                uppercase headings, heavy weights —
                             loud, confident, MKBHD-poster energy
   style-elegant             lighter weights, wide letter-spacing —
                             quiet, premium, boutique feel

   mode-light      (default) light page, dark hero/footer
   mode-dark                 dark-first site — black/grey page that
                             stays dark unless the visitor manually
                             toggles light mode

   buttons-solid   (default) filled accent buttons
   buttons-outline           transparent buttons with accent border
   buttons-pill              fully rounded, capsule-shaped buttons
   ---------------------------------------------------------------- */

/* ── Hero layout: centered ─────────────────────────────────────── */
.layout-centered .hero-content {
  max-width: 820px;
  margin-inline: auto;
  text-align: center;
}
.layout-centered .hero-subtitle {
  margin-inline: auto;
}
.layout-centered .hero-actions,
.layout-centered .hero-stats {
  justify-content: center;
}

/* ── Hero layout: split ────────────────────────────────────────── */
.layout-split .hero-content {
  max-width: 960px;
}
.layout-split .hero-subtitle {
  max-width: 680px;
}

/* ── Style: soft ───────────────────────────────────────────────── */
/* Bigger radii and softer shadows for a calmer, more premium feel —
   ideal alongside the muted accent palettes. */
.style-soft {
  --radius-sm: 0.6rem;
  --radius-md: 0.95rem;
  --radius-lg: 1.35rem;
  --radius-xl: 2rem;
  --shadow-md: 0 6px 20px rgba(0,0,0,.06), 0 2px 6px rgba(0,0,0,.03);
  --shadow-lg: 0 16px 36px rgba(0,0,0,.08), 0 6px 12px rgba(0,0,0,.04);
  --shadow-xl: 0 28px 60px rgba(0,0,0,.10);
}
.style-soft .service-card,
.style-soft .btn {
  transition: transform var(--ease), box-shadow var(--ease);
}

/* ── Style: sharp ──────────────────────────────────────────────── */
/* Square, flat and utilitarian — reads as bold and no-nonsense. */
.style-sharp {
  --radius-sm: 0;
  --radius-md: 0;
  --radius-lg: 0;
  --radius-xl: 0;
  --shadow-sm: 0 1px 0 rgba(0,0,0,.10);
  --shadow-md: 0 2px 0 rgba(0,0,0,.10);
  --shadow-lg: 0 3px 0 rgba(0,0,0,.12);
  --shadow-xl: 0 4px 0 rgba(0,0,0,.14);
}
.style-sharp .hero-badge {
  border-radius: 0;
}

/* ── Style: bold ───────────────────────────────────────────────── */
/* Loud and confident — uppercase display headings, heavy weights and
   tight tracking. Pairs brilliantly with mode-dark plus a pop colour
   (think MKBHD or Nothing-phone marketing). */
.style-bold h1,
.style-bold h2 {
  text-transform: uppercase;
  letter-spacing: -.01em;
}
.style-bold .hero-title {
  font-weight: 900;
  line-height: 1.05;
}
.style-bold .section-label {
  letter-spacing: .2em;
}
.style-bold .btn,
.style-bold .nav-cta {
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: .06em;
  font-size: var(--font-size-sm);
}

/* ── Style: elegant ────────────────────────────────────────────── */
/* Quiet and premium — lighter heading weights, generous tracking on
   labels, hairline borders and barely-there shadows. */
.style-elegant {
  --shadow-sm: 0 1px 2px rgba(0,0,0,.05);
  --shadow-md: 0 3px 10px rgba(0,0,0,.05);
  --shadow-lg: 0 10px 24px rgba(0,0,0,.07);
  --shadow-xl: 0 18px 40px rgba(0,0,0,.08);
}
.style-elegant h1,
.style-elegant h2,
.style-elegant h3 {
  font-weight: 600;
  letter-spacing: .01em;
}
.style-elegant .hero-title {
  font-weight: 600;
}
.style-elegant .section-label {
  font-weight: 600;
  letter-spacing: .24em;
}
.style-elegant .btn {
  font-weight: 500;
}

/* ── Mode: dark ────────────────────────────────────────────────── */
/* A dark-FIRST site: neutral black/grey surfaces regardless of the
   visitor's OS preference. The manual toggle still lets a visitor
   switch to light mode (html[data-theme="light"] wins below), which
   is why the selector excludes that state. */
html:not([data-theme="light"]) .mode-dark {
  --clr-bg:           #101014;
  --clr-surface:      #18181d;
  --clr-border:       #2a2a31;
  --clr-text:         #f4f4f5;
  --clr-text-muted:   #9d9da6;
  --clr-accent-light: rgba(var(--clr-accent-rgb),.15);
  --shadow-sm: 0 1px 3px rgba(0,0,0,.4);
  --shadow-md: 0 4px 12px rgba(0,0,0,.5);
  --shadow-lg: 0 12px 24px rgba(0,0,0,.6);
  --shadow-xl: 0 24px 48px rgba(0,0,0,.7);
}

/* dark-first sites start with the sun icon (i.e. "switch to light") */
html:not([data-theme="light"]) .mode-dark .theme-toggle .icon-moon { display: none;   }
html:not([data-theme="light"]) .mode-dark .theme-toggle .icon-sun  { display: inline; }

/* ── Buttons: outline ──────────────────────────────────────────── */
/* Transparent primary buttons with an accent border that fill on
   hover — a restrained look that lets a pop colour do the shouting. */
.buttons-outline .btn-primary {
  background: transparent;
  color: var(--clr-accent);
  border-color: var(--clr-accent);
}
.buttons-outline .btn-primary:hover,
.buttons-outline .btn-primary:focus-visible {
  background: var(--clr-accent);
  border-color: var(--clr-accent);
  color: var(--clr-primary);
}

/* ── Buttons: pill ─────────────────────────────────────────────── */
.buttons-pill .btn,
.buttons-pill .nav-cta,
.buttons-pill .nav-link {
  border-radius: 100vw;
}
