:root {
  --color-ink: #17324d;
  --color-muted: #5b7083;
  --color-line: #dbe8ee;
  --color-soft: #f4fbfb;
  --color-sky: #dff5ff;
  --color-mint: #d9f6ec;
  --color-teal: #0f766e;
  --color-teal-dark: #0b5f59;
  --color-blue: #2c7be5;
  --color-coral: #f97362;
  --color-white: #ffffff;
  --shadow: 0 18px 45px rgba(23, 50, 77, 0.12);
  --radius: 8px;
  --container: 1120px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: var(--color-ink);
  background: var(--color-white);
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--color-ink);
  background:
    linear-gradient(180deg, rgba(223, 245, 255, 0.46), rgba(255, 255, 255, 0) 560px),
    var(--color-white);
  line-height: 1.6;
}

body,
button,
input,
select,
textarea {
  font: inherit;
}

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

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

button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid rgba(249, 115, 98, 0.5);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 999;
  transform: translateY(-140%);
  border-radius: var(--radius);
  background: var(--color-ink);
  color: var(--color-white);
  padding: 10px 14px;
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

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

.narrow {
  max-width: 860px;
}

.section {
  padding: 88px 0;
  scroll-margin-top: 92px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(219, 232, 238, 0.8);
  backdrop-filter: blur(16px);
  transition:
    box-shadow 180ms ease,
    background 180ms ease;
}

.site-header.is-scrolled {
  box-shadow: 0 12px 32px rgba(23, 50, 77, 0.08);
  background: rgba(255, 255, 255, 0.96);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: var(--radius);
  background: var(--color-white);
  color: var(--color-teal);
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(23, 50, 77, 0.08);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 0.98rem;
  line-height: 1.2;
}

.brand small {
  color: var(--color-muted);
  font-size: 0.78rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--color-muted);
  font-weight: 700;
  font-size: 0.92rem;
}

.site-nav a {
  padding: 8px 0;
  transition: color 160ms ease;
}

.site-nav a:hover {
  color: var(--color-teal);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: var(--color-white);
  color: var(--color-ink);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

.hero {
  min-height: calc(100vh - 76px);
  display: flex;
  align-items: center;
  padding: 68px 0 84px;
}

.hero-grid,
.split-layout,
.appointment-grid,
.contact-grid,
.footer-grid {
  display: grid;
  gap: 48px;
}

.hero-grid {
  grid-template-columns: minmax(0, 1.02fr) minmax(340px, 0.98fr);
  align-items: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--color-teal);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 12ch;
  margin-bottom: 20px;
  font-size: clamp(2.45rem, 6vw, 5.1rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.25rem;
  line-height: 1.25;
}

.hero-description,
.section-heading p,
.appointment-copy > p,
.split-layout > div > p {
  max-width: 640px;
  color: var(--color-muted);
  font-size: 1.08rem;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 12px 18px;
  font-weight: 800;
  line-height: 1.2;
  cursor: pointer;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.btn svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--color-teal);
  color: var(--color-white);
  box-shadow: 0 12px 24px rgba(15, 118, 110, 0.22);
}

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

.btn-secondary {
  background: var(--color-white);
  color: var(--color-teal);
  border-color: var(--color-line);
}

.btn-secondary:hover {
  border-color: rgba(15, 118, 110, 0.32);
  box-shadow: 0 10px 22px rgba(23, 50, 77, 0.08);
}

.btn-full {
  width: 100%;
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 36px;
  max-width: 560px;
}

.hero-meta div,
.notice,
.contact-item,
.faq-item,
.service-card,
.profile-panel,
.map-card,
.appointment-form {
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
}

.hero-meta div {
  padding: 16px;
}

.hero-meta span,
.contact-item span,
.footer-grid span {
  display: block;
  margin-bottom: 2px;
  color: var(--color-muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-meta strong,
.contact-item strong {
  display: block;
  overflow-wrap: anywhere;
  line-height: 1.3;
}

.hero-media {
  position: relative;
  min-height: 560px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.16), rgba(44, 123, 229, 0.1)),
    var(--color-sky);
}

