/**
 * Dr. Sohini Sengupta - Core Website Design System (Concept 2: Clinical Luxe)
 */

:root {
  --primary: #0284c7;
  --primary-dark: #0369a1;
  --primary-light: #e0f2fe;
  --primary-soft: #f0f9ff;
  --accent: #0d9488;
  --accent-dark: #0f766e;
  --accent-light: #ccfbf1;
  --accent-soft: #f0fdfa;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --border-color: #e2e8f0;
  --radius-sm: 8px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 10px 30px -5px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 20px 40px -10px rgba(2, 132, 199, 0.12);
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.04);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--slate-800);
  background-color: #ffffff;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .heading-font {
  font-family: 'Outfit', sans-serif;
  color: var(--slate-900);
  letter-spacing: -0.02em;
  font-weight: 700;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

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

.container {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Utilities */
.text-primary { color: var(--primary); }
.text-accent { color: var(--accent); }
.text-muted { color: var(--slate-500); }
.bg-light { background-color: var(--slate-50); }
.bg-white { background-color: #ffffff; }

/* Top Announcement Strip */
.top-strip {
  background: var(--slate-900);
  color: #94a3b8;
  font-size: 13px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.top-strip-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.top-strip strong { color: #fff; }

/* Site Header & Navigation */
.site-header {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border-color);
}
.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}
.brand-id {
  display: flex;
  align-items: center;
  gap: 14px;
}
.brand-mark {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 50%;
  overflow: hidden;
  border: 2.5px solid var(--primary);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  background: var(--slate-100);
}
.brand-id:hover .brand-mark {
  transform: scale(1.06);
  box-shadow: 0 6px 16px rgba(2, 132, 199, 0.35);
}
.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}
.brand-name {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.15;
}
.brand-sub {
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.main-nav-list {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}
.main-nav-list a {
  font-size: 15px;
  font-weight: 600;
  color: var(--slate-700);
  padding: 6px 0;
  position: relative;
}
.main-nav-list a:hover, .main-nav-list a.active {
  color: var(--primary);
}
.main-nav-list a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

/* Buttons */
.cta-button {
  background: var(--primary);
  color: #ffffff;
  font-weight: 600;
  font-size: 14px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.2);
}
.cta-button:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(2, 132, 199, 0.3);
  color: #ffffff;
}
.cta-outline {
  background: transparent;
  color: var(--slate-800);
  border: 1px solid var(--border-color);
  font-weight: 600;
  font-size: 14px;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.cta-outline:hover {
  background: var(--slate-50);
  border-color: var(--slate-700);
}
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 26px;
  cursor: pointer;
  color: var(--slate-900);
}

/* Subpage Hero Banner */
.page-hero {
  padding: 60px 0 50px;
  background: linear-gradient(180deg, var(--slate-50) 0%, #ffffff 100%);
  border-bottom: 1px solid var(--border-color);
}
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--slate-500);
  margin-bottom: 16px;
}
.breadcrumbs a:hover {
  color: var(--primary);
}
.page-hero-title {
  font-size: 42px;
  line-height: 1.15;
  margin-bottom: 12px;
}
.page-hero-subtitle {
  font-size: 17px;
  color: var(--slate-500);
  max-width: 680px;
}

/* Section Global */
.section {
  padding: 80px 0;
}
.section-title-wrap {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 50px;
}
.section-eyebrow {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin-bottom: 8px;
  display: block;
}
.section-headline {
  font-size: 36px;
  margin-bottom: 14px;
}
.section-description {
  font-size: 16px;
  color: var(--slate-500);
}

/* Form Styles */
.form-panel {
  background: #ffffff;
  color: var(--slate-800);
  padding: 36px;
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field-group label {
  font-size: 13px;
  font-weight: 700;
  color: var(--slate-700);
}
.field-input {
  padding: 12px 14px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 14px;
  background: var(--slate-50);
  transition: border-color 0.2s ease;
  width: 100%;
}
.field-input:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
}

/* Cards & Layouts */
.card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}
.card:hover {
  box-shadow: var(--shadow-hover);
  border-color: var(--primary);
  transform: translateY(-3px);
}

