/* ============================================================
   SUNCENTRAL — STYLE.CSS
   Swiss Precision mood · Forest & Amber palette
   ============================================================ */

/* ---------- CSS VARIABLES ---------- */
:root {
  --color-primary: #2F4C2B;
  --color-secondary: #59743C;
  --color-accent: #B96C30;
  --color-bg: #FDFCFB;
  --color-surface: #FFFFFF;
  --color-text: #203120;
  --color-text-light: #616D61;
  --color-band: #F5F3F0;

  --font-heading: 'Century Gothic', 'Apple Gothic', sans-serif;
  --font-body: Constantia, 'Lucida Bright', serif;

  --shadow-heavy: 0 8px 30px rgba(0,0,0,0.15);
  --shadow-card: 0 4px 20px rgba(0,0,0,0.10);
  --shadow-subtle: 0 2px 16px rgba(0,0,0,0.06);

  --radius-card: 0 0 8px 8px;
  --radius-input: 4px;
  --radius-btn: 0;

  --transition: 300ms ease;

  --nav-height: 65px;
  --utility-height: 32px;
  --container-max: 1086px;
}

/* ---------- RESET & BASE ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + var(--utility-height) + 20px);
}

body {
  font-family: var(--font-body);
  font-size: 1.01rem;
  line-height: 1.71;
  color: var(--color-text);
  background-color: var(--color-bg);
  letter-spacing: 0.015em;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: text-decoration var(--transition);
}

a:hover {
  text-decoration: underline;
}

ul, ol {
  list-style: disc;
  padding-left: 1.5rem;
}

/* ---------- SKIP LINK ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  position: fixed;
  left: 10px;
  top: 10px;
  width: auto;
  height: auto;
  overflow: visible;
  background: var(--color-primary);
  color: #fff;
  padding: 0.75rem 1.5rem;
  z-index: 100000;
  font-size: 1rem;
  border: 2px solid var(--color-accent);
}

/* ---------- TYPOGRAPHY ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--color-text);
  line-height: 1.25;
}

h1 {
  font-size: clamp(2.25rem, 4vw, 3.5rem);
  font-weight: 300;
}

h2 {
  font-size: clamp(1.5rem, 2.5vw, 2.25rem);
  font-weight: 400;
  padding-left: 1.2rem;
  border-left: 4px solid var(--color-accent);
  margin-bottom: 1.5rem;
}

h3 {
  font-size: 1.49rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

h4 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

p {
  margin-bottom: 1rem;
}

small, .text-small {
  font-size: 0.87rem;
}

blockquote {
  border-left: 4px solid var(--color-accent);
  padding-left: 1.5rem;
  font-style: italic;
  color: var(--color-text-light);
  margin: 1.5rem 0;
}

/* ---------- PAGE TRANSITION ---------- */
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

main {
  animation: slideUp 0.5s ease-out;
}

/* ---------- UTILITY BAR ---------- */
.utility-bar {
  background: var(--color-primary);
  color: rgba(255,255,255,0.85);
  font-size: 0.75rem;
  padding: 0.4rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--utility-height);
  font-family: var(--font-heading);
  transition: transform var(--transition);
  z-index: 1001;
  position: relative;
}

.utility-bar a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
}

.utility-bar a:hover {
  color: #fff;
  text-decoration: underline;
}

.utility-bar.hidden {
  transform: translateY(-100%);
  position: absolute;
}

.utility-left {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.utility-right {
  display: flex;
  gap: 1rem;
  align-items: center;
}

/* ---------- MAIN HEADER / NAV ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--color-surface);
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.nav-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.22rem;
  height: var(--nav-height);
  max-width: 100%;
  overflow: visible;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.14rem;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: nowrap;
}

.nav-links li {
  list-style: none;
}

.nav-links a {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  white-space: nowrap;
  padding: 0.25rem 0;
  transition: color var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-accent);
  text-decoration: none;
}

.nav-links a.active {
  border-bottom: 2px solid var(--color-accent);
}

.nav-cta {
  margin-left: 1rem;
}

.nav-cta .btn {
  font-size: 0.85rem;
  padding: 0.6rem 1.5rem;
}

/* ---------- LOGO / BRAND ---------- */
.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.site-brand:hover {
  text-decoration: none;
}

.site-logo {
  max-height: 40px;
  width: auto;
  flex-shrink: 0;
}

.site-name {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--color-primary);
  white-space: nowrap;
}

/* ---------- HAMBURGER / MOBILE NAV ---------- */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1100;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--color-text);
  transition: all var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--color-surface);
  z-index: 1050;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  opacity: 0;
  transition: opacity var(--transition);
}

.mobile-overlay.active {
  display: flex;
  opacity: 1;
}

.mobile-overlay a {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--color-text);
  text-decoration: none;
}

.mobile-overlay a:hover {
  color: var(--color-accent);
}

