/* =============================================================================
   site.css — Bright Office Cleaning
   Design tokens (CSS custom properties) + all component styles.
   Hand-authored; no build step required.
   ============================================================================= */

/* ---------------------------------------------------------------------------
   1. CSS CUSTOM PROPERTIES (Design Tokens)
   All tokens defined once here. QA: grep for var(--color-*) and verify below.
   --------------------------------------------------------------------------- */
:root {
  /* Colors */
  --color-bg:                  #FFFFFF;
  --color-surface:             #F7F5F0;
  --color-surface-2:           #EDE9E0;
  --color-text:                #1A1A1A;
  --color-text-secondary:      #5A5651;
  --color-text-on-dark:        #FFFFFF;
  --color-text-muted-on-dark:  #C8E0DC;
  --color-primary:             #1A5C54;
  --color-primary-hover:       #145048;
  --color-primary-light:       #E8F3F1;
  --color-accent:              #C8A96E;
  --color-accent-hover:        #B5924F;
  --color-accent-light:        #F5EDD8;
  --color-border:              #DDD8D0;
  --color-border-strong:       #B0AA9F;
  --color-error:               #C0392B;
  --color-error-bg:            #FDECEA;
  --color-success:             #1A7A4A;
  --color-success-bg:          #EAF7EE;
  --color-overlay:             rgba(26, 92, 84, 0.72);
  --color-shadow-sm:           rgba(0, 0, 0, 0.06);
  --color-shadow-md:           rgba(0, 0, 0, 0.12);

  /* Typography */
  --font-family:    'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --text-display:   5.5rem;
  --text-h1:        3.5rem;
  --text-h2:        2.25rem;
  --text-h3:        1.5rem;
  --text-h4:        1.125rem;
  --text-large:     1.125rem;
  --text-body:      1rem;
  --text-small:     0.875rem;
  --text-xs:        0.75rem;
  --text-nav:       0.9375rem;
  --text-btn:       0.9375rem;

  /* Spacing */
  --space-1:   4px;
  --space-2:   8px;
  --space-3:   12px;
  --space-4:   16px;
  --space-5:   20px;
  --space-6:   24px;
  --space-8:   32px;
  --space-10:  40px;
  --space-12:  48px;
  --space-16:  64px;
  --space-20:  80px;
  --space-24:  96px;
  --space-32:  128px;

  /* Border radii */
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   12px;
  --radius-xl:   16px;
  --radius-full: 9999px;

  /* Borders */
  --border-width:   1px;
  --border-style:   solid;
  --border-default: 1px solid var(--color-border);
  --border-strong:  1px solid var(--color-border-strong);
  --border-accent:  2px solid var(--color-accent);
  --border-primary: 2px solid var(--color-primary);

  /* Shadows */
  --shadow-sm: 0 1px 3px var(--color-shadow-sm);
  --shadow-md: 0 4px 12px var(--color-shadow-md);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.14), 0 2px 8px rgba(0,0,0,0.08);

  /* Breakpoints (reference only — not usable directly in @media) */
  /* --bp-sm: 640px; --bp-md: 768px; --bp-lg: 1024px; --bp-xl: 1280px; */

  /* Container */
  --container-max: 1200px;
  --container-pad: var(--space-4);
}

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

html { font-size: 16px; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-family);
  font-size: var(--text-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: underline; }
a:hover { color: var(--color-primary-hover); }
ul, ol { list-style: none; }
table { border-collapse: collapse; width: 100%; }
button, input, select, textarea { font-family: inherit; }

/* Visually hidden (accessible) */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Focus ring global */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

/* ---------------------------------------------------------------------------
   3. TYPOGRAPHY SCALE
   --------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text);
}
h1 { font-size: var(--text-h1); letter-spacing: -0.03em; }
h2 { font-size: var(--text-h2); letter-spacing: -0.02em; }
h3 { font-size: var(--text-h3); font-weight: 600; letter-spacing: -0.01em; }
h4 { font-size: var(--text-h4); font-weight: 600; }
p  { margin-bottom: var(--space-6); }
p:last-child { margin-bottom: 0; }

.text-display {
  font-size: var(--text-display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.04em;
}
.text-large { font-size: var(--text-large); line-height: 1.65; }

/* Responsive type */
@media (max-width: 639px) {
  .text-display { font-size: 3rem; }
  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.25rem; }
}
@media (min-width: 640px) and (max-width: 1023px) {
  .text-display { font-size: 4.25rem; }
  h1 { font-size: 2.75rem; }
  h2 { font-size: 2rem; }
}

/* ---------------------------------------------------------------------------
   4. LAYOUT — CONTAINER & GRID
   --------------------------------------------------------------------------- */
.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}
@media (min-width: 768px)  { .container { padding-inline: var(--space-8); } }
@media (min-width: 1024px) { .container { padding-inline: var(--space-12); } }

/* Grid systems — mobile-first, NO inline grid-template-columns */
.grid { display: grid; gap: var(--space-6); }

.grid--2col { grid-template-columns: 1fr; }
@media (min-width: 640px)  { .grid--2col { grid-template-columns: repeat(2, 1fr); } }

