/* ============================================
   Μαρία Κ. Δημητριάδου — Ψυχολόγος
   Premium 2026 Design — Editorial Warmth
   ============================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Brand Colors */
  --brown:      #584738;
  --tan:        #8C7558;
  --taupe:      #938166;
  --beige:      #CEC1A8;
  --cream:      #F1E9DA;
  --white:      #FDFBF7;
  --text:       #3a2e24;
  --text-light: #7a6d62;
  --accent:     #A68B6B;

  /* Spacing */
  --section-pad: clamp(4rem, 8vw, 8rem);
  --padding:     clamp(1.5rem, 5vw, 3rem);
  --max-width:   1200px;
  --radius:      16px;
  --radius-sm:   10px;
}

/* Typography — Self-hosted (GDPR compliant, no external requests) */
@font-face {
  font-family: 'DM Serif Display';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/dm-serif-display-v17-latin-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Serif Display';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/dm-serif-display-v17-latin-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/plus-jakarta-sans-v12-latin_latin-ext-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/plus-jakarta-sans-v12-latin_latin-ext-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/plus-jakarta-sans-v12-latin_latin-ext-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/plus-jakarta-sans-v12-latin_latin-ext-700.woff2') format('woff2');
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'DM Serif Display', 'Georgia', serif;
  font-weight: 400;
  line-height: 1.15;
  color: var(--brown);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }

a {
  color: var(--taupe);
  text-decoration: none;
  transition: color 0.3s ease;
}
a:hover { color: var(--brown); }

/* Focus-visible — keyboard-only focus rings */
:focus-visible {
  outline: 2px solid var(--tan);
  outline-offset: 3px;
  border-radius: 4px;
}
.btn-primary:focus-visible,
.btn-secondary:focus-visible,
.btn-submit:focus-visible {
  outline: 2px solid var(--brown);
  outline-offset: 3px;
}
.form-input:focus-visible,
.form-select:focus-visible,
.form-textarea:focus-visible {
  outline: none;
  border-color: var(--tan);
  box-shadow: 0 0 0 4px rgba(181, 158, 125, 0.15);
}
.menu-toggle:focus-visible {
  outline: 2px solid var(--tan);
  outline-offset: 2px;
  border-radius: 6px;
}

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--padding);
}

/* ─── Breathing Pre-loader ─── */
.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.9s cubic-bezier(0.85, 0, 0.15, 1);
}
.loader.done {
  transform: translateY(-100%);
  pointer-events: none;
}

/* Ornament ring — slow spin */
.loader-ornament {
  position: absolute;
  width: clamp(280px, 50vw, 400px);
  height: clamp(280px, 50vw, 400px);
  animation: loaderSpin 12s linear infinite;
}
.loader-ring {
  width: 100%;
  height: 100%;
}

@keyframes loaderSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Words */
.loader-words {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.8rem;
  position: relative;
  z-index: 1;
}
.loader-words span {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.1rem, 2.5vw, 1.6rem);
  font-style: italic;
  color: var(--brown);
  opacity: 0;
  filter: blur(8px);
  animation: breathIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.loader-dot {
  font-style: normal !important;
  font-size: 0.9rem !important;
  color: var(--tan) !important;
}
.loader-words span:nth-child(1) { animation-delay: 0.3s; }
.loader-words span:nth-child(2) { animation-delay: 0.6s; }
.loader-words span:nth-child(3) { animation-delay: 0.8s; }
.loader-words span:nth-child(4) { animation-delay: 1.1s; }
.loader-words span:nth-child(5) { animation-delay: 1.3s; }

@keyframes breathIn {
  0% {
    opacity: 0;
    filter: blur(8px);
    transform: translateY(8px) scale(0.95);
  }
  60% {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 0.7;
    filter: blur(0);
    transform: translateY(0) scale(1);
  }
}

