/* =============================================
   DR JAS DENTAL CLINIC — Brand Style Sheet
   Brand: Teal #0d7c6d | Navy #2d3178 | Lime #8bc34a
   ============================================= */

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

:root {
  --teal:        #0d7c6d;
  --teal-dark:   #095f54;
  --teal-light:  #e6f4f2;
  --navy:        #2d3178;
  --navy-dark:   #1e2154;
  --lime:        #8bc34a;
  --lime-light:  #f1f8e9;
  --text:        #1a1a2e;
  --text-muted:  #5a6070;
  --bg:          #ffffff;
  --bg-alt:      #f5faf9;
  --border:      #d8ede9;
  --radius:      12px;
  --shadow:      0 4px 24px rgba(13,124,109,0.10);
  --shadow-lg:   0 8px 48px rgba(13,124,109,0.16);
  --whatsapp:    #25d366;
  --tr:          0.24s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
  overflow-x: hidden;
}

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

.container { max-width: 1160px; margin: 0 auto; padding: 0 1.25rem; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1.6rem; border-radius: 50px;
  font-weight: 600; font-size: 0.95rem; cursor: pointer;
  transition: all var(--tr); white-space: nowrap;
  border: 2px solid transparent;
}
.btn-primary   { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-dark); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(13,124,109,0.35); }

.btn-secondary { background: var(--navy); color: #fff; }
.btn-secondary:hover { background: var(--navy-dark); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(45,49,120,0.35); }

.btn-outline   { background: transparent; color: var(--teal); border-color: var(--teal); }
.btn-outline:hover { background: var(--teal); color: #fff; transform: translateY(-2px); }

.btn-outline-white { background: transparent; color: #fff; border-color: rgba(255,255,255,0.7); }
.btn-outline-white:hover { background: rgba(255,255,255,0.15); }

.btn-whatsapp  { background: var(--whatsapp); color: #fff; }
.btn-whatsapp:hover { background: #1da851; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(37,211,102,0.4); }

/* ===== SECTION COMMON ===== */
.section     { padding: 5rem 0; }
.section-alt { background: var(--bg-alt); }

.section-tag {
  display: inline-block; background: var(--teal-light); color: var(--teal);
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; padding: 0.3rem 1rem; border-radius: 50px; margin-bottom: 0.75rem;
}
.section-header { text-align: center; max-width: 640px; margin: 0 auto 3.5rem; }
.section-header h2 {
  font-family: 'Playfair Display', 'Georgia', serif;
  font-size: clamp(1.8rem, 3vw, 2.5rem); line-height: 1.2; margin-bottom: 0.75rem; color: var(--navy);
}
.section-header p { color: var(--text-muted); font-size: 1.05rem; }

/* ===== PAGE HERO (inner pages) ===== */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--teal) 100%);
  padding: 5rem 0 4rem;
  text-align: center;
  color: #fff;
}
.page-hero h1 {
  font-family: 'Playfair Display', 'Georgia', serif;
  font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 0.75rem;
}
.page-hero p { font-size: 1.1rem; opacity: 0.85; max-width: 560px; margin: 0 auto; }
.breadcrumb { display: flex; align-items: center; gap: 0.5rem; justify-content: center; margin-top: 1.25rem; font-size: 0.85rem; opacity: 0.75; }
.breadcrumb a:hover { opacity: 1; text-decoration: underline; }

/* ===== HEADER ===== */
#header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.97); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0.65rem 0;
  transition: box-shadow var(--tr);
}
#header.scrolled { box-shadow: 0 2px 20px rgba(13,124,109,0.12); }

.header-inner { display: flex; align-items: center; gap: 1rem; }
.logo-link { flex-shrink: 0; }
.logo { height: 50px; width: auto; object-fit: contain; }

#nav { flex: 1; }
#nav ul { display: flex; gap: 0.15rem; justify-content: center; }
#nav a {
  padding: 0.5rem 0.95rem; border-radius: 8px;
  font-size: 0.9rem; font-weight: 500; color: var(--text-muted);
  transition: all var(--tr);
}
#nav a:hover, #nav a.active { color: var(--teal); background: var(--teal-light); }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 0.5rem; margin-left: auto;
}
.hamburger span { display: block; width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: all var(--tr); }