.grid--3col { grid-template-columns: 1fr; }
@media (min-width: 640px)  { .grid--3col { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid--3col { grid-template-columns: repeat(3, 1fr); } }

.grid--4col { grid-template-columns: 1fr; }
@media (min-width: 640px)  { .grid--4col { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid--4col { grid-template-columns: repeat(4, 1fr); } }

.grid--bento { grid-template-columns: 1fr; }
@media (min-width: 640px)  { .grid--bento { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) {
  .grid--bento { grid-template-columns: repeat(3, 1fr); }
  .grid--bento .card--bento-wide { grid-column: span 2; }
  .grid--bento .card--bento-tall { grid-row: span 2; }
}

.grid--split { grid-template-columns: 1fr; }
@media (min-width: 1024px) { .grid--split { grid-template-columns: 55fr 45fr; align-items: center; } }
@media (min-width: 1024px) { .grid--split--reverse { grid-template-columns: 45fr 55fr; } }

.grid--form-side { grid-template-columns: 1fr; }
@media (min-width: 1024px) { .grid--form-side { grid-template-columns: 55fr 45fr; align-items: start; } }

/* ---------------------------------------------------------------------------
   5. SECTION THEMING
   --------------------------------------------------------------------------- */
.section {
  padding-block: var(--space-16);
}
@media (min-width: 768px)  { .section { padding-block: var(--space-20); } }
@media (min-width: 1024px) { .section { padding-block: var(--space-24); } }

.section--light   { background: var(--color-bg); color: var(--color-text); }
.section--surface { background: var(--color-surface); color: var(--color-text); }
.section--dark    { background: var(--color-primary); color: var(--color-text-on-dark); }
/* .section--primary is an alias for .section--dark (dark teal bg, on-dark text) */
.section--primary { background: var(--color-primary); color: var(--color-text-on-dark); }
.section--accent  { background: var(--color-accent-light); color: var(--color-text); }

/* Headings on dark sections */
.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4,
.section--primary h1,
.section--primary h2,
.section--primary h3,
.section--primary h4 { color: var(--color-text-on-dark); }

/* Secondary text on dark */
.section--dark p,
.section--dark li,
.section--primary p,
.section--primary li { color: var(--color-text-on-dark); }
.section--dark .text-secondary,
.section--primary .text-secondary { color: var(--color-text-muted-on-dark); }

/* Cards inside dark sections — explicit color */
.section--dark .card { color: var(--color-text); } /* cards have own light bg */
.section--dark .card--testimonial { color: var(--color-text-on-dark); }
.section--dark .card--testimonial .card__attribution { color: var(--color-text-muted-on-dark); }
.section--dark .card--feature { color: var(--color-text-on-dark); }
.section--dark .card--feature h3 { color: var(--color-text-on-dark); }
.section--dark .card--stat { color: var(--color-text-on-dark); }

.section__heading { margin-bottom: var(--space-3); }
.section__subheading {
  font-size: var(--text-large);
  color: var(--color-text-secondary);
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: var(--space-10);
}
.section--dark .section__subheading { color: var(--color-text-muted-on-dark); }
.section__intro { max-width: 720px; }

.section__header { text-align: center; margin-bottom: var(--space-10); }
.section__header--left { text-align: left; }

/* Hero sections — extra top padding for breadcrumb */
.section--hero { padding-block-start: var(--space-32); }
@media (max-width: 1023px) { .section--hero { padding-block-start: var(--space-20); } }

/* ---------------------------------------------------------------------------
   6. BUTTONS
   --------------------------------------------------------------------------- */

/* Base reset — applied to ALL button elements */
button {
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
  text-align: left;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-btn);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1;
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-6);
  text-decoration: none;
  transition: background 200ms, border-color 200ms, color 200ms, transform 100ms;
  cursor: pointer;
  border: none;
  background: transparent;
  white-space: nowrap;
}
.btn:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; pointer-events: none; }

.btn--primary {
  background: var(--color-primary);
  color: var(--color-text-on-dark);
  border: none;
}
.btn--primary:hover { background: var(--color-primary-hover); color: var(--color-text-on-dark); }

.btn--secondary {
  background: var(--color-surface);
  color: var(--color-primary);
  border: var(--border-default);
}
.btn--secondary:hover {
  border-color: var(--color-primary);
  background: var(--color-primary-light);
  color: var(--color-primary);
}

.btn--ghost {
  background: transparent;
  color: var(--color-primary);
  border: var(--border-primary);
}
.btn--ghost:hover { background: var(--color-primary-light); color: var(--color-primary); }

/* Ghost on dark sections */
.section--dark .btn--ghost {
  color: var(--color-text-on-dark);
  border-color: rgba(255, 255, 255, 0.6);
}
.section--dark .btn--ghost:hover { background: rgba(255, 255, 255, 0.12); }

.btn--cta {
  background: var(--color-accent);
  color: var(--color-text);
  border: none;
  padding: var(--space-4) var(--space-8);
}
.btn--cta:hover { background: var(--color-accent-hover); color: var(--color-text); }

.btn--icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: transparent;
  border: none;
  color: inherit;
  cursor: pointer;
  padding: 0;
}
.btn--icon:hover { background: var(--color-primary-light); }

/* ---------------------------------------------------------------------------
   7. CARDS
   --------------------------------------------------------------------------- */
.card {
  background: var(--color-bg);
  border: var(--border-default);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  color: var(--color-text);
  box-shadow: var(--shadow-sm);
}

/* Service card */
.card--service {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  transition: border-color 200ms, box-shadow 200ms, transform 200ms;
  text-decoration: none;
  color: var(--color-text);
}
.card--service:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  color: var(--color-text);
}
.card--service .card__icon {
  color: var(--color-primary);
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}
.card--service .card__title { font-size: var(--text-h3); font-weight: 600; color: var(--color-text); margin-bottom: 0; }
.card--service .card__desc  { font-size: var(--text-body); color: var(--color-text-secondary); flex: 1; margin-bottom: 0; }
.card--service .card__price { font-size: var(--text-small); font-weight: 600; color: var(--color-primary); }
.card--service .card__link  { font-size: var(--text-small); font-weight: 600; color: var(--color-primary); display: flex; align-items: center; gap: 4px; }

/* Feature / pillar card */
.card--feature {
  padding: var(--space-6) 0;
  border: none;
  box-shadow: none;
  background: transparent;
}
.card--feature .card__icon {
  color: var(--color-primary);
  width: 40px;
  height: 40px;
  margin-bottom: var(--space-4);
}
.section--dark .card--feature .card__icon { color: var(--color-accent); }
.card--feature h3 { font-size: var(--text-h3); margin-bottom: var(--space-3); }

/* Testimonial card */
.card--testimonial {
  background: var(--color-surface);
  border: var(--border-default);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  color: var(--color-text);
  position: relative;
}
.section--dark .card--testimonial {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--color-text-on-dark);
}
.card--testimonial .card__quote-mark {
  font-size: 48px;
  line-height: 1;
  color: var(--color-accent);
  margin-bottom: var(--space-3);
  font-family: Georgia, serif;
}
.card--testimonial .card__text { font-size: var(--text-body); margin-bottom: var(--space-5); font-style: italic; }
.card--testimonial .card__stars { color: var(--color-accent); font-size: 1.1rem; margin-bottom: var(--space-3); letter-spacing: 2px; }
.card--testimonial .card__attribution { display: flex; align-items: center; gap: var(--space-3); }
.card--testimonial .card__avatar {
  width: 40px; height: 40px;
  border-radius: var(--radius-full);
  background: var(--color-primary-light);
  color: var(--color-primary);
  display: flex; align-items: center; justify-content: center;
  font-size: var(--text-small); font-weight: 700;
  flex-shrink: 0;
}
.card--testimonial .card__name { font-size: var(--text-small); font-weight: 600; }
.card--testimonial .card__role { font-size: var(--text-xs); color: var(--color-text-secondary); }
.section--dark .card--testimonial .card__role { color: var(--color-text-muted-on-dark); }

