/* ══════════════════════════════════════════════════════════════
   ESTATE — A Premium Real Estate Theme
   ITSWEBER CMS v3.4.0
   Image-focused, card-heavy, luxury feel
   ══════════════════════════════════════════════════════════════ */

/* ── Tokens ─────────────────────────────────────────────────── */
:root {
  /* Color Palette */
  --teal:         #0d4f4f;
  --teal-dark:    #093b3b;
  --teal-deeper:  #062a2a;
  --teal-light:   #1a6b6b;
  --gold:         #c9a84c;
  --gold-hover:   #b8963e;
  --gold-light:   #d4ba6a;
  --warm-gray:    #f5f0eb;
  --warm-gray-2:  #ebe4db;
  --warm-gray-3:  #d6ccc0;
  --white:        #ffffff;
  --border:       #e0d8cf;
  --border-light: #ede7df;

  /* Typography */
  --font-display: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-body:    -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;

  /* Sizing */
  --content-width: 800px;
  --wide-width:    1200px;
  --full-width:    1400px;

  /* Spacing */
  --space-xs:  0.25rem;
  --space-sm:  0.5rem;
  --space-md:  1rem;
  --space-lg:  1.5rem;
  --space-xl:  2.5rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;
  --space-4xl: 8rem;

  /* Shadows */
  --shadow-sm:   0 1px 3px rgba(13,79,79,0.06);
  --shadow-md:   0 4px 16px rgba(13,79,79,0.08);
  --shadow-lg:   0 12px 40px rgba(13,79,79,0.12);
  --shadow-card: 0 2px 12px rgba(13,79,79,0.07), 0 0 0 1px rgba(13,79,79,0.04);
  --shadow-card-hover: 0 8px 30px rgba(13,79,79,0.14), 0 0 0 1px rgba(201,168,76,0.2);

  /* Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  /* Transitions */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --duration: 0.3s;

  /* Semantic */
  --bg-page:       var(--warm-gray);
  --bg-surface:    var(--white);
  --bg-header:     rgba(255,255,255,0.92);
  --text-primary:  #2c2c2c;
  --text-secondary: #6b6560;
  --text-light:    #8a847e;
  --accent:        var(--teal);
  --accent-hover:  var(--teal-dark);

  /* ── Section Color Scheme Tokens (PFLICHT) ── */
  --scheme-primary-bg:    var(--teal);
  --scheme-primary-text:  #fff;
  --scheme-primary-muted: rgba(255,255,255,0.7);
  --scheme-alt-bg:        var(--warm-gray);
  --scheme-alt-text:      var(--text-primary);
  --scheme-dark-bg:       var(--teal-deeper);
  --scheme-dark-text:     #f1f5f9;
  --scheme-dark-muted:    rgba(241,245,249,0.7);
}

/* ── Dark Mode ──────────────────────────────────────────────── */
html[data-theme="dark"] {
  --bg-page:       #0e1f1f;
  --bg-surface:    #132c2c;
  --bg-header:     rgba(14,31,31,0.95);
  --text-primary:  #e8e2da;
  --text-secondary: #9a9590;
  --text-light:    #7a756f;
  --border:        #1e4040;
  --border-light:  #1a3636;
  --warm-gray:     #0e1f1f;
  --warm-gray-2:   #132c2c;
  --warm-gray-3:   #1a3636;
  --white:         #173434;
  --shadow-sm:     0 1px 3px rgba(0,0,0,0.2);
  --shadow-md:     0 4px 16px rgba(0,0,0,0.25);
  --shadow-lg:     0 12px 40px rgba(0,0,0,0.35);
  --shadow-card:   0 2px 12px rgba(0,0,0,0.2), 0 0 0 1px rgba(201,168,76,0.08);
  --shadow-card-hover: 0 8px 30px rgba(0,0,0,0.3), 0 0 0 1px rgba(201,168,76,0.15);
  --accent:        var(--gold);
  --accent-hover:  var(--gold-hover);
}

/* ── Reset & Base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background var(--duration) var(--ease), color var(--duration) var(--ease);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color var(--duration) var(--ease); }
a:hover { color: var(--accent-hover); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--text-primary);
}

/* ── Skip Link ─────────────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-md);
  padding: var(--space-sm) var(--space-md);
  background: var(--teal);
  color: white;
  border-radius: var(--radius-sm);
  z-index: 200;
  font-size: 0.875rem;
}
.skip-link:focus { top: var(--space-sm); }

/* ── Containers ────────────────────────────────────────────── */
.container        { max-width: var(--wide-width); margin: 0 auto; padding: 0 var(--space-lg); }
.container-narrow { max-width: var(--content-width); margin: 0 auto; padding: 0 var(--space-lg); }

/* ══════════════════════════════════════════════════════════════
   HEADER
   ══════════════════════════════════════════════════════════════ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-header);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
  transition: background var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}
.site-header.is-scrolled { box-shadow: var(--shadow-md); }

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

.site-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--teal);
  letter-spacing: -0.02em;
  text-decoration: none;
}
.site-logo:hover { color: var(--teal); }
html[data-theme="dark"] .site-logo { color: var(--gold); }
.site-logo img { height: 36px; width: auto; }

.main-nav { display: flex; align-items: center; gap: var(--space-lg); }

.nav-list {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-list a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  text-decoration: none;
  position: relative;
  padding: 0.25rem 0;
  transition: color var(--duration) var(--ease);
}
.nav-list a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--duration) var(--ease);
}
.nav-list a:hover,
.nav-list a.active { color: var(--teal); }
html[data-theme="dark"] .nav-list a:hover,
html[data-theme="dark"] .nav-list a.active { color: var(--gold); }
.nav-list a:hover::after,
.nav-list a.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* ── Dropdown Navigation ───────────────────────────────────── */
.nav-item.has-children > a { display: flex; align-items: center; gap: 0.25rem; }
.nav-chevron,
.nav-flyout-chevron { transition: transform var(--duration) var(--ease); }
.nav-item.has-children.is-open > a .nav-chevron { transform: rotate(180deg); }

.sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: var(--space-sm) 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--duration) var(--ease);
  z-index: 50;
  list-style: none;
}
.nav-item.has-children.is-open > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.sub-menu a {
  display: block;
  padding: var(--space-sm) var(--space-lg);
  font-size: 0.875rem;
  text-transform: none;
  letter-spacing: 0;
}
.sub-menu a::after { display: none; }
.sub-menu a:hover { background: var(--warm-gray); }
.sub-menu .sub-menu { top: -0.5rem; left: 100%; }

/* ── Header Search ─────────────────────────────────────────── */
.header-search { position: relative; }
.header-search-toggle {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-secondary);
  padding: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--duration) var(--ease);
}
.header-search-toggle:hover { color: var(--teal); }
html[data-theme="dark"] .header-search-toggle:hover { color: var(--gold); }

.header-search-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: var(--space-sm);
  min-width: 280px;
}
.header-search-dropdown form { display: flex; gap: var(--space-xs); }
.header-search-dropdown input[type="search"] {
  flex: 1;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-page);
  color: var(--text-primary);
  font-size: 0.875rem;
  font-family: var(--font-body);
  outline: none;
}
.header-search-dropdown input[type="search"]:focus { border-color: var(--teal); }
html[data-theme="dark"] .header-search-dropdown input[type="search"]:focus { border-color: var(--gold); }
.header-search-dropdown button[type="submit"] {
  background: var(--gold);
  border: none;
  border-radius: var(--radius-sm);
  color: var(--teal-deeper);
  padding: 0.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

/* ── Theme Toggle ──────────────────────────────────────────── */
.theme-toggle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: background var(--duration) var(--ease);
}
.theme-toggle:hover { background: var(--warm-gray-2); }
html[data-theme="dark"] .theme-toggle:hover { background: var(--warm-gray-3); }
.theme-toggle svg { width: 18px; height: 18px; }
html[data-theme="dark"] .icon-sun { display: none; }
html:not([data-theme="dark"]) .icon-moon { display: none; }

/* ── Mobile Hamburger ──────────────────────────────────────── */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-primary);
  font-size: 1.5rem;
  padding: 0.25rem;
}

/* ══════════════════════════════════════════════════════════════
   BREADCRUMBS
   ══════════════════════════════════════════════════════════════ */
.breadcrumbs {
  padding: var(--space-md) 0;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-light);
}
.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  list-style: none;
  padding: 0;
  margin: 0;
}
.breadcrumb-item + .breadcrumb-item::before {
  content: '/';
  margin-right: var(--space-xs);
  color: var(--border);
}
.breadcrumb-item a { color: var(--text-secondary); }
.breadcrumb-item a:hover { color: var(--teal); }
html[data-theme="dark"] .breadcrumb-item a:hover { color: var(--gold); }
.breadcrumb-current { font-weight: 600; color: var(--text-primary); }

/* ══════════════════════════════════════════════════════════════
   PAGE SECTIONS (Page Builder)
   ══════════════════════════════════════════════════════════════ */
.page-section {
  padding: var(--space-3xl) 0;
}
.page-section:nth-child(even) {
  background: var(--bg-surface);
}
.page-section--title-only {
  padding: var(--space-2xl) 0 var(--space-lg);
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-md);
}
.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.7;
}
.page-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  letter-spacing: -0.02em;
}
.page-content { font-size: 1rem; line-height: 1.7; }
.page-content p { margin-bottom: var(--space-md); }

/* ══════════════════════════════════════════════════════════════
   HERO SECTION
   ══════════════════════════════════════════════════════════════ */
.hero-section {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  padding: var(--space-4xl) 0;
  background: var(--teal);
  overflow: hidden;
}
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(13,79,79,0.85) 0%, rgba(13,79,79,0.5) 50%, rgba(9,59,59,0.7) 100%);
  z-index: 1;
}
.hero-section .container { position: relative; z-index: 2; text-align: center; max-width: 800px; margin: 0 auto; }
.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  color: white;
  margin-bottom: var(--space-lg);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255,255,255,0.7);
  margin-bottom: var(--space-2xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}
.hero-image {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── Hero Buttons ──────────────────────────────────────────── */
.btn, .btn-hero, .btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 1rem 2rem;
  background: var(--gold);
  color: var(--teal-deeper);
  border: none;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 700;
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: all var(--duration) var(--ease);
}
.btn:hover, .btn-hero:hover, .btn-primary:hover {
  background: var(--gold-hover);
  color: var(--teal-deeper);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(201,168,76,0.3);
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 1rem 2rem;
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  font-family: var(--font-body);
  letter-spacing: 0.02em;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--duration) var(--ease);
}
.btn-secondary:hover {
  border-color: var(--gold);
  color: var(--teal);
}
html[data-theme="dark"] .btn-secondary:hover { color: var(--gold); }

/* ══════════════════════════════════════════════════════════════
   INTRO SECTION
   ══════════════════════════════════════════════════════════════ */
.intro-section {
  text-align: center;
  padding: var(--space-3xl) 0;
}
.intro-section .container { max-width: var(--content-width); }
.intro-section h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin-bottom: var(--space-md);
}
.intro-section p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ══════════════════════════════════════════════════════════════
   FEATURES SECTION
   ══════════════════════════════════════════════════════════════ */
.features-section { padding: var(--space-3xl) 0; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}
.feature-card {
  background: var(--bg-surface);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl) var(--space-xl);
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: transform var(--duration) var(--ease),
              box-shadow var(--duration) var(--ease),
              border-color var(--duration) var(--ease);
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--gold));
  opacity: 0;
  transition: opacity var(--duration) var(--ease);
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold);
}
.feature-card:hover::before { opacity: 1; }

.feature-card-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-lg);
  background: var(--warm-gray);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
}
html[data-theme="dark"] .feature-card-icon { background: var(--warm-gray-3); color: var(--gold); }
.feature-card-icon svg { width: 28px; height: 28px; }
.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: var(--space-md);
}
.feature-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ══════════════════════════════════════════════════════════════
   SERVICE CARDS
   ══════════════════════════════════════════════════════════════ */
.service-cards-section { padding: var(--space-3xl) 0; }
.scs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-xl);
}
.scs-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl) var(--space-xl);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease), border-color var(--duration) var(--ease);
  position: relative;
  overflow: hidden;
}
.scs-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--gold));
  opacity: 0;
  transition: opacity var(--duration) var(--ease);
}
.scs-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold);
}
.scs-card:hover::before { opacity: 1; }
.scs-card-visual {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-lg);
  background: var(--warm-gray);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
}
html[data-theme="dark"] .scs-card-visual { background: var(--warm-gray-3); color: var(--gold); }
.scs-card-title { font-size: 1.25rem; font-weight: 700; margin-bottom: var(--space-md); }
.scs-card-text { font-size: 0.95rem; color: var(--text-secondary); line-height: 1.7; }

/* ══════════════════════════════════════════════════════════════
   CTA SECTION
   ══════════════════════════════════════════════════════════════ */
