/* ============================================================
   VELARÉ — Hair Studio · style.css
   Palette:
     --primary   : #0F172A  (deep slate)
     --accent    : #2563EB  (royal blue)
     --secondary : #38BDF8  (sky)
     --bg        : #F8FAFC  (cloud)
     --text      : #111827  (ink)
   Sections:
     01 Tokens & reset        08 Services
     02 Utilities & buttons   09 Gallery + lightbox
     03 Preloader & progress  10 Why choose us
     04 Navbar                11 Testimonials slider
     05 Hero                  12 CTA
     06 Reveal animations     13 Contact + form
     07 About + stats         14 Footer, back-to-top, a11y
   ============================================================ */

/* ---------- 01. Tokens & reset ---------- */
:root {
  --primary: #0F172A;
  --accent: #2563EB;
  --secondary: #38BDF8;
  --bg: #F8FAFC;
  --text: #111827;
  --text-dim: #4B5563;
  --white: #FFFFFF;
  --line: rgba(15, 23, 42, 0.08);
  --line-accent: rgba(37, 99, 235, 0.22);

  --font-display: "Poppins", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;

  --radius: 20px;
  --radius-sm: 12px;
  --shadow-sm: 0 4px 16px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 14px 40px rgba(15, 23, 42, 0.10);
  --shadow-lg: 0 24px 70px rgba(15, 23, 42, 0.16);
  --shadow-accent: 0 12px 34px rgba(37, 99, 235, 0.30);
  --grad-accent: linear-gradient(135deg, #2563EB 0%, #38BDF8 100%);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --nav-h: 76px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

h1, h2, h3 { font-family: var(--font-display); color: var(--primary); line-height: 1.18; font-weight: 600; }
h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); letter-spacing: -0.02em; }
h3 { font-size: 1.15rem; }

/* ---------- 02. Utilities & buttons ---------- */
.container { width: min(1180px, 92%); margin-inline: auto; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 5vw, 5rem); align-items: center; }

.section { padding: clamp(4.5rem, 9vw, 7.5rem) 0; position: relative; }
.section-head { text-align: center; max-width: 620px; margin: 0 auto clamp(2.8rem, 5vw, 4rem); }
.section-sub { color: var(--text-dim); margin-top: 0.9rem; }

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.8rem;
}

.grad-text {
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.glass-card {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.85rem 1.9rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.35s;
  position: relative;
  overflow: hidden;
}
.btn-primary { background: var(--grad-accent); background-size: 160% 160%; color: var(--white); box-shadow: var(--shadow-accent); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 18px 44px rgba(37, 99, 235, 0.42); background-position: 100% 50%; }
.btn-ghost { background: var(--white); color: var(--primary); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { transform: translateY(-3px); border-color: var(--line-accent); box-shadow: var(--shadow-md); }
.btn-light { background: var(--white); color: var(--accent); box-shadow: 0 14px 40px rgba(255,255,255,0.25); }
.btn-light:hover { transform: translateY(-3px) scale(1.02); }
.btn-lg { padding: 1.05rem 2.5rem; font-size: 0.98rem; }
.btn-block { width: 100%; }

/* Ripple effect (span injected by JS) */
.ripple { position: relative; overflow: hidden; }
.ripple-wave {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transform: scale(0);
  animation: ripple 0.65s ease-out forwards;
  pointer-events: none;
}
@keyframes ripple { to { transform: scale(3.4); opacity: 0; } }

/* ---------- 03. Preloader & scroll progress ---------- */
.preloader {
  position: fixed; inset: 0;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.4rem;
  background: var(--bg);
  transition: opacity 0.6s var(--ease), visibility 0.6s;
}
.preloader.done { opacity: 0; visibility: hidden; }
.preloader-logo {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary);
  animation: loaderPulse 1.2s ease-in-out infinite;
}
.preloader-logo span { color: var(--accent); }
@keyframes loaderPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }
.preloader-bar {
  width: 180px; height: 3px;
  border-radius: 3px;
  background: rgba(15, 23, 42, 0.08);
  overflow: hidden;
}
.preloader-bar span {
  display: block;
  width: 40%; height: 100%;
  border-radius: 3px;
  background: var(--grad-accent);
  animation: loaderSlide 1.1s ease-in-out infinite;
}
@keyframes loaderSlide { 0% { transform: translateX(-100%); } 100% { transform: translateX(350%); } }

