/* ═══════════════════════════════════════════════════
   Alpi Dent Antalya — 2026 Redesign
   Font: Sora · Icons: Tabler · Mobile-first
   ═══════════════════════════════════════════════════ */

:root {
  /* Brand */
  --primary: #2124a4;
  --primary-dark: #191b7a;
  --primary-light: #3a3dba;
  --primary-050: #f2f2fb;
  --primary-100: #e6e7f7;
  --primary-glow: rgba(33, 36, 164, 0.18);

  /* Neutrals */
  --ink: #0b0b16;
  --ink-700: #35364a;
  --ink-500: #6b6c80;
  --ink-400: #9799ac;
  --line: #e9e9f1;
  --surface: #ffffff;
  --surface-alt: #f6f6fb;
  --surface-dark: #101124;

  /* Type */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Sora', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Shape */
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 26px;
  --r-xl: 34px;
  --r-pill: 999px;

  /* Shadow */
  --sh-sm: 0 2px 8px rgba(16, 17, 36, 0.05);
  --sh-md: 0 12px 30px rgba(16, 17, 36, 0.08);
  --sh-lg: 0 28px 60px rgba(16, 17, 36, 0.12);
  --sh-primary: 0 16px 40px rgba(33, 36, 164, 0.28);

  /* Motion */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --spring: cubic-bezier(0.34, 1.3, 0.5, 1);

  --container: 1280px;
  --header-h: 76px;
}

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  font-weight: 400;
  color: var(--ink);
  background: var(--surface);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; font-size: 1rem; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }

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

