/* =============================================
   VARIABLES
   ============================================= */
:root {
  --blue:        #1AADA3;
  --blue-dark:   #0D8A82;
  --blue-light:  #E6F7F6;
  --dark:        #1A1F36;
  --dark-2:      #2D3748;
  --gray:        #6B7280;
  --gray-light:  #F8F9FA;
  --white:       #FFFFFF;
  --border:      #E5E7EB;
  --radius:      12px;
  --radius-lg:   20px;
  --shadow:      0 4px 24px rgba(61,92,245,.10);
  --shadow-lg:   0 8px 40px rgba(61,92,245,.15);
  --transition:  .2s ease;
  --font-sans:   'Inter', system-ui, sans-serif;
  --font-serif:  'Merriweather', Georgia, serif;
}

/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-sans); color: var(--dark); background: var(--white); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* =============================================
   UTILITIES
   ============================================= */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.hidden { display: none !important; }
.section { padding: 96px 0; }
.eyebrow { font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); margin-bottom: 12px; }
.section__title { font-family: var(--font-serif); font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 700; color: var(--dark); line-height: 1.25; margin-bottom: 16px; }
.section__sub { color: var(--gray); font-size: 1.05rem; max-width: 560px; margin: 0 auto; }
.section__head { text-align: center; margin-bottom: 56px; }

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-block;
  font-weight: 600;
  font-size: .9rem;
  padding: 11px 24px;
  border-radius: var(--radius);
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
  white-space: nowrap;
}
.btn--primary { background: var(--blue); color: var(--white); }
.btn--primary:hover { background: var(--blue-dark); box-shadow: var(--shadow); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--dark-2); border: 1.5px solid var(--border); }
.btn--ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn--lg { padding: 15px 36px; font-size: 1rem; border-radius: var(--radius-lg); }
.btn--full { width: 100%; text-align: center; }

/* =============================================
   HEADER
   ============================================= */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}
.header.scrolled { box-shadow: 0 2px 16px rgba(0,0,0,.08); }
.header__inner { display: flex; align-items: center; gap: 32px; height: 68px; }
.logo { display: flex; align-items: center; }
.logo__img { height: 36px; width: auto; }
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav__link { font-size: .9rem; font-weight: 500; color: var(--dark-2); transition: color var(--transition); }
.nav__link:hover { color: var(--blue); }
.burger { display: none; flex-direction: column; gap: 5px; padding: 4px; margin-left: auto; }
.burger span { display: block; width: 24px; height: 2px; background: var(--dark); border-radius: 2px; transition: var(--transition); }

/* =============================================
   HERO
   ============================================= */
.hero {
  padding-top: 68px;
  background: linear-gradient(135deg, var(--blue-light) 0%, var(--white) 60%);
  min-height: 100vh;
  display: flex; align-items: center;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding-top: 48px;
  padding-bottom: 48px;
}
.hero__name { font-family: var(--font-serif); font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; color: var(--dark); line-height: 1.2; margin-bottom: 8px; }
.hero__specialty { font-size: 1.15rem; font-weight: 600; color: var(--blue); margin-bottom: 20px; }
.hero__tagline { font-size: 1.1rem; color: var(--gray); margin-bottom: 36px; max-width: 440px; }
.hero__image-wrap { position: relative; }
.hero__image {
  width: 100%; aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.hero__logo-wrap {
  display: flex; align-items: center; justify-content: center;
}
.hero__logo-large {
  width: 100%; max-width: 420px;
  filter: drop-shadow(0 8px 32px rgba(26,173,163,.18));
  animation: float 4s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}

/* =============================================
   ABOUT
   ============================================= */
.about { background: var(--white); }
.about__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about__body { color: var(--gray); font-size: 1.05rem; line-height: 1.8; margin-bottom: 16px; }
.about__body:last-child { margin-bottom: 0; }
.about__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stat-card { background: var(--blue-light); border-radius: var(--radius-lg); padding: 28px 22px; display: flex; flex-direction: column; gap: 8px; }
.stat-card__value { font-size: 2.6rem; font-weight: 700; color: var(--blue); line-height: 1; }
.stat-card__icon-wrap { width: 48px; height: 48px; background: var(--white); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; }
.stat-card__icon-wrap svg { width: 22px; height: 22px; stroke: var(--blue); }
.stat-card__label { font-weight: 600; font-size: .95rem; color: var(--dark); line-height: 1.3; }
.stat-card__sub { font-size: .82rem; color: var(--gray); line-height: 1.4; }

/* =============================================
   SERVICES
   ============================================= */
.services { background: var(--gray-light); }
.services__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.services__group { background: var(--white); border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow); }
.services__group-title { font-family: var(--font-serif); font-size: 1.2rem; font-weight: 700; color: var(--dark); margin-bottom: 16px; padding-bottom: 14px; border-bottom: 2px solid var(--blue-light); }
.services__group-intro { color: var(--gray); font-size: .88rem; line-height: 1.7; margin-bottom: 16px; }
.services__group-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.services__group-list li { display: flex; align-items: flex-start; gap: 10px; color: var(--gray); font-size: .9rem; line-height: 1.5; }
.services__group-list li::before { content: '✓'; color: var(--blue); font-weight: 700; flex-shrink: 0; }