.hero-media::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(180deg, rgba(23, 50, 77, 0) 52%, rgba(23, 50, 77, 0.42)),
    linear-gradient(90deg, rgba(15, 118, 110, 0.1), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.hero-media img {
  width: 100%;
  height: 100%;
  min-height: 560px;
  object-fit: cover;
}

.trust-panel {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
  padding: 16px 18px;
  backdrop-filter: blur(16px);
}

.trust-panel span {
  color: var(--color-muted);
  font-weight: 800;
}

.trust-panel strong {
  color: var(--color-teal);
  overflow-wrap: anywhere;
}

.split-layout {
  grid-template-columns: 0.85fr 1.15fr;
  align-items: center;
}

.profile-panel {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 24px;
  align-items: center;
  padding: 24px;
  box-shadow: 0 12px 32px rgba(23, 50, 77, 0.07);
}

.profile-panel img {
  width: 180px;
  aspect-ratio: 1;
  border-radius: var(--radius);
  background: var(--color-soft);
  object-fit: cover;
}

.profile-specialty {
  margin-bottom: 0;
  color: var(--color-teal);
  font-weight: 800;
}

.clean-list {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  color: var(--color-muted);
}

.clean-list li {
  position: relative;
  padding-left: 26px;
}

.clean-list li::before {
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--color-coral);
  content: "";
}

.clinic-section {
  padding-top: 54px;
  background: var(--color-white);
}

#clinic-title {
  scroll-margin-top: 110px;
}

.clinic-layout {
  display: grid;
  gap: 26px;
}

.clinic-gallery {
  display: grid;
  grid-template-columns: 1.1fr 0.95fr 0.95fr;
  gap: 14px;
}

.clinic-photo {
  min-height: 260px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: var(--color-soft);
  box-shadow: 0 12px 30px rgba(23, 50, 77, 0.08);
}

.clinic-photo img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  transition: transform 260ms ease;
}

.clinic-photo:hover img {
  transform: scale(1.03);
}

.services-section {
  background:
    linear-gradient(180deg, rgba(244, 251, 251, 0.8), rgba(255, 255, 255, 1)),
    var(--color-soft);
}

