/* ============================================================
   Sevil Vahid — Motion & Modernization Overrides
   Cabinet ambiance, scroll reveals, partner logos, polish
   ============================================================ */

/* --- Smooth scroll global polish --- */
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Subtle global background grain for warmth */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image:
    radial-gradient(rgba(31,76,80,0.025) 1px, transparent 1px),
    radial-gradient(rgba(31,76,80,0.018) 1px, transparent 1px);
  background-size: 3px 3px, 7px 7px;
  background-position: 0 0, 1px 1px;
  opacity: 0.6;
  mix-blend-mode: multiply;
}
.site-header, section, footer { position: relative; z-index: 2; }

/* ============================================================
   HERO — cabinet ambiance (motion video built from photo)
   ============================================================ */
.hero {
  min-height: 100vh;
  padding: 120px 0 96px;
  overflow: hidden;
  isolation: isolate;
}
/* Hide legacy fallback video-wrap if present */
.hero-video-wrap { display: none; }

.hero-cabinet {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-cabinet-video {
  position: absolute;
  inset: -2% -2% -2% -2%;
  width: 104%;
  height: 104%;
  object-fit: cover;
  object-position: center;
  will-change: opacity, transform;
  filter: brightness(1.03) saturate(0.93);
  opacity: 0;
  animation: cabinetVideoIn 2.4s ease forwards, cabinetVideoBreathe 26s ease-in-out 2.4s infinite;
}
@keyframes cabinetVideoIn {
  from { opacity: 0; transform: scale(1.06); }
  to   { opacity: 1; transform: scale(1.02); }
}
@keyframes cabinetVideoBreathe {
  0%, 100% { transform: scale(1.02); }
  50%      { transform: scale(1.06); }
}
.hero-cabinet-img {
  position: absolute;
  inset: -8% -8% -8% -8%;
  background-image: url("assets/cabinet-cosy.png");
  background-size: cover;
  background-position: center;
  will-change: transform, opacity, filter;
  opacity: 0;
}
/* Three slow pans crossfading — Ken Burns multilayer */
.cabinet-pan-1 {
  animation: kenBurns1 24s cubic-bezier(.4,0,.2,1) infinite;
  background-position: 40% 45%;
  filter: brightness(1.04) saturate(0.95);
}
.cabinet-pan-2 {
  animation: kenBurns2 24s cubic-bezier(.4,0,.2,1) infinite;
  animation-delay: 8s;
  background-position: 60% 55%;
  filter: brightness(0.95) saturate(0.9);
}
.cabinet-pan-3 {
  animation: kenBurns3 24s cubic-bezier(.4,0,.2,1) infinite;
  animation-delay: 16s;
  background-position: 50% 35%;
  filter: brightness(1.08) saturate(0.92);
}
@keyframes kenBurns1 {
  0%, 100% { opacity: 0; transform: scale(1.08) translate(0,0); }
  10%, 28% { opacity: 1; }
  38%      { opacity: 0; transform: scale(1.14) translate(-1.5%, -1%); }
  100%     { opacity: 0; }
}
@keyframes kenBurns2 {
  0%, 100% { opacity: 0; transform: scale(1.12) translate(0,0); }
  10%, 28% { opacity: 1; }
  38%      { opacity: 0; transform: scale(1.04) translate(1.5%, 1%); }
  100%     { opacity: 0; }
}
@keyframes kenBurns3 {
  0%, 100% { opacity: 0; transform: scale(1.05) translate(0,0); }
  10%, 28% { opacity: 1; }
  38%      { opacity: 0; transform: scale(1.15) translate(0, -2%); }
  100%     { opacity: 0; }
}

/* Warm "sunset through curtain" sweep */
.hero-cabinet-warm {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 12% 35%, rgba(255,213,160,0.30) 0%, rgba(255,213,160,0) 50%),
    radial-gradient(ellipse 50% 70% at 88% 80%, rgba(201,123,91,0.16) 0%, rgba(201,123,91,0) 55%);
  mix-blend-mode: screen;
  animation: warmShift 14s ease-in-out infinite alternate;
}
@keyframes warmShift {
  0%   { transform: translate(0,0) scale(1); opacity: 0.85; }
  100% { transform: translate(-2%, 1%) scale(1.04); opacity: 1; }
}

/* Slow caustic light shimmer (window light) */
.hero-cabinet-light {
  position: absolute; inset: -10%;
  background:
    radial-gradient(circle at 18% 30%, rgba(255,245,225,0.45) 0%, rgba(255,245,225,0) 28%),
    radial-gradient(circle at 70% 75%, rgba(255,235,200,0.18) 0%, rgba(255,235,200,0) 35%);
  mix-blend-mode: soft-light;
  animation: lightBreathe 10s ease-in-out infinite;
}
@keyframes lightBreathe {
  0%, 100% { opacity: 0.85; transform: scale(1); }
  50%      { opacity: 1;    transform: scale(1.03); }
}

/* Grain to dampen photo crispness */
.hero-cabinet-grain {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHdpZHRoPScxNjAnIGhlaWdodD0nMTYwJz48ZmlsdGVyIGlkPSduJz48ZmVUdXJidWxlbmNlIHR5cGU9J2ZyYWN0YWxOb2lzZScgYmFzZUZyZXF1ZW5jeT0nMC45JyBudW1PY3RhdmVzPScyJy8+PGZlQ29sb3JNYXRyaXggdmFsdWVzPScwIDAgMCAwIDAgIDAgMCAwIDAgMCAgMCAwIDAgMCAwICAwIDAgMCAwLjUgMCcvPjwvZmlsdGVyPjxyZWN0IHdpZHRoPScxMDAlJyBoZWlnaHQ9JzEwMCUnIGZpbHRlcj0ndXJsKCNuKScgb3BhY2l0eT0nMC4zNScvPjwvc3ZnPg==");
  opacity: 0.5;
  mix-blend-mode: overlay;
  pointer-events: none;
}