/* Accordion FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 800px;
  margin: 0 auto;
}
.faq-item {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: all 0.2s ease;
}
.faq-question {
  padding: 20px 24px;
  font-weight: 700;
  font-size: 16px;
  color: var(--slate-900);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}
.faq-question::after {
  content: '+';
  font-size: 22px;
  color: var(--primary);
  transition: transform 0.2s ease;
}
.faq-item.active .faq-question::after {
  content: '−';
}
.faq-answer {
  padding: 0 24px 20px;
  font-size: 14px;
  color: var(--slate-600);
  line-height: 1.7;
  display: none;
}
.faq-item.active .faq-answer {
  display: block;
}

/* Footer */
.site-footer {
  background: #ffffff;
  border-top: 1px solid var(--border-color);
  padding: 60px 0 40px;
  font-size: 14px;
  color: var(--slate-500);
}
.footer-layout {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-heading {
  font-size: 16px;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 16px;
}
.footer-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-nav a:hover {
  color: var(--primary);
}
.footer-bottom-bar {
  border-top: 1px solid var(--border-color);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

/* Modal System */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.is-open { display: flex; }
.modal-dialog {
  background: #ffffff;
  border-radius: var(--radius);
  padding: 36px;
  max-width: 540px;
  width: 100%;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}
.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  border: none;
  background: var(--slate-100);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Responsive Breakpoints & Mobile Optimization */
@media (max-width: 1024px) {
  .container { padding: 0 20px; }
  .footer-layout { grid-template-columns: 1fr 1fr; gap: 30px; }
}

@media (max-width: 992px) {
  .section { padding: 60px 0; }
  .page-hero { padding: 45px 0 35px; }
  .hero { padding: 50px 0 60px; }
  .hero-container, 
  .about-lead-grid, 
  .appointment-container, 
  .booking-layout-grid, 
  .article-layout, 
  .featured-article-card {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .gallery-showcase { grid-template-columns: 1fr 1fr; }
  .hero-image-box img, 
  .about-lead-img-box img, 
  .about-image-card img {
    height: 400px;
  }
}

@media (max-width: 768px) {
  .top-strip { font-size: 12px; }
  .top-strip-inner {
    flex-direction: column;
    text-align: center;
    gap: 6px;
  }
  .nav-wrapper { height: 72px; }
  .brand-mark { width: 40px; height: 40px; }
  .brand-name { font-size: 17px; }
  .brand-sub { font-size: 11px; }

  .main-nav-list {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: #ffffff;
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    z-index: 1000;
  }
  .main-nav-list.active { display: flex; }
  .mobile-menu-btn { display: block; }
  
  .hero-heading, .page-hero-title { font-size: 32px; }
  .section-headline { font-size: 28px; }
  
  .treatment-grid, 
  .gallery-masonry-grid, 
  .gallery-showcase, 
  .blog-list-grid, 
  .values-grid, 
  .chambers-grid, 
  .cred-box {
    grid-template-columns: 1fr;
  }
  
  .form-row { grid-template-columns: 1fr; }
  .appointment-container { padding: 30px 20px; }
  .form-panel { padding: 24px 18px; }
  .footer-layout { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom-bar {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
  
  .hero-image-box img, 
  .about-lead-img-box img, 
  .about-image-card img {
    height: 320px;
  }
}

@media (max-width: 480px) {
  .site-header .cta-button {
    display: none; /* Keep header clean on small mobile devices without crowding */
  }
  .brand-name { font-size: 15px; }
  .brand-sub { font-size: 10px; letter-spacing: 0.02em; }
  .hero-heading, .page-hero-title { font-size: 26px; }
  .hero-lead, .section-description { font-size: 14px; }
  .hero-stats-row {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .hero-stats-row > div:last-child {
    grid-column: span 2;
  }
  .stat-number { font-size: 24px; }
  
  .modal-dialog { padding: 24px 18px; }
  .cta-button, .cta-outline {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  .filter-bar, .blog-filter-bar {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
  }
  .filter-btn, .blog-filter-pill {
    flex-shrink: 0;
  }
}
