/*
Theme Name: Gynecology Compass Pro
Theme URI: https://draishaali.com
Author: Dr. Aisha Ali
Description: Full-control WordPress theme for Dr. Aisha Ali. All text, colors, images, and content editable via Appearance → Customize.
Version: 2.0.0
License: GNU General Public License v2 or later
Text Domain: gynecology-compass
*/

/* =============================================
   DESIGN TOKENS — controlled by Customizer
   ============================================= */
:root {
  --color-primary: #d4829a;
  --color-rose: #c06080;
  --color-gold: #c9a84c;
  --color-blush: #f9e8ee;
  --color-beige: #fdf6f0;
  --color-text: #2d2d2d;
  --color-muted: #7a7a7a;
  --color-card: #ffffff;
  --color-footer-bg: #2d2d2d;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); font-size: 16px; color: var(--color-text); background: var(--color-beige); line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color 0.2s; }
ul { list-style: none; }
button, input, textarea, select { font-family: inherit; }

/* =============================================
   TYPOGRAPHY
   ============================================= */
h1,h2,h3,h4,h5,h6 { font-family: var(--font-heading); font-weight: 700; line-height: 1.2; color: var(--color-text); }
.section-label { display: block; font-size: .75rem; font-weight: 700; color: var(--color-rose); text-transform: uppercase; letter-spacing: .1em; margin-bottom: .5rem; }
.section-title { font-size: clamp(1.75rem,4vw,2.5rem); margin-bottom: 1rem; }
.section-desc { color: var(--color-muted); max-width: 600px; margin: 0 auto; }
.section-header { margin-bottom: 3.5rem; }

/* =============================================
   LAYOUT
   ============================================= */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.section-py { padding: 5rem 0; }
.text-center { text-align: center; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }

/* =============================================
   BUTTONS
   ============================================= */
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .75rem 1.75rem; border-radius: 9999px; font-size: .95rem; font-weight: 600; transition: all .2s; cursor: pointer; border: 2px solid transparent; text-decoration: none; }
.btn-primary { background: var(--color-primary); color: #fff; }
.btn-primary:hover { background: var(--color-rose); color: #fff; }
.btn-outline { background: transparent; border-color: var(--color-primary); color: var(--color-text); }
.btn-outline:hover { background: rgba(212,130,154,.1); }
.btn-ghost { background: transparent; color: var(--color-text); padding-left: 0; }
.btn-ghost:hover { color: var(--color-rose); }
.btn-whatsapp { background: transparent; border-color: #22c55e; color: #16a34a; }
.btn-whatsapp:hover { background: #f0fdf4; }
.btn-lg { padding: 1rem 2rem; font-size: 1rem; }

/* =============================================
   HEADER
   ============================================= */
#site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; transition: all .3s; }
#site-header.scrolled { background: rgba(255,255,255,.97); backdrop-filter: blur(10px); box-shadow: 0 2px 20px rgba(0,0,0,.08); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.5rem; max-width: 1200px; margin: 0 auto; }
.site-logo { display: flex; align-items: center; gap: .75rem; text-decoration: none; }
.logo-circle { width: 42px; height: 42px; border-radius: 50%; background: var(--color-primary); display: flex; align-items: center; justify-content: center; font-family: var(--font-heading); font-weight: 700; font-size: 1.2rem; color: #fff; flex-shrink: 0; overflow: hidden; }
.logo-circle img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.logo-name { font-family: var(--font-heading); font-weight: 600; font-size: 1.1rem; }
.logo-sub { font-size: .7rem; color: var(--color-muted); margin-top: 2px; }
.site-nav { display: flex; align-items: center; gap: 1.5rem; }
.site-nav a { font-size: .85rem; font-weight: 500; color: var(--color-muted); transition: color .2s; }
.site-nav a:hover { color: var(--color-text); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: .5rem; background: none; border: none; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--color-text); transition: all .3s; }
.mobile-nav { display: none; background: var(--color-card); border-top: 1px solid rgba(0,0,0,.06); padding: 1rem 1.5rem; flex-direction: column; gap: .75rem; }
.mobile-nav.open { display: flex; }
.mobile-nav a { font-size: .9rem; font-weight: 500; color: var(--color-muted); padding: .5rem 0; border-bottom: 1px solid rgba(0,0,0,.06); }

/* =============================================
   HERO
   ============================================= */
#home { min-height: 100vh; display: flex; align-items: center; background: linear-gradient(135deg, var(--color-beige) 0%, var(--color-blush) 50%, #f0e8f5 100%); position: relative; overflow: hidden; padding-top: 80px; }
.hero-bubble { position: absolute; border-radius: 50%; animation: float 6s ease-in-out infinite; }
.hero-bubble-1 { width: 120px; height: 120px; background: rgba(212,130,154,.2); top: 10%; left: 3%; }
.hero-bubble-2 { width: 90px; height: 90px; background: rgba(201,168,76,.2); bottom: 10%; right: 5%; animation-delay: 1s; }
.hero-bubble-3 { width: 60px; height: 60px; background: rgba(192,96,128,.15); top: 50%; left: 33%; animation-delay: 2s; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-20px); } }
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; padding: 3rem 0; }
.hero-badge { display: inline-flex; align-items: center; gap: .5rem; padding: .5rem 1rem; background: rgba(212,130,154,.2); border-radius: 9999px; font-size: .85rem; font-weight: 500; margin-bottom: 1.5rem; }
.hero-title { font-size: clamp(2rem,5vw,3.5rem); line-height: 1.15; margin-bottom: 1.5rem; }
.hero-title .highlight { color: var(--color-rose); }
.hero-desc { font-size: 1.1rem; color: var(--color-muted); max-width: 480px; margin-bottom: 2rem; line-height: 1.7; }
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-image-box { display: flex; justify-content: center; }
.hero-photo-wrap { width: 320px; height: 420px; border-radius: 2rem; overflow: hidden; box-shadow: 0 25px 60px rgba(0,0,0,.12); background: linear-gradient(180deg,rgba(212,130,154,.3),rgba(192,96,128,.2)); display: flex; align-items: center; justify-content: center; }
.hero-photo-wrap img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo-placeholder { text-align: center; padding: 2rem; }
.hero-photo-placeholder .emoji { font-size: 4rem; margin-bottom: 1rem; }

/* =============================================
   ABOUT
   ============================================= */
.about-photo-wrap { width: 100%; height: 400px; border-radius: 2rem; overflow: hidden; background: linear-gradient(135deg,var(--color-blush),rgba(212,130,154,.2)); display: flex; align-items: center; justify-content: center; }
.about-photo-wrap img { width: 100%; height: 100%; object-fit: cover; }
.stats-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; margin-bottom: 2rem; }
.stat-card { text-align: center; padding: 1.25rem .75rem; background: var(--color-blush); border-radius: 1.25rem; }
.stat-value { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 700; }
.stat-label { font-size: .7rem; color: var(--color-muted); }
.qual-title { display: flex; align-items: center; gap: .5rem; font-family: var(--font-heading); font-weight: 600; font-size: 1.1rem; margin-bottom: .75rem; }
.qual-list li { display: flex; align-items: flex-start; gap: .75rem; font-size: .9rem; color: var(--color-muted); margin-bottom: .5rem; }
.qual-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--color-primary); margin-top: 8px; flex-shrink: 0; }