.cta-section {
  padding: var(--space-3xl) 0;
  background: var(--teal);
  color: rgba(255,255,255,0.9);
  position: relative;
  overflow: hidden;
}
html[data-theme="dark"] .cta-section { background: var(--teal-deeper); }
.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: rgba(201,168,76,0.06);
}
.cta-section .container {
  text-align: center;
  position: relative;
  z-index: 1;
}
.cta-section h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  color: white;
  margin-bottom: var(--space-md);
}
.cta-section p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: var(--space-xl);
  line-height: 1.7;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.cta-section .btn,
.cta-section .btn-hero {
  background: var(--gold);
  color: var(--teal-deeper);
}
.cta-section .btn:hover,
.cta-section .btn-hero:hover {
  background: var(--gold-hover);
}

/* ══════════════════════════════════════════════════════════════
   BLOG SECTION
   ══════════════════════════════════════════════════════════════ */
.blog-section { padding: var(--space-3xl) 0; }

.blog-categories {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-2xl);
}
.blog-category-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 0.375rem 1rem;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all var(--duration) var(--ease);
}
.blog-category-link:hover,
.blog-category-link.active {
  background: var(--teal);
  border-color: var(--teal);
  color: white;
}
html[data-theme="dark"] .blog-category-link:hover,
html[data-theme="dark"] .blog-category-link.active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--teal-deeper);
}
.blog-category-count { font-size: 0.6875rem; opacity: 0.7; }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-lg);
}

.blog-card {
  background: var(--bg-surface);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}
.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
}

.blog-card-image-link { display: block; aspect-ratio: 16/9; overflow: hidden; }
.blog-card-image-link img,
.blog-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.blog-card:hover .blog-card-image-link img,
.blog-card:hover .blog-card-image { transform: scale(1.05); }

.blog-card-placeholder {
  width: 100%;
  height: 100%;
  background: var(--warm-gray-2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--warm-gray-3);
}
.blog-card-placeholder svg { width: 40px; height: 40px; }

.blog-card-body { padding: var(--space-lg); }
.blog-category {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: var(--space-sm);
  display: inline-block;
}
.blog-card-body h2 { font-size: 1.15rem; font-weight: 700; line-height: 1.3; margin-bottom: var(--space-sm); }
.blog-card-body h2 a { color: var(--text-primary); text-decoration: none; }
.blog-card-body h2 a:hover { color: var(--teal); }
html[data-theme="dark"] .blog-card-body h2 a:hover { color: var(--gold); }
.blog-card-body p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--border-light);
}

/* ── Blog Pagination ───────────────────────────────────────── */
.blog-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-lg);
  margin-top: var(--space-2xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--border-light);
}
.pagination-link {
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all var(--duration) var(--ease);
}
.pagination-link:hover { border-color: var(--gold); color: var(--teal); }
html[data-theme="dark"] .pagination-link:hover { color: var(--gold); }
.pagination-link.disabled { opacity: 0.4; pointer-events: none; }
.pagination-info { font-size: 0.8125rem; color: var(--text-secondary); }

/* ══════════════════════════════════════════════════════════════
   BLOG SINGLE — Article
   ══════════════════════════════════════════════════════════════ */
.blog-article { padding: var(--space-2xl) 0 var(--space-3xl); }
.article-image {
  width: 100%;
  border-radius: var(--radius-xl);
  margin-bottom: var(--space-xl);
  box-shadow: var(--shadow-lg);
}
.article-title {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-lg);
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-md);
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid var(--border-light);
}
.article-category {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  font-size: 0.6875rem;
}
.article-reading-time { display: flex; align-items: center; gap: 0.25rem; }

/* ── Table of Contents ─────────────────────────────────────── */
.article-toc {
  background: var(--warm-gray);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  margin-bottom: var(--space-xl);
}
html[data-theme="dark"] .article-toc { background: var(--warm-gray-2); }
.article-toc-title {
  font-weight: 700;
  font-size: 0.9375rem;
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}
.article-toc-list { padding-left: var(--space-lg); margin: 0; }
.article-toc-list li { margin-bottom: var(--space-xs); font-size: 0.875rem; }
.article-toc-list a { color: var(--text-secondary); }
.article-toc-list a:hover { color: var(--teal); }
html[data-theme="dark"] .article-toc-list a:hover { color: var(--gold); }
.toc-level-3 { padding-left: var(--space-md); }

/* ── Article Content ───────────────────────────────────────── */
.article-content { font-size: 1.0625rem; line-height: 1.8; }
.article-content h2 { font-size: 1.75rem; margin: var(--space-2xl) 0 var(--space-md); }
.article-content h3 { font-size: 1.375rem; margin: var(--space-xl) 0 var(--space-md); }
.article-content p { margin-bottom: var(--space-lg); }
.article-content ul, .article-content ol { margin-bottom: var(--space-lg); padding-left: var(--space-xl); }
.article-content li { margin-bottom: var(--space-sm); }
.article-content blockquote {
  border-left: 4px solid var(--gold);
  padding: var(--space-md) var(--space-lg);
  margin: var(--space-xl) 0;
  background: var(--warm-gray);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  color: var(--text-secondary);
}
html[data-theme="dark"] .article-content blockquote { background: var(--warm-gray-2); }
.article-content pre {
  background: var(--teal-deeper);
  color: #e8e2da;
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  overflow-x: auto;
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: var(--space-lg);
}
.article-content code {
  font-size: 0.875em;
  background: var(--warm-gray);
  padding: 0.125rem 0.375rem;
  border-radius: var(--radius-sm);
}
html[data-theme="dark"] .article-content code { background: var(--warm-gray-3); }
.article-content pre code { background: none; padding: 0; }
.article-content img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  margin: var(--space-xl) 0;
}

/* ── Related Posts ──────────────────────────────────────────── */
.article-related {
  margin-top: var(--space-2xl);
  padding-top: var(--space-2xl);
  border-top: 1px solid var(--border-light);
}
.article-related-title { font-size: 1.5rem; margin-bottom: var(--space-lg); }
.related-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: var(--space-lg);
}
.related-post-card {
  text-decoration: none;
  color: var(--text-primary);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--duration) var(--ease), transform var(--duration) var(--ease);
}
.related-post-card:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-4px); }
.related-post-img-wrap { aspect-ratio: 16/9; overflow: hidden; }
.related-post-img { width: 100%; height: 100%; object-fit: cover; }
.related-post-body { padding: var(--space-md); }
.related-post-date { font-size: 0.75rem; color: var(--text-secondary); }
.related-post-body h4 { font-size: 1rem; margin-top: var(--space-xs); }

.article-footer {
  margin-top: var(--space-2xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--border-light);
}

/* ══════════════════════════════════════════════════════════════
   BLOG PREVIEW SECTION (Homepage)
   ══════════════════════════════════════════════════════════════ */
.blog-preview-section { padding: var(--space-3xl) 0; }
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-lg);
}

/* ══════════════════════════════════════════════════════════════
   HIGHLIGHT GRID
   ══════════════════════════════════════════════════════════════ */
.highlight-grid-section { padding: var(--space-3xl) 0; }
.highlight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
}
.highlight-card {
  background: var(--bg-surface);
  border-radius: var(--radius-xl);
  overflow: hidden;
  padding: var(--space-lg);
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--duration) var(--ease), transform var(--duration) var(--ease);
}
.highlight-card:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-4px); }
.highlight-card-image {
  aspect-ratio: 16/9;
  overflow: hidden;
  margin: calc(-1 * var(--space-lg)) calc(-1 * var(--space-lg)) var(--space-lg);
}
.highlight-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.highlight-card:hover .highlight-card-image img { transform: scale(1.05); }
.highlight-card-body { padding: 0; }
.highlight-card h3 { font-size: 1.25rem; margin-bottom: var(--space-sm); }
.highlight-card p { font-size: 0.9375rem; color: var(--text-secondary); line-height: 1.6; }

/* ══════════════════════════════════════════════════════════════
   TOPIC CARDS
   ══════════════════════════════════════════════════════════════ */
.topic-cards-section { padding: var(--space-3xl) 0; }
.topic-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-lg);
}
.topic-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  text-align: center;
  text-decoration: none;
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--duration) var(--ease), transform var(--duration) var(--ease), border-color var(--duration) var(--ease);
}
.topic-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); border-color: var(--gold); color: var(--text-primary); }
.topic-card-icon { margin-bottom: var(--space-md); color: var(--teal); }
html[data-theme="dark"] .topic-card-icon { color: var(--gold); }
.topic-card-title { font-size: 1.125rem; margin-bottom: var(--space-sm); }
.topic-card-text { font-size: 0.875rem; color: var(--text-secondary); }

/* ══════════════════════════════════════════════════════════════
   FEATURE SHOWCASE
   ══════════════════════════════════════════════════════════════ */
.feature-showcase-section { padding: var(--space-3xl) 0; }
.fss-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}
.fss-grid.reverse { direction: rtl; }
.fss-grid.reverse > * { direction: ltr; }
.fss-card {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.fss-card img { width: 100%; height: auto; }
.fss-title { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: var(--space-md); }
.fss-card-text { font-size: 1.05rem; color: var(--text-secondary); line-height: 1.7; margin-bottom: var(--space-md); }

/* ══════════════════════════════════════════════════════════════
   PROCESS STEPS
   ══════════════════════════════════════════════════════════════ */
.process-steps-section { padding: var(--space-3xl) 0; }
.process-steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-xl);
  counter-reset: step;
}
.process-step { text-align: center; counter-increment: step; }
.process-step::before {
  content: counter(step, decimal-leading-zero);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gold);
  opacity: 0.3;
  display: block;
  margin-bottom: var(--space-sm);
}
.process-step-title { font-size: 1.125rem; margin-bottom: var(--space-sm); }
.process-step-text { font-size: 0.9375rem; color: var(--text-secondary); }

/* ══════════════════════════════════════════════════════════════
   TEAM SECTION
   ══════════════════════════════════════════════════════════════ */
.team-section { padding: var(--space-3xl) 0; }
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--space-xl);
}
.team-card { text-align: center; }
.team-card-image {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto var(--space-md);
  border: 3px solid var(--border-light);
}
.team-card-image img { width: 100%; height: 100%; object-fit: cover; }
.team-card-name { font-size: 1.125rem; margin-bottom: var(--space-xs); }
.team-card-role { font-size: 0.8125rem; color: var(--gold); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.team-card-bio { font-size: 0.9375rem; color: var(--text-secondary); margin-top: var(--space-sm); }

/* ══════════════════════════════════════════════════════════════
   TESTIMONIALS
   ══════════════════════════════════════════════════════════════ */
.testimonials-section { padding: var(--space-3xl) 0; }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-lg);
}
.testimonial-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  position: relative;
}
.testimonial-card::before {
  content: '\201C';
  font-size: 4rem;
  color: var(--gold);
  opacity: 0.2;
  position: absolute;
  top: var(--space-md);
  left: var(--space-lg);
  line-height: 1;
}
.testimonial-text {
  font-size: 1.0625rem;
  font-style: italic;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
  position: relative;
  z-index: 1;
}
.testimonial-author { display: flex; align-items: center; gap: var(--space-md); }
.testimonial-avatar { width: 48px; height: 48px; border-radius: 50%; overflow: hidden; display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--teal); background: rgba(0,128,128,0.1); font-size: 1.125rem; flex-shrink: 0; }
.testimonial-avatar img { width: 100%; height: 100%; object-fit: cover; }
.testimonial-avatar--initials, .testimonial-avatar-initials { text-transform: uppercase; letter-spacing: 0.02em; line-height: 1; }
.testimonial-author-name { font-weight: 600; font-size: 0.9375rem; }
.testimonial-author-role { font-size: 0.8125rem; color: var(--text-secondary); }

/* ══════════════════════════════════════════════════════════════
   STATS SECTION
   ══════════════════════════════════════════════════════════════ */
.stats-section { padding: var(--space-3xl) 0; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--space-xl);
  text-align: center;
}
.stats-item { padding: var(--space-md); }
.stats-item-value {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: var(--space-sm);
}
.stats-item-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}

/* ══════════════════════════════════════════════════════════════
   TRUST SHOWCASE
   ══════════════════════════════════════════════════════════════ */
.trust-showcase-section { padding: var(--space-3xl) 0; }
.tss-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2xl);
  align-items: center;
}
.tss-card {
  opacity: 0.4;
  transition: opacity var(--duration) var(--ease);
  max-height: 48px;
  width: auto;
}
.tss-card:hover { opacity: 1; }

/* ══════════════════════════════════════════════════════════════
   RATING / BEFORE-AFTER / VIDEO / SOCIAL EMBED / HTML
   ══════════════════════════════════════════════════════════════ */
.rating-highlight-section { padding: var(--space-3xl) 0; }
.before-after-section { padding: var(--space-3xl) 0; }
.video-section { padding: var(--space-3xl) 0; }
.social-embed-section { padding: var(--space-3xl) 0; }
.html-section { padding: var(--space-3xl) 0; }

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.video-wrapper iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }

