/* ===== JACK DENTAL CARE - MAIN STYLESHEET ===== */

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #0057a8;
  --primary-dark: #003d78;
  --primary-light: #e8f1fb;
  --accent: #00a8e8;
  --white: #ffffff;
  --light-gray: #f5f8ff;
  --text-dark: #1a2340;
  --text-gray: #555e73;
  --border: #d0dff5;
  --shadow: 0 4px 24px rgba(0,87,168,0.10);
  --radius: 10px;
}

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.7;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== TOPBAR ===== */
.topbar {
  background: var(--primary-dark);
  color: var(--white);
  font-size: 13px;
  padding: 7px 0;
}

.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.topbar a {
  color: #cce4ff;
  margin-left: 16px;
}

.topbar a:hover { color: var(--white); }

/* ===== NAVBAR ===== */
.navbar {
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0,87,168,0.12);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  height: 68px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 48px;
  height: 48px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: white;
}

.logo-text h1 {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
}

.logo-text span {
  font-size: 11px;
  color: var(--text-gray);
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 6px;
}

.nav-links a {
  display: block;
  padding: 8px 14px;
  color: var(--text-dark);
  font-weight: 600;
  font-size: 14px;
  border-radius: 6px;
  transition: all 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--primary);
  color: var(--white);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
  transition: 0.3s;
}

/* ===== BANNER / SLIDER ===== */
.banner {
  position: relative;
  width: 100%;
  height: 350px;
  overflow: hidden;
  background: var(--primary-dark);
}

.slide {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.9s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide.active { opacity: 1; }

.slide-bg {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.45);
}

.slide-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
  padding: 20px;
}

.slide-content h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 10px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.slide-content p {
  font-size: 16px;
  opacity: 0.9;
  max-width: 500px;
  margin: 0 auto 18px;
}

.btn {
  display: inline-block;
  padding: 10px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.25s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.btn-white {
  background: white;
  color: var(--primary);
}

.btn-white:hover {
  background: var(--primary-light);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: white;
}

.slide-indicators {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: background 0.3s;
}

.dot.active { background: white; }

.slide-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(255,255,255,0.2);
  border: none;
  color: white;
  font-size: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s;
}

.slide-arrow:hover { background: rgba(255,255,255,0.4); }
.slide-arrow.prev { left: 16px; }
.slide-arrow.next { right: 16px; }

/* ===== SECTIONS ===== */
.section {
  padding: 60px 0;
}

.section-alt {
  background: var(--light-gray);
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
}

.section-title h2 {
  font-size: 30px;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 10px;
}

.section-title p {
  color: var(--text-gray);
  max-width: 580px;
  margin: 0 auto;
}

.divider {
  width: 60px;
  height: 4px;
  background: var(--primary);
  margin: 12px auto 0;
  border-radius: 2px;
}

/* ===== ABOUT SNIPPET (Home) ===== */
.about-home {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.about-home-img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.about-home-text h3 {
  font-size: 24px;
  color: var(--primary);
  margin-bottom: 14px;
}

.about-home-text p {
  color: var(--text-gray);
  margin-bottom: 18px;
}

/* ===== DOCTOR CARDS ===== */
.doctors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.doctor-card {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  text-align: center;
  transition: transform 0.2s;
}

.doctor-card:hover { transform: translateY(-4px); }

.doctor-img-wrap {
  background: var(--primary-light);
  padding: 28px 0 10px;
}

.doctor-avatar {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  border: 4px solid var(--primary);
  object-fit: cover;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  color: white;
  margin: 0 auto;
}

.doctor-avatar.placeholder {
  background: var(--primary);
  font-size: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.doctor-card-body {
  padding: 20px;
}

.doctor-card-body h3 {
  font-size: 17px;
  color: var(--primary);
  margin-bottom: 4px;
}

.doctor-card-body .degree {
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 6px;
}

.doctor-card-body .specialty {
  font-size: 13px;
  color: var(--text-gray);
  margin-bottom: 12px;
}

.doctor-card-body p {
  font-size: 13px;
  color: var(--text-gray);
  line-height: 1.6;
}

/* ===== TREATMENT CARDS ===== */
.treatments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 22px;
}

.treatment-card {
  background: white;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 18px;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s;
  box-shadow: var(--shadow);
}

.treatment-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,87,168,0.18);
}

.treatment-icon {
  font-size: 40px;
  margin-bottom: 14px;
}

.treatment-card h3 {
  font-size: 15px;
  color: var(--primary);
  margin-bottom: 8px;
}

.treatment-card p {
  font-size: 13px;
  color: var(--text-gray);
}

.view-more-btn {
  margin-top: 14px;
  display: inline-block;
  font-size: 13px;
  padding: 6px 18px;
}

/* ===== MODAL (YouTube Popup) ===== */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.72);
  z-index: 9000;
  align-items: center;
  justify-content: center;
}

.modal-overlay.open {
  display: flex;
}

