/* ===== Design tokens ===== */
:root {
  --background: #ffffff;
  --foreground: #0b1b2b;
  --muted: #f1f5f9;
  --muted-foreground: #5b6b7a;
  --card: #ffffff;
  --card-foreground: #0b1b2b;
  --border: #e6ecf2;
  --primary: #0a84c2;
  --primary-glow: #2bb8e6;
  --primary-foreground: #ffffff;
  --secondary: #e8f4fb;
  --accent: #d6efff;
  --accent-foreground: #0a84c2;
  --success: #16a34a;
  --whatsapp: #25d366;
  --amber: #f59e0b;

  --radius: 14px;
  --shadow-soft: 0 6px 18px rgba(10, 132, 194, 0.08);
  --shadow-card: 0 8px 24px rgba(11, 27, 43, 0.06);
  --shadow-elegant: 0 24px 60px -20px rgba(10, 132, 194, 0.35);

  --gradient-primary: linear-gradient(135deg, var(--primary), var(--primary-glow));
  --gradient-soft: linear-gradient(180deg, #f7fbfe, #ffffff);
  --gradient-hero: radial-gradient(1200px 600px at 80% -10%, #d6efff 0%, transparent 60%),
                   linear-gradient(180deg, #f4faff 0%, #ffffff 80%);
}

/* ===== Base ===== */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--foreground);
  background: var(--background);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: 'Plus Jakarta Sans', 'Inter', sans-serif; color: var(--foreground); margin: 0; line-height: 1.15; }
p { margin: 0; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .container { padding: 0 24px; } }
@media (min-width: 1024px) { .container { padding: 0 32px; } }

.section { padding: 64px 0; }
@media (min-width: 1024px) { .section { padding: 80px 0; } }

.bg-soft { background: var(--gradient-soft); }
.text-center { text-align: center; }
.muted { color: var(--muted-foreground); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: 12px; font-weight: 600; font-size: 14px;
  border: 1px solid transparent; cursor: pointer; transition: all .2s ease;
  background: var(--card); color: var(--foreground);
}
.btn:hover { transform: translateY(-1px); }
.btn-lg { padding: 14px 22px; font-size: 15px; border-radius: 14px; }
.btn-primary { background: var(--gradient-primary); color: #fff; box-shadow: var(--shadow-elegant); }
.btn-primary:hover { opacity: .95; }
.btn-outline { background: transparent; border-color: var(--border); }
.btn-outline:hover { background: var(--secondary); }
.btn-block { width: 100%; }

/* Pill */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--secondary); color: var(--primary);
  padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 600;
}
.pill-glass {
  background: rgba(255,255,255,0.7); backdrop-filter: blur(8px);
  border: 1px solid var(--border); box-shadow: var(--shadow-soft);
}

/* ===== Header ===== */
.header {
  position: sticky; top: 0; z-index: 50; width: 100%;
  background: rgba(255,255,255,0.7); backdrop-filter: blur(12px);
  transition: background .2s ease, box-shadow .2s ease, border-color .2s ease;
  border-bottom: 1px solid transparent;
}
.header.scrolled { background: rgba(255,255,255,0.92); border-bottom-color: var(--border); box-shadow: var(--shadow-soft); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark {
  height: 40px; width: 40px; border-radius: 12px;
  background: var(--gradient-primary); color: #fff;
  display: grid; place-items: center; box-shadow: var(--shadow-soft);
}
.logo-name { font-weight: 700; font-size: 15px; }
.logo-sub { font-size: 11px; color: var(--muted-foreground); }
.nav { display: none; gap: 4px; align-items: center; }
.nav a { padding: 8px 12px; font-size: 14px; font-weight: 500; color: var(--muted-foreground); border-radius: 8px; }
.nav a:hover, .nav a.active { color: var(--primary); background: var(--secondary); font-weight: 600; }
.header-cta { display: none; gap: 8px; align-items: center; }
.menu-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 8px; border: none; background: transparent; cursor: pointer; }
@media (min-width: 768px) { .nav, .header-cta { display: flex; } .menu-btn { display: none; } }
.mobile-menu { display: none; padding: 8px 0 16px; }
.mobile-menu.open { display: block; }
.mobile-menu nav { display: flex; flex-direction: column; gap: 4px; }
.mobile-menu nav a { padding: 10px 12px; border-radius: 8px; font-weight: 500; color: var(--foreground); }
.mobile-menu nav a:hover { background: var(--secondary); }
.mobile-cta { display: flex; gap: 8px; margin-top: 12px; }
.mobile-cta .btn { flex: 1; }