/* ─── Scroll Reveal — Two modes ─── */
/* Default: slide-up + fade */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Headings get a slightly different reveal — rise from below with clip */
.reveal h1,
.reveal h2 {
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1s cubic-bezier(0.16, 1, 0.3, 1) 0.15s;
}
.reveal.visible h1,
.reveal.visible h2 {
  clip-path: inset(0 0 0 0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Parallax images need overflow hidden + scale */
.hero-image,
.intro-image {
  overflow: hidden;
}
.hero-image img,
.intro-image img {
  transition: transform 0.1s linear;
}

/* ─── Global Grain & Cursor ─── */
.noise-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

.cursor-dot,
.cursor-outline {
  position: fixed;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 10001;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.cursor-dot {
  width: 6px;
  height: 6px;
  background-color: var(--brown);
  border-radius: 50%;
}
.cursor-outline {
  width: 30px;
  height: 30px;
  border: 1px solid var(--tan);
  border-radius: 50%;
  transition: all 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}
@media (max-width: 1024px) {
  .cursor-dot, .cursor-outline { display: none; }
}

/* Hover state for links */
body.cursor-hover .cursor-outline {
  width: 50px;
  height: 50px;
  background-color: rgba(181, 158, 125, 0.1);
  border-color: var(--tan);
}

/* ─── Roadmap — The First Session ─── */
.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 4rem;
  position: relative;
}
.roadmap-grid::after {
  content: '';
  position: absolute;
  top: 2.5rem;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--beige);
  z-index: -1;
}
.roadmap-item {
  text-align: center;
}
.roadmap-step {
  width: 80px;
  height: 80px;
  background: var(--white);
  border: 1.5px solid var(--tan);
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'DM Serif Display', serif;
  font-size: 1.5rem;
  color: var(--brown);
  position: relative;
  z-index: 1;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.roadmap-item:hover .roadmap-step {
  background: var(--tan);
  color: var(--white);
  transform: scale(1.1);
}
.roadmap-item h4 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}
.roadmap-item p {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* ─── Self-Check Section ─── */
.self-check-container {
  background: var(--white);
  border: 1px solid var(--beige);
  border-radius: var(--radius);
  padding: 3rem;
  text-align: center;
  max-width: 600px;
  margin: 4rem auto 0;
}
.self-check-question {
  margin-bottom: 2rem;
}
.self-check-options {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.btn-check {
  background: var(--cream);
  border: 1.5px solid var(--beige);
  padding: 1rem;
  border-radius: 50px;
  font-size: 0.9rem;
  color: var(--brown);
  cursor: pointer;
  transition: all 0.3s ease;
}
.btn-check:hover {
  background: var(--tan);
  color: var(--white);
  border-color: var(--tan);
}
.self-check-result {
  display: none;
  animation: fadeIn 0.6s ease forwards;
}

/* ─── Bento Blog Library ─── */
.bento-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: repeat(2, 220px);
  gap: 1.5rem;
}
.bento-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  border: 1px solid rgba(206, 193, 168, 0.3);
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.bento-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(88, 71, 56, 0.1);
}
.bento-main {
  grid-row: span 2;
}
.bento-image {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.bento-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.bento-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem;
  background: linear-gradient(0deg, rgba(88, 71, 56, 0.8) 0%, transparent 100%);
  color: var(--white);
  z-index: 1;
}
.bento-content h3 { color: #fff; margin-bottom: 0.5rem; }
.bento-mini {
  background: var(--cream);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.bento-mini h3 { font-size: 1.1rem; }
.bento-audio {
  background: var(--tan);
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 1rem;
}
.bento-audio-icon {
  width: 44px;
  height: 44px;
  background: rgba(253, 251, 247, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.8rem;
}

@media (max-width: 900px) {
  .bento-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .roadmap-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .roadmap-grid::after {
    left: 40px;
    right: auto;
    width: 1px;
    height: 100%;
    top: 0;
  }
  .roadmap-item {
    display: flex;
    align-items: flex-start;
    text-align: left;
    gap: 1.5rem;
  }
  .roadmap-step { margin: 0; flex-shrink: 0; }
}

/* ─── Pre-loader ─── */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(253, 251, 247, 0);
  backdrop-filter: blur(0px);
  padding: 1.5rem var(--padding);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.4s ease;
}
.header.scrolled {
  background: rgba(253, 251, 247, 0.95);
  backdrop-filter: blur(12px);
  padding: 1rem var(--padding);
  box-shadow: 0 1px 0 rgba(206, 193, 168, 0.3);
}

.logo {
  font-family: 'DM Serif Display', serif;
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--brown);
  letter-spacing: 0.01em;
}
.logo:hover { color: var(--brown); opacity: 0.7; }

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

.nav a {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-light);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
}
.nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--tan);
  transition: width 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.nav a:hover::after,
.nav a[aria-current]::after {
  width: 100%;
}
.nav a[aria-current] { color: var(--brown); }

/* Language Switcher */
.lang-switcher {
  display: none;
}
.lang-switcher-desktop {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-left: 0.5rem;
}
.lang-link {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--taupe) !important;
  padding: 0.3rem 0.4rem;
  border-radius: 4px;
  transition: all 0.2s ease;
  text-decoration: none;
}
.lang-link:hover {
  color: var(--brown) !important;
}
.lang-link.active {
  color: var(--brown) !important;
  background: var(--cream);
}
.lang-link::after {
  display: none !important;
}
.lang-switcher-desktop .lang-link + .lang-link::before {
  content: '|';
  margin-right: 0.3rem;
  color: var(--beige);
  font-weight: 300;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--brown);
  color: var(--cream) !important;
  padding: 0 1.8rem;
  height: 44px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: all 0.3s ease;
  border: 2px solid var(--brown);
  line-height: 1;
}
.btn-primary:hover {
  background: transparent;
  color: var(--brown) !important;
  transform: translateY(-1px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--brown) !important;
  padding: 0 1.8rem;
  height: 44px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: all 0.3s ease;
  border: 2px solid var(--beige);
  line-height: 1;
}
.btn-secondary:hover {
  border-color: var(--brown);
  transform: translateY(-1px);
}