/* Dust / pollen particles container — populated by JS */
.hero-cabinet-dust {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.dust {
  position: absolute;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,236,200,0.95), rgba(255,236,200,0));
  filter: blur(0.6px);
  opacity: 0;
  animation: dustFloat var(--dur,18s) linear infinite;
  animation-delay: var(--delay,0s);
  left: var(--x,50%);
  top: 110%;
  transform: scale(var(--scale,1));
}
@keyframes dustFloat {
  0%   { transform: translate(0, 0) scale(var(--scale,1)); opacity: 0; }
  10%  { opacity: var(--max,0.7); }
  60%  { opacity: var(--max,0.7); }
  100% { transform: translate(var(--xdrift,40px), -120vh) scale(var(--scale,1)); opacity: 0; }
}

/* Final veil — readability layer over cabinet */
.hero-cabinet-veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(96deg,
      rgba(247,243,236,0.92) 0%,
      rgba(247,243,236,0.78) 32%,
      rgba(247,243,236,0.42) 60%,
      rgba(247,243,236,0.20) 100%),
    linear-gradient(180deg,
      rgba(247,243,236,0.0) 60%,
      rgba(247,243,236,0.55) 100%);
}
@media (max-width: 960px) {
  .hero-cabinet-veil {
    background:
      linear-gradient(180deg,
        rgba(247,243,236,0.78) 0%,
        rgba(247,243,236,0.86) 50%,
        rgba(247,243,236,0.96) 100%);
  }
}

.hero .container { position: relative; z-index: 2; }
.hero-grid {
  display: block;
  padding: 0;
  max-width: 720px;
}

/* Hero text re-style */
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12.5px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--terracotta);
  font-weight: 500;
  margin-bottom: 28px;
  padding: 8px 16px 8px 0;
  border-left: 0;
  opacity: 0;
  animation: fadeUp 0.9s 0.1s ease forwards;
}
.hero-eyebrow::before {
  content: "";
  width: 36px; height: 1px;
  background: var(--terracotta);
}

.hero-title {
  font-family: var(--serif);
  font-size: clamp(56px, 8.4vw, 108px);
  line-height: 0.96;
  letter-spacing: -0.025em;
  color: var(--teal-700);
  margin: 0 0 18px;
  font-weight: 400;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.hero-title .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(40px) rotate(-2deg);
  animation: titleEntrance 1.2s cubic-bezier(.2,.8,.2,1) forwards;
}
.hero-title .w1 { animation-delay: 0.25s; }
.hero-title .w2 {
  animation-delay: 0.45s;
  color: var(--sage);
  font-style: italic;
  font-weight: 500;
}
@keyframes titleEntrance {
  to { opacity: 1; transform: translateY(0) rotate(0); }
}

.hero-role {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(20px, 2.2vw, 26px);
  color: var(--teal-500);
  line-height: 1.35;
  margin: 6px 0 32px;
  max-width: 640px;
  opacity: 0;
  animation: fadeUp 1s 0.7s ease forwards;
}

.hero-lead-card {
  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(31,76,80,0.10);
  border-left: 3px solid var(--sage);
  padding: 22px 26px;
  border-radius: 4px 18px 18px 4px;
  max-width: 580px;
  margin-bottom: 36px;
  box-shadow: 0 2px 10px rgba(31,76,80,0.06);
  opacity: 0;
  animation: fadeUp 1s 0.9s ease forwards;
}
.hero-lead-title {
  font-family: var(--serif);
  font-size: 21px;
  color: var(--teal-700);
  line-height: 1.25;
  margin-bottom: 8px;
  font-weight: 500;
}
.hero-lead-body {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.6;
}

.hero .hero-cta { opacity: 0; animation: fadeUp 1s 1.1s ease forwards; }
.hero .hero-trust { opacity: 0; animation: fadeUp 1s 1.3s ease forwards; }
.hero .hero-partners { opacity: 0; animation: fadeUp 1s 1.5s ease forwards; }

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

.hero-trust-item .n em {
  font-style: normal;
  font-size: 0.65em;
  color: var(--terracotta);
  vertical-align: super;
  margin-left: 2px;
}
.hero-trust-item.highlighted .n { color: var(--terracotta); }

/* Partners row */
.hero-partners {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.hero-partners-label {
  display: block;
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 18px;
}
.hero-partners-row {
  display: flex;
  align-items: center;
  gap: 38px;
  flex-wrap: wrap;
}
.hero-partner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 64px;
  padding: 6px 8px;
  border-radius: 12px;
  transition: transform .35s ease, filter .35s ease, background .35s ease;
  filter: saturate(0.85);
}
.hero-partner img {
  max-height: 100%;
  max-width: 130px;
  width: auto;
  object-fit: contain;
  display: block;
}
.hero-partner:hover {
  transform: translateY(-3px) scale(1.04);
  background: rgba(255,255,255,0.5);
  filter: saturate(1.05);
}

.hero-scroll-cue {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-size: 10.5px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  z-index: 3;
  opacity: 0;
  animation: fadeUp 1s 1.8s ease forwards;
}
.hero-scroll-cue .line {
  width: 1px;
  height: 48px;
  background: linear-gradient(180deg, var(--terracotta) 0%, transparent 100%);
  animation: scrollPulse 2.2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { transform: scaleY(0.5); transform-origin: top; opacity: 0.4; }
  50%      { transform: scaleY(1); opacity: 1; }
}

/* Hide hero scroll-cue on small viewports */
@media (max-width: 700px) { .hero-scroll-cue { display: none; } }

/* ============================================================
   Logo — display correct name per language (Sevil Vahid / Севил Вахид)
   ============================================================ */
.logo-name { transition: opacity .25s ease; }

/* Make header sticky with refined shadow on scroll */
.site-header.scrolled {
  box-shadow: 0 2px 12px rgba(31,76,80,0.06);
  background: rgba(247,243,236,0.94);
}

/* ============================================================
   About — real portrait
   ============================================================ */
.about-photo { padding: 0; }
.about-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  z-index: 2;
}
.about-photo::after, .about-photo::before { display: none; }

/* Parallax tilt on about photo */
.about-photo-frame {
  perspective: 1200px;
}
.about-photo {
  transform: rotate(-1.2deg);
  transition: transform .8s cubic-bezier(.2,.8,.2,1);
}
.about-photo-frame:hover .about-photo {
  transform: rotate(0) scale(1.01);
}

/* ============================================================
   Scroll reveal — ample, fluid
   ============================================================ */
