:root {
  --ink: #193035;
  --muted: #607177;
  --paper: #f7fbfa;
  --white: #ffffff;
  --teal: #087f83;
  --teal-dark: #065d61;
  --mint: #d7f1e8;
  --coral: #ef6c57;
  --gold: #f3b23b;
  --line: #dbe8e5;
  --shadow: 0 18px 45px rgba(25, 48, 53, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  width: 100%;
  overflow-x: hidden;
}

body {
  width: 100%;
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  overflow-x: hidden;
}

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

img,
svg,
video {
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 64px);
  background: rgba(247, 251, 250, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

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

.brand span:last-child,
.footer-brand span:last-child {
  display: grid;
  min-width: 0;
}

.brand strong {
  font-size: 1.25rem;
  line-height: 1.1;
}

.brand small {
  max-width: 280px;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.2;
  overflow-wrap: break-word;
}

.brand-mark {
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  color: var(--white);
  background: linear-gradient(135deg, var(--teal), var(--coral));
  border-radius: 8px;
  font-weight: 800;
}

.brand-logo {
  flex: 0 0 auto;
  width: 71px;
  height: 56px;
  object-fit: contain;
  border-radius: 6px;
  border: 1px solid var(--line);
  background-color: var(--white);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.brand:hover .brand-logo,
.footer-brand:hover .brand-logo {
  transform: scale(1.08) rotate(2deg);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
  min-width: 0;
}

.nav-links a {
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.94rem;
  transition: color 0.25s ease, background-color 0.25s ease, transform 0.2s ease;
}

.nav-links a:hover {
  transform: translateY(-1px);
}

.nav-links a:active {
  transform: translateY(0);
}

.nav-links a:hover,
.nav-links .active {
  color: var(--teal-dark);
  background: var(--mint);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  min-height: calc(100vh - 72px);
  padding: clamp(34px, 7vw, 90px) clamp(18px, 5vw, 76px);
  background:
    linear-gradient(110deg, rgba(247, 251, 250, 0.95), rgba(247, 251, 250, 0.74)),
    url("https://images.unsplash.com/photo-1576091160399-112ba8d25d1d?auto=format&fit=crop&w=1800&q=80") center/cover;
}

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

h1,
h2,
h3,
p {
  margin-top: 0;
  overflow-wrap: break-word;
}

h1 {
  max-width: 820px;
  margin-bottom: 16px;
  font-size: clamp(2.25rem, 6vw, 4.8rem);
  line-height: 0.98;
}

h2 {
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1.08;
}

h3 {
  font-size: 1.05rem;
}

.lead {
  max-width: 620px;
  color: #42575d;
  font-size: clamp(1.08rem, 2vw, 1.25rem);
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  min-width: 0;
}

.btn,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 0;
  border-radius: 8px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.25s ease, background-color 0.25s ease, opacity 0.2s ease;
}

.btn:hover,
button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(8, 127, 131, 0.22);
}

.btn:active,
button:active {
  transform: translateY(0);
}

.primary {
  color: var(--white);
  background: var(--teal);
}

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

.secondary {
  color: var(--teal-dark);
  background: var(--mint);
}

.secondary:hover {
  background: #c3e9dd;
}

.wide {
  width: 100%;
}

.contact-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 14px;
  color: var(--white);
  background: var(--coral);
  border-radius: 8px;
  box-shadow: var(--shadow);
  font-weight: 800;
  max-width: 100%;
}

.contact-logo svg {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.whatsapp-logo {
  background: #1fae62;
}

.phone-logo {
  background: var(--coral);
}

.hero-panel {
  display: grid;
  gap: 16px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  min-width: 0;
}

.doctor-photo {
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: #0b73c7;
  border-radius: 8px;
}

.doctor-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center top;
}

.doctor-name {
  margin-bottom: 2px;
  font-size: 1.4rem;
  font-weight: 900;
  line-height: 1.15;
}

.doctor-name span {
  color: var(--muted);
  font-size: 0.78em;
  font-weight: 700;
}