/* =============================================
   APPOINTMENT FORM
   ============================================= */
.appointment { background: var(--white); }
.appointment__inner { max-width: 680px; margin: 0 auto; }
.form { display: flex; flex-direction: column; gap: 20px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form__label { display: block; font-size: .875rem; font-weight: 500; color: var(--dark-2); margin-bottom: 6px; }
.form__input, .form__textarea {
  width: 100%; padding: 14px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-sans); font-size: 1rem; color: var(--dark);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  background: var(--white);
}
.form__input:focus, .form__textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(61,92,245,.15); }
.form__textarea { resize: vertical; min-height: 120px; }
.form__feedback { padding: 16px 20px; border-radius: var(--radius); font-weight: 500; text-align: center; margin-top: 4px; }
.form__feedback--success { background: #ECFDF5; color: #065F46; }
.form__feedback--error   { background: #FEF2F2; color: #991B1B; }

/* =============================================
   CONTACT
   ============================================= */
.contact { background: var(--gray-light); }
.contact__inner { display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; align-items: start; }
.contact__list { list-style: none; display: flex; flex-direction: column; gap: 24px; margin-top: 32px; }
.contact__item { display: flex; gap: 16px; align-items: center; }
.contact__icon {
  width: 44px; height: 44px; border-radius: var(--radius);
  background: var(--blue-light); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.contact__icon svg { width: 20px; height: 20px; stroke: var(--blue); }
.contact__item a { color: var(--blue); font-weight: 500; }
.contact__item a:hover { text-decoration: underline; }
.contact__item span { color: var(--gray); }
.contact__map { aspect-ratio: 4/3; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }

/* =============================================
   FOOTER
   ============================================= */
.footer { background: var(--dark); color: #A0AEC0; }
.footer__inner {
  display: flex; flex-wrap: wrap; gap: 40px;
  justify-content: space-between; align-items: flex-start;
  padding-top: 56px; padding-bottom: 40px;
}
.footer__logo-img { height: 40px; width: auto; margin-bottom: 16px; filter: brightness(0) invert(1); }
.footer__tagline { font-size: .9rem; max-width: 260px; color: #718096; }
.footer__links { display: flex; flex-wrap: wrap; gap: 16px 32px; padding-top: 8px; }
.footer__link { font-size: .9rem; color: #A0AEC0; transition: color var(--transition); }
.footer__link:hover { color: var(--white); }
.footer__bottom { border-top: 1px solid #2D3748; padding: 20px 0; font-size: .85rem; color: #718096; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 900px) {
  .hero { min-height: auto; padding-top: 68px; }
  .hero__inner { grid-template-columns: 1fr; gap: 40px; text-align: center; padding-top: 48px; padding-bottom: 48px; }
  .hero__tagline { max-width: 100%; }
  .hero__logo-wrap { order: -1; }
  .hero__logo-large { max-width: 280px; margin: 0 auto; }
  .about__inner { grid-template-columns: 1fr; gap: 40px; }
  .services__grid { grid-template-columns: 1fr; }
  .contact__inner { grid-template-columns: 1fr; }
  .contact__map { aspect-ratio: 16/9; }
}

@media (max-width: 640px) {
  .section { padding: 56px 0; }
  .nav { display: none; flex-direction: column; position: fixed; inset: 68px 0 0 0; background: var(--white); padding: 32px 24px; gap: 0; overflow-y: auto; z-index: 200; }
  .nav.open { display: flex; }
  .nav__link { padding: 16px 0; border-bottom: 1px solid var(--border); font-size: 1.1rem; }
  .header__inner > .btn { display: none; }
  .burger { display: flex; }
  .hero__logo-large { max-width: 200px; }
  .hero__name { font-size: 2rem; }
  .services__grid { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .footer__inner { flex-direction: column; gap: 32px; }
  .contact__map { aspect-ratio: 4/3; }
}

/* =============================================
   ASSISTANT FAB + MODAL
   ============================================= */
.assistant-fab {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 300;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--blue);
  color: var(--white);
  border-radius: 50px;
  padding: 14px 20px;
  font-size: .9rem;
  font-weight: 600;
  font-family: var(--font-sans);
  box-shadow: 0 4px 20px rgba(26,173,163,.45);
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}
.assistant-fab:hover {
  background: var(--blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(26,173,163,.55);
}
.assistant-fab svg { width: 20px; height: 20px; flex-shrink: 0; }

.assistant-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 400;
  background: rgba(0,0,0,.45);
  align-items: flex-end;
  justify-content: flex-end;
  padding: 24px;
}
.assistant-modal.open { display: flex; }

.assistant-modal__box {
  width: 420px;
  max-width: calc(100vw - 48px);
  height: 600px;
  max-height: calc(100vh - 48px);
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: assistant-slide-in .2s ease;
}
@keyframes assistant-slide-in {
  from { opacity: 0; transform: translateY(20px) scale(.97); }
  to   { opacity: 1; transform: translateY(0)   scale(1);    }
}

.assistant-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: var(--blue);
  color: var(--white);
  flex-shrink: 0;
}
.assistant-modal__title { font-weight: 600; font-size: .95rem; }
.assistant-modal__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: var(--white);
  transition: background var(--transition);
}
.assistant-modal__close:hover { background: rgba(255,255,255,.2); }
.assistant-modal__close svg { width: 18px; height: 18px; }

.assistant-modal__iframe {
  flex: 1;
  border: none;
  width: 100%;
}

@media (max-width: 640px) {
  .assistant-fab { bottom: 16px; right: 16px; padding: 12px 16px; font-size: .85rem; }
  .assistant-modal { padding: 0; align-items: flex-end; justify-content: stretch; }
  .assistant-modal__box { width: 100%; max-width: 100%; border-bottom-left-radius: 0; border-bottom-right-radius: 0; height: 75vh; max-height: 75vh; }
}

/* =============================================
   CONSENT MODAL
   ============================================= */
.consent-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(0,0,0,.55);
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.consent-modal.open { display: flex; }

.consent-modal__box {
  width: 100%;
  max-width: 660px;
  max-height: 88vh;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: consent-in .2s ease;
}
@keyframes consent-in {
  from { opacity: 0; transform: translateY(16px) scale(.98); }
  to   { opacity: 1; transform: translateY(0)   scale(1);    }
}

.consent-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: var(--blue);
  color: var(--white);
  flex-shrink: 0;
}
.consent-modal__title {
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.3;
}
.consent-modal__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: var(--white);
  flex-shrink: 0;
  transition: background var(--transition);
}
.consent-modal__close:hover { background: rgba(255,255,255,.2); }
.consent-modal__close svg { width: 18px; height: 18px; }

.consent-modal__body {
  flex: 1;
  overflow-y: auto;
  padding: 0;
}
.consent-modal__body::-webkit-scrollbar { width: 6px; }
.consent-modal__body::-webkit-scrollbar-track { background: var(--gray-light); }
.consent-modal__body::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

.consent-modal__lang {
  padding: 24px 28px;
  border-bottom: 1px solid var(--border);
}
.consent-modal__lang:last-child { border-bottom: none; }

.consent-modal__lang-badge {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--blue);
  background: var(--blue-light);
  border-radius: 6px;
  padding: 3px 10px;
  margin-bottom: 12px;
}

.consent-modal__lang p {
  font-size: .875rem;
  line-height: 1.75;
  color: var(--dark-2);
}
.consent-modal__lang p + p { margin-top: 10px; }

.consent-modal__lang--rtl { text-align: right; }
.consent-modal__lang--rtl .consent-modal__lang-badge { margin-right: 0; }

.consent-modal__contact {
  margin-top: 10px;
  font-size: .8rem !important;
  color: var(--gray) !important;
}
.consent-modal__contact a {
  color: var(--blue);
  text-decoration: underline;
}

.consent-modal__footer {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  background: var(--gray-light);
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .consent-modal { padding: 0; align-items: flex-end; }
  .consent-modal__box { max-width: 100%; border-bottom-left-radius: 0; border-bottom-right-radius: 0; max-height: 90vh; }
  .consent-modal__footer { flex-direction: column-reverse; }
  .consent-modal__footer .btn { width: 100%; text-align: center; }
  .consent-modal__lang { padding: 20px 18px; }
}