.reveal-up, .reveal-from-left, .reveal-from-right {
  opacity: 0;
  transition: opacity 1.1s cubic-bezier(.2,.8,.2,1), transform 1.1s cubic-bezier(.2,.8,.2,1);
  transform: translateY(40px);
  will-change: opacity, transform;
}
.reveal-from-left  { transform: translateX(-40px); }
.reveal-from-right { transform: translateX(40px); }
.reveal-up.in, .reveal-from-left.in, .reveal-from-right.in {
  opacity: 1;
  transform: none;
}

/* Cards stagger on visibility */
.svc-grid .svc-card,
.cert-grid .cert-card,
.dip-grid .dip-card,
.exp-grid .exp-card,
.testim-grid .testim-card,
.book-grid .book-card,
.blog-grid .blog-card,
.event-grid .event-card {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(.2,.8,.2,1), box-shadow .3s ease, border-color .3s ease;
}
.svc-grid.in .svc-card,
.cert-grid.in .cert-card,
.dip-grid.in .dip-card,
.exp-grid.in .exp-card,
.testim-grid.in .testim-card,
.book-grid.in .book-card,
.blog-grid.in .blog-card,
.event-grid.in .event-card {
  opacity: 1;
  transform: none;
}
/* Stagger via :nth-child */
.svc-grid.in .svc-card:nth-child(n)       { transition-delay: calc((var(--i,0)) * 60ms); }
.svc-grid .svc-card:nth-child(1)  { --i: 0; }
.svc-grid .svc-card:nth-child(2)  { --i: 1; }
.svc-grid .svc-card:nth-child(3)  { --i: 2; }
.svc-grid .svc-card:nth-child(4)  { --i: 3; }
.svc-grid .svc-card:nth-child(5)  { --i: 4; }
.svc-grid .svc-card:nth-child(6)  { --i: 5; }
.svc-grid .svc-card:nth-child(7)  { --i: 6; }
.svc-grid .svc-card:nth-child(8)  { --i: 7; }

.cert-grid.in .cert-card { transition-delay: calc(var(--i,0) * 40ms); }
.cert-grid .cert-card:nth-child(1) { --i: 0; } .cert-grid .cert-card:nth-child(2) { --i: 1; }
.cert-grid .cert-card:nth-child(3) { --i: 2; } .cert-grid .cert-card:nth-child(4) { --i: 3; }
.cert-grid .cert-card:nth-child(5) { --i: 4; } .cert-grid .cert-card:nth-child(6) { --i: 5; }
.cert-grid .cert-card:nth-child(7) { --i: 6; } .cert-grid .cert-card:nth-child(8) { --i: 7; }
.cert-grid .cert-card:nth-child(9) { --i: 8; } .cert-grid .cert-card:nth-child(10) { --i: 9; }
.cert-grid .cert-card:nth-child(11){ --i:10; } .cert-grid .cert-card:nth-child(12) { --i:11; }
.cert-grid .cert-card:nth-child(13){ --i:12; } .cert-grid .cert-card:nth-child(14) { --i:13; }

.dip-grid.in .dip-card    { transition-delay: calc(var(--i,0) * 60ms); }
.dip-grid .dip-card:nth-child(1) { --i: 0; } .dip-grid .dip-card:nth-child(2) { --i: 1; }
.dip-grid .dip-card:nth-child(3) { --i: 2; } .dip-grid .dip-card:nth-child(4) { --i: 3; }
.dip-grid .dip-card:nth-child(5) { --i: 4; } .dip-grid .dip-card:nth-child(6) { --i: 5; }
.dip-grid .dip-card:nth-child(7) { --i: 6; } .dip-grid .dip-card:nth-child(8) { --i: 7; }
.dip-grid .dip-card:nth-child(9) { --i: 8; } .dip-grid .dip-card:nth-child(10){ --i: 9; }

.testim-grid.in .testim-card { transition-delay: calc(var(--i,0) * 100ms); }
.testim-grid .testim-card:nth-child(1){--i:0;} .testim-grid .testim-card:nth-child(2){--i:1;}
.testim-grid .testim-card:nth-child(3){--i:2;} .testim-grid .testim-card:nth-child(4){--i:3;}

.book-grid.in .book-card { transition-delay: calc(var(--i,0) * 80ms); }
.book-grid .book-card:nth-child(1){--i:0;} .book-grid .book-card:nth-child(2){--i:1;}
.book-grid .book-card:nth-child(3){--i:2;} .book-grid .book-card:nth-child(4){--i:3;}

.blog-grid.in .blog-card { transition-delay: calc(var(--i,0) * 100ms); }
.blog-grid .blog-card:nth-child(1){--i:0;} .blog-grid .blog-card:nth-child(2){--i:1;} .blog-grid .blog-card:nth-child(3){--i:2;}

.event-grid.in .event-card { transition-delay: calc(var(--i,0) * 100ms); }
.event-grid .event-card:nth-child(1){--i:0;} .event-grid .event-card:nth-child(2){--i:1;} .event-grid .event-card:nth-child(3){--i:2;} .event-grid .event-card:nth-child(4){--i:3;}

.exp-grid.in .exp-card { transition-delay: calc(var(--i,0) * 90ms); }
.exp-grid .exp-card:nth-child(1){--i:0;} .exp-grid .exp-card:nth-child(2){--i:1;} .exp-grid .exp-card:nth-child(3){--i:2;}

/* ============================================================
   Experience cards with logo
   ============================================================ */
.exp-card { padding-top: 22px; }
.exp-card-logo {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--ivory);
  border: 1px solid var(--line-soft);
  display: grid;
  place-items: center;
  overflow: hidden;
  margin-bottom: 14px;
}
.exp-card-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
}
.exp-card-logo.monogram {
  background: linear-gradient(135deg, var(--teal) 0%, var(--sage) 100%);
  color: var(--ivory);
}
.exp-card-logo.monogram span {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  font-weight: 500;
}

/* ============================================================
   Service photos — use real assets
   ============================================================ */
.svc-img { aspect-ratio: 4/3; }
.svc-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.92) contrast(0.96);
  transition: transform 1s ease;
}
.svc-card:hover .svc-img img { transform: scale(1.06); }
.svc-img .photo-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(135deg, rgba(31,76,80,0.18) 0%, rgba(31,76,80,0.04) 50%, rgba(201,123,91,0.16) 100%),
    linear-gradient(180deg, rgba(247,243,236,0) 60%, rgba(31,76,80,0.18) 100%);
  pointer-events: none;
}