/* ─── Typography ─── */
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.14; font-weight: 700; letter-spacing: -0.02em; }
.section-title { font-size: clamp(1.6rem, 3.8vw, 2.4rem); font-weight: 700; color: var(--ink); }
.section-text { color: var(--ink-500); font-size: clamp(0.98rem, 1.2vw, 1.05rem); max-width: 56ch; }
.stat-num, .hero-float-num, .jstep-no, .rating-score { font-family: var(--font-display); }
.text-gradient {
  background: linear-gradient(100deg, var(--primary) 0%, var(--primary-light) 60%, #6d70e0 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--primary); margin-bottom: 16px;
}
.eyebrow i { font-size: 0.7rem; }
.eyebrow-center { justify-content: center; }
.eyebrow-light { color: #b9bbf5; }

.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-alt { background: var(--surface-alt); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto clamp(40px, 6vw, 64px); }
.section-head .section-text { margin: 0 auto; }

/* ─── Buttons ─── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-weight: 600; font-size: 0.95rem; padding: 13px 24px; border-radius: var(--r-pill);
  transition: transform 0.25s var(--spring), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
  white-space: nowrap;
}
.btn i { font-size: 1.15em; transition: transform 0.25s var(--ease); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: var(--sh-primary); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); }
.btn-primary:hover i.ti-arrow-right { transform: translateX(4px); }
.btn-ghost { background: rgba(33,36,164,0.06); color: var(--primary); }
.btn-ghost:hover { background: rgba(33,36,164,0.12); transform: translateY(-2px); }
.btn-light { background: #fff; color: var(--primary); box-shadow: var(--sh-sm); }
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--sh-md); }
.btn-sm { padding: 10px 18px; font-size: 0.88rem; }
.btn-lg { padding: 16px 30px; font-size: 1rem; }
.btn-full { width: 100%; }

/* ═══════════ Header ═══════════ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: height 0.3s var(--ease), background 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.site-header.scrolled { height: 64px; border-color: var(--line); box-shadow: var(--sh-sm); }
.header-inner { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.brand-logo { height: 40px; width: auto; transition: height 0.3s var(--ease); }
.site-header.scrolled .brand-logo { height: 34px; }

.nav { display: none; gap: 4px; }
.nav-link {
  position: relative; padding: 8px 16px; font-weight: 500; font-size: 0.95rem;
  color: var(--ink-700); border-radius: var(--r-pill); transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.nav-link:hover, .nav-link.active { color: var(--primary); background: var(--primary-050); }

.header-actions { display: flex; align-items: center; gap: 12px; }
.header-actions .btn { display: none; }

.nav-toggle { display: flex; flex-direction: column; gap: 5px; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.3s var(--ease), opacity 0.2s var(--ease); }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.mobile-drawer {
  position: fixed; top: var(--header-h); left: 0; right: 0;
  background: #fff; border-bottom: 1px solid var(--line);
  transform: translateY(-120%); transition: transform 0.4s var(--ease);
  z-index: 99; box-shadow: var(--sh-lg);
}
.mobile-drawer.open { transform: translateY(0); }
.mobile-nav { display: flex; flex-direction: column; gap: 4px; padding: 20px 22px 28px; }
.mobile-link { padding: 14px 16px; font-weight: 500; font-size: 1.05rem; border-radius: var(--r-sm); color: var(--ink-700); }
.mobile-link:hover { background: var(--primary-050); color: var(--primary); }
.mobile-nav .btn { margin-top: 10px; }

/* ═══════════ Hero ═══════════ */
.hero {
  position: relative; padding: calc(var(--header-h) + clamp(48px, 6vw, 92px)) 0 clamp(52px, 7vw, 88px);
  overflow: hidden;
  background:
    radial-gradient(1100px 620px at 12% -8%, rgba(58,61,186,0.16), transparent 62%),
    radial-gradient(1000px 720px at 102% 4%, rgba(109,112,224,0.16), transparent 58%),
    radial-gradient(1200px 900px at 50% 120%, rgba(33,36,164,0.10), transparent 60%),
    linear-gradient(180deg, #f2f2fc 0%, #f6f6fd 48%, #ffffff 100%);
}
.hero::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 130px; z-index: 0;
  background: linear-gradient(180deg, transparent, #fff); pointer-events: none;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.hero-orb { position: absolute; border-radius: 50%; filter: blur(80px); }
.hero-orb-1 { width: 480px; height: 480px; background: radial-gradient(circle, rgba(109,112,224,0.55), transparent 70%); top: -140px; right: -60px; animation: float 13s ease-in-out infinite; }
.hero-orb-2 { width: 420px; height: 420px; background: radial-gradient(circle, rgba(169,171,240,0.5), transparent 70%); bottom: -170px; left: -110px; animation: float 16s ease-in-out infinite reverse; }
.hero-orb-3 { width: 340px; height: 340px; background: radial-gradient(circle, rgba(88,196,221,0.26), transparent 70%); top: 40%; left: 44%; animation: float 20s ease-in-out infinite; }
.hero-noise {
  position: absolute; inset: 0; opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@keyframes float { 0%,100% { transform: translateY(0) translateX(0); } 50% { transform: translateY(-30px) translateX(12px); } }

.hero-inner { position: relative; z-index: 1; display: grid; gap: 44px; align-items: center; }

.badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--sh-sm);
  padding: 8px 16px; border-radius: var(--r-pill);
  font-size: 0.83rem; font-weight: 600; color: var(--primary-dark);
}
.badge i { color: var(--primary); }
.hero-title { font-size: clamp(2.3rem, 6.2vw, 3.7rem); font-weight: 800; letter-spacing: -0.03em; margin: 20px 0 18px; }
.hero-sub { font-size: clamp(1rem, 1.35vw, 1.12rem); color: var(--ink-500); max-width: 52ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 32px 0 30px; }
.hero-trust { display: flex; flex-direction: column; gap: 12px; }
.hero-trust li { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; font-weight: 500; color: var(--ink-700); }
.hero-trust i { color: var(--primary); font-size: 1.15rem; }

/* Hero visual */
.hero-visual { position: relative; margin: 12px auto 0; max-width: 560px; width: 100%; }
.hero-card { border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--sh-lg); }
.ba-stack { display: flex; flex-direction: column; gap: 12px; }
.ba-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.ba-thumb {
  position: relative; aspect-ratio: 16/10; border-radius: 12px; overflow: hidden;
  border: 2px solid transparent; padding: 0; background: none; cursor: pointer;
  box-shadow: var(--sh-sm); transition: transform 0.2s var(--ease), border-color 0.2s var(--ease);
}
.ba-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ba-thumb::after { content: ''; position: absolute; inset: 0; background: rgba(11,11,22,0.12); transition: background 0.2s var(--ease); }
.ba-thumb:hover { transform: translateY(-2px); }
.ba-thumb:hover::after { background: rgba(11,11,22,0); }
.ba-thumb.is-active { border-color: var(--primary); }
.ba-thumb.is-active::after { background: rgba(33,36,164,0); }
.hero-float {
  position: absolute; background: rgba(255,255,255,0.85); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.7); box-shadow: var(--sh-md);
  border-radius: var(--r-md); padding: 14px 18px; display: flex; align-items: center; gap: 12px;
}
.hero-float-num { display: block; font-size: 1.3rem; font-weight: 700; color: var(--primary); line-height: 1; }
.hero-float-label { display: block; font-size: 0.76rem; color: var(--ink-500); margin-top: 3px; }
.hero-float-1 { bottom: 26px; left: -14px; animation: float 6s ease-in-out infinite; }
.hero-float-2 { top: 30px; right: -14px; animation: float 7s ease-in-out infinite reverse; }
.hero-float-2 i { color: #f5b301; font-size: 1.7rem; }

/* ═══════════ Before / After slider ═══════════ */
.ba { position: relative; overflow: hidden; aspect-ratio: 16 / 10; touch-action: pan-y; user-select: none; }
.ba .ba-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba-before {
  /* left portion visible up to --pos; placeholder "before" look — replace with real pre-treatment photo */
  clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0);
  filter: sepia(0.5) saturate(1.35) brightness(0.92) contrast(1.02);
}
.ba-divider {
  position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 3px;
  background: #fff; transform: translateX(-50%); box-shadow: 0 0 0 1px rgba(0,0,0,0.06), 0 0 14px rgba(0,0,0,0.28);
  pointer-events: none; z-index: 3;
}
.ba-handle {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 46px; height: 46px; border-radius: 50%; background: #fff; color: var(--primary);
  display: grid; place-items: center; font-size: 1.35rem; box-shadow: var(--sh-md);
}
.ba-tag {
  position: absolute; bottom: 16px; z-index: 3; pointer-events: none;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: #fff; background: rgba(11, 11, 22, 0.55); backdrop-filter: blur(4px);
  padding: 6px 12px; border-radius: var(--r-pill);
}
.ba-tag-before { left: 16px; }
.ba-tag-after { right: 16px; }
.ba-range {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0;
  opacity: 0; cursor: ew-resize; z-index: 4; -webkit-appearance: none; appearance: none; background: transparent;
}
.ba-range::-webkit-slider-thumb { -webkit-appearance: none; width: 48px; height: 100%; cursor: ew-resize; }
.ba-range::-moz-range-thumb { width: 48px; height: 100%; border: 0; background: transparent; cursor: ew-resize; }
.ba-range:focus-visible { outline: none; }
.ba-range:focus-visible + .ba-divider,
.ba:focus-within .ba-divider { box-shadow: 0 0 0 2px var(--primary), 0 0 14px rgba(0,0,0,0.28); }

/* ═══════════ Hero stats — frosted glass bar inside the hero ═══════════ */
.hero-stats-wrap { position: relative; z-index: 1; margin-top: clamp(44px, 6vw, 72px); }
.hero-stats {
  display: grid; grid-template-columns: repeat(2, 1fr);
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: saturate(180%) blur(18px); -webkit-backdrop-filter: saturate(180%) blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: var(--r-xl);
  box-shadow: 0 20px 50px rgba(33, 36, 164, 0.10), inset 0 1px 0 rgba(255,255,255,0.6);
  padding: clamp(20px, 3vw, 30px) clamp(8px, 2vw, 20px);
}
.stat { text-align: center; padding: 16px 12px; position: relative; }
.stat-num {
  display: block; font-size: clamp(1.9rem, 5vw, 2.9rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1;
  background: linear-gradient(120deg, var(--primary) 0%, var(--primary-light) 72%, #6d70e0 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.stat-label { display: block; margin-top: 9px; font-size: 0.82rem; font-weight: 500; color: var(--ink-500); }
/* subtle dividers */
.stat::after { content: ''; position: absolute; right: 0; top: 22%; height: 56%; width: 1px; background: rgba(33,36,164,0.1); }
.stat:nth-child(2n)::after { display: none; }
.stat:nth-child(-n+2)::before { content: ''; position: absolute; left: 12%; bottom: 0; width: 76%; height: 1px; background: rgba(33,36,164,0.08); }

/* ═══════════ About ═══════════ */
.about-grid { display: grid; gap: 44px; align-items: center; }
.about-media { position: relative; }
.about-img { width: 100%; border-radius: var(--r-xl); box-shadow: var(--sh-lg); aspect-ratio: 4/3; object-fit: cover; }
.about-badge {
  position: absolute; bottom: -18px; left: 18px;
  background: #fff; box-shadow: var(--sh-md); border-radius: var(--r-md);
  padding: 14px 18px; display: flex; align-items: center; gap: 12px;
}
.about-badge i { font-size: 1.9rem; color: var(--primary); }
.about-badge strong { display: block; font-size: 1rem; }
.about-badge span { font-size: 0.8rem; color: var(--ink-500); }

.feature-list { display: flex; flex-direction: column; gap: 22px; margin-top: 30px; }
.feature { display: flex; gap: 16px; }
.feature-icon {
  flex-shrink: 0; width: 50px; height: 50px; border-radius: 14px;
  display: grid; place-items: center; font-size: 1.5rem;
  background: var(--primary-050); color: var(--primary);
}
.feature h3 { font-size: 1.08rem; margin-bottom: 3px; }
.feature p { color: var(--ink-500); font-size: 0.95rem; }

/* ═══════════ Treatments ═══════════ */
.cards-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.tcard {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 30px 26px; transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.tcard:hover { transform: translateY(-6px); box-shadow: var(--sh-lg); border-color: transparent; }
.tcard-icon {
  display: grid; place-items: center; width: 58px; height: 58px; border-radius: 16px;
  font-size: 1.7rem; color: #fff; margin-bottom: 20px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  box-shadow: var(--sh-primary);
}
.tcard h3 { font-size: 1.22rem; margin-bottom: 8px; }
.tcard p { color: var(--ink-500); font-size: 0.95rem; margin-bottom: 18px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { font-size: 0.78rem; font-weight: 500; color: var(--primary-dark); background: var(--primary-050); padding: 5px 12px; border-radius: var(--r-pill); }
.tcard-cta {
  background: linear-gradient(140deg, var(--primary), var(--primary-dark)); color: #fff;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 14px;
}
.tcard-cta:hover { border-color: transparent; }
.tcard-cta h3 { color: #fff; }
.tcard-cta p { color: rgba(255,255,255,0.82); margin: 0; }

/* ═══════════ Technology ═══════════ */
.tech-grid { display: grid; gap: 44px; align-items: center; }
.tech-list { display: flex; flex-direction: column; gap: 18px; margin-top: 28px; }
.tech-item {
  display: flex; gap: 16px; padding: 18px; border-radius: var(--r-md);
  background: #fff; border: 1px solid var(--line); transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.tech-item:hover { transform: translateX(6px); box-shadow: var(--sh-md); }
.tech-icon { flex-shrink: 0; width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; font-size: 1.4rem; background: var(--primary-050); color: var(--primary); }
.tech-item h3 { font-size: 1.05rem; margin-bottom: 2px; }
.tech-item p { color: var(--ink-500); font-size: 0.92rem; }
.tech-media img { width: 100%; border-radius: var(--r-xl); box-shadow: var(--sh-lg); aspect-ratio: 3/4; object-fit: cover; }

/* ═══════════ Journey (dark) ═══════════ */
.section-dark { background: var(--surface-dark); color: #fff; position: relative; overflow: hidden; }
.section-dark::before {
  content: ''; position: absolute; width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(58,61,186,0.4), transparent 70%); top: -150px; right: -100px; filter: blur(40px);
}
.section-dark .section-title { color: #fff; }
.section-dark .section-text { color: #a9abcf; }
.journey { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr; gap: 18px; }
.jstep {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r-lg); padding: 26px 24px; position: relative;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.jstep:hover { transform: translateY(-5px); background: rgba(255,255,255,0.07); border-color: rgba(122,125,240,0.5); }
.jstep-no { position: absolute; top: 22px; right: 24px; font-size: 1.1rem; font-weight: 700; color: rgba(122,125,240,0.55); }
.jstep > i { font-size: 2rem; color: #7a7df0; margin-bottom: 16px; display: block; }
.jstep h3 { font-size: 1.12rem; margin-bottom: 8px; color: #fff; }
.jstep p { color: #a9abcf; font-size: 0.92rem; }
.jstep-cta {
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 16px;
  background: linear-gradient(140deg, var(--primary-light), var(--primary)); border-color: transparent;
}
.jstep-cta h3 { color: #fff; }

/* ═══════════ Tourism ═══════════ */
.tourism-grid { display: grid; gap: 44px; align-items: center; }
.tourism-media img { width: 100%; border-radius: var(--r-xl); box-shadow: var(--sh-lg); aspect-ratio: 4/3; object-fit: cover; }
.check-list { display: flex; flex-direction: column; gap: 12px; margin: 26px 0 30px; }
.check-list li { display: flex; align-items: center; gap: 12px; font-weight: 500; color: var(--ink-700); }
.check-list i { color: var(--primary); font-size: 1.4rem; flex-shrink: 0; }

/* ═══════════ Virtual Tour (Matterport) ═══════════ */
.tour-frame {
  position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-xl);
  overflow: hidden; box-shadow: var(--sh-lg); background: #0b0b16;
}
.tour-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.tour-placeholder { position: absolute; inset: 0; }
.tour-placeholder img { width: 100%; height: 100%; object-fit: cover; }
.tour-overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 14px; text-align: center; color: #fff;
  background: linear-gradient(180deg, rgba(11,11,22,0.30), rgba(11,11,22,0.62));
  cursor: pointer; transition: background 0.3s var(--ease);
}
.tour-overlay:hover { background: linear-gradient(180deg, rgba(11,11,22,0.24), rgba(11,11,22,0.55)); }
.tour-play {
  width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center;
  font-size: 2.5rem; color: var(--primary); background: #fff; box-shadow: var(--sh-lg);
  transition: transform 0.3s var(--spring);
}
.tour-overlay:hover .tour-play { transform: scale(1.09); }
.tour-cta-text { font-size: 1.15rem; font-weight: 600; }
.tour-hint { font-size: 0.75rem; opacity: 0.85; letter-spacing: 0.06em; text-transform: uppercase; }

/* ═══════════ Accreditations ═══════════ */
.cert-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
.cert-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 30px 24px; text-align: center; box-shadow: var(--sh-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.cert-card:hover { transform: translateY(-5px); box-shadow: var(--sh-lg); border-color: transparent; }
.cert-icon {
  display: inline-grid; place-items: center; width: 62px; height: 62px; border-radius: 16px;
  font-size: 1.9rem; margin-bottom: 16px; background: var(--primary-050); color: var(--primary);
}
.cert-card h3 { font-size: 1.12rem; margin-bottom: 6px; }
.cert-card p { color: var(--ink-500); font-size: 0.9rem; }
.cert-card-gov .cert-icon { background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: #fff; }

/* ═══════════ Reviews ═══════════ */
.rating-summary { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-bottom: 40px; }
.rating-badge {
  display: flex; align-items: center; gap: 16px; min-width: 258px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 16px 24px; box-shadow: var(--sh-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.rating-badge:hover { transform: translateY(-3px); box-shadow: var(--sh-md); }
.rating-logo { width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; font-size: 1.7rem; flex-shrink: 0; }
.rating-logo-google { color: #4285f4; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.rating-logo-tp { color: #fff; background: #00b67a; }
.rating-meta { display: flex; flex-direction: column; }
.rating-score { font-size: 1.5rem; font-weight: 800; color: var(--ink); line-height: 1; letter-spacing: -0.02em; }
.rating-score small { font-size: 0.85rem; color: var(--ink-400); font-weight: 600; }
.rating-stars { color: #f5b301; font-size: 0.92rem; margin: 4px 0; letter-spacing: 1px; }
.rating-stars-tp { color: #00b67a; }
.rating-count { font-size: 0.78rem; color: var(--ink-500); }

.reviews-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.review-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 28px 26px; box-shadow: var(--sh-sm); display: flex; flex-direction: column; gap: 14px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.review-card:hover { transform: translateY(-4px); box-shadow: var(--sh-md); }
.review-stars { color: #f5b301; font-size: 1rem; display: flex; gap: 3px; }
.review-card blockquote { font-size: 0.98rem; color: var(--ink-700); line-height: 1.62; }
.review-card figcaption { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.review-avatar {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--primary), var(--primary-light)); flex-shrink: 0;
}
.review-person { display: flex; flex-direction: column; line-height: 1.3; }
.review-person strong { font-size: 0.95rem; }
.review-person span { font-size: 0.8rem; color: var(--ink-500); }
.review-src { margin-left: auto; width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; font-size: 1.15rem; }
.review-src-google { color: #4285f4; background: var(--primary-050); }
.review-src-tp { color: #00b67a; background: rgba(0,182,122,0.1); }
.reviews-note { text-align: center; margin-top: 26px; font-size: 0.82rem; color: var(--ink-400); display: flex; align-items: center; justify-content: center; gap: 7px; }

/* ═══════════ Contact ═══════════ */
.contact-grid { display: grid; gap: 44px; align-items: start; }
.contact-cards { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 30px; }
.ccard {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
a.ccard:hover { transform: translateY(-3px); box-shadow: var(--sh-md); }
.ccard-icon { flex-shrink: 0; width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; font-size: 1.35rem; background: var(--primary-050); color: var(--primary); }
.ccard-label { display: block; font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-400); font-weight: 600; }
.ccard-value { display: block; font-weight: 600; color: var(--ink); font-size: 0.98rem; }

.contact-form-wrap {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl);
  padding: clamp(24px, 4vw, 38px); box-shadow: var(--sh-md);
}
.form-title { font-size: 1.35rem; margin-bottom: 22px; }
.field { margin-bottom: 16px; }
.field-row { display: grid; grid-template-columns: 1fr; gap: 16px; }
.field label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 7px; color: var(--ink-700); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 16px; border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--surface-alt); color: var(--ink); transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--primary); background: #fff; box-shadow: 0 0 0 4px var(--primary-glow);
}
.field textarea { resize: vertical; min-height: 110px; }
.form-note { display: flex; align-items: center; gap: 7px; margin-top: 14px; font-size: 0.83rem; color: var(--ink-400); }

/* ═══════════ Footer ═══════════ */
.footer { background: var(--surface-dark); color: #c7c8e0; padding: clamp(48px, 7vw, 76px) 0 28px; }
.footer-inner { display: grid; grid-template-columns: 1fr; gap: 38px; }
.footer-logo { height: 40px; filter: brightness(0) invert(1); opacity: 0.95; margin-bottom: 16px; }
.footer-brand p { font-size: 0.92rem; color: #9799bd; max-width: 40ch; }
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.footer-social a { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; font-size: 1.2rem; background: rgba(255,255,255,0.06); color: #c7c8e0; transition: background 0.25s var(--ease), transform 0.25s var(--ease), color 0.25s var(--ease); }
.footer-social a:hover { background: var(--primary-light); color: #fff; transform: translateY(-3px); }
.footer-col h4 { font-size: 0.95rem; color: #fff; margin-bottom: 16px; letter-spacing: 0.02em; }
.footer-col a, .footer-addr { display: block; font-size: 0.92rem; color: #9799bd; padding: 6px 0; transition: color 0.2s var(--ease); }
.footer-col a:hover { color: #fff; }
.footer-contact a, .footer-contact .footer-addr { display: flex; align-items: flex-start; gap: 10px; }
.footer-contact i { color: var(--primary-light); font-size: 1.05rem; flex-shrink: 0; margin-top: 2px; }
.footer-contact a:hover i { color: #fff; }
.footer .footer-bottom {
  display: flex; flex-direction: column; gap: 12px; text-align: center;
  margin-top: 48px; padding-top: 36px; border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.85rem; color: #7779a0;
}
.footer-legal { display: flex; flex-direction: column; gap: 4px; }
.footer-company { font-size: 0.72rem; color: #656790; letter-spacing: 0.01em; text-transform: uppercase; }
.footer-bottom-links { display: flex; gap: 20px; justify-content: center; }
.footer-bottom-links a:hover { color: #fff; }

/* ═══════════ Floating contact hub ═══════════ */
.chub { position: fixed; bottom: 24px; right: 24px; z-index: 95; }
.chub-fab {
  position: relative; width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center;
  margin-left: auto; color: #fff; font-size: 1.7rem;
  background: linear-gradient(140deg, var(--primary-light), var(--primary));
  box-shadow: 0 14px 34px rgba(33,36,164,0.42);
  transition: transform 0.3s var(--spring), box-shadow 0.3s var(--ease);
}
.chub-fab:hover { transform: scale(1.06); }
.chub-fab::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid var(--primary-light); animation: pulse 2.4s ease-out infinite;
}
.chub.open .chub-fab::after { display: none; }
.chub-fab-i { position: absolute; transition: opacity 0.25s var(--ease), transform 0.3s var(--spring); }
.chub-fab-close { opacity: 0; transform: rotate(-90deg) scale(0.6); }
.chub.open .chub-fab-open { opacity: 0; transform: rotate(90deg) scale(0.6); }
.chub.open .chub-fab-close { opacity: 1; transform: none; }
@keyframes pulse { 0% { transform: scale(1); opacity: 0.6; } 100% { transform: scale(1.55); opacity: 0; } }

.chub-panel {
  position: absolute; bottom: 74px; right: 0; width: min(340px, calc(100vw - 40px));
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl);
  box-shadow: 0 24px 60px rgba(16,17,36,0.22); overflow: hidden;
  transform-origin: bottom right; transform: translateY(12px) scale(0.94); opacity: 0; pointer-events: none;
  transition: transform 0.28s var(--spring), opacity 0.24s var(--ease);
}
.chub.open .chub-panel { transform: none; opacity: 1; pointer-events: auto; }

.chub-head { display: flex; align-items: center; gap: 12px; padding: 20px 20px 14px; }
.chub-head strong { display: block; font-size: 1rem; }
.chub-head small { color: var(--ink-500); font-size: 0.8rem; }
.chub-head-dot { width: 10px; height: 10px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34,197,94,0.18); flex-shrink: 0; }

.chub-options { display: flex; flex-direction: column; padding: 4px 12px 14px; gap: 4px; }
.chub-opt {
  display: flex; align-items: center; gap: 13px; width: 100%; text-align: left;
  padding: 11px 12px; border-radius: 14px; color: var(--ink); transition: background 0.18s var(--ease);
}
.chub-opt:hover { background: var(--surface-alt); }
.chub-opt-ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 1.35rem; background: var(--primary-050); color: var(--primary); flex-shrink: 0; }
.chub-ico-wa { background: rgba(37,211,102,0.12); color: #128c7e; }
.chub-opt-txt { flex: 1; display: flex; flex-direction: column; line-height: 1.25; }
.chub-opt-txt strong { font-size: 0.94rem; }
.chub-opt-txt small { font-size: 0.78rem; color: var(--ink-500); }
.chub-arrow { color: var(--ink-400); font-size: 1.1rem; transition: transform 0.2s var(--ease); }
.chub-opt:hover .chub-arrow { transform: translateX(3px); color: var(--primary); }

.chub-view[data-view="quote"], .chub-view[data-view="appt"] { padding: 16px 20px 20px; }
.chub-back { display: inline-flex; align-items: center; gap: 5px; font-size: 0.82rem; font-weight: 600; color: var(--primary); margin-bottom: 12px; }
.chub-form-title { display: block; font-size: 1.05rem; }
.chub-form-sub { display: block; color: var(--ink-500); font-size: 0.8rem; margin-top: 3px; margin-bottom: 14px; }
.chub-form { display: flex; flex-direction: column; gap: 10px; }
.chub-form input, .chub-form select, .chub-form textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 11px;
  background: var(--surface-alt); font-size: 0.9rem; color: var(--ink); transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.chub-form input:focus, .chub-form select:focus, .chub-form textarea:focus { outline: none; border-color: var(--primary); background: #fff; box-shadow: 0 0 0 3px var(--primary-glow); }
.chub-form textarea { resize: vertical; }
.chub-form .btn { margin-top: 2px; }

/* ═══════════ Reveal animation ═══════════ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); will-change: opacity, transform; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ═══════════ Scroll progress bar ═══════════ */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 200;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  transition: width 0.08s linear;
}

/* ═══════════ Treatment card — interactive polish ═══════════ */
.tcard[role="button"] { cursor: pointer; }
.tcard-icon { transition: transform 0.35s var(--spring); }
.tcard[role="button"]:hover .tcard-icon,
.tcard[role="button"]:focus-visible .tcard-icon { transform: scale(1.08) rotate(-4deg); }
.tcard-more {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 16px;
  font-size: 0.85rem; font-weight: 600; color: var(--primary);
}
.tcard-more i { transition: transform 0.25s var(--ease); }
.tcard[role="button"]:hover .tcard-more i,
.tcard[role="button"]:focus-visible .tcard-more i { transform: translateX(5px); }

/* image zoom polish on media */
.about-media, .tech-media, .tourism-media, .tour-frame { overflow: hidden; }
.about-img, .tech-media img, .tourism-media img { transition: transform 0.6s var(--ease); }
.about-media:hover .about-img,
.tech-media:hover img,
.tourism-media:hover img { transform: scale(1.04); }

/* ═══════════ Sticky mobile action bar ═══════════ */
.mobile-cta {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 96; display: none; gap: 8px;
  background: rgba(255,255,255,0.94); backdrop-filter: saturate(180%) blur(14px);
  border-top: 1px solid var(--line); box-shadow: 0 -6px 22px rgba(16,17,36,0.07);
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
}
.mcta-item {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 9px 4px; border-radius: 13px; font-size: 0.72rem; font-weight: 600; color: var(--ink-700);
  transition: background 0.2s var(--ease);
}
.mcta-item i { font-size: 1.45rem; }
.mcta-item:active { background: var(--surface-alt); }
.mcta-wa { color: #128c7e; }
.mcta-book { background: var(--primary); color: #fff; }

/* ═══════════ Treatment drawer ═══════════ */
.drawer-overlay { position: fixed; inset: 0; z-index: 150; background: rgba(11,11,22,0.5); backdrop-filter: blur(3px); opacity: 0; transition: opacity 0.3s var(--ease); }
.drawer-overlay.open { opacity: 1; }
.drawer {
  position: fixed; top: 0; right: 0; z-index: 151; height: 100%; width: min(440px, 92vw);
  background: #fff; box-shadow: -24px 0 70px rgba(16,17,36,0.22); display: flex; flex-direction: column;
  transform: translateX(101%); transition: transform 0.42s var(--ease); overflow-y: auto;
}
.drawer.open { transform: none; }
.drawer-close {
  position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; border-radius: 50%;
  background: var(--surface-alt); color: var(--ink-700); display: grid; place-items: center; font-size: 1.3rem;
  z-index: 2; transition: background 0.2s var(--ease);
}
.drawer-close:hover { background: var(--line); }
.drawer-head { display: flex; align-items: center; gap: 16px; padding: 34px 30px 22px; border-bottom: 1px solid var(--line); }
.drawer-icon {
  width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center; font-size: 1.8rem;
  color: #fff; background: linear-gradient(135deg, var(--primary), var(--primary-light)); box-shadow: var(--sh-primary); flex-shrink: 0;
}
.drawer-sub { display: block; font-size: 0.76rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--primary); }
.drawer-title { font-size: 1.4rem; margin-top: 3px; }
.drawer-body { padding: 24px 30px; flex: 1; }
.drawer-desc { color: var(--ink-700); line-height: 1.65; }
.drawer-facts { display: flex; gap: 10px; flex-wrap: wrap; margin: 20px 0 4px; }
.drawer-fact { display: flex; align-items: center; gap: 8px; background: var(--surface-alt); border-radius: var(--r-pill); padding: 8px 14px; font-size: 0.82rem; font-weight: 500; color: var(--ink-700); }
.drawer-fact i { color: var(--primary); font-size: 1.1rem; }
.drawer-h4 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-400); margin: 24px 0 12px; }
.drawer-options { display: flex; flex-direction: column; gap: 11px; }
.drawer-options li { display: flex; align-items: center; gap: 10px; font-size: 0.95rem; color: var(--ink-700); }
.drawer-options li i { color: var(--primary); font-size: 1.25rem; flex-shrink: 0; }
.drawer-foot { position: sticky; bottom: 0; padding: 20px 30px calc(22px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: #fff; }

/* ═══════════════════════════════════════════════════
   Responsive — tablet & desktop
   ═══════════════════════════════════════════════════ */
@media (max-width: 899px) {
  .mobile-cta { display: flex; }
  .chub { display: none; }
  body { padding-bottom: 68px; }
}

@media (min-width: 600px) {
  .field-row { grid-template-columns: 1fr 1fr; }
  .contact-cards { grid-template-columns: 1fr 1fr; }
  .ccard-wide { grid-column: 1 / -1; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .journey { grid-template-columns: repeat(2, 1fr); }
  .cert-grid { grid-template-columns: repeat(2, 1fr); }
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
  .hero-stats { grid-template-columns: repeat(4, 1fr); }
  .hero-stats .stat:nth-child(2n)::after { display: block; }
  .hero-stats .stat:last-child::after { display: none; }
  .hero-stats .stat:nth-child(-n+2)::before { display: none; }
  .footer-inner { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .footer .footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; text-align: left; }
}

@media (min-width: 900px) {
  .nav { display: flex; }
  .nav-toggle { display: none; }
  .header-actions .btn { display: inline-flex; }
  .hero-inner { grid-template-columns: 1.05fr 0.95fr; gap: 30px; }
  .hero-visual { margin: 0 0 0 auto; }
  .about-grid { grid-template-columns: 1fr 1.05fr; }
  .tech-grid { grid-template-columns: 1.05fr 0.95fr; }
  .tourism-grid { grid-template-columns: 0.95fr 1.05fr; }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .cards-grid { grid-template-columns: repeat(3, 1fr); }
  .journey { grid-template-columns: repeat(4, 1fr); }
  .cert-grid { grid-template-columns: repeat(4, 1fr); }
  .reviews-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1100px) {
  .container { padding: 0 40px; }
}