/* ══════════════════════════════════════════════════════════════
   GALLERY
   ══════════════════════════════════════════════════════════════ */
.gallery-section,
.gallery-album-section { padding: var(--space-3xl) 0; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-lg);
}
.gallery-card {
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--bg-surface);
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--duration) var(--ease), transform var(--duration) var(--ease);
}
.gallery-card:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-4px); }
.gallery-card-image { aspect-ratio: 4/3; overflow: hidden; }
.gallery-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.gallery-card:hover .gallery-card-image img { transform: scale(1.05); }
.gallery-card-body { padding: var(--space-md); }

.gallery-preview-section { padding: var(--space-3xl) 0; }

/* ══════════════════════════════════════════════════════════════
   EVENTS
   ══════════════════════════════════════════════════════════════ */
.events-section { padding: var(--space-3xl) 0; }
.event-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-lg);
  background: var(--bg-surface);
  border-radius: var(--radius-xl);
  padding: var(--space-lg);
  margin-bottom: var(--space-md);
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--duration) var(--ease);
}
.event-card:hover { box-shadow: var(--shadow-card-hover); }
.event-date-block {
  text-align: center;
  min-width: 64px;
  padding: var(--space-md);
  background: var(--teal);
  color: white;
  border-radius: var(--radius-md);
}
html[data-theme="dark"] .event-date-block { background: var(--gold); color: var(--teal-deeper); }
.event-date-day { font-size: 1.75rem; font-weight: 700; line-height: 1; }
.event-date-month { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; margin-top: 0.25rem; }
.event-info h2 a,
.event-info h3 a { color: var(--text-primary); text-decoration: none; }
.event-info h2 a:hover,
.event-info h3 a:hover { color: var(--teal); }
html[data-theme="dark"] .event-info h2 a:hover,
html[data-theme="dark"] .event-info h3 a:hover { color: var(--gold); }
.event-meta { font-size: 0.8125rem; color: var(--text-secondary); margin-top: var(--space-sm); }

.events-preview-section { padding: var(--space-3xl) 0; }

/* ══════════════════════════════════════════════════════════════
   CONTACT
   ══════════════════════════════════════════════════════════════ */
.contact-section { padding: var(--space-3xl) 0; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
}
.contact-form .form-group { margin-bottom: var(--space-md); }
.contact-form label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-xs);
  color: var(--text-secondary);
}
.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-page);
  color: var(--text-primary);
  font-size: 0.95rem;
  font-family: var(--font-body);
  transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
  outline: none;
}
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(13,79,79,0.1);
}
html[data-theme="dark"] .contact-form input:focus,
html[data-theme="dark"] .contact-form textarea:focus,
html[data-theme="dark"] .contact-form select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.15);
}
.contact-form textarea { min-height: 160px; resize: vertical; }

.contact-info-card {
  background: var(--warm-gray);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
}
html[data-theme="dark"] .contact-info-card { background: var(--warm-gray-2); }
.contact-info-card h3 { margin-bottom: var(--space-md); }
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
  font-size: 0.9375rem;
}
.contact-info-item svg { color: var(--gold); flex-shrink: 0; margin-top: 2px; }

/* ══════════════════════════════════════════════════════════════
   DOWNLOADS
   ══════════════════════════════════════════════════════════════ */
.downloads-section { padding: var(--space-3xl) 0; }
.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-lg);
}
.download-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--duration) var(--ease);
}
.download-card:hover { box-shadow: var(--shadow-md); }
.download-card h3 { font-size: 1.125rem; margin-bottom: var(--space-sm); }
.download-card h3 a { color: var(--text-primary); text-decoration: none; }
.download-card h3 a:hover { color: var(--teal); }
html[data-theme="dark"] .download-card h3 a:hover { color: var(--gold); }
.download-meta { font-size: 0.8125rem; color: var(--text-secondary); }

/* ══════════════════════════════════════════════════════════════
   SEARCH
   ══════════════════════════════════════════════════════════════ */
.search-section { padding: var(--space-3xl) 0; }
.search-form {
  display: flex;
  gap: var(--space-sm);
  max-width: 600px;
  margin-bottom: var(--space-2xl);
}
.search-form input[type="search"] {
  flex: 1;
  padding: 0.875rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-family: var(--font-body);
  background: var(--bg-surface);
  color: var(--text-primary);
}
.search-form input[type="search"]:focus { outline: none; border-color: var(--teal); }
html[data-theme="dark"] .search-form input[type="search"]:focus { border-color: var(--gold); }

.search-results-list { list-style: none; padding: 0; }
.search-result-item { padding: var(--space-lg) 0; border-bottom: 1px solid var(--border-light); }
.search-result-item h2 { font-size: 1.25rem; margin-bottom: var(--space-xs); }
.search-result-item h2 a { color: var(--text-primary); }
.search-result-item h2 a:hover { color: var(--teal); }
html[data-theme="dark"] .search-result-item h2 a:hover { color: var(--gold); }
.search-result-item p { font-size: 0.9375rem; color: var(--text-secondary); }

/* ══════════════════════════════════════════════════════════════
   404 PAGE
   ══════════════════════════════════════════════════════════════ */
.error-page { text-align: center; padding: var(--space-3xl) 0; }
.error-code {
  font-size: clamp(5rem, 15vw, 10rem);
  font-weight: 700;
  color: var(--gold);
  opacity: 0.15;
  line-height: 1;
}
.error-page h1 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: var(--space-md); }
.error-page p { color: var(--text-secondary); margin-bottom: var(--space-xl); }

/* ══════════════════════════════════════════════════════════════
   MAINTENANCE PAGE
   ══════════════════════════════════════════════════════════════ */
.maintenance-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  text-align: center;
  padding: var(--space-xl);
}
.maintenance-page h1 { font-size: 2rem; margin-bottom: var(--space-md); }
.maintenance-page p { color: var(--text-secondary); }

/* ══════════════════════════════════════════════════════════════
   FOOTER — Dark teal background
   ══════════════════════════════════════════════════════════════ */
.site-footer {
  background: var(--teal-deeper);
  color: rgba(255,255,255,0.6);
  padding: var(--space-4xl) 0 var(--space-xl);
}
html[data-theme="dark"] .site-footer { background: #051515; }

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-2xl);
}

.footer-brand-logo {
  display: inline-block;
  margin-bottom: var(--space-md);
  text-decoration: none;
}
.footer-brand-logo img { height: 36px; width: auto; }
.footer-brand-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
}
.footer-tagline {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.5);
  max-width: 280px;
  line-height: 1.7;
  margin-bottom: var(--space-lg);
}

.footer-social {
  display: flex;
  gap: var(--space-sm);
}
.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  transition: all var(--duration) var(--ease);
}
.footer-social a:hover {
  background: var(--gold);
  color: var(--teal-deeper);
  transform: translateY(-2px);
}

.footer-col-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-lg);
}

.footer-nav { display: flex; flex-direction: column; gap: var(--space-sm); }
.footer-nav a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: color var(--duration) var(--ease), padding-left var(--duration) var(--ease);
}
.footer-nav a:hover { color: var(--gold); padding-left: 4px; }

.footer-contact-line {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: var(--space-sm);
  line-height: 1.5;
}
.footer-contact-line a { color: rgba(255,255,255,0.5); }
.footer-contact-line a:hover { color: var(--gold); }
.footer-hours {
  font-size: 0.8125rem;
  font-style: italic;
  opacity: 0.7;
  margin-top: var(--space-sm);
}

.footer-bottom {
  margin-top: var(--space-3xl);
  padding-top: var(--space-xl);
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
}
.footer-copyright {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}
.footer-legal {
  display: flex;
  gap: var(--space-lg);
}
.footer-legal a {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  transition: color var(--duration) var(--ease);
}
.footer-legal a:hover {
  color: var(--gold);
}

/* ══════════════════════════════════════════════════════════════
   SCROLL TO TOP
   ══════════════════════════════════════════════════════════════ */
.scroll-to-top {
  position: fixed;
  bottom: var(--space-xl);
  right: var(--space-xl);
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--gold);
  color: var(--teal-deeper);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: all var(--duration) var(--ease);
  z-index: 90;
  box-shadow: var(--shadow-md);
}
.scroll-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.scroll-to-top:hover {
  background: var(--gold-hover);
  transform: translateY(-2px);
}

/* ══════════════════════════════════════════════════════════════
   SCROLL REVEAL ANIMATION
   ══════════════════════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.vis {
  opacity: 1;
  transform: translateY(0);
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ══════════════════════════════════════════════════════════════
   MODULE INTRO
   ══════════════════════════════════════════════════════════════ */
.module-intro {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
  max-width: var(--content-width);
}

.text-muted { color: var(--text-secondary); }

/* ══════════════════════════════════════════════════════════════
   CONSENT BANNER OVERRIDES
   ══════════════════════════════════════════════════════════════ */
.consent-reopen { color: rgba(255,255,255,0.3); font-size: 0.75rem; }
.consent-reopen:hover { color: var(--gold); }

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .hero-section .container { text-align: center; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .fss-grid { grid-template-columns: 1fr; }
  .fss-grid.reverse { direction: ltr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-xl); }
}

@media (max-width: 768px) {
  .nav-list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-lg);
    flex-direction: column;
    padding: var(--space-md);
    gap: 0;
  }
  .nav-list.open { display: flex; }
  .nav-list a {
    display: block;
    padding: var(--space-md) var(--space-lg);
    text-transform: none;
    letter-spacing: 0;
    font-size: 1rem;
  }
  .nav-list a::after { display: none; }
  .nav-toggle { display: flex; }
  .header-search { display: none; }

  .sub-menu {
    position: static;
    box-shadow: none;
    border: none;
    padding-left: var(--space-lg);
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    background: transparent;
  }
  .nav-item.has-children.is-open > .sub-menu { display: block; }

  .hero-section { min-height: 75vh; }
  .features-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: var(--space-xl); }
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-lg); }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-legal { justify-content: center; }
  .event-card { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  :root {
    --space-2xl: 2.5rem;
    --space-3xl: 3.5rem;
    --space-4xl: 5rem;
  }
  .blog-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
}

/* ══════════════════════════════════════════════════════════════
   PRINT
   ══════════════════════════════════════════════════════════════ */
@media print {
  .site-header, .site-footer, .scroll-to-top, .nav-toggle, .theme-toggle,
  .breadcrumbs, .blog-pagination, .article-toc { display: none; }
  body { background: white; color: black; font-size: 12pt; }
  .container, .container-narrow { max-width: 100%; padding: 0; }
  a { color: inherit; text-decoration: underline; }
}


/* ================================================================
   MISSING SELECTORS - Auto-extracted from Default Theme
   Adapted for Estate tokens
   ================================================================ */

.logo-text { font-size: 1.25rem; font-weight: 700; color: var(--text-primary); letter-spacing: -0.025em; }

/* Top-level item */
.nav-list > .nav-item {
    position: relative;
}
.nav-list > .nav-item > a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 16px;
    min-height: 44px;
    line-height: 28px;
    border-radius: var(--radius-sm, 4px);
    transition: color 0.15s var(--ease, ease),
                background 0.15s var(--ease, ease);
    white-space: nowrap;
}
.nav-list > .nav-item > a:hover,
.nav-list > .nav-item.is-open > a {
    color: var(--accent);
    background: rgba(13,79,79,0.06);
}

/* Active state – bottom accent bar */
.nav-list > .nav-item > a.active {
    position: relative;
    color: var(--accent);
    font-weight: 600;
}
.nav-list > .nav-item > a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 16px;
    right: 16px;
    height: 2px;
    background: var(--accent);
    border-radius: 1px;
}
.nav-item.is-open > a .nav-chevron {
    transform: rotate(180deg);
}
.nav-item--sub:hover > a .nav-flyout-chevron {
    opacity: 1;
    transform: translateX(2px);
}

/* Top accent line */
.sub-menu::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--teal-light));
    border-radius: var(--radius-md, 8px) var(--radius-md, 8px) 0 0;
}

/* Invisible bridge to prevent hover gap close */
.nav-item.has-children::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    height: 12px;
}

/* Dropdown items */
.sub-menu .nav-item > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    min-height: 44px;
    font-size: 14px;
    font-weight: 400;
    color: var(--text-primary);
    white-space: nowrap;
    border-left: 3px solid transparent;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.sub-menu .nav-item > a:hover {
    background: rgba(13,79,79,0.06);
    color: var(--accent);
    font-weight: 500;
    border-left-color: var(--accent);
}
.sub-menu .nav-item > a.active {
    color: var(--accent);
    font-weight: 500;
    border-left-color: var(--accent);
}

/* ── Flyout Panel (Level 3) ──────────────────────────────────────── */
.sub-menu--flyout {
    top: -8px;
    left: calc(100% + 4px);
    transform: translateX(-8px);
}
.sub-menu--flyout::before {
    background: linear-gradient(90deg, var(--teal-light), var(--accent));
}
.nav-item.has-children.is-open > .sub-menu--flyout {
    transform: translateX(0);
}