/* ============================================================
   Diploma cards — accept real images
   ============================================================ */
.dip-img.has-img { padding: 0; }
.dip-img.has-img img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 1;
}
.dip-img.has-img::before { display: none; }
.dip-img .dip-mark {
  display: grid; place-items: center;
  color: var(--sage);
  width: 100%; height: 100%;
}
.dip-img .dip-mark svg { width: 56px; height: 56px; opacity: 0.7; }
.dip-img .seal {
  position: absolute; bottom: 14px; right: 16px;
  background: var(--terracotta);
  color: var(--ivory);
  border-radius: 999px;
  padding: 4px 12px;
  font-family: var(--serif); font-style: italic;
  font-size: 12px;
  z-index: 2;
}

/* Lightbox for diploma images */
.dip-lightbox {
  position: fixed; inset: 0;
  background: rgba(20,30,30,0.86);
  display: none;
  align-items: center; justify-content: center;
  z-index: 200;
  padding: 32px;
  cursor: zoom-out;
  backdrop-filter: blur(6px);
}
.dip-lightbox.open { display: flex; }
.dip-lightbox img {
  max-width: 90vw;
  max-height: 86vh;
  border-radius: 6px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.45);
  object-fit: contain;
}
.dip-lightbox-close {
  position: absolute;
  top: 24px; right: 28px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.25);
  color: var(--ivory);
  font-size: 22px;
  cursor: pointer;
  display: grid; place-items: center;
}

/* ============================================================
   Blog images — real photos
   ============================================================ */
.blog-img { overflow: hidden; }
.blog-img img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.9);
  transition: transform 1s ease;
}
.blog-card:hover .blog-img img { transform: scale(1.05); }
.blog-img::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(31,76,80,0.15) 0%, rgba(31,76,80,0) 50%);
}

/* ============================================================
   Form polish + honeypot
   ============================================================ */
.hp-field {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important; height: 1px !important;
  overflow: hidden !important;
}
.form-success {
  display: none;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding: 14px;
  background: var(--sage-bg);
  border-radius: 10px;
  color: var(--teal-700);
  font-size: 14px;
}
.form-success[hidden] { display: none !important; }
.form-success.show {
  display: flex;
  animation: fadeUp 0.5s ease;
}

/* ============================================================
   Footer partners
   ============================================================ */
.foot-partners {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 22px;
  flex-wrap: wrap;
}
.foot-partners img {
  height: 38px;
  max-width: 100px;
  object-fit: contain;
  background: rgba(255,255,255,0.92);
  border-radius: 8px;
  padding: 5px 8px;
  filter: saturate(0.9);
  transition: transform .3s ease;
}
.foot-partners img:hover { transform: translateY(-2px); }

.foot-legal a.discreet {
  opacity: 0.4;
  font-size: 18px;
  padding: 0 6px;
}
.foot-legal a.discreet:hover { opacity: 0.7; }

/* ============================================================
   Biblio (admin-added bibliography rendered in blog section)
   ============================================================ */
.biblio {
  margin-top: 56px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
}
.biblio h3 {
  font-family: var(--serif);
  font-size: 26px;
  color: var(--teal-700);
  margin-bottom: 22px;
}
.biblio-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}
.biblio-item {
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: all .3s;
}
.biblio-item:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--sage-soft); }
.biblio-item .biblio-title { font-family: var(--serif); font-size: 16px; color: var(--teal-700); }
.biblio-item .biblio-author { font-size: 12.5px; color: var(--muted); }
.biblio-item a { color: var(--terracotta); font-size: 12px; text-decoration: none; word-break: break-all; }

/* ============================================================
   Section dividers — subtle organic curves
   ============================================================ */
.hero + .about,
.about + .qual,
.services + .faq,
.faq + .cta-strip,
.testim + .booking,
.booking + .contact,
.contact + .blog {
  position: relative;
}

/* ============================================================
   Quality of life
   ============================================================ */
::selection { background: var(--sage-soft); color: var(--teal-700); }

button { font-family: inherit; }

.btn-secondary:hover {
  background: var(--teal);
  color: var(--ivory) !important;
  transform: translateY(-1px);
}

/* Mobile cleanup for hero */
@media (max-width: 720px) {
  .hero { min-height: auto; padding: 80px 0 60px; }
  .hero-title { font-size: 56px; gap: 14px; }
  .hero-lead-card { padding: 18px 20px; }
  .hero-lead-title { font-size: 18px; }
  .hero-partners-row { gap: 22px; }
  .hero-partner { height: 50px; }
  .hero-partner img { max-width: 100px; }
}

/* Better link-hover affordance globally */
a { transition: color .2s ease, opacity .2s ease, transform .2s ease; }

/* Slight glow on focused buttons (accessibility) */
.btn:focus-visible,
.lang-switch button:focus-visible,
.qual-tab:focus-visible {
  outline: 2px solid var(--terracotta);
  outline-offset: 3px;
}
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: none;
}

/* ============================================================
   ADMIN LINK in footer — visible, soft
   ============================================================ */
.foot-legal a.admin-link {
  border: 1px solid rgba(247, 243, 236, 0.18);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: rgba(247, 243, 236, 0.65);
  transition: all .25s ease;
}
.foot-legal a.admin-link:hover {
  background: var(--copper);
  color: var(--teal-700);
  border-color: var(--copper);
}

/* ============================================================
   TESTIM submit CTA
   ============================================================ */
.testim-submit {
  text-align: center;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px dashed var(--line);
}
.testim-submit .btn-ghost {
  font-family: var(--serif);
  font-style: italic;
  font-size: 17px;
  color: var(--teal-500);
}

/* ============================================================
   HERO inserts — extra cosy ambient elements
   ============================================================ */
.hero-insert {
  position: absolute;
  pointer-events: none;
  z-index: 1;
}

