/*
Theme Name: Dr Mehwish Butt
Theme URI: https://drmehwishbutt.com
Author: Dr Mehwish Butt Clinic
Author URI: https://drmehwishbutt.com
Description: A premium, elegant, and patient-centered WordPress theme for Dr. Mehwish Butt — Plastic Surgeon in Lahore. Fully Elementor-compatible with soft pastel design, smooth animations, and built-in templates for Home, About, Services, Gallery, and Contact pages.
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: drmehwish
Tags: medical, elementor, one-column, two-columns, custom-colors, custom-menu, featured-images, full-width-template, theme-options, threaded-comments, translation-ready
*/

/* ====== Design Tokens ====== */
:root {
  --primary: #B76E79;
  --primary-glow: #D89AA3;
  --primary-foreground: #FFFFFF;
  --background: #FDF8F5;
  --foreground: #2D2D2D;
  --muted: #F5EDE7;
  --muted-foreground: #6B6B6B;
  --accent: #A8C5B8;
  --blush: #F5D5D0;
  --sky-pastel: #D6E5F0;
  --card: #FFFFFF;
  --border: #EADFD8;
  --radius: 1rem;
  --shadow-sm: 0 2px 8px rgba(183,110,121,0.06);
  --shadow-md: 0 8px 24px rgba(183,110,121,0.10);
  --shadow-lg: 0 20px 40px rgba(183,110,121,0.15);
  --shadow-glow: 0 0 30px rgba(183,110,121,0.35);
  --gradient-primary: linear-gradient(135deg, var(--primary), var(--primary-glow));
  --gradient-pastel: linear-gradient(135deg, var(--blush), var(--sky-pastel));
  --gradient-hero: linear-gradient(135deg, rgba(245,213,208,0.4), rgba(214,229,240,0.3));
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ====== Reset & Base ====== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--foreground);
  background: var(--background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-glow); }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 1rem;
  color: var(--foreground);
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
p { margin: 0 0 1rem; color: var(--muted-foreground); }

/* ====== Layout ====== */
.container { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }
.text-center { text-align: center; }
.eyebrow {
  display: inline-block;
  color: var(--primary);
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

/* ====== Header ====== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(253,248,245,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}
.site-logo {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--foreground);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.site-logo span { color: var(--primary); }
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
}
.main-nav a {
  color: var(--foreground);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
}
.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width var(--transition);
}
.main-nav a:hover::after, .main-nav .current-menu-item > a::after { width: 100%; }
.menu-toggle {
  display: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--foreground);
}
.menu-toggle svg { width: 28px; height: 28px; }

/* ====== Buttons ====== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.95rem;
  border: 0;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  font-family: inherit;
}
.btn-primary {
  background: var(--gradient-primary);
  color: var(--primary-foreground);
  box-shadow: var(--shadow-md);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
  color: var(--primary-foreground);
}
.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: var(--primary-foreground);
}
.btn-lg { padding: 1rem 2.25rem; font-size: 1.05rem; }

/* ====== Hero ====== */
.hero {
  position: relative;
  overflow: hidden;
  padding: 6rem 0 5rem;
  background: var(--gradient-hero);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('assets/images/hero-clinic.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.18;
  z-index: 0;
}
.hero-inner { position: relative; z-index: 1; }
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.hero h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); margin-bottom: 1.25rem; }
.hero h1 .accent { color: var(--primary); display: block; }
.hero-lead { font-size: 1.15rem; max-width: 540px; }
.hero-actions { display: flex; gap: 1rem; margin-top: 2rem; flex-wrap: wrap; }
.hero-image-wrap {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: 2rem;
  overflow: hidden;
  background: var(--gradient-pastel);
  box-shadow: var(--shadow-lg);
  animation: float 6s ease-in-out infinite;
}
.hero-image-wrap img { width: 100%; height: 100%; object-fit: cover; }
.decorative-circle {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.5;
  z-index: 0;
  pointer-events: none;
}

/* ====== Stats Bar ====== */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  padding: 2.5rem;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  margin-top: -3rem;
  position: relative;
  z-index: 2;
}
.stat-item { text-align: center; }
.stat-number {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--primary);
  display: block;
}
.stat-label { font-size: 0.85rem; color: var(--muted-foreground); }

/* ====== Cards ====== */
.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 2rem;
  border: 1px solid var(--border);
  transition: all var(--transition);
  height: 100%;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}