.modal-box {
  background: white;
  border-radius: 14px;
  padding: 20px;
  max-width: 680px;
  width: 95%;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.modal-close {
  position: absolute;
  top: 12px; right: 16px;
  font-size: 26px;
  cursor: pointer;
  color: var(--text-gray);
  background: none;
  border: none;
  line-height: 1;
}

.modal-close:hover { color: var(--primary); }

.modal-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
  padding-right: 30px;
}

.video-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 8px;
}

.video-wrap iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
}

/* ===== GALLERY ===== */
.gallery-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 32px;
}

.tab-btn {
  padding: 8px 20px;
  border-radius: 50px;
  border: 2px solid var(--primary);
  background: white;
  color: var(--primary);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}

.tab-btn:hover,
.tab-btn.active {
  background: var(--primary);
  color: white;
}

.gallery-panel { display: none; }
.gallery-panel.active { display: block; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: white;
}

.gallery-item-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 50px;
}

.gallery-item-body {
  padding: 14px;
}

.gallery-item-body h4 {
  font-size: 14px;
  color: var(--primary);
  margin-bottom: 6px;
}

.gallery-item-body p {
  font-size: 13px;
  color: var(--text-gray);
}

/* ===== CONTACT PAGE ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.contact-info-box {
  background: var(--primary);
  color: white;
  border-radius: var(--radius);
  padding: 34px 28px;
}

.contact-info-box h3 {
  font-size: 20px;
  margin-bottom: 22px;
}

.contact-info-item {
  display: flex;
  gap: 14px;
  margin-bottom: 18px;
  align-items: flex-start;
}

.contact-icon {
  font-size: 20px;
  margin-top: 2px;
  flex-shrink: 0;
}

.contact-info-item p {
  font-size: 14px;
  line-height: 1.6;
  opacity: 0.92;
}

.hours-box {
  background: var(--primary-light);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-top: 20px;
}

.hours-box h4 {
  color: var(--primary);
  margin-bottom: 12px;
  font-size: 16px;
}

.hours-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  padding: 5px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-dark);
}

.hours-row:last-child { border-bottom: none; }
.hours-row .closed { color: #e53935; font-weight: 700; }

/* ===== ENQUIRY FORM ===== */
.form-box {
  background: white;
  border-radius: var(--radius);
  padding: 34px 28px;
  box-shadow: var(--shadow);
}

.form-box h3 {
  font-size: 20px;
  color: var(--primary);
  margin-bottom: 22px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: 7px;
  font-size: 14px;
  color: var(--text-dark);
  font-family: inherit;
  transition: border-color 0.2s;
  background: var(--light-gray);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: white;
}

.form-group textarea { resize: vertical; min-height: 90px; }

.map-wrap {
  margin-top: 44px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.map-wrap iframe {
  width: 100%;
  height: 320px;
  border: none;
  display: block;
}

/* ===== VISION & MISSION ===== */
.vm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.vm-card {
  background: white;
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--primary);
}

.vm-card h3 {
  font-size: 20px;
  color: var(--primary);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.vm-card p { color: var(--text-gray); }

/* ===== FOOTER ===== */
.footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.85);
  padding: 48px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 36px;
}

.footer h4 {
  color: white;
  font-size: 16px;
  margin-bottom: 14px;
}

.footer p { font-size: 14px; line-height: 1.8; }

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: rgba(255,255,255,0.75);
  font-size: 14px;
  transition: color 0.2s;
}

.footer-links a:hover { color: white; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  text-align: center;
  padding: 16px 0;
  font-size: 13px;
  color: rgba(255,255,255,0.55);
}

/* ===== PAGE HEADER BANNER ===== */
.page-header {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: white;
  padding: 44px 0;
  text-align: center;
}

.page-header h1 {
  font-size: 32px;
  margin-bottom: 8px;
}

.page-header p {
  opacity: 0.85;
  font-size: 15px;
}

.breadcrumb {
  font-size: 13px;
  opacity: 0.7;
  margin-top: 8px;
}

.breadcrumb a { color: rgba(255,255,255,0.8); }

/* ===== STATS STRIP ===== */
.stats-strip {
  background: var(--primary);
  color: white;
  padding: 28px 0;
}

.stats-strip .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}

.stat-item h3 {
  font-size: 32px;
  font-weight: 700;
}

.stat-item p {
  font-size: 14px;
  opacity: 0.85;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hamburger { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    width: 100%;
    background: white;
    flex-direction: column;
    padding: 10px 0;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    gap: 0;
  }

  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 24px; border-radius: 0; }

  .about-home { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .vm-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats-strip .container { grid-template-columns: repeat(2, 1fr); }

  .slide-content h2 { font-size: 22px; }
  .slide-content p { font-size: 14px; }

  .page-header h1 { font-size: 24px; }
  .section-title h2 { font-size: 24px; }
}

@media (max-width: 480px) {
  .topbar .container { flex-direction: column; align-items: flex-start; gap: 3px; }
  .stats-strip .container { grid-template-columns: repeat(2, 1fr); }
  .treatments-grid { grid-template-columns: 1fr 1fr; }
}