/* Nav CTA — refined version for header context */
.nav .btn-primary {
  background: transparent;
  color: var(--brown) !important;
  border: 1.5px solid var(--tan);
  height: 40px;
  padding: 0 1.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}
.nav .btn-primary:hover {
  background: var(--brown);
  color: var(--cream) !important;
  border-color: var(--brown);
  transform: none;
}
.nav .btn-primary::after {
  display: none !important;
}

/* Scrolled header — CTA becomes solid for contrast */
.header.scrolled .nav .btn-primary {
  background: var(--brown);
  color: var(--cream) !important;
  border-color: var(--brown);
}
.header.scrolled .nav .btn-primary:hover {
  background: transparent;
  color: var(--brown) !important;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.75rem;
  color: var(--brown);
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 300;
  -webkit-tap-highlight-color: transparent;
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--brown);
  transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  border-radius: 2px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.menu-toggle span:nth-child(1) { top: 14px; }
.menu-toggle span:nth-child(2) { top: 21px; }
.menu-toggle span:nth-child(3) { top: 28px; }

/* Hamburger → X morphing */
.menu-toggle.active span:nth-child(1) {
  top: 21px;
  transform: translateX(-50%) rotate(45deg);
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: translateX(-50%) scaleX(0);
}
.menu-toggle.active span:nth-child(3) {
  top: 21px;
  transform: translateX(-50%) rotate(-45deg);
}

/* Body scroll lock when menu is open */
body.menu-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
}

/* ─── Hero ─── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 0 var(--padding);
  position: relative;
  overflow-x: hidden;
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-content {
  padding: 2rem 0;
  position: relative;
}

.hero-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--tan);
  margin-bottom: 1.5rem;
  position: relative;
  padding-left: 3rem;
}
.hero-label::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 2rem;
  height: 1.5px;
  background: var(--tan);
}

.hero h1 {
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 2.5rem;
  max-width: 460px;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: visible;
  z-index: 1;
}

.hero-image {
  width: 100%;
  aspect-ratio: 3/4;
  background: linear-gradient(145deg, var(--cream) 0%, var(--beige) 100%);
  border-radius: 200px 200px var(--radius) var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--taupe);
  font-size: 0.9rem;
  overflow: visible;
  position: relative;
}
.hero-image img {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 103%;
  object-fit: cover;
  object-position: center top;
  z-index: 1;
  border-radius: 180px 180px var(--radius) var(--radius);
  filter: drop-shadow(0 -8px 25px rgba(88, 71, 56, 0.1));
}

.hero-float-card {
  position: absolute;
  bottom: 3rem;
  left: -2rem;
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
  box-shadow: 0 20px 60px rgba(88, 71, 56, 0.12);
  min-width: 220px;
}
.hero-float-card .number {
  font-family: 'DM Serif Display', serif;
  font-size: 2rem;
  color: var(--brown);
  line-height: 1;
}
.hero-float-card .label {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 0.3rem;
}

.hero-blob {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: var(--cream);
  opacity: 0.5;
  z-index: -1;
  top: -100px;
  right: -100px;
  filter: blur(80px);
}

/* ─── Hero Decorative Elements ─── */

/* Thin vertical line — left accent */
.hero::before {
  content: '';
  position: absolute;
  left: calc(var(--padding) - 1rem);
  top: 25%;
  height: 30%;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--beige), transparent);
  opacity: 0.6;
}

/* Corner accent — top-left subtle bracket */
.hero::after {
  content: '';
  position: absolute;
  top: 6rem;
  left: var(--padding);
  width: 30px;
  height: 30px;
  border-top: 1px solid var(--beige);
  border-left: 1px solid var(--beige);
  opacity: 0.5;
}

/* Floating dot pattern near the image */
.hero-visual::before {
  content: '';
  position: absolute;
  bottom: -1rem;
  right: -1rem;
  width: 80px;
  height: 80px;
  background-image: radial-gradient(var(--beige) 1.5px, transparent 1.5px);
  background-size: 12px 12px;
  opacity: 0.5;
  z-index: 0;
}

/* Thin horizontal rule under hero label */
.hero-label::after {
  content: '';
  position: absolute;
  bottom: -0.6rem;
  left: 0;
  width: 60px;
  height: 1px;
  background: var(--beige);
}

/* Small circle accent — decorative */
.hero-content::after {
  content: '';
  position: absolute;
  bottom: 2rem;
  left: -0.5rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid var(--tan);
  opacity: 0.4;
}