.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--gradient-pastel);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--primary);
}
.card-icon svg { width: 28px; height: 28px; }
.card h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.card p { font-size: 0.95rem; margin-bottom: 0; }

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

/* ====== Section Header ====== */
.section-header { text-align: center; max-width: 720px; margin: 0 auto 3.5rem; }
.section-header p { font-size: 1.05rem; }

/* ====== Testimonials ====== */
.testimonial-section { background: linear-gradient(180deg, var(--background), var(--muted)); }
.testimonial-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 2.5rem;
  text-align: center;
  box-shadow: var(--shadow-md);
  max-width: 720px;
  margin: 0 auto;
}
.testimonial-quote {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-style: italic;
  line-height: 1.6;
  color: var(--foreground);
  margin-bottom: 1.5rem;
}
.testimonial-author { font-weight: 600; color: var(--primary); }
.testimonial-role { font-size: 0.85rem; color: var(--muted-foreground); }
.testimonial-dots { display: flex; justify-content: center; gap: 0.5rem; margin-top: 1.5rem; }
.testimonial-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--border);
  border: 0; cursor: pointer;
  transition: all var(--transition);
}
.testimonial-dot.active { background: var(--primary); width: 24px; border-radius: 5px; }

/* ====== Timeline ====== */
.timeline { position: relative; padding-left: 2.5rem; }
.timeline::before {
  content: '';
  position: absolute;
  left: 8px; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--primary), var(--blush));
}
.timeline-item { position: relative; margin-bottom: 2rem; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.4rem; top: 0.75rem;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 4px var(--background), var(--shadow-md);
}
.timeline-period {
  display: inline-block;
  font-size: 0.8rem;
  color: var(--primary);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

/* ====== Service Expand Cards ====== */
.service-card { cursor: pointer; }
.service-card .service-details {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, margin-top 0.3s ease;
}
.service-card.open .service-details { max-height: 500px; margin-top: 1rem; }
.service-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--primary);
  font-weight: 500;
  margin-top: 1rem;
  font-size: 0.9rem;
}
.service-toggle svg { transition: transform var(--transition); }
.service-card.open .service-toggle svg { transform: rotate(180deg); }

/* ====== Gallery ====== */
.gallery-tabs {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 3rem;
  background: var(--muted);
  padding: 0.5rem;
  border-radius: 999px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}
.gallery-tab {
  flex: 1;
  padding: 0.65rem 1.5rem;
  border-radius: 999px;
  border: 0;
  background: transparent;
  color: var(--muted-foreground);
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
  font-size: 0.95rem;
}
.gallery-tab.active {
  background: var(--card);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.gallery-panel { display: none; }
.gallery-panel.active { display: block; animation: fadeIn 0.4s ease; }
.gallery-item {
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  position: relative;
  background: var(--gradient-pastel);
  transition: all var(--transition);
}
.gallery-item:hover { transform: scale(1.02); box-shadow: var(--shadow-lg); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
}

/* ====== Lightbox ====== */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(45,45,45,0.92);
  display: none;
  align-items: center; justify-content: center;
  z-index: 1000;
  padding: 2rem;
  animation: fadeIn 0.3s ease;
}
.lightbox.open { display: flex; }
.lightbox-content {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  animation: scaleIn 0.4s ease;
}
.lightbox-close {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  color: #fff;
  border: 0;
  cursor: pointer;
  font-size: 1.5rem;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition);
}
.lightbox-close:hover { background: rgba(255,255,255,0.25); }

