/* ============================================
   GLODENT DENTAL CLINIC – SHARED STYLES
   glodentdentalclinicmylapore.com
   Designed & Marketing by Digiman Marketing
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700;800&family=DM+Sans:ital,wght@0,300;0,400;0,500;0,600;1,400&display=swap');

/* ===== TOKENS ===== */
:root {
  --navy:          #0D1B4B;
  --navy-mid:      #152266;
  --navy-light:    #1e2f7a;
  --magenta:       #CC00CC;
  --magenta-light: #e040e0;
  --magenta-pale:  rgba(204,0,204,0.08);
  --white:         #FFFFFF;
  --off-white:     #F7F7FC;
  --surface:       #F0F0F8;
  --text-dark:     #13132b;
  --text-mid:      #4a4a6e;
  --text-light:    #9090b8;
  --gold:          #F5C518;
  --success:       #00B87A;
  --danger:        #E53E3E;
  --border:        rgba(13,27,75,0.10);
  --border-mid:    rgba(13,27,75,0.18);

  --shadow-xs:     0 2px 8px rgba(13,27,75,0.07);
  --shadow-sm:     0 4px 16px rgba(13,27,75,0.09);
  --shadow-md:     0 8px 32px rgba(13,27,75,0.11);
  --shadow-lg:     0 16px 56px rgba(13,27,75,0.14);
  --shadow-xl:     0 24px 80px rgba(13,27,75,0.18);

  --radius-xs:     6px;
  --radius-sm:     10px;
  --radius:        16px;
  --radius-lg:     24px;
  --radius-xl:     32px;

  --font-display:  'Playfair Display', Georgia, serif;
  --font-body:     'DM Sans', system-ui, sans-serif;

  --nav-h:         70px;
  --topbar-h:      36px;
  --safe:          clamp(16px, 4vw, 60px);
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font-body); color: var(--text-dark); background: var(--white); overflow-x: hidden; line-height: 1.65; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font-family: var(--font-body); }

/* ===== SVG ICON HELPER ===== */
.icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: middle;
  flex-shrink: 0;
}

/* ===== TOPBAR ===== */
.topbar {
  background: var(--navy);
  color: rgba(255,255,255,0.80);
  font-size: 0.75rem;
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--safe);
  gap: 10px;
  flex-wrap: wrap;
  overflow: hidden;
}
.topbar a { color: var(--magenta-light); text-decoration: none; transition: color .2s; }
.topbar a:hover { color: #fff; }
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 16px; }
.topbar-item { display: flex; align-items: center; gap: 5px; white-space: nowrap; }
.topbar-item .icon { width: 13px; height: 13px; color: var(--magenta-light); }

/* ===== NAVBAR ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 900;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  height: var(--nav-h);
  padding: 0 var(--safe);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo img { height: 44px; width: auto; object-fit: contain; }
.nav-logo-text { font-family: var(--font-display); font-size: 1.55rem; font-weight: 800; color: var(--navy); letter-spacing: -0.5px; }
.nav-logo-text span { color: var(--magenta); }
.nav-tagline { font-size: 0.62rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-light); font-weight: 500; }

.nav-menu { display: flex; align-items: center; gap: 6px; list-style: none; }
.nav-menu a {
  color: var(--text-dark);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: var(--radius-xs);
  transition: all .2s;
  white-space: nowrap;
}
.nav-menu a:hover { color: var(--navy); background: var(--surface); }
.nav-menu .nav-book {
  background: var(--magenta);
  color: var(--white);
  padding: 9px 20px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.85rem;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all .2s;
  text-decoration: none;
}
.nav-menu .nav-book .icon { width: 15px; height: 15px; }
.nav-menu .nav-book:hover { background: var(--navy); transform: translateY(-1px); }

.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: var(--navy);
}
.nav-hamburger .icon { width: 24px; height: 24px; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--font-body);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all .25s;
  white-space: nowrap;
  line-height: 1;
}
.btn .icon { width: 17px; height: 17px; }
.btn-primary { background: var(--magenta); color: var(--white); box-shadow: 0 6px 20px rgba(204,0,204,.28); }
.btn-primary:hover { background: #aa00aa; transform: translateY(-2px); box-shadow: 0 10px 28px rgba(204,0,204,.38); }
.btn-navy { background: var(--navy); color: var(--white); box-shadow: 0 6px 20px rgba(13,27,75,.22); }
.btn-navy:hover { background: var(--navy-mid); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--navy); border: 1.5px solid var(--border-mid); }
.btn-outline:hover { border-color: var(--magenta); color: var(--magenta); }
.btn-outline-white { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,.4); }
.btn-outline-white:hover { border-color: var(--white); background: rgba(255,255,255,.1); }
.btn-white { background: var(--white); color: var(--navy); }
.btn-white:hover { background: var(--gold); color: var(--navy); }
.btn-success { background: var(--success); color: var(--white); }
.btn-success:hover { background: #009c68; transform: translateY(-2px); }
.btn-sm { padding: 8px 18px; font-size: 0.82rem; }
.btn-sm .icon { width: 14px; height: 14px; }
.btn-lg { padding: 16px 36px; font-size: 1.05rem; }

/* ===== SECTION BASE ===== */
.section { padding: 80px var(--safe); }
.section-sm { padding: 52px var(--safe); }
.section-lg { padding: 110px var(--safe); }
.section-bg { background: var(--off-white); }
.section-navy { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%); }
.section-center { text-align: center; }

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--magenta-pale);
  color: var(--magenta);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 5px 13px;
  border-radius: 50px;
  margin-bottom: 12px;
}
.section-tag .icon { width: 12px; height: 12px; }
.section-tag-white {
  background: rgba(255,255,255,.12);
  color: rgba(255,255,255,.85);
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.6rem);
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 14px;
}
.section-title-white { color: var(--white); }
.section-sub { color: var(--text-mid); font-size: 1rem; line-height: 1.7; max-width: 600px; }
.section-sub-white { color: rgba(255,255,255,.7); }
.section-header { margin-bottom: 52px; }
.section-header.center { text-align: center; }
.section-header.center .section-sub { margin: 0 auto; }

