/*
Theme Name: Dr Sachin Gupta Dermatology
Theme URI: https://drsachinguptadermatologist.com
Author: Dr. Sachin Gupta
Description: Custom theme for Dr. Sachin Gupta, Dermatologist.
Version: 1.0
*/

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&display=swap');

:root{
  --green-dark:  #0E6B43;
  --green-light: #7DBF43;
  --red:         #E53935;
  --ink:         #212121;
  --muted:       #757575;
  --bg:          #FFFFFF;
  --bg-soft:     #F4F8F5;
  --line:        #E3E8E5;
  --radius: 4px;
  --max: 1120px;
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0; background:var(--bg); color:var(--ink);
  font-family:'Montserrat', sans-serif; font-weight:400;
  font-size:16px; line-height:1.65; -webkit-font-smoothing:antialiased;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
h1,h2,h3{ font-family:'Montserrat', sans-serif; font-weight:700; margin:0 0 0.5em; color:var(--green-dark); }
p{ margin:0 0 1em; color:var(--ink); }
.container{ max-width:var(--max); margin:0 auto; padding:0 24px; }

.eyebrow{
  font-weight:600; font-size:0.78rem; letter-spacing:0.1em; text-transform:uppercase;
  color:var(--red); display:inline-flex; align-items:center; gap:8px; margin-bottom:14px;
}
.eyebrow::before{ content:""; width:16px; height:2px; background:var(--red); display:inline-block; }

/* Top bar */
.topbar{ background:var(--green-dark); color:#fff; font-size:0.85rem; }
.topbar .container{ display:flex; justify-content:flex-end; gap:24px; padding:8px 24px; }
.topbar a{ color:#fff; }

/* Header */
header{
  position:sticky; top:0; z-index:100; background:rgba(255,255,255,0.96);
  backdrop-filter:blur(8px); border-bottom:1px solid var(--line);
}
.nav-wrap{ display:flex; align-items:center; justify-content:space-between; padding:14px 24px; max-width:var(--max); margin:0 auto; }

/* Text-based logo */
.logo{ display:flex; align-items:center; gap:10px; }
.logo-mark{
  width:40px; height:40px; border-radius:50%; background:var(--green-dark);
  display:flex; align-items:center; justify-content:center;
  color:#fff; font-weight:800; font-size:1.1rem; flex-shrink:0;
}
.logo-text{ line-height:1.15; }
.logo-text strong{ display:block; font-size:1.05rem; font-weight:800; color:var(--green-dark); }
.logo-text span{ display:block; font-size:0.72rem; font-weight:600; color:var(--red); letter-spacing:0.04em; text-transform:uppercase; }

nav ul{ list-style:none; display:flex; gap:26px; margin:0; padding:0; }
nav a{ font-size:0.92rem; font-weight:600; color:var(--green-dark); position:relative; padding-bottom:4px; }
nav a::after{ content:""; position:absolute; left:0; bottom:0; width:0; height:2px; background:var(--red); transition:width .25s ease; }
nav a:hover::after{ width:100%; }
.nav-cta{ background:var(--red); color:#fff!important; padding:10px 20px; border-radius:var(--radius); font-weight:700; }
.nav-cta::after{ display:none; }
.menu-toggle{ display:none; background:none; border:none; cursor:pointer; }
.menu-toggle span{ display:block; width:24px; height:2px; background:var(--green-dark); margin:5px 0; }

/* Hero */
.hero{ padding:70px 0 60px; }
.hero-grid{ display:grid; grid-template-columns:1.1fr 0.9fr; gap:50px; align-items:center; }
.hero h1{ font-size:2.6rem; line-height:1.15; max-width:14ch; }
.hero .lede{ font-size:1.06rem; color:var(--muted); max-width:46ch; margin-bottom:26px; }
.btn-row{ display:flex; gap:14px; flex-wrap:wrap; }
.btn{ display:inline-block; padding:13px 26px; border-radius:var(--radius); font-weight:700; font-size:0.95rem; border:1px solid transparent; cursor:pointer; }
.btn-primary{ background:var(--red); color:#fff; }
.btn-primary:hover{ background:#C62828; }
.btn-outline{ border-color:var(--green-dark); color:var(--green-dark); }
.btn-outline:hover{ background:var(--green-dark); color:#fff; }

.credentials{ display:flex; flex-wrap:wrap; gap:10px; margin-bottom:20px; }
.credential-pill{
  background:var(--bg-soft); color:var(--green-dark); font-size:0.8rem; font-weight:700;
  padding:6px 14px; border-radius:100px; border:1px solid var(--line);
}

section{ padding:60px 0; }
.section-head{ max-width:60ch; margin-bottom:34px; }
.section-head h2{ font-size:1.9rem; }
.divider{ height:1px; background:var(--line); border:none; margin:0; }

.grid-3{ display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
.grid-2{ display:grid; grid-template-columns:1fr 1fr; gap:24px; }

.card{ background:var(--bg); border:1px solid var(--line); border-radius:var(--radius); padding:28px 26px; }
.card h3{ font-size:1.1rem; margin-bottom:8px; }
.card p{ color:var(--muted); font-size:0.95rem; margin:0; }

.tag{ display:inline-block; font-size:0.72rem; font-weight:700; letter-spacing:.06em; text-transform:uppercase;
  background:var(--bg-soft); color:var(--green-dark); padding:5px 12px; border-radius:100px; margin-bottom:10px; }

.band{ background:var(--green-dark); color:#fff; }
.band h2,.band h3{ color:#fff; }
.band p{ color:#D7EADD; }

.doctor-photo{ width:100%; aspect-ratio:1/1; border-radius:var(--radius); overflow:hidden; background:var(--bg-soft); }
.doctor-photo img{ width:100%; height:100%; object-fit:cover; }

/* Blog list */
.post-card{ background:var(--bg); border:1px solid var(--line); border-radius:var(--radius); padding:24px; margin-bottom:20px; }
.post-card .eyebrow{ margin-bottom:8px; }
.post-card h3{ font-size:1.2rem; margin-bottom:8px; }
.post-card h3 a:hover{ color:var(--red); }
.post-card .excerpt{ color:var(--muted); font-size:0.94rem; }
.read-more{ color:var(--red); font-weight:700; font-size:0.9rem; }

/* Single post */
.single-post{ max-width:760px; margin:0 auto; }
.single-post h1{ font-size:2rem; }
.single-post .post-meta{ color:var(--muted); font-size:0.85rem; margin-bottom:24px; }
.single-post img{ border-radius:var(--radius); margin:20px 0; }
.single-post p{ font-size:1.02rem; }

.testimonial-card{ background:var(--bg-soft); border-radius:var(--radius); padding:26px; }
.testimonial-card p{ font-style:italic; color:var(--ink); }
.testimonial-card .name{ font-style:normal; font-weight:700; color:var(--green-dark); margin-top:10px; }

footer{ background:var(--green-dark); color:#D7EADD; padding:50px 0 26px; margin-top:40px; }
.footer-grid{ display:grid; grid-template-columns:1.4fr 1fr 1fr; gap:40px; margin-bottom:36px; }
footer h4{ color:#fff; font-size:0.95rem; margin-bottom:14px; }
footer a,footer p{ color:#D7EADD; font-size:0.92rem; }
footer ul{ list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:10px; }
.footer-bottom{ border-top:1px solid rgba(255,255,255,0.15); padding-top:20px; display:flex; justify-content:space-between;
  font-size:0.82rem; color:#AFD4BC; flex-wrap:wrap; gap:10px; }

.page-hero{ padding:50px 0 36px; border-bottom:1px solid var(--line); }
.page-hero h1{ font-size:2.1rem; margin-bottom:10px; }
.page-hero p{ color:var(--muted); max-width:56ch; }

@media (max-width:860px){
  .hero-grid{ grid-template-columns:1fr; }
  .hero{ padding:40px 0 30px; }
  .hero h1{ font-size:1.9rem; max-width:none; }
  .grid-3,.grid-2{ grid-template-columns:1fr; }
  .footer-grid{ grid-template-columns:1fr; gap:26px; }
  .topbar .container{ justify-content:center; }
  nav ul{ position:absolute; top:100%; left:0; right:0; background:#fff; flex-direction:column;
    padding:20px 24px; gap:0; border-bottom:1px solid var(--line); display:none; }
  nav ul.open{ display:flex; }
  nav li{ padding:12px 0; border-bottom:1px solid var(--line); }
  .menu-toggle{ display:block; }
}