.doctor-role {
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 800;
}

.doctor-details {
  display: grid;
  gap: 3px;
  margin: 0;
  padding: 0;
  color: #b64d7c;
  font-weight: 700;
  line-height: 1.35;
  list-style: none;
}

.section,
.page-shell {
  padding: clamp(42px, 7vw, 84px) clamp(18px, 5vw, 76px);
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(28px, 5vw, 56px);
}

.service-grid,
.review-grid,
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.mini-card,
.review-card,
.info-card,
.media-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 10px 26px rgba(25, 48, 53, 0.06);
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease, border-color 0.4s ease;
  min-width: 0;
}

.mini-card:hover,
.review-card:hover,
.info-card:hover,
.media-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(25, 48, 53, 0.12);
  border-color: rgba(8, 127, 131, 0.25);
}

.mini-card p,
.review-card p,
.info-card p {
  color: var(--muted);
}

.location-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1.2fr);
  gap: clamp(24px, 5vw, 56px);
  align-items: stretch;
  background: var(--white);
}

.location-copy {
  display: grid;
  align-content: center;
  justify-items: start;
}

.location-copy p:not(.eyebrow) {
  color: var(--muted);
}

.map-frame {
  min-height: 420px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  background: #eef7f3;
}

.map-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 420px;
  border: 0;
}

.reviews-section {
  background: #eef7f3;
}

.reviews-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
  margin-bottom: 22px;
}

.rating-box {
  min-width: 142px;
  padding: 16px;
  color: var(--white);
  background: var(--ink);
  border-radius: 8px;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.rating-box:hover {
  transform: scale(1.06) rotate(-1deg);
}

.rating-box strong {
  display: block;
  font-size: 2.1rem;
  line-height: 1;
}

.rating-box span {
  color: var(--gold);
}

.page-title {
  max-width: 860px;
  margin-bottom: 28px;
}

.page-title.compact {
  margin-bottom: 0;
}

.gallery-section {
  display: grid;
  gap: clamp(30px, 5vw, 56px);
}

.gallery-group {
  display: grid;
  gap: 16px;
}

.gallery-group h2 {
  margin-bottom: 0;
  font-size: clamp(1.45rem, 2.4vw, 2.15rem);
}

.gallery-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  align-items: stretch;
}

.media-card {
  min-height: 0;
}

.video-gallery {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.photo-gallery {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.gallery-video-card {
  width: 100%;
  aspect-ratio: 9 / 16;
  padding: 0;
  overflow: hidden;
  background: #111f24;
}

.gallery-video-card video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.gallery-photo-card {
  width: 100%;
  aspect-ratio: 4 / 5;
  padding: 0;
  overflow: hidden;
  background: var(--white);
}

.gallery-photo-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.reel-card {
  display: grid;
  grid-column: span 2;
  gap: 16px;
  min-height: 560px;
  padding: 18px;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff, #eef8ff);
}

.reel-card-header h2 {
  margin-bottom: 0;
  font-size: clamp(1.4rem, 2.2vw, 2rem);
}

.reel-frame {
  display: grid;
  place-items: center;
  min-height: 420px;
  padding: 10px;
  background: #f7fbfa;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.reel-frame .instagram-media {
  width: min(100%, 540px) !important;
  min-width: 0 !important;
  margin: 0 !important;
}

.reel-link {
  justify-self: start;
}

.treatment-visual,
.video-preview {
  display: flex;
  align-items: end;
  aspect-ratio: 4 / 3;
  min-height: 250px;
  color: var(--white);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.treatment-visual span,
.video-preview span {
  padding: 8px 12px;
  background: rgba(25, 48, 53, 0.72);
  border-radius: 8px;
  font-weight: 800;
}

.visual-one {
  background-image: linear-gradient(180deg, transparent, rgba(25, 48, 53, 0.78)), url("https://images.unsplash.com/photo-1571019613914-85f342c6a11e?auto=format&fit=crop&w=900&q=80");
}

.visual-two {
  background-image: linear-gradient(180deg, transparent, rgba(25, 48, 53, 0.78)), url("https://images.unsplash.com/photo-1629909613654-28e377c37b09?auto=format&fit=crop&w=900&q=80");
}

.visual-three {
  background-image: linear-gradient(180deg, transparent, rgba(25, 48, 53, 0.78)), url("https://images.unsplash.com/photo-1599058917212-d750089bc07e?auto=format&fit=crop&w=900&q=80");
}

.video-preview {
  position: relative;
  background-image: linear-gradient(180deg, transparent, rgba(25, 48, 53, 0.82)), url("https://images.unsplash.com/photo-1600881333168-2ef49b341f30?auto=format&fit=crop&w=900&q=80");
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease;
}

.video-preview:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(25, 48, 53, 0.12);
}

.play-dot {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 58px;
  height: 58px;
  background: var(--coral);
  clip-path: polygon(30% 20%, 30% 80%, 82% 50%);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), background-color 0.3s ease;
}

.video-preview:hover .play-dot {
  transform: scale(1.15) rotate(5deg);
  background: var(--teal);
}

.booking-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: start;
}