/* Blog post card */
.card--post {
  display: flex;
  flex-direction: column;
  background: var(--color-bg);
  border: var(--border-default);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: var(--color-text);
  transition: box-shadow 200ms;
}
.card--post:hover { box-shadow: var(--shadow-md); color: var(--color-text); }
.card--post .card__img { aspect-ratio: 16/9; overflow: hidden; }
.card--post .card__img img { width: 100%; height: 100%; object-fit: cover; }
.card--post .card__body { padding: var(--space-6); flex: 1; display: flex; flex-direction: column; gap: var(--space-3); }
.card--post .card__category { font-size: var(--text-xs); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--color-primary); }
.card--post h3 { font-size: var(--text-h3); color: var(--color-text); margin-bottom: 0; }
.card--post .card__excerpt { font-size: var(--text-small); color: var(--color-text-secondary); flex: 1; }
.card--post .card__meta { display: flex; gap: var(--space-4); font-size: var(--text-xs); color: var(--color-text-secondary); }
.card--post .card__read-more { font-size: var(--text-small); font-weight: 600; color: var(--color-primary); }

/* Stat card */
.card--stat { text-align: center; }
.card--stat .card__number {
  font-size: var(--text-h1);
  font-weight: 700;
  color: var(--color-text-on-dark);
  line-height: 1;
  margin-bottom: var(--space-2);
}
.card--stat .card__label { font-size: var(--text-small); color: var(--color-text-muted-on-dark); }

/* Audience split card (P-14) */
.card--audience {
  border: var(--border-primary);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  background: var(--color-bg);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}
.card--audience .card__icon-lg {
  color: var(--color-primary);
  width: 48px; height: 48px;
}
.card--audience h3 { font-size: var(--text-h2); }
.card--audience .card__services { margin-block: var(--space-4); }
.card--audience .card__services li {
  display: flex; align-items: center; gap: var(--space-2);
  padding-block: var(--space-2);
  font-size: var(--text-body);
  border-bottom: var(--border-default);
}
.card--audience .card__services li:last-child { border-bottom: none; }

/* ---------------------------------------------------------------------------
   8. BADGES
   --------------------------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  line-height: 1.5;
}
.badge--primary { background: var(--color-primary-light); color: var(--color-primary); }
.badge--accent  { background: var(--color-accent-light); color: var(--color-text); border: 1px solid var(--color-accent); }
.badge--dark    { background: var(--color-primary); color: var(--color-text-on-dark); }

/* ---------------------------------------------------------------------------
   9. HEADER & NAVIGATION
   --------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-bg);
  border-bottom: var(--border-default);
  box-shadow: var(--shadow-sm);
  /* position: relative needed for mega-menu panel anchor */
  position: sticky;
}

/* Wrapper that is also position:relative for mega-menu */
.site-header__inner {
  position: relative;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
  display: flex;
  align-items: center;
  height: 72px;
  gap: var(--space-8);
}
@media (min-width: 768px) { .site-header__inner { padding-inline: var(--space-8); } }
@media (min-width: 1024px) { .site-header__inner { padding-inline: var(--space-12); } }

.site-header__logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--color-text);
  flex-shrink: 0;
}
.site-header__logo-text {
  font-size: var(--text-h4);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.2;
}
.site-header__logo-sub {
  font-size: var(--text-xs);
  color: var(--color-text-secondary);
  display: block;
}

/* Desktop nav */
.site-nav {
  display: none;
  align-items: center;
  gap: var(--space-2);
  flex: 1;
  margin-left: var(--space-6);
}
@media (min-width: 1024px) { .site-nav { display: flex; } }

.nav-link {
  font-size: var(--text-nav);
  font-weight: 600;
  color: var(--color-text);
  text-decoration: none;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  transition: background 150ms, color 150ms;
  white-space: nowrap;
}
.nav-link:hover { background: var(--color-primary-light); color: var(--color-primary); }
.nav-link[aria-current="page"] { color: var(--color-primary); }

/* Services trigger */
.nav-trigger {
  font-size: var(--text-nav);
  font-weight: 600;
  color: var(--color-text);
  background: none;
  border: none;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: var(--space-1);
  transition: background 150ms, color 150ms;
  white-space: nowrap;
}
.nav-trigger:hover,
.nav-trigger[aria-expanded="true"] {
  background: var(--color-primary-light);
  color: var(--color-primary);
}
.nav-trigger .chevron {
  width: 16px; height: 16px;
  transition: transform 250ms;
  flex-shrink: 0;
}
.nav-trigger[aria-expanded="true"] .chevron { transform: rotate(180deg); }

/* Header right side */
.site-header__right {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-left: auto;
  flex-shrink: 0;
}

.header-tel {
  display: none;
  font-size: var(--text-small);
  font-weight: 600;
  color: var(--color-text);
  text-decoration: none;
  gap: var(--space-1);
  align-items: center;
}
@media (min-width: 1024px) { .header-tel { display: flex; } }
.header-tel:hover { color: var(--color-primary); }

.header-wa {
  display: none;
  color: var(--color-primary);
  text-decoration: none;
  align-items: center;
}
@media (min-width: 1024px) { .header-wa { display: flex; } }

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text);
  padding: 0;
  border-radius: var(--radius-md);
  flex-shrink: 0;
}
.hamburger:hover { background: var(--color-primary-light); }
@media (min-width: 1024px) { .hamburger { display: none; } }
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 300ms, opacity 300ms;
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------------------------------------------------------------------------
   10. MEGA-MENU PANEL
   --------------------------------------------------------------------------- */
.mega-menu {
  position: absolute;
  top: calc(100% + 1px);
  left: var(--space-12);
  width: 760px;
  max-width: 94vw;
  background: var(--color-bg);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  border: var(--border-default);
  padding: var(--space-8);
  z-index: 200;
}
.mega-menu[hidden] { display: none; }

.mega-menu__grid {
  display: grid;
  gap: var(--space-8);
  grid-template-columns: 1fr 1fr;
}
@media (min-width: 1024px) { .mega-menu__grid { grid-template-columns: 1fr 1fr 240px; } }

.mega-menu__col-label {
  display: block;
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  margin-bottom: var(--space-4);
}

.menu-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-3);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--color-text);
  transition: background 150ms;
  margin-bottom: var(--space-1);
}
.menu-item:hover { background: var(--color-primary-light); color: var(--color-text); }
.menu-item__icon { color: var(--color-primary); width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; }
.menu-item__label { font-size: var(--text-body); font-weight: 600; display: block; line-height: 1.3; }
.menu-item__desc  { font-size: var(--text-small); color: var(--color-text-secondary); display: block; }