/* ====== Contact ====== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.contact-info-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 1.25rem; }
.contact-info-item {
  display: flex; gap: 1rem;
  padding: 1.25rem;
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: all var(--transition);
}
.contact-info-item:hover { box-shadow: var(--shadow-md); border-color: var(--primary); }
.contact-info-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--gradient-pastel);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}
.contact-info-icon svg { width: 20px; height: 20px; }
.contact-info-item h4 { font-size: 1rem; margin-bottom: 0.25rem; }
.contact-info-item p, .contact-info-item a { font-size: 0.9rem; margin: 0; color: var(--muted-foreground); }

.contact-form {
  background: var(--card);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  border-top: 4px solid;
  border-image: var(--gradient-primary) 1;
}
.form-field { margin-bottom: 1.25rem; }
.form-field label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
  color: var(--foreground);
}
.form-field input, .form-field textarea, .form-field select {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--background);
  color: var(--foreground);
  transition: all var(--transition);
}
.form-field input:focus, .form-field textarea:focus {
  outline: 0;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(183,110,121,0.12);
}
.form-field textarea { resize: vertical; min-height: 120px; }
.form-message { padding: 1rem; border-radius: 12px; margin-top: 1rem; display: none; }
.form-message.success { display: block; background: rgba(168,197,184,0.2); color: #2d5746; }
.form-message.error { display: block; background: rgba(183,110,121,0.15); color: var(--primary); }

.map-placeholder {
  margin-top: 1.5rem;
  aspect-ratio: 16/9;
  border-radius: var(--radius);
  background: var(--gradient-pastel);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
  border: 1px solid var(--border);
}

/* ====== Page Hero ====== */
.page-hero {
  padding: 5rem 0 3rem;
  background: var(--gradient-hero);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero h1 { margin-bottom: 0.75rem; }
.page-hero p { max-width: 640px; margin: 0 auto; font-size: 1.05rem; }

/* ====== Footer ====== */
.site-footer {
  background: linear-gradient(180deg, var(--muted), var(--background));
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--border);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-col h4 {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.25rem;
  color: var(--foreground);
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 0.65rem; }
.footer-col a { color: var(--muted-foreground); font-size: 0.9rem; }
.footer-col a:hover { color: var(--primary); }
.footer-brand .site-logo { margin-bottom: 1rem; }
.footer-brand p { font-size: 0.9rem; max-width: 320px; }
.social-icons { display: flex; gap: 0.75rem; margin-top: 1.25rem; }
.social-icons a {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--card);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
  border: 1px solid var(--border);
  transition: all var(--transition);
}
.social-icons a:hover { background: var(--primary); color: #fff; transform: translateY(-2px); }
.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted-foreground);
}

/* ====== Animations ====== */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes scaleIn { from { opacity: 0; transform: scale(0.92); } to { opacity: 1; transform: scale(1); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 20px rgba(183,110,121,0.3); }
  50% { box-shadow: 0 0 40px rgba(183,110,121,0.5); }
}

.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-left { opacity: 0; transform: translateX(-30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal-left.visible { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal-right.visible { opacity: 1; transform: translateX(0); }
.reveal-scale { opacity: 0; transform: scale(0.92); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal-scale.visible { opacity: 1; transform: scale(1); }

.btn-glow:hover { animation: pulseGlow 2s infinite; }

/* ====== Final CTA ====== */
.cta-section {
  background: var(--gradient-primary);
  border-radius: 2rem;
  padding: 4rem 2rem;
  text-align: center;
  color: #fff;
  margin: 0 1.5rem;
  position: relative;
  overflow: hidden;
}
.cta-section h2 { color: #fff; }
.cta-section p { color: rgba(255,255,255,0.9); max-width: 540px; margin: 0 auto 2rem; }
.cta-section .btn {
  background: #fff;
  color: var(--primary);
}
.cta-section .btn:hover { transform: translateY(-2px); box-shadow: 0 0 30px rgba(255,255,255,0.4); }

/* ====== WP defaults ====== */
.alignleft { float: left; margin: 0 1.5rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.5rem; }
.aligncenter { display: block; margin: 0 auto 1rem; }
.wp-caption { max-width: 100%; }
.screen-reader-text {
  border: 0; clip: rect(1px,1px,1px,1px); -webkit-clip-path: inset(50%); clip-path: inset(50%);
  height: 1px; width: 1px; overflow: hidden; position: absolute !important; word-wrap: normal !important;
}

/* ====== Responsive ====== */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .section { padding: 3.5rem 0; }
  .hero { padding: 3.5rem 0; }
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero-image-wrap { max-width: 360px; margin: 0 auto; }
  .grid-2, .grid-3, .grid-4, .gallery-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .stats { grid-template-columns: repeat(2, 1fr); padding: 1.5rem; gap: 1rem; margin-top: -2rem; }
  .stat-number { font-size: 1.75rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .menu-toggle { display: block; }
  .main-nav {
    position: fixed;
    top: 70px; left: 0; right: 0;
    background: var(--background);
    border-bottom: 1px solid var(--border);
    padding: 1.5rem;
    transform: translateY(-150%);
    transition: transform var(--transition);
    box-shadow: var(--shadow-md);
  }
  .main-nav.open { transform: translateY(0); }
  .main-nav ul { flex-direction: column; gap: 1.25rem; }
  .nav-cta-desktop { display: none; }
  .testimonial-quote { font-size: 1.1rem; }
  .testimonial-card { padding: 1.75rem; }
  .contact-form { padding: 1.5rem; }
}