/* Flyout connecting arrow */
.sub-menu--flyout::after {
    content: '';
    position: absolute;
    top: 16px;
    left: -6px;
    width: 12px; height: 12px;
    background: var(--bg-surface);
    transform: rotate(45deg);
    box-shadow: -2px 2px 4px rgba(0,0,0,0.04);
    z-index: -1;
}

/* Focus visible (keyboard only) */
.nav-list a:focus-visible {
    outline: 2px solid var(--teal-light);
    outline-offset: 2px;
    border-radius: 2px;
}

/* Hero Video Background (Phase video-hero) */
.hero-section .hero-video-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
    pointer-events: none;
}
.hero-section.hero--video-contain .hero-video-bg { object-fit: contain; }
.hero-section.hero--has-video > .container { position: relative; z-index: 2; }
.hero-section.hero--has-video::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(0, 0, 0, 0.35);
    pointer-events: none;
}
.hero-section.hero--has-video.hero--overlay-light::after  { background: rgba(0,0,0,0.20); }
.hero-section.hero--has-video.hero--overlay-medium::after { background: rgba(0,0,0,0.45); }
.hero-section.hero--has-video.hero--overlay-heavy::after  { background: rgba(0,0,0,0.65); }

/* Hero Inline Video (Phase video-hero: video_display=inline) */
.hero-video-inline-wrap {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 6px 24px rgba(0,0,0,0.18);
    line-height: 0;
    aspect-ratio: 16 / 9;
}
.hero-video-inline-wrap--center {
    display: block;
    margin: 2rem auto 0;
    width: min(540px, 90%);
}
.hero-video-inline {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.hero--video-inline .hero-split-inner .hero-video-inline-wrap {
    flex: 0 0 auto;
    width: clamp(200px, 28vw, 360px);
    aspect-ratio: 16 / 9;
}
@media (max-width: 768px) {
    .hero-video-inline-wrap--center { margin-top: 1.5rem; }
    .hero--video-inline .hero-split-inner { flex-direction: column; align-items: center; }
    .hero--video-inline .hero-split-inner .hero-video-inline-wrap { width: min(480px, 90%); flex: none; }
}

/* Inline-Video-Größen (video_inline_size) */
.hero--video-size-sm   .hero-video-inline-wrap--center { width: min(380px, 90%); }
.hero--video-size-md   .hero-video-inline-wrap--center { width: min(560px, 90%); }
.hero--video-size-lg   .hero-video-inline-wrap--center { width: min(820px, 94%); }
.hero--video-size-full .hero-video-inline-wrap--center { width: 100%; }
.btn-cta { background: var(--accent); color: #fff; }
.btn-cta:hover { background: var(--accent-hover); text-decoration: none; }
.intro-section h2, .features-section h2, .blog-preview-section h2, .cta-section h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 700; margin-bottom: 1rem; }
.intro-section .section-subtitle, .cta-section .section-subtitle { max-width: 680px; margin-left: auto; margin-right: auto; }
.intro-text { font-size: 1.125rem; color: var(--text-secondary); max-width: 680px; margin: 0 auto; line-height: 1.7; }
.intro-cta { margin-top: 2rem; }
.features-section h2 { text-align: center; }
.feature-card-link { display: inline-block; margin-top: 0.75rem; font-size: 0.875rem; font-weight: 600; color: var(--accent); }
.feature-card-link:hover { text-decoration: underline; }
.cta-section > .container { position: relative; z-index: 1; }
.cta--has-bg { background-size: cover; background-position: center; position: relative; }
.cta--has-bg::after { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,0.45); z-index: 0; }
.cta--has-bg > .container { position: relative; z-index: 1; }
.cta--has-bg h2, .cta--has-bg .cta-text, .cta--has-bg .cta-eyebrow { color: #fff; }
.cta--overlay-light::after { background: rgba(0,0,0,0.25); }
.cta--overlay-medium::after { background: rgba(0,0,0,0.45); }
.cta--overlay-heavy::after { background: rgba(0,0,0,0.65); }
.cta-eyebrow { display: block; font-size: 0.875rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.75rem; color: rgba(255,255,255,0.85); }
.cta--has-bg .cta-eyebrow { color: rgba(255,255,255,0.85); }
.cta-text { color: rgba(255,255,255,0.85); margin-bottom: 1.5rem; max-width: 600px; margin-left: auto; margin-right: auto; line-height: 1.7; }
.cta-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* Phase 3d – <picture> layout normalisation
   The <picture> element is display:inline by default, which prevents the
   wrapped <img> (display:block; width:100%; height:100%) from resolving
   percentage heights, breaks the gallery-image-item squares, and can
   disrupt click-event bubbling to the parent <figure>.
   display:contents makes <picture> transparent to layout and event
   propagation: the <img> behaves as a direct child of its grandparent,
   identical to pre-picture_tag behaviour. */
picture {
    display: contents;
}
.gallery-card-placeholder { height: 220px; background: var(--bg-page); }
.gallery-card-info { padding: 1rem; }
.gallery-card-info h3 { font-size: 1rem; margin-bottom: 0.25rem; }
.gallery-card-info p { font-size: 0.875rem; color: var(--text-secondary); }

/* Gallery – Album image grid */
.gallery-images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.625rem;
    margin-top: 1.5rem;
}
.gallery-image-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-sm);
    cursor: pointer;
    aspect-ratio: 1 / 1;
    background: var(--bg-page);
    margin: 0;
}
.gallery-image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
}
.gallery-image-item:hover img,
.gallery-image-item:focus img {
    transform: scale(1.05);
}
.gallery-image-item:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}
.gallery-image-item figcaption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.65));
    color: #fff;
    padding: 2rem 0.75rem 0.625rem;
    font-size: 0.8125rem;
    line-height: 1.4;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}
.gallery-image-item:hover figcaption,
.gallery-image-item:focus figcaption {
    opacity: 1;
}

/* Gallery – Lightbox */
.gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9000;
    background: rgba(0, 0, 0, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}
.gallery-lightbox.is-open {
    opacity: 1;
    pointer-events: all;
}
.gallery-lightbox-inner {
    position: relative;
    max-width: min(90vw, 1200px);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 4rem;
}
.gallery-lightbox-img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 4px;
    display: block;
    box-shadow: var(--shadow-lg);
}
.gallery-lightbox-info {
    margin-top: 0.875rem;
    text-align: center;
    min-height: 2.5rem;
}
.gallery-lightbox-caption {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9375rem;
    margin: 0;
}
.gallery-lightbox-counter {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.8125rem;
    margin-top: 0.25rem;
}
.gallery-lightbox-close {
    position: fixed;
    top: 1.125rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.75);
    font-size: 2.25rem;
    line-height: 1;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    transition: color 0.15s var(--ease);
    z-index: 9001;
}
.gallery-lightbox-close:hover,
.gallery-lightbox-close:focus {
    color: #fff;
    outline: none;
}
.gallery-lightbox-prev,
.gallery-lightbox-next {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 1.375rem;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s var(--ease);
    z-index: 9001;
    user-select: none;
}
.gallery-lightbox-prev { left: 1rem; }
.gallery-lightbox-next { right: 1rem; }
.gallery-lightbox-prev:hover,
.gallery-lightbox-next:hover {
    background: rgba(255, 255, 255, 0.25);
}
.gallery-lightbox-prev:disabled,
.gallery-lightbox-next:disabled {
    opacity: 0.2;
    cursor: default;
}
@media (max-width: 768px) {
    .gallery-images-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 0.375rem;
    }
    .gallery-lightbox-inner { padding: 0 3rem; }
    .gallery-lightbox-prev { left: 0.25rem; }
    .gallery-lightbox-next { right: 0.25rem; }
}

/* Contact */
.contact-info { margin-top: 2rem; }
.contact-info p { margin-bottom: 0.5rem; }

