/* ==========================================================
   R N S Fertility Clinic — main stylesheet
   ========================================================== */
:root {
  --primary-900: #0f3b47;
  --primary-700: #155e6f;
  --primary-500: #2a8c9e;
  --primary-100: #e2f2f4;
  --accent-600: #c8502f;
  --accent-400: #f4a283;
  --accent-100: #fdede7;
  --cream: #f5fafb;
  --ink: #1d2b30;
  --muted: #5a6b70;
  --line: #e2e8ea;
  --white: #ffffff;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(15, 59, 71, 0.08);
  --font-head: "Playfair Display", Georgia, serif;
  --font-body: "Poppins", "Segoe UI", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.7;
  font-size: 16px;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--primary-700); text-decoration: none; }
a:hover { color: var(--accent-600); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--primary-900); line-height: 1.25; margin: 0 0 .6em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }

.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.section { padding: 84px 0; }
.section.alt { background: var(--white); }
.section.tint { background: var(--primary-100); }
.center { text-align: center; }
.eyebrow {
  display: inline-block;
  font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent-600); background: var(--accent-100);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 14px;
}
.lead { font-size: 1.1rem; color: var(--muted); max-width: 720px; }
.center .lead { margin-inline: auto; }
.section-head { margin-bottom: 48px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px; border: 2px solid transparent;
  font-weight: 600; font-size: .95rem; cursor: pointer; transition: all .25s ease;
  font-family: inherit;
}
.btn-primary { background: var(--accent-600); color: var(--white); }
.btn-primary:hover { background: #a8411f; color: var(--white); transform: translateY(-2px); }
.btn-outline { border-color: var(--primary-700); color: var(--primary-700); background: transparent; }
.btn-outline:hover { background: var(--primary-700); color: var(--white); }
.btn-light { background: var(--white); color: var(--primary-900); }
.btn-light:hover { background: var(--accent-100); color: var(--primary-900); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }

/* ---------- Top bar & header ---------- */
.topbar { background: var(--primary-900); color: #cfe5ea; font-size: .85rem; }
.topbar .container { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; flex-wrap: wrap; }
.topbar a { color: #fff; }
.topbar span { margin-right: 18px; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(21, 94, 111, .97); backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 4px 18px rgba(15, 59, 71, .18);
}
.site-header .logo, .site-header .logo-text { color: #fff; }
.site-header .logo-text small { color: var(--accent-400); }
.nav { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--primary-900); }
.logo-mark {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-500), var(--accent-400));
  display: grid; place-items: center; color: #fff; font-family: var(--font-head); font-weight: 700;
}
.logo-text { font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; line-height: 1.1; }
.logo-text small { display: block; font-family: var(--font-body); font-weight: 500; font-size: .7rem; letter-spacing: .18em; color: var(--accent-600); text-transform: uppercase; }

.nav-links { display: flex; align-items: center; gap: 22px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: #e6f3f5; font-weight: 500; font-size: .95rem; position: relative; }
.nav-links a:not(.btn):hover { color: #fff; }
.nav-links a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px;
  background: var(--accent-400); transition: width .25s;
}
.nav-links a:not(.btn):hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--accent-400); }
.nav-links .btn { padding: 10px 20px; color: #fff; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 26px; height: 2px; background: #fff; margin: 6px 0; transition: .3s; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(circle at 85% 20%, rgba(244, 162, 131, .25), transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(42, 140, 158, .18), transparent 40%),
    var(--cream);
  padding: 90px 0 100px;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero p.lead { margin-bottom: 0; }
.hero-art {
  aspect-ratio: 1; border-radius: 50% 50% 46% 54% / 55% 45% 55% 45%;
  background: linear-gradient(145deg, var(--primary-100), var(--accent-100));
  display: grid; place-items: center; position: relative; box-shadow: var(--shadow);
}
.hero-art svg { width: 70%; }
.hero-badge {
  position: absolute; background: #fff; border-radius: 14px; padding: 12px 16px;
  box-shadow: var(--shadow); font-size: .85rem; display: flex; gap: 10px; align-items: center;
}
.hero-badge strong { display: block; color: var(--primary-900); font-size: 1.05rem; }
.hero-badge.b1 { left: -10px; bottom: 18%; }
.hero-badge.b2 { right: -6px; top: 12%; }
.hero-badge .dot { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-100); color: var(--accent-600); font-size: 1.1rem; }