/* Warm lamp glow (right side — matches the desk lamp in the photo) */
.hero-insert.lamp-glow {
  top: 18%;
  right: 8%;
  width: 320px; height: 320px;
  background: radial-gradient(circle at 50% 50%,
    rgba(255, 220, 150, 0.55) 0%,
    rgba(255, 200, 120, 0.30) 22%,
    rgba(255, 200, 120, 0.10) 45%,
    rgba(255, 200, 120, 0) 70%);
  filter: blur(2px);
  mix-blend-mode: screen;
  animation: lampFlicker 5s ease-in-out infinite;
}
@keyframes lampFlicker {
  0%, 100% { opacity: 0.85; transform: scale(1); }
  20%      { opacity: 0.95; transform: scale(1.04); }
  35%      { opacity: 0.78; transform: scale(0.98); }
  55%      { opacity: 0.92; transform: scale(1.03); }
  70%      { opacity: 0.82; transform: scale(1); }
}

/* Window rays — soft diagonal light streaks from upper-left */
.hero-insert.window-rays {
  top: -10%;
  left: -5%;
  width: 60%;
  height: 90%;
  background:
    linear-gradient(115deg,
      transparent 30%,
      rgba(255, 240, 210, 0.18) 38%,
      transparent 42%,
      rgba(255, 240, 210, 0.12) 50%,
      transparent 54%,
      rgba(255, 240, 210, 0.16) 62%,
      transparent 66%);
  mix-blend-mode: screen;
  animation: rayShimmer 12s ease-in-out infinite alternate;
  transform-origin: top left;
}
@keyframes rayShimmer {
  0%   { opacity: 0.55; transform: translateX(0) skewX(0deg); }
  100% { opacity: 0.85; transform: translateX(2%) skewX(-1deg); }
}

/* Steam from a coffee cup — three rising wispy curls */
.hero-insert.steam {
  bottom: 30%;
  right: 22%;
  width: 60px;
  height: 140px;
}
.steam-curl {
  position: absolute;
  bottom: 0;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,250,240,0.55), rgba(255,250,240,0));
  filter: blur(4px);
  opacity: 0;
  animation: steamRise 5s ease-in infinite;
}
.steam-curl.s1 { left: 14px; animation-delay: 0s; }
.steam-curl.s2 { left: 24px; animation-delay: 1.6s; }
.steam-curl.s3 { left: 4px;  animation-delay: 3.2s; }
@keyframes steamRise {
  0%   { transform: translate(0, 0) scale(0.6); opacity: 0; }
  18%  { opacity: 0.7; }
  60%  { opacity: 0.5; }
  100% { transform: translate(var(--drift, 12px), -140px) scale(1.6); opacity: 0; }
}
.steam-curl.s1 { --drift: -6px; }
.steam-curl.s2 { --drift:  4px; }
.steam-curl.s3 { --drift:  10px; }

/* Floating plant leaves — small green ovals drifting */
.hero-insert.leaves {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.leaf {
  position: absolute;
  width: 18px; height: 10px;
  border-radius: 50% 50% 50% 50% / 80% 80% 20% 20%;
  background: linear-gradient(135deg, #9DB48A 0%, #6E8C68 100%);
  opacity: 0;
  filter: blur(0.3px) drop-shadow(0 1px 1px rgba(0,0,0,0.15));
  transform-origin: center;
  animation: leafFloat var(--ldur, 22s) linear infinite;
  animation-delay: var(--ldelay, 0s);
  left: var(--lx, 50%);
  top: -40px;
}
@keyframes leafFloat {
  0%   { transform: translate(0, 0) rotate(0deg); opacity: 0; }
  8%   { opacity: 0.55; }
  60%  { opacity: 0.45; }
  100% { transform: translate(var(--lxdrift, 50px), calc(100vh + 60px)) rotate(720deg); opacity: 0; }
}

/* Candle flicker — small warm spot at lower-center (matches the candle in the cabinet photo) */
.hero-insert.candle {
  bottom: 35%;
  left: 38%;
  width: 90px; height: 90px;
  background: radial-gradient(circle,
    rgba(255, 180, 100, 0.55) 0%,
    rgba(255, 180, 100, 0.20) 30%,
    rgba(255, 180, 100, 0) 60%);
  filter: blur(3px);
  mix-blend-mode: screen;
  animation: candleFlicker 1.4s ease-in-out infinite;
}
@keyframes candleFlicker {
  0%, 100% { opacity: 0.85; transform: scale(1); }
  25%      { opacity: 1;    transform: scale(1.08) translate(1px, -2px); }
  50%      { opacity: 0.72; transform: scale(0.95) translate(-1px, 1px); }
  75%      { opacity: 0.95; transform: scale(1.05) translate(2px, 0); }
}

/* On mobile, soften inserts so they don't compete with text */
@media (max-width: 800px) {
  .hero-insert.lamp-glow { width: 200px; height: 200px; right: -4%; top: 6%; opacity: 0.7; }
  .hero-insert.candle    { display: none; }
  .hero-insert.steam     { right: 8%; bottom: 16%; opacity: 0.7; }
  .hero-insert.window-rays { width: 100%; opacity: 0.55; }
}

/* ============================================================
   QUALIFICATIONS — animations
   ============================================================ */
.qual-tabs .qual-tab {
  position: relative;
  transition: color .3s, transform .3s;
}
.qual-tabs .qual-tab:hover { transform: translateY(-1px); }

/* Timeline — animated line + pulse dots */
.timeline::before {
  background: linear-gradient(180deg, var(--terracotta) 0%, var(--sage) 100%);
  transform-origin: top;
  animation: timelineDraw 1.6s cubic-bezier(.2,.8,.2,1) 0.2s both;
}
@keyframes timelineDraw {
  from { transform: scaleY(0); opacity: 0.4; }
  to   { transform: scaleY(1); opacity: 1; }
}

.tl-item {
  opacity: 0;
  transform: translateX(-20px);
  animation: tlItem 0.8s cubic-bezier(.2,.8,.2,1) forwards;
}
.tl-item:nth-child(1) { animation-delay: 0.4s; }
.tl-item:nth-child(2) { animation-delay: 0.65s; }
.tl-item:nth-child(3) { animation-delay: 0.9s; }
@keyframes tlItem {
  to { opacity: 1; transform: translateX(0); }
}
.tl-item::before {
  animation: dotPulse 2.4s ease-in-out infinite;
}
@keyframes dotPulse {
  0%, 100% { box-shadow: 0 0 0 5px var(--ivory), 0 0 0 6px var(--line); }
  50%      { box-shadow: 0 0 0 5px var(--ivory), 0 0 0 6px var(--terracotta), 0 0 0 12px rgba(201,123,91,0.10); }
}

/* Cert cards — gentle wave entrance + hover */
.cert-card {
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s, border-color .35s, background .35s;
}
.cert-card:hover {
  transform: translateY(-3px) rotate(-0.3deg);
  background: linear-gradient(135deg, var(--white) 0%, var(--ivory-100) 100%);
}

/* Cert feature card — subtle inner glow */
.cert-feature {
  position: relative;
  overflow: hidden;
}
.cert-feature::after {
  content: "";
  position: absolute;
  top: -20%; right: -10%;
  width: 280px; height: 280px;
  background: radial-gradient(circle, var(--sage-bg) 0%, transparent 70%);
  opacity: 0.5;
  z-index: 0;
  animation: featureGlow 8s ease-in-out infinite alternate;
}
.cert-feature > * { position: relative; z-index: 1; }
@keyframes featureGlow {
  from { transform: translate(0,0) scale(1); opacity: 0.4; }
  to   { transform: translate(-10px, 10px) scale(1.1); opacity: 0.6; }
}

/* Diploma cards — tilt on hover */
.dip-card { transition: transform .4s cubic-bezier(.2,.8,.2,1), box-shadow .3s; }
.dip-card:hover { transform: translateY(-4px) rotate(-0.4deg); box-shadow: var(--shadow-lg); }
.dip-img { transition: transform .5s ease; }
.dip-card:hover .dip-img img { transform: scale(1.04); }
.dip-card:hover .seal { animation: sealSpin 0.6s ease; }
@keyframes sealSpin {
  0%   { transform: rotate(0deg) scale(1); }
  50%  { transform: rotate(8deg) scale(1.08); }
  100% { transform: rotate(0deg) scale(1); }
}

/* Affiliation cards entrance */
.affil-card {
  transition: transform .4s cubic-bezier(.2,.8,.2,1), box-shadow .4s, border-color .4s;
}
.affil-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--sage-soft);
}