/* ─── Section Layout ─── */
.section {
  padding: var(--section-pad) var(--padding);
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-full {
  padding: var(--section-pad) var(--padding);
}

.section-full .section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-cream { background: var(--cream); }
.section-white { background: var(--white); }

.section-header {
  margin-bottom: 3.5rem;
}

.section-number {
  font-family: 'DM Serif Display', serif;
  font-size: 0.85rem;
  color: var(--tan);
  letter-spacing: 0.05em;
  margin-bottom: 0.8rem;
  display: block;
}

.section-header h2 {
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.05rem;
  color: var(--text-light);
  max-width: 540px;
  line-height: 1.8;
}

.section-header-center {
  text-align: center;
}
.section-header-center p {
  margin: 0 auto;
}

/* ─── Divider ─── */
.section-divider {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--padding);
}
.section-divider hr {
  border: none;
  height: 1px;
  background: var(--beige);
}

/* ─── Services — Editorial Staggered Layout ─── */
.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}
/* Stagger: editorial rhythm */
.services-grid .service-card:nth-child(2) {
  margin-top: 4rem;
}
.services-grid .service-card:nth-child(3) {
  margin-top: -2rem;
}

.service-card {
  background: var(--white);
  border: 1px solid rgba(206, 193, 168, 0.3);
  border-radius: var(--radius);
  padding: 2.5rem;
  transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--tan), var(--beige));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.service-card:hover::before {
  transform: scaleX(1);
}
.service-card:hover {
  border-color: transparent;
  box-shadow: 0 25px 60px rgba(88, 71, 56, 0.1);
}

/* Floating editorial number */
.service-card-number {
  position: absolute;
  top: 1.5rem;
  right: 1.8rem;
  font-family: 'DM Serif Display', serif;
  font-size: 3.5rem;
  color: var(--cream);
  line-height: 1;
  pointer-events: none;
  transition: color 0.4s ease;
}
.service-card:hover .service-card-number {
  color: var(--beige);
}

.service-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.service-card:hover .service-card-icon {
  transform: scale(1.08);
}

.service-card h3 {
  margin-bottom: 0.8rem;
  position: relative;
  z-index: 1;
}

/* Card body with expandable content */
.service-card-body {
  position: relative;
}

.service-card-text {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 0;
}

.service-card-expand {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.6s cubic-bezier(0.22, 1, 0.36, 1),
              opacity 0.4s ease 0.1s;
}
.service-card.expanded .service-card-expand {
  max-height: 500px;
  opacity: 1;
}
.service-card.expanded .service-card-text {
  display: none;
}

.service-card-full {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

/* Expand button — the + icon */
.service-expand-btn {
  position: absolute;
  bottom: 1.5rem;
  right: 1.8rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--beige);
  background: var(--white);
  color: var(--taupe);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 2;
}
.service-expand-btn:hover {
  border-color: var(--tan);
  color: var(--brown);
  background: var(--cream);
}
.service-expand-btn svg {
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.service-card.expanded .service-expand-btn svg {
  transform: rotate(45deg);
}

.service-meta {
  display: flex;
  gap: 1.5rem;
  font-size: 0.85rem;
  color: var(--taupe);
  padding-top: 1.2rem;
  border-top: 1px solid var(--cream);
  margin-bottom: 1rem;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.service-tags span,
.tag {
  font-size: 0.72rem;
  font-weight: 500;
  background: var(--cream);
  color: var(--taupe);
  padding: 0.25rem 0.7rem;
  border-radius: 50px;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.2rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--tan);
  transition: all 0.3s ease;
}
.service-link:hover {
  color: var(--brown);
  gap: 0.7rem;
}

.parent-note {
  background: var(--cream);
  border-left: 3px solid var(--tan);
  padding: 1rem 1.2rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-top: 1.2rem;
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* ─── Intro / Philosophy ─── */
.intro-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.intro-block-text h2 {
  margin-bottom: 1.5rem;
}

.intro-block-text p {
  font-size: 1.05rem;
  color: var(--text-light);
  line-height: 1.85;
  margin-bottom: 1rem;
}

.intro-block-visual {
  position: relative;
}

.intro-image {
  width: 100%;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--cream) 0%, var(--beige) 100%);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--taupe);
}

.quote-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 2.5rem;
  box-shadow: 0 20px 60px rgba(88, 71, 56, 0.08);
  position: absolute;
  bottom: -2rem;
  right: -2rem;
  max-width: 300px;
}
.quote-card p {
  font-family: 'DM Serif Display', serif;
  font-style: italic;
  font-size: 1rem;
  color: var(--brown);
  line-height: 1.6;
}
.quote-card .author {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-style: normal;
  font-size: 0.78rem;
  color: var(--taupe);
  margin-top: 0.8rem;
  display: block;
}

/* ─── Team — Horizontal card layout ─── */
/* Team — Zigzag Layout */
.team-zigzag {
  display: flex;
  flex-direction: column;
  gap: 0;
}

a.team-row {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 3rem;
  align-items: center;
  text-decoration: none;
  color: inherit;
  padding: 2.5rem 2rem;
  border-bottom: 1px solid rgba(206, 193, 168, 0.2);
  transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  overflow: hidden;
}
a.team-row:last-child {
  border-bottom: none;
}
a.team-row:hover {
  background: transparent;
}

/* Reverse: photo goes right */
a.team-row-reverse {
  direction: rtl;
}
a.team-row-reverse > * {
  direction: ltr;
}