/* ---------- Page banner ---------- */
.page-banner {
  background: linear-gradient(120deg, var(--primary-900), var(--primary-700) 60%, #2a8c9e);
  color: #fff; padding: 74px 0 64px; text-align: center;
}
.page-banner h1 { color: #fff; margin-bottom: .3em; }
.page-banner p { color: #ddeef1; max-width: 680px; margin: 0 auto; }
.breadcrumb { font-size: .85rem; margin-top: 14px; color: #c5dfe4; }
.breadcrumb a { color: #fff; }

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-5px); box-shadow: 0 16px 36px rgba(15, 59, 71, .12); }
.card p { color: var(--muted); margin-bottom: 0; }
.icon {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
  background: var(--primary-100); color: var(--primary-700); margin-bottom: 18px;
}
.icon svg { width: 28px; height: 28px; }
.card:nth-child(even) .icon { background: var(--accent-100); color: var(--accent-600); }
.card .more { display: inline-block; margin-top: 14px; font-weight: 600; font-size: .9rem; }

.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { position: relative; padding-left: 34px; margin-bottom: 12px; }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--primary-500); color: #fff; font-size: .75rem; display: grid; place-items: center;
}

.media-box {
  border-radius: var(--radius); min-height: 380px; display: grid; place-items: center;
  background: linear-gradient(160deg, var(--accent-100), var(--primary-100)); box-shadow: var(--shadow);
  padding: 30px;
}
.media-box svg { width: 62%; }

/* ---------- Stats ---------- */
.stats { background: var(--primary-900); color: #fff; padding: 56px 0; }
.stats .grid-4 { text-align: center; }
.stat-num { font-family: var(--font-head); font-size: 2.6rem; font-weight: 700; color: var(--accent-400); line-height: 1; }
.stat-label { color: #c5dfe4; font-size: .95rem; margin-top: 8px; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; }
.step { position: relative; padding-top: 46px; }
.step::before {
  counter-increment: step; content: "0" counter(step);
  position: absolute; top: 0; left: 30px; font-family: var(--font-head); font-size: 2.2rem; font-weight: 700;
  color: var(--accent-400); opacity: .55;
}

/* ---------- Testimonials ---------- */
.testimonial { position: relative; }
.testimonial .quote-mark { font-family: var(--font-head); font-size: 4rem; line-height: 1; color: var(--accent-400); height: 36px; }
.testimonial p { font-style: italic; color: var(--ink); }
.stars { color: #e5a93a; letter-spacing: 2px; margin: 10px 0; }
.person { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--primary-500); color: #fff; display: grid; place-items: center; font-weight: 600; }
.person small { display: block; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin: 0 auto; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 14px; overflow: hidden; }
.faq-q {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  padding: 20px 56px 20px 24px; font-family: inherit; font-size: 1rem; font-weight: 600; color: var(--primary-900);
  position: relative;
}
.faq-q::after {
  content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; color: var(--accent-600); transition: transform .25s;
}
.faq-item.open .faq-q::after { transform: translateY(-50%) rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-a-inner { padding: 0 24px 20px; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--primary-900), var(--primary-700) 55%, var(--primary-500));
  color: #fff; border-radius: 26px; padding: 56px; display: flex; justify-content: space-between;
  align-items: center; gap: 30px; flex-wrap: wrap;
}
.cta-band h2 { color: #fff; margin-bottom: .3em; }
.cta-band p { color: #d6ecf0; margin: 0; max-width: 560px; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form label { display: block; font-weight: 500; font-size: .9rem; margin-bottom: 6px; color: var(--primary-900); }
.form input, .form select, .form textarea {
  width: 100%; padding: 13px 16px; border: 1px solid var(--line); border-radius: 12px;
  font-family: inherit; font-size: .95rem; background: var(--cream); color: var(--ink);
}
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none; border-color: var(--primary-500); box-shadow: 0 0 0 3px rgba(42, 140, 158, .15);
}
.form-note { font-size: .85rem; color: var(--muted); }
.form-msg { display: none; padding: 12px 16px; border-radius: 12px; background: var(--primary-100); color: var(--primary-900); }
.form-msg.show { display: block; }

.contact-info .item { display: flex; gap: 16px; margin-bottom: 24px; }
.contact-info .icon { margin: 0; flex-shrink: 0; }
.contact-info h4 { margin: 0 0 4px; font-size: 1.05rem; }
.contact-info p { margin: 0; color: var(--muted); }
.map-box {
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); min-height: 320px;
  background: var(--primary-100);
}
.map-box iframe { width: 100%; height: 360px; border: 0; display: block; }

.hours { width: 100%; border-collapse: collapse; }
.hours td { padding: 10px 0; border-bottom: 1px dashed var(--line); }
.hours td:last-child { text-align: right; font-weight: 500; }

/* ---------- Treatment detail ---------- */
.treatment { display: grid; grid-template-columns: 90px 1fr; gap: 26px; padding: 34px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 110px; }
.treatment:last-child { border-bottom: 0; }
.treatment .icon { width: 80px; height: 80px; border-radius: 22px; }
.treatment .icon svg { width: 38px; height: 38px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; padding: 0; list-style: none; }
.tag-list li { background: var(--primary-100); color: var(--primary-700); font-size: .82rem; padding: 4px 12px; border-radius: 999px; }

.notice {
  background: var(--accent-100); border-left: 4px solid var(--accent-600); padding: 18px 22px;
  border-radius: 10px; color: var(--ink); font-size: .95rem;
}

/* ---------- Footer ---------- */
.site-footer { background: #0b2a33; color: #aecbd2; padding: 70px 0 0; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.site-footer h4 { color: #fff; font-family: var(--font-body); font-size: 1rem; letter-spacing: .05em; margin-bottom: 18px; }
.site-footer a { color: #aecbd2; }
.site-footer a:hover { color: var(--accent-400); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 10px; font-size: .93rem; }
.site-footer .logo-text { color: #fff; }
.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a {
  width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.08);
  display: grid; place-items: center; color: #fff;
}
.socials a:hover { background: var(--accent-600); color: #fff; }
.socials svg { width: 18px; height: 18px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 50px; padding: 20px 0; font-size: .85rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0,0,0,.2);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.08); color: #fff; }
.wa-float svg { width: 30px; height: 30px; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1100px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch;
    gap: 0; background: var(--primary-700); border-bottom: 1px solid rgba(255, 255, 255, .12);
    max-height: 0; overflow: hidden; transition: max-height .35s ease;
  }
  .nav-links.open { max-height: 640px; }
  .nav-links li { border-top: 1px solid rgba(255, 255, 255, .12); }
  .nav-links a { display: block; padding: 14px 16px; }
  .nav-links a:not(.btn)::after { display: none; }
  .nav-links .btn { margin: 12px 16px; justify-content: center; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}
@media (max-width: 900px) {
  .hero-grid, .split { grid-template-columns: 1fr; gap: 40px; }
  .hero-art { max-width: 420px; margin: 0 auto; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .section { padding: 60px 0; }
  .grid-2, .grid-3, .grid-4, .form-row, .footer-grid { grid-template-columns: 1fr; }
  .stats .grid-4 { grid-template-columns: 1fr 1fr; }
  .topbar .hide-sm { display: none; }
  .cta-band { padding: 36px 24px; }
  .treatment { grid-template-columns: 1fr; gap: 14px; }
  .hero-badge.b1 { left: 0; }
  .hero-badge.b2 { right: 0; }
}

/* ---------- Products page ---------- */
.products-hero { background: linear-gradient(160deg, var(--primary-100), var(--cream) 70%); padding: 70px 0; }
.products-hero .hero-img {
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #fff; cursor: zoom-in;
  border: 0; padding: 0; display: block; width: 100%;
}
.products-hero .hero-img img { width: 100%; height: auto; }
.brand-line { color: var(--primary-500); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: .85rem; margin-bottom: 6px; }

.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 40px; }
.filter-btn {
  border: 1.5px solid var(--primary-700); background: transparent; color: var(--primary-700);
  padding: 9px 20px; border-radius: 999px; font-family: inherit; font-weight: 500; font-size: .9rem; cursor: pointer; transition: .2s;
}
.filter-btn:hover { background: var(--primary-100); }
.filter-btn.active { background: var(--primary-700); color: #fff; }

.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.product-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s;
}
.product-card:hover { transform: translateY(-5px); box-shadow: 0 16px 36px rgba(15, 59, 71, .12); }
.product-card.is-hidden { display: none; }
.product-media {
  position: relative; aspect-ratio: 4 / 5; background: var(--primary-100); border: 0; padding: 0;
  cursor: zoom-in; overflow: hidden; display: block; width: 100%;
}
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.product-card:hover .product-media img { transform: scale(1.04); }
.photo-count {
  position: absolute; right: 12px; bottom: 12px; background: rgba(15, 59, 71, .85); color: #fff;
  font-size: .78rem; padding: 4px 10px; border-radius: 999px;
}
.product-badge {
  position: absolute; left: 12px; top: 12px; background: var(--accent-600); color: #fff;
  font-size: .75rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; letter-spacing: .03em;
}
.product-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.product-body h3 { margin-bottom: .2em; }
.product-tagline { color: var(--accent-600); font-weight: 500; font-size: .92rem; margin-bottom: 10px; }
.product-body p { color: var(--muted); font-size: .93rem; }
.product-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin: 6px 0 14px; flex-wrap: wrap; }
.product-size { font-size: .85rem; color: var(--muted); }
.product-price { font-weight: 600; color: var(--primary-900); font-size: 1.1rem; }
.product-price small { font-weight: 400; color: var(--muted); font-size: .75rem; }
.ingredients { font-size: .85rem; color: var(--muted); margin-bottom: 16px; }
.ingredients strong { color: var(--primary-900); }
.product-actions { margin-top: auto; display: flex; gap: 10px; flex-wrap: wrap; }
.product-actions .btn { padding: 10px 18px; font-size: .88rem; flex: 1; justify-content: center; }
.btn-wa { background: #1fa855; color: #fff; }
.btn-wa:hover { background: #178a45; color: #fff; }

.gallery { columns: 4 240px; column-gap: 16px; }
.gallery-item {
  display: block; width: 100%; margin: 0 0 16px; break-inside: avoid; border-radius: 14px; overflow: hidden;
  border: 0; padding: 0; background: var(--primary-100); cursor: zoom-in; box-shadow: var(--shadow);
}
.gallery-item img { width: 100%; height: auto; transition: transform .4s, opacity .3s; }
.gallery-item:hover img { transform: scale(1.03); opacity: .92; }

.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(6, 22, 27, .94);
  display: none; align-items: center; justify-content: center; padding: 60px 70px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 140px); border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lightbox figure { margin: 0; text-align: center; }
.lightbox figcaption { color: #dcecef; margin-top: 14px; font-size: .95rem; }
.lb-btn {
  position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; cursor: pointer;
  width: 50px; height: 50px; border-radius: 50%; font-size: 1.6rem; line-height: 1; display: grid; place-items: center;
}
.lb-btn:hover { background: var(--accent-600); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 14px; top: 50%; transform: translateY(-50%); }

@media (max-width: 900px) {
  .product-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .product-grid { grid-template-columns: 1fr; }
  .lightbox { padding: 60px 12px; }
  .lb-prev, .lb-next { top: auto; bottom: 14px; transform: none; }
}