.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px; width: 0;
  background: var(--grad-accent);
  z-index: 1500;
}

/* ---------- 04. Navbar ---------- */
.navbar {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  z-index: 1000;
  background: transparent;
  transition: background 0.4s, box-shadow 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}
.navbar.scrolled {
  background: rgba(248, 250, 252, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; }

.logo { display: inline-flex; align-items: center; gap: 0.55rem; }
.logo-mark {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--grad-accent);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  box-shadow: var(--shadow-accent);
}
.logo-text { font-family: var(--font-display); font-weight: 600; font-size: 1.35rem; color: var(--primary); letter-spacing: 0.01em; }
.logo-text.light { color: var(--white); }

.nav-links { display: flex; align-items: center; gap: 1.8rem; }
.nav-link {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-dim);
  position: relative;
  padding: 0.3rem 0;
  transition: color 0.3s;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 2px;
  border-radius: 2px;
  background: var(--grad-accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease);
}
.nav-link:hover, .nav-link.active { color: var(--accent); }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); transform-origin: left; }
.nav-cta { padding: 0.65rem 1.5rem; font-size: 0.84rem; }

.hamburger { display: none; flex-direction: column; gap: 6px; padding: 6px; z-index: 1001; }
.hamburger span { width: 26px; height: 2px; border-radius: 2px; background: var(--primary); transition: transform 0.35s var(--ease), opacity 0.3s; }
.hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- 05. Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 2.5rem) 0 4rem;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 45% at 12% 8%, rgba(56, 189, 248, 0.14), transparent),
    radial-gradient(ellipse 55% 45% at 90% 85%, rgba(37, 99, 235, 0.10), transparent),
    var(--bg);
}

/* Animated gradient blobs */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.5;
  animation: blobMove 16s ease-in-out infinite alternate;
  pointer-events: none;
}
.blob-1 { width: 420px; height: 420px; top: -120px; left: -100px; background: rgba(56, 189, 248, 0.4); }
.blob-2 { width: 380px; height: 380px; bottom: -140px; right: -80px; background: rgba(37, 99, 235, 0.32); animation-delay: -5s; }
.blob-3 { width: 240px; height: 240px; top: 42%; left: 46%; background: rgba(147, 197, 253, 0.35); animation-delay: -10s; }
@keyframes blobMove {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, -30px) scale(1.12); }
  100% { transform: translate(-30px, 30px) scale(0.95); }
}

/* Floating decorative dots & rings (mouse parallax targets) */
.float-dot, .float-ring { position: absolute; pointer-events: none; animation: floatY 8s ease-in-out infinite; }
.float-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--grad-accent); opacity: 0.65; }
.float-ring { border: 2px solid rgba(37, 99, 235, 0.35); border-radius: 50%; }
.d1 { top: 22%; left: 8%; }
.d2 { top: 68%; left: 16%; animation-delay: -3s; }
.r1 { width: 34px; height: 34px; top: 18%; right: 12%; animation-delay: -2s; }
.r2 { width: 20px; height: 20px; top: 62%; right: 20%; animation-delay: -5s; }
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-26px); } }

.hero-inner { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2.5rem, 5vw, 4.5rem); align-items: center; position: relative; z-index: 2; }