.mobile-overlay .btn {
  font-size: 1rem;
  margin-top: 1rem;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.89rem;
  font-weight: 600;
  padding: 0.94rem 2.49rem;
  border: none;
  border-radius: var(--radius-btn);
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: all var(--transition);
  letter-spacing: 0.02em;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--color-secondary);
  border-bottom-color: var(--color-accent);
  text-decoration: none;
  color: #fff;
}

.btn-accent {
  background: var(--color-accent);
  color: #fff;
}

.btn-accent:hover {
  background: #a35d28;
  border-bottom-color: var(--color-primary);
  text-decoration: none;
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  padding: calc(0.94rem - 2px) calc(2.49rem - 2px);
}

.btn-outline:hover {
  background: var(--color-primary);
  color: #fff;
  border-bottom-color: var(--color-accent);
  text-decoration: none;
}

.btn-full {
  display: block;
  width: 100%;
}

/* Dark background button variants */
.dark-bg .btn-outline {
  color: #fff;
  border-color: #fff;
}

.dark-bg .btn-outline:hover {
  background: #fff;
  color: var(--color-primary);
}

/* ---------- CONTAINER ---------- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 2rem;
}

/* ---------- SECTIONS ---------- */
.section {
  padding: 4.51rem 2rem;
  position: relative;
}

.section--padded {
  padding: 100px 2rem;
}

.section--band {
  background-color: var(--color-band);
}

.section--white {
  background-color: var(--color-surface);
}

.section--primary {
  background-color: var(--color-primary);
  color: #fff;
}

.section--primary h2,
.section--primary h3,
.section--primary p,
.section--primary a {
  color: #fff;
}

.section--primary h2 {
  border-left-color: var(--color-accent);
}

.section--accent {
  background-color: var(--color-accent);
  color: #fff;
}

.section--accent h2,
.section--accent h3,
.section--accent p {
  color: #fff;
}

.section--accent h2 {
  border-left-color: #fff;
}

.section-inner {
  max-width: var(--container-max);
  margin: 0 auto;
}

.section-center {
  text-align: center;
}

.section-center h2 {
  display: inline-block;
}

/* ---------- DECORATIVE: HORIZONTAL RULE RHYTHM MOTIF ---------- */
.hr-motif {
  display: block;
  width: 80px;
  height: 18px;
  background: repeating-linear-gradient(
    to bottom,
    var(--color-accent) 0px,
    var(--color-accent) 2px,
    transparent 2px,
    transparent 6px
  );
  margin-bottom: 1.5rem;
}

.hr-motif--center {
  margin-left: auto;
  margin-right: auto;
}

.hr-motif--white {
  background: repeating-linear-gradient(
    to bottom,
    rgba(255,255,255,0.6) 0px,
    rgba(255,255,255,0.6) 2px,
    transparent 2px,
    transparent 6px
  );
}

/* Card multi-line top border */
.card--multiline-top {
  border-top: 6px solid var(--color-primary);
  box-shadow:
    0 -10px 0 -8px var(--color-secondary),
    0 -14px 0 -12px var(--color-accent),
    var(--shadow-card);
}

/* Blockquote multi-line left border */
.quote--multiline {
  border-left: 4px solid var(--color-accent);
  box-shadow:
    -8px 0 0 -4px var(--color-secondary),
    -12px 0 0 -8px var(--color-primary);
  padding-left: 2rem;
}

/* ---------- DECORATIVE: DIAGONAL LINES ---------- */
.diagonal-lines {
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 10px,
    rgba(47,76,43,0.03) 10px,
    rgba(47,76,43,0.03) 11px
  );
}

.diagonal-lines--white {
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 10px,
    rgba(255,255,255,0.05) 10px,
    rgba(255,255,255,0.05) 11px
  );
}

/* ---------- DECORATIVE: DOT MATRIX TEXTURE ---------- */
.dot-matrix {
  background-image: radial-gradient(
    circle 1px at center,
    rgba(32,49,32,0.04) 0%,
    rgba(32,49,32,0.04) 100%,
    transparent 100%
  );
  background-size: 20px 20px;
}

/* ---------- DECORATIVE: TORN PAPER EDGE ---------- */
.torn-edge {
  position: relative;
}

.torn-edge::after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: 0;
  width: 100%;
  height: 20px;
  z-index: 2;
  background-repeat: no-repeat;
  background-size: 100% 20px;
}

.torn-edge--white::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 20' preserveAspectRatio='none'%3E%3Cpath d='M0,15 L40,5 L80,18 L120,3 L160,16 L200,8 L240,19 L280,2 L320,14 L360,7 L400,17 L440,4 L480,15 L520,9 L560,18 L600,3 L640,13 L680,6 L720,19 L760,2 L800,16 L840,8 L880,14 L920,4 L960,18 L1000,7 L1040,15 L1080,3 L1120,17 L1160,9 L1200,14 L1240,5 L1280,19 L1320,2 L1360,16 L1400,8 L1440,15 L1440,20 L0,20 Z' fill='%23FFFFFF'/%3E%3C/svg%3E");
}