/* Error */
.error-section { text-align: center; padding: 8rem 0; }
.error-message { font-size: 1.25rem; color: var(--text-secondary); margin: 1rem 0 2rem; }
.site-footer::before { content: ''; display: block; height: 2px; background: linear-gradient(135deg, var(--accent), var(--accent-hover)); }
.footer-brand { min-width: 200px; }
.footer-social a svg { width: 20px; height: 20px; }
.gallery-preview-section h2 { text-align: center; margin-bottom: 2.5rem; }
.gallery-preview-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.gallery-preview-card { display: block; border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 1/1; position: relative; text-decoration: none; background: var(--bg-page); }
.gallery-preview-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.gallery-preview-card:hover img { transform: scale(1.05); }
.gallery-preview-placeholder { width: 100%; height: 100%; background: var(--border); display: flex; align-items: center; justify-content: center; color: var(--text-secondary); font-size: 2rem; }
.gallery-preview-card span { position: absolute; bottom: 0; left: 0; right: 0; padding: 0.5rem 0.75rem; background: linear-gradient(transparent, rgba(0,0,0,0.6)); color: #fff; font-size: 0.8125rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gallery-preview-cta { text-align: center; }
.blog-preview-cta { text-align: center; margin-top: 2rem; }
.gallery-preview-placeholder svg { width: 48px; height: 48px; opacity: 0.4; }
.event-card-placeholder { width: 100%; height: 200px; background: var(--bg-page); display: flex; align-items: center; justify-content: center; color: var(--text-secondary); }
.event-card-placeholder svg { width: 48px; height: 48px; opacity: 0.4; }
.events-header { margin-bottom: 2rem; }

/* Category filter nav */
.events-category-filter { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.events-category-filter a { padding: 0.3rem 0.85rem; border-radius: 4px; border: 1px solid var(--border); color: var(--text-secondary); font-size: 0.875rem; transition: background 0.15s var(--ease), color 0.15s; }
.events-category-filter a:hover, .events-category-filter a.active { background: var(--accent); color: #fff; border-color: var(--accent); text-decoration: none; }

/* Featured block */
.events-featured { margin-bottom: 3rem; padding: 2rem; background: var(--bg-page); border-radius: var(--radius-lg); }
.events-featured-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 1.25rem; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.05em; }
.events-featured-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.25rem; }
.events-all-title { font-size: 1.1rem; font-weight: 700; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 1.25rem; }

/* Event grid */
.events-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.event-card-image { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.event-card picture { display: block; }
.event-card picture img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.event-card-body { padding: 1.1rem; flex: 1; display: flex; flex-direction: column; gap: 0.5rem; }
.event-card-body h3 { font-size: 1.05rem; font-weight: 600; line-height: 1.35; }
.event-card-body h3 a { color: var(--text-primary); }
.event-card-body h3 a:hover { color: var(--accent); text-decoration: none; }
.event-card-body p { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.5; }
.event-card--featured { border-color: var(--accent); }
.event-card--featured .event-card-body h3 a { color: var(--accent-hover); }

/* Status variants */
.event-card--postponed { border-color: #e67e22; }
.event-card--cancelled { opacity: 0.7; border-color: #c0392b; }

/* Event meta */
.event-card-meta { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; font-size: 0.8125rem; color: var(--text-secondary); }
.event-date, .event-time, .event-location { white-space: nowrap; }

/* Event category label */
.event-category { font-size: 0.8125rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--accent); }
.event-category a { color: inherit; }
.event-category a:hover { text-decoration: underline; }

/* Status badge */
.event-status-badge { display: inline-block; padding: 0.2rem 0.6rem; border-radius: 3px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.event-status-badge--postponed { background: #fef3cd; color: #b45309; }
.event-status-badge--cancelled  { background: #fde8e8; color: #b91c1c; }

/* Card link */
.event-card-link { margin-top: auto; font-size: 0.875rem; font-weight: 600; color: var(--accent); }
.event-card-link:hover { text-decoration: underline; }

/* ── Event Detail ── */
.event-detail { padding: 4rem 0; }
.event-status-notice { padding: 1rem 1.5rem; border-radius: var(--radius-sm); margin-bottom: 2rem; font-size: 0.95rem; }
.event-status-notice--postponed { background: #fef3cd; color: #92400e; border-left: 4px solid #f59e0b; }
.event-status-notice--cancelled  { background: #fde8e8; color: #991b1b; border-left: 4px solid #ef4444; }
.event-detail-header { margin-bottom: 2rem; }
.event-detail-header h1 { font-size: 2.25rem; line-height: 1.25; margin: 0.5rem 0 1rem; }
.event-detail-meta { display: flex; flex-wrap: wrap; gap: 0.75rem 2rem; font-size: 0.9375rem; color: var(--text-secondary); }
.event-meta-item { display: flex; align-items: center; gap: 0.4rem; }
.event-meta-icon { font-size: 1rem; }
.meta-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
    color: var(--accent);
    opacity: 0.7;
}
.meta-icon svg {
    width: 100%;
    height: 100%;
}
.event-detail-image { margin-bottom: 2rem; border-radius: var(--radius-lg); overflow: hidden; }
.event-detail-image img, .event-detail-image picture img { width: 100%; max-height: 480px; object-fit: cover; display: block; }
.event-detail-image picture { display: block; }
.event-detail-excerpt { margin-bottom: 1.5rem; font-size: 1.125rem; color: var(--text-secondary); line-height: 1.65; }
.event-detail-content { margin-bottom: 2rem; }
.event-detail-content.prose { line-height: 1.75; }
.event-detail-content.prose p { margin-bottom: 1rem; }
.event-detail-content.prose h2, .event-detail-content.prose h3 { margin: 1.5rem 0 0.75rem; }
.event-detail-footer { padding-top: 2rem; border-top: 1px solid var(--border); }
.btn-back { color: var(--text-secondary); font-size: 0.9375rem; }
.btn-back:hover { color: var(--accent); }

/* Pagination (shared) */
.pagination { display: flex; gap: 0.5rem; margin-top: 2rem; justify-content: center; }
.pagination-btn { padding: 0.4rem 0.85rem; border: 1px solid var(--border); border-radius: 4px; color: var(--text-secondary); font-size: 0.875rem; }
.pagination-btn:hover { background: var(--bg-page); text-decoration: none; }
.pagination-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.events-preview-section h2 { text-align: center; margin-bottom: 2rem; }
.events-preview-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.events-preview-cta { text-align: center; margin-top: 2rem; }

/* Responsive */
@media (max-width: 768px) {
    .nav-list > .nav-item { display: block; }
    .nav-list > .nav-item > a {
        display: flex; align-items: center; justify-content: space-between;
        padding: 12px 0; min-height: 48px;
        border-bottom: 1px solid var(--border));
        border-radius: 0; background: none;
    }
    .nav-list > .nav-item > a:hover { background: rgba(13,79,79,0.06); }
    .nav-list > .nav-item > a.active {
        border-left: 3px solid var(--accent);
        padding-left: 12px;
    }
    .nav-list > .nav-item > a.active::after { display: none; }
    .sub-menu::before, .sub-menu::after { display: none; }
    .sub-menu .nav-item > a {
        padding: 10px 20px 10px 40px;
        border-left: none;
        border-bottom: 1px solid var(--border));
    }
    .sub-menu .nav-item > a:hover {
        background: rgba(13,79,79,0.06);
        color: var(--accent);
        border-left: none;
    }
    .sub-menu--flyout {
        position: static !important;
        margin-left: 0;
        background: var(--bg-page);
    }
    .sub-menu--flyout::after { display: none; }
    .sub-menu--flyout .nav-item > a {
        padding-left: 60px;
        font-size: 13px;
    }
    .nav-item.has-children::after { display: none; }
    .event-detail-header h1 { font-size: 1.875rem; }
    .download-detail-header h1 { font-size: 1.75rem; }
    .event-detail   { padding: 2.5rem 0; }
    .download-detail { padding: 2.5rem 0; }
    .section--cols-2 .features-grid, .section--cols-2 .topic-cards-grid, .section--cols-2 .highlight-grid,
    .section--cols-3 .features-grid, .section--cols-3 .topic-cards-grid, .section--cols-3 .highlight-grid,
    .section--cols-4 .features-grid, .section--cols-4 .topic-cards-grid, .section--cols-4 .highlight-grid { grid-template-columns: 1fr; }
    .cta-buttons { flex-direction: column; align-items: center; }
    .testimonials--staggered .testimonial-card:nth-child(even) { margin-top: 0; }
    .hero--layout-boxed > .container { padding: 2rem 1.75rem; border-radius: var(--radius-lg); }
}
.breadcrumb-item {
    display: flex;
    align-items: center;
    color: var(--text-secondary);
}
.breadcrumb-item.breadcrumb-current span {
    color: var(--text-primary);
    font-weight: 500;
}
@media (max-width: 768px) {
    .breadcrumb-item { font-size: 0.75rem; }
}
.downloads-header { margin-bottom: 2rem; }

/* Search bar */
.downloads-search-form { margin: 1.25rem 0; }
.search-wrap {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}
.search-input {
    flex: 1;
    min-width: 200px;
    max-width: 360px;
    padding: 0.5rem 0.85rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.9375rem;
}
.search-btn {
    padding: 0.5rem 1.1rem;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.9rem;
}
.search-btn:hover { opacity: 0.9; }
.search-clear {
    color: var(--text-secondary);
    font-size: 0.875rem;
    text-decoration: none;
    padding: 0.2rem 0.4rem;
}

/* Category filter */
.downloads-category-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 1rem;
}
.downloads-category-filter a {
    display: inline-block;
    padding: 0.3rem 0.85rem;
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: background 0.15s var(--ease), color 0.15s, border-color 0.15s;
}
.downloads-category-filter a:hover { background: var(--bg-page); text-decoration: none; }
.downloads-category-filter a.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

/* Card grid */
.downloads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.75rem;
}
.download-card-image img,
.download-card-image picture img { width: 100%; height: 180px; object-fit: cover; display: block; }
.download-card-image picture { display: block; }
.download-card-placeholder {
    height: 100px;
    background: var(--bg-page);
    display: flex;
    align-items: center;
    justify-content: center;
}
.download-placeholder-ext {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-secondary);
    letter-spacing: 0.04em;
}
.download-card-body { padding: 1rem 1.125rem 1rem; flex: 1; display: flex; flex-direction: column; }
.download-category { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
.download-category a { color: var(--accent); text-decoration: none; }
.download-category a:hover { text-decoration: underline; }
.download-card-body h3 { font-size: 1.0625rem; margin: 0.4rem 0 0.5rem; line-height: 1.35; }
.download-card-body h3 a { color: var(--text-primary); text-decoration: none; }
.download-card-body h3 a:hover { color: var(--accent); }
.download-excerpt { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.55; flex: 1; margin-bottom: 0.75rem; }
.download-version { font-size: 0.75rem; color: #166534; background: #f0fdf4; border: 1px solid #bbf7d0; padding: 0.1rem 0.5rem; border-radius: 3px; display: inline-block; margin-bottom: 0.5rem; }
.download-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin-top: auto; padding-top: 0.625rem; border-top: 1px solid var(--border); }
.download-ext, .download-ext-badge { font-size: 0.7rem; font-weight: 700; background: var(--accent); color: #fff; padding: 0.1rem 0.45rem; border-radius: 3px; letter-spacing: 0.03em; }
.download-size { font-size: 0.8125rem; color: var(--text-secondary); }
.btn-download-detail { font-size: 0.8125rem; color: var(--accent); font-weight: 600; text-decoration: none; white-space: nowrap; }
.btn-download-detail:hover { text-decoration: underline; }
.download-card-link { font-size: 0.8125rem; color: var(--accent); font-weight: 600; text-decoration: none; white-space: nowrap; }
.download-card-link:hover { text-decoration: underline; }

/* Detail page */
.download-detail { padding: 3rem 0; }
.download-detail-header { margin-bottom: 1.5rem; }
.download-detail-header h1 { font-size: 2rem; margin: 0.4rem 0 0; line-height: 1.25; }
.download-detail-image { margin-bottom: 2rem; border-radius: var(--radius-md); overflow: hidden; }
.download-detail-image img,
.download-detail-image picture img { width: 100%; max-height: 420px; object-fit: cover; display: block; }
.download-detail-image picture { display: block; }
.download-detail-excerpt { font-size: 1.05rem; color: var(--text-secondary); line-height: 1.65; margin-bottom: 1.5rem; }
.download-detail-content { margin-bottom: 2rem; }
.download-detail-content.prose { line-height: 1.75; }
.download-detail-content.prose p { margin-bottom: 1rem; }
.download-detail-content.prose h2,
.download-detail-content.prose h3 { margin: 1.5rem 0 0.75rem; }
.download-cta { margin: 2rem 0; }
.download-file-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: #f0f9ff;
    border: 1px solid #bde0f9;
    border-radius: var(--radius-md);
}
.download-file-icon { flex-shrink: 0; }
.download-ext-badge--lg { font-size: 0.875rem; padding: 0.25rem 0.6rem; border-radius: 4px; }
.download-file-info { flex: 1; min-width: 0; }
.download-file-name { display: block; font-weight: 600; font-size: 0.9375rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.download-file-size { display: block; font-size: 0.8125rem; color: var(--text-secondary); margin-top: 0.15rem; }
.btn-download, .btn.btn-download {
    display: inline-block;
    padding: 0.55rem 1.25rem;
    background: var(--accent);
    color: #fff;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    transition: opacity 0.15s;
}
.btn-download:hover { opacity: 0.88; text-decoration: none; }
.download-detail-footer { padding-top: 2rem; border-top: 1px solid var(--border); }
.btn-back { color: var(--text-secondary); text-decoration: none; font-size: 0.9rem; }
.btn-back:hover { color: var(--accent); text-decoration: underline; }
@media (max-width: 768px) {
    .downloads-grid { grid-template-columns: 1fr; }
    .download-file-card { flex-wrap: wrap; }
}

/* ── Contact Form (Phase 11b) ───────────────────────────────────────────── */
.contact-form-section { margin-top: 2.5rem; }
.contact-form-heading { font-size: 1.375rem; font-weight: 600; margin-bottom: 1.25rem; color: var(--teal); }
.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.contact-form-honeypot { display: none; }
.contact-form-group { display: flex; flex-direction: column; gap: 0.25rem; }
.contact-form-label { font-weight: 600; font-size: 0.9375rem; }
.contact-form-input,
.contact-form-textarea { width: 100%; padding: 0.6rem 0.875rem; border: 1px solid var(--border); border-radius: 4px; font-size: 1rem; font-family: inherit; background: #fff; color: var(--text-primary); transition: border-color 0.15s; }
.contact-form-input:focus,
.contact-form-textarea:focus { outline: none; border-color: var(--accent); }
.contact-form-input.is-error,
.contact-form-textarea.is-error { border-color: #e53e3e; }
.contact-form-textarea { resize: vertical; }
.contact-form-error { color: #c53030; font-size: 0.875rem; }
.contact-form-submit { align-self: flex-start; }
.contact-alert { padding: 1rem 1.25rem; border-radius: var(--radius-sm); margin-bottom: 1.5rem; font-size: 0.9375rem; }
.contact-alert--success { background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; }
.contact-alert--error { background: #fff5f5; border: 1px solid #fed7d7; color: #9b2c2c; }

/* Overlay via ::after – default: bottom gradient fade to page bg */
.hero-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--bg-page) 0%, transparent 35%);
    pointer-events: none;
    z-index: 1;
}

/* Container above overlay */
.hero-section > .container {
    position: relative;
    z-index: 2;
}

/* Hero v2: Boxed – overlay scoped to container, not section */
.hero--layout-boxed::after { display: none; }
.hero--layout-boxed > .container {
    position: relative;
    overflow: hidden;
}
.hero--layout-boxed > .container::after {
    content: '';
    position: absolute;
    inset: 0;
    background: transparent;
    pointer-events: none;
    z-index: 1;
}
.hero--layout-boxed > .container > * { position: relative; z-index: 2; }

/* Text colour modifiers */
.hero--text-light .hero-title,
.hero--text-light .hero-eyebrow,
.hero--text-light .hero-subtitle { color: #fff; }
.hero--text-dark .hero-title,
.hero--text-dark .hero-eyebrow,
.hero--text-dark .hero-subtitle { color: #111; }

/* Canonical colour tokens (1.0.10+) */
.hero--text-white .hero-title,
.hero--text-white .hero-eyebrow,
.hero--text-white .hero-subtitle { color: #ffffff; }
.hero--text-black .hero-title,
.hero--text-black .hero-eyebrow,
.hero--text-black .hero-subtitle { color: #000000; }
.hero--text-red .hero-title,
.hero--text-red .hero-eyebrow,
.hero--text-red .hero-subtitle { color: #dc2626; }
.hero--text-green .hero-title,
.hero--text-green .hero-eyebrow,
.hero--text-green .hero-subtitle { color: #16a34a; }
.hero--text-blue .hero-title,
.hero--text-blue .hero-eyebrow,
.hero--text-blue .hero-subtitle { color: var(--accent); }

/* Heading size modifiers */
.hero--hsize-sm .hero-title  { font-size: 2rem; }
.hero--hsize-md .hero-title  { font-size: 2.5rem; }
.hero--hsize-lg .hero-title  { font-size: 3.5rem; }
.hero--hsize-xl .hero-title  { font-size: 4.5rem; }

/* Heading weight modifiers */
.hero--hweight-normal .hero-title { font-weight: 400; }
.hero--hweight-medium .hero-title { font-weight: 600; }
.hero--hweight-bold   .hero-title { font-weight: 700; }
.hero--hweight-black  .hero-title { font-weight: 900; }

/* Body text size modifiers */
.hero--body-sm .hero-subtitle { font-size: 1rem; }
.hero--body-md .hero-subtitle { font-size: 1.125rem; }
.hero--body-lg .hero-subtitle { font-size: 1.375rem; }

/* Text alignment modifiers */
.hero--align-left  { text-align: left; }
.hero--align-right { text-align: right; }
.hero--align-left  .hero-subtitle,
.hero--align-left  .hero-eyebrow { margin-left: 0; }
.hero--align-right .hero-subtitle,
.hero--align-right .hero-eyebrow { margin-right: 0; margin-left: auto; }

/* Overlay strength modifiers – section level (full/split/center) */
.hero--overlay-light::after  { background: rgba(0,0,0,0.25); }
.hero--overlay-medium::after { background: rgba(0,0,0,0.45); }
.hero--overlay-heavy::after  { background: rgba(0,0,0,0.65); }

/* Overlay strength modifiers – boxed: scoped to container */
.hero--layout-boxed.hero--overlay-light > .container::after  { background: rgba(0,0,0,0.25); }
.hero--layout-boxed.hero--overlay-medium > .container::after { background: rgba(0,0,0,0.45); }
.hero--layout-boxed.hero--overlay-heavy > .container::after  { background: rgba(0,0,0,0.65); }

/* Height modifiers */
.hero--tall { min-height: 80vh; display: flex; align-items: center; }
.hero--tall > .container { width: 100%; }

/* Layout: full (content stretches to full container width) */
.hero--layout-full > .container { max-width: 100%; padding-left: 2rem; padding-right: 2rem; }

/* Layout: boxed – Hero v2: background + overlay scoped to box */
.hero--layout-boxed > .container {
    background-color: rgba(255,255,255,0.88);
    background-size: cover;
    background-position: center;
    border-radius: 14px;
    padding: 2.5rem 3rem;
    max-width: 860px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 4px 32px rgba(0,0,0,0.10);
}

/* Boxed without bg image: no background-size/position needed, card look */
.hero--layout-boxed:not(.hero--has-bg) > .container {
    background-color: rgba(255,255,255,0.92);
}

/* Layout: split (text left + portrait right) */
.hero--layout-split > .container { max-width: var(--wide-width); }
.hero-split-inner {
    display: flex;
    align-items: center;
    gap: 3rem;
}
.hero-text { flex: 1; min-width: 0; }
.hero-portrait-wrap { flex: 0 0 auto; }

/* Hero v2: Portrait inline (non-split modes) – centered above text */
.hero-portrait-inline {
    margin: 0 auto 1.5rem;
    flex: none;
}
.hero-portrait-inline .hero-portrait {
    width: 140px;
    height: 140px;
    margin: 0 auto;
}
.hero--align-left .hero-portrait-inline { margin-left: 0; margin-right: auto; }
.hero--align-right .hero-portrait-inline { margin-left: auto; margin-right: 0; }

/* Boxed + portrait inline: slightly larger */
.hero--layout-boxed .hero-portrait-inline .hero-portrait {
    width: 120px;
    height: 120px;
}

/* Portrait style modifiers */
.hero--portrait-circle .hero-portrait { border-radius: 50%; }
.hero--portrait-rounded .hero-portrait { border-radius: 1.5rem; }
.hero--portrait-square .hero-portrait { border-radius: 0; }
.hero-portrait { width: 280px; height: 280px; object-fit: cover; display: block; box-shadow: 0 8px 32px rgba(0,0,0,0.15); border-radius: 50%; }

/* Portrait shadow style modifiers */
.hero--portrait-elevated .hero-portrait { box-shadow: 0 16px 64px rgba(0,0,0,0.25); }
.hero--portrait-flat      .hero-portrait { box-shadow: none; }

/* CTA container */
.hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 0.875rem;
    margin-top: 1.75rem;
    justify-content: center;
}
.hero--align-left .hero-ctas  { justify-content: flex-start; }
.hero--align-right .hero-ctas { justify-content: flex-end; }

/* CTA layout: stacked */
.hero--cta-stacked .hero-ctas { flex-direction: column; align-items: center; max-width: 260px; margin-left: auto; margin-right: auto; }
.hero--align-left.hero--cta-stacked  .hero-ctas { align-items: flex-start; margin-left: 0; }
.hero--align-right.hero--cta-stacked .hero-ctas { align-items: flex-end; margin-right: 0; }
.hero--cta-stacked .hero-ctas .btn { width: 100%; text-align: center; }

/* Eyebrow text – Gold badge pill */
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 0.4rem 1.2rem;
    background: rgba(201,168,76,0.15);
    border: 1px solid rgba(201,168,76,0.3);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold-light);
    margin-bottom: var(--space-xl);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}
.hero--layout-boxed .hero-subtitle { max-width: 100%; }
.hero--layout-split .hero-subtitle { max-width: 100%; }

/* Responsive – Hero Presentation */
@media (max-width: 768px) {
    .hero--hsize-xl .hero-title { font-size: 2.5rem; }
    .hero--hsize-lg .hero-title { font-size: 2rem; }
    .hero-split-inner { flex-direction: column; gap: 2rem; text-align: center; }
    .hero--layout-split { text-align: center; }
    .hero--layout-split .hero-ctas { justify-content: center; }
    .hero-portrait { width: 200px; height: 200px; }
    .hero-portrait-inline .hero-portrait { width: 110px; height: 110px; }
    .hero--cta-stacked .hero-ctas { max-width: 100%; margin-left: auto; margin-right: auto; }
    .hero--layout-boxed > .container { max-width: 100%; padding: 2rem 1.75rem; border-radius: var(--radius-lg); }
}

/* Responsive – improved section/grid fixes */
@media (max-width: 480px) {
    .events-grid { grid-template-columns: 1fr; }
    .events-preview-grid { grid-template-columns: 1fr; }
    .events-featured-grid { grid-template-columns: 1fr; }
    .event-detail   { padding: 2rem 0; }
    .download-detail { padding: 2rem 0; }
    .event-detail-header h1 { font-size: 1.5rem; }
    .download-detail-header h1 { font-size: 1.4375rem; }
    .error-section { padding: 4rem 0; }
    .hero--layout-boxed > .container { padding: 1.5rem 1.25rem; border-radius: var(--radius-md); }
    .hero-portrait-inline .hero-portrait { width: 90px; height: 90px; }
    .contact-form-submit { align-self: stretch; }
    .contact-form-submit.btn, .contact-form-submit { width: 100%; text-align: center; }
}

/* Visible focus ring for keyboard navigation */
a:focus-visible,
button:focus-visible,
[tabindex="0"]:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 2px;
}

/* Suppress outline for mouse/touch (already handled by :hover) */
a:focus:not(:focus-visible),
button:focus:not(:focus-visible),
[tabindex="0"]:focus:not(:focus-visible) {
    outline: none;
}

/* Contact form: replace outline:none with visible focus for keyboard users */
.contact-form-input:focus-visible,
.contact-form-textarea:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 0;
    border-color: var(--accent);
}

/* === Section Color Schemes (Unified v3.4) === */
.section--scheme-primary { background: var(--scheme-primary-bg); color: var(--scheme-primary-text); }
.section--scheme-primary h2,
.section--scheme-primary h3 { color: var(--scheme-primary-text); }
.section--scheme-primary p,
.section--scheme-primary .section-subtitle,
.section--scheme-primary .intro-text { color: var(--scheme-primary-muted); }
.section--scheme-primary .testimonial-card,
.section--scheme-primary .feature-card,
.section--scheme-primary .highlight-card { color: var(--text-primary, var(--text)); }
.section--scheme-primary .testimonial-text,
.section--scheme-primary .feature-card p { color: var(--text-secondary, var(--text-muted)); }
.section--scheme-primary .testimonial-author-name { color: var(--text-primary, var(--text)); }
.section--scheme-primary .testimonial-author-role { color: var(--text-secondary, var(--text-muted)); }

.section--scheme-alt { background: var(--scheme-alt-bg); color: var(--scheme-alt-text); }

.section--scheme-dark { background: var(--scheme-dark-bg); color: var(--scheme-dark-text); }
.section--scheme-dark h2,
.section--scheme-dark h3,
.section--scheme-dark p { color: var(--scheme-dark-text); }
.section--scheme-dark .testimonial-card,
.section--scheme-dark .feature-card { color: var(--scheme-dark-text); }

.section--scheme-none { background: transparent; }

/* Section text color overrides – must cover ALL card-internal elements.
   IMPORTANT for future Premium Themes: every element that sets an explicit
   color: inside a homepage section MUST be listed here, otherwise the
   section_text_color admin setting will not override it.
   See docs/premium-theme-checklist.md for the full checklist. */
.section--text-black,
.section--text-black h2,
.section--text-black h3,
.section--text-black h4,
.section--text-black p,
.section--text-black li,
.section--text-black span,
.section--text-black a,
.section--text-black .section-subtitle,
.section--text-black .intro-text,
.section--text-black .feature-card p,
.section--text-black .feature-card h3,
.section--text-black .feature-card-link,
.section--text-black .topic-card-title,
.section--text-black .topic-card-text,
.section--text-black .topic-card-link,
.section--text-black .highlight-card-title,
.section--text-black .highlight-card-text,
.section--text-black .highlight-card-source,
.section--text-black .highlight-card-link,
.section--text-black .blog-card-body p,
.section--text-black .blog-card-body h2 a,
.section--text-black .blog-card-title a,
.section--text-black .blog-card-category,
.section--text-black .blog-card-excerpt,
.section--text-black .blog-card-readmore,
.section--text-black .blog-card-date,
.section--text-black .blog-category,
.section--text-black .blog-meta,
.section--text-black .blog-read-time,
.section--text-black .event-card-body p,
.section--text-black .event-card-body h3 a,
.section--text-black .event-card-meta,
.section--text-black .event-card-link,
.section--text-black .cta-text,
.section--text-black .cta-eyebrow { color: #1a202c !important; }
.section--text-white,
.section--text-white h2,
.section--text-white h3,
.section--text-white h4,
.section--text-white p,
.section--text-white li,
.section--text-white span,
.section--text-white a,
.section--text-white .section-subtitle,
.section--text-white .intro-text,
.section--text-white .feature-card p,
.section--text-white .feature-card h3,
.section--text-white .feature-card-link,
.section--text-white .topic-card-title,
.section--text-white .topic-card-text,
.section--text-white .topic-card-link,
.section--text-white .highlight-card-title,
.section--text-white .highlight-card-text,
.section--text-white .highlight-card-source,
.section--text-white .highlight-card-link,
.section--text-white .blog-card-body p,
.section--text-white .blog-card-body h2 a,
.section--text-white .blog-card-title a,
.section--text-white .blog-card-category,
.section--text-white .blog-card-excerpt,
.section--text-white .blog-card-readmore,
.section--text-white .blog-card-date,
.section--text-white .blog-category,
.section--text-white .blog-meta,
.section--text-white .blog-read-time,
.section--text-white .event-card-body p,
.section--text-white .event-card-body h3 a,
.section--text-white .event-card-meta,
.section--text-white .event-card-link,
.section--text-white .cta-text,
.section--text-white .cta-eyebrow { color: #ffffff !important; }
.section--text-theme,
.section--text-theme h2,
.section--text-theme h3,
.section--text-theme h4,
.section--text-theme p,
.section--text-theme li,
.section--text-theme span,
.section--text-theme a,
.section--text-theme .section-subtitle,
.section--text-theme .intro-text,
.section--text-theme .feature-card p,
.section--text-theme .feature-card h3,
.section--text-theme .feature-card-link,
.section--text-theme .topic-card-title,
.section--text-theme .topic-card-text,
.section--text-theme .topic-card-link,
.section--text-theme .highlight-card-title,
.section--text-theme .highlight-card-text,
.section--text-theme .highlight-card-source,
.section--text-theme .highlight-card-link,
.section--text-theme .blog-card-body p,
.section--text-theme .blog-card-body h2 a,
.section--text-theme .blog-card-title a,
.section--text-theme .blog-card-category,
.section--text-theme .blog-card-excerpt,
.section--text-theme .blog-card-readmore,
.section--text-theme .blog-card-date,
.section--text-theme .blog-category,
.section--text-theme .blog-meta,
.section--text-theme .blog-read-time,
.section--text-theme .event-card-body p,
.section--text-theme .event-card-body h3 a,
.section--text-theme .event-card-meta,
.section--text-theme .event-card-link,
.section--text-theme .cta-text,
.section--text-theme .cta-eyebrow { color: var(--theme-primary, var(--accent)) !important; }

/* Alignment override */
.section--align-left { text-align: left !important; }
.section--align-left h2 { text-align: left !important; }
.section--align-left p { margin-left: 0 !important; max-width: none !important; }

/* Card style variants */
.section--card-bordered .feature-card { border: 1px solid var(--border) !important; box-shadow: none !important; }
.section--card-flat .feature-card { box-shadow: none !important; background: transparent !important; border: none !important; }

/* Column tokens */
.section--cols-2 .features-grid, .section--cols-2 .topic-cards-grid, .section--cols-2 .highlight-grid { grid-template-columns: repeat(2, 1fr); }
.section--cols-3 .features-grid, .section--cols-3 .topic-cards-grid, .section--cols-3 .highlight-grid { grid-template-columns: repeat(3, 1fr); }
.section--cols-4 .features-grid, .section--cols-4 .topic-cards-grid, .section--cols-4 .highlight-grid { grid-template-columns: repeat(4, 1fr); }

/* Max-width tokens */
.section--maxw-sm .container { max-width: 540px; }
.section--maxw-md .container { max-width: 720px; }
.section--maxw-lg .container { max-width: 960px; }

/* Topic and Highlight card modifier support */
.section--card-bordered .topic-card { border: 1px solid var(--border); box-shadow: none; }
.section--card-flat .topic-card { box-shadow: none; background: transparent; border: none; }
.section--card-bordered .highlight-card { border: 1px solid var(--border); box-shadow: none; }
.section--card-flat .highlight-card { box-shadow: none; background: transparent; border: none; }
.topic-cards-section h2 { text-align: center; margin-bottom: 1rem; }
.topic-card--plain { cursor: default; }
.topic-card--plain:hover { transform: none; }
.topic-card-link { margin-top: 1rem; font-size: 0.875rem; font-weight: 600; color: var(--accent); }
.highlight-grid-section h2 { text-align: center; margin-bottom: 1rem; }
.highlight-card-icon { font-size: 2rem; margin-bottom: 0.75rem; }
.highlight-card-title { font-size: 1.125rem; font-weight: 700; margin-bottom: 0.5rem; }
.highlight-card-text { color: var(--text-secondary); font-size: 0.9375rem; flex: 1; }
.highlight-card-source { font-size: 0.8125rem; color: var(--text-secondary); font-style: italic; margin-top: 0.5rem; }
.highlight-card-link { margin-top: 1rem; font-size: 0.875rem; font-weight: 600; color: var(--accent); }
.stats-header { text-align: center; margin-bottom: 3rem; }
.stats-title { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 700; }
.stats-subtitle { font-size: 1.0625rem; color: var(--text-secondary); margin-top: var(--space-sm); }
.stats--cols-2 .stats-grid { grid-template-columns: repeat(2, 1fr); }
.stats--cols-3 .stats-grid { grid-template-columns: repeat(3, 1fr); }
.stats-item-icon { margin-bottom: 0.75rem; color: var(--accent); }
.stats-prefix, .stats-suffix { font-size: 0.7em; }
.testimonials-header { text-align: center; margin-bottom: 3rem; }
.testimonials-title { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 700; }
.testimonials-subtitle { font-size: 1.0625rem; color: var(--text-secondary); margin-top: var(--space-sm); }
.testimonials--cols-1 .testimonials-grid { grid-template-columns: 1fr; max-width: 640px; margin: 0 auto; }
.testimonials--cols-3 .testimonials-grid { grid-template-columns: repeat(3, 1fr); }
.testimonials--staggered .testimonial-card:nth-child(even) { margin-top: 3rem; }
.testimonial-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.testimonial-quote-mark { font-size: 5rem; line-height: 1; color: rgba(201,168,76,0.3); position: absolute; top: var(--space-lg); left: 2rem; font-family: Georgia, serif; margin-bottom: -1.5rem; }
.testimonial-rating { display: flex; gap: 0.25rem; margin-top: var(--space-md); color: #f59e0b; }
.testimonial-star { opacity: 0.3; }
.testimonial-star.star--filled { opacity: 1; }
.scroll-to-top:focus-visible {
    outline: 2px solid var(--accent));
    outline-offset: 3px;
}
.scroll-to-top svg {
    width: 20px;
    height: 20px;
}

/* Only active when admin enables dark mode (html[data-dark-mode] is set) */
@media (prefers-color-scheme: dark) {
    html[data-dark-mode]:not([data-theme="light"]) {
        --color-primary: #60a5fa;
        --color-primary-dark: var(--accent);
        --color-text: var(--border);
        --color-text-light: #9ca3af;
        --color-bg: var(--teal);
        --color-bg-alt: var(--text-primary);
        --color-border: #374151;
        color-scheme: dark;
    }
    html[data-dark-mode]:not([data-theme="light"]) .site-header {
        background: rgba(17,24,39,0.8);
        -webkit-backdrop-filter: blur(12px);
        backdrop-filter: blur(12px);
        box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    }
    html[data-dark-mode]:not([data-theme="light"]) .feature-card { background: rgba(30,41,59,0.7); }
    html[data-dark-mode]:not([data-theme="light"]) .cta-section { background: linear-gradient(135deg, var(--accent) 0%, var(--accent) 50%, #1e293b 100%); }
    html[data-dark-mode]:not([data-theme="light"]) .site-footer { background: #0d1117; }
    html[data-dark-mode]:not([data-theme="light"]) .logo-text { color: var(--border); }
    html[data-dark-mode]:not([data-theme="light"]) img { opacity: 0.92; }
}

/* Manual override: user clicked toggle */
html[data-dark-mode][data-theme="dark"] {
    --color-primary: #60a5fa;
    --color-primary-dark: var(--accent);
    --color-text: var(--border);
    --color-text-light: #9ca3af;
    --color-bg: var(--teal);
    --color-bg-alt: var(--text-primary);
    --color-border: #374151;
    color-scheme: dark;
}
html[data-dark-mode][data-theme="dark"] .site-header { background: rgba(17,24,39,0.8); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 1px 3px rgba(0,0,0,0.2); }
html[data-dark-mode][data-theme="dark"] .feature-card { background: rgba(30,41,59,0.7); }
html[data-dark-mode][data-theme="dark"] .cta-section { background: linear-gradient(135deg, var(--accent) 0%, var(--accent) 50%, #1e293b 100%); }
html[data-dark-mode][data-theme="dark"] .site-footer { background: #0d1117; }
html[data-dark-mode][data-theme="dark"] .logo-text { color: var(--border); }
html[data-dark-mode][data-theme="dark"] img { opacity: 0.92; }
.theme-toggle .icon-sun,
.theme-toggle .icon-moon { display: none; }
html:not([data-theme="dark"]) .theme-toggle .icon-moon { display: block; }
html[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
@media (prefers-color-scheme: dark) {
    html:not([data-theme="light"]):not([data-theme="dark"]) .theme-toggle .icon-sun { display: block; }
    html:not([data-theme="light"]):not([data-theme="dark"]) .theme-toggle .icon-moon { display: none; }
}
.header-search-toggle:hover,
.header-search-toggle[aria-expanded="true"] {
    opacity: 1;
    background: rgba(255,255,255,0.1);
}
.header-search-toggle svg {
    display: block;
    pointer-events: none;
}
.header-search-dropdown[hidden] {
    display: none;
}
@keyframes searchDropIn {
    to { opacity: 1; transform: translateY(0); }
}
.header-search-dropdown button[type="submit"]:hover {
    background: var(--accent-hover));
    border-color: var(--accent-hover));
}
.header-search-dropdown button[type="submit"] svg {
    display: block;
}
.search-input-group {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
}
.search-input {
    flex: 1;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 2px solid var(--border-color, #ddd);
    border-right: none;
    border-radius: var(--radius-md, 6px) 0 0 var(--radius-md, 6px);
    outline: none;
    background: var(--bg-primary, #fff);
    color: var(--text-primary, #1a1a1a);
    -webkit-appearance: none;
}
.search-input:focus {
    border-color: var(--accent));
}
.search-submit {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: var(--accent));
    color: #fff;
    border: 2px solid var(--accent));
    border-radius: 0 var(--radius-md, 6px) var(--radius-md, 6px) 0;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: background 0.2s, border-color 0.2s;
}
.search-submit:hover {
    background: var(--accent-hover));
    border-color: var(--accent-hover));
}
.search-submit svg { display: block; }

/* Search Results */
.search-result-count {
    color: var(--text-muted, #666);
    margin-bottom: 1.5rem;
    text-align: center;
}
.search-error {
    text-align: center;
    color: #dc2626;
    margin-bottom: 1rem;
}
.search-results {
    max-width: 800px;
    margin: 0 auto;
}
.search-result-card {
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--border-color, #eee);
}
.search-result-card:last-child {
    border-bottom: none;
}
.search-result-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.375rem;
    font-size: 0.8125rem;
}
.search-result-type {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.125rem 0.5rem;
    border-radius: var(--radius-sm, 4px);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.6875rem;
    letter-spacing: 0.05em;
    background: var(--bg-secondary, #f5f5f5);
    color: var(--text-muted, #666);
}
.search-result-type svg { width: 14px; height: 14px; }
.search-result-type--blog { background: #dbeafe; color: var(--accent-hover); }
.search-result-type--event { background: #fef3c7; color: #92400e; }
.search-result-type--download { background: #d1fae5; color: #065f46; }
.search-result-date {
    color: var(--text-muted, #999);
    font-size: 0.8125rem;
}
.search-result-title {
    font-size: 1.125rem;
    margin: 0.25rem 0;
    line-height: 1.4;
}
.search-result-title a {
    color: var(--text-primary, #1a1a1a);
    text-decoration: none;
}
.search-result-title a:hover {
    color: var(--accent));
}
.search-result-excerpt {
    color: var(--text-secondary, #555);
    font-size: 0.9375rem;
    line-height: 1.6;
    margin: 0.25rem 0;
}
.search-result-excerpt mark,
.search-result-title mark {
    background: #fef08a;
    color: inherit;
    padding: 0 0.125rem;
    border-radius: 2px;
}
.search-result-link {
    color: var(--accent));
    font-size: 0.8125rem;
    text-decoration: none;
    opacity: 0.7;
}
.search-result-link:hover {
    opacity: 1;
    text-decoration: underline;
}

/* No Results */
.search-no-results {
    text-align: center;
    padding: 3rem 0;
}
.search-no-results svg {
    color: var(--text-muted, #ccc);
    margin-bottom: 1rem;
}
.search-no-results p {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

/* Mobile */
@media (max-width: 768px) {
    .search-input-group {
        flex-direction: column;
    }
    .search-input {
        border-right: 2px solid var(--border-color, #ddd);
        border-radius: var(--radius-md, 6px);
        border-bottom: none;
    }
    .search-input:focus {
        border-color: var(--accent));
    }
    .search-submit {
        border-radius: var(--radius-md, 6px);
        justify-content: center;
        margin-top: 0.5rem;
    }
}
.article-reading-time svg { flex-shrink: 0; vertical-align: middle; }
.article-toc-title svg { flex-shrink: 0; }
.article-toc-list li a {
    color: var(--accent));
    text-decoration: none;
    transition: opacity 0.15s;
}
.article-toc-list li a:hover { text-decoration: underline; opacity: 0.8; }
.related-post-img-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ── Sticky Header (v3.3.0) ─────────────────────────────────────────── */
html[data-sticky-header] .site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: box-shadow 0.3s ease;
}
html[data-sticky-header] .site-header.is-scrolled {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* ══════════════════════════════════════════════════════════════
   ESTATE PREMIUM DIFFERENTIATION (Phase A)
   ══════════════════════════════════════════════════════════════ */

/* ── A1: Hero – Architectural decoration ─────────────────────── */
.hero-section > .container::before {
    content: '';
    position: absolute;
    top: -15vh;
    right: -70%;
    width: 45vw;
    height: 80%;
    border: 1px solid rgba(201,168,76,0.12);
    border-radius: var(--radius-lg);
    pointer-events: none;
    z-index: -1;
    background:
        linear-gradient(180deg, transparent 0%, rgba(201,168,76,0.03) 100%),
        repeating-linear-gradient(
            90deg,
            transparent 0%,
            transparent 32%,
            rgba(255,255,255,0.03) 32%,
            rgba(255,255,255,0.03) 33%
        ),
        repeating-linear-gradient(
            0deg,
            transparent 0%,
            transparent 24%,
            rgba(255,255,255,0.025) 24%,
            rgba(255,255,255,0.025) 25%
        );
}

@media (max-width: 768px) {
    .hero-section > .container::before { display: none; }
}

/* ── A2: Testimonials – scheme-primary with decorative gold ── */
.testimonials-section.section--scheme-primary {
    position: relative;
    overflow: hidden;
    padding: var(--space-4xl) 0;
}
.testimonials-section.section--scheme-primary::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: rgba(201,168,76,0.06);
    pointer-events: none;
}
.testimonials-section.section--scheme-primary::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(201,168,76,0.04);
    pointer-events: none;
}
.testimonials-section.section--scheme-primary .container {
    position: relative;
    z-index: 1;
}
.testimonials-section.section--scheme-primary .testimonials-header {
    color: #fff;
}
.testimonials-section.section--scheme-primary .testimonials-title {
    color: #fff;
}
.testimonials-section.section--scheme-primary .testimonials-subtitle {
    color: rgba(255,255,255,0.7);
}
.testimonials-section.section--scheme-primary .testimonial-card {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.12);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    padding: var(--space-2xl);
}
.testimonials-section.section--scheme-primary .testimonial-text {
    color: rgba(255,255,255,0.85);
    margin-top: 0;
}
.testimonials-section.section--scheme-primary .testimonial-author-name {
    color: #fff;
}
.testimonials-section.section--scheme-primary .testimonial-avatar--initials {
    background: rgba(255,255,255,0.15);
    color: #fff;
}
.testimonials-section.section--scheme-primary .testimonial-card:hover {
    background: rgba(255,255,255,0.12);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}
.testimonials-section.section--scheme-primary .testimonial-text {
    color: rgba(255,255,255,0.9);
}
.testimonials-section.section--scheme-primary .testimonial-author-name {
    color: #fff;
}
.testimonials-section.section--scheme-primary .testimonial-author-role {
    color: rgba(255,255,255,0.6);
}
.testimonials-section.section--scheme-primary .testimonial-card::before,
.testimonials-section.section--scheme-primary .testimonial-quote-mark {
    color: var(--gold);
    opacity: 0.3;
}
.testimonials-section.section--scheme-primary .testimonial-rating {
    color: var(--gold);
}

/* ── A3: Stats after Hero – floating overlay card ────────────── */
.hero-section + .stats-section {
    margin-top: -4rem;
    padding-top: 0;
    padding-bottom: var(--space-2xl);
    position: relative;
    z-index: 10;
    background: transparent;
}
.hero-section + .stats-section > .container {
    background: var(--bg-surface);
    border-radius: var(--radius-xl);
    padding: var(--space-xl) var(--space-2xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}
.hero-section + .stats-section .stats-item {
    padding: var(--space-lg) var(--space-md);
    position: relative;
}
.hero-section + .stats-section .stats-item + .stats-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background: var(--border);
}
.hero-section + .stats-section .stats-item-value {
    font-size: clamp(2rem, 4vw, 2.75rem);
}
.hero-section + .stats-section .stats-item-label {
    color: var(--text-light);
}

@media (max-width: 768px) {
    .hero-section + .stats-section { margin-top: -2rem; }
    .hero-section + .stats-section > .container { padding: var(--space-lg); }
    .hero-section + .stats-section .stats-item + .stats-item::before { display: none; }
}

/* ── A4: CTA – Card look ─────────────────────────────────────── */
.cta-section:not(.cta--has-bg) {
    background: transparent;
    padding: var(--space-3xl) var(--space-lg);
}
.cta-section:not(.cta--has-bg)::before {
    display: none;
}
.cta-section:not(.cta--has-bg) > .container {
    background: var(--bg-surface);
    border-radius: var(--radius-xl);
    padding: var(--space-3xl) var(--space-2xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    max-width: 900px;
    position: relative;
    overflow: hidden;
}
.cta-section:not(.cta--has-bg) > .container::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 100%;
    background: linear-gradient(135deg, transparent 0%, rgba(13,79,79,0.03) 100%);
    border-radius: inherit;
    pointer-events: none;
}
html[data-theme="dark"] .cta-section:not(.cta--has-bg) > .container::before {
    background: linear-gradient(135deg, transparent 0%, rgba(201,168,76,0.03) 100%);
}
.cta-section:not(.cta--has-bg) h2 {
    color: var(--text-primary);
}
.cta-section:not(.cta--has-bg) p {
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    .cta-section:not(.cta--has-bg) > .container {
        padding: var(--space-2xl) var(--space-lg);
    }
}

/* ══════════════════════════════════════════════════════════════
   ESTATE PREMIUM DIFFERENTIATION (Phase B)
   ══════════════════════════════════════════════════════════════ */

/* ── B1: Header CTA Button ───────────────────────────────────── */
.header-cta {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 0.5rem 1.25rem;
    background: var(--gold);
    color: var(--teal-deeper);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: background var(--duration) var(--ease),
                transform var(--duration) var(--ease),
                box-shadow var(--duration) var(--ease);
    white-space: nowrap;
    margin-left: var(--space-sm);
}
.header-cta:hover {
    background: var(--gold-hover);
    color: var(--teal-deeper);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(201,168,76,0.3);
}
.header-cta svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}
html[data-theme="dark"] .header-cta {
    background: var(--gold);
    color: var(--teal-deeper);
}

@media (max-width: 768px) {
    .header-cta {
        display: none;
    }
}

/* ── B1b: Hero highlight word (gold accent) ──────────────────── */
.hero-title em {
    font-style: normal;
    color: var(--gold);
}

/* ── B2: Hero Search Bar (Glasmorphism) ──────────────────────── */
.hero-search {
    display: flex;
    align-items: stretch;
    background: rgba(255,255,255,0.1);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius-lg);
    overflow: hidden;
    max-width: 640px;
    margin: var(--space-xl) auto 0;
}
.hero-search-input {
    flex: 1;
    padding: 1rem 1.5rem;
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-size: 1rem;
    font-family: var(--font-body);
    min-width: 0;
}
.hero-search-input::placeholder {
    color: rgba(255,255,255,0.45);
}
.hero-search-select {
    padding: 1rem 2rem 1rem 1.25rem;
    background: transparent;
    border: none;
    border-left: 1px solid rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
    font-family: var(--font-body);
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.5)' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    cursor: pointer;
    outline: none;
}
.hero-search-select option {
    background: var(--teal-dark);
    color: #fff;
}
.hero-search-btn {
    display: inline-flex;
    align-items: center;
    padding: 1rem 2rem;
    background: var(--gold);
    color: var(--teal-deeper);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
    transition: background var(--duration) var(--ease);
    white-space: nowrap;
}
.hero-search-btn:hover {
    background: var(--gold-hover);
    color: var(--teal-deeper);
}

@media (max-width: 768px) {
    .hero-search {
        flex-direction: column;
        border-radius: var(--radius-md);
    }
    .hero-search-select {
        border-left: none;
        border-top: 1px solid rgba(255,255,255,0.12);
    }
    .hero-search-btn {
        justify-content: center;
    }
}

/* ── B3: Hero Stats Counter ──────────────────────────────────── */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: var(--space-2xl);
    margin-top: var(--space-2xl);
    padding-top: var(--space-xl);
    border-top: 1px solid rgba(255,255,255,0.1);
}
.hero-stat {
    text-align: center;
}
.hero-stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
}
.hero-stat-label {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 0.3rem;
}

@media (max-width: 1024px) {
    .hero-stats { gap: var(--space-xl); }
}
@media (max-width: 768px) {
    .hero-stats {
        flex-direction: column;
        gap: var(--space-lg);
    }
}

/* ══════════════════════════════════════════════════════════════
   ESTATE PREMIUM DIFFERENTIATION (Phase F)
   ══════════════════════════════════════════════════════════════ */

/* ── F1: Property Cards ──────────────────────────────────────── */
.property-cards-section {
    padding: var(--space-3xl) 0;
}
.property-cards-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}
.property-cards-title {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 700;
    margin-bottom: var(--space-sm);
}
.property-cards-subtitle {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}
.property-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-lg);
}
.property-card {
    background: var(--bg-surface);
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-card);
    transition: box-shadow var(--duration) var(--ease),
                transform var(--duration) var(--ease);
}
.property-card:hover {
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-4px);
}
.property-card-image {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: var(--warm-gray-2);
}
.property-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--ease);
}
.property-card:hover .property-card-image img {
    transform: scale(1.05);
}
.property-card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: var(--warm-gray-3);
}
.property-card-placeholder svg {
    width: 48px;
    height: 48px;
}
.property-card-badge {
    position: absolute;
    top: var(--space-md);
    left: var(--space-md);
    padding: 0.3rem 0.75rem;
    background: var(--gold);
    color: var(--teal-deeper);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-radius: var(--radius-sm);
}
.property-card-price {
    position: absolute;
    bottom: var(--space-md);
    right: var(--space-md);
    padding: 0.4rem 0.875rem;
    background: rgba(6,42,42,0.85);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    border-radius: var(--radius-md);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}
.property-card-body {
    padding: var(--space-lg);
}
.property-card-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
    line-height: 1.3;
}
.property-card-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color var(--duration) var(--ease);
}
.property-card-title a:hover {
    color: var(--teal);
}
html[data-theme="dark"] .property-card-title a:hover {
    color: var(--gold);
}
.property-card-features {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}
.property-card-feat {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8125rem;
    color: var(--text-secondary);
    background: var(--warm-gray);
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-sm);
}
html[data-theme="dark"] .property-card-feat {
    background: var(--warm-gray-3);
}
.property-cards-cta {
    text-align: center;
    margin-top: var(--space-2xl);
}