/* =============================================
   SERVICES
   ============================================= */
.services-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.service-card { background: var(--color-card); border-radius: 1.25rem; padding: 1.75rem; border: 1px solid rgba(0,0,0,.07); transition: all .3s; }
.service-card:hover { box-shadow: 0 12px 30px rgba(0,0,0,.1); transform: translateY(-4px); }
.service-icon { font-size: 2rem; width: 52px; height: 52px; border-radius: .75rem; background: var(--color-blush); display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; transition: background .2s; }
.service-card:hover .service-icon { background: rgba(212,130,154,.3); }
.service-title { font-family: var(--font-heading); font-size: 1.05rem; font-weight: 600; margin-bottom: .5rem; }
.service-desc { font-size: .875rem; color: var(--color-muted); line-height: 1.6; }

/* =============================================
   WHY CHOOSE
   ============================================= */
.why-reasons { display: flex; flex-direction: column; gap: 1.25rem; }
.reason-card { display: flex; gap: 1rem; padding: 1rem 1.25rem; background: rgba(249,232,238,.5); border-radius: 1.25rem; transition: background .2s; }
.reason-card:hover { background: var(--color-blush); }
.reason-icon { width: 48px; height: 48px; border-radius: .75rem; background: rgba(212,130,154,.2); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; flex-shrink: 0; }
.reason-title { font-family: var(--font-heading); font-weight: 600; margin-bottom: .25rem; }
.reason-desc { font-size: .875rem; color: var(--color-muted); }

