/* Theme "clean" — éditorial moderne. Manrope display + Inter text, left-aligned
   sections, pill buttons, tinted surfaces, soft layered shadows. For services,
   agencies, health, tech, consulting. */

.theme-clean {
  --font-heading: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 12px;
  --radius-lg: 18px;
  --btn-radius: 999px;
  --heading-weight: 800;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 12px 32px -12px rgba(16, 24, 40, 0.10);
  --shadow-lg: 0 2px 4px rgba(16, 24, 40, 0.05), 0 28px 60px -18px rgba(16, 24, 40, 0.20);
}

.theme-clean h1, .theme-clean h2 { letter-spacing: -0.025em; }
.theme-clean h3 { font-weight: 700; letter-spacing: -0.01em; }
.theme-clean .brand { font-weight: 800; letter-spacing: -0.02em; }

/* Left-aligned editorial section headings with a gradient accent bar. */
.theme-clean .section-heading {
  text-align: left;
  margin-inline: 0;
  max-width: 52rem;
}
.theme-clean .section-heading h2::before {
  content: "";
  display: block;
  width: 46px;
  height: 5px;
  border-radius: 3px;
  margin-bottom: 1.2rem;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
}
.theme-clean .section-intro {
  text-align: left;
  margin-inline: 0;
}

/* Tinted alternating sections instead of flat grey — reads as a designed system. */
.theme-clean .section.alt {
  background: color-mix(in srgb, var(--color-primary) 4.5%, var(--color-surface));
}

/* Buttons: pills with a soft colored glow and a nudging arrow. */
.theme-clean .btn::after {
  content: "\2192";
  display: inline-block;
  margin-left: 0.55em;
  transition: transform 0.2s ease;
}
.theme-clean .btn:hover::after { transform: translateX(4px); }
.theme-clean .nav-cta::after { content: none; }

