/* ========================================
   Fertility.homes V5 — Complete Stylesheet
   Inspired by: Shady Grove Fertility, CCRM
   Fonts: Cormorant Garamond + Montserrat
   ======================================== */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Montserrat:wght@300;400;500;600;700&display=swap');

/* ========================================
   CSS CUSTOM PROPERTIES
   ======================================== */
:root {
  --coral: #e07a5f;
  --coral-dark: #c75c42;
  --coral-light: #f4a58e;
  --lavender: #b8a9c9;
  --lavender-light: #f0ecf5;
  --lavender-dark: #8b7fa3;
  --gold: #d4a574;
  --cream: #faf7f5;
  --white: #ffffff;
  --text: #2d2d3a;
  --text-light: #6b6b7b;
  --text-muted: #9999a8;
  --border: #e8e4f0;
  --shadow: 0 2px 12px rgba(45, 45, 58, 0.08);
  --shadow-hover: 0 8px 32px rgba(45, 45, 58, 0.14);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  --container: 1200px;
}

/* ========================================
   RESET
   ======================================== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text);
  line-height: 1.65;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

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

ul {
  list-style: none;
}

/* ========================================
   TYPOGRAPHY
   ======================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  color: var(--text);
}

h1 { font-size: 3.2rem; }
h2 { font-size: 2.4rem; }
h3 { font-size: 1.5rem; font-family: var(--font-body); font-weight: 600; }
h4 { font-size: 1.15rem; font-family: var(--font-body); font-weight: 600; }

p {
  margin-bottom: 0.75rem;
  color: var(--text-light);
}

.text-center { text-align: center; }
.text-white { color: var(--white); }
.text-white p { color: rgba(255,255,255,0.85); }

.small-text {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
  color: var(--coral);
  display: block;
  margin-bottom: 8px;
}

/* ========================================
   LAYOUT — Container & Section
   ======================================== */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 60px 0;
}

.section-lavender {
  padding: 60px 0;
  background: var(--lavender-light);
}

.section-coral {
  padding: 60px 0;
  background: var(--coral);
}

.section-dark {
  padding: 60px 0;
  background: var(--text);
  color: var(--white);
}

.section-dark h2,
.section-dark h3,
.section-dark h4 {
  color: var(--white);
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 36px;
}

.section-header h2 {
  margin-bottom: 10px;
}

/* ========================================
   NAVIGATION — Two-Line Header
   ======================================== */
.top-bar {
  background: var(--text);
  color: rgba(255,255,255,0.7);
  font-size: 0.75rem;
  padding: 7px 0;
  letter-spacing: 0.5px;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.main-nav {
  background: var(--white);
  height: 70px;
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: var(--transition);
}

.main-nav.scrolled {
  box-shadow: 0 2px 16px rgba(45,45,58,0.1);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--coral);
  white-space: nowrap;
}

.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}

.nav-links a {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  position: relative;
  padding: 4px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--coral);
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--coral);
}

.nav-links a:hover::after {
  width: 100%;
}

.btn-nav {
  display: inline-block;
  background: var(--coral);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 10px 22px;
  border-radius: 30px;
  white-space: nowrap;
}

.btn-nav:hover {
  background: var(--coral-dark);
  transform: translateY(-1px);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  padding: 6px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: var(--transition);
}

/* ========================================
   HERO BANNER
   ======================================== */
.hero {
  min-height: 60vh;
  max-height: 700px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(45,45,58,0.75) 0%, rgba(45,45,58,0.4) 50%, rgba(184,169,201,0.35) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  max-width: 720px;
  padding: 40px 24px;
}

.hero-content h1 {
  font-size: 3.6rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 14px;
  line-height: 1.1;
}

.hero-content p {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.9);
  margin-bottom: 28px;
}

.hero-content .small-text {
  color: var(--coral-light);
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ========================================
   BUTTONS
   ======================================== */
.btn-primary,
.btn-secondary {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  padding: 14px 32px;
  border-radius: 30px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-body);
}

.btn-primary {
  background: var(--coral);
  color: var(--white);
  border-color: var(--coral);
}