/* Photo side */
.team-row-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 3/4;
  border-radius: 140px 140px 16px 16px;
  overflow: hidden;
  background: linear-gradient(145deg, var(--cream), var(--beige));
  box-shadow: 0 16px 40px rgba(88, 71, 56, 0.1);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  max-width: 260px;
}
a.team-row:hover .team-row-photo {
  transform: scale(1.02);
}
.team-row-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.team-row-initial {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 5rem;
  font-family: 'DM Serif Display', serif;
  color: var(--taupe);
}

/* Content side */
.team-row-content {
  padding: 1rem 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.team-row-content .team-profile-link {
  align-self: flex-end;
  margin-top: 1rem;
}
.team-row-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--tan);
  margin-bottom: 0.6rem;
}
.team-row-content h3 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.3rem, 2.2vw, 1.6rem);
  color: var(--text);
  margin-bottom: 0.8rem;
  line-height: 1.25;
}
.team-row-content p {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 1rem;
}

/* Reveal animation — slide from photo side */
a.team-row.reveal:not(.visible) .team-row-photo {
  opacity: 0;
  transform: translateX(-40px);
}
a.team-row.reveal:not(.visible) .team-row-content {
  opacity: 0;
  transform: translateX(40px);
}
a.team-row-reverse.reveal:not(.visible) .team-row-photo {
  transform: translateX(40px);
}
a.team-row-reverse.reveal:not(.visible) .team-row-content {
  transform: translateX(-40px);
}
a.team-row.reveal.visible .team-row-photo,
a.team-row.reveal.visible .team-row-content {
  opacity: 1;
  transform: translateX(0);
  transition: all 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
a.team-row.reveal.visible .team-row-content {
  transition-delay: 0.15s;
}

.team-profile-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--white);
  background: var(--brown);
  padding: 0.7rem 1.6rem;
  border-radius: 50px;
  margin-top: 0.5rem;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.team-profile-link::after {
  content: '→';
  display: inline-block;
  animation: arrow-bounce 1.2s ease-in-out infinite;
}
@keyframes arrow-bounce {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(5px); }
}
a.team-row:hover .team-profile-link {
  background: var(--tan);
  transform: translateX(3px);
}

.team-member p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.7;
}

.member-specializations {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 1rem;
}
.member-specializations span {
  font-size: 0.72rem;
  font-weight: 500;
  background: rgba(206, 193, 168, 0.3);
  color: var(--taupe);
  padding: 0.25rem 0.7rem;
  border-radius: 50px;
}

/* ─── Blog ─── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

/* See more arrow link */
.blog-see-more {
  text-align: center;
  margin-top: 3rem;
}
.see-more-link {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--tan) !important;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: all 0.3s ease;
  padding: 0.8rem 0;
  border-bottom: 1.5px solid transparent;
}
.see-more-link:hover {
  color: var(--brown) !important;
  border-bottom-color: var(--tan);
  gap: 1.2rem;
}
.see-more-link svg {
  transition: transform 0.3s ease;
}
.see-more-link:hover svg {
  transform: translateX(4px);
}

.blog-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  border: 1px solid rgba(206, 193, 168, 0.3);
}
.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(88, 71, 56, 0.1);
  border-color: transparent;
}

.blog-card-cover {
  height: 220px;
  background: linear-gradient(145deg, var(--cream) 0%, var(--beige) 100%);
  overflow: hidden;
}
.blog-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.blog-card:hover .blog-card-cover img {
  transform: scale(1.05);
}

.blog-card-body {
  padding: 1.8rem;
}

.blog-card-date {
  font-size: 0.78rem;
  color: var(--taupe);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.6rem;
}

.blog-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
  line-height: 1.3;
}
.blog-card h3 a { color: var(--brown); }
.blog-card h3 a:hover { color: var(--tan); }

.blog-card-tags {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.blog-card-tags span {
  font-size: 0.72rem;
  font-weight: 500;
  background: var(--cream);
  color: var(--taupe);
  padding: 0.2rem 0.6rem;
  border-radius: 50px;
}

/* ─── Article ─── */
.article {
  max-width: 720px;
  margin: 0 auto;
  padding: 8rem var(--padding) 5rem;
}
.article-header {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--beige);
}
.article-header h1 {
  margin-bottom: 1rem;
}
.article-meta {
  font-size: 0.85rem;
  color: var(--taupe);
  font-weight: 500;
}
.article-body {
  font-size: 1.05rem;
  line-height: 1.9;
}
.article-body h3 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}
.article-body p {
  margin-bottom: 1.5rem;
}
.article-body ul, .article-body ol {
  margin: 1rem 0 1.5rem 1.5rem;
}
.article-body li {
  margin-bottom: 0.5rem;
}
.article-tags {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--beige);
}

/* ─── About ─── */
.about-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 4rem;
}

.about-sidebar {
  position: sticky;
  top: 8rem;
  align-self: start;
}