.torn-edge--band::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 20' preserveAspectRatio='none'%3E%3Cpath d='M0,15 L40,5 L80,18 L120,3 L160,16 L200,8 L240,19 L280,2 L320,14 L360,7 L400,17 L440,4 L480,15 L520,9 L560,18 L600,3 L640,13 L680,6 L720,19 L760,2 L800,16 L840,8 L880,14 L920,4 L960,18 L1000,7 L1040,15 L1080,3 L1120,17 L1160,9 L1200,14 L1240,5 L1280,19 L1320,2 L1360,16 L1400,8 L1440,15 L1440,20 L0,20 Z' fill='%23F5F3F0'/%3E%3C/svg%3E");
}

.torn-edge--bg::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 20' preserveAspectRatio='none'%3E%3Cpath d='M0,15 L40,5 L80,18 L120,3 L160,16 L200,8 L240,19 L280,2 L320,14 L360,7 L400,17 L440,4 L480,15 L520,9 L560,18 L600,3 L640,13 L680,6 L720,19 L760,2 L800,16 L840,8 L880,14 L920,4 L960,18 L1000,7 L1040,15 L1080,3 L1120,17 L1160,9 L1200,14 L1240,5 L1280,19 L1320,2 L1360,16 L1400,8 L1440,15 L1440,20 L0,20 Z' fill='%23FDFCFB'/%3E%3C/svg%3E");
}

/* ---------- HERO ---------- */
.hero {
  min-height: 82vh;
  padding: 5.21rem 2.32rem;
  display: flex;
  align-items: center;
  position: relative;
  background:
    radial-gradient(ellipse at center top, rgba(47,76,43,0.12) 0%, transparent 65%),
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 10px,
      rgba(47,76,43,0.025) 10px,
      rgba(47,76,43,0.025) 11px
    ),
    var(--color-bg);
  overflow: hidden;
}

.hero-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
}

.hero-content h1 {
  font-size: clamp(2.63rem, 5vw, 4.51rem);
  font-weight: 300;
  margin-bottom: 1.5rem;
  color: var(--color-text);
  line-height: 1.15;
}

.hero-content p {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--color-text-light);
  margin-bottom: 2rem;
  max-width: 540px;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding-top: 1rem;
}

.hero-stat-card {
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 1.5rem 2rem;
  border-left: 4px solid var(--color-accent);
  box-shadow: var(--shadow-subtle);
}

.hero-stat-card:nth-child(1) { margin-left: 0; }
.hero-stat-card:nth-child(2) { margin-left: 2rem; }
.hero-stat-card:nth-child(3) { margin-left: 1rem; }

.hero-stat-card .stat-number {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--color-accent);
  line-height: 1.1;
}

.hero-stat-card .stat-label {
  font-size: 0.82rem;
  color: var(--color-text-light);
  margin-top: 0.25rem;
}

/* ---------- CARDS / GRID ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 2.01rem;
}

.card {
  background: var(--color-surface);
  border-top: 6px solid var(--color-primary);
  border-radius: var(--radius-card);
  padding: 2.04rem;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
}

.card:hover {
  box-shadow: var(--shadow-heavy);
}

.card-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}

.card h3 {
  color: var(--color-text);
}

.card p {
  color: var(--color-text-light);
  font-size: 0.95rem;
}

.card-link {
  display: inline-block;
  margin-top: 1rem;
  font-family: var(--font-heading);
  font-size: 0.87rem;
  font-weight: 600;
  color: var(--color-accent);
  text-decoration: none;
}

.card-link:hover {
  text-decoration: underline;
}

/* Card tilt perspective wrapper */
.card-tilt-wrap {
  perspective: 1000px;
}

/* ---------- DIFFERENTIATORS ---------- */
.diff-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.diff-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.diff-item h4 {
  color: var(--color-primary);
  font-family: var(--font-heading);
}

.diff-item p {
  color: var(--color-text-light);
}

/* ---------- TESTIMONIALS — FULL WIDTH QUOTE ---------- */
.testimonial-section {
  padding: 100px 2rem;
}

.testimonial-slide {
  display: none;
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
  padding: 3rem 2rem;
}

.testimonial-slide.active {
  display: block;
}

.testimonial-slide blockquote {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-style: italic;
  line-height: 1.85;
  color: var(--color-text);
  border-left: none;
  padding-left: 0;
  margin-bottom: 2rem;
  position: relative;
}

.testimonial-slide blockquote::before {
  content: '\201C';
  font-family: var(--font-heading);
  font-size: 4rem;
  color: var(--color-accent);
  opacity: 0.3;
  display: block;
  margin-bottom: -1rem;
  line-height: 1;
}

.testimonial-attribution {
  font-family: var(--font-heading);
  font-size: 0.87rem;
  font-weight: 600;
  color: var(--color-text-light);
  letter-spacing: 0.02em;
}

