/* ===== NW DERM — GLOBAL DESIGN SYSTEM ===== */
:root {
  --teal: #3E636D; --teal-light: #4d7a85; --teal-dark: #2c4a52;
  --green: #94D44D; --green-dark: #669E3C;
  --cream: #EFEDE8; --tan: #DEDACF; --rose: #C9B2A4; --white: #FFF;
  --gray-50: #F8F7F5; --gray-100: #EEECEA; --gray-400: #9A9890;
  --gray-600: #5A5850; --gray-800: #2A2926;
  --glass: rgba(255,255,255,0.55); --glass-border: rgba(255,255,255,0.35);
  --glass-strong: rgba(255,255,255,0.72); --glass-teal: rgba(62,99,109,0.08);
  --shadow-soft: 0 8px 32px rgba(62,99,109,0.08);
  --shadow-med: 0 16px 48px rgba(62,99,109,0.12);
  --shadow-lg: 0 24px 64px rgba(62,99,109,0.16);
  --radius-sm: 12px; --radius-md: 20px; --radius-lg: 28px; --radius-xl: 40px;
  --ease: cubic-bezier(0.16,1,0.3,1);
  --ease-bounce: cubic-bezier(0.34,1.56,0.64,1);
}

*,*::before,*::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; -webkit-font-smoothing:antialiased; }
body {
  font-family:"DM Sans",sans-serif; font-size:18px;
  color:var(--gray-800); background:var(--cream); line-height:1.7; overflow-x:hidden;
}
a { color:inherit; text-decoration:none; }
img { max-width:100%; height:auto; display:block; }

/* BLOBS */
.bg-blobs { position:fixed; inset:0; z-index:-1; overflow:hidden; pointer-events:none; }
.bg-blobs .blob { position:absolute; border-radius:50%; filter:blur(80px); opacity:.4; animation:blobFloat 20s infinite ease-in-out; }
.bg-blobs .blob:nth-child(1) { width:600px; height:600px; background:var(--tan); top:-10%; left:-5%; }
.bg-blobs .blob:nth-child(2) { width:500px; height:500px; background:rgba(62,99,109,.12); top:40%; right:-8%; animation-delay:-7s; animation-duration:25s; }
.bg-blobs .blob:nth-child(3) { width:400px; height:400px; background:var(--rose); bottom:-5%; left:30%; animation-delay:-14s; opacity:.25; animation-duration:22s; }
@keyframes blobFloat {
  0%,100% { transform:translate(0,0) scale(1); }
  25% { transform:translate(40px,-30px) scale(1.05); }
  50% { transform:translate(-20px,40px) scale(.95); }
  75% { transform:translate(30px,20px) scale(1.02); }
}

/* REVEAL */
.r { opacity:0; transform:translateY(50px); transition:opacity 1s var(--ease),transform 1s var(--ease); }
.r.left { transform:translateX(-60px) translateY(0); }
.r.right { transform:translateX(60px) translateY(0); }
.r.scale { transform:scale(.9); }
.r.up { transform:translateY(50px); }
.r.v { opacity:1; transform:none; }
.stagger>.r:nth-child(1) { transition-delay:0s; }
.stagger>.r:nth-child(2) { transition-delay:.1s; }
.stagger>.r:nth-child(3) { transition-delay:.2s; }
.stagger>.r:nth-child(4) { transition-delay:.3s; }
.stagger>.r:nth-child(5) { transition-delay:.4s; }
.stagger>.r:nth-child(6) { transition-delay:.5s; }
.stagger>.r:nth-child(7) { transition-delay:.6s; }
.stagger>.r:nth-child(8) { transition-delay:.7s; }
.stagger>.r:nth-child(9) { transition-delay:.8s; }
.stagger>.r:nth-child(10) { transition-delay:.9s; }

/* GLASS */
.glass { background:var(--glass); backdrop-filter:blur(20px); -webkit-backdrop-filter:blur(20px); border:1px solid var(--glass-border); }
.glass-strong { background:var(--glass-strong); backdrop-filter:blur(24px); -webkit-backdrop-filter:blur(24px); border:1px solid rgba(255,255,255,.5); }

/* LAYOUT */
.wrap { max-width:1340px; margin:0 auto; padding:0 28px; }
section { padding:110px 0; position:relative; }