.about-photo {
  width: 100%;
  aspect-ratio: 3/4;
  background: linear-gradient(145deg, var(--cream), var(--beige));
  border-radius: var(--radius);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--taupe);
  overflow: hidden;
}
.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
}

.about-detail {
  margin-bottom: 1.2rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--cream);
}
.about-detail:last-child {
  border-bottom: none;
}
.about-detail label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  color: var(--taupe);
  display: block;
  margin-bottom: 0.3rem;
}
.about-detail span {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.5;
}

.about-body h3 {
  margin-top: 3rem;
  margin-bottom: 1rem;
}
.about-body p {
  font-size: 1.05rem;
  color: var(--text-light);
  line-height: 1.85;
  margin-bottom: 1.2rem;
}

/* ─── Contact ─── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-info h3 {
  margin-bottom: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.contact-item-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.contact-item-text {
  font-size: 0.95rem;
  padding-top: 0.6rem;
}
.contact-item-text a {
  color: var(--text);
}
.contact-item-text a:hover {
  color: var(--tan);
}

.hours-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.5rem;
}
.hours-table td {
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--cream);
  font-size: 0.9rem;
}
.hours-table td:first-child {
  font-weight: 600;
  color: var(--brown);
  width: 40%;
}

.contact-map {
  background: var(--cream);
  border-radius: var(--radius);
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--taupe);
  overflow: hidden;
}
.contact-map iframe {
  border-radius: var(--radius);
}

/* ─── Appointment Form ─── */
.appointment-form-wrapper {
  max-width: 640px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--taupe);
  margin-bottom: 0.6rem;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.9rem 1.2rem;
  border: 1.5px solid var(--beige);
  border-radius: var(--radius-sm);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--white);
  transition: all 0.3s ease;
  outline: none;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--tan);
  box-shadow: 0 0 0 4px rgba(181, 158, 125, 0.12);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23938166' viewBox='0 0 16 16'%3E%3Cpath d='M4.646 5.646a.5.5 0 0 1 .708 0L8 8.293l2.646-2.647a.5.5 0 0 1 .708.708l-3 3a.5.5 0 0 1-.708 0l-3-3a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 1rem 2rem;
  background: var(--brown);
  color: var(--cream);
  border: 2px solid var(--brown);
  border-radius: 50px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
}
.btn-submit:hover {
  background: transparent;
  color: var(--brown);
  transform: translateY(-1px);
}

.form-note {
  text-align: center;
  font-size: 0.8rem;
  color: var(--taupe);
  margin-top: 1rem;
}

/* ─── Stats Row ─── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
  padding: 3rem 0;
}

.stat-item .stat-number {
  font-family: 'DM Serif Display', serif;
  font-size: 2.8rem;
  color: var(--brown);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.stat-item .stat-label {
  font-size: 0.85rem;
  color: var(--text-light);
}

/* ─── CTA Banner ─── */
.cta-banner {
  background: var(--brown);
  border-radius: var(--radius);
  padding: 4rem;
  text-align: center;
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(181, 158, 125, 0.15);
}
.cta-banner h2 {
  color: var(--cream);
  margin-bottom: 1rem;
  position: relative;
}
.cta-banner p {
  color: var(--beige);
  font-size: 1.05rem;
  margin-bottom: 2rem;
  position: relative;
}
.cta-banner .btn-primary {
  background: var(--cream);
  color: var(--brown) !important;
  border-color: var(--cream);
  position: relative;
}
.cta-banner .btn-primary:hover {
  background: var(--white);
  border-color: var(--white);
  transform: translateY(-2px);
}

/* ─── Footer ─── */
.footer {
  background: var(--brown);
  color: #E8DFD0;
  padding: 4rem var(--padding) 2rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(206, 193, 168, 0.15);
}

.footer-brand .footer-name {
  font-family: 'DM Serif Display', serif;
  font-size: 1.4rem;
  color: var(--cream);
  margin-bottom: 0.5rem;
}
.footer-brand .footer-tagline {
  font-size: 0.88rem;
  color: var(--beige);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}
.footer-social {
  display: flex;
  gap: 0.8rem;
}
.footer-social a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(241, 233, 218, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cream);
  transition: all 0.3s ease;
}
.footer-social a:hover {
  background: rgba(241, 233, 218, 0.15);
  color: #fff;
  border-color: var(--cream);
  transform: translateY(-2px);
}

.footer-col h4 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--cream);
  margin-bottom: 1.2rem;
}