.mega-menu__col-footer {
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: var(--border-default);
}
.mega-menu__col-footer a {
  font-size: var(--text-small);
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: var(--space-1);
}
.mega-menu__col-footer a:hover { text-decoration: underline; }

/* Featured column */
.mega-menu__featured {
  background: var(--color-primary);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  color: var(--color-text-on-dark);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.mega-menu__featured-title {
  font-size: var(--text-h4);
  font-weight: 700;
  color: var(--color-text-on-dark);
  margin-bottom: 0;
}
.mega-menu__featured-body {
  font-size: var(--text-small);
  color: var(--color-text-muted-on-dark);
  flex: 1;
  margin-bottom: 0;
}
/* Hide featured col on narrow screens where the panel is already 2-col */
@media (max-width: 1023px) { .mega-menu__featured { display: none; } }

/* ---------------------------------------------------------------------------
   11. MOBILE DRAWER
   --------------------------------------------------------------------------- */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 300;
  display: none;
}
.drawer-overlay.is-open { display: block; }

.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(85vw, 360px);
  background: var(--color-bg);
  z-index: 301;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 300ms ease;
  overflow-y: auto;
}
@media (prefers-reduced-motion: reduce) { .mobile-drawer { transition: none; } }
.mobile-drawer.is-open { transform: translateX(0); }

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-5) var(--space-6);
  border-bottom: var(--border-default);
}
.drawer-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text);
  border-radius: var(--radius-md);
  padding: 0;
}
.drawer-close:hover { background: var(--color-primary-light); }

.drawer-nav { flex: 1; padding: var(--space-4) 0; }

.drawer-nav-link {
  display: block;
  padding: var(--space-4) var(--space-6);
  font-size: var(--text-body);
  font-weight: 600;
  color: var(--color-text);
  text-decoration: none;
  border-bottom: var(--border-default);
}
.drawer-nav-link:hover { background: var(--color-primary-light); color: var(--color-primary); }

.drawer-services-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-6);
  font-size: var(--text-body);
  font-weight: 600;
  color: var(--color-text);
  background: none;
  border: none;
  border-bottom: var(--border-default);
  cursor: pointer;
  text-align: left;
}
.drawer-services-trigger .chevron {
  width: 20px; height: 20px;
  transition: transform 250ms;
  flex-shrink: 0;
  color: var(--color-text-secondary);
}
.drawer-services-trigger[aria-expanded="true"] .chevron { transform: rotate(180deg); }

.drawer-services-panel {
  background: var(--color-surface);
}
.drawer-services-panel[hidden] { display: none; }

.drawer-services-group { padding: var(--space-4) var(--space-6); }
.drawer-services-label {
  display: block;
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  margin-bottom: var(--space-3);
  padding-top: var(--space-3);
}
.drawer-service-link {
  display: block;
  padding: var(--space-3) 0;
  font-size: var(--text-body);
  color: var(--color-text);
  text-decoration: none;
  border-bottom: var(--border-default);
}
.drawer-service-link:last-child { border-bottom: none; }
.drawer-service-link:hover { color: var(--color-primary); }

/* Drawer footer */
.drawer-footer {
  padding: var(--space-6);
  border-top: var(--border-default);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.drawer-footer-contacts {
  display: flex;
  gap: var(--space-4);
}
.drawer-contact-link {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-body);
  font-weight: 600;
  color: var(--color-text);
  text-decoration: none;
}
.drawer-contact-link:hover { color: var(--color-primary); }
.drawer-cta { width: 100%; text-align: center; justify-content: center; }

/* ---------------------------------------------------------------------------
   12. HERO PATTERNS
   --------------------------------------------------------------------------- */

/* P-01: Split Hero */
.hero-split { overflow: hidden; }
.hero-split .grid--split { align-items: stretch; }
.hero-split__img {
  aspect-ratio: 4/3;
  overflow: hidden;
}
@media (min-width: 1024px) {
  .hero-split__img {
    aspect-ratio: auto;
    min-height: 480px;
    max-height: 600px;
  }
}
.hero-split__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-split__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-10) var(--space-8);
  background: var(--color-surface);
}
@media (max-width: 1023px) { .hero-split__content { padding: var(--space-8) var(--container-pad); } }
.hero-split__cta-group { display: flex; flex-wrap: wrap; gap: var(--space-4); margin-top: var(--space-6); }
.hero-split__proof {
  font-size: var(--text-small);
  color: var(--color-text-secondary);
  margin-top: var(--space-5);
}

/* P-02: Centered Hero */
.hero-centered {
  text-align: center;
  position: relative;
}
.hero-centered--bg {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero-centered--bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--color-overlay);
}
.hero-centered--bg .container { position: relative; z-index: 1; }
.hero-centered__content {
  max-width: 720px;
  margin-inline: auto;
}
.hero-centered__cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: center;
  margin-top: var(--space-6);
}

/* ---------------------------------------------------------------------------
   13. TRUST STRIP (P-03)
   --------------------------------------------------------------------------- */
.trust-strip { }
.trust-strip__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6) var(--space-8);
  justify-items: center;
  text-align: center;
}
@media (min-width: 1024px) { .trust-strip__grid { grid-template-columns: repeat(5, 1fr); } }

.trust-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
}
.trust-badge__icon { color: var(--color-primary); width: 28px; height: 28px; }
.trust-badge__label { font-size: var(--text-small); font-weight: 600; color: var(--color-text); }

/* ---------------------------------------------------------------------------
   14. AUDIENCE SPLIT (P-14)
   --------------------------------------------------------------------------- */
.audience-split__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}
@media (min-width: 640px) { .audience-split__grid { grid-template-columns: 1fr 1fr; } }

/* ---------------------------------------------------------------------------
   15. PROCESS STEPS (P-07)
   --------------------------------------------------------------------------- */
.process-steps { }
.process-steps__row {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  position: relative;
}
@media (min-width: 1024px) {
  .process-steps__row {
    flex-direction: row;
    align-items: flex-start;
  }
  .process-steps__row::before {
    content: '';
    position: absolute;
    top: 24px;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--color-accent);
    z-index: 0;
  }
}

.process-step {
  flex: 1;
  position: relative;
  z-index: 1;
}
.process-step__number {
  width: 48px; height: 48px;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  color: var(--color-text-on-dark);
  font-size: var(--text-h4);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
  flex-shrink: 0;
}
.process-step h4 { font-size: var(--text-h4); font-weight: 600; margin-bottom: var(--space-2); }
.process-step p { font-size: var(--text-body); color: var(--color-text-secondary); margin-bottom: 0; }
.section--accent .process-step p { color: var(--color-text-secondary); }