.section-heading {
  max-width: 740px;
  margin-bottom: 34px;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.service-card {
  min-height: 216px;
  padding: 24px;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease;
}

.service-card:hover {
  transform: translateY(-3px);
  border-color: rgba(15, 118, 110, 0.26);
  box-shadow: 0 18px 34px rgba(23, 50, 77, 0.1);
}

.service-card p {
  margin-bottom: 0;
  color: var(--color-muted);
}

.card-icon {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: var(--radius);
  background: var(--color-mint);
  color: var(--color-teal);
  font-weight: 900;
}

.appointment-section {
  background:
    linear-gradient(135deg, rgba(223, 245, 255, 0.78), rgba(217, 246, 236, 0.86)),
    #edf9f6;
}

.appointment-grid {
  grid-template-columns: 0.8fr 1.2fr;
  align-items: start;
}

.notice {
  display: grid;
  gap: 4px;
  margin-top: 28px;
  padding: 18px;
  border-left: 4px solid var(--color-coral);
}

.notice span {
  color: var(--color-muted);
}

.appointment-form {
  display: grid;
  gap: 18px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.form-row {
  display: grid;
  gap: 8px;
}

.two-columns {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

label {
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: var(--color-white);
  color: var(--color-ink);
  padding: 13px 14px;
  outline: none;
  transition:
    border-color 150ms ease,
    box-shadow 150ms ease;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(15, 118, 110, 0.58);
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.12);
}

.date-shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.date-chip {
  min-height: 36px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: var(--color-soft);
  color: var(--color-teal);
  padding: 8px 10px;
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
  transition:
    background 150ms ease,
    border-color 150ms ease,
    color 150ms ease;
}

.date-chip:hover,
.date-chip.is-selected {
  border-color: var(--color-teal);
  background: var(--color-teal);
  color: var(--color-white);
}

.date-helper-text {
  margin: 8px 0 0;
  color: var(--color-muted);
  font-size: 0.9rem;
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--color-teal);
  font-weight: 800;
}

.contact-grid {
  grid-template-columns: 0.9fr 1.1fr;
  align-items: stretch;
}

.contact-list {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.contact-item {
  padding: 16px;
}

.schedule-list {
  display: grid;
  gap: 8px;
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
}

.schedule-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(219, 232, 238, 0.8);
}

.schedule-list li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.schedule-list span {
  margin: 0;
  color: var(--color-ink);
  font-size: 1rem;
  font-weight: 800;
  text-transform: none;
}

.schedule-list strong {
  color: var(--color-muted);
  font-weight: 800;
  text-align: right;
}

.map-card {
  min-height: 430px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.map-card iframe {
  width: 100%;
  height: 100%;
  min-height: 430px;
  border: 0;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  padding: 0;
  overflow: hidden;
}

.faq-item summary {
  position: relative;
  cursor: pointer;
  padding: 18px 54px 18px 20px;
  font-weight: 900;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  position: absolute;
  right: 20px;
  top: 50%;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--color-mint);
  color: var(--color-teal);
  content: "+";
  transform: translateY(-50%);
}

.faq-item[open] summary::after {
  content: "-";
}

.faq-item p {
  margin: 0;
  padding: 0 20px 20px;
  color: var(--color-muted);
}

.site-footer {
  background: #102f33;
  color: var(--color-white);
  padding: 36px 0;
}

.footer-grid {
  grid-template-columns: 1.5fr 0.8fr 1fr 0.8fr;
  gap: 28px;
}

.footer-grid p,
.footer-grid a,
.social-links {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
}

.footer-grid strong {
  display: block;
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.footer-grid span {
  color: rgba(255, 255, 255, 0.58);
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.social-links a {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.floating-whatsapp {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 50;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #20bf6b;
  color: var(--color-white);
  box-shadow: 0 16px 30px rgba(15, 118, 110, 0.24);
  transition:
    transform 160ms ease,
    background 160ms ease;
}

.floating-whatsapp:hover {
  transform: translateY(-2px) scale(1.02);
  background: #128c7e;
}

.floating-whatsapp svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 980px) {
  .section {
    padding: 72px 0;
  }

  .hero {
    min-height: auto;
    padding-top: 56px;
  }

  .hero-grid,
  .split-layout,
  .appointment-grid,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-media,
  .hero-media img {
    min-height: 430px;
  }

  .cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .clinic-gallery {
    grid-template-columns: 1fr 1fr;
  }

  .clinic-photo:first-child {
    grid-column: 1 / -1;
  }

  .footer-grid {
    gap: 22px;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(100% - 24px, var(--container));
  }

  .header-inner {
    min-height: 68px;
  }

  .brand small {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    left: 12px;
    right: 12px;
    top: calc(100% + 8px);
    display: grid;
    gap: 2px;
    padding: 10px;
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    background: var(--color-white);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition:
      opacity 160ms ease,
      transform 160ms ease,
      visibility 160ms ease;
  }

  .site-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .site-nav a {
    padding: 12px;
    border-radius: var(--radius);
  }

  .site-nav a:hover {
    background: var(--color-soft);
  }

  h1 {
    max-width: 11ch;
    font-size: clamp(2.35rem, 14vw, 3.8rem);
  }

  h2 {
    font-size: clamp(1.9rem, 9vw, 2.7rem);
  }

  .hero-actions,
  .contact-actions {
    display: grid;
  }

  .hero-meta,
  .cards-grid,
  .clinic-gallery,
  .two-columns,
  .profile-panel {
    grid-template-columns: 1fr;
  }

  .clinic-photo:first-child {
    grid-column: auto;
  }

  .profile-panel img {
    width: 100%;
    max-width: 240px;
  }

  .appointment-form {
    padding: 20px;
  }

  .hero-media,
  .hero-media img,
  .map-card,
  .map-card iframe {
    min-height: 340px;
  }

  .trust-panel {
    align-items: flex-start;
    flex-direction: column;
  }

  .schedule-list li {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .schedule-list strong {
    text-align: left;
  }

  .floating-whatsapp {
    right: 14px;
    bottom: 14px;
    width: 54px;
    height: 54px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
