/* Light theme (default) - Maman-inspired clean palette */
:root {
  --bg: #fafafa;
  --surface: #ffffff;
  --text: #10202e;
  --muted: #556674;
  --brand: #0e9cd8;
  --brand-dark: #0c85b8;
  --brand-soft: #e8f6fd;
  --ink-strong: #0f2233;
  --line: #e2ebf2;
  --line-strong: #d5e1ea;
  --shadow: 0 4px 24px rgba(16, 42, 67, 0.06);
  --shadow-lg: 0 20px 50px rgba(16, 42, 67, 0.1);
  --header-bg: rgba(255, 255, 255, 0.92);
  --header-text: #2f4150;
  --header-border: rgba(226, 235, 242, 0.9);
  --footer-bg: linear-gradient(180deg, #112030 0%, #0d1823 100%);
  --footer-text: #ccdae5;
  --footer-border: #233646;
  --input-bg: #ffffff;
  --input-border: #ccdbe6;
  --logo-invert: 0;
  --section-padding: 5rem;
  --section-padding-sm: 3.25rem;
  --content-gap: 2rem;
}

/* Dark theme (system preference) */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1821;
    --surface: #16202b;
    --text: #e2eaf1;
    --muted: #9ca8b4;
    --brand: #3eb4f0;
    --brand-dark: #2a9dd9;
    --brand-soft: rgba(62, 180, 240, 0.15);
    --ink-strong: #f0f5f9;
    --line: #2a3846;
    --line-strong: #354556;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.4);
    --header-bg: rgba(15, 24, 33, 0.95);
    --header-text: #e2eaf1;
    --header-border: rgba(42, 56, 70, 0.9);
    --footer-bg: linear-gradient(180deg, #0d1520 0%, #0a1118 100%);
    --footer-text: #b8c6d2;
    --footer-border: #233646;
    --input-bg: #1a2332;
    --input-border: #354556;
    --logo-invert: 1;
  }
}