@media (max-width: 1023px) {
  .process-step { display: flex; gap: var(--space-4); }
  .process-step__content { flex: 1; }
}

/* ---------------------------------------------------------------------------
   16. STATS BAND (P-08 variant)
   --------------------------------------------------------------------------- */
.stats-band__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-10);
}

/* ---------------------------------------------------------------------------
   17. SERVICE AREA (P-19)
   --------------------------------------------------------------------------- */
.service-area__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  align-items: center;
}
@media (min-width: 1024px) { .service-area__grid { grid-template-columns: 1fr 1fr; } }
.service-area__list { list-style: none; }
.service-area__list li {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  border-bottom: var(--border-default);
  font-size: var(--text-body);
}
.service-area__list li:last-child { border-bottom: none; }
.service-area__list .icon { color: var(--color-primary); width: 18px; height: 18px; flex-shrink: 0; }
.service-area__map { border-radius: var(--radius-lg); overflow: hidden; }
.service-area__map img { width: 100%; }

/* ---------------------------------------------------------------------------
   18. FAQ ACCORDION (P-16)
   --------------------------------------------------------------------------- */
.accordion { max-width: 720px; margin-inline: auto; }
.accordion__item { border-bottom: var(--border-default); }
.accordion__item:first-child { border-top: var(--border-default); }

.accordion__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-5) 0;
  font-size: var(--text-body);
  font-weight: 600;
  color: var(--color-text);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
}
.accordion__trigger:hover { color: var(--color-primary); }
.accordion__trigger[aria-expanded="true"] { color: var(--color-primary); background: var(--color-primary-light); padding-inline: var(--space-4); margin-inline: calc(-1 * var(--space-4)); border-radius: var(--radius-md); }
.accordion__icon {
  color: var(--color-primary);
  width: 20px; height: 20px;
  flex-shrink: 0;
  transition: transform 300ms;
}
.accordion__trigger[aria-expanded="true"] .accordion__icon { transform: rotate(180deg); }

.accordion__panel {
  overflow: hidden;
  max-height: 0;
  transition: max-height 400ms ease, padding 400ms ease;
}
@media (prefers-reduced-motion: reduce) { .accordion__panel { transition: none; } }
.accordion__panel[aria-hidden="false"] { max-height: 600px; }
.accordion__panel-inner { padding-bottom: var(--space-5); font-size: var(--text-body); color: var(--color-text-secondary); }

/* ---------------------------------------------------------------------------
   19. PRICING TABLE (P-12)
   --------------------------------------------------------------------------- */
.pricing-section { }
.pricing-table-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.pricing-table {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: var(--border-default);
}
.pricing-table caption {
  font-size: var(--text-h3);
  font-weight: 700;
  text-align: left;
  padding: var(--space-5) var(--space-6);
  background: var(--color-surface-2);
  border-bottom: var(--border-default);
  color: var(--color-text);
}
.pricing-table th {
  background: var(--color-surface-2);
  padding: var(--space-4) var(--space-6);
  text-align: left;
  font-size: var(--text-small);
  font-weight: 600;
  color: var(--color-text);
  border-bottom: var(--border-default);
}
.pricing-table td {
  padding: var(--space-4) var(--space-6);
  font-size: var(--text-body);
  border-bottom: var(--border-default);
}
.pricing-table tr:last-child td { border-bottom: none; }
.pricing-table tr:nth-child(even) td { background: var(--color-surface); }
.pricing-table tr.pricing-featured td {
  border-left: var(--border-accent);
  background: var(--color-accent-light);
  font-weight: 600;
}
.pricing-table .price-cell { font-weight: 600; color: var(--color-primary); }
.pricing-note {
  font-size: var(--text-small);
  color: var(--color-text-secondary);
  margin-top: var(--space-4);
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
}
.pricing-note .icon { color: var(--color-primary); width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; }

/* ---------------------------------------------------------------------------
   20. TABS
   --------------------------------------------------------------------------- */
.tabs { }
.tabs__list {
  display: flex;
  border-bottom: var(--border-default);
  margin-bottom: var(--space-6);
  gap: 0;
}
.tabs__btn {
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-body);
  font-weight: 600;
  color: var(--color-text-secondary);
  cursor: pointer;
  margin-bottom: -1px;
  transition: color 150ms, border-color 150ms;
  white-space: nowrap;
}
.tabs__btn:hover { color: var(--color-text); }
.tabs__btn[aria-selected="true"] {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
  font-weight: 700;
}
.tabs__panel { display: none; }
.tabs__panel:not([hidden]) { display: block; }

/* ---------------------------------------------------------------------------
   21. CHECKLIST (P-11)
   --------------------------------------------------------------------------- */
.checklist-section {}
.checklist-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
}
@media (min-width: 1024px) { .checklist-grid { grid-template-columns: repeat(2, 1fr); } }

.checklist-area h4 {
  font-size: var(--text-h4);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: var(--border-accent);
}
.checklist-area ul { list-style: none; }
.checklist-area ul li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-2) 0;
  font-size: var(--text-body);
  border-bottom: 1px solid var(--color-surface-2);
}
.checklist-area ul li:last-child { border-bottom: none; }
.checklist-area .icon { color: var(--color-primary); width: 16px; height: 16px; flex-shrink: 0; margin-top: 3px; }

/* ---------------------------------------------------------------------------
   22. GUARANTEE BLOCK (P-13)
   --------------------------------------------------------------------------- */
.guarantee-block { text-align: center; }
.guarantee-block__icon {
  color: var(--color-accent);
  width: 56px; height: 56px;
  margin-inline: auto;
  margin-bottom: var(--space-5);
}
.guarantee-block__terms { margin-block: var(--space-5); display: flex; flex-wrap: wrap; gap: var(--space-3); justify-content: center; }

/* ---------------------------------------------------------------------------
   23. ALTERNATING IMAGE-TEXT ROWS (P-06)
   --------------------------------------------------------------------------- */
.alt-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
  align-items: center;
  padding-block: var(--space-12);
}
@media (min-width: 1024px) { .alt-row { grid-template-columns: 55fr 45fr; } }
.alt-row--reverse { }
@media (min-width: 1024px) { .alt-row--reverse { direction: rtl; } .alt-row--reverse > * { direction: ltr; } }

.alt-row__img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
}
.alt-row__img img { width: 100%; height: 100%; object-fit: cover; }
.alt-row__content { }
.alt-row__content h2,
.alt-row__content h3 { margin-bottom: var(--space-5); }