.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem;
}

.testimonial-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-text-light);
  opacity: 0.3;
  border: none;
  cursor: pointer;
  transition: opacity var(--transition), background var(--transition);
}

.testimonial-dot.active {
  background: var(--color-accent);
  opacity: 1;
}

/* ---------- STATS — BIG NUMBER CARDS ---------- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2.01rem;
}

.stat-card {
  text-align: center;
  padding: 2.5rem 2rem;
  background: var(--color-surface);
  border-top: 6px solid var(--color-primary);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

.stat-card .stat-number {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 600;
  color: var(--color-accent);
  line-height: 1.1;
}

.stat-card .stat-label {
  font-size: 0.87rem;
  color: var(--color-text-light);
  margin-top: 0.5rem;
  line-height: 1.5;
}

/* ---------- CTA BANNER ---------- */
.cta-banner {
  background: var(--color-accent);
  padding: 80px 2rem;
  text-align: center;
  position: relative;
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 10px,
    rgba(255,255,255,0.05) 10px,
    rgba(255,255,255,0.05) 11px
  );
}

.cta-banner h2 {
  color: #fff;
  border-left-color: #fff;
  display: inline-block;
  font-size: clamp(1.5rem, 2.5vw, 2.25rem);
}

.cta-banner p {
  color: rgba(255,255,255,0.9);
  max-width: 600px;
  margin: 1rem auto 2rem;
  font-size: 1.05rem;
}

.cta-banner .btn {
  background: #fff;
  color: var(--color-accent);
}

.cta-banner .btn:hover {
  background: var(--color-primary);
  color: #fff;
  border-bottom-color: #fff;
}

/* ---------- ACCORDION ---------- */
.accordion-item {
  border-top: 6px solid var(--color-primary);
  border-radius: var(--radius-card);
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-card);
  background: var(--color-surface);
  overflow: hidden;
}

.accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2.04rem;
  cursor: pointer;
  background: var(--color-surface);
  border: none;
  width: 100%;
  text-align: left;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--color-text);
  transition: background var(--transition);
}

.accordion-header:hover {
  background: var(--color-band);
}

.accordion-header .oneliner {
  font-family: var(--font-body);
  font-size: 0.87rem;
  color: var(--color-text-light);
  font-weight: 400;
  margin-left: 1rem;
  flex-shrink: 1;
}

.accordion-icon {
  font-size: 1.5rem;
  font-weight: 300;
  transition: transform var(--transition);
  flex-shrink: 0;
  margin-left: 1rem;
  color: var(--color-accent);
}

.accordion-item.active .accordion-icon {
  transform: rotate(45deg);
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 400ms ease;
}

.accordion-body-inner {
  padding: 0 2.04rem 2rem;
}

.accordion-body-inner p {
  color: var(--color-text-light);
  margin-bottom: 0.75rem;
}

.accordion-body-inner strong {
  color: var(--color-text);
}

/* ---------- TABS ---------- */
.tabs {
  margin-bottom: 2rem;
}

.tab-bar {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--color-band);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
}

.tab-btn {
  font-family: var(--font-heading);
  font-size: 0.89rem;
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  color: var(--color-text-light);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition);
  margin-bottom: -2px;
}

.tab-btn:hover {
  color: var(--color-text);
}

.tab-btn.active {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

/* ---------- FORMS — BOXED SECTIONS ---------- */
.form-box {
  border: 1px solid rgba(47,76,43,0.15);
  border-radius: 8px;
  padding: 2rem;
  margin-bottom: 1.5rem;
  background: var(--color-surface);
}

.form-box-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.4rem;
  font-family: var(--font-heading);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.92rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text);
  background: var(--color-bg);
  border: 1px solid rgba(47,76,43,0.2);
  border-radius: var(--radius-input);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(185,108,48,0.15);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

/* ---------- CASE STUDIES ---------- */
.case-study-card {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 2.5rem;
  align-items: start;
  background: var(--color-surface);
  border-top: 6px solid var(--color-primary);
  border-radius: var(--radius-card);
  padding: 2.5rem;
  box-shadow: var(--shadow-card);
  margin-bottom: 2.5rem;
}

.case-study-card .case-tag {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
}

.case-study-card h3 {
  margin-bottom: 1rem;
}

.case-study-card p {
  color: var(--color-text-light);
  font-size: 0.95rem;
}

.case-study-card strong {
  color: var(--color-text);
}

