/* ============================================
   Dr. Sumbal Sahar & Associates — Design Tokens
   ============================================ */
:root{
  --navy-deep:#0C1A29;
  --navy:#132C45;
  --navy-soft:#1B3A5A;
  --gold:#C9A24B;
  --gold-light:#E6CD8A;
  --cream:#F8F4EC;
  --ivory:#FFFFFF;
  --slate:#93A4B8;
  --ink:#1B2430;
  --ink-soft:#4A5568;
  --line:rgba(201,162,75,0.25);

  --font-display:'Fraunces', Georgia, serif;
  --font-body:'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --container:1180px;
  --radius:14px;
  --radius-pill:999px;
}

*,*::before,*::after{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0;
  font-family:var(--font-body);
  color:var(--ink);
  background:var(--cream);
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
img{max-width:100%;display:block;}
a{color:inherit;text-decoration:none;}
ul{margin:0;padding:0;list-style:none;}
h1,h2,h3,h4{font-family:var(--font-display);margin:0;line-height:1.15;font-weight:600;}
p{margin:0;line-height:1.7;}
section{position:relative;}

.wrap{
  max-width:var(--container);
  margin:0 auto;
  padding:0 20px;
}

@media(min-width:768px){
  .wrap{padding:0 40px;}
}

/* -------- Buttons -------- */
.btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-family:var(--font-body);
  font-weight:700;
  font-size:0.92rem;
  letter-spacing:0.01em;
  padding:14px 28px;
  border-radius:var(--radius-pill);
  border:1.5px solid transparent;
  cursor:pointer;
  transition:transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
  white-space:nowrap;
}
.btn:hover{transform:translateY(-2px);}
.btn-gold{
  background:linear-gradient(135deg,var(--gold-light),var(--gold));
  color:var(--navy-deep);
  box-shadow:0 8px 20px rgba(201,162,75,0.28);
}
.btn-gold:hover{box-shadow:0 12px 26px rgba(201,162,75,0.4);}
.btn-outline{
  border-color:rgba(255,255,255,0.35);
  color:var(--ivory);
  background:transparent;
}
.btn-outline:hover{border-color:var(--gold-light);color:var(--gold-light);}
.btn-outline-gold{
  border-color:var(--gold);
  color:var(--gold-light);
  background:rgba(201,162,75,0.08);
}
.btn-outline-gold:hover{background:rgba(201,162,75,0.18);border-color:var(--gold-light);color:#fff;}
.btn-outline-dark{
  border-color:rgba(19,44,69,0.3);
  color:var(--navy);
  background:transparent;
}
.btn-outline-dark:hover{border-color:var(--navy);background:var(--navy);color:var(--ivory);}
.btn-sm{padding:10px 20px;font-size:0.82rem;}
.btn-ghost{
  background:transparent;
  border-color:transparent;
  color:var(--gold-light);
  text-decoration:underline;
  text-underline-offset:3px;
  padding:10px 6px;
}
.btn-ghost:hover{color:#fff;}

.hero-trust-line{
  margin-top:20px;
  font-size:0.78rem;
  color:var(--slate);
  display:flex;
  flex-direction:column;
  gap:4px;
}
.hero-trust-line strong{color:var(--gold-light);}

.service-chips{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  justify-content:center;
}
.chip{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:10px 18px;
  border-radius:var(--radius-pill);
  border:1.5px solid rgba(19,44,69,0.15);
  background:var(--ivory);
  color:var(--navy);
  font-size:0.85rem;
  font-weight:700;
  transition:border-color .2s ease, transform .2s ease, background .2s ease;
}
.chip:hover{border-color:var(--gold);background:var(--cream);transform:translateY(-2px);}

/* -------- Eyebrow / labels -------- */
.eyebrow{
  display:inline-flex;
  align-items:center;
  gap:10px;
  font-family:var(--font-body);
  font-size:0.76rem;
  font-weight:700;
  letter-spacing:0.16em;
  text-transform:uppercase;
  color:var(--gold);
  margin-bottom:16px;
}
.eyebrow::before{
  content:'';
  width:28px;height:1px;
  background:var(--gold);
}

/* -------- Tooth signature icon -------- */
.tooth-icon{display:inline-block;flex-shrink:0;}
.divider-tooth{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:16px;
  margin:0 auto;
}
.divider-tooth .line{height:1px;width:60px;background:var(--line);}

/* ============ HEADER ============ */
.site-header{
  position:sticky;top:0;z-index:100;
  background:rgba(12,26,41,0.96);
  backdrop-filter:blur(10px);
  border-bottom:1px solid rgba(201,162,75,0.15);
}
.header-inner{
  display:flex;align-items:center;justify-content:space-between;
  padding:14px 0;
}
.brand{
  display:flex;align-items:center;gap:10px;
  color:var(--ivory);
}
.brand-mark{width:34px;height:34px;color:var(--gold);}
.brand-text{display:flex;flex-direction:column;line-height:1.1;}
.brand-text .name{
  font-family:var(--font-display);
  font-size:1.05rem;
  font-weight:600;
  color:var(--ivory);
}
.brand-text .sub{
  font-size:0.62rem;
  letter-spacing:0.12em;
  text-transform:uppercase;
  color:var(--gold-light);
  margin-top:2px;
}
.main-nav{display:none;align-items:center;gap:36px;}
.main-nav a{
  font-size:0.88rem;font-weight:600;color:var(--ivory);
  opacity:0.85;transition:opacity .2s, color .2s;
  position:relative;
}
.main-nav a:hover{opacity:1;color:var(--gold-light);}
.main-nav a.active{color:var(--gold-light);opacity:1;}
.header-cta{display:none;}
.hamburger{
  display:flex;flex-direction:column;gap:5px;
  background:none;border:none;cursor:pointer;padding:6px;
}
.hamburger span{width:24px;height:2px;background:var(--ivory);border-radius:2px;transition:.3s;}

.mobile-menu{
  display:none;
  flex-direction:column;
  background:var(--navy-deep);
  border-top:1px solid rgba(201,162,75,0.15);
  padding:18px 20px 26px;
}
.mobile-menu.open{display:flex;}
.mobile-menu a{
  color:var(--ivory);padding:12px 0;font-weight:600;font-size:1rem;
  border-bottom:1px solid rgba(255,255,255,0.06);
}
.mobile-menu .btn{margin-top:16px;justify-content:center;}

@media(min-width:1000px){
  .main-nav{display:flex;}
  .header-cta{display:inline-flex;}
  .hamburger{display:none;}
}

/* ============ FLOATING WHATSAPP ============ */
.wa-float{
  position:fixed;
  bottom:22px;right:22px;
  width:60px;height:60px;
  border-radius:50%;
  background:#25D366;
  display:flex;align-items:center;justify-content:center;
  box-shadow:0 10px 30px rgba(37,211,102,0.45);
  z-index:200;
  animation:wa-pulse 2.6s ease-in-out infinite;
}
.wa-float svg{width:30px;height:30px;}
@keyframes wa-pulse{
  0%,100%{box-shadow:0 10px 30px rgba(37,211,102,0.45);}
  50%{box-shadow:0 10px 30px rgba(37,211,102,0.75),0 0 0 8px rgba(37,211,102,0.12);}
}

/* ============ FOOTER ============ */
.site-footer{
  background:var(--navy-deep);
  color:var(--slate);
  padding:64px 0 0;
}
.footer-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:40px;
  padding-bottom:48px;
  border-bottom:1px solid rgba(255,255,255,0.08);
}
@media(min-width:768px){
  .footer-grid{grid-template-columns:1.3fr 1fr 1fr 1.3fr;gap:32px;}
}
.footer-brand .brand{margin-bottom:14px;}
.footer-brand p{font-size:0.9rem;color:var(--slate);max-width:280px;}
.footer-col h4{
  color:var(--ivory);font-size:0.85rem;letter-spacing:0.08em;
  text-transform:uppercase;margin-bottom:18px;font-family:var(--font-body);font-weight:700;
}
.footer-col li{margin-bottom:11px;font-size:0.92rem;}
.footer-col a:hover{color:var(--gold-light);}
.footer-social{display:flex;gap:12px;margin-top:18px;}
.footer-social a{
  width:38px;height:38px;border-radius:50%;
  border:1px solid rgba(255,255,255,0.15);
  display:flex;align-items:center;justify-content:center;
  transition:.2s;
}
.footer-social a:hover{background:var(--gold);border-color:var(--gold);color:var(--navy-deep);}
.footer-map iframe{
  width:100%;height:220px;border:0;border-radius:var(--radius);
  filter:grayscale(20%) contrast(1.05);
}
.footer-bottom{
  display:flex;flex-direction:column;gap:10px;
  align-items:center;justify-content:space-between;
  padding:24px 0;font-size:0.8rem;color:rgba(255,255,255,0.35);
  text-align:center;
}
@media(min-width:768px){
  .footer-bottom{flex-direction:row;text-align:left;}
}
.footer-bottom a{color:rgba(255,255,255,0.35);}
.footer-bottom a:hover{color:var(--gold-light);}
.contact-line{display:flex;align-items:center;gap:10px;font-size:0.92rem;margin-bottom:14px;color:var(--slate);}
.contact-line svg{width:18px;height:18px;color:var(--gold);flex-shrink:0;}

/* ============ Utility sections ============ */
.section{padding:72px 0;}
@media(min-width:768px){.section{padding:104px 0;}}
.section-dark{background:var(--navy-deep);color:var(--ivory);}
.section-navy{background:var(--navy);color:var(--ivory);}
.section-cream{background:var(--cream);}
.section-white{background:var(--ivory);}

.center{text-align:center;}
.section-head{max-width:640px;margin:0 auto 48px;}
.section-head h2{font-size:clamp(1.9rem,4vw,2.75rem);}
.section-head p{margin-top:16px;color:var(--ink-soft);font-size:1.05rem;}
.section-dark .section-head p,.section-navy .section-head p{color:var(--slate);}

.grid{display:grid;gap:24px;}
@media(min-width:640px){.grid-2{grid-template-columns:1fr 1fr;}}
@media(min-width:900px){.grid-3{grid-template-columns:repeat(3,1fr);}.grid-4{grid-template-columns:repeat(4,1fr);}}

.card{
  background:var(--ivory);
  border-radius:var(--radius);
  padding:32px 26px;
  border:1px solid rgba(19,44,69,0.06);
  transition:transform .3s ease, box-shadow .3s ease;
}
.card:hover{transform:translateY(-6px);box-shadow:0 20px 40px rgba(19,44,69,0.1);}
.card-icon{
  width:52px;height:52px;border-radius:50%;
  background:linear-gradient(135deg,#F3E6C6,#EAD59F);
  display:flex;align-items:center;justify-content:center;
  margin-bottom:20px;color:var(--navy);
}
.card-icon svg{width:26px;height:26px;}
.card h3{font-size:1.2rem;margin-bottom:10px;}
.card p{color:var(--ink-soft);font-size:0.95rem;}
.card-link{
  display:inline-flex;align-items:center;gap:6px;
  margin-top:16px;font-size:0.85rem;font-weight:700;color:var(--navy);
}
.card-link svg{width:14px;height:14px;transition:transform .2s;}
.card-link:hover svg{transform:translateX(3px);}

.badge-row{display:flex;flex-wrap:wrap;gap:12px 28px;justify-content:center;}
.badge-row .badge{
  display:flex;align-items:center;gap:10px;
  font-size:0.85rem;font-weight:700;color:var(--ivory);
  letter-spacing:0.02em;
}
.badge svg{width:20px;height:20px;color:var(--gold);}

.reveal{opacity:0;transform:translateY(24px);transition:opacity .7s ease, transform .7s ease;}
.reveal.in{opacity:1;transform:translateY(0);}

/* Hero photo slide-in animation */
.hero-photo{
  animation: heroSlideIn 1.1s cubic-bezier(0.16,1,0.3,1) both;
  animation-delay: 0.15s;
}
@keyframes heroSlideIn{
  from{opacity:0; transform:translateX(-70px);}
  to{opacity:1; transform:translateX(0);}
}

@media(prefers-reduced-motion:reduce){
  .reveal{opacity:1;transform:none;transition:none;}
  .hero-photo{animation:none;}
  .wa-float{animation:none;}
}

/* ============ DESKTOP FLOATING CALL BUTTON ============ */
.call-float{
  position:fixed;
  bottom:96px;right:22px;
  width:60px;height:60px;
  border-radius:50%;
  background:linear-gradient(135deg,var(--gold-light),var(--gold));
  display:flex;align-items:center;justify-content:center;
  box-shadow:0 10px 30px rgba(201,162,75,0.45);
  z-index:200;
  transition:transform .25s ease, box-shadow .25s ease;
}
.call-float:hover{transform:translateY(-3px) scale(1.05);box-shadow:0 14px 34px rgba(201,162,75,0.55);}
.call-float svg{width:26px;height:26px;color:var(--navy-deep);}

@media(max-width:768px){
  .call-float{display:none;} /* replaced by sticky mobile action bar */
  .wa-float{display:none;}
}

/* ============ STICKY MOBILE ACTION BAR ============ */
.mobile-action-bar{
  display:none;
  position:fixed;
  left:0;right:0;bottom:0;
  z-index:300;
  background:rgba(12,26,41,0.98);
  backdrop-filter:blur(14px);
  border-top:1px solid rgba(201,162,75,0.25);
  box-shadow:0 -8px 24px rgba(0,0,0,0.25);
  padding-bottom:env(safe-area-inset-bottom, 0px);
  animation:barSlideUp .5s cubic-bezier(0.16,1,0.3,1) both;
  animation-delay:.3s;
}
@keyframes barSlideUp{
  from{transform:translateY(100%);opacity:0;}
  to{transform:translateY(0);opacity:1;}
}
.mobile-action-bar-inner{
  display:flex;
  align-items:stretch;
}
.mab-btn{
  flex:1 1 33.33%;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:3px;
  padding:9px 3px 8px;
  font-family:var(--font-body);
  font-size:0.62rem;
  font-weight:700;
  line-height:1.2;
  text-align:center;
  color:var(--ivory);
  border-right:1px solid rgba(255,255,255,0.08);
  transition:background .2s ease, transform .15s ease;
  -webkit-tap-highlight-color:transparent;
}
.mab-btn:last-child{border-right:none;}
.mab-btn:active{transform:scale(0.94);background:rgba(255,255,255,0.06);}
.mab-btn svg{width:20px;height:20px;}
.mab-btn.mab-primary{
  color:var(--navy-deep);
  background:linear-gradient(135deg,var(--gold-light),var(--gold));
}
.mab-btn.mab-primary:active{background:linear-gradient(135deg,var(--gold),var(--gold-light));}

@media(max-width:768px){
  .mobile-action-bar{display:block;}
  body{padding-bottom:64px;} /* prevent content hiding behind bar */
}

/* ============ CONTACT FORM ============ */
.contact-form-wrap{
  max-width:640px;
  margin:0 auto;
  background:var(--ivory);
  border-radius:var(--radius);
  padding:36px 28px;
  box-shadow:0 20px 50px rgba(19,44,69,0.08);
  border:1px solid rgba(19,44,69,0.06);
}
.form-row{margin-bottom:18px;}
.form-row label{
  display:block;font-size:0.82rem;font-weight:700;
  color:var(--navy);margin-bottom:7px;
}
.form-row input,
.form-row select,
.form-row textarea{
  width:100%;
  padding:13px 14px;
  border-radius:10px;
  border:1.5px solid rgba(19,44,69,0.15);
  font-family:var(--font-body);
  font-size:0.95rem;
  color:var(--ink);
  background:var(--cream);
  transition:border-color .2s ease, box-shadow .2s ease;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus{
  outline:none;
  border-color:var(--gold);
  box-shadow:0 0 0 3px rgba(201,162,75,0.15);
}
.form-row textarea{resize:vertical;min-height:100px;}
.form-row .field-error{
  display:none;
  color:#C0392B;font-size:0.78rem;margin-top:5px;font-weight:600;
}
.form-row.invalid input,
.form-row.invalid select,
.form-row.invalid textarea{border-color:#C0392B;}
.form-row.invalid .field-error{display:block;}

#contact-submit-btn{
  width:100%;justify-content:center;
  border:none;font-family:var(--font-body);
}
.form-msg{
  display:none;
  margin-top:16px;
  padding:14px 16px;
  border-radius:10px;
  font-size:0.9rem;font-weight:600;
  text-align:center;
}
.form-msg.show{display:block;}
.form-msg.success{background:#E4F6EC;color:#1B7A43;}
.form-msg.error{background:#FBEAEA;color:#C0392B;}