/* ===== FORM ELEMENTS ===== */
.field { margin-bottom: 14px; }
.field label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-mid);
  margin-bottom: 5px;
  letter-spacing: .3px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border-mid);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--off-white);
  outline: none;
  transition: border-color .2s, background .2s, box-shadow .2s;
  appearance: auto;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--magenta);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(204,0,204,.10);
}
.field textarea { resize: vertical; min-height: 80px; }
.field .field-icon-wrap { position: relative; }
.field .field-icon-wrap .icon {
  position: absolute;
  left: 12px; top: 50%;
  transform: translateY(-50%);
  width: 16px; height: 16px;
  color: var(--text-light);
  pointer-events: none;
}
.field .field-icon-wrap input { padding-left: 38px; }

/* ===== CARDS ===== */
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  padding: 28px;
  transition: all .3s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

/* ===== PILL TAGS ===== */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.88);
  padding: 5px 13px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 500;
}
.pill .icon { width: 13px; height: 13px; }
.pill-light {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text-mid);
}

/* ===== FLOATING CTA ===== */
.float-cta {
  position: fixed;
  bottom: 24px; right: 20px;
  z-index: 800;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}
.float-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: var(--shadow-lg);
  transition: all .2s;
  white-space: nowrap;
  font-family: var(--font-body);
  border: none;
  cursor: pointer;
}
.float-btn .icon { width: 16px; height: 16px; }
.float-call { background: var(--success); color: var(--white); }
.float-call:hover { background: #009c68; transform: translateY(-2px); }
.float-book { background: var(--magenta); color: var(--white); }
.float-book:hover { background: #aa00aa; transform: translateY(-2px); }

/* ===== POPUP ===== */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 26, 0.78);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(12px, 4vw, 24px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  overflow-y: auto;
}
.popup-overlay.active { opacity: 1; pointer-events: all; }

.popup-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 5vw, 40px) clamp(20px, 5vw, 36px);
  max-width: 480px;
  width: 100%;
  position: relative;
  transform: translateY(20px) scale(.97);
  transition: transform .3s;
  box-shadow: var(--shadow-xl);
  margin: auto;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  /* safe area for mobile */
  padding-bottom: max(clamp(24px, 5vw, 40px), env(safe-area-inset-bottom, 0px));
}
.popup-overlay.active .popup-box { transform: none; }

.popup-close {
  position: absolute;
  top: 14px; right: 14px;
  background: var(--surface);
  border: none;
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-mid);
  transition: all .2s;
  flex-shrink: 0;
}
.popup-close:hover { background: var(--navy); color: var(--white); }
.popup-close .icon { width: 16px; height: 16px; }

.popup-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--magenta-pale);
  color: var(--magenta);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 50px;
  margin-bottom: 10px;
}
.popup-tag .icon { width: 12px; height: 12px; }
.popup-box h2 {
  font-family: var(--font-display);
  font-size: 1.55rem;
  color: var(--navy);
  margin-bottom: 5px;
}
.popup-box .popup-sub { color: var(--text-mid); font-size: 0.87rem; margin-bottom: 20px; }

.popup-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.popup-grid .field-full { grid-column: 1 / -1; }