.btn-primary:hover {
  background: var(--coral-dark);
  border-color: var(--coral-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(224,122,95,0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}

.btn-secondary:hover {
  background: var(--white);
  color: var(--text);
  border-color: var(--white);
}

.btn-outline-dark {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 12px 28px;
  border-radius: 30px;
  border: 2px solid var(--text);
  color: var(--text);
  transition: var(--transition);
}

.btn-outline-dark:hover {
  background: var(--text);
  color: var(--white);
}

/* ========================================
   GRID SYSTEM
   ======================================== */
.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: 24px;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ========================================
   CARDS
   ======================================== */
.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.card-body {
  padding: 24px;
}

.card-body h3 {
  margin-bottom: 10px;
  font-size: 1.15rem;
}

.card-body p {
  font-size: 0.88rem;
  margin-bottom: 16px;
  line-height: 1.65;
}

.card-link {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--coral);
  position: relative;
}

.card-link::after {
  content: ' →';
  transition: var(--transition);
}

.card-link:hover {
  color: var(--coral-dark);
}

/* Value / Icon Cards */
.card-icon {
  text-align: center;
  padding: 36px 24px;
}

.card-icon .icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  background: var(--lavender-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.card-icon h4 {
  margin-bottom: 10px;
}

.card-icon p {
  font-size: 0.85rem;
}

/* ========================================
   STATS BAR
   ======================================== */
.stats-bar {
  background: var(--coral);
  padding: 36px 0;
}

.stats-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
  color: var(--white);
}

.stat-number {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  display: block;
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  opacity: 0.9;
}

/* ========================================
   PROCESS / STEPS
   ======================================== */
.process-steps {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 36px;
}

.step {
  text-align: center;
  max-width: 220px;
  flex: 1;
}

.step-icon {
  width: 72px;
  height: 72px;
  background: var(--coral);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: var(--white);
  font-size: 1.6rem;
  font-family: var(--font-display);
  font-weight: 700;
}

.step h4 {
  margin-bottom: 6px;
  font-size: 1rem;
}

.step p {
  font-size: 0.82rem;
}

/* ========================================
   GALLERY
   ======================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm);
  aspect-ratio: 1 / 1;
  cursor: pointer;
}

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

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

.gallery-caption {
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 40%, rgba(45,45,58,0.75));
  display: flex;
  align-items: flex-end;
  padding: 16px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-caption {
  opacity: 1;
}

.gallery-caption span {
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 500;
}

/* ========================================
   TESTIMONIAL CARDS
   ======================================== */
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.testimonial-card .stars {
  color: var(--gold);
  font-size: 1.1rem;
  margin-bottom: 12px;
  letter-spacing: 2px;
}

.testimonial-card p {
  font-style: italic;
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 16px;
  color: var(--text-light);
}

.testimonial-author {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text);
}

.testimonial-author span {
  font-weight: 400;
  color: var(--text-muted);
}

/* ========================================
   CLINIC CARDS
   ======================================== */
.clinic-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.clinic-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.clinic-card .card-image {
  height: 240px;
}

.clinic-card .card-body {
  padding: 24px;
}

.clinic-card .badge {
  display: inline-block;
  background: var(--lavender-light);
  color: var(--lavender-dark);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 10px;
}

.clinic-small-card {
  text-align: center;
  padding: 28px 20px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.clinic-small-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.clinic-small-card h4 {
  margin-bottom: 6px;
}

.clinic-small-card p {
  font-size: 0.82rem;
}

/* ========================================
   FORMS
   ======================================== */
.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 6px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  transition: var(--transition);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--coral);
  box-shadow: 0 0 0 3px rgba(224,122,95,0.12);
}

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

/* ========================================
   FAQ ACCORDION
   ======================================== */
.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 18px 0;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
}

.faq-question:hover {
  color: var(--coral);
}

.faq-icon {
  font-size: 1.3rem;
  font-weight: 300;
  transition: var(--transition);
  flex-shrink: 0;
  margin-left: 12px;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq-item.open .faq-answer {
  max-height: 500px;
  padding-bottom: 18px;
}

.faq-answer p {
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--text-light);
}

/* ========================================
   IMAGE BLOCKS
   ======================================== */
.img-block {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

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

/* ========================================
   CTA SECTION
   ======================================== */
.cta-box {
  text-align: center;
}

.cta-box h2 {
  color: var(--white);
  margin-bottom: 10px;
}

.cta-box p {
  color: rgba(255,255,255,0.85);
  margin-bottom: 24px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  background: #2c2c35;
  color: rgba(255,255,255,0.7);
  padding: 40px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr 0.9fr;
  gap: 48px;
  margin-bottom: 28px;
}

.footer h4 {
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.footer p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
  margin-bottom: 8px;
}

.footer a {
  display: block;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 8px;
  transition: var(--transition);
}

.footer a:hover {
  color: var(--coral);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 16px;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
  margin: 0;
}

/* ========================================
   PAGE BANNER (inner pages)
   ======================================== */
.page-banner {
  height: 45vh;
  min-height: 320px;
  max-height: 500px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.page-banner .hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.page-banner .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(45,45,58,0.8) 0%, rgba(45,45,58,0.5) 100%);
}

.page-banner .hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.page-banner .hero-content h1 {
  font-size: 2.8rem;
}

/* ========================================
   BREADCRUMB
   ======================================== */
.breadcrumb {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.breadcrumb a {
  color: rgba(255,255,255,0.7);
}

.breadcrumb a:hover {
  color: var(--coral);
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.8rem; }
  .hero-content h1 { font-size: 2.4rem; }
  .page-banner .hero-content h1 { font-size: 2rem; }

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

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

  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    box-shadow: var(--shadow-hover);
    transform: translateY(-150%);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

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

  .nav-toggle {
    display: flex;
  }

  .btn-nav {
    display: none;
  }

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

  .stats-row {
    gap: 24px;
  }

  .process-steps {
    flex-direction: column;
    align-items: center;
  }

  .step {
    max-width: 100%;
  }

  .hero {
    min-height: 50vh;
  }

  .section,
  .section-lavender,
  .section-coral,
  .section-dark {
    padding: 40px 0;
  }
}

/* ========================================
   UTILITY CLASSES
   ======================================== */
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.gap-2 { gap: 16px; }
.flex-wrap { flex-wrap: wrap; }


/* ========================================
   HIDE PLATFORM BRANDING
   ======================================== */
[class*="kimi"], [id*="kimi"], [href*="kimi"],
[class*="agent"][class*="kimi"], .kimi-agent,
.kimi-corner, iframe[src*="kimi"] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