/* Experience cards — logo pulse */
.exp-card { transition: transform .4s cubic-bezier(.2,.8,.2,1), box-shadow .4s; }
.exp-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.exp-card:hover .exp-card-logo { animation: logoPulse 0.8s ease; }
@keyframes logoPulse {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.12); box-shadow: 0 0 0 8px rgba(31,76,80,0.10); }
  100% { transform: scale(1); }
}

/* ============================================================
   FAQ — slide-in items, animated marker
   ============================================================ */
.faq-list .faq-item {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(.2,.8,.2,1), border-color .3s, box-shadow .3s;
}
.faq-list.in .faq-item { opacity: 1; transform: translateX(0); }
.faq-list.in .faq-item:nth-child(1) { transition-delay: 0.1s; }
.faq-list.in .faq-item:nth-child(2) { transition-delay: 0.2s; }
.faq-list.in .faq-item:nth-child(3) { transition-delay: 0.3s; }
.faq-list.in .faq-item:nth-child(4) { transition-delay: 0.4s; }
.faq-list.in .faq-item:nth-child(5) { transition-delay: 0.5s; }
.faq-list.in .faq-item:nth-child(6) { transition-delay: 0.6s; }

.faq-item summary {
  position: relative;
  transition: background .3s, color .3s;
}
.faq-item summary:hover {
  background: rgba(151, 169, 139, 0.06);
}
.faq-item summary::after {
  transition: transform .35s cubic-bezier(.2,.8,.2,1), color .25s;
}
.faq-item[open] summary { color: var(--terracotta); }
.faq-item[open] summary::after { transform: rotate(135deg); }

/* Help card */
.faq-side .help {
  position: relative;
  overflow: hidden;
}
.faq-side .help::before {
  content: "";
  position: absolute;
  top: -40px; right: -40px;
  width: 120px; height: 120px;
  background: radial-gradient(circle, rgba(151,169,139,0.35) 0%, transparent 70%);
  border-radius: 50%;
  animation: helpBlob 6s ease-in-out infinite alternate;
}
@keyframes helpBlob {
  from { transform: scale(1) translate(0,0); }
  to   { transform: scale(1.2) translate(-10px, 10px); }
}

/* ============================================================
   TESTIMONIALS — idle float + quote mark animation
   ============================================================ */
.testim-card {
  transition: transform .4s cubic-bezier(.2,.8,.2,1), box-shadow .4s, border-color .4s;
  animation: testimFloat 8s ease-in-out infinite;
}
.testim-card:nth-child(2) { animation-delay: 2s; }
.testim-card:nth-child(3) { animation-delay: 4s; }
.testim-card:nth-child(4) { animation-delay: 6s; }
@keyframes testimFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-4px); }
}
.testim-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--sage-soft);
}
.testim-card::before {
  transition: transform .4s ease, color .3s;
}
.testim-card:hover::before {
  transform: scale(1.1) rotate(-6deg);
  color: var(--terracotta);
}
@media (prefers-reduced-motion: reduce) {
  .testim-card { animation: none; }
}

/* ============================================================
   BOOKING cards — icon scale + sparkle + border line
   ============================================================ */
.book-card {
  transition: transform .4s cubic-bezier(.2,.8,.2,1), box-shadow .4s, border-color .4s;
}
.book-card:hover .book-icon {
  background: var(--terracotta);
  color: var(--ivory);
  transform: rotate(-6deg) scale(1.08);
}
.book-icon {
  transition: background .35s, color .35s, transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s;
}
.book-card:hover .book-icon {
  box-shadow: 0 8px 18px rgba(201,123,91,0.25);
}
.book-card h4 { transition: color .3s; }
.book-card:hover h4 { color: var(--terracotta); }

/* Sparkle effect — small glints sweeping across card on hover */
.book-card::after {
  content: "";
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(105deg,
    transparent 0%,
    rgba(255,255,255,0.5) 50%,
    transparent 100%);
  transition: left .8s cubic-bezier(.2,.8,.2,1);
  pointer-events: none;
}
.book-card:hover::after { left: 200%; }

/* ============================================================
   EVENTS — date number breath + card hover lift
   ============================================================ */