/* =============================================
   APPOINTMENT
   ============================================= */
.appointment-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.form-card { background: var(--color-card); border-radius: 2rem; padding: 2rem; box-shadow: 0 8px 30px rgba(0,0,0,.08); border: 1px solid rgba(0,0,0,.06); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.form-group { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1rem; }
.form-group label { font-size: .875rem; font-weight: 500; }
.form-group input, .form-group textarea, .form-group select { padding: .65rem 1rem; border: 1px solid rgba(0,0,0,.12); border-radius: .75rem; font-size: .9rem; background: #fafafa; outline: none; transition: border-color .2s; width: 100%; }
.form-group input:focus, .form-group textarea:focus { border-color: var(--color-primary); background: #fff; }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-btns { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: .5rem; }
.clinic-hours { background: var(--color-card); border-radius: 1.25rem; padding: 1.5rem; border: 1px solid rgba(0,0,0,.06); margin-top: 1.5rem; }
.clinic-hours h3 { font-family: var(--font-heading); font-size: 1.1rem; margin-bottom: 1rem; }
.hours-row { display: flex; justify-content: space-between; font-size: .875rem; color: var(--color-muted); margin-bottom: .5rem; }
.hours-row .time { font-weight: 500; color: var(--color-text); }
.hours-row .closed { color: var(--color-rose); font-weight: 500; }
.map-box { border-radius: 2rem; overflow: hidden; background: #f1f1f1; min-height: 280px; display: flex; align-items: center; justify-content: center; border: 1px solid rgba(0,0,0,.06); text-align: center; }
.map-box iframe { width: 100%; height: 280px; border: 0; display: block; }

/* =============================================
   TESTIMONIALS
   ============================================= */
.testimonials-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; margin-bottom: 2rem; }
.testimonial-card { background: rgba(249,232,238,.5); border-radius: 1.25rem; padding: 1.5rem; border: 1px solid rgba(0,0,0,.06); position: relative; }
.quote-icon { position: absolute; top: 1rem; right: 1rem; font-size: 2.5rem; color: rgba(212,130,154,.25); line-height: 1; }
.stars { display: flex; gap: 3px; margin-bottom: 1rem; }
.star { color: var(--color-gold); font-size: .95rem; }
.star.empty { color: #ddd; }
.testimonial-text { font-size: .875rem; color: var(--color-muted); line-height: 1.6; font-style: italic; margin-bottom: 1rem; }
.testimonial-name { font-family: var(--font-heading); font-weight: 600; }
.testimonial-role { font-size: .75rem; color: var(--color-muted); }
.slider-controls { display: flex; justify-content: center; gap: .75rem; }
.slider-btn { width: 40px; height: 40px; border-radius: 50%; background: var(--color-blush); border: none; cursor: pointer; font-size: 1.2rem; transition: background .2s; }
.slider-btn:hover { background: rgba(212,130,154,.3); }

/* =============================================
   BLOG
   ============================================= */
.blog-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; margin-bottom: 2.5rem; }
.blog-card { background: var(--color-card); border-radius: 1.25rem; overflow: hidden; border: 1px solid rgba(0,0,0,.07); transition: all .3s; }
.blog-card:hover { box-shadow: 0 12px 30px rgba(0,0,0,.1); transform: translateY(-4px); }
.blog-thumb { height: 160px; background: linear-gradient(135deg,var(--color-blush),rgba(212,130,154,.2)); display: flex; align-items: center; justify-content: center; font-size: 3rem; overflow: hidden; }
.blog-thumb img { width: 100%; height: 100%; object-fit: cover; }
.blog-body { padding: 1.25rem; }
.blog-cat { font-size: .7rem; font-weight: 700; color: var(--color-rose); background: rgba(212,130,154,.1); padding: .2rem .75rem; border-radius: 9999px; display: inline-block; }
.blog-title { font-family: var(--font-heading); font-weight: 600; font-size: 1rem; margin: .75rem 0 .5rem; transition: color .2s; }
.blog-card:hover .blog-title { color: var(--color-rose); }
.blog-excerpt { font-size: .8rem; color: var(--color-muted); line-height: 1.6; }

/* =============================================
   FAQ
   ============================================= */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item { background: rgba(249,232,238,.3); border-radius: 1.25rem; border: 1px solid rgba(0,0,0,.06); margin-bottom: .75rem; overflow: hidden; }
.faq-item.open { background: rgba(249,232,238,.6); }
.faq-trigger { width: 100%; text-align: left; padding: 1.25rem 1.5rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-family: var(--font-heading); font-weight: 500; font-size: 1rem; background: none; border: none; cursor: pointer; color: var(--color-text); }
.faq-arrow { font-size: 1.2rem; transition: transform .3s; color: var(--color-rose); flex-shrink: 0; }
.faq-item.open .faq-arrow { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-item.open .faq-answer { max-height: 500px; }
.faq-answer-inner { padding: 0 1.5rem 1.25rem; color: var(--color-muted); font-size: .9rem; line-height: 1.7; }

/* =============================================
   CONTACT
   ============================================= */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.contact-info { display: flex; flex-direction: column; gap: 1.25rem; }
.contact-card { display: flex; gap: 1rem; align-items: flex-start; padding: 1rem 1.25rem; background: var(--color-card); border-radius: 1.25rem; border: 1px solid rgba(0,0,0,.06); }
.contact-icon-wrap { width: 42px; height: 42px; border-radius: .75rem; background: var(--color-blush); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }
.contact-card h4 { font-family: var(--font-heading); font-weight: 600; font-size: .95rem; margin-bottom: .2rem; }
.contact-card p { font-size: .85rem; color: var(--color-muted); }
.emergency-box { display: flex; gap: .75rem; padding: 1rem 1.25rem; background: rgba(212,130,154,.1); border-radius: 1.25rem; border: 1px solid rgba(212,130,154,.2); align-items: flex-start; }
.emergency-box h4 { font-family: var(--font-heading); font-size: .9rem; font-weight: 600; margin-bottom: .2rem; }
.emergency-box p { font-size: .8rem; color: var(--color-muted); }

/* =============================================
   FOOTER
   ============================================= */
#site-footer { background: var(--color-footer-bg); color: rgba(255,255,255,.7); padding: 4rem 0 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.5fr; gap: 2.5rem; margin-bottom: 3rem; }
.footer-logo-text { font-family: var(--font-heading); color: #fff; font-size: 1.1rem; font-weight: 600; }
.footer-brand p { font-size: .85rem; color: rgba(255,255,255,.5); line-height: 1.6; margin: 1rem 0; }
.social-links { display: flex; gap: .6rem; }
.social-link { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center; font-size: .9rem; transition: background .2s; }
.social-link:hover { background: rgba(212,130,154,.3); }
.footer-col h4 { font-family: var(--font-heading); color: #fff; font-size: 1rem; margin-bottom: 1rem; }
.footer-col ul li { margin-bottom: .5rem; }
.footer-col ul a { font-size: .85rem; color: rgba(255,255,255,.6); transition: color .2s; }
.footer-col ul a:hover { color: #fff; }
.newsletter-form { display: flex; gap: .5rem; }
.newsletter-form input { flex: 1; padding: .6rem 1rem; border-radius: 9999px; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.1); color: #fff; font-size: .85rem; outline: none; }
.newsletter-form input::placeholder { color: rgba(255,255,255,.4); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 1.5rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; font-size: .8rem; color: rgba(255,255,255,.4); }
.footer-links { display: flex; gap: 1.25rem; }
.footer-links a { color: rgba(255,255,255,.4); transition: color .2s; }
.footer-links a:hover { color: #fff; }

/* =============================================
   FLOATING ELEMENTS
   ============================================= */
.whatsapp-float { position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 9999; width: 56px; height: 56px; border-radius: 50%; background: #22c55e; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; box-shadow: 0 4px 20px rgba(34,197,94,.4); transition: all .2s; }
.whatsapp-float:hover { background: #16a34a; transform: scale(1.1); color: #fff; }
.scroll-top { position: fixed; bottom: 1.5rem; right: 5.5rem; z-index: 9999; width: 48px; height: 48px; border-radius: 50%; background: var(--color-primary); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; cursor: pointer; border: none; opacity: 0; pointer-events: none; transition: all .2s; box-shadow: 0 4px 15px rgba(0,0,0,.15); }
.scroll-top.visible { opacity: 1; pointer-events: all; }
.scroll-top:hover { background: var(--color-rose); }

/* =============================================
   ALERT TOAST
   ============================================= */
.site-alert { position: fixed; top: 90px; right: 1.5rem; z-index: 9998; background: #fff; border-radius: 1rem; padding: 1rem 1.5rem; box-shadow: 0 8px 30px rgba(0,0,0,.12); border-left: 4px solid var(--color-primary); max-width: 320px; display: none; }
.site-alert.show { display: block; animation: slideIn .3s ease; }
.alert-title { font-weight: 600; margin-bottom: .25rem; }
.alert-msg { font-size: .85rem; color: var(--color-muted); }
@keyframes slideIn { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: translateX(0); } }

/* =============================================
   STATIC PAGES (privacy, terms)
   ============================================= */
.page-wrapper { min-height: 100vh; background: var(--color-beige); padding: 8rem 0 4rem; }
.content-card { background: var(--color-card); border-radius: 2rem; padding: 2.5rem; box-shadow: 0 2px 12px rgba(0,0,0,.06); border: 1px solid rgba(0,0,0,.06); color: var(--color-muted); line-height: 1.8; }
.content-card h2 { font-family: var(--font-heading); font-size: 1.15rem; color: var(--color-text); margin: 1.5rem 0 .5rem; }

/* 404 */
.page-404 { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: #f1f1f1; text-align: center; }
.page-404 h1 { font-size: 6rem; font-family: var(--font-heading); }
.page-404 p { font-size: 1.25rem; color: var(--color-muted); margin-bottom: 1.5rem; }

/* =============================================
   GUTENBERG / BLOCK EDITOR CONTENT STYLES
   ============================================= */
.entry-content h2, .entry-content h3 { font-family: var(--font-heading); margin: 1.5rem 0 .75rem; }
.entry-content p { margin-bottom: 1rem; color: var(--color-muted); line-height: 1.8; }
.entry-content ul, .entry-content ol { padding-left: 1.5rem; margin-bottom: 1rem; color: var(--color-muted); }
.entry-content img { border-radius: 1rem; margin: 1rem 0; }
.entry-content a { color: var(--color-rose); text-decoration: underline; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .site-nav { display: none; }
  .nav-toggle { display: flex; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-desc { margin-left: auto; margin-right: auto; }
  .hero-btns { justify-content: center; }
  .hero-image-box { display: none; }
  .grid-2 { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: repeat(2,1fr); }
  .blog-grid { grid-template-columns: repeat(2,1fr); }
  .testimonials-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .appointment-grid, .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .services-grid, .blog-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .hero-title { font-size: 2rem; }
  .stats-grid { grid-template-columns: repeat(3,1fr); }
}