[data-theme="dark"] {
  --bg: #0f1821;
  --surface: #16202b;
  --text: #e2eaf1;
  --muted: #9ca8b4;
  --brand: #3eb4f0;
  --brand-dark: #2a9dd9;
  --brand-soft: rgba(62, 180, 240, 0.15);
  --ink-strong: #f0f5f9;
  --line: #2a3846;
  --line-strong: #354556;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.4);
  --header-bg: rgba(15, 24, 33, 0.95);
  --header-text: #e2eaf1;
  --header-border: rgba(42, 56, 70, 0.9);
  --footer-bg: linear-gradient(180deg, #0d1520 0%, #0a1118 100%);
  --footer-text: #b8c6d2;
  --footer-border: #233646;
  --input-bg: #1a2332;
  --input-border: #354556;
  --logo-invert: 1;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  letter-spacing: 0.01em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

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

.container {
  width: min(1180px, calc(100% - 2rem));
  margin-inline: auto;
}

.container-wide {
  width: min(1280px, calc(100% - 3rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--header-border);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

.header-row {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo img {
  width: 126px;
  height: 67px;
  object-fit: contain;
  filter: invert(var(--logo-invert));
}

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

.nav a {
  padding: 0.58rem 0.78rem;
  border-radius: 999px;
  color: var(--header-text);
  font-weight: 600;
  font-size: 0.95rem;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.nav a:hover,
.nav a.active {
  background: var(--brand-soft);
  color: var(--brand);
}

.nav a.nav-cta {
  background: var(--brand);
  color: #fff !important;
  padding: 0.5rem 1rem;
}

.nav a.nav-cta:hover {
  background: var(--brand-dark);
  color: #fff !important;
}

.nav a:focus-visible,
.btn:focus-visible,
.form-grid input:focus-visible,
.form-grid textarea:focus-visible {
  outline: 2px solid #8fd6f3;
  outline-offset: 2px;
}

/* Theme toggle */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--header-text);
  cursor: pointer;
  transition:
    background 0.2s,
    border-color 0.2s,
    color 0.2s;
}

.theme-toggle:hover {
  background: var(--brand-soft);
  border-color: var(--brand);
  color: var(--brand);
}

.theme-toggle .theme-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle .theme-icon svg {
  width: 20px;
  height: 20px;
}

.theme-toggle .theme-icon {
  display: flex;
}

.theme-toggle .sun {
  display: none;
}

.theme-toggle .moon {
  display: flex;
}

[data-theme="dark"] .theme-toggle .sun {
  display: flex;
}

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

.menu-btn {
  display: none;
  border: 0;
  background: none;
  cursor: pointer;
}

.menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--header-text);
  margin: 5px 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  padding: 0.72rem 1.25rem;
  font-weight: 700;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 4px 16px rgba(14, 156, 216, 0.3);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.btn-primary:hover {
  background: var(--brand-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(14, 156, 216, 0.35);
}

.btn-ghost {
  border-color: var(--line-strong);
  background: var(--brand-soft);
  color: var(--brand);
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    transform 0.2s ease;
}

.btn-ghost:hover {
  border-color: var(--brand);
  background: rgba(14, 156, 216, 0.12);
  transform: translateY(-1px);
}

.btn-outline-light {
  border: 2px solid rgba(255, 255, 255, 0.8);
  background: transparent;
  color: #fff;
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #fff;
  color: #fff;
}

.hero {
  padding: 5rem 0 4rem;
  background: linear-gradient(135deg, #0d2840 0%, #0f3d5c 40%, #0a1f2e 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}

/* Full-viewport hero with background image (Maman-style) */
.hero-full {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0;
  background: var(--hero-bg) center/cover no-repeat;
}

.hero-full::before {
  display: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(8, 28, 45, 0.92) 0%,
    rgba(8, 28, 45, 0.75) 45%,
    rgba(8, 28, 45, 0.4) 70%,
    transparent 100%
  );
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 6rem 0;
  max-width: 600px;
  margin-right: auto;
  animation: hero-fade-in 0.8s ease-out;
}

@keyframes hero-fade-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-full .eyebrow {
  animation: hero-fade-in 0.6s ease-out 0.15s both;
}

.hero-full h1 {
  animation: hero-fade-in 0.6s ease-out 0.25s both;
}

.hero-full .lead {
  animation: hero-fade-in 0.6s ease-out 0.35s both;
}

.hero-full .hero-cta {
  animation: hero-fade-in 0.6s ease-out 0.45s both;
}

.hero-full .scroll-cue {
  animation: hero-fade-in 0.6s ease-out 0.55s both;
}

.hero-full .eyebrow {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}

.hero-full h1 {
  font-family: "DM Serif Display", Georgia, serif;
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.hero-full .brand {
  color: #7ee0ff;
  text-shadow: 0 0 20px rgba(126, 224, 255, 0.3);
}

.hero-full .lead {
  font-size: 1.15rem;
  line-height: 1.7;
  margin-top: 1.25rem;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 3rem;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  transition: color 0.2s;
}

.scroll-cue:hover {
  color: #fff;
}

.scroll-cue::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid currentColor;
  animation: pulse-down 2s ease-in-out infinite;
}

@keyframes pulse-down {
  0%,
  100% {
    transform: translateY(0);
    opacity: 1;
  }
  50% {
    transform: translateY(4px);
    opacity: 0.7;
  }
}

.hero:not(.hero-full)::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 80% 50% at 70% 20%,
    rgba(14, 156, 216, 0.15) 0%,
    transparent 60%
  );
  pointer-events: none;
}

.hero h1 {
  max-width: 920px;
  margin-top: 0.9rem;
}

.eyebrow {
  display: inline-block;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 0.32rem 0.72rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.7rem;
  line-height: 1.2;
  color: var(--ink-strong);
}

h1 {
  font-family: "DM Serif Display", Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 400;
  letter-spacing: -0.02em;
}

h2 {
  font-family: "DM Serif Display", Georgia, serif;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 400;
  letter-spacing: -0.02em;
}

h3 {
  font-weight: 700;
}

.lead {
  color: #d8e7f2;
  max-width: 760px;
}

.section {
  padding: var(--section-padding) 0;
}

/* Scroll-reveal animation */
.reveal-ready {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.55s ease-out,
    transform 0.55s ease-out;
}

.reveal-ready.revealed {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal-ready {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .stat-card:hover {
    transform: none;
  }
  .card:hover {
    transform: none;
  }
  .btn-cta:hover {
    transform: none;
  }
  .gallery-cta .btn:hover {
    transform: none;
  }
}

.section-alt {
  background: #f7f7f7;
}

.eyebrow-text {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
  margin: 0 0 0.5rem;
}

.text-center {
  text-align: center;
}

.text-center .section-head {
  margin-bottom: 2.5rem;
}

/* Full-width split sections (Maman-style) */
.section-split {
  padding: 0;
}

.section-split .split-full {
  max-width: none;
}

.split-full {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: stretch;
  min-height: 0;
}

.split-img {
  overflow: hidden;
}

.split-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4/5;
}

.split-text {
  padding: 4rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.split-text .eyebrow-text {
  margin-bottom: 0.75rem;
}

.split-text h2 {
  font-family: "DM Serif Display", Georgia, serif;
  font-size: clamp(1.5rem, 2.5vw, 2.25rem);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--ink-strong);
  margin-top: 0;
  margin-bottom: 1rem;
}

.split-text h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.split-text p {
  margin-bottom: 1rem;
}

.split-text .strong {
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.split-reverse {
  direction: rtl;
}

.split-reverse > * {
  direction: ltr;
}

/* Stats section - Numbers that speak volumes */
.section-stats {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: var(--section-padding) 0;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .section-alt {
    background: #141d28;
  }
}

.stats-head {
  text-align: center;
  margin-bottom: 2.5rem;
}

.eyebrow-with-line {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.eyebrow-with-line::after {
  content: "";
  display: inline-block;
  width: 48px;
  height: 3px;
  background: var(--brand);
  border-radius: 2px;
}

.stats-title {
  font-family: "DM Serif Display", Georgia, serif;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 400;
  color: var(--ink-strong);
  margin: 0 0 1rem;
  line-height: 1.25;
}

.stats-title-accent {
  color: var(--brand);
}

.section-stats .section-intro {
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto;
  font-size: 1.02rem;
  line-height: 1.6;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 720px;
  margin: 0 auto 2.5rem;
}

.stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 130px;
  padding: 2rem 1rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 16px;
  text-align: center;
  transition:
    box-shadow 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease,
    background 0.25s ease;
}

.stat-card:hover {
  box-shadow: var(--shadow);
  border-color: var(--brand);
  background: var(--surface);
  transform: translateY(-3px);
}

.stat-value {
  display: block;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--brand);
  margin-bottom: 0.5rem;
}

.stat-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink-strong);
  margin: 0;
}

.stats-visual {
  border-radius: 16px;
  overflow: hidden;
  max-width: 900px;
  margin: 0 auto;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.stats-visual img {
  width: 100%;
  height: auto;
  aspect-ratio: 16/10;
  object-fit: cover;
  display: block;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--brand);
  margin-top: 0.5rem;
  transition:
    gap 0.2s,
    color 0.2s;
}

.link-arrow:hover {
  gap: 0.75rem;
  color: var(--brand-dark);
}

.link-arrow::after {
  content: "→";
}

/* Find space – redesigned section */
.section-find-space-head {
  margin-bottom: 2.5rem;
}

.find-space-intro {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 480px;
  margin: 0.5rem auto 0;
  line-height: 1.55;
}

.section-head.text-center .find-space-intro {
  margin-left: auto;
  margin-right: auto;
}

/* Single card containing form + value */
.find-space-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--surface);
  border-radius: 20px;
  box-shadow:
    0 8px 40px rgba(16, 42, 67, 0.08),
    0 2px 12px rgba(0, 0, 0, 0.04);
  border: 1px solid var(--line);
  overflow: hidden;
  align-items: stretch;
}

