:root {
  --brand: #00c2d6;
  --brand-dark: #0b3a4a;
  --brand-soft: #44f3c9;
  --bg: #ffffff;
  --bg-soft: #f2f8fd;
  --text: #1f2a37;
  --text-muted: #5b6b7c;
  --white: #ffffff;
  --line: rgba(39, 80, 115, 0.12);
  --shadow: 0 16px 40px rgba(19, 143, 199, 0.14);
  --radius: 6px;
  --container: 1180px;
  --font: "Open Sans", system-ui, sans-serif;
  --display: "Roboto Slab", Georgia, serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--brand);
  color: #fff;
  padding: 0.75rem 1rem;
  z-index: 1000;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.above-header {
  background: var(--brand-dark);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.875rem;
}

.above-header__inner {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.lang-nav {
  display: flex;
  gap: 1rem;
}

.lang-nav a:hover,
.above-header__phones a:hover {
  color: var(--brand-soft);
}

.above-header__phones {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.above-header__phones .sep {
  opacity: 0.5;
}

.main-header {
  background: transparent;
}

.site-header--solid .main-header,
.site-header.is-scrolled .main-header {
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 8px 24px rgba(39, 80, 115, 0.08);
}

.main-header__inner {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  background: #000;
  border-radius: 8px;
  padding: 0.35rem 0.65rem;
}

.brand__logo {
  height: 52px;
  width: auto;
  max-width: min(260px, 52vw);
  object-fit: contain;
}

.quote-sign {
  margin: 1rem 0 0;
  font-family: var(--display);
  font-weight: 700;
  color: var(--brand);
  font-size: 1.1rem;
}

.doctor-figure--logo {
  background: #000;
  border-radius: 16px;
  padding: 1.5rem;
}

.doctor-figure--logo img {
  max-height: 280px;
  width: auto;
  margin-inline: auto;
}

.page-home:not(.nav-open) .site-header--transparent:not(.is-scrolled) .primary-nav > ul > li > a {
  color: #fff;
}

.primary-nav > ul {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.primary-nav a {
  display: block;
  padding: 0.7rem 0.9rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--brand-dark);
  transition: color 0.2s ease;
}

.primary-nav a:hover,
.primary-nav a.is-active {
  color: var(--brand);
}

.has-submenu {
  position: relative;
}

.submenu {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  min-width: 240px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: 0.2s ease;
  z-index: 20;
}

.has-submenu:hover > .submenu,
.has-submenu:focus-within > .submenu {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.submenu a {
  color: var(--text);
  font-weight: 500;
  padding: 0.65rem 1rem;
}

.submenu a:hover {
  background: var(--bg-soft);
  color: var(--brand);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  padding: 10px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 6px 0;
  background: var(--brand-dark);
  transition: 0.2s ease;
}

.page-home .site-header--transparent:not(.is-scrolled) .nav-toggle span {
  background: #fff;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  border: 2px solid transparent;
  font-weight: 700;
  font-size: 0.95rem;
  transition: 0.2s ease;
  cursor: pointer;
}

.btn--primary {
  background: var(--brand);
  color: #fff;
}

.btn--primary:hover {
  background: var(--brand-dark);
}

.btn--ghost {
  border-color: rgba(255, 255, 255, 0.7);
  color: #fff;
}

.btn--ghost:hover {
  background: #fff;
  color: var(--brand-dark);
}

.btn--accent {
  background: linear-gradient(45deg, var(--brand), #1bb8a8);
  color: #fff;
  border: 0;
}

.btn--outline {
  border-color: var(--brand);
  color: var(--brand);
  background: transparent;
}

.btn--outline:hover {
  background: var(--brand);
  color: #fff;
}

/* Hero */
.hero {
  position: relative;
  min-height: clamp(420px, 68vh, 640px);
  display: flex;
  align-items: flex-end;
  color: #fff;
  background:
    linear-gradient(45deg, rgba(19, 143, 199, 0.9) 35%, rgba(68, 243, 201, 0.14) 100%),
    url("../img/hero-scaled.jpg") center left / cover no-repeat;
  padding: 7rem 0 4rem;
}

.hero__content {
  max-width: 680px;
}

.hero__eyebrow {
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 500;
  margin: 0 0 0.35rem;
  opacity: 0.95;
}

.hero h1 {
  font-family: var(--display);
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  line-height: 1.15;
  margin: 0 0 1rem;
}

.hero__rule {
  width: 72px;
  height: 3px;
  background: #fff;
  margin-bottom: 1.25rem;
}

.hero p {
  max-width: 34rem;
  margin: 0 0 1.5rem;
  font-size: 1.05rem;
}

/* Sections */
.section {
  padding: 5rem 0;
}

.section--soft {
  background: var(--bg-soft);
}

.section--brand {
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
  color: #fff;
}

.section__head {
  margin-bottom: 2rem;
}

.section__head h2,
.section-title {
  font-family: var(--display);
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  color: var(--brand-dark);
  margin: 0 0 0.75rem;
  line-height: 1.25;
}

.section--brand .section__head h2,
.section--brand .section-title {
  color: #fff;
}

.section-rule {
  width: 64px;
  height: 3px;
  background: var(--brand);
  margin-bottom: 1.25rem;
}

.section--brand .section-rule {
  background: var(--brand-soft);
}

.grid-2 {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: stretch;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.prose p {
  margin: 0 0 1rem;
  color: var(--text-muted);
}

.appointment-panel {
  background: linear-gradient(45deg, var(--brand) 0%, var(--brand-soft) 100%);
  color: #fff;
  border-radius: 10px;
  padding: 2rem;
  box-shadow: var(--shadow);
  min-height: 100%;
}

.appointment-panel h3 {
  font-family: var(--display);
  margin: 0 0 1.25rem;
  font-size: 1.45rem;
}

.appointment-panel a {
  color: #fff;
}

.phone-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1rem;
  font-size: 1.35rem;
  font-weight: 700;
}

.phone-row i {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.18);
}

.hours {
  margin-top: 1.5rem;
  display: grid;
  gap: 0.65rem;
}

.hours__row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  font-weight: 600;
}

.hours__row:first-child {
  border-top: 0;
}

/* Treatment cards */
.treat-band {
  position: relative;
  color: #fff;
  background:
    linear-gradient(rgba(39, 80, 115, 0.82), rgba(19, 143, 199, 0.85)),
    url("../img/bg-treat.jpg") center / cover no-repeat;
  padding: 4.5rem 0;
}

.treat-band .section-title {
  color: #fff;
}

.treat-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  overflow: hidden;
  backdrop-filter: blur(4px);
  transition: transform 0.2s ease, background 0.2s ease;
  height: 100%;
}

.treat-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.14);
}