.hero-eyebrow { font-size: 0.82rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent); }
.hero-title {
  font-size: clamp(2.5rem, 5.6vw, 4.1rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin: 1rem 0 1.3rem;
}
.typing-wrap { display: inline-flex; align-items: baseline; white-space: nowrap; }
.typing { background: var(--grad-accent); -webkit-background-clip: text; background-clip: text; color: transparent; }
.caret {
  display: inline-block;
  width: 3px;
  height: 0.95em;
  margin-left: 4px;
  border-radius: 2px;
  background: var(--accent);
  align-self: center;
  animation: caretBlink 0.9s steps(1) infinite;
}
@keyframes caretBlink { 0%, 55% { opacity: 1; } 56%, 100% { opacity: 0; } }

.hero-sub { max-width: 480px; color: var(--text-dim); font-size: 1.05rem; }
.hero-actions { display: flex; gap: 0.9rem; flex-wrap: wrap; margin-top: 2rem; }

.hero-trust { list-style: none; display: flex; gap: 2.2rem; margin-top: 2.6rem; }
.hero-trust li { font-size: 0.82rem; color: var(--text-dim); display: flex; flex-direction: column; line-height: 1.4; }
.hero-trust strong { font-family: var(--font-display); font-size: 1.25rem; color: var(--primary); }

/* Hero image */
.hero-media { display: flex; justify-content: center; }
.hero-img-wrap {
  position: relative;
  width: min(460px, 100%);
  border-radius: 28px;
  animation: heroFloat 7s ease-in-out infinite;
  transition: transform 0.25s ease-out;
  transform-style: preserve-3d;
  will-change: transform;
}
@keyframes heroFloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -16px; } }
.hero-img-wrap img {
  width: 100%;
  border-radius: 28px;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 7 / 8;
  object-fit: cover;
}
.hero-glow {
  position: absolute;
  inset: 8% -6% -4% -6%;
  z-index: -1;
  border-radius: 40px;
  background: var(--grad-accent);
  opacity: 0.28;
  filter: blur(44px);
}
.hero-chip {
  position: absolute;
  left: -1.4rem;
  bottom: 1.8rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.8rem 1.1rem;
  font-size: 0.78rem;
  line-height: 1.35;
  color: var(--text-dim);
  animation: floatY 6s ease-in-out infinite;
  animation-delay: -2s;
}
.hero-chip strong { color: var(--primary); }
.chip-icon {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: var(--grad-accent);
  color: var(--white);
  font-size: 1rem;
  flex-shrink: 0;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  left: 50%; bottom: 1.6rem;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  z-index: 3;
}
.mouse { width: 24px; height: 38px; border: 2px solid rgba(15, 23, 42, 0.3); border-radius: 13px; position: relative; }
.wheel {
  position: absolute;
  top: 7px; left: 50%;
  width: 3px; height: 7px;
  margin-left: -1.5px;
  border-radius: 3px;
  background: var(--accent);
  animation: wheel 1.8s ease-in-out infinite;
}
@keyframes wheel { 0% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(12px); } }
.scroll-label { font-size: 0.68rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--text-dim); }

/* Hero load-in sequence */
.fade-item { opacity: 0; transform: translateY(26px); animation: fadeUp 0.9s var(--ease) forwards; }
.hero-copy .fade-item:nth-child(1) { animation-delay: 0.15s; }
.hero-copy .fade-item:nth-child(2) { animation-delay: 0.3s; }
.hero-copy .fade-item:nth-child(3) { animation-delay: 0.45s; }
.hero-copy .fade-item:nth-child(4) { animation-delay: 0.6s; }
.hero-copy .fade-item:nth-child(5) { animation-delay: 0.75s; }
.hero-media.fade-item { animation-delay: 0.5s; }
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

/* ---------- 06. Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(38px); transition: opacity 0.85s var(--ease), transform 0.85s var(--ease); }
.reveal.visible { opacity: 1; transform: translateY(0); }
/* Stagger siblings inside grids */
.services-grid .reveal:nth-child(3n+2), .why-grid .reveal:nth-child(4n+2), .gallery-grid .reveal:nth-child(3n+2) { transition-delay: 0.1s; }
.services-grid .reveal:nth-child(3n+3), .why-grid .reveal:nth-child(4n+3), .gallery-grid .reveal:nth-child(3n+3) { transition-delay: 0.2s; }
.why-grid .reveal:nth-child(4n+4) { transition-delay: 0.3s; }

/* ---------- 07. About + stats ---------- */
.about-media { position: relative; }
.about-media > img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 7 / 8;
  object-fit: cover;
  width: 100%;
}
.about-card {
  position: absolute;
  right: -1.2rem;
  bottom: -1.4rem;
  padding: 1.2rem 1.7rem;
  text-align: center;
}
.about-card-num { display: block; font-family: var(--font-display); font-weight: 700; font-size: 2rem; color: var(--accent); }
.about-card-label { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-dim); }