/* ===== Hero ===== */
.hero { position: relative; overflow: hidden; background: var(--gradient-hero); padding: 64px 0; }
@media (min-width: 1024px) { .hero { padding: 96px 0; } }
.hero-blob-a, .hero-blob-b { position: absolute; width: 384px; height: 384px; border-radius: 999px; filter: blur(60px); pointer-events: none; }
.hero-blob-a { top: -96px; right: -96px; background: rgba(10,132,194,0.12); }
.hero-blob-b { bottom: -96px; left: -96px; background: rgba(214,239,255,0.6); }
.hero-inner { position: relative; max-width: 880px; margin: 0 auto; text-align: center; }
.hero h1 { font-size: clamp(34px, 5vw, 60px); font-weight: 800; margin-top: 20px; }
.hero h1 .grad {
  background: var(--gradient-primary);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hero-lead { margin-top: 18px; font-size: 18px; color: var(--muted-foreground); max-width: 640px; margin-left: auto; margin-right: auto; }
.hero-actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.hero-meta { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; align-items: center; font-size: 14px; }
.stars { display: inline-flex; gap: 2px; color: var(--amber); }
.success { color: var(--success); display: inline-flex; align-items: center; gap: 6px; font-weight: 500; }

/* ===== About Doctor ===== */
.about-grid { display: grid; gap: 48px; align-items: center; }
@media (max-width: 768px) {
  .about-photo {
    margin: 0 auto;
    max-width: 260px;
  }
}
.about-photo-wrap {
  position: relative;   /* add this */
  display: flex;
  justify-content: center;
}
.about-photo img {
  width: 100%;
  height: auto;     /* prevents zoom/crop */
  object-fit: contain; /* shows full image */
}

.about-photo {
  width: 100%;
  max-width: 340px;   /* slightly smaller */
  height: auto;       /* IMPORTANT */
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-elegant);
}
.about-badge {
  position: absolute; bottom: -24px; right: 8px;
  background: var(--card); border: 1px solid var(--border); border-radius: 18px;
  padding: 14px; box-shadow: var(--shadow-elegant);
  display: flex; align-items: center; gap: 12px;
}
.about-badge .ico { height: 48px; width: 48px; border-radius: 14px; background: var(--gradient-primary); color: #fff; display: grid; place-items: center; }
.stat-grid { margin-top: 24px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.stat { border: 1px solid var(--border); background: var(--card); border-radius: 18px; padding: 16px; box-shadow: var(--shadow-card); }
.stat .ico { height: 36px; width: 36px; border-radius: 10px; background: var(--secondary); color: var(--primary); display: grid; place-items: center; }
.stat .v { margin-top: 8px; font-size: 22px; font-weight: 700; }
.stat .l { font-size: 11px; color: var(--muted-foreground); }

/* ===== Section heading ===== */
.section-head { text-align: center; max-width: 640px; margin: 0 auto; }
.section-head h2 { margin-top: 12px; font-size: clamp(26px, 3.5vw, 36px); font-weight: 800; }
.section-head p { margin-top: 12px; color: var(--muted-foreground); }

/* ===== Qualifications ===== */
.qual-grid { margin-top: 48px; display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .qual-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .qual-grid { grid-template-columns: repeat(3, 1fr); } }
.qual-card { border: 1px solid var(--border); border-radius: 20px; background: var(--card); overflow: hidden; box-shadow: var(--shadow-card); transition: transform .2s, box-shadow .2s; }
.qual-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-elegant); }
.qual-img { aspect-ratio: 4/3; overflow: hidden; background: var(--gradient-soft); }
.qual-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.qual-card:hover .qual-img img { transform: scale(1.05); }
.qual-body { padding: 20px; }
.qual-head { display: flex; align-items: center; gap: 8px; }
.qual-head .ico { height: 32px; width: 32px; border-radius: 10px; background: var(--gradient-primary); color: #fff; display: grid; place-items: center; }
.qual-title { font-weight: 700; font-family: 'Plus Jakarta Sans', sans-serif; }
.qual-sub { margin-top: 8px; font-size: 14px; font-weight: 500; }
.qual-detail { margin-top: 4px; font-size: 12px; color: var(--muted-foreground); }

/* ===== Services Grid ===== */
.services-grid { margin-top: 48px; display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1280px) { .services-grid { grid-template-columns: repeat(4, 1fr); } }
.service-card { border: 1px solid var(--border); background: var(--card); border-radius: 18px; padding: 20px; box-shadow: var(--shadow-card); transition: transform .2s, box-shadow .2s; }
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-elegant); }
.service-card .ico { height: 44px; width: 44px; border-radius: 14px; background: var(--gradient-primary); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow-soft); }
.service-card h3 { margin-top: 16px; font-size: 16px; font-weight: 700; }
.service-card p { margin-top: 6px; font-size: 14px; color: var(--muted-foreground); }