.treat-card img {
  width: 100%;
  aspect-ratio: 370 / 246;
  object-fit: cover;
}

.treat-card__body {
  padding: 1.15rem 1.2rem 1.4rem;
}

.treat-card__label {
  font-size: 0.8rem;
  opacity: 0.85;
  margin-bottom: 0.35rem;
}

.treat-card h3 {
  font-family: var(--display);
  font-size: 1.15rem;
  margin: 0 0 0.55rem;
  line-height: 1.3;
}

.treat-card p {
  margin: 0;
  font-size: 0.92rem;
  opacity: 0.92;
}

/* Quote / doctor */
.quote-block {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: end;
}

.quote-copy {
  font-family: var(--display);
  font-size: clamp(1.35rem, 2.4vw, 1.9rem);
  line-height: 1.45;
  color: var(--brand-dark);
}

.quote-copy img {
  margin-top: 1.25rem;
  height: 48px;
  width: auto;
}

.doctor-figure {
  margin: 0;
  text-align: center;
}

.doctor-figure img {
  max-height: 520px;
  margin-inline: auto;
  object-fit: contain;
}

/* CTA */
.cta-band {
  padding: 4rem 0;
  background: var(--bg-soft);
}

.cta-band__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.cta-band h2 {
  font-family: var(--display);
  margin: 0 0 0.4rem;
  color: var(--brand-dark);
}