/* ===== HEADER ===== */
header {
  position:fixed; top:16px; left:50%; transform:translateX(-50%);
  z-index:1000; width:calc(100% - 40px); max-width:1340px;
  border-radius:var(--radius-lg); padding:12px 28px;
  transition:all .5s var(--ease);
  background:var(--glass-strong); backdrop-filter:blur(24px); -webkit-backdrop-filter:blur(24px);
  border:1px solid rgba(255,255,255,.5); box-shadow:var(--shadow-soft);
  display:flex; align-items:center; justify-content:space-between;
  animation:headerDrop .8s .2s var(--ease) both;
}
@keyframes headerDrop {
  from { opacity:0; transform:translateX(-50%) translateY(-20px); }
  to { opacity:1; transform:translateX(-50%) translateY(0); }
}
header.compact { top:8px; padding:8px 24px; box-shadow:var(--shadow-med); border-radius:var(--radius-md); }
header .logo img { height:48px; transition:height .4s var(--ease); }
header.compact .logo img { height:36px; }
nav { display:flex; align-items:center; gap:4px; }
nav a { padding:10px 16px; font-size:15px; font-weight:500; color:var(--gray-600); border-radius:var(--radius-sm); transition:all .3s var(--ease); }
nav a:hover { color:var(--teal); background:var(--glass-teal); }
nav a.active { color:var(--teal); font-weight:600; }
nav .dropdown { position:relative; }
nav .dropdown::after {
  content:''; position:absolute; top:100%; left:0; right:0; height:16px;
}
nav .dropdown-menu {
  position:absolute; top:calc(100% + 10px); left:50%; transform:translateX(-50%) translateY(6px);
  background:var(--glass-strong); backdrop-filter:blur(24px);
  border:1px solid var(--glass-border); border-radius:var(--radius-md);
  min-width:260px; padding:8px; box-shadow:var(--shadow-med);
  opacity:0; visibility:hidden; pointer-events:none; transition:all .35s var(--ease);
}
nav .dropdown:hover .dropdown-menu { opacity:1; visibility:visible; pointer-events:auto; transform:translateX(-50%) translateY(0); }
nav .dropdown-menu a { display:block; padding:10px 16px; font-size:15px; border-radius:var(--radius-sm); font-weight:400; color:var(--gray-600); }
nav .dropdown-menu a:hover { background:rgba(62,99,109,.06); color:var(--teal); }
.header-actions { display:flex; gap:8px; align-items:center; }
.header-actions .btn-glass { font-size:13px; padding:8px 16px; }
.header-actions .btn-green { font-size:13px; padding:8px 18px; }
.hamburger { display:none; background:none; border:none; font-size:22px; cursor:pointer; color:var(--teal); padding:8px; border-radius:var(--radius-sm); transition:background .3s; }
.hamburger:hover { background:var(--glass-teal); }

/* Mobile nav open state */
nav.show {
  display:flex !important; flex-direction:column; align-items:stretch;
  position:absolute; top:calc(100% + 12px); left:16px; right:16px;
  background:var(--glass-strong); backdrop-filter:blur(24px); -webkit-backdrop-filter:blur(24px);
  border:1px solid var(--glass-border); border-radius:var(--radius-md);
  padding:12px; box-shadow:var(--shadow-lg);
  animation:navSlideDown .4s var(--ease);
  z-index:100;
}
@keyframes navSlideDown {
  from { opacity:0; transform:translateY(-10px); }
  to { opacity:1; transform:translateY(0); }
}
nav.show a { padding:12px 16px; font-size:17px; border-radius:var(--radius-sm); }
nav.show a:hover { background:var(--glass-teal); }
nav.show .dropdown-menu {
  position:static; transform:none; opacity:1; visibility:visible; pointer-events:auto;
  box-shadow:none; border:none; background:transparent; backdrop-filter:none;
  padding:0 0 0 16px; min-width:0;
}
nav.show .dropdown-menu a { font-size:16px; padding:10px 16px; color:var(--gray-400); }
nav.show .dropdown::after { display:none; }