/* ---------- BLOG PREVIEWS ---------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 2.01rem;
}

.blog-card {
  background: var(--color-surface);
  border-top: 6px solid var(--color-primary);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.blog-card:hover {
  box-shadow: var(--shadow-heavy);
}

.blog-card-image {
  height: 180px;
  background: var(--color-band);
}

.blog-card-body {
  padding: 1.75rem 2rem;
}

.blog-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.78rem;
  font-family: var(--font-heading);
  color: var(--color-text-light);
  margin-bottom: 0.75rem;
}

.blog-meta .category-tag {
  color: var(--color-accent);
  font-weight: 600;
}

.blog-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
  line-height: 1.35;
}

.blog-card h3 a {
  color: var(--color-text);
  text-decoration: none;
}

.blog-card h3 a:hover {
  color: var(--color-accent);
}

.blog-card p {
  font-size: 0.9rem;
  color: var(--color-text-light);
}

/* ---------- MOSAIC LAYOUT (about page) ---------- */
.mosaic-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

.mosaic-grid .mosaic-item--wide {
  grid-column: span 2;
}

.mosaic-quote {
  background: var(--color-band);
  padding: 2.5rem;
  border-left: 4px solid var(--color-accent);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--color-text);
  display: flex;
  align-items: center;
}

/* ---------- TEAM PROFILES ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 2.01rem;
}

.team-card {
  background: var(--color-surface);
  border-top: 6px solid var(--color-primary);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.team-photo {
  height: 260px;
  background: var(--color-band);
}

.team-card-body {
  padding: 2rem;
}

.team-card .team-name {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-text);
}

.team-card .team-title {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  color: var(--color-accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
}

.team-card p {
  font-size: 0.9rem;
  color: var(--color-text-light);
}

.team-card .team-quote {
  font-style: italic;
  border-left: 3px solid var(--color-accent);
  padding-left: 1rem;
  margin-top: 1rem;
  font-size: 0.87rem;
  color: var(--color-text);
}

.team-compact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.team-compact-card {
  padding: 1.5rem;
  background: var(--color-surface);
  border-left: 4px solid var(--color-secondary);
  box-shadow: var(--shadow-subtle);
}

.team-compact-card .team-name {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
}

.team-compact-card .team-title {
  font-size: 0.78rem;
  color: var(--color-accent);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.team-compact-card p {
  font-size: 0.85rem;
  color: var(--color-text-light);
}

/* ---------- VALUES ---------- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2.01rem;
}

.value-item {
  padding: 2rem;
  border-left: 4px solid var(--color-accent);
  background: var(--color-surface);
  box-shadow: var(--shadow-subtle);
}

.value-item h4 {
  font-style: italic;
  color: var(--color-primary);
}

.value-item p {
  font-size: 0.92rem;
  color: var(--color-text-light);
}

/* ---------- COMMUNITY ---------- */
.community-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 2.01rem;
}

.community-item {
  padding: 2rem;
  background: var(--color-surface);
  border-top: 6px solid var(--color-secondary);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-subtle);
}

.community-item h4 {
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

/* ---------- IMAGE PLACEHOLDERS — PATTERN FILLS ---------- */
.img-placeholder {
  width: 100%;
  min-height: 200px;
  position: relative;
  overflow: hidden;
}

/* Herringbone */
.img-placeholder:nth-of-type(4n+1) {
  background:
    linear-gradient(135deg, rgba(47,76,43,0.08) 25%, transparent 25%) -10px 0,
    linear-gradient(225deg, rgba(47,76,43,0.08) 25%, transparent 25%) -10px 0,
    linear-gradient(315deg, rgba(47,76,43,0.08) 25%, transparent 25%),
    linear-gradient(45deg, rgba(47,76,43,0.08) 25%, transparent 25%);
  background-size: 20px 20px;
  background-color: var(--color-band);
}

/* Polka dots */
.img-placeholder:nth-of-type(4n+2) {
  background:
    radial-gradient(circle 4px, rgba(185,108,48,0.1) 100%, transparent 100%);
  background-size: 24px 24px;
  background-color: var(--color-band);
}

/* Crosshatch */
.img-placeholder:nth-of-type(4n+3) {
  background:
    repeating-linear-gradient(0deg, transparent, transparent 8px, rgba(47,76,43,0.06) 8px, rgba(47,76,43,0.06) 9px),
    repeating-linear-gradient(90deg, transparent, transparent 8px, rgba(47,76,43,0.06) 8px, rgba(47,76,43,0.06) 9px);
  background-color: var(--color-band);
}

/* Checkerboard */
.img-placeholder:nth-of-type(4n+4) {
  background:
    linear-gradient(45deg, rgba(89,116,60,0.08) 25%, transparent 25%, transparent 75%, rgba(89,116,60,0.08) 75%),
    linear-gradient(45deg, rgba(89,116,60,0.08) 25%, transparent 25%, transparent 75%, rgba(89,116,60,0.08) 75%);
  background-size: 20px 20px;
  background-position: 0 0, 10px 10px;
  background-color: var(--color-band);
}

/* Single-use hero/about image variants */
.hero-visual {
  min-height: 300px;
}

.case-study-image {
  min-height: 220px;
  border-radius: 4px;
}

/* ---------- DISCLOSURES ---------- */
.disclosures {
  background: var(--color-band);
  padding: 2.5rem 2rem;
  border-top: 1px solid rgba(47,76,43,0.1);
}

.disclosures-inner {
  max-width: var(--container-max);
  margin: 0 auto;
}

.disclosures h3 {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text);
  margin-bottom: 1rem;
}