.about-copy h2 { margin-bottom: 1.3rem; }
.about-copy > p { color: var(--text-dim); margin-bottom: 1rem; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.9rem;
  margin-top: 2rem;
}
.stat-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  padding: 1.1rem 0.8rem;
  text-align: center;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s;
}
.stat-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--line-accent); }
.stat-num { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; color: var(--accent); }
.stat-label { font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-dim); }

/* ---------- 08. Services ---------- */
.services { background: var(--white); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }

/* Gradient border via padding trick */
.service-card {
  position: relative;
  background: linear-gradient(var(--bg), var(--bg)) padding-box,
              linear-gradient(135deg, rgba(37,99,235,0.25), rgba(56,189,248,0.12)) border-box;
  border: 1.5px solid transparent;
  border-radius: var(--radius);
  padding: 2.2rem 1.9rem;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
  overflow: hidden;
}
/* Mouse-follow spotlight (position set by JS via CSS vars) */
.service-card::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), rgba(56, 189, 248, 0.14), transparent 65%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.service-card:hover { transform: translateY(-9px); box-shadow: var(--shadow-md); }
.service-card:hover::before { opacity: 1; }
.service-icon {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  font-size: 1.45rem;
  border-radius: 16px;
  background: var(--grad-accent);
  color: var(--white);
  box-shadow: var(--shadow-accent);
  margin-bottom: 1.3rem;
  transition: transform 0.45s var(--ease);
}
.service-card:hover .service-icon { transform: scale(1.12) rotate(-7deg); }
.service-card h3 { margin-bottom: 0.6rem; }
.service-card p { color: var(--text-dim); font-size: 0.9rem; margin-bottom: 1.2rem; }
.service-price { font-family: var(--font-display); font-weight: 600; color: var(--accent); }

/* ---------- 09. Gallery + lightbox ---------- */
.gallery-filters { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 2.4rem; }
.filter-btn {
  padding: 0.55rem 1.5rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--text-dim);
  background: var(--white);
  border: 1px solid var(--line);
  transition: background 0.35s, color 0.35s, transform 0.35s, box-shadow 0.35s;
}
.filter-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.filter-btn.active { background: var(--grad-accent); color: var(--white); border-color: transparent; box-shadow: var(--shadow-accent); }

.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.gallery-item {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: zoom-in;
  box-shadow: var(--shadow-sm);
  transition: transform 0.5s var(--ease), opacity 0.5s var(--ease), box-shadow 0.5s;
}
.gallery-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 0.7s var(--ease); }
.gallery-item:hover { box-shadow: var(--shadow-md); }
.gallery-item:hover img, .gallery-item:focus-within img { transform: scale(1.08); }
.gallery-item.hide { transform: scale(0.85); opacity: 0; pointer-events: none; position: absolute; visibility: hidden; }