/* ===== BUTTONS ===== */
.btn {
  display:inline-flex; align-items:center; gap:8px;
  padding:12px 26px; border-radius:var(--radius-sm);
  font-family:"DM Sans",sans-serif; font-size:16px; font-weight:600;
  border:none; cursor:pointer; transition:all .4s var(--ease);
  text-decoration:none; position:relative; overflow:hidden;
}
.btn-green { background:var(--green); color:#fff; box-shadow:0 4px 16px rgba(148,212,77,.25); }
.btn-green:hover { background:var(--green-dark); transform:translateY(-2px); box-shadow:0 8px 24px rgba(148,212,77,.35); }
.btn-teal { background:var(--teal); color:#fff; box-shadow:0 4px 16px rgba(62,99,109,.2); }
.btn-teal:hover { background:var(--teal-light); transform:translateY(-2px); box-shadow:0 8px 24px rgba(62,99,109,.3); }
.btn-glass { background:var(--glass); backdrop-filter:blur(12px); border:1px solid var(--glass-border); color:var(--teal); }
.btn-glass:hover { background:rgba(255,255,255,.8); transform:translateY(-2px); box-shadow:var(--shadow-soft); }
.btn-outline { background:transparent; border:2px solid rgba(255,255,255,.4); color:#fff; }
.btn-outline:hover { background:rgba(255,255,255,.15); transform:translateY(-2px); }
.btn-lg { padding:16px 36px; font-size:18px; border-radius:var(--radius-md); }
.btn i { font-size:15px; }

/* ===== SECTION SHARED ===== */
.section-header { text-align:center; margin-bottom:64px; }
.section-tag {
  display:inline-flex; align-items:center; gap:6px;
  font-size:14px; font-weight:700; letter-spacing:.1em;
  text-transform:uppercase; color:var(--teal); margin-bottom:16px;
}
.section-tag::before, .section-tag::after { content:''; width:24px; height:1px; background:var(--teal); opacity:.3; }
.section-title {
  font-family:"DM Serif Display",serif; font-size:clamp(36px,4.5vw,58px);
  color:var(--teal-dark); line-height:1.15; margin-bottom:18px;
}
.section-sub { font-size:20px; color:var(--gray-400); max-width:580px; margin:0 auto; line-height:1.7; }

/* ===== PAGE HERO (inner pages) ===== */
.page-hero {
  padding:180px 0 80px; text-align:center; position:relative;
  background:linear-gradient(180deg, var(--cream) 0%, rgba(62,99,109,.06) 100%);
}
.page-hero .section-tag { margin-bottom:12px; }
.page-hero h1 {
  font-family:"DM Serif Display",serif; font-size:clamp(40px,5vw,66px);
  color:var(--teal-dark); line-height:1.1; margin-bottom:20px;
}
.page-hero p {
  font-size:20px; color:var(--gray-600); max-width:680px; margin:0 auto; line-height:1.75;
}

/* ===== CONTENT PROSE ===== */
.prose { max-width:800px; }
.prose h2 {
  font-family:"DM Serif Display",serif; font-size:clamp(26px,3vw,38px);
  color:var(--teal-dark); line-height:1.2; margin:48px 0 16px;
}
.prose h2:first-child { margin-top:0; }
.prose h3 {
  font-family:"DM Serif Display",serif; font-size:22px;
  color:var(--teal); margin:32px 0 12px;
}
.prose p { font-size:18px; color:var(--gray-600); margin-bottom:16px; line-height:1.8; }
.prose ul, .prose ol { margin:0 0 20px 24px; color:var(--gray-600); font-size:18px; line-height:1.8; }
.prose li { margin-bottom:8px; }
.prose strong { color:var(--gray-800); }
.prose em { font-style:italic; }
.prose img { border-radius:var(--radius-lg); margin:24px 0; box-shadow:var(--shadow-soft); }

/* ===== DOCTOR CARD (about page) ===== */
.doctor-profile {
  display:flex; gap:48px; align-items:flex-start;
  padding:60px 0; border-bottom:1px solid rgba(62,99,109,.08);
}
.doctor-profile:last-child { border-bottom:none; }
.doctor-profile.flip { flex-direction:row-reverse; }
.doctor-profile .dp-img { flex:0 0 280px; }
.doctor-profile .dp-img img {
  width:280px; height:340px; object-fit:cover;
  border-radius:var(--radius-lg); box-shadow:var(--shadow-med);
}
.doctor-profile .dp-text { flex:1; }
.doctor-profile .dp-text h2 {
  font-family:"DM Serif Display",serif; font-size:32px;
  color:var(--teal-dark); margin-bottom:4px;
}
.doctor-profile .dp-text .dp-role {
  font-size:16px; font-weight:600; color:var(--teal); text-transform:uppercase;
  letter-spacing:.06em; margin-bottom:20px;
}
.doctor-profile .dp-text p { font-size:17px; color:var(--gray-600); line-height:1.8; margin-bottom:14px; }
.doctor-profile .dp-text .btn { margin-top:8px; }

/* ===== SERVICES GRID (services index) ===== */
.svc-grid {
  display:grid; grid-template-columns:repeat(3,1fr); gap:28px;
}
.svc-grid-card {
  border-radius:var(--radius-lg); overflow:hidden;
  transition:all .5s var(--ease); position:relative;
}
.svc-grid-card:hover { transform:translateY(-8px); box-shadow:var(--shadow-lg); }
.svc-grid-card .svc-img {
  height:220px; overflow:hidden;
}
.svc-grid-card .svc-img img {
  width:100%; height:100%; object-fit:cover;
  transition:transform .8s var(--ease);
}
.svc-grid-card:hover .svc-img img { transform:scale(1.06); }
.svc-grid-card .svc-body { padding:28px 24px; }
.svc-grid-card .svc-body h3 {
  font-family:"DM Serif Display",serif; font-size:24px;
  color:var(--teal-dark); margin-bottom:10px;
}
.svc-grid-card .svc-body p { font-size:16px; color:var(--gray-400); line-height:1.6; margin-bottom:16px; }
.svc-grid-card .svc-body .svc-link {
  font-size:15px; font-weight:600; color:var(--teal);
  display:inline-flex; align-items:center; gap:6px;
  transition:gap .3s var(--ease);
}
.svc-grid-card:hover .svc-body .svc-link { gap:10px; }

/* ===== SERVICE DETAIL LAYOUT ===== */
.svc-detail-layout { display:flex; gap:48px; }
.svc-detail-main { flex:1; }
.svc-detail-sidebar { flex:0 0 300px; position:sticky; top:100px; align-self:flex-start; }
.sidebar-card { border-radius:var(--radius-lg); padding:32px 24px; margin-bottom:24px; }
.sidebar-card h4 {
  font-family:"DM Serif Display",serif; font-size:20px;
  color:var(--teal-dark); margin-bottom:16px;
}
.sidebar-card ul { list-style:none; }
.sidebar-card ul li { margin-bottom:10px; }
.sidebar-card ul li a {
  font-size:16px; color:var(--gray-600); font-weight:500;
  display:flex; align-items:center; gap:8px; padding:8px 12px;
  border-radius:var(--radius-sm); transition:all .3s var(--ease);
}
.sidebar-card ul li a:hover { background:var(--glass-teal); color:var(--teal); }
.sidebar-card ul li a.current { background:rgba(62,99,109,.08); color:var(--teal); font-weight:600; }

/* ===== CTA BANNER ===== */
.cta-banner {
  border-radius:var(--radius-xl); padding:64px; text-align:center;
  background:var(--teal); position:relative; overflow:hidden;
  box-shadow:var(--shadow-lg);
}
.cta-banner::before {
  content:''; position:absolute; inset:0;
  background:radial-gradient(ellipse at 30% 50%,rgba(255,255,255,.06),transparent 60%);
}
.cta-banner h2 {
  font-family:"DM Serif Display",serif; font-size:clamp(28px,3vw,42px);
  color:#fff; margin-bottom:16px; position:relative;
}
.cta-banner p { font-size:19px; color:rgba(255,255,255,.7); margin-bottom:28px; max-width:500px; margin-left:auto; margin-right:auto; position:relative; }

/* ===== FOOTER ===== */
footer {
  background:var(--teal-dark); color:#fff; padding:72px 0 32px;
  position:relative; overflow:hidden;
}
footer::before {
  content:''; position:absolute; top:-120px; right:-80px;
  width:400px; height:400px; border-radius:50%; background:rgba(255,255,255,.02);
}
.footer-top { display:flex; gap:48px; flex-wrap:wrap; margin-bottom:48px; }
.footer-brand { flex:1.5; min-width:260px; }
.footer-brand img { height:44px; margin-bottom:16px; }
.footer-brand p { font-size:16px; color:rgba(255,255,255,.55); line-height:1.8; margin-bottom:16px; }
.footer-social { display:flex; gap:10px; }
.footer-social a { width:42px; height:42px; border-radius:50%; background:rgba(255,255,255,.08); display:flex; align-items:center; justify-content:center; transition:all .4s var(--ease); font-size:16px; }
.footer-social a:hover { background:rgba(255,255,255,.18); transform:translateY(-3px); }
.foot-col { flex:1; min-width:160px; }
.foot-col h5 { font-size:14px; font-weight:700; text-transform:uppercase; letter-spacing:.08em; margin-bottom:16px; color:rgba(255,255,255,.5); }
.foot-col ul { list-style:none; }
.foot-col ul li { margin-bottom:10px; }
.foot-col ul li a { font-size:16px; color:rgba(255,255,255,.6); font-weight:400; transition:color .3s,padding-left .3s; }
.foot-col ul li a:hover { color:#fff; padding-left:4px; }
.foot-col .phone-link { display:flex; align-items:center; gap:8px; font-size:16px; color:rgba(255,255,255,.75); margin-bottom:10px; }
.foot-col .phone-link i { color:var(--green); font-size:14px; }
.footer-bar { border-top:1px solid rgba(255,255,255,.08); padding-top:24px; display:flex; justify-content:space-between; font-size:14px; color:rgba(255,255,255,.35); }
.footer-bar a { color:rgba(255,255,255,.35); transition:color .3s; }
.footer-bar a:hover { color:#fff; }

/* FLOAT CTA + BACK TO TOP */
.float-cta { position:fixed; bottom:24px; right:24px; z-index:999; animation:floatCard .6s 1.5s var(--ease-bounce) both; }
@keyframes floatCard { from { opacity:0; transform:translateY(30px) scale(.9); } to { opacity:1; transform:translateY(0) scale(1); } }
.float-cta a { display:flex; align-items:center; gap:10px; padding:16px 30px; border-radius:50px; background:var(--green); color:#fff; font-weight:600; font-size:16px; box-shadow:0 8px 30px rgba(148,212,77,.35); transition:all .4s var(--ease); }
.float-cta a:hover { background:var(--green-dark); transform:translateY(-3px); box-shadow:0 12px 40px rgba(148,212,77,.45); }
.back-to-top { position:fixed; bottom:24px; left:24px; z-index:999; opacity:0; transform:translateY(20px); pointer-events:none; transition:all .5s var(--ease); }
.back-to-top.show { opacity:1; transform:translateY(0); pointer-events:auto; }
.back-to-top a { width:52px; height:52px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:18px; color:var(--teal); box-shadow:var(--shadow-med); transition:all .4s var(--ease); }
.back-to-top a:hover { transform:translateY(-3px); box-shadow:var(--shadow-lg); background:rgba(255,255,255,.9); }

/* ===== RESPONSIVE ===== */

/* Tablet landscape */
@media(max-width:1024px) {
  header { width:calc(100% - 24px); top:8px; }
  nav { display:none; }
  .hamburger { display:block; }
  .header-actions .btn-glass { display:none; }
  .header-actions .btn-green { display:none; }
  .svc-grid { grid-template-columns:repeat(2,1fr); }
  .doctor-profile, .doctor-profile.flip { flex-direction:column; align-items:center; text-align:center; }
  .doctor-profile .dp-img { flex:none; }
  .svc-detail-layout { flex-direction:column; }
  .svc-detail-sidebar { flex:none; position:static; }
}

/* Tablet portrait */
@media(max-width:768px) {
  section { padding:80px 0; }
  .section-title { font-size:clamp(30px,5vw,42px); }
  .section-sub { font-size:18px; }
  .page-hero { padding:150px 0 60px; }
  .page-hero h1 { font-size:clamp(32px,6vw,48px); }
  .page-hero p { font-size:18px; }
  .doctor-profile .dp-img img { width:220px; height:280px; }
  .svc-grid { grid-template-columns:repeat(2,1fr); gap:16px; }
}

/* Mobile */
@media(max-width:640px) {
  section { padding:64px 0; }
  .svc-grid { grid-template-columns:1fr; }
  .footer-top { flex-direction:column; }
  .footer-bar { flex-direction:column; gap:8px; text-align:center; }
  header { padding:10px 16px; }
  .header-actions { gap:6px; }
  .header-actions .btn { padding:10px 16px; font-size:14px; }
  .page-hero { padding:140px 0 48px; }
  .cta-banner { padding:40px 24px; }
  .cta-banner h2 { font-size:clamp(24px,5vw,32px); }
  .doctor-profile .dp-img img { width:180px; height:240px; }
  .commit-grid { grid-template-columns:1fr; }
  .doctors-grid { grid-template-columns:1fr; }
}