@media (max-width: 768px) {
    .property-cards-grid {
        grid-template-columns: 1fr;
    }
}

/* ── Scroll Animations (v3.3.0) ──────────────────────────────────────── */
html[data-scroll-animations] .animate-on-scroll {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
html[data-scroll-animations] .animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Estate: Premium Features/Services ────────────────────── */
.features-section {
    background: var(--bg-surface);
}
.features-section .section-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}
.features-section .section-eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--gold);
    margin-bottom: var(--space-md);
}
.estate-feature-card {
    background: var(--bg-surface);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl) var(--space-xl);
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    position: relative;
    overflow: hidden;
    transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease), border-color var(--duration) var(--ease);
}
.estate-feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--teal), var(--gold));
    opacity: 0;
    transition: opacity var(--duration) var(--ease);
}
.estate-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--gold);
}
.estate-feature-card:hover::before {
    opacity: 1;
}
.estate-feature-card .feature-card-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--space-lg);
    background: var(--warm-gray);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
}
html[data-theme="dark"] .estate-feature-card .feature-card-icon {
    background: var(--warm-gray-3);
}
.estate-feature-card .feature-card-icon svg {
    color: var(--teal);
}
html[data-theme="dark"] .estate-feature-card .feature-card-icon svg {
    color: var(--gold);
}
.estate-feature-card h3 {
    margin-top: 0;
    margin-bottom: var(--space-sm);
}
.estate-feature-card p {
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
    line-height: 1.6;
}
.estate-feature-card .feature-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--teal);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    transition: gap var(--duration) var(--ease), color var(--duration) var(--ease);
}
.estate-feature-card .feature-card-link:hover {
    gap: 0.5rem;
    color: var(--teal-dark);
}
html[data-theme="dark"] .estate-feature-card .feature-card-link {
    color: var(--gold);
}
html[data-theme="dark"] .estate-feature-card .feature-card-link:hover {
    color: var(--gold-light, #d4b44a);
}

/* ── Estate: Premium CTA Card ─────────────────────────────── */
.cta-section .cta-card {
    background: var(--bg-surface);
    border-radius: var(--radius-xl);
    padding: var(--space-3xl) var(--space-2xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}
.cta-section .cta-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 100%;
    background: linear-gradient(135deg, transparent, rgba(13,79,79,0.02));
    pointer-events: none;
}
html[data-theme="dark"] .cta-section .cta-card::before {
    background: linear-gradient(135deg, transparent, rgba(201,168,76,0.03));
}
.cta-section .cta-card .section-eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--gold);
    margin-bottom: var(--space-md);
}
.cta-section .cta-card h2 {
    margin-bottom: var(--space-md);
}
.cta-section .cta-card .cta-text {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto var(--space-xl);
    line-height: 1.7;
}
.cta-section .cta-card .cta-buttons {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    flex-wrap: wrap;
}