.cta-band p {
  margin: 0;
  color: var(--text-muted);
}

/* Social */
.social-row {
  display: flex;
  gap: 0.75rem;
}

.social-row a {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--brand);
  color: #fff;
}

.social-row a:hover {
  background: var(--brand-dark);
}

/* Page hero (inner) */
.page-hero {
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
  color: #fff;
  padding: 4.5rem 0 3rem;
}

.page-hero h1 {
  font-family: var(--display);
  margin: 0 0 0.5rem;
  font-size: clamp(1.9rem, 3vw, 2.6rem);
}

.page-hero p {
  margin: 0;
  opacity: 0.92;
  max-width: 40rem;
}

/* Cards list */
.info-list {
  display: grid;
  gap: 1rem;
}

.info-item {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.25rem 1.4rem;
  background: #fff;
}

.info-item h3 {
  margin: 0 0 0.4rem;
  color: var(--brand-dark);
  font-size: 1.1rem;
}

.info-item p {
  margin: 0;
  color: var(--text-muted);
}

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

.contact-card,
.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.75rem;
  box-shadow: 0 10px 30px rgba(39, 80, 115, 0.06);
}

.contact-card h2,
.form-card h2 {
  font-family: var(--display);
  margin: 0 0 1rem;
  color: var(--brand-dark);
}

.contact-lines p {
  margin: 0 0 1rem;
}

.form-card label,
.callback-form label {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 1rem;
  font-weight: 600;
  font-size: 0.92rem;
}

.form-card input,
.form-card textarea,
.callback-form input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.8rem 0.95rem;
  font: inherit;
}

.form-card textarea {
  min-height: 140px;
  resize: vertical;
}

.alert {
  padding: 0.9rem 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  background: #e8f8ef;
  color: #146c43;
  border: 1px solid #b7ebc9;
}

/* Footer */
.site-footer {
  background: #16384f;
  color: rgba(255, 255, 255, 0.92);
  padding-top: 3.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.1fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
}

.footer-col h3 {
  font-family: var(--display);
  margin: 0 0 1rem;
  font-size: 1.25rem;
}

.footer-col a {
  color: #fff;
}

.footer-col .muted {
  opacity: 0.75;
  font-size: 0.92rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 1rem 0;
  font-size: 0.9rem;
}

.footer-bottom p {
  margin: 0;
}

.whatsapp-fab {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.8rem;
  box-shadow: 0 0 11px rgba(0, 0, 0, 0.35);
  z-index: 90;
}

.whatsapp-fab:hover {
  background: #1ebe57;
}

/* Responsive */
@media (max-width: 960px) {
  .nav-toggle {
    display: block;
  }

  .primary-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: #fff;
    border-top: 1px solid var(--line);
    box-shadow: var(--shadow);
    display: none;
  }

  .primary-nav.is-open {
    display: block;
  }

  .primary-nav > ul {
    flex-direction: column;
    align-items: stretch;
    padding: 0.5rem 0 1rem;
  }

  .primary-nav a {
    color: var(--brand-dark) !important;
  }

  .submenu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: 0;
    display: none;
    min-width: 0;
    padding-left: 0.75rem;
  }

  .has-submenu.is-open > .submenu {
    display: block;
  }

  .grid-2,
  .quote-block,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .grid-4 {
    grid-template-columns: 1fr 1fr;
  }

  .hero {
    align-items: center;
    padding-top: 8rem;
  }
}

@media (max-width: 640px) {
  .above-header__inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.55rem 0;
  }

  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .brand__logo {
    height: 46px;
  }
}