/* ===== SUCCESS STATE ===== */
.form-success {
  display: none;
  text-align: center;
  padding: 20px 0 10px;
}
.success-icon-wrap {
  width: 64px; height: 64px;
  background: linear-gradient(135deg, rgba(0,184,122,.15), rgba(0,184,122,.05));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.success-icon-wrap .icon { width: 28px; height: 28px; color: var(--success); }
.form-success h3 { font-family: var(--font-display); color: var(--navy); font-size: 1.3rem; margin-bottom: 8px; }
.form-success p { color: var(--text-mid); font-size: 0.88rem; line-height: 1.6; }
.form-success .success-cta { margin-top: 18px; display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.privacy-note { font-size: 0.72rem; color: var(--text-light); text-align: center; margin-top: 10px; display: flex; align-items: center; justify-content: center; gap: 4px; }
.privacy-note .icon { width: 12px; height: 12px; color: var(--success); }

/* ===== TRUST STRIP ===== */
.trust-strip {
  background: var(--navy);
  padding: 18px var(--safe);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(20px, 4vw, 48px);
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 9px;
  color: rgba(255,255,255,.82);
  font-size: 0.83rem;
  font-weight: 500;
}
.trust-icon-wrap {
  width: 34px; height: 34px;
  background: rgba(204,0,204,.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.trust-icon-wrap .icon { width: 16px; height: 16px; color: var(--magenta-light); }

/* ===== STARS ===== */
.stars { display: flex; gap: 2px; }
.stars .icon { width: 15px; height: 15px; color: var(--gold); }

/* ===== FOOTER ===== */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,.72);
  padding: 64px var(--safe) 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto 48px;
}
.footer h4 { color: var(--white); font-size: 0.9rem; font-weight: 700; margin-bottom: 16px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 9px; }
.footer-links a {
  color: rgba(255,255,255,.62);
  text-decoration: none;
  font-size: 0.86rem;
  display: flex;
  align-items: center;
  gap: 7px;
  transition: color .2s;
}
.footer-links a .icon { width: 13px; height: 13px; flex-shrink: 0; color: var(--magenta-light); }
.footer-links a:hover { color: var(--magenta-light); }
.footer-desc { font-size: 0.85rem; line-height: 1.75; margin-bottom: 18px; }
.footer-tagline { font-size: 0.66rem; letter-spacing: 1.8px; text-transform: uppercase; color: rgba(255,255,255,.4); margin-bottom: 14px; }
.footer-logo-text { font-family: var(--font-display); font-size: 1.7rem; font-weight: 800; color: var(--white); }
.footer-logo-text span { color: var(--magenta-light); }
.social-links { display: flex; gap: 8px; margin-top: 4px; }
.social-link {
  width: 36px; height: 36px;
  background: rgba(255,255,255,.09);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background .2s;
  color: rgba(255,255,255,.75);
}
.social-link .icon { width: 17px; height: 17px; }
.social-link:hover { background: var(--magenta); color: var(--white); }
.footer-info-item {
  background: rgba(255,255,255,.05);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 10px;
  font-size: 0.83rem;
}
.footer-info-item strong { color: var(--white); display: block; margin-bottom: 3px; font-size: 0.78rem; letter-spacing: .5px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.09);
  padding: 22px 0 max(22px, env(safe-area-inset-bottom, 22px));
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.78rem;
}
.footer-bottom a { color: var(--magenta-light); text-decoration: none; }
.footer-bottom a:hover { color: var(--white); }

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes pulse { 0%,100%{transform:scale(1)} 50%{transform:scale(1.04)} }

.anim-up { animation: fadeUp .65s ease both; }
.anim-up-1 { animation-delay: .1s; }
.anim-up-2 { animation-delay: .2s; }
.anim-up-3 { animation-delay: .3s; }
.anim-up-4 { animation-delay: .4s; }
.anim-up-5 { animation-delay: .5s; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  :root { --safe: 18px; }
  .section { padding: 60px var(--safe); }
  .section-lg { padding: 70px var(--safe); }
  .topbar { display: none; }
  .nav-menu { display: none; }
  .nav-hamburger { display: flex; }
  .nav-menu.open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    background: var(--white);
    padding: 16px var(--safe) max(16px, env(safe-area-inset-bottom,16px));
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    gap: 4px;
    max-height: calc(100vh - var(--nav-h));
    overflow-y: auto;
  }
  .nav-menu.open a { padding: 12px 14px; border-radius: var(--radius-sm); }
  .nav-menu.open .nav-book { justify-content: center; margin-top: 8px; }
  .popup-grid { grid-template-columns: 1fr; }
  .float-cta { bottom: max(16px, env(safe-area-inset-bottom,16px)); right: 14px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
  :root { --safe: 14px; }
  .btn { padding: 12px 22px; font-size: 0.9rem; }
  .btn-lg { padding: 14px 28px; font-size: 0.95rem; }
  .float-btn { padding: 10px 16px; font-size: 0.82rem; }
}