/* ---------------------------------------------------------------------------
   24. EDITORIAL STORY ROW (P-18)
   --------------------------------------------------------------------------- */
.story-row {
  display: grid;
  grid-template-columns: 1fr;
}
@media (min-width: 1024px) { .story-row { grid-template-columns: 1fr 1fr; min-height: 500px; } }

.story-row__text {
  padding: var(--space-12);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
@media (max-width: 1023px) { .story-row__text { padding: var(--space-10) var(--container-pad); } }

.story-row__img {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 300px;
}

/* ---------------------------------------------------------------------------
   25. LOGO MARQUEE (P-10)
   --------------------------------------------------------------------------- */
.logo-marquee-section {}
.logo-marquee { overflow: hidden; }
.logo-marquee__track {
  display: flex;
  gap: var(--space-12);
  animation: logo-scroll 20s linear infinite;
  width: max-content;
}
.logo-marquee:hover .logo-marquee__track { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .logo-marquee__track {
    animation: none;
    flex-wrap: wrap;
    width: 100%;
    justify-content: center;
  }
}
@keyframes logo-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.logo-marquee__item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-body);
  font-weight: 600;
  color: var(--color-text-secondary);
  white-space: nowrap;
}
.logo-marquee__item .icon { color: var(--color-primary); width: 24px; height: 24px; }

/* ---------------------------------------------------------------------------
   26. CAROUSEL (P-09)
   --------------------------------------------------------------------------- */
.carousel-section {}
.carousel-wrapper {
  position: relative;
}
.embla { overflow: hidden; }
.embla__container {
  display: flex;
  gap: var(--space-6);
}
.embla__slide {
  flex: 0 0 100%;
  min-width: 0;
}
@media (min-width: 768px)  { .embla__slide { flex: 0 0 calc(50% - var(--space-3)); } }
@media (min-width: 1024px) { .embla__slide { flex: 0 0 calc(33.333% - var(--space-4)); } }

/* Related services carousel — peek effect */
.embla--related .embla__slide { flex: 0 0 80%; }
@media (min-width: 1024px) { .embla--related .embla__slide { flex: 0 0 calc(33.333% - var(--space-4)); } }

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  margin-top: var(--space-6);
}
.carousel__btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: var(--radius-full);
  border: var(--border-default);
  background: var(--color-bg);
  color: var(--color-primary);
  cursor: pointer;
  transition: background 150ms, border-color 150ms;
  padding: 0;
}
@media (min-width: 768px) { .carousel__btn { display: flex; } }
.carousel__btn:hover { background: var(--color-primary-light); border-color: var(--color-primary); }
.carousel__btn[disabled] { opacity: 0.4; cursor: not-allowed; }
.section--dark .carousel__btn { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.3); color: var(--color-text-on-dark); }
.section--dark .carousel__btn:hover { background: rgba(255,255,255,0.2); }

.carousel__dots {
  display: flex;
  gap: var(--space-2);
  align-items: center;
}
.carousel__dot {
  width: 8px; height: 8px;
  border-radius: var(--radius-full);
  border: none;
  background: var(--color-border-strong);
  cursor: pointer;
  padding: 0;
  transition: background 150ms, width 150ms;
}
.carousel__dot.is-selected { background: var(--color-primary); width: 24px; }
.section--dark .carousel__dot { background: rgba(255,255,255,0.3); }
.section--dark .carousel__dot.is-selected { background: var(--color-text-on-dark); }

.carousel__pause {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: var(--radius-full);
  border: var(--border-default);
  background: var(--color-bg);
  color: var(--color-primary);
  cursor: pointer;
  transition: background 150ms;
  padding: 0;
}
.section--dark .carousel__pause { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.3); color: var(--color-text-on-dark); }
.carousel__pause:hover { background: var(--color-primary-light); }

/* Before/After slider */
.before-after {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  user-select: none;
}
.before-after__img { display: block; width: 100%; }
.before-after__img--after {
  position: absolute;
  top: 0; left: 0;
  width: 50%;
  overflow: hidden;
}
.before-after__img--after img { min-width: 200%; }
.before-after__handle {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 4px;
  background: var(--color-text-on-dark);
  transform: translateX(-50%);
  cursor: ew-resize;
  z-index: 10;
}
.before-after__handle::before,
.before-after__handle::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 40px; height: 40px;
  border-radius: var(--radius-full);
  background: var(--color-bg);
  border: 3px solid var(--color-primary);
  top: 50%; margin-top: -20px;
}
.before-after input[type="range"] {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  opacity: 0;
  cursor: ew-resize;
  z-index: 20;
  margin: 0;
}
.before-after__labels {
  position: absolute;
  bottom: var(--space-4);
  left: 0; right: 0;
  display: flex;
  justify-content: space-between;
  padding-inline: var(--space-4);
  pointer-events: none;
}
.before-after__label {
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-size: var(--text-xs);
  font-weight: 700;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
}

/* ---------------------------------------------------------------------------
   27. CONTACT FORM & SIDE PANEL (P-15)
   --------------------------------------------------------------------------- */
.contact-page__grid { display: grid; grid-template-columns: 1fr; gap: var(--space-10); }
@media (min-width: 1024px) { .contact-page__grid { grid-template-columns: 55fr 45fr; } }

.contact-side { }
.contact-side__heading { font-size: var(--text-h3); margin-bottom: var(--space-6); }
.contact-side__item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding-block: var(--space-5);
  border-bottom: var(--border-default);
  font-size: var(--text-body);
}
.contact-side__item:last-child { border-bottom: none; }
.contact-side__icon { color: var(--color-primary); width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; }
.contact-side__map { margin-top: var(--space-6); border-radius: var(--radius-lg); overflow: hidden; }
.contact-side__map img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }

/* Form styling */
.quote-form__heading { font-size: var(--text-h3); margin-bottom: var(--space-6); }
.form__row { margin-bottom: var(--space-5); }
.form__row--2col { display: grid; grid-template-columns: 1fr; gap: var(--space-5); }
@media (min-width: 640px) { .form__row--2col { grid-template-columns: 1fr 1fr; } }
.form__field { display: flex; flex-direction: column; gap: var(--space-1); }
.form__label { font-size: var(--text-small); font-weight: 600; color: var(--color-text); }
.form__required { color: var(--color-error); margin-left: 2px; }
.form__optional { font-weight: 400; color: var(--color-text-secondary); }