.find-space-form-wrap {
  position: relative;
  padding: 2.5rem 2.25rem;
}

.find-space-form-wrap::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--brand) 0%, var(--brand-dark) 100%);
  border-radius: 4px 0 0 4px;
}

.find-form {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  max-width: 100%;
}

.find-form label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
  letter-spacing: 0.02em;
  display: block;
  margin-bottom: -0.35rem;
}

.find-form input {
  width: 100%;
  border: 1px solid var(--input-border);
  border-radius: 10px;
  padding: 0.9rem 1rem;
  font: inherit;
  font-size: 1rem;
  background: var(--bg);
  color: var(--text);
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

.find-form input::placeholder {
  color: var(--muted);
}

.find-form input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(14, 156, 216, 0.12);
  outline: 0;
}

.find-form .find-space-submit {
  width: 100%;
  margin-top: 0.5rem;
  padding: 1rem 1.25rem;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.find-form .find-space-submit .btn-arrow {
  font-size: 1.15em;
  opacity: 0.9;
  transition: transform 0.2s ease;
}

.find-form .find-space-submit:hover .btn-arrow {
  transform: translateX(3px);
}

.find-value {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2.5rem 2.25rem;
  background: linear-gradient(
    135deg,
    rgba(14, 156, 216, 0.04) 0%,
    rgba(14, 156, 216, 0.08) 100%
  );
  border-left: 1px solid var(--line);
}

.find-value-title {
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--ink-strong);
  margin: 0 0 1rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.find-value-text {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
  margin: 0 0 1.5rem;
}

.find-value-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

.find-value-list li {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--brand);
  position: relative;
  padding-left: 1.25rem;
}

