:root {
  --white: #ffffff;
  --bg: #ffffff;
  --ink: #191b1f;
  --text: #31363b;
  --muted: #5b646c;
  --gold: #cfa756;
  --gold-dark: #aa8335;
  --green: #0f7b58;
  --mint: #d0eadd;
  --line: rgba(25, 27, 31, 0.08);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: "Manrope", sans-serif;
  overflow-x: hidden;
}

.page-wrap {
  width: 100%;
  position: relative;
  /* overflow-x: hidden; - Keep page wrap overflow hidden to prevent horizontal scroll from absolute elements */
  overflow-x: hidden;
}

/* --- Header --- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1400px;
  /* Match Hero Grid */
  margin: 0 auto;
  padding: 2rem 2rem;
  position: absolute;
  /* Floating */
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  /* Above waves */
  background: transparent;
}

.logo {
  text-decoration: none;
  color: var(--green);
  font-family: "Montserrat", sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  position: relative;
  z-index: 51;
}

.menu {
  display: flex;
  gap: 2rem;
  z-index: 51;
}

.menu a {
  text-decoration: none;
  color: #545e65;
  /* Dark enough to be seen on white/mint */
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color 0.2s;
}

.menu a:hover {
  color: var(--green);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: #fff;
  padding: 0.8rem 2.2rem;
  box-shadow: 0 4px 15px rgba(170, 131, 53, 0.3);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(170, 131, 53, 0.4);
}

.btn-hero {
  border-radius: 30px 0 30px 30px;
  font-size: 1rem;
  padding: 1rem 3rem;
}

.btn-small {
  padding: 0.5rem 1.2rem;
  font-size: 0.8rem;
}

.btn-top {
  padding: 0.6rem 2rem;
  font-size: 0.85rem;
  position: relative;
  z-index: 51;
}

/* --- Hero Reference Style --- */
.hero-reference {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-color: #fff;
  /* overflow: hidden; REMOVED to allow waves to spill over */
  padding-top: 6rem;
  /* Space for absolute header */
  padding-bottom: 4rem;
}

/* Corner Decorations */
.decoration-corner-tl {
  position: absolute;
  top: 0;
  left: 0;
  width: 65%;
  /* Wider to go under menu if needed */
  height: 85%;
  z-index: 1;
  pointer-events: none;
}

.decoration-corner-br {
  position: absolute;
  bottom: -5%;
  /* Push down to overlap next section contextually */
  right: 0;
  width: 65%;
  height: 65%;
  z-index: 1;
  pointer-events: none;
}

.decoration-corner-tl svg,
.decoration-corner-br svg {
  width: 100%;
  height: 100%;
  /* Ensure SVG scaling doesn't clip */
  overflow: visible;
}

.hero-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  /* More space for image/structure */
  align-items: center;
  position: relative;
  z-index: 5;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.hero-title {
  font-family: "Montserrat", sans-serif;
  line-height: 1.1;
  margin-bottom: 2rem;
}

.text-gold {
  color: var(--gold);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 700;
  display: block;
}

.text-sub {
  color: var(--ink);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 600;
  display: block;
  margin-top: 0.5rem;
  letter-spacing: -0.02em;
}

.hero-right {
  display: flex;
  justify-content: flex-end;
  /* Align right */
  align-items: flex-end;
  height: 100%;
  position: relative;
}

.hero-doctor-cutout {
  max-width: 100%;
  width: 600px;
  /* Larger image */
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.1));
  mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
  position: relative;
  z-index: 6;
  /* Clickable if needed, above bg waves */
  right: -5%;
  /* Slight push to edge */
}

/* Mobile Tweaks */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 4rem;
  }

  .hero-left {
    margin-bottom: 2rem;
    position: relative;
    z-index: 10;
  }

  .hero-right {
    display: flex;
    justify-content: center;
    right: 0;
  }

  .hero-doctor-cutout {
    width: 350px;
    mask-image: linear-gradient(to bottom, black 90%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 90%, transparent 100%);
  }

  .decoration-corner-tl {
    width: 120%;
    /* Spill over mobile */
    left: -10%;
    height: 60%;
  }

  .decoration-corner-br {
    width: 120%;
    right: -10%;
    height: 50%;
    bottom: -10%;
  }

  .site-header {
    padding: 1rem;
  }
}

/* --- Shared Section --- */
.section {
  padding: 6rem 2rem;
  position: relative;
}

.u-container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-family: "Montserrat", sans-serif;
  font-size: 2.5rem;
  text-align: center;
  color: var(--ink);
  margin-bottom: 4rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* --- About --- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-content p {
  margin-bottom: 1.5rem;
  line-height: 1.8;
  color: var(--text);
}

.about-images {
  position: relative;
  height: 500px;
}

.blob {
  position: absolute;
  overflow: hidden;
  border: 3px solid var(--gold);
  background: #fff;
  transition: transform 0.3s;
}