/* ===== Gallery ===== */
.gallery-grid { margin-top: 48px; display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
.gallery-item { position: relative; border: 1px solid var(--border); background: var(--card); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-soft); transition: box-shadow .2s; }
.gallery-item:hover { box-shadow: var(--shadow-elegant); }
.gallery-item .img-wrap { aspect-ratio: 4/3; overflow: hidden; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 16px; color: #fff;
  background: linear-gradient(to top, rgba(11,27,43,0.85), rgba(11,27,43,0.4), transparent);
}
.gallery-cap .t { font-weight: 600; }
.gallery-cap .s { font-size: 12px; opacity: 0.9; }

/* ===== Why choose us ===== */
.why-grid { margin-top: 40px; display: grid; gap: 16px; grid-template-columns: 1fr; max-width: 980px; margin-left: auto; margin-right: auto; }
@media (min-width: 640px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .why-grid { grid-template-columns: repeat(3, 1fr); } }
.why-card { display: flex; gap: 12px; border: 1px solid var(--border); background: var(--card); border-radius: 14px; padding: 16px; box-shadow: var(--shadow-card); }
.why-card .ico { height: 40px; width: 40px; flex-shrink: 0; border-radius: 10px; background: var(--accent); color: var(--accent-foreground); display: grid; place-items: center; }
.why-card .t { font-weight: 600; font-size: 14px; }
.why-card .d { font-size: 12px; color: var(--muted-foreground); margin-top: 2px; }

/* ===== Reviews ===== */
.reviews-grid { margin-top: 48px; display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .reviews-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .reviews-grid { grid-template-columns: repeat(4, 1fr); } }
.review-card { border: 1px solid var(--border); background: var(--card); border-radius: 18px; padding: 24px; box-shadow: var(--shadow-card); transition: box-shadow .2s; }
.review-card:hover { box-shadow: var(--shadow-elegant); }
.review-quote { color: rgba(10,132,194,0.4); }
.review-text { margin-top: 12px; font-size: 14px; line-height: 1.6; }
.review-foot { margin-top: 18px; display: flex; justify-content: space-between; align-items: center; }
.review-name { font-size: 14px; font-weight: 600; }
.rating-pill { display: inline-flex; align-items: center; gap: 8px; background: var(--card); border: 1px solid var(--border); padding: 8px 14px; border-radius: 999px; box-shadow: var(--shadow-card); margin-top: 16px; }

/* ===== Appointment form ===== */
.book-grid { display: grid; gap: 32px; align-items: stretch; }
@media (min-width: 1024px) { .book-grid { grid-template-columns: 2fr 3fr; } }
.book-side h2 { margin-top: 12px; font-size: clamp(26px, 3.5vw, 34px); font-weight: 800; }
.book-side p { margin-top: 12px; color: var(--muted-foreground); }
.contact-card { display: flex; gap: 12px; align-items: center; padding: 16px; border: 1px solid var(--border); background: var(--card); border-radius: 14px; box-shadow: var(--shadow-card); transition: box-shadow .2s; margin-top: 12px; }
.contact-card:hover { box-shadow: var(--shadow-elegant); }
.contact-card .ico { height: 40px; width: 40px; border-radius: 10px; display: grid; place-items: center; color: #fff; }
.contact-card .ico.primary { background: var(--gradient-primary); }
.contact-card .ico.wa { background: var(--whatsapp); }
.contact-card .t { font-size: 14px; font-weight: 600; }
.contact-card .s { font-size: 12px; color: var(--muted-foreground); }

.form-card { border: 1px solid var(--border); background: var(--card); border-radius: 24px; padding: 24px; box-shadow: var(--shadow-elegant); }
@media (min-width: 640px) { .form-card { padding: 32px; } }
.form-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .form-grid { grid-template-columns: repeat(2, 1fr); } }
.field-full { grid-column: 1 / -1; }
.field label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px;
  font-size: 14px; font-family: inherit; background: var(--background); color: var(--foreground);
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(10,132,194,0.15); }
.field textarea { resize: vertical; min-height: 100px; }
.form-foot { margin-top: 12px; font-size: 12px; color: var(--muted-foreground); text-align: center; }