/* ===== HERO (home) ===== */
.hero {
  position: relative; min-height: 90vh;
  display: flex; align-items: center; overflow: hidden;
  background: linear-gradient(135deg, #e8f5f3 0%, #eef0fa 60%, #f0f8e8 100%);
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 75% 40%, rgba(13,124,109,0.09) 0%, transparent 55%),
    radial-gradient(ellipse at 15% 75%, rgba(45,49,120,0.07) 0%, transparent 50%);
  pointer-events: none;
}
.hero-content {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem;
  align-items: center; padding: 4rem 1.25rem; position: relative; z-index: 1;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: #fff; border: 1px solid #c8e6c9;
  color: var(--teal); font-size: 0.8rem; font-weight: 600;
  padding: 0.35rem 1rem; border-radius: 50px; margin-bottom: 1.25rem;
  box-shadow: 0 2px 8px rgba(13,124,109,0.12);
}
.hero-text h1 {
  font-family: 'Playfair Display', 'Georgia', serif;
  font-size: clamp(2.4rem, 4.5vw, 3.8rem); line-height: 1.15;
  color: var(--navy); margin-bottom: 1.25rem;
}
.hero-text h1 span { color: var(--teal); }
.hero-text p { font-size: 1.05rem; color: var(--text-muted); margin-bottom: 2rem; max-width: 460px; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.hero-stats  { display: flex; gap: 2.5rem; }
.stat .num   { display: block; font-size: 1.5rem; font-weight: 800; color: var(--teal); }
.stat .lbl   { font-size: 0.78rem; color: var(--text-muted); }

.hero-image  { display: flex; justify-content: center; align-items: flex-end; position: relative; }
.hero-image img {
  max-height: 530px; width: auto; object-fit: contain;
  border-radius: 20px 20px 0 0;
  filter: drop-shadow(0 24px 60px rgba(45,49,120,0.18));
  animation: float 4s ease-in-out infinite;
}
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ===== INFO BAR ===== */
.info-bar { background: linear-gradient(90deg, var(--navy), var(--teal)); color: #fff; padding: 0.85rem 0; }
.info-bar-inner { display: flex; gap: 2rem; flex-wrap: wrap; justify-content: space-around; align-items: center; }
.info-item { display: flex; align-items: center; gap: 0.6rem; font-size: 0.875rem; }
.info-item svg { flex-shrink: 0; opacity: 0.85; }
.info-item a { color: #fff; }

/* ===== SERVICE CARDS ===== */
.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.service-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 2rem 1.75rem; transition: all var(--tr); position: relative; overflow: hidden;
}
.service-card::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--lime));
  transform: scaleX(0); transition: transform var(--tr); transform-origin: left;
}
.service-card:hover { border-color: var(--teal); transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.service-card:hover::after { transform: scaleX(1); }

.service-icon {
  width: 58px; height: 58px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 1.25rem;
  font-size: 1.75rem;
}
.service-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--navy); margin-bottom: 0.6rem; }
.service-card p  { font-size: 0.875rem; color: var(--text-muted); margin-bottom: 1rem; line-height: 1.6; }
.service-card ul { padding: 0; }
.service-card li {
  font-size: 0.83rem; color: var(--text-muted);
  padding: 0.2rem 0 0.2rem 1.3rem; position: relative;
}
.service-card li::before { content: '✓'; position: absolute; left: 0; color: var(--teal); font-weight: 700; }

.service-link {
  display: inline-flex; align-items: center; gap: 0.35rem;
  color: var(--teal); font-size: 0.85rem; font-weight: 600; margin-top: 1rem;
  transition: gap var(--tr);
}
.service-link:hover { gap: 0.6rem; }

/* ===== HOME CLINIC SECTION ===== */
.clinic-split { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.clinic-img { border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-lg); }
.clinic-img img { width: 100%; height: 420px; object-fit: cover; }
.clinic-text .section-tag { display: inline-block; }
.clinic-text h2 {
  font-family: 'Playfair Display', 'Georgia', serif;
  font-size: clamp(1.8rem, 3vw, 2.4rem); color: var(--navy); margin: 0.75rem 0 1rem; line-height: 1.25;
}
.clinic-text p { color: var(--text-muted); margin-bottom: 1rem; }
.feature-list { margin: 1.5rem 0 2rem; display: flex; flex-direction: column; gap: 0.75rem; }
.feature-item { display: flex; align-items: flex-start; gap: 0.75rem; }
.feature-dot {
  width: 22px; height: 22px; border-radius: 50%; background: var(--teal-light);
  flex-shrink: 0; display: flex; align-items: center; justify-content: center; margin-top: 1px;
}
.feature-dot::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); display: block; }
.feature-item span { font-size: 0.9rem; color: var(--text-muted); }
.feature-item strong { color: var(--text); }