.booking-form {
  display: grid;
  gap: 10px;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

label {
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 12px;
  border: 1px solid #bfd3ce;
  border-radius: 8px;
  font: inherit;
  color: var(--ink);
  background: var(--white);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(8, 127, 131, 0.15);
  transform: translateY(-1px);
}

textarea {
  resize: vertical;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
  padding: 24px clamp(18px, 5vw, 76px);
  color: var(--white);
  background: var(--ink);
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.footer-links a {
  padding: 8px 10px;
  color: var(--mint);
  border-radius: 8px;
  font-weight: 800;
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.2s ease;
}

.footer-links a:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

.instagram-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--mint);
  font-weight: 800;
}

.instagram-link svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

@media (max-width: 900px) {
  .site-header,
  .hero,
  .two-column,
  .location-section,
  .booking-layout {
    grid-template-columns: 1fr;
  }

  .site-header {
    display: grid;
  }

  .nav-links {
    justify-content: start;
  }

  .hero {
    min-height: auto;
  }

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

  .reel-card {
    grid-column: 1 / -1;
  }

  .gallery-video-card {
    grid-column: auto;
  }
}

@media (max-width: 640px) {
  h1 {
    font-size: 2.15rem;
    line-height: 1.05;
  }

  h2 {
    font-size: 1.65rem;
  }

  .service-grid,
  .review-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .reviews-head,
  .site-footer {
    align-items: start;
    flex-direction: column;
  }

  .footer-links {
    justify-content: start;
  }

  .nav-links a {
    padding-inline: 9px;
    font-size: 0.9rem;
  }

  .hero,
  .section,
  .page-shell {
    padding-inline: 16px;
  }

  .map-frame,
  .map-frame iframe {
    min-height: 340px;
  }

  .hero-actions,
  .contact-logo,
  .btn,
  button {
    width: 100%;
  }

  .contact-logo {
    justify-content: center;
  }

  .hero-panel,
  .booking-form,
  .mini-card,
  .review-card,
  .info-card,
  .media-card {
    padding: 16px;
  }

  .booking-form {
    padding: 18px;
  }

  .reel-card {
    grid-column: auto;
    min-height: 500px;
  }

  .gallery-video-card {
    grid-column: auto;
    min-height: 0;
    padding: 0;
  }

  .media-card.gallery-video-card,
  .media-card.gallery-photo-card {
    padding: 0;
  }

  .treatment-visual,
  .video-preview {
    aspect-ratio: 4 / 3;
    min-height: 240px;
  }

  .reel-frame {
    min-height: 360px;
    padding: 6px;
  }
}