.find-value-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 6px;
  height: 6px;
  background: var(--brand);
  border-radius: 50%;
}

.find-value .strong {
  font-weight: 700;
  margin-bottom: 0.5rem;
}

/* Gallery CTA below carousel */
.gallery-cta {
  text-align: center;
  margin: 2rem 0 0;
}

.gallery-cta .btn {
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.gallery-cta .btn:hover {
  transform: translateY(-2px);
}

.gallery-slide {
  aspect-ratio: 21/9;
}

.gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.section-head {
  margin-bottom: 2.5rem;
}

.section-head.text-center {
  text-align: center;
}

.section-head.text-center h1,
.section-head.text-center h2 {
  margin-left: auto;
  margin-right: auto;
}

.section-head .eyebrow-text {
  margin-bottom: 0.5rem;
}

.section-head h1,
.section-head h2 {
  font-family: "DM Serif Display", Georgia, serif;
  font-size: clamp(1.5rem, 2.5vw, 2.25rem);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--ink-strong);
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.section-head h1 + p,
.section-head h2 + p {
  margin-top: 0;
}

.section-head p {
  color: var(--muted);
  max-width: 640px;
  font-size: 1.03rem;
  line-height: 1.55;
}

.section-head.text-center p {
  margin-left: auto;
  margin-right: auto;
}

.section p {
  margin-top: 0;
}

.grid-2 {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: 1.05fr 0.95fr;
}

.grid-3 {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--line-strong);
}

.service-card {
  padding: 2rem;
}

/* Services grid (homepage – replaces carousel) */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 0;
}

.services-grid .service-card {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.5s ease-out,
    transform 0.5s ease-out,
    box-shadow 0.25s ease,
    border-color 0.2s ease;
  transition-delay: 0s;
}

.section.revealed .services-grid .service-card {
  opacity: 1;
  transform: translateY(0);
}

.section.revealed .services-grid .service-card:nth-child(1) {
  transition-delay: 0.05s;
}
.section.revealed .services-grid .service-card:nth-child(2) {
  transition-delay: 0.15s;
}
.section.revealed .services-grid .service-card:nth-child(3) {
  transition-delay: 0.25s;
}
.section.revealed .services-grid .service-card:nth-child(4) {
  transition-delay: 0.35s;
}

@media (prefers-reduced-motion: reduce) {
  .services-grid .service-card {
    opacity: 1;
    transform: none;
    transition-delay: 0s;
  }
  .section.revealed .services-grid .service-card:nth-child(n) {
    transition-delay: 0s;
  }
}

.service-card .thumb {
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 1.25rem;
}

.service-card .thumb img {
  transition: transform 0.4s ease;
}

.service-card:hover .thumb img {
  transform: scale(1.05);
}

.service-card .thumb img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.service-card p,
.muted {
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: stretch;
}

.contact-split {
  gap: 2.5rem;
  align-items: start;
}

.contact-split .card {
  padding: 1.75rem;
}

.form-grid {
  display: grid;
  gap: 1rem;
}

.form-grid label {
  font-weight: 600;
  font-size: 0.94rem;
}

.form-grid input,
.form-grid textarea {
  width: 100%;
  border: 1px solid var(--input-border);
  border-radius: 12px;
  padding: 0.74rem 0.86rem;
  font: inherit;
  background: var(--input-bg);
  color: var(--text);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.form-grid input:focus,
.form-grid textarea:focus {
  border-color: #89cce8;
  box-shadow: 0 0 0 3px rgba(14, 156, 216, 0.14);
  outline: 0;
}

.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
}

.footer-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1.1fr 1fr 1fr 1.2fr;
  padding: 2.4rem 0 1.6rem;
}

.footer-grid h4 {
  margin-bottom: 0.6rem;
  color: #ffffff;
  letter-spacing: 0.01em;
}