.form__input,
.form__select,
.form__textarea {
  background: var(--color-bg);
  border: var(--border-default);
  border-radius: var(--radius-sm);
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-body);
  color: var(--color-text);
  width: 100%;
  transition: border-color 150ms, box-shadow 150ms;
  -webkit-appearance: none;
}
.form__input:focus,
.form__select:focus,
.form__textarea:focus {
  outline: none;
  border: var(--border-strong);
  box-shadow: 0 0 0 3px var(--color-primary-light);
}
.form__input[aria-invalid="true"],
.form__select[aria-invalid="true"],
.form__textarea[aria-invalid="true"] {
  border: 2px solid var(--color-error);
  background: var(--color-error-bg);
}
.form__textarea { resize: vertical; min-height: 100px; }
.form__select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235A5651' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: var(--space-8); }
.form__error { font-size: var(--text-small); color: var(--color-error); display: none; }
.form__error.is-visible { display: block; }
.form__field--checkbox { flex-direction: row; align-items: flex-start; gap: var(--space-3); }
.form__checkbox-label { display: flex; align-items: flex-start; gap: var(--space-3); font-size: var(--text-small); cursor: pointer; }
.form__checkbox { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; accent-color: var(--color-primary); }
.form__field--half { max-width: 300px; }
.form__row--submit { margin-top: var(--space-6); }
.form__submit { width: 100%; justify-content: center; font-size: var(--text-body); padding: var(--space-4) var(--space-8); }
.form__reassurance { font-size: var(--text-small); color: var(--color-text-secondary); margin-top: var(--space-4); }
.form-success { background: var(--color-success-bg); border: 2px solid var(--color-success); border-radius: var(--radius-lg); padding: var(--space-6); margin-bottom: var(--space-6); }
.form-success__message { color: var(--color-success); font-weight: 600; margin-bottom: 0; }
.form-error-banner { background: var(--color-error-bg); border: 2px solid var(--color-error); border-radius: var(--radius-lg); padding: var(--space-4) var(--space-6); margin-bottom: var(--space-6); color: var(--color-error); }

/* ---------------------------------------------------------------------------
   28. BREADCRUMB
   --------------------------------------------------------------------------- */
.breadcrumb { margin-bottom: var(--space-5); }
.breadcrumb__list { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; list-style: none; }
.breadcrumb__item { display: flex; align-items: center; gap: var(--space-2); }
.breadcrumb__item + .breadcrumb__item::before { content: '›'; color: var(--color-text-muted-on-dark); font-size: var(--text-small); }
.section--light .breadcrumb__item + .breadcrumb__item::before,
.section--surface .breadcrumb__item + .breadcrumb__item::before { color: var(--color-text-secondary); }
.breadcrumb__link { font-size: var(--text-small); color: var(--color-text-muted-on-dark); text-decoration: none; }
.breadcrumb__link:hover { text-decoration: underline; }
.section--light .breadcrumb__link,
.section--surface .breadcrumb__link { color: var(--color-text-secondary); }
.breadcrumb__current { font-size: var(--text-small); color: var(--color-text-muted-on-dark); }
.section--light .breadcrumb__current,
.section--surface .breadcrumb__current { color: var(--color-text-secondary); }

/* ---------------------------------------------------------------------------
   29. COOKIE CONSENT BANNER
   --------------------------------------------------------------------------- */
.consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 500;
  background: var(--color-primary);
  color: var(--color-text-on-dark);
  padding: var(--space-6);
  box-shadow: var(--shadow-lg);
  transform: translateY(100%);
  transition: transform 400ms ease;
}
@media (prefers-reduced-motion: reduce) { .consent-banner { transition: none; } }
.consent-banner.is-visible { transform: translateY(0); }

.consent-banner__inner {
  max-width: var(--container-max);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}
@media (min-width: 768px) {
  .consent-banner__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}
.consent-banner__text { flex: 1; }
.consent-banner__title { font-size: var(--text-h4); font-weight: 700; color: var(--color-text-on-dark); margin-bottom: var(--space-2); }
.consent-banner__body { font-size: var(--text-small); color: var(--color-text-muted-on-dark); margin-bottom: 0; }
.consent-banner__body a { color: var(--color-text-on-dark); }
.consent-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
  flex-shrink: 0;
}
.consent-banner__link {
  font-size: var(--text-small);
  color: var(--color-text-muted-on-dark);
  text-decoration: underline;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-2) var(--space-4);
  white-space: nowrap;
}
.consent-banner__link:hover { color: var(--color-text-on-dark); }

/* ---------------------------------------------------------------------------
   30. FOOTER
   --------------------------------------------------------------------------- */
.site-footer {
  background: var(--color-surface-2);
  border-top: var(--border-default);
  color: var(--color-text);
}
.footer-top {
  padding-block: var(--space-16);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
}
@media (min-width: 640px) { .footer-top { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-top { grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr; } }

.footer-brand { }
.footer-brand__name { font-size: var(--text-h3); font-weight: 700; color: var(--color-primary); margin-bottom: var(--space-3); }
.footer-brand__tagline { font-size: var(--text-small); color: var(--color-text-secondary); margin-bottom: var(--space-5); }
.footer-brand__social { display: flex; gap: var(--space-3); }
.footer-brand__social a { color: var(--color-text-secondary); transition: color 150ms; }
.footer-brand__social a:hover { color: var(--color-primary); }

.footer-col__title {
  font-size: var(--text-small);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text);
  margin-bottom: var(--space-5);
}
.footer-col__list { list-style: none; display: flex; flex-direction: column; gap: var(--space-3); }
.footer-col__list a {
  font-size: var(--text-small);
  color: var(--color-text-secondary);
  text-decoration: none;
}
.footer-col__list a:hover { color: var(--color-primary); text-decoration: underline; }

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-small);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-3);
}
.footer-contact-item .icon { color: var(--color-primary); width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; }
.footer-contact-item a { color: var(--color-text-secondary); text-decoration: none; }
.footer-contact-item a:hover { color: var(--color-primary); }