@media (max-width: 480px) {
  .site-header {
    gap: 12px;
    padding: 12px;
  }

  .brand {
    width: 100%;
  }

  .brand-logo {
    flex: 0 0 auto;
    width: 56px;
    height: 44px;
  }

  .brand small {
    max-width: none;
    font-size: 0.72rem;
  }

  .nav-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    gap: 4px;
  }

  .nav-links a {
    display: grid;
    place-items: center;
    min-height: 40px;
    padding: 8px 6px;
    font-size: 0.82rem;
    text-align: center;
  }

  h1 {
    font-size: 1.85rem;
  }

  .lead {
    font-size: 1rem;
  }

  .rating-box {
    width: 100%;
  }

  .footer-brand {
    width: 100%;
  }

  .footer-links,
  .instagram-link {
    width: 100%;
  }

  .footer-brand span:last-child,
  .instagram-link {
    overflow-wrap: anywhere;
  }

  .gallery-video-card {
    max-height: none;
  }
}

@media (max-width: 360px) {
  .hero,
  .section,
  .page-shell {
    padding-inline: 12px;
  }

  .map-frame,
  .map-frame iframe {
    min-height: 300px;
  }

  .nav-links a {
    font-size: 0.76rem;
  }

  .brand strong {
    font-size: 0.92rem;
  }

  .brand small {
    font-size: 0.68rem;
  }
}

/* Floating Contact Widget */
.floating-contact {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.floating-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  color: var(--white);
  box-shadow: 0 6px 20px rgba(25, 48, 53, 0.25);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
}

.floating-btn:hover {
  transform: scale(1.15);
  box-shadow: 0 8px 24px rgba(25, 48, 53, 0.35);
  color: var(--white);
}

.floating-btn svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}

.floating-btn.phone-btn {
  background: var(--coral);
}

.floating-btn.whatsapp-btn {
  background: #25d366; /* Official WhatsApp Green */
}

/* Pulse animation on the WhatsApp button */
.floating-btn.whatsapp-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid #25d366;
  opacity: 0;
  animation: pulse-ring 2.2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
  pointer-events: none;
}

@keyframes pulse-ring {
  0% {
    transform: scale(0.95);
    opacity: 0.85;
  }
  50% {
    opacity: 0.45;
  }
  100% {
    transform: scale(1.45);
    opacity: 0;
  }
}

@media (max-width: 640px) {
  .floating-contact {
    bottom: 16px;
    right: 16px;
    gap: 10px;
  }
  
  .floating-btn {
    width: 48px;
    height: 48px;
  }
  
  .floating-btn svg {
    width: 22px;
    height: 22px;
  }
}

/* Animation Keyframes */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Hero Entrance Animations on Load */
.hero-copy > * {
  animation: fadeInUp 0.8s cubic-bezier(0.215, 0.61, 0.355, 1) both;
}

.hero-copy .eyebrow {
  animation-delay: 0.1s;
}

.hero-copy h1 {
  animation-delay: 0.25s;
}

.hero-copy .lead {
  animation-delay: 0.4s;
}

.hero-copy .hero-actions {
  animation-delay: 0.55s;
}

.hero-panel {
  animation: zoomIn 1.1s cubic-bezier(0.215, 0.61, 0.355, 1) both;
  animation-delay: 0.3s;
}

/* Scroll Animation classes */
.scroll-animate {
  opacity: 1;
  transform: none;
}

.js-enabled .scroll-animate {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.215, 0.61, 0.355, 1), transform 0.8s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.scroll-animate.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger grid animation delays */
.stagger-grid > * {
  opacity: 1;
  transform: none;
}

.js-enabled .stagger-grid > *.visible {
  opacity: 1;
  transform: translateY(0);
}

.js-enabled .stagger-grid > * {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.215, 0.61, 0.355, 1), transform 0.8s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.stagger-grid > *:nth-child(1) { transition-delay: 0.1s; }
.stagger-grid > *:nth-child(2) { transition-delay: 0.2s; }
.stagger-grid > *:nth-child(3) { transition-delay: 0.3s; }
.stagger-grid > *:nth-child(4) { transition-delay: 0.4s; }
.stagger-grid > *:nth-child(5) { transition-delay: 0.5s; }
.stagger-grid > *:nth-child(6) { transition-delay: 0.6s; }