.footer-grid a,
.footer-grid p {
  color: var(--footer-text);
  display: block;
  margin: 0.3rem 0;
  transition: color 0.2s ease;
}

.footer-grid a:hover {
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid var(--footer-border);
  padding: 1rem 0 1.4rem;
  color: #a9b8c6;
  font-size: 0.94rem;
}

/* Carousel */
.carousel {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: var(--surface);
}

.carousel [data-carousel-track] {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.carousel [data-carousel-slide] {
  flex: 0 0 100%;
  min-width: 0;
}

.carousel-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.carousel-nav button {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  transition:
    background 0.2s,
    border-color 0.2s,
    transform 0.2s ease;
}

.carousel-nav button:hover {
  background: var(--brand-soft);
  border-color: var(--brand);
  color: var(--brand);
  transform: scale(1.05);
}

.carousel-nav button svg {
  width: 20px;
  height: 20px;
}

[data-carousel-dots] {
  display: flex;
  gap: 0.5rem;
  margin: 0 1rem;
}

[data-carousel-dots] button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: var(--line);
  cursor: pointer;
  padding: 0;
  transition:
    background 0.2s,
    transform 0.2s;
}

[data-carousel-dots] button[aria-pressed="true"] {
  background: var(--brand);
  transform: scale(1.25);
}

.hero-cta {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.section-cta {
  position: relative;
  color: #fff;
  padding: 0;
  overflow: hidden;
  max-height: 200px;
  display: flex;
  align-items: center;
}

.cta-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0a7ba8 0%, #0e9cd8 40%, #0c85b8 100%);
  z-index: 0;
}

.cta-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 80% 60% at 20% 50%,
    rgba(255, 255, 255, 0.12) 0%,
    transparent 55%
  );
  pointer-events: none;
}

.cta-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.04) 100%);
  pointer-events: none;
}

.section-cta .container {
  width: min(1280px, calc(100% - 3rem));
  margin-inline: auto;
  padding-inline: 0;
}

.section-cta .split-cta {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
  position: relative;
  z-index: 1;
  padding: 2.25rem 0;
  min-height: 200px;
  box-sizing: border-box;
}

.section-cta .cta-content h2 {
  font-family: "DM Serif Display", Georgia, serif;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 400;
  color: #fff;
  margin: 0 0 0.35rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.section-cta .cta-sub {
  font-size: 0.95rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.92);
  margin: 0;
  max-width: 480px;
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #fff;
  color: #0e9cd8;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.65rem 1.35rem;
  border-radius: 10px;
  border: none;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    gap 0.2s ease;
  white-space: nowrap;
}

.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
  gap: 0.9rem;
}

.btn-cta .btn-arrow {
  font-size: 1.2em;
  transition: transform 0.25s ease;
}

.btn-cta:hover .btn-arrow {
  transform: translateX(4px);
}

.btn-cta:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.9);
  outline-offset: 3px;
}

.pms-block {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 0;
  margin-top: 3rem;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.section-block-spacer {
  margin-top: 2.5rem;
}

.pms-block .split-img img {
  aspect-ratio: 4/3;
}

.pms-block .split-img {
  border-radius: 0;
}

.testimonial-slide {
  text-align: center;
  padding: 3rem 2rem;
}

.testimonial-slide .avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1.5rem;
}

.testimonial-slide blockquote {
  font-family: "DM Serif Display", Georgia, serif;
  font-style: italic;
  font-size: 1.35rem;
  line-height: 1.6;
  color: var(--ink-strong);
  margin: 0 0 1.5rem;
}

.testimonial-slide .name {
  font-weight: 700;
  color: var(--ink-strong);
}

.testimonial-slide .role {
  font-size: 0.9rem;
  color: var(--muted);
}

/* Reviews section – single background, minimal card */
.section-reviews {
  background: var(--bg);
}

.carousel-reviews {
  background: transparent;
  box-shadow: none;
  border-radius: 0;
}