.disclosures p {
  font-size: 0.87rem;
  line-height: 1.7;
  color: var(--color-text-light);
  margin-bottom: 0.75rem;
}

.disclosures p:last-child {
  margin-bottom: 0;
}

/* ---------- FOOTER ---------- */
.site-footer {
  background: var(--color-primary);
  color: rgba(255,255,255,0.85);
  padding: 3.9rem 2.79rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2.5rem;
  max-width: var(--container-max);
  margin: 0 auto;
}

.footer-col-heading {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  margin-bottom: 1rem;
  color: rgba(255,255,255,0.9);
}

.footer-about .site-brand {
  margin-bottom: 1rem;
}

.footer-about .site-name {
  color: #fff;
}

.footer-about p {
  font-size: 0.82rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.7);
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links li {
  line-height: 2;
}

.footer-links a {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  transition: opacity var(--transition);
}

.footer-links a:hover {
  opacity: 1;
  color: #fff;
  text-decoration: underline;
}

.footer-contact p {
  font-size: 0.82rem;
  line-height: 2;
  color: rgba(255,255,255,0.75);
}

.footer-contact a {
  color: rgba(255,255,255,0.75);
}

.footer-contact a:hover {
  color: #fff;
}

/* Footer horizontal line rhythm — progressively fading lines */
.footer-decor-lines {
  height: 18px;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255,255,255,0.15) 0px,
    rgba(255,255,255,0.15) 1px,
    transparent 1px,
    transparent 6px
  );
  margin-bottom: 2rem;
  max-width: 120px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding: 1.5rem 0;
  margin-top: 2.5rem;
  text-align: center;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
}

.footer-bottom p {
  font-size: 0.75rem;
  opacity: 0.5;
  color: rgba(255,255,255,0.85);
  margin: 0;
}

.footer-bottom a {
  color: rgba(255,255,255,0.6);
}

.footer-bottom a:hover {
  color: #fff;
}

/* padded bottom to clear the sticky mobile CTA */
.site-footer {
  padding-bottom: 1rem;
}

/* ---------- COOKIE BANNER ---------- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-surface);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.12);
  padding: 1.5rem 2rem;
  z-index: 9999;
  display: none;
  border-top: 3px solid var(--color-primary);
}

.cookie-banner.visible {
  display: block;
}

.cookie-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.cookie-inner p {
  flex: 1;
  font-size: 0.9rem;
  color: var(--color-text);
  margin: 0;
  min-width: 250px;
}

.cookie-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.cookie-actions .btn {
  font-size: 0.82rem;
  padding: 0.6rem 1.5rem;
}

/* Cookie preferences panel */
.cookie-prefs {
  display: none;
  background: var(--color-surface);
  padding: 2rem;
  border-top: 1px solid var(--color-band);
  max-width: var(--container-max);
  margin: 1rem auto 0;
}

.cookie-prefs.visible {
  display: block;
}

.cookie-pref-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--color-band);
}

.cookie-pref-item label {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--color-text);
}

.cookie-pref-item small {
  display: block;
  font-size: 0.78rem;
  color: var(--color-text-light);
}

/* Toggle switch */
.toggle-switch {
  position: relative;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  inset: 0;
  background: #ccc;
  border-radius: 24px;
  cursor: pointer;
  transition: background var(--transition);
}

.toggle-slider::before {
  content: '';
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform var(--transition);
}

.toggle-switch input:checked + .toggle-slider {
  background: var(--color-primary);
}

.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(20px);
}

.toggle-switch input:disabled + .toggle-slider {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ---------- FLOATING MOBILE CTA ---------- */
.floating-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-accent);
  z-index: 9990;
  padding: 0.85rem 2rem;
  text-align: center;
}

.floating-cta a {
  color: #fff;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  display: block;
}

.floating-cta a:hover {
  text-decoration: none;
}

/* ---------- ANIMATIONS — STAGGERED CASCADE ---------- */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms ease, transform 600ms ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-on-scroll:nth-child(1) { transition-delay: 0ms; }
.animate-on-scroll:nth-child(2) { transition-delay: 100ms; }
.animate-on-scroll:nth-child(3) { transition-delay: 200ms; }
.animate-on-scroll:nth-child(4) { transition-delay: 300ms; }
.animate-on-scroll:nth-child(5) { transition-delay: 400ms; }
.animate-on-scroll:nth-child(6) { transition-delay: 500ms; }
.animate-on-scroll:nth-child(7) { transition-delay: 600ms; }
.animate-on-scroll:nth-child(8) { transition-delay: 700ms; }