.footer-bottom {
  padding-block: var(--space-5);
  border-top: var(--border-default);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  align-items: center;
  justify-content: space-between;
}
.footer-bottom__copy { font-size: var(--text-xs); color: var(--color-text-secondary); }
.footer-bottom__legal {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
}
.footer-bottom__legal a,
.footer-bottom__legal button {
  font-size: var(--text-xs);
  color: var(--color-text-secondary);
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.footer-bottom__legal a:hover,
.footer-bottom__legal button:hover { color: var(--color-primary); text-decoration: underline; }
.footer-bottom__sep { color: var(--color-border-strong); }

/* WhatsApp floating button */
.wa-float {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  z-index: 400;
  width: 56px; height: 56px;
  border-radius: var(--radius-full);
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  text-decoration: none;
  transition: transform 200ms, background 200ms;
}
.wa-float:hover { background: #1ebe5c; transform: scale(1.08); color: #fff; }
@media (min-width: 1024px) { .wa-float { display: none; } }

/* ---------------------------------------------------------------------------
   31. BLOG
   --------------------------------------------------------------------------- */
.post-body { max-width: 720px; margin-inline: auto; }
.post-body h2 { margin-top: var(--space-10); margin-bottom: var(--space-5); }
.post-body h3 { margin-top: var(--space-8); margin-bottom: var(--space-4); }
.post-body ul, .post-body ol { margin-bottom: var(--space-6); padding-left: var(--space-6); }
.post-body ul { list-style: disc; }
.post-body ol { list-style: decimal; }
.post-body li { margin-bottom: var(--space-2); }
.post-body p { margin-bottom: var(--space-5); }
.post-body strong { font-weight: 700; }

.post-header { text-align: center; }
.post-header__meta { display: flex; flex-wrap: wrap; gap: var(--space-4); align-items: center; justify-content: center; margin-top: var(--space-4); color: var(--color-text-secondary); font-size: var(--text-small); }
.post-header__img { margin-top: var(--space-8); border-radius: var(--radius-lg); overflow: hidden; }
.post-header__img img { width: 100%; aspect-ratio: 16/6; object-fit: cover; }

.featured-post { display: grid; grid-template-columns: 1fr; gap: var(--space-8); align-items: center; }
@media (min-width: 1024px) { .featured-post { grid-template-columns: 55fr 45fr; } }
.featured-post__img { aspect-ratio: 16/10; overflow: hidden; border-radius: var(--radius-lg); }
.featured-post__img img { width: 100%; height: 100%; object-fit: cover; }
.featured-post__content { display: flex; flex-direction: column; gap: var(--space-4); }
.featured-post__category { font-size: var(--text-xs); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--color-primary); }
.featured-post__content h2 { font-size: var(--text-h2); margin-bottom: 0; }
.featured-post__content p { color: var(--color-text-secondary); }

/* ---------------------------------------------------------------------------
   32. LEGAL PAGES (P-21)
   --------------------------------------------------------------------------- */
.legal-page { max-width: 720px; margin-inline: auto; }
.legal-page__header { margin-bottom: var(--space-8); }
.legal-page__updated { font-size: var(--text-small); color: var(--color-text-secondary); margin-top: var(--space-3); }
.legal-toc { margin-bottom: var(--space-10); padding: var(--space-6); background: var(--color-surface); border-radius: var(--radius-lg); border: var(--border-default); }
.legal-toc h2 { font-size: var(--text-h4); margin-bottom: var(--space-4); }
.legal-toc ol { padding-left: var(--space-5); }
.legal-toc li { margin-bottom: var(--space-2); }
.legal-toc a { font-size: var(--text-small); color: var(--color-primary); }
.legal-prose h2 { margin-top: var(--space-10); margin-bottom: var(--space-5); }
.legal-prose h3 { margin-top: var(--space-6); margin-bottom: var(--space-4); color: var(--color-primary); }
.legal-prose table { margin-block: var(--space-6); font-size: var(--text-small); }
.legal-prose table th { background: var(--color-surface-2); padding: var(--space-3) var(--space-4); text-align: left; border: var(--border-default); font-weight: 600; }
.legal-prose table td { padding: var(--space-3) var(--space-4); border: var(--border-default); }
.legal-prose ul { list-style: disc; padding-left: var(--space-6); margin-bottom: var(--space-5); }
.legal-prose ul li { margin-bottom: var(--space-2); }
.legal-prose p { margin-bottom: var(--space-5); }
.legal-notice { background: var(--color-accent-light); border: var(--border-accent); border-radius: var(--radius-md); padding: var(--space-5) var(--space-6); margin-bottom: var(--space-8); font-size: var(--text-small); }
.legal-notice p { margin-bottom: 0; }

/* ---------------------------------------------------------------------------
   33. SCROLL REVEAL — EXACT CONTRACT: .reveal + .is-visible
   JS adds `.is-visible`; CSS targets `.reveal.is-visible`. Never rename.
   --------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
/* Stagger via nth-child */
.reveal:nth-child(2) { transition-delay: 80ms; }
.reveal:nth-child(3) { transition-delay: 160ms; }
.reveal:nth-child(4) { transition-delay: 240ms; }

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal.is-visible {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------------------------------------------------------------------------
   34. BENTO GRID (P-17)
   --------------------------------------------------------------------------- */
.bento-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}
@media (min-width: 640px)  { .bento-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) {
  .bento-grid { grid-template-columns: repeat(3, 1fr); }
  .bento-grid .bento-item--wide { grid-column: span 2; }
}
.bento-item {
  background: var(--color-bg);
  border: var(--border-default);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}
.bento-item .icon { color: var(--color-primary); width: 36px; height: 36px; margin-bottom: var(--space-4); }
.bento-item h3 { margin-bottom: var(--space-3); }

/* ---------------------------------------------------------------------------
   35. MODAL
   --------------------------------------------------------------------------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  z-index: 600;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
}
.modal-backdrop.is-open { display: flex; }
.modal-panel {
  background: var(--color-bg);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}
.modal-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-6);
  border-bottom: var(--border-default);
  position: sticky;
  top: 0;
  background: var(--color-bg);
  z-index: 1;
}
.modal-panel__title { font-size: var(--text-h3); }
.modal-close {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: none; border: none; cursor: pointer;
  color: var(--color-text-secondary); border-radius: var(--radius-md);
  padding: 0;
}
.modal-close:hover { background: var(--color-primary-light); color: var(--color-primary); }
.modal-panel__body { padding: var(--space-6); }

/* ---------------------------------------------------------------------------
   36. PERSONAS PILL LIST
   --------------------------------------------------------------------------- */
.personas { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-4); }

/* ---------------------------------------------------------------------------
   37. 404 PAGE
   --------------------------------------------------------------------------- */
.not-found { text-align: center; padding-block: var(--space-32); }
.not-found h1 { font-size: var(--text-display); color: var(--color-primary); margin-bottom: var(--space-4); }
.not-found p { font-size: var(--text-large); color: var(--color-text-secondary); margin-bottom: var(--space-8); }

/* ---------------------------------------------------------------------------
   38. UTILITY CLASSES
   --------------------------------------------------------------------------- */
.text-center { text-align: center; }
.text-left   { text-align: left; }
.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; }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.gap-4 { gap: var(--space-4); }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.w-full { width: 100%; }