/* ── Estate: Premium Testimonials ─────────────────────────── */
.estate-testimonials .estate-quote-mark {
    font-size: 4rem;
    line-height: 1;
    color: var(--gold);
    font-family: Georgia, 'Times New Roman', serif;
    margin-bottom: var(--space-md);
    opacity: 0.8;
    position: static;
}
.estate-testimonials.section--scheme-primary .testimonial-card:nth-child(even) {
    margin-top: 0;
}
.estate-testimonials .estate-rating .testimonial-star {
    width: 18px;
    height: 18px;
}
.estate-testimonials .estate-rating .star--filled {
    color: var(--gold);
}
.estate-testimonials .testimonial-card {
    border-top: 3px solid transparent;
    padding: var(--space-2xl);
    transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}
.estate-testimonials .testimonial-card::before {
    display: none;
}
.estate-testimonials .testimonial-card:hover {
    border-top-color: var(--gold);
    box-shadow: var(--shadow-md);
}
.estate-testimonials .testimonial-avatar--initials {
    background: var(--teal);
    color: #fff;
    font-weight: 700;
}
html[data-theme="dark"] .estate-testimonials .testimonial-avatar--initials {
    background: var(--gold);
    color: var(--teal-deeper);
}
@media (max-width: 768px) {
    .estate-testimonials .testimonial-card {
        padding: var(--space-xl) var(--space-lg);
    }
}