.section-reviews .testimonial-slide {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  padding: 2.5rem 2rem;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.section-reviews .testimonial-slide:hover {
  border-color: var(--line-strong);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.section-reviews .carousel-nav {
  margin-top: 1.5rem;
}

.section-reviews .carousel-nav button {
  border-color: var(--line);
  background: var(--surface);
}

.section-reviews .carousel-nav button:hover {
  background: var(--brand-soft);
  border-color: var(--brand);
  color: var(--brand);
}

/* Thank-you / simple page content */
.page-content-narrow {
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.page-content-narrow .btn {
  margin-top: 0.5rem;
}

.thank-you-logo {
  width: 176px;
  height: 67px;
  margin: 0 auto 1.5rem;
  filter: invert(var(--logo-invert));
  display: block;
}

/* Gallery page carousel and grid */
.gallery-carousel-slide img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 16px;
}

.gallery-grid .card {
  padding: 0;
  overflow: hidden;
}

.gallery-grid .card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 12px;
}

/* Gallery – Alliance Business Centers Network (office images) */
.gallery-office-section .section-head {
  margin-bottom: 2.5rem;
}

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

.gallery-office-grid .card {
  padding: 0;
  overflow: hidden;
}

.gallery-office-grid .card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 12px;
}

@media (max-width: 980px) {
  .section {
    padding: var(--section-padding-sm) 0;
  }

  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-office-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .grid-3,
  .split,
  .grid-2,
  .footer-grid,
  .split-full,
  .section-cta {
    max-height: none;
    padding: 0;
  }

  /* Stack 2-column layouts on mobile */
  .split-full,
  .pms-block {
    grid-template-columns: 1fr;
  }
  .split,
  .contact-split,
  .grid-2 {
    grid-template-columns: 1fr;
  }
  .grid-3 {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .section-cta .split-cta {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    text-align: center;
    min-height: 0;
    padding: 1.75rem 0;
  }

  .find-space-card {
    grid-template-columns: 1fr;
  }

  .find-value {
    border-left: none;
    border-top: 1px solid var(--line);
  }

  .find-space-form-wrap::before {
    width: 100%;
    height: 4px;
    top: 0;
    left: 0;
    right: 0;
    border-radius: 0;
  }

  .section-cta .cta-content h2 {
    font-size: clamp(1.35rem, 4vw, 1.75rem);
  }

  .section-cta .cta-sub {
    max-width: none;
    font-size: 0.9rem;
  }

  .btn-cta {
    justify-content: center;
  }

  .split-reverse {
    direction: ltr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .split-text {
    padding: 2.5rem 1.5rem;
    order: 1;
  }

  .split-img {
    order: 0;
  }

  .split-img img {
    aspect-ratio: 16/10;
  }

  /* Mobile: right-side drawer */

  .menu-btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 0.5rem;
    z-index: 52;
    position: relative;
    transition: opacity 0.2s;
  }
  .menu-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--header-text);
    margin: 4px 0;
    transition:
      transform 0.25s ease,
      opacity 0.2s ease;
    transform-origin: center;
  }
  .menu-btn[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }
  .menu-btn[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }
  .menu-btn[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-13px) rotate(-45deg);
  }
  body.menu-open .site-header {
    z-index: 51;
  }
  .nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 48;
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  .nav-overlay.is-open {
    display: block;
    opacity: 1;
  }
  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(320px, 85vw);
    height: 100vh;
    height: 100dvh;
    background: var(--surface);
    border-left: 1px solid var(--line);
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.12);
    padding: 2rem 1.5rem 2rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    z-index: 50;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
  }
  .nav.open {
    right: 0;
  }
  .nav a {
    padding: 0.75rem 1rem;
    border-radius: 10px;
    font-size: 1rem;
  }
  .nav .nav-cta {
    margin-top: 1rem;
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .container,
  .container-wide,
  .section-cta .container {
    width: min(100%, calc(100% - 2rem));
    margin-inline: auto;
  }

  h1 {
    font-size: clamp(1.7rem, 7vw, 2.2rem);
  }

  h2 {
    font-size: clamp(1.2rem, 5vw, 1.6rem);
  }

  .hero-full {
    min-height: 90vh;
  }

  .hero-content {
    padding: 4rem 0 3rem;
  }

  .grid-4,
  .stats-grid,
  .gallery-office-grid,
  .services-grid {
    grid-template-columns: 1fr;
    max-width: none;
  }

  .btn {
    width: 100%;
  }

  .card {
    border-radius: 14px;
    padding: 1rem;
  }

  .find-space-form-wrap,
  .find-value {
    padding: 1.5rem 1.25rem;
  }

  .split-text {
    padding: 2rem 1rem;
  }

  .section-cta .split-cta {
    padding: 1.5rem 0;
    gap: 1rem;
  }

  .hero-cta {
    flex-direction: column;
  }

  .hero-cta .btn {
    width: 100%;
  }
}