.footer-col a {
  display: block;
  color: #F1E9DA;
  font-size: 0.88rem;
  margin-bottom: 0.7rem;
  transition: all 0.2s ease;
  opacity: 0.9;
}
.footer-col a:hover {
  color: #fff;
  opacity: 1;
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-legal {
  font-size: 0.75rem;
  color: #E8DFD0;
  opacity: 0.8;
}

.footer-credits {
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
  font-size: 0.72rem;
  color: #E8DFD0;
  padding-top: 1.5rem;
  letter-spacing: 0.04em;
  opacity: 0.65;
}

/* ─── Page Header (inner pages) ─── */
.page-header {
  padding: 10rem var(--padding) 4rem;
  text-align: center;
  position: relative;
}
.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, var(--cream) 0%, var(--white) 100%);
  z-index: -1;
}
.page-header .section-number {
  margin-bottom: 1rem;
}
.page-header h1 {
  margin-bottom: 1rem;
}
.page-header p {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ─── Error ─── */
.error-page {
  text-align: center;
  padding: 12rem var(--padding) 6rem;
}
.error-page h1 {
  font-size: 6rem;
  color: var(--beige);
  margin-bottom: 1rem;
}
.error-page p {
  color: var(--text-light);
  margin-bottom: 2rem;
}

/* ═══════════════════════════════════════════
   Responsive — Production Quality
   Mobile-first fixes for 320px → 1024px
   ═══════════════════════════════════════════ */

/* ─── Tablet: 769px – 1024px ─── */
@media (max-width: 1024px) {
  .hero-inner {
    gap: 3rem;
  }
  .hero-float-card {
    left: 0;
    bottom: 2rem;
  }
  .nav {
    gap: 1.2rem;
  }
  .nav a {
    font-size: 0.72rem;
  }
  .nav .btn-primary {
    padding: 0 1.2rem;
    font-size: 0.72rem;
    height: 36px;
  }
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}

/* ─── Tablet → Mobile: switch to hamburger at 900px ─── */
@media (max-width: 900px) {
  .nav {
    display: none;
    opacity: 0;
    pointer-events: none;
  }
  .menu-toggle {
    display: flex;
  }
  .lang-switcher-desktop {
    display: none;
  }
  .header {
    background: rgba(253, 251, 247, 0.97);
    backdrop-filter: blur(12px);
  }
}

/* ─── Mobile: ≤ 768px ─── */
@media (max-width: 768px) {
  :root {
    --section-pad: clamp(3rem, 6vw, 5rem);
  }

  /* Header — always visible bg on mobile for readability */
  .header {
    background: rgba(253, 251, 247, 0.97);
    backdrop-filter: blur(12px);
    padding: 0.8rem var(--padding);
  }
  .header.scrolled {
    padding: 0.8rem var(--padding);
  }
  .logo {
    font-size: 1.05rem;
  }

  /* Nav mobile menu styles (hamburger already active from 900px) */
  .nav.open .lang-switcher {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--beige);
  }
  .nav.open .lang-link {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  /* Fullscreen mobile menu with smooth entrance */
  .nav.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background: var(--white);
    z-index: 250;
    justify-content: center;
    align-items: center;
    gap: 0;
    opacity: 1;
    pointer-events: auto;
    animation: menuSlideIn 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    overflow-y: auto;
  }
  .nav.open a {
    font-size: 1.4rem;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    font-family: 'DM Serif Display', serif;
    color: var(--brown);
    padding: 0.9rem 2rem;
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  .nav.open a::after {
    display: none;
  }
  .nav.open a:hover,
  .nav.open a:active {
    color: var(--tan);
  }
  .nav.open .btn-primary {
    margin-top: 1.5rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0 2.5rem;
    height: 50px;
  }

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

  /* Hero */
  .hero {
    min-height: auto;
    padding: 7rem var(--padding) 3.5rem;
  }
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }
  .hero-content {
    padding: 0;
  }
  .hero-subtitle {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
  .hero-buttons {
    justify-content: center;
    flex-wrap: wrap;
  }
  .hero-visual {
    display: none;
  }
  .hero-label {
    padding-left: 0;
  }
  .hero-label::before {
    display: none;
  }
  .hero-blob {
    width: 250px;
    height: 250px;
    top: -60px;
    right: -60px;
  }
  .hero::before,
  .hero::after,
  .hero-visual::before,
  .hero-content::after {
    display: none;
  }

  /* Stats — keep 3-col but smaller */
  .stats-row {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding: 2rem 0;
  }
  .stat-item .stat-number {
    font-size: 1.8rem;
  }
  .stat-item .stat-label {
    font-size: 0.72rem;
    line-height: 1.3;
  }

  /* Grids — single column */
  .services-grid {
    grid-template-columns: 1fr;
  }
  .services-grid .service-card:nth-child(2),
  .services-grid .service-card:nth-child(3) {
    margin-top: 0;
  }
  .blog-grid {
    grid-template-columns: 1fr;
  }
  /* Team zigzag → stacked on mobile */
  a.team-row {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 2rem 0;
  }
  a.team-row-reverse {
    direction: ltr;
  }
  .team-row-photo {
    max-width: 280px;
    margin: 0 auto;
    aspect-ratio: 3/4;
    border-radius: 140px 140px 16px 16px;
  }
  .team-row-content {
    text-align: center;
  }
  .member-specializations {
    justify-content: center;
  }
  .team-profile-link {
    justify-content: center;
  }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .intro-block {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .form-row {
    grid-template-columns: 1fr;
  }

  /* Service cards — reduce padding */
  .service-card {
    padding: 1.8rem;
  }

  /* Team zigzag — smaller padding on small screens */
  a.team-row {
    padding: 1.5rem 0;
  }

  /* Blog cards — responsive cover */
  .blog-card-cover {
    height: 180px;
  }
  .blog-card-body {
    padding: 1.4rem;
  }

  /* Quote card — hide on mobile (overlaps) */
  .quote-card { display: none; }

  /* About sidebar — unstick */
  .about-sidebar {
    position: static;
  }

  /* CTA Banner */
  .cta-banner {
    padding: 2.5rem 1.5rem;
    margin: 0;
    border-radius: var(--radius-sm);
  }
  .cta-banner h2 {
    font-size: clamp(1.4rem, 4vw, 2rem);
  }

  /* Contact map — smaller */
  .contact-map {
    min-height: 260px;
  }

  /* Page header */
  .page-header {
    padding: 7rem var(--padding) 2.5rem;
  }
  .page-header p {
    font-size: 1rem;
  }

  /* Article */
  .article {
    padding: 7rem var(--padding) 3rem;
  }

  /* Footer */
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-bottom: 2rem;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 0.4rem;
    text-align: center;
  }
  .footer-credits {
    padding-top: 1rem;
    font-size: 0.65rem;
    line-height: 1.6;
  }

  /* Error */
  .error-page {
    padding: 8rem var(--padding) 4rem;
  }
  .error-page h1 {
    font-size: 4rem;
  }

  /* Section headers */
  .section-header {
    margin-bottom: 2.5rem;
  }

  /* Intro image */
  .intro-block-visual {
    order: -1;
  }
  .intro-image {
    aspect-ratio: 16/9;
    border-radius: var(--radius-sm);
  }

  /* Form inputs — larger touch targets */
  .form-input,
  .form-select,
  .form-textarea {
    padding: 0.85rem 1rem;
    font-size: 16px; /* prevents iOS zoom */
  }
  .btn-submit {
    padding: 0.9rem 1.5rem;
    min-height: 48px;
  }

  /* Footer links — larger touch targets */
  .footer-col a {
    padding: 0.35rem 0;
    min-height: 44px;
    display: flex;
    align-items: center;
  }
}

/* ─── Small mobile: ≤ 480px ─── */
@media (max-width: 480px) {
  .hero {
    padding: 6.5rem var(--padding) 3rem;
  }
  .hero h1 {
    font-size: 2rem;
    line-height: 1.15;
  }
  .hero-subtitle {
    font-size: 0.95rem;
  }
  .hero-buttons {
    flex-direction: column;
    width: 100%;
    gap: 0.8rem;
  }
  .hero-buttons .btn-primary,
  .hero-buttons .btn-secondary {
    width: 100%;
    justify-content: center;
    min-height: 48px;
  }

  /* Stats — still 3-col but tighter */
  .stats-row {
    gap: 0.5rem;
  }
  .stat-item .stat-number {
    font-size: 1.5rem;
  }
  .stat-item .stat-label {
    font-size: 0.65rem;
  }

  /* Page headers — tighter */
  .page-header h1 {
    font-size: 1.8rem;
  }

  /* Contact items — icon size */
  .contact-item-icon {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  /* Appointment form */
  .appointment-form-wrapper {
    max-width: 100%;
  }

  /* CTA smaller text */
  .cta-banner {
    padding: 2rem 1.2rem;
  }
  .cta-banner p {
    font-size: 0.92rem;
  }
}

/* ─── Tiny mobile: ≤ 360px (iPhone SE, Galaxy S) ─── */
@media (max-width: 360px) {
  :root {
    --padding: 1rem;
  }

  .logo {
    font-size: 0.95rem;
  }

  .hero h1 {
    font-size: 1.75rem;
  }

  .service-card {
    padding: 1.4rem;
  }

  .blog-card-cover {
    height: 150px;
  }

  .stats-row {
    grid-template-columns: 1fr 1fr 1fr;
  }
  .stat-item .stat-number {
    font-size: 1.3rem;
  }
  .stat-item .stat-label {
    font-size: max(0.68rem, 11px);
  }

  .nav.open a {
    font-size: 1.2rem;
    padding: 0.7rem 1.5rem;
  }

  .footer-brand .footer-name {
    font-size: 1.2rem;
  }
}

/* ─── Accessibility: prefers-reduced-motion ─── */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .nav.open {
    animation: none;
  }
  .menu-toggle span {
    transition: none;
  }
  * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* ─── Safe area for notched phones ─── */
@supports (padding: env(safe-area-inset-bottom)) {
  .footer {
    padding-bottom: calc(2rem + env(safe-area-inset-bottom));
  }
  .header {
    padding-left: calc(var(--padding) + env(safe-area-inset-left));
    padding-right: calc(var(--padding) + env(safe-area-inset-right));
  }
  .nav.open {
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
  }
}