.event-card {
  transition: transform .4s cubic-bezier(.2,.8,.2,1), box-shadow .4s;
  position: relative;
  overflow: hidden;
}
.event-card:hover {
  transform: translateY(-4px) scale(1.005);
  box-shadow: var(--shadow-lg);
}
.event-date {
  position: relative;
  overflow: hidden;
}
.event-date::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(151,169,139,0.20) 0%, transparent 60%);
  opacity: 0;
  transition: opacity .4s;
}
.event-card:hover .event-date::after { opacity: 1; }
.event-date .day {
  transition: transform .35s cubic-bezier(.2,.8,.2,1);
}
.event-card:hover .event-date .day {
  transform: scale(1.08);
  color: var(--terracotta);
}
.event-format {
  position: relative;
}
.event-format::before {
  content: "";
  position: absolute;
  left: 8px; top: 50%;
  width: 6px; height: 6px;
  background: var(--terracotta);
  border-radius: 50%;
  transform: translateY(-50%);
  animation: dotBlink 2.4s ease-in-out infinite;
  display: none; /* the bullet is in the text already */
}
@keyframes dotBlink {
  0%, 100% { opacity: 0.4; transform: translateY(-50%) scale(1); }
  50%      { opacity: 1;   transform: translateY(-50%) scale(1.3); }
}

/* ============================================================
   CTA strip — gentle pulsing border + button breath
   ============================================================ */
.cta-strip {
  position: relative;
  overflow: hidden;
}
.cta-strip::before {
  content: "";
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(circle at 20% 30%, rgba(151,169,139,0.20) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(201,123,91,0.18) 0%, transparent 50%);
  animation: ctaBg 18s ease-in-out infinite alternate;
}
.cta-strip > * { position: relative; }
@keyframes ctaBg {
  0%   { transform: translate(0,0) rotate(0deg); }
  100% { transform: translate(2%, -1%) rotate(2deg); }
}
.cta-strip .btn-primary {
  animation: ctaBreath 3s ease-in-out infinite;
}
@keyframes ctaBreath {
  0%, 100% { box-shadow: 0 2px 8px rgba(201,123,91,0.25); }
  50%      { box-shadow: 0 6px 22px rgba(201,123,91,0.45); }
}

/* ============================================================
   Service cards — additional hover lift + image vignette
   ============================================================ */
.svc-card {
  transition: transform .45s cubic-bezier(.2,.8,.2,1), box-shadow .45s, border-color .35s;
}
.svc-card:hover { transform: translateY(-5px); }
.svc-card h3 { transition: color .3s; }
.svc-card:hover h3 { color: var(--terracotta); }

/* Eyebrow underline animation */
.section-head.in .eyebrow::before,
.eyebrow.in::before {
  animation: eyebrowGrow 0.8s cubic-bezier(.2,.8,.2,1) forwards;
}
@keyframes eyebrowGrow {
  from { width: 0; }
  to   { width: 28px; }
}

/* Section titles — slight letter reveal animation */
.section-title { transition: opacity .8s ease; }

/* ============================================================
   SOCIAL SECTION
   ============================================================ */
.social {
  padding: 96px 0 64px;
  background:
    linear-gradient(180deg, var(--ivory-50) 0%, var(--ivory) 100%);
  position: relative;
  overflow: hidden;
}
.social::before {
  content: "";
  position: absolute;
  inset: -10%;
  background:
    radial-gradient(circle at 18% 30%, rgba(151,169,139,0.18) 0%, transparent 45%),
    radial-gradient(circle at 82% 70%, rgba(201,123,91,0.14) 0%, transparent 50%);
  animation: socialBlob 16s ease-in-out infinite alternate;
  z-index: 0;
}
.social > .container { position: relative; z-index: 1; }
@keyframes socialBlob {
  0%   { transform: translate(0,0); }
  100% { transform: translate(2%, -1%) scale(1.05); }
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
  margin-top: 48px;
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
}
.social-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 28px 28px;
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: 22px;
  text-decoration: none;
  color: var(--ink);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .4s cubic-bezier(.2,.8,.2,1), box-shadow .4s, border-color .4s;
}
.social-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.social-icon {
  flex-shrink: 0;
  width: 60px; height: 60px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: var(--white);
  transition: transform .4s cubic-bezier(.2,.8,.2,1);
}
.social-card:hover .social-icon { transform: rotate(-8deg) scale(1.08); }
.social-icon svg { width: 30px; height: 30px; }
.social-card.facebook .social-icon { background: #1877F2; }
.social-card.instagram .social-icon {
  background: linear-gradient(135deg, #F58529 0%, #DD2A7B 50%, #8134AF 100%);
}
.social-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.social-name {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--teal-700);
  font-weight: 500;
  line-height: 1.1;
}
.social-tag {
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.social-cta {
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terracotta);
  font-weight: 500;
  position: relative;
  padding-right: 22px;
  transition: padding-right .3s ease;
}
.social-cta::after {
  content: "→";
  position: absolute;
  right: 0; top: 50%;
  transform: translateY(-50%);
  transition: transform .3s ease;
}
.social-card:hover .social-cta { padding-right: 32px; }
.social-card:hover .social-cta::after { transform: translateY(-50%) translateX(4px); }

/* Sweep highlight on hover */
.social-card::after {
  content: "";
  position: absolute;
  top: 0; left: -100%;
  width: 50%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,0.45), transparent);
  transition: left .7s cubic-bezier(.2,.8,.2,1);
  pointer-events: none;
}
.social-card:hover::after { left: 200%; }

@media (max-width: 600px) {
  .social-card { padding: 20px 18px; gap: 14px; }
  .social-icon { width: 50px; height: 50px; }
  .social-icon svg { width: 26px; height: 26px; }
  .social-name { font-size: 19px; }
  .social-cta { display: none; }
}

.foot-social a.with-icon {
  display: flex; align-items: center; gap: 10px;
}
.foot-social svg {
  width: 18px; height: 18px;
  flex-shrink: 0;
  transition: transform .3s ease;
}
.foot-social a:hover svg { transform: scale(1.15); }

/* ============================================================
   CTA STRIP — animated soft texture
   ============================================================ */