.blob:hover {
  transform: scale(1.05);
  z-index: 10;
}

.blob img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blob-1 {
  width: 250px;
  height: 200px;
  top: 0;
  right: 50px;
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
}

.blob-2 {
  width: 200px;
  height: 200px;
  top: 150px;
  right: 0;
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
}

.blob-3 {
  width: 220px;
  height: 180px;
  top: 280px;
  right: 180px;
  border-radius: 50% 50% 20% 80% / 25% 80% 20% 75%;
}

/* --- Expert --- */
.expert-section {
  text-align: center;
  position: relative;
}

.expert-center {
  position: relative;
  width: 350px;
  height: 350px;
  margin: 0 auto 3rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.expert-bg-blob {
  position: absolute;
  top: -10%;
  left: -10%;
  width: 120%;
  height: 120%;
  background-color: var(--mint);
  border-radius: 55% 45% 40% 60% / 50% 60% 40% 50%;
  z-index: 0;
}

.expert-photo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  z-index: 2;
  position: relative;
  border: 4px solid var(--white);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.expert-text-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  animation: rotate 20s linear infinite;
  z-index: 1;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.expert-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.stat-item span {
  font-family: "Montserrat", sans-serif;
  font-size: 3rem;
  color: var(--gold);
  font-weight: 700;
  display: block;
}

.stat-item p {
  color: var(--muted);
}

/* --- Services --- */
.services-section {
  background: var(--bg);
}

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

.service-bubble {
  background: var(--white);
  border: 1px solid var(--gold-soft);
  border-radius: 100px;
  /* Pill/Oval shape */
  padding: 2rem 1rem;
  text-align: center;
  transition: 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}

.service-bubble:hover {
  transform: translateY(-5px);
  border-color: var(--gold);
  box-shadow: 0 10px 20px rgba(186, 150, 70, 0.15);
}

.service-icon {
  width: 80px;
  height: 80px;
  background: var(--mint);
  border-radius: 50%;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-icon img {
  width: 60%;
  height: 60%;
  object-fit: contain;
}

.service-bubble h3 {
  font-size: 1.1rem;
  margin-bottom: auto;
  padding-bottom: 1.5rem;
}

/* --- Price (Full Width Wave) --- */
.price-section {
  position: relative;
  background-color: var(--mint);
  padding: 8rem 0;
  margin: 4rem 0;
  overflow: visible;
}

.price-section .wave-top,
.price-section .wave-bottom {
  height: 100px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320' preserveAspectRatio='none'%3E%3Cpath fill='%23dff2e8' fill-opacity='1' d='M0,96L48,112C96,128,192,160,288,186.7C384,213,480,235,576,213.3C672,192,768,128,864,122.7C960,117,1056,171,1152,197.3C1248,224,1344,224,1392,224L1440,224L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'/%3E%3C/svg%3E");
}

.price-section .wave-top {
  top: -99px;
  /* Pull up */
  transform: scaleY(-1);
}

.price-section .wave-bottom {
  bottom: -99px;
  transform: none;
}

.price-list {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(5px);
  border-radius: 20px;
  padding: 3rem;
  max-width: 800px;
  margin: 0 auto;
}

.price-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  border-bottom: 2px dotted var(--gold);
  padding-bottom: 0.5rem;
}

.price-item span {
  font-weight: 600;
  background: transparent;
  position: relative;
  bottom: -6px;
  /* Align dotted line */
}

/* --- Gallery --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.gallery-item {
  aspect-ratio: 1;
  overflow: hidden;
  border: 3px solid var(--gold-soft);
  transition: 0.3s;
}

/* Organic shapes */
.g-shape-1 {
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
}

.g-shape-2 {
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
}

.g-shape-3 {
  border-radius: 50% 50% 20% 80% / 25% 80% 20% 75%;
}

.g-shape-4 {
  border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

/* --- Footer --- */
.contacts-section {
  text-align: center;
  padding-bottom: 4rem;
}

.socials {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.social-icon {
  width: 40px;
  height: 40px;
  background: var(--gold);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  transition: 0.3s;
}

.social-icon:hover {
  background: var(--green);
  transform: rotate(10deg);
}

/* --- Mobile --- */
@media (max-width: 768px) {
  .site-header {
    padding: 1rem;
  }

  .menu {
    display: none;
  }

  /* Add toggle if needed */

  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 4rem;
  }

  .hero-image {
    order: -1;
    margin-bottom: 2rem;
  }

  .about-grid,
  .expert-stats,
  .services-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .blob {
    position: static;
    width: 100%;
    height: 300px;
    margin-bottom: 1rem;
  }

  .price-list {
    padding: 1.5rem;
    width: 95%;
  }

  .expert-center {
    width: 280px;
    height: 280px;
  }
}