/* ===== SERVICES PAGE — DETAILED ===== */
.service-detail {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
  padding: 4rem 0; border-bottom: 1px solid var(--border);
}
.service-detail:last-child { border-bottom: none; }
.service-detail.reverse .sd-image { order: 2; }
.service-detail.reverse .sd-content { order: 1; }

.sd-image { border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-lg); }
.sd-image img { width: 100%; height: 360px; object-fit: cover; }

.sd-icon {
  width: 64px; height: 64px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; margin-bottom: 1.25rem;
}
.sd-content h2 {
  font-family: 'Playfair Display', 'Georgia', serif;
  font-size: 1.9rem; color: var(--navy); margin-bottom: 0.75rem;
}
.sd-content p { color: var(--text-muted); margin-bottom: 1rem; line-height: 1.75; }
.sd-list { margin: 1.25rem 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.sd-list li {
  font-size: 0.875rem; color: var(--text-muted);
  padding-left: 1.25rem; position: relative; line-height: 1.5;
}
.sd-list li::before { content: '✓'; position: absolute; left: 0; color: var(--teal); font-weight: 700; }

/* Services page cards grid (no image) */
.services-cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.5rem; }

/* ===== ABOUT PAGE ===== */
.about-hero-split { display: grid; grid-template-columns: 5fr 7fr; gap: 4rem; align-items: start; }
.about-img-wrap { position: relative; }
.about-img-main {
  width: 100%; border-radius: 20px; box-shadow: var(--shadow-lg);
  object-fit: cover; object-position: top;
}
.about-img-badge {
  position: absolute; bottom: 1.5rem; left: -1.5rem;
  background: var(--navy); color: #fff;
  padding: 1rem 1.5rem; border-radius: 12px;
  box-shadow: 0 8px 24px rgba(45,49,120,0.3);
}
.about-img-badge .big { font-size: 2rem; font-weight: 800; color: #ffd700; line-height: 1; }
.about-img-badge small { display: block; font-size: 0.75rem; opacity: 0.8; }

.about-content h2 {
  font-family: 'Playfair Display', 'Georgia', serif;
  font-size: clamp(1.8rem, 3vw, 2.4rem); color: var(--navy); margin: 0.75rem 0 0.25rem;
}
.about-content .sub { color: var(--teal); font-size: 1rem; font-weight: 600; margin-bottom: 1.25rem; }
.about-content p { color: var(--text-muted); margin-bottom: 1rem; line-height: 1.8; }

.cred-grid { display: flex; flex-direction: column; gap: 0.65rem; margin: 1.5rem 0 2rem; }
.cred-item {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.75rem 1rem; background: var(--teal-light);
  border-radius: 10px; border-left: 3px solid var(--teal);
}
.cred-item span { font-size: 0.9rem; font-weight: 500; color: var(--navy); }

/* Clinic photo grid */
.clinic-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.clinic-grid img { border-radius: var(--radius); width: 100%; height: 260px; object-fit: cover; box-shadow: var(--shadow); transition: transform var(--tr); }
.clinic-grid img:hover { transform: scale(1.02); }
.clinic-grid .span2 { grid-column: span 2; height: 340px; }

/* Why choose us */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.why-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.75rem 1.5rem; text-align: center; transition: all var(--tr);
}
.why-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--teal); }
.why-icon { font-size: 2.25rem; margin-bottom: 0.75rem; }
.why-card h4 { font-size: 0.95rem; font-weight: 700; color: var(--navy); margin-bottom: 0.4rem; }
.why-card p  { font-size: 0.83rem; color: var(--text-muted); }