.gallery-overlay {
  position: absolute; inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.1rem 1.2rem;
  background: linear-gradient(180deg, transparent 50%, rgba(15, 23, 42, 0.8));
  opacity: 0;
  transition: opacity 0.45s var(--ease);
}
.gallery-item:hover .gallery-overlay, .gallery-item:focus-within .gallery-overlay { opacity: 1; }
.gallery-overlay span { font-family: var(--font-display); font-weight: 600; color: var(--white); transform: translateY(8px); transition: transform 0.45s var(--ease); }
.gallery-overlay small { color: var(--secondary); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; transform: translateY(8px); transition: transform 0.45s var(--ease) 0.05s; }
.gallery-item:hover .gallery-overlay span, .gallery-item:hover .gallery-overlay small { transform: translateY(0); }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0;
  z-index: 1600;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(8px);
  animation: lbFade 0.35s var(--ease);
}
.lightbox[hidden] { display: none; }
@keyframes lbFade { from { opacity: 0; } to { opacity: 1; } }
.lightbox-figure { max-width: min(960px, 88vw); text-align: center; }
.lightbox-figure img {
  max-width: 100%;
  max-height: 78vh;
  margin-inline: auto;
  border-radius: var(--radius-sm);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6);
  animation: lbZoom 0.4s var(--ease);
}
@keyframes lbZoom { from { transform: scale(0.93); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.lightbox-figure figcaption { margin-top: 1rem; font-family: var(--font-display); color: var(--white); }
.lightbox-close, .lightbox-nav {
  position: absolute;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
  transition: background 0.3s;
}
.lightbox-close { top: 1.3rem; right: 1.5rem; width: 46px; height: 46px; font-size: 1.6rem; }
.lightbox-nav { top: 50%; transform: translateY(-50%); width: 48px; height: 48px; font-size: 1.1rem; }
.lightbox-nav.prev { left: 1.3rem; }
.lightbox-nav.next { right: 1.3rem; }
.lightbox-close:hover, .lightbox-nav:hover { background: rgba(56, 189, 248, 0.4); }

/* ---------- 10. Why choose us ---------- */
.why { background: var(--white); }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.3rem; }
.why-card {
  position: relative;
  background: var(--bg);
  border-radius: var(--radius);
  padding: 2.1rem 1.6rem;
  text-align: center;
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform 0.45s var(--ease), box-shadow 0.45s;
}
/* Animated border sweep */
.why-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 3px;
  background: var(--grad-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.55s var(--ease);
}
.why-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.why-card:hover::after { transform: scaleX(1); }
.why-icon { font-size: 1.9rem; margin-bottom: 0.9rem; }
.why-card h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.why-card p { font-size: 0.87rem; color: var(--text-dim); }

/* ---------- 11. Testimonials slider ---------- */
.slider { position: relative; max-width: 720px; margin-inline: auto; min-height: 300px; }
.slide {
  position: absolute;
  inset: 0 0 auto 0;
  padding: 2.6rem 2.4rem 5rem;
  text-align: center;
  opacity: 0;
  transform: scale(0.97);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  pointer-events: none;
}
.slide.active { position: relative; opacity: 1; transform: scale(1); pointer-events: auto; }
.stars { color: #F59E0B; letter-spacing: 0.22em; margin-bottom: 1rem; }
.slide p { font-size: 1.05rem; color: var(--text); font-style: italic; max-width: 560px; margin-inline: auto; }
.slide footer { margin-top: 1.4rem; }
.slide cite { display: block; font-family: var(--font-display); font-weight: 600; font-style: normal; color: var(--primary); }
.slide footer span { font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-dim); }

.slider-controls {
  position: absolute;
  left: 50%; bottom: 1.5rem;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 1.1rem;
  z-index: 5;
}
.slider-btn {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--accent);
  box-shadow: var(--shadow-sm);
  transition: background 0.3s, color 0.3s, transform 0.3s;
}
.slider-btn:hover { background: var(--grad-accent); color: var(--white); transform: translateY(-2px); }
.slider-dots { display: flex; gap: 0.5rem; }
.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.18);
  transition: background 0.3s, transform 0.3s;
}
.dot.active { background: var(--accent); transform: scale(1.35); }

/* ---------- 12. CTA ---------- */
.cta {
  position: relative;
  padding: clamp(4.5rem, 9vw, 7rem) 0;
  background: linear-gradient(120deg, #0F172A 0%, #1E3A8A 55%, #2563EB 100%);
  background-size: 200% 200%;
  animation: gradShift 10s ease-in-out infinite alternate;
  overflow: hidden;
}
@keyframes gradShift { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
.cta::before, .cta::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.18);
  filter: blur(60px);
}
.cta::before { width: 300px; height: 300px; top: -100px; right: 8%; }
.cta::after { width: 240px; height: 240px; bottom: -90px; left: 6%; }
.cta-inner { position: relative; z-index: 2; text-align: center; }
.cta h2 { color: var(--white); font-size: clamp(2rem, 4.5vw, 3.2rem); margin-bottom: 0.9rem; }
.cta p { color: rgba(255, 255, 255, 0.75); margin-bottom: 2.1rem; }

