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

:root {
  --color-dark: #202020;
  --color-gray: #797C81;
  --color-blue: #6B98F2;
  --color-white: #FFFFFF;
  --color-black: #000000;
  --color-light-bg: #F7F8FA;
  --color-gold: #C8962D;
  --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-width: 1200px;
  --header-height: 80px;
}

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

body {
  font-family: var(--font-body);
  color: var(--color-dark);
  background: var(--color-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: color 0.2s; }
ul, ol { list-style: none; }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

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

h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }

p { margin-bottom: 1rem; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 24px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all 0.25s ease;
  border: 2px solid transparent;
}

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

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

.btn-blue {
  background: var(--color-gold);
  color: var(--color-white);
  border-color: var(--color-gold);
}
.btn-blue:hover {
  background: var(--color-white);
  color: var(--color-gold);
}

/* ===== HEADER ===== */
.site-topbar {
  background: var(--color-gray);
  padding: 8px 0;
  font-size: 0.85rem;
  color: var(--color-white);
}
.site-topbar a { color: var(--color-white); }
.site-topbar a:hover { opacity: 0.8; }
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-header {
  background: var(--color-dark);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--header-height);
}

.site-logo img {
  max-height: 50px;
  width: auto;
}

.nav-menu {
  display: flex;
  gap: 32px;
  align-items: center;
}
.nav-menu a {
  color: var(--color-white);
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
}
.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-blue);
  transition: width 0.25s;
}
.nav-menu a:hover::after { width: 100%; }

.header-cta {
  display: flex;
  align-items: center;
  gap: 16px;
}
.header-phone {
  color: var(--color-white);
  font-weight: 600;
  font-size: 0.95rem;
}
.header-phone:hover { color: var(--color-blue); }

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-white);
  margin: 5px 0;
  transition: all 0.3s;
}

/* ===== HERO ===== */
.hero {
  background: var(--color-dark);
  color: var(--color-white);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero h1 {
  color: var(--color-white);
  margin-bottom: 20px;
}
.hero p {
  font-size: 1.15rem;
  opacity: 0.9;
  margin-bottom: 32px;
  line-height: 1.7;
}
.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.hero-image {
  border-radius: 16px;
  overflow: hidden;
}
.hero-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

/* ===== SECTIONS ===== */
.section {
  padding: 80px 0;
}
.section-light {
  background: var(--color-light-bg);
}
.section-dark {
  background: var(--color-dark);
  color: var(--color-white);
}
.section-dark h2 { color: var(--color-white); }

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}
.section-header p {
  color: var(--color-gray);
  font-size: 1.05rem;
  margin-top: 12px;
}

/* ===== SERVICES GRID ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.service-card {
  background: var(--color-white);
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: transform 0.25s, box-shadow 0.25s;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
.service-card h3 {
  margin-bottom: 12px;
}
.service-card p {
  color: var(--color-gray);
  font-size: 0.95rem;
}
.service-card .card-link {
  display: inline-block;
  margin-top: 16px;
  color: var(--color-gold);
  font-weight: 600;
  font-size: 0.9rem;
}
.service-card .card-link:hover { text-decoration: underline; }

/* ===== ABOUT / DOCTOR ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-image {
  border-radius: 12px;
  overflow: hidden;
}
.about-image img {
  width: 100%;
  height: 450px;
  object-fit: cover;
}

/* ===== REVIEWS ===== */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.review-card {
  background: var(--color-white);
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.review-stars {
  color: var(--color-gold);
  font-size: 1.2rem;
  margin-bottom: 12px;
}
.review-text {
  font-style: italic;
  color: var(--color-gray);
  margin-bottom: 16px;
  line-height: 1.7;
}
.review-author {
  font-weight: 600;
  font-size: 0.9rem;
}

/* ===== CTA BANNER ===== */
.cta-banner {
  background: var(--color-dark);
  color: var(--color-white);
  text-align: center;
  padding: 60px 0;
}
.cta-banner h2 {
  color: var(--color-white);
  margin-bottom: 16px;
}
.cta-banner p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 24px;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--color-dark);
  color: var(--color-white);
  padding: 60px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-about .site-logo { margin-bottom: 16px; }
.footer-about p {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  line-height: 1.7;
}
.footer-col h4 {
  color: var(--color-white);
  font-size: 0.95rem;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.footer-col a {
  display: block;
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  margin-bottom: 8px;
}
.footer-col a:hover { color: var(--color-blue); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  text-align: center;
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 968px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-image { display: none; }
  .about-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }

  .nav-menu { display: none; }
  .menu-toggle { display: block; }

  .nav-menu.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--color-dark);
    padding: 24px;
    gap: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  }
}

@media (max-width: 600px) {
  .section { padding: 48px 0; }
  .hero { padding: 48px 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .topbar-inner { flex-direction: column; gap: 4px; text-align: center; }
  .header-phone { display: none; }
  .hero-buttons { flex-direction: column; }
  .hero-buttons .btn { text-align: center; }
}

/* ===== CONTENT STYLES ===== */
.content-image img { border-radius: 8px; }
.entry-content { max-width: 800px; margin: 0 auto; }
.entry-content p { margin-bottom: 1.5rem; }
.entry-content h2 { margin: 2rem 0 1rem; }
.entry-content h3 { margin: 1.5rem 0 0.75rem; }
.entry-content ul, .entry-content ol { margin: 0 0 1.5rem 1.5rem; }
.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }
.entry-content a { color: var(--color-blue); }
.entry-content a:hover { text-decoration: underline; }

/* ===== PAGE TEMPLATES ===== */
.page-hero {
  background: var(--color-dark);
  color: var(--color-white);
  padding: 60px 0;
  text-align: center;
}
.page-hero h1 { color: var(--color-white); }
.page-hero p {
  color: rgba(255,255,255,0.8);
  font-size: 1.1rem;
  margin-top: 12px;
}
.page-content {
  padding: 60px 0;
}

/* ===== BLOG ===== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}
.blog-card {
  background: var(--color-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: transform 0.25s;
}
.blog-card:hover { transform: translateY(-4px); }
.blog-card-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.blog-card-content {
  padding: 24px;
}
.blog-card-content h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}
.blog-card-content p {
  color: var(--color-gray);
  font-size: 0.9rem;
}
.blog-card-meta {
  font-size: 0.8rem;
  color: var(--color-gray);
  margin-bottom: 8px;
}

/* ===== PATIENT PORTAL MODAL ===== */
.portal-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 10000;
  align-items: center;
  justify-content: center;
}
.portal-modal-overlay.active {
  display: flex;
}
.portal-modal {
  background: var(--color-white);
  border-radius: 16px;
  padding: 40px;
  max-width: 480px;
  width: 90%;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  animation: modalIn 0.25s ease;
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.portal-modal h3 {
  font-size: 1.3rem;
  margin-bottom: 16px;
}
.portal-modal p {
  color: var(--color-gray);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 12px;
}
.portal-modal p a {
  color: var(--color-gold);
  font-weight: 600;
}
.portal-modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--color-gray);
  line-height: 1;
}
.portal-modal-close:hover {
  color: var(--color-dark);
}
.portal-modal-buttons {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}
.portal-modal-buttons .btn {
  flex: 1;
  text-align: center;
  padding: 12px 20px;
  font-size: 0.95rem;
}