/* ===== CTA BANNER ===== */
.cta-banner {
  background: linear-gradient(135deg, var(--navy) 0%, var(--teal) 100%);
  padding: 5rem 0; text-align: center; color: #fff;
}
.cta-banner h2 {
  font-family: 'Playfair Display', 'Georgia', serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem); margin-bottom: 1rem;
}
.cta-banner p { font-size: 1.05rem; opacity: 0.85; max-width: 540px; margin: 0 auto 2rem; }
.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ===== CONTACT ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.contact-cards { display: flex; flex-direction: column; gap: 1rem; }
.contact-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.25rem 1.5rem; display: flex; gap: 1rem; align-items: flex-start;
}
.contact-card-icon {
  width: 44px; height: 44px; border-radius: 10px; background: var(--teal-light);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  font-size: 1.25rem;
}
.contact-card h4 { font-size: 0.9rem; font-weight: 700; color: var(--navy); margin-bottom: 0.25rem; }
.contact-card p  { font-size: 0.85rem; color: var(--text-muted); line-height: 1.65; }
.contact-card a  { color: var(--teal); }
.contact-actions { display: flex; gap: 0.75rem; margin-top: 0.25rem; flex-wrap: wrap; }

.map-wrap { border-radius: var(--radius); overflow: hidden; height: 420px; box-shadow: var(--shadow); }
.map-wrap iframe { width: 100%; height: 100%; border: 0; }

/* ===== FOOTER ===== */
.footer { background: var(--navy-dark); color: rgba(255,255,255,0.72); padding: 4rem 0 0; }
.footer-inner { display: grid; grid-template-columns: 2.2fr 1fr 1fr 1fr; gap: 3rem; padding-bottom: 3rem; }
.footer-logo { height: 46px; width: auto; margin-bottom: 1rem; filter: brightness(0) invert(1); }
.footer-brand p { font-size: 0.85rem; line-height: 1.75; margin-bottom: 1.25rem; }
.social-row { display: flex; gap: 0.6rem; }
.social-row a {
  width: 36px; height: 36px; border-radius: 8px;
  background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.75); transition: all var(--tr);
}
.social-row a:hover { background: var(--teal); color: #fff; }

.footer-col h4 { color: #fff; font-size: 0.9rem; font-weight: 700; margin-bottom: 1rem; }
.footer-col ul  { display: flex; flex-direction: column; gap: 0.45rem; }
.footer-col li  { font-size: 0.83rem; line-height: 1.55; }
.footer-col a:hover { color: var(--lime); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1.25rem 0; text-align: center; font-size: 0.78rem;
}

/* ===== FLOATING WHATSAPP ===== */
.wa-float {
  position: fixed; bottom: 1.75rem; right: 1.75rem; z-index: 999;
  background: var(--whatsapp); width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.5);
  transition: all var(--tr); animation: waPulse 2.5s ease-in-out infinite;
}
.wa-float:hover { transform: scale(1.1); }
@keyframes waPulse {
  0%,100% { box-shadow: 0 4px 20px rgba(37,211,102,0.5); }
  50% { box-shadow: 0 4px 32px rgba(37,211,102,0.7), 0 0 0 8px rgba(37,211,102,0.12); }
}

/* ===== SCROLL ANIMATION ===== */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .section { padding: 3.5rem 0; }

  /* Header */
  #nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-top: 1px solid var(--border);
    padding: 1rem; display: none; box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  }
  #nav.open { display: block; }
  #nav ul { flex-direction: column; }
  #nav a { display: block; padding: 0.75rem 1rem; border-radius: 8px; }
  .hamburger { display: flex; }
  .header-inner > .btn { display: none; }

  /* Hero */
  .hero-content { grid-template-columns: 1fr; text-align: center; }
  .hero-image { order: -1; }
  .hero-image img { max-height: 280px; border-radius: 16px; }
  .hero-actions, .hero-stats { justify-content: center; }

  /* Info bar */
  .info-bar-inner { flex-direction: column; align-items: flex-start; gap: 0.6rem; }

  /* Splits */
  .clinic-split, .about-hero-split, .contact-grid { grid-template-columns: 1fr; }
  .about-img-badge { left: 0; }

  /* Service detail */
  .service-detail { grid-template-columns: 1fr; gap: 2rem; }
  .service-detail.reverse .sd-image,
  .service-detail.reverse .sd-content { order: unset; }
  .sd-list { grid-template-columns: 1fr; }

  /* Clinic grid */
  .clinic-grid { grid-template-columns: 1fr; }
  .clinic-grid .span2 { grid-column: span 1; }

  /* Footer */
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }

  .map-wrap { height: 280px; }
  .why-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .why-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 1.5rem; flex-wrap: wrap; }
}