.cta-strip { position: relative; isolation: isolate; }
.cta-strip::after {
  content: "";
  position: absolute;
  inset: -20%;
  background-image:
    radial-gradient(circle at 25% 35%, rgba(247,243,236,0.25) 0%, transparent 30%),
    radial-gradient(circle at 75% 65%, rgba(247,243,236,0.18) 0%, transparent 30%),
    radial-gradient(circle at 50% 50%, rgba(247,243,236,0.10) 0%, transparent 50%);
  filter: blur(40px);
  animation: ctaTexture 22s ease-in-out infinite alternate;
  z-index: -1;
  pointer-events: none;
}
@keyframes ctaTexture {
  0%   { transform: rotate(0deg) translate(0,0) scale(1); opacity: 0.85; }
  50%  { transform: rotate(8deg) translate(2%,-1%) scale(1.05); opacity: 1; }
  100% { transform: rotate(-6deg) translate(-2%,1%) scale(1.08); opacity: 0.9; }
}

/* Liquid wave-like overlay using SVG noise data URI */
.cta-strip .container { position: relative; z-index: 1; }
.cta-strip .container::before {
  content: "";
  position: absolute;
  inset: -10% -20%;
  background:
    conic-gradient(from 90deg at 50% 50%,
      rgba(255,255,255,0) 0%,
      rgba(255,255,255,0.08) 25%,
      rgba(255,255,255,0) 50%,
      rgba(255,255,255,0.06) 75%,
      rgba(255,255,255,0) 100%);
  animation: ctaSwirl 30s linear infinite;
  z-index: -1;
  pointer-events: none;
  filter: blur(30px);
}
@keyframes ctaSwirl {
  to { transform: rotate(360deg); }
}

/* ============================================================
   CONTACT — animated background texture
   ============================================================ */
.contact { position: relative; overflow: hidden; }
.contact::before {
  content: "";
  position: absolute;
  inset: -15%;
  background:
    radial-gradient(ellipse 50% 60% at 10% 25%, rgba(151,169,139,0.22) 0%, transparent 55%),
    radial-gradient(ellipse 55% 60% at 95% 80%, rgba(201,123,91,0.18) 0%, transparent 55%),
    radial-gradient(ellipse 40% 50% at 60% 10%, rgba(31,76,80,0.10) 0%, transparent 60%);
  filter: blur(50px);
  animation: contactFloat 26s ease-in-out infinite alternate;
  z-index: 0;
  pointer-events: none;
}
.contact::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(rgba(31,76,80,0.05) 1px, transparent 1px),
    radial-gradient(rgba(31,76,80,0.03) 1px, transparent 1px);
  background-size: 22px 22px, 11px 11px;
  background-position: 0 0, 5px 5px;
  animation: contactDots 60s linear infinite;
  z-index: 0;
  pointer-events: none;
  opacity: 0.6;
}
.contact > .container { position: relative; z-index: 1; }

@keyframes contactFloat {
  0%   { transform: translate(0,0) scale(1) rotate(0deg); }
  50%  { transform: translate(2%, -1.5%) scale(1.05) rotate(2deg); }
  100% { transform: translate(-2%, 1.5%) scale(1.08) rotate(-3deg); }
}
@keyframes contactDots {
  from { background-position: 0 0, 5px 5px; }
  to   { background-position: 22px 22px, 27px 27px; }
}

/* Floating soft orbs inside contact */
.contact-orbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.contact-orb {
  position: absolute;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--sage-bg) 0%, transparent 70%);
  filter: blur(28px);
  animation: orbFloat var(--odur, 24s) ease-in-out infinite alternate;
  animation-delay: var(--odelay, 0s);
  left: var(--ox, 50%);
  top: var(--oy, 50%);
}
.contact-orb.terracotta {
  background: radial-gradient(circle, rgba(201,123,91,0.20) 0%, transparent 70%);
}
@keyframes orbFloat {
  0%   { transform: translate(0,0) scale(1); }
  100% { transform: translate(var(--oxdrift, 60px), var(--oydrift, -40px)) scale(1.2); }
}

/* ============================================================
   ADMIN page — lang switcher chip
   ============================================================ */
.admin-lang {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: rgba(247,243,236,0.7);
  margin-right: 16px;
}
.admin-lang button {
  background: none;
  border: none;
  color: inherit;
  font-family: inherit;
  font-size: 12px;
  letter-spacing: 0.1em;
  padding: 4px 6px;
  cursor: pointer;
  transition: color .2s;
}
.admin-lang button.active { color: var(--copper); font-weight: 600; }
.admin-lang button:hover { color: var(--copper); }
.admin-lang .sep { opacity: 0.4; }

/* Admin diploma uploader */
.dip-upload {
  border: 2px dashed var(--line);
  border-radius: 12px;
  padding: 32px;
  text-align: center;
  cursor: pointer;
  transition: all .25s ease;
  background: var(--ivory-50);
}
.dip-upload:hover, .dip-upload.dragover {
  border-color: var(--terracotta);
  background: rgba(201,123,91,0.06);
}
.dip-upload svg {
  width: 36px; height: 36px;
  color: var(--muted);
  margin-bottom: 8px;
}
.dip-upload-hint {
  display: block;
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 6px;
}
.dip-thumb-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
  margin-top: 18px;
}
.dip-thumb {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: var(--ivory);
  border: 1px solid var(--line-soft);
}
.dip-thumb img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  display: block;
}
.dip-thumb-info {
  padding: 10px 12px;
  font-size: 13px;
}
.dip-thumb-info .t {
  font-family: var(--serif);
  color: var(--teal-700);
  font-size: 14.5px;
  font-weight: 500;
  margin-bottom: 2px;
}
.dip-thumb-info .o { color: var(--muted); font-size: 11.5px; }
.dip-thumb-x {
  position: absolute;
  top: 6px; right: 6px;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(184,92,66,0.92);
  color: white;
  border: none;
  cursor: pointer;
  font-size: 16px;
  display: grid;
  place-items: center;
}

/* Témoignage page lang chip variant — visible on light bg */
.tm-lang {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  letter-spacing: 0.1em;
}
.tm-lang button {
  background: none;
  border: none;
  font-family: inherit;
  font-size: 12px;
  letter-spacing: 0.14em;
  padding: 6px 10px;
  cursor: pointer;
  color: var(--muted);
  border-radius: 999px;
}
.tm-lang button.active { color: var(--terracotta); font-weight: 600; }