/* Colour hero (no photo): light airy mesh with dark text and huge display type. */
.theme-clean .hero:not(.has-image) {
  background:
    radial-gradient(52rem 30rem at 82% -10%, color-mix(in srgb, var(--color-accent) 17%, transparent), transparent 60%),
    radial-gradient(44rem 30rem at -8% 108%, color-mix(in srgb, var(--color-primary) 13%, transparent), transparent 58%),
    color-mix(in srgb, var(--color-primary) 3%, var(--color-surface));
}
.theme-clean .hero:not(.has-image)::after { content: none; }
.theme-clean .hero:not(.has-image) h1,
.theme-clean .hero:not(.has-image) h2 {
  color: var(--color-text);
  text-shadow: none;
  background: linear-gradient(105deg, var(--color-text) 55%, var(--color-primary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.theme-clean .hero:not(.has-image) .hero-sub {
  color: var(--color-text-muted);
  text-shadow: none;
}
.theme-clean .hero:not(.has-image) .btn {
  background: var(--color-primary);
  color: var(--color-primary-contrast);
}
.theme-clean .hero.has-image .hero-content { border-radius: 22px; }

/* Cards: borderless, layered shadows, primary-tinted hover ring. */
.theme-clean .card {
  border-color: color-mix(in srgb, var(--color-border) 55%, transparent);
  background: var(--color-surface);
}
.theme-clean .section:not(.alt) .card { background: var(--color-surface); }
.theme-clean .card:hover {
  border-color: color-mix(in srgb, var(--color-primary) 30%, var(--color-border));
}
.theme-clean .card-body { padding: 1.75rem; }

/* Cards without images get a slim accent bar on top so text-only grids
   still look designed. */
.theme-clean .card > .card-body:first-child {
  border-top: 4px solid color-mix(in srgb, var(--color-primary) 75%, var(--color-accent));
  border-top-left-radius: inherit;
  border-top-right-radius: inherit;
}

/* Stats: gradient numerals. */
.theme-clean .stat-value {
  background: linear-gradient(115deg, var(--color-primary), var(--color-accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Testimonials: soft borderless quote cards. */
.theme-clean .testimonial {
  border-color: color-mix(in srgb, var(--color-border) 55%, transparent);
  background: var(--color-surface);
}
.theme-clean .section:not(.alt) .testimonial { background: var(--color-surface); }
.theme-clean .testimonial blockquote { font-style: normal; }

/* CTA banner: floating rounded island instead of a full-bleed band. */
.theme-clean .cta-banner {
  max-width: min(var(--container), calc(100% - 2.5rem));
  margin: calc(var(--section-pad) * 0.55) auto;
  border-radius: 28px;
  box-shadow: 0 30px 70px -22px color-mix(in srgb, var(--color-primary) 55%, transparent);
}
.theme-clean .cta-banner .btn { background: #ffffff; color: var(--color-primary); }

/* Forms & FAQ pick up the rounded language. */
.theme-clean .contact-form input, .theme-clean .contact-form textarea { border-radius: 12px; }
.theme-clean .faq-list details { border-radius: var(--radius-lg); }
.theme-clean .faq-list summary { font-weight: 700; }
/* Left-aligned headings pull the narrow blocks with them. */
.theme-clean .faq-list, .theme-clean .hours-table { margin-inline: 0; }
.theme-clean .hours-note { text-align: left; }

.theme-clean .site-footer {
  background: color-mix(in srgb, var(--color-primary) 4.5%, var(--color-surface));
}

/* Theme "warm" — maison artisanale. Fraunces display serif + Inter text, cream
   grain, keyline-framed photos, ornamental dividers, drop caps, dark-roast
   footer. For food, crafts, hospitality, beauty. */

.theme-warm {
  --font-heading: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 8px;
  --radius-lg: 12px;
  --btn-radius: 8px;
  --heading-weight: 600;
  --shadow: 0 2px 4px rgba(80, 50, 25, 0.05), 0 14px 34px -14px rgba(80, 50, 25, 0.16);
  --shadow-lg: 0 3px 6px rgba(80, 50, 25, 0.06), 0 28px 60px -20px rgba(80, 50, 25, 0.26);
}

/* Subtle paper grain over plain sections (opaque sections cover it). */
.theme-warm {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='linear' slope='0.045'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
}

.theme-warm h1, .theme-warm h2 { letter-spacing: 0; }
.theme-warm h2 { font-size: clamp(1.75rem, 3.8vw, 2.6rem); }
.theme-warm h3 { font-family: var(--font-heading); font-weight: 600; font-size: 1.3rem; }
.theme-warm .brand { font-family: var(--font-heading); font-weight: 600; }

/* Ornamental divider under centered section headings: line ◆ line,
   masked so it always takes the palette's accent color. */
.theme-warm .section-heading h2::after {
  content: "";
  display: block;
  width: 150px;
  height: 9px;
  margin: 1.1rem auto 0;
  background: var(--color-accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='9' viewBox='0 0 150 9'%3E%3Cline x1='0' y1='4.5' x2='60' y2='4.5' stroke='black' stroke-width='1'/%3E%3Crect x='71' y='0.5' width='8' height='8' transform='rotate(45 75 4.5)' fill='black'/%3E%3Cline x1='90' y1='4.5' x2='150' y2='4.5' stroke='black' stroke-width='1'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='9' viewBox='0 0 150 9'%3E%3Cline x1='0' y1='4.5' x2='60' y2='4.5' stroke='black' stroke-width='1'/%3E%3Crect x='71' y='0.5' width='8' height='8' transform='rotate(45 75 4.5)' fill='black'/%3E%3Cline x1='90' y1='4.5' x2='150' y2='4.5' stroke='black' stroke-width='1'/%3E%3C/svg%3E") center / contain no-repeat;
}

.theme-warm .section.alt {
  background: color-mix(in srgb, var(--color-accent) 9%, var(--color-surface));
}

/* Colour hero: deep, candle-lit gradient with an italic Fraunces headline. */
.theme-warm .hero:not(.has-image) {
  background:
    radial-gradient(46rem 30rem at 88% -12%, color-mix(in srgb, var(--color-accent) 55%, transparent), transparent 62%),
    linear-gradient(140deg, color-mix(in srgb, var(--color-primary) 78%, #221008), var(--color-primary) 55%, color-mix(in srgb, var(--color-accent) 70%, var(--color-primary)));
}
.theme-warm .hero h1, .theme-warm .hero.has-image .hero-content h2 { font-style: italic; font-weight: 550; }
.theme-warm .hero .hero-sub { font-weight: 350; }
.theme-warm .hero.has-image .hero-content {
  background: rgba(44, 26, 16, 0.4);
  border: 1px solid rgba(255, 244, 230, 0.16);
}
.theme-warm .hero:not(.has-image) .btn { background: #fff8ef; color: color-mix(in srgb, var(--color-primary) 88%, black); }

/* Buttons: crafted, slightly squared, with a fine inner keyline. */
.theme-warm .btn {
  box-shadow: inset 0 0 0 1px rgba(255, 250, 240, 0.28), 0 2px 6px rgba(80, 50, 25, 0.18);
  letter-spacing: 0.01em;
}

/* Photos get a fine inset keyline frame — the picture-frame effect. */
.theme-warm .about-grid img,
.theme-warm .gallery-grid img,
.theme-warm .card > img {
  outline: 1px solid rgba(255, 250, 240, 0.55);
  outline-offset: -9px;
}

/* The about photo becomes an arch — signature artisan shape. */
.theme-warm .about-grid.has-image img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 999px 999px var(--radius-lg) var(--radius-lg);
  outline-offset: -12px;
}

/* Cards: warm keylines, serif titles. */
.theme-warm .card { border-color: color-mix(in srgb, var(--color-accent) 30%, var(--color-border)); }
.theme-warm .card:hover { border-color: color-mix(in srgb, var(--color-accent) 55%, var(--color-border)); }

/* Drop cap on free-form text — éditorial de métier. */
.theme-warm .prose > p:first-of-type::first-letter {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 3.3em;
  float: left;
  line-height: 0.82;
  padding: 0.08em 0.14em 0 0;
  color: var(--color-primary);
}

/* Testimonials: large serif quotes under an oversized quotation mark. */
.theme-warm .testimonial {
  position: relative;
  padding-top: 3rem;
  border-color: color-mix(in srgb, var(--color-accent) 30%, var(--color-border));
}
.theme-warm .testimonial::before {
  content: "\201C";
  position: absolute;
  top: 0.6rem;
  left: 1.4rem;
  font-family: var(--font-heading);
  font-size: 3.6rem;
  line-height: 1;
  color: var(--color-accent);
}
.theme-warm .testimonial blockquote {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 450;
  font-size: 1.18rem;
  line-height: 1.55;
}

.theme-warm .stat-value { font-weight: 550; }

.theme-warm .faq-list summary { font-family: var(--font-heading); font-weight: 600; font-size: 1.06rem; }
.theme-warm .faq-list details { border-color: color-mix(in srgb, var(--color-accent) 30%, var(--color-border)); }

.theme-warm .hours-table td { border-bottom: 1px dashed color-mix(in srgb, var(--color-accent) 45%, var(--color-border)); }
.theme-warm .hours-table tr:last-child td { border-bottom: none; }

.theme-warm .cta-banner {
  background:
    radial-gradient(40rem 26rem at 12% 120%, color-mix(in srgb, var(--color-accent) 60%, transparent), transparent 60%),
    linear-gradient(120deg, color-mix(in srgb, var(--color-primary) 82%, #221008), var(--color-primary));
}
.theme-warm .cta-banner h2 { font-style: italic; }
.theme-warm .cta-banner .btn { background: #fff8ef; color: color-mix(in srgb, var(--color-primary) 88%, black); }

/* Dark-roast footer: inverted, cocoa-toned, serif brand. */
.theme-warm .site-footer {
  background: color-mix(in srgb, var(--color-text) 92%, black);
  border-top: none;
}
.theme-warm .footer-name { color: #f7efe4; font-weight: 550; }
.theme-warm .site-footer h4 { color: color-mix(in srgb, #f7efe4 55%, transparent); }
.theme-warm .footer-tagline, .theme-warm .site-footer li { color: color-mix(in srgb, #f7efe4 72%, transparent); }
.theme-warm .site-footer a { color: color-mix(in srgb, #f7efe4 78%, transparent); }
.theme-warm .site-footer a:hover { color: #ffffff; }
.theme-warm .footer-bottom {
  border-top-color: rgba(247, 239, 228, 0.14);
  color: color-mix(in srgb, #f7efe4 55%, transparent);
}

/* Theme "bold" — atelier industriel. Archivo Black display, uppercase headings,
   sharp corners, hard offset shadows, numbered sections, hazard-stripe accents.
   For trades, garages, fitness, construction. */

.theme-bold {
  --font-heading: "Archivo Black", "Arial Black", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 0px;
  --radius-lg: 0px;
  --btn-radius: 0px;
  --heading-weight: 400; /* Archivo Black has a single (very heavy) weight */
  --shadow: none;
  --shadow-lg: 0 24px 48px -16px rgba(0, 0, 0, 0.5);
}

.theme-bold h1, .theme-bold h2 {
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.08;
}
.theme-bold h1 { font-size: clamp(2.4rem, 6.5vw, 4.2rem); }
/* Sub-headings drop to heavy Inter — Archivo Black is display-only. */
.theme-bold h3, .theme-bold h4 {
  font-family: var(--font-body);
  font-weight: 800;
}
.theme-bold .card-body h3 { text-transform: uppercase; font-size: 1.02rem; letter-spacing: 0.04em; }
.theme-bold .brand { text-transform: uppercase; font-size: 1.1rem; letter-spacing: 0.03em; }
.theme-bold ::selection { background: color-mix(in srgb, var(--color-primary) 45%, transparent); }

/* Numbered, left-aligned section headings — the industrial index. */
.theme-bold main { counter-reset: bold-sec; }
.theme-bold .section-heading {
  text-align: left;
  margin-inline: 0;
  max-width: 54rem;
}
.theme-bold .section-heading h2::before {
  counter-increment: bold-sec;
  content: "0" counter(bold-sec);
  display: block;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.25em;
  color: var(--color-primary);
  margin-bottom: 1rem;
}
.theme-bold .section-intro { text-align: left; margin-inline: 0; }
/* Left-aligned headings pull the narrow blocks with them. */
.theme-bold .faq-list, .theme-bold .hours-table { margin-inline: 0; }
.theme-bold .hours-note { text-align: left; }

/* Free-standing headings get a heavy side bar. */
.theme-bold .about-grid h2, .theme-bold .prose h2 {
  border-left: 8px solid var(--color-primary);
  padding-left: 0.55em;
}

.theme-bold .section.alt {
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

/* Nav: uppercase micro-tracking. */
.theme-bold .site-nav a {
  text-transform: uppercase;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  background-size: 0% 3px;
}
.theme-bold .site-nav a:hover, .theme-bold .site-nav a[aria-current="page"] { background-size: 100% 3px; }

/* Buttons: square slabs with a hard offset shadow that pops on hover. */
.theme-bold .btn {
  text-transform: uppercase;
  font-weight: 800;
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  padding: 1em 2em;
  box-shadow: 5px 5px 0 color-mix(in srgb, var(--color-text) 85%, transparent);
}
.theme-bold .btn:hover {
  filter: none;
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 color-mix(in srgb, var(--color-text) 85%, transparent);
}
.theme-bold .btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 color-mix(in srgb, var(--color-text) 85%, transparent); }
.theme-bold .nav-cta { box-shadow: 3px 3px 0 color-mix(in srgb, var(--color-text) 85%, transparent); padding: 0.6em 1.2em; }

/* Hazard-stripe signature edge along the bottom of every hero. */
.theme-bold .hero::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 8px;
  z-index: 1;
  background: repeating-linear-gradient(-45deg, var(--color-primary) 0 14px, transparent 14px 28px);
}

/* Colour hero: blueprint grid over dark surfaces, kicker bar, huge type. */
.theme-bold .hero:not(.has-image) {
  background:
    linear-gradient(color-mix(in srgb, var(--color-border) 55%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--color-border) 55%, transparent) 1px, transparent 1px),
    radial-gradient(50rem 32rem at 85% -15%, color-mix(in srgb, var(--color-primary) 16%, transparent), transparent 60%),
    linear-gradient(135deg, var(--color-surface-alt), var(--color-surface));
  background-size: 44px 44px, 44px 44px, auto, auto;
}
.theme-bold .hero:not(.has-image)::after { content: none; }
.theme-bold .hero:not(.has-image) h1,
.theme-bold .hero:not(.has-image) h2 { color: var(--color-text); text-shadow: none; }
.theme-bold .hero:not(.has-image) .hero-sub { color: var(--color-text-muted); text-shadow: none; }
.theme-bold .hero:not(.has-image) .btn { background: var(--color-primary); color: var(--color-primary-contrast); }
.theme-bold .hero-content h1::before, .theme-bold .hero-content h2::before {
  content: "";
  display: block;
  width: 64px;
  height: 10px;
  background: var(--color-primary);
  margin-bottom: 1.3rem;
}

/* Photo hero: sharp solid panel with a heavy accent flank instead of frosted glass. */
.theme-bold .hero.has-image .hero-content {
  background: rgba(9, 10, 13, 0.78);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-radius: 0;
  border-left: 8px solid var(--color-primary);
  box-shadow: none;
}
.theme-bold .hero.has-image .hero-content h1::before,
.theme-bold .hero.has-image .hero-content h2::before { content: none; }

/* Cards: heavy 2px frames; hover shifts the slab off a colored offset shadow. */
.theme-bold .card {
  border: 2px solid var(--color-border);
  background: var(--color-surface-alt);
}
.theme-bold .section:not(.alt) .card, .theme-bold .section.alt .card { background: var(--color-surface-alt); }
.theme-bold .card:hover {
  transform: translate(-4px, -4px);
  border-color: color-mix(in srgb, var(--color-primary) 60%, var(--color-border));
  box-shadow: 8px 8px 0 color-mix(in srgb, var(--color-primary) 70%, transparent);
}
.theme-bold .card .role { text-transform: uppercase; font-size: 0.85rem; letter-spacing: 0.08em; }

/* Stats: display numerals straight from the poster. */
.theme-bold .stat-value { font-weight: 400; letter-spacing: 0; }
.theme-bold .stat-label {
  text-transform: uppercase;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.theme-bold .testimonial {
  border: 2px solid var(--color-border);
  border-left: 6px solid var(--color-primary);
  background: var(--color-surface-alt);
}
.theme-bold .section:not(.alt) .testimonial { background: var(--color-surface-alt); }
.theme-bold .testimonial blockquote { font-style: normal; font-weight: 500; }
.theme-bold .testimonial figcaption { text-transform: uppercase; font-size: 0.9rem; letter-spacing: 0.06em; }

.theme-bold .faq-list details { border-width: 2px; }
.theme-bold .faq-list summary::after { border-radius: 0; }

/* Gallery: tight industrial mosaic, colour on hover. */
.theme-bold .gallery-grid { gap: 6px; }
.theme-bold .gallery-grid img { filter: grayscale(30%) contrast(1.04); }
.theme-bold .gallery-grid img:hover { filter: none; }

.theme-bold .about-grid img { box-shadow: 12px 12px 0 color-mix(in srgb, var(--color-primary) 55%, transparent); }

/* CTA banner: hazard tape top and bottom. */
.theme-bold .cta-banner::before, .theme-bold .cta-banner::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 8px;
  background: repeating-linear-gradient(-45deg, rgba(0, 0, 0, 0.35) 0 14px, transparent 14px 28px);
}
.theme-bold .cta-banner::before { top: 0; }
.theme-bold .cta-banner::after { bottom: 0; }
.theme-bold .cta-banner .btn { box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.4); }
.theme-bold .cta-banner .btn:hover { box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.4); }

.theme-bold .map-wrap { border-width: 2px; }

.theme-bold .site-footer {
  background: color-mix(in srgb, var(--color-surface) 70%, black);
  border-top: 4px solid var(--color-primary);
}
.theme-bold .footer-name { text-transform: uppercase; font-size: 1.15rem; }