/* ---------- CONTACT INFO SECTION ---------- */
.contact-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact-details p {
  font-size: 0.95rem;
  line-height: 2;
  color: var(--color-text-light);
}

.contact-details strong {
  color: var(--color-text);
  font-family: var(--font-heading);
  font-weight: 600;
}

.contact-map {
  min-height: 280px;
  border-radius: 8px;
  overflow: hidden;
}

/* ---------- LEGAL PAGES (Privacy, Terms) ---------- */
.legal-content {
  max-width: 780px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.legal-content h1 {
  margin-bottom: 0.5rem;
}

.legal-content .last-updated {
  font-size: 0.87rem;
  color: var(--color-text-light);
  margin-bottom: 3rem;
}

.legal-content h2 {
  font-size: 1.35rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.legal-content ul {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.legal-content li {
  margin-bottom: 0.5rem;
  color: var(--color-text-light);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .nav-links {
    gap: 1.25rem;
  }

  .nav-links a {
    font-size: 0.85rem;
  }

  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1rem;
  }

  .hero-stat-card {
    margin-left: 0 !important;
    flex: 1;
    min-width: 180px;
  }

  .diff-grid {
    grid-template-columns: 1fr;
  }

  .case-study-card {
    grid-template-columns: 1fr;
  }

  .contact-info-grid {
    grid-template-columns: 1fr;
  }

  .mosaic-grid .mosaic-item--wide {
    grid-column: span 1;
  }
}

@media (max-width: 768px) {
  .nav-links,
  .nav-cta {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .utility-bar {
    font-size: 0.68rem;
    padding: 0.3rem 1rem;
  }

  .utility-left {
    gap: 0.75rem;
  }

  .hero {
    min-height: 60vh;
    padding: 4rem 1.5rem;
  }

  .hero-content h1 {
    font-size: clamp(2rem, 6vw, 3rem);
  }

  .section {
    padding: 3rem 1.25rem;
  }

  .section--padded {
    padding: 60px 1.25rem;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .stats-row {
    grid-template-columns: 1fr;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  .mosaic-grid {
    grid-template-columns: 1fr;
  }

  .mosaic-grid .mosaic-item--wide {
    grid-column: span 1;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .cookie-inner {
    flex-direction: column;
    align-items: stretch;
  }

  /* Show floating CTA */
  .floating-cta {
    display: block;
  }

  /* Push cookie banner above floating CTA */
  .cookie-banner {
    bottom: 52px;
  }

  /* Give footer padding for floating CTA */
  .site-footer {
    padding-bottom: 60px;
  }

  .hero-ctas {
    flex-direction: column;
  }

  .hero-ctas .btn {
    text-align: center;
  }

  .tab-bar {
    gap: 0;
  }

  .tab-btn {
    font-size: 0.78rem;
    padding: 0.6rem 1rem;
  }

  .values-grid {
    grid-template-columns: 1fr;
  }

  .community-grid {
    grid-template-columns: 1fr;
  }

  .team-compact {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero-stats {
    flex-direction: column;
  }

  .hero-stat-card {
    min-width: auto;
  }

  .cta-banner {
    padding: 60px 1.25rem;
  }

  .testimonial-slide blockquote {
    font-size: 1rem;
  }
}

/* ---------- PRINT ---------- */
@media print {
  .utility-bar,
  .site-header,
  .cookie-banner,
  .floating-cta,
  .mobile-overlay {
    display: none !important;
  }

  .site-footer {
    background: #fff;
    color: #000;
  }
}

/* === MANDATORY BASE RULES (auto-injected at end for max specificity) === */
html{overflow-x:hidden}
.skip-link{position:absolute!important;left:-9999px!important;top:auto;width:1px!important;height:1px!important;overflow:hidden!important;z-index:10000;clip:rect(0,0,0,0)!important}
.skip-link:focus{position:fixed!important;left:10px!important;top:10px!important;width:auto!important;height:auto!important;overflow:visible!important;clip:auto!important;padding:.75rem 1.5rem;background:var(--color-primary,#333);color:#fff;font-size:1rem;font-weight:700;border-radius:4px;text-decoration:none;z-index:10000}
.site-logo,.site-logo img,img.site-logo{max-height:40px!important;width:auto!important;object-fit:contain;background:none!important;vertical-align:middle}
.footer-brand .site-logo{max-height:28px!important;width:auto!important}
.site-brand,a.site-brand{display:inline-flex!important;align-items:center;gap:.5rem;text-decoration:none;color:inherit}
.site-footer .site-brand,.footer-brand .site-brand{flex-wrap:wrap}
.site-footer .site-name,.footer-brand .site-name,.footer-col .site-name{white-space:normal!important;word-wrap:break-word}
.site-footer{max-height:none!important;overflow:visible!important}
/* NAV SAFETY — prevent overflow, misalignment, and z-index issues */
.site-nav,.site-header,header[role="banner"]{z-index:1000;width:100%;max-width:100vw!important}
.site-nav .nav-inner,.site-nav nav,.nav-inner,header nav{display:flex!important;align-items:center!important;flex-wrap:nowrap;gap:0.5rem;width:100%;max-width:100%!important;overflow:visible}
.nav-links,.nav-links-left,.nav-links-right,.nav-menu,[class*="nav-links"]{display:flex;align-items:center;gap:0.75rem;flex-wrap:nowrap;max-width:100%;margin:0;padding:0;list-style:none}
.nav-link,.nav-login-btn,.site-nav a,header nav a{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-height:3rem;line-height:1.4;flex-shrink:1;min-width:0}
.nav-login-btn,.nav-cta,[class*="nav-cta"]{padding:0.4rem 1rem!important;font-size:0.85rem!important;border-radius:4px;flex-shrink:0}
@media(max-width:960px){.nav-links,.nav-links-left,.nav-links-right,.nav-menu,[class*="nav-links"]{display:none!important}}
.mobile-nav-overlay,.nav-overlay{display:none!important;position:fixed;inset:0;z-index:10001}
.mobile-nav-overlay.open,.nav-overlay.open{display:flex!important;flex-direction:column;align-items:center;justify-content:center;gap:1.5rem}
/* Prevent ANY element from causing horizontal scroll */
html,body{max-width:100vw!important;overflow-x:hidden!important}
/* Team portrait placeholders — ensure circles have dimensions even without images */
.team-portrait,.team-avatar,.team-photo{width:180px;height:180px;border-radius:50%;overflow:hidden;margin:0 auto 1rem;display:flex;align-items:center;justify-content:center}
.team-portrait img,.team-avatar img,.team-photo img{width:100%;height:100%;object-fit:cover;border-radius:50%}
/* Image placeholders — ensure they have dimensions and show images properly */
.image-placeholder{position:relative;overflow:hidden;min-height:200px}
.image-placeholder img{width:100%;height:100%;object-fit:cover;position:absolute;top:0;left:0;border-radius:inherit}
/* Content images injected by pipeline — no inline styles needed */
.content-img{width:100%;height:100%;object-fit:cover;border-radius:inherit;display:block}
/* Animate fallback — if JS fails, content must still be visible after 2s */
.animate-in,.animate-on-scroll,.scroll-animate,.fade-in,.slide-in,[class*="animate-"]{animation:_aiFallback 0s 2s forwards}
@keyframes _aiFallback{to{opacity:1!important;transform:none!important}}
.animate-in.visible,.animate-on-scroll.visible,.scroll-animate.visible,.fade-in.visible,.slide-in.visible,[class*="animate-"].visible{animation:none}
/* Character animation fallback — if JS fails, chars must be visible */
.char,.char-space{opacity:1!important;transform:none!important}
.char.visible{animation:none}
/* Cookie banner — uses site palette via CSS variables for theme consistency */
.cookie-banner{position:fixed;bottom:0;left:0;right:0;z-index:9999;padding:1rem 2rem;background:var(--color-text, #1a1a2e);color:var(--color-bg, #f0f0f0);display:none;align-items:center;justify-content:center;gap:1rem;flex-wrap:wrap;border-top:1px solid rgba(128,128,128,0.2);font-size:0.9rem}
.cookie-banner.visible,.cookie-banner.active,.cookie-banner.show,.cookie-banner.is-visible{display:flex}
.cookie-banner button,.cookie-accept,.cookie-decline,.cookie-btn,.cookie-link{padding:0.5rem 1.2rem;border-radius:6px;border:none;cursor:pointer;font-weight:600;font-size:0.85rem;color:var(--color-bg, #f0f0f0)}
.cookie-banner .cookie-accept,.cookie-banner .btn-primary,.cookie-banner [data-cookie="accept"]{background:var(--color-primary, #4ade80);color:var(--color-bg, #fff)}
.cookie-banner .cookie-decline,.cookie-banner .btn-ghost,.cookie-banner [data-cookie="decline"]{background:rgba(128,128,128,0.15);color:var(--color-text-light, #ccc)}
/* Footer minimum — ensure footer is visible even if custom CSS is truncated */
.site-footer{padding:3rem 2rem 1.5rem;position:relative}
.footer-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:2rem;max-width:1200px;margin:0 auto}
.footer-col a{display:block;font-size:0.9rem;margin-bottom:0.4rem;text-decoration:none}
.footer-bottom,.footer-copy{text-align:center;font-size:0.8rem;opacity:0.5;margin-top:2rem;padding-top:1.5rem;border-top:1px solid rgba(255,255,255,0.08)}
/* Interior page heroes must size to content, never clip text */
.hero--interior,[class*="hero-interior"],[class*="page-hero"]:not(.hero){min-height:auto!important;height:auto!important}
/* === END MANDATORY BASE RULES === */

/* === AUTO-FIX: fallback rules for HTML classes missing from CSS === */
/* === END AUTO-FIX === */