/* ---------- 13. Contact + form ---------- */
.contact-grid { align-items: start; }
.contact-img { border-radius: var(--radius); box-shadow: var(--shadow-md); aspect-ratio: 3 / 2; object-fit: cover; width: 100%; margin-bottom: 1.8rem; }

.info-list { list-style: none; }
.info-list li { display: flex; gap: 1rem; padding: 0.85rem 0; border-bottom: 1px solid var(--line); }
.info-list li:last-child { border-bottom: none; }
.info-icon {
  flex: 0 0 44px;
  height: 44px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid var(--line-accent);
  font-size: 1rem;
}
.info-list h3 { font-size: 0.95rem; margin-bottom: 0.1rem; }
.info-list p { color: var(--text-dim); font-size: 0.9rem; }
.info-list a:hover { color: var(--accent); }

.map-placeholder {
  margin: 1.6rem 0;
  height: 200px;
  display: grid;
  place-items: center;
  text-align: center;
  border-radius: var(--radius-sm);
  border: 1.5px dashed var(--line-accent);
  background: rgba(37, 99, 235, 0.04);
  color: var(--text-dim);
  font-size: 0.9rem;
  line-height: 1.6;
}

.social-icons { display: flex; gap: 0.7rem; }
.social-icons a {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--accent);
  box-shadow: var(--shadow-sm);
  transition: background 0.3s, color 0.3s, transform 0.3s;
}
.social-icons a:hover { background: var(--grad-accent); color: var(--white); transform: translateY(-4px); }

.contact-form-wrap { padding: 2.4rem 2.2rem; }
.form-title { font-size: 1.35rem; margin-bottom: 1.6rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* Animated floating-label inputs */
.form-group { position: relative; margin-bottom: 1.15rem; display: flex; flex-direction: column; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1rem 1rem 0.55rem;
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--text);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.form-group select { padding: 0.8rem 1rem; color: var(--text-dim); appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--accent) 50%), linear-gradient(135deg, var(--accent) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
.form-group textarea { padding-top: 1.4rem; resize: vertical; }
.form-group label {
  position: absolute;
  left: 1rem; top: 0.85rem;
  font-size: 0.9rem;
  color: var(--text-dim);
  pointer-events: none;
  transition: transform 0.25s var(--ease), font-size 0.25s, color 0.25s;
  transform-origin: left top;
}
.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label {
  transform: translateY(-0.52rem);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}
.form-group.invalid input, .form-group.invalid select { border-color: #DC2626; }
.error-msg { color: #DC2626; font-size: 0.74rem; margin-top: 0.3rem; min-height: 1em; }
.form-success { margin-top: 1rem; text-align: center; color: var(--accent); font-size: 0.9rem; font-weight: 500; animation: fadeUp 0.5s var(--ease); }

/* ---------- 14. Footer, back-to-top, a11y ---------- */
.footer { background: var(--primary); color: rgba(255, 255, 255, 0.7); padding-top: 4rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2.4rem; padding-bottom: 3rem; }
.footer-brand p { font-size: 0.88rem; margin-top: 1rem; max-width: 280px; }
.footer h3 { color: var(--white); font-size: 0.82rem; letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 1rem; }
.footer-col { display: flex; flex-direction: column; }
.footer-col a { font-size: 0.9rem; padding: 0.28rem 0; color: rgba(255, 255, 255, 0.65); transition: color 0.3s, transform 0.3s; }
.footer-col a:hover { color: var(--secondary); transform: translateX(4px); }
.footer-social { margin-top: 0.2rem; }
.footer-social a { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.12); color: var(--white); box-shadow: none; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); padding: 1.3rem 0; text-align: center; font-size: 0.8rem; }

.back-to-top {
  position: fixed;
  right: 1.5rem; bottom: 1.5rem;
  width: 48px; height: 48px;
  border-radius: 14px;
  background: var(--grad-accent);
  color: var(--white);
  font-size: 1.15rem;
  font-weight: 600;
  box-shadow: var(--shadow-accent);
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
  z-index: 900;
}
.back-to-top.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-to-top:hover { transform: translateY(-4px); }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal, .fade-item { opacity: 1; transform: none; }
  .preloader { display: none; }
}