/* ===== Location ===== */
.loc-grid { margin-top: 48px; display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 1024px) { .loc-grid { grid-template-columns: 2fr 1fr; } }
.loc-map { border-radius: 24px; overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-elegant); }
.loc-map iframe { width: 100%; height: 420px; border: 0; display: block; }
.loc-card { border: 1px solid var(--border); background: var(--card); border-radius: 24px; padding: 24px; box-shadow: var(--shadow-card); display: flex; flex-direction: column; }
.loc-card h3 { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; font-size: 20px; }
.loc-row { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; }
.loc-row svg { color: var(--primary); flex-shrink: 0; margin-top: 2px; }
.loc-card .rows { margin-top: 16px; display: flex; flex-direction: column; gap: 16px; }
.loc-card .cta { margin-top: auto; padding-top: 24px; }

/* ===== Footer ===== */
.footer { margin-top: 48px; border-top: 1px solid var(--border); background: var(--gradient-soft); }
.footer-inner { padding: 56px 0; display: grid; gap: 40px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .footer-inner { grid-template-columns: repeat(4, 1fr); } }
.footer h4 { font-size: 14px; font-weight: 600; }
.footer ul { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.footer a { color: var(--muted-foreground); }
.footer a:hover { color: var(--primary); }
.footer .row { display: flex; gap: 8px; align-items: flex-start; color: var(--muted-foreground); }
.footer .row svg { color: var(--primary); flex-shrink: 0; margin-top: 2px; }
.socials { margin-top: 20px; display: flex; gap: 10px; }
.socials a { height: 36px; width: 36px; border-radius: 999px; background: var(--secondary); color: var(--primary); display: grid; place-items: center; transition: all .2s; }
.socials a:hover { background: var(--primary); color: #fff; }
.copyright { margin-top: 32px; padding: 24px 0 0; border-top: 1px solid var(--border); text-align: center; font-size: 12px; color: var(--muted-foreground); }

/* ===== Floating actions ===== */
.fab { position: fixed; right: 20px; bottom: 20px; z-index: 40; display: flex; flex-direction: column; gap: 12px; }
.fab a { height: 56px; width: 56px; border-radius: 999px; display: grid; place-items: center; color: #fff; box-shadow: var(--shadow-elegant); }
.fab .wa { background: var(--whatsapp); animation: float 3s ease-in-out infinite; }
.fab .call { background: var(--gradient-primary); }
@media (min-width: 768px) { .fab .call { display: none; } }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* ===== Toast ===== */
.toast-host { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 100; display: flex; flex-direction: column; gap: 8px; }
.toast { padding: 12px 18px; border-radius: 12px; background: var(--card); border: 1px solid var(--border); box-shadow: var(--shadow-elegant); font-size: 14px; max-width: 360px; animation: slideIn .25s ease; }
.toast.success { border-left: 3px solid var(--success); }
.toast.error { border-left: 3px solid #ef4444; }
@keyframes slideIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* Animations */
.fade-up { animation: fadeUp .6s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
 
/* ===== Social Icons ===== */
.socials {
  display: flex;
  gap: 15px;
  margin-top: 15px;
}

.socials a {
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 18px;
  color: white;
  transition: 0.3s ease;
}

/* Individual colors */
.socials a:nth-child(1) {
  background: #1877f2; /* Facebook */
}

.socials a:nth-child(2) {
  background: radial-gradient(circle at 30% 30%, #feda75, #d62976, #962fbf);
}

.socials a:nth-child(3) {
  background: #0077b5; /* LinkedIn */
}

/* Hover effect */
.socials a:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* .hero-tagline */
.hero-tagline{
    display: flex;
    align-items: center;
    justify-content: center;

    /* SPACE ABOVE + BELOW */
    margin: 48px 0 34px;

    padding: 0 18px;

    animation: fadeUp 0.8s ease;
}

.hero-tagline p{
    margin: 0;

    padding: 14px 26px;

    font-size: 18px;
    font-weight: 800;

    letter-spacing: 0.8px;
    line-height: 1.5;

    text-align: center;
    text-transform: uppercase;

    /* PREMIUM PURPLE */
    color: #5b4b8a;

    background: rgba(255,255,255,0.78);

    backdrop-filter: blur(10px);

    border: 1px solid rgba(91, 75, 138, 0.15);

    border-radius: 999px;

    box-shadow:
        0 4px 18px rgba(0,0,0,0.04),
        inset 0 1px 0 rgba(255,255,255,0.7);

    width: fit-content;
    max-width: 100%;
}

/* MOBILE RESPONSIVE */
@media (max-width:768px){

    .hero-tagline{
        margin: 44px 0 30px;
        padding: 0 14px;
    }

    .hero-tagline p{

        font-size: 13px;

        font-weight: 800;

        line-height: 1.7;

        letter-spacing: 0.5px;

        padding: 12px 16px;

        border-radius: 22px;
    }
}

@keyframes fadeUp{

    from{
        opacity:0;
        transform:translateY(10px);
    }

    to{
        opacity:1;
        transform:translateY(0);
    }
}