/* =======================================================================
   Public Landing Page Stylesheet
   Modern Poppins Design System, Glassmorphism accents & dynamic card grids.
   Loaded IN ADDITION to style.css.
   ======================================================================= */

.lp-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    padding-top: env(safe-area-inset-top);
}

.lp-header-inner {
    max-width: 1160px;
    margin: 0 auto;
    padding: 16px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.lp-brand {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.lp-brand .lp-name {
    font-family: var(--font-display);
    font-size: 21px;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -0.02em;
}

.lp-brand .lp-type {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary);
    font-weight: 600;
}

.lp-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.lp-nav a.lp-nav-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--ink-soft);
    transition: color 0.15s ease;
}

.lp-nav-actions { display: flex; align-items: center; gap: 12px; }
.lp-btn-staff { box-shadow: none; border-color: transparent; color: var(--ink-soft); font-weight: 500; }

.lp-menu-toggle {
    display: none;
    background: var(--paper-raised);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    cursor: pointer;
    font-size: 18px;
    color: var(--ink);
}

/* ---------- Hero ---------- */

.lp-hero {
    background: linear-gradient(135deg, #CCFBF1 0%, #F8FAFC 50%, #F1F5F9 100%);
    padding: 72px 28px 64px;
    position: relative;
}

.lp-hero-inner {
    max-width: 1160px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 48px;
    align-items: center;
}

.lp-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--primary-dark);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--primary-tint);
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}

.lp-hero h1 {
    font-family: var(--font-display);
    font-size: 44px;
    line-height: 1.18;
    font-weight: 700;
    margin: 0 0 16px;
    color: var(--ink);
    letter-spacing: -0.03em;
}

.lp-hero p.lp-lead {
    font-size: 16.5px;
    color: var(--ink-soft);
    max-width: 48ch;
    margin: 0 0 30px;
    line-height: 1.6;
}

.lp-hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.lp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: var(--radius);
    padding: 13px 24px;
    font-size: 14.5px;
    font-weight: 600;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: var(--shadow);
}

.lp-btn-primary { background: var(--primary); color: #FFFFFF; }
.lp-btn-outline { background: var(--paper-raised); color: var(--ink); border-color: var(--line); }

.lp-hero-card {
    background: var(--paper-raised);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 28px 26px;
}

.lp-hero-card .lp-card-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 12px;
}

.lp-hero-card .lp-row {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line-soft);
    font-size: 14px;
    align-items: center;
}

.lp-hero-card .lp-row:last-child { border-bottom: none; }
.lp-hero-card .lp-row .lp-row-icon { width: 22px; text-align: center; color: var(--primary); font-size: 16px; }

/* ---------- Section shells ---------- */

.lp-section { padding: 72px 28px; }
.lp-section-inner { max-width: 1160px; margin: 0 auto; }
.lp-section-alt { background: #F1F5F9; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.lp-section-head { max-width: 660px; margin-bottom: 40px; }
.lp-section-eyebrow {
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 8px;
    display: block;
}
.lp-section-head h2 {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 10px;
    letter-spacing: -0.02em;
}
.lp-section-head p { color: var(--ink-soft); margin: 0; font-size: 16px; line-height: 1.55; }

/* ---------- Services Grid ---------- */

.lp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 22px;
}

.lp-service-card {
    background: var(--paper-raised);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 26px 24px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lp-service-card .lp-service-icon {
    width: 44px; height: 44px;
    border-radius: var(--radius);
    background: var(--primary-tint);
    color: var(--primary-dark);
    display: flex; align-items: center; justify-content: center;
    font-size: 20px;
    margin-bottom: 16px;
}

.lp-service-card h3 { font-size: 17px; font-weight: 600; margin: 0 0 8px; letter-spacing: -0.01em; }
.lp-service-card p { font-size: 14px; color: var(--ink-soft); margin: 0; line-height: 1.55; }

/* ---------- Doctors ---------- */

.lp-doctor-card {
    background: var(--paper-raised);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 26px 24px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lp-doctor-avatar {
    width: 58px; height: 58px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #FFFFFF;
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 16px;
    box-shadow: 0 4px 10px rgba(15, 118, 110, 0.25);
}

.lp-doctor-card h3 { font-size: 18px; font-weight: 600; margin: 0 0 4px; letter-spacing: -0.01em; }
.lp-doctor-card .lp-doctor-specialty { font-size: 13px; color: var(--primary); font-weight: 600; margin-bottom: 10px; }
.lp-doctor-card .lp-doctor-fee { font-family: var(--font-mono); font-size: 12.5px; color: var(--ink-soft); font-weight: 500; }

/* ---------- Feature List ---------- */

.lp-feature-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px 32px;
}

.lp-feature {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.lp-feature .lp-feature-mark {
    flex-shrink: 0;
    width: 24px; height: 24px;
    border-radius: 50%;
    background: var(--primary);
    color: #FFFFFF;
    font-size: 12px;
    font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    margin-top: 2px;
}

.lp-feature h4 { margin: 0 0 4px; font-size: 15px; font-weight: 600; }
.lp-feature p { margin: 0; font-size: 13.5px; color: var(--ink-soft); line-height: 1.5; }

/* ---------- Contact & Location ---------- */

.lp-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: start;
}

.lp-contact-card {
    background: var(--paper-raised);
    border: 1px solid var(--line);
    border-left: 4px solid var(--primary);
    border-radius: var(--radius-lg);
    padding: 26px 28px;
    box-shadow: var(--shadow);
}

.lp-contact-card .lp-row {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line-soft);
    font-size: 14px;
    align-items: center;
}
.lp-contact-card .lp-row:last-child { border-bottom: none; }
.lp-contact-card .lp-row .lp-row-icon { color: var(--primary); width: 20px; text-align: center; font-size: 16px; }

.lp-map-frame {
    width: 100%;
    height: 100%;
    min-height: 280px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.lp-map-frame iframe { width: 100%; height: 100%; min-height: 280px; border: 0; display: block; }

.lp-hours-table { width: 100%; margin-top: 16px; font-size: 13.5px; }
.lp-hours-table td { padding: 6px 0; border-bottom: 1px solid var(--line-soft); }
.lp-hours-table td:last-child { text-align: end; color: var(--ink-soft); font-weight: 500; }

/* ---------- CTA Banner ---------- */

.lp-cta-banner {
    background: linear-gradient(135deg, #0F172A 0%, #0F2926 100%);
    color: #F1F5F9;
    padding: 56px 28px;
    text-align: center;
    border-radius: var(--radius-lg);
    max-width: 1160px;
    margin: 0 auto 56px;
    box-shadow: var(--shadow-lg);
}
.lp-cta-banner h2 {
    font-family: var(--font-display);
    font-size: 30px;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0 0 10px;
    letter-spacing: -0.02em;
}
.lp-cta-banner p { color: #94A3B8; margin: 0 0 26px; font-size: 16px; max-width: 50ch; margin-left: auto; margin-right: auto; }
.lp-cta-banner .lp-btn-primary { background: var(--accent); color: #FFFFFF; }
.lp-cta-banner .lp-btn-outline { background: transparent; color: #FFFFFF; border-color: rgba(255,255,255,0.3); }

/* ---------- Footer ---------- */

.lp-footer {
    background: #0F172A;
    color: #94A3B8;
    padding: 48px 28px 28px;
}
.lp-footer-inner {
    max-width: 1160px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 28px;
}
.lp-footer .lp-name { font-family: var(--font-display); color: #FFFFFF; font-size: 20px; font-weight: 700; }
.lp-footer a { color: #94A3B8; font-size: 13.5px; transition: color 0.15s ease; }
.lp-footer-links { display: flex; flex-direction: column; gap: 10px; }
.lp-footer-bottom {
    max-width: 1160px;
    margin: 32px auto 0;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.08);
    font-size: 12.5px;
    color: #64748B;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

/* Phone-only bottom bar; shown by the 780px media query below */
.lp-mobile-cta { display: none; }

/* ---------- Responsive ---------- */

@media (max-width: 780px) {
    .lp-hero-inner { grid-template-columns: 1fr; }
    .lp-hero h1 { font-size: 34px; }
    .lp-contact-grid { grid-template-columns: 1fr; }
    /* The menu hangs directly off the sticky header (top: 100%), so it lines up whatever the
       header's real height is — with a logo, a long clinic name, or a notch inset. */
    .lp-nav { position: absolute; top: 100%; left: 0; right: 0; background: var(--paper-raised);
              flex-direction: column; align-items: flex-start; padding: 12px 18px 18px; gap: 4px;
              padding-bottom: max(18px, env(safe-area-inset-bottom, 0px));
              border-bottom: 1px solid var(--line); display: none;
              max-height: 75dvh; overflow-y: auto; overscroll-behavior: contain;
              box-shadow: var(--shadow-lg); }
    .lp-nav.open { display: flex; }
    .lp-nav a.lp-nav-link { min-height: 46px; display: flex; align-items: center; width: 100%; font-size: 16px; font-weight: 600; color: var(--ink); border-bottom: 1px solid var(--line-soft); }
    .lp-nav a.lp-nav-link:active { color: var(--primary); }
    .lp-menu-toggle { display: flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; }
    .lp-menu-toggle:active { background: var(--line-soft); }
    .lp-nav-actions { display: none; flex-direction: column; align-items: stretch; width: 100%; gap: 10px; }
    .lp-nav.open .lp-nav-actions { display: flex; margin-top: 12px; }
    .lp-nav-actions .lp-btn { justify-content: center; min-height: 48px; }
    .lp-section-head { margin-bottom: 26px; }
    .lp-section-head h2 { font-size: 27px; }
    .lp-grid { gap: 14px; }
    .lp-service-card, .lp-doctor-card { padding: 20px 18px; }
    .lp-hero-card { padding: 20px 18px; }
    .lp-contact-card { padding: 20px 18px; }
    .lp-map-frame, .lp-map-frame iframe { min-height: 220px; }
    .lp-footer-inner { flex-direction: column; gap: 20px; }
    .lp-footer-links { flex-direction: row; flex-wrap: wrap; gap: 6px 18px; }
    .lp-footer a { min-height: 40px; display: inline-flex; align-items: center; }

    /* Sticky Call / WhatsApp bar — the two things a phone visitor actually came to do. */
    body.has-mobile-cta { padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px)); }
    .lp-mobile-cta {
        display: flex; gap: 10px;
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
        padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
        background: rgba(255,255,255,0.96);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-top: 1px solid var(--line);
        box-shadow: 0 -6px 20px rgba(15, 23, 42, 0.08);
    }
    .lp-mobile-cta .lp-btn { flex: 1 1 0; min-height: 48px; font-size: 15px; box-shadow: none; }
    .lp-mobile-cta .lp-btn-wa { background: #25D366; color: #FFFFFF; border-color: transparent; }
    .lp-mobile-cta .lp-btn:active { transform: scale(0.97); }
}

@media (max-width: 480px) {
    .lp-hero { padding: 36px 18px 36px; }
    .lp-hero-inner { gap: 24px; }
    .lp-hero h1 { font-size: 30px; line-height: 1.15; }
    .lp-hero p.lp-lead { font-size: 15.5px; margin-bottom: 22px; }
    .lp-eyebrow { margin-bottom: 14px; }
    .lp-section { padding: 36px 18px; }
    .lp-section-head h2 { font-size: 24px; }
    .lp-header-inner { padding: 10px 14px; }
    .lp-brand .lp-name { font-size: 18px; }
    .lp-cta-banner { padding: 32px 18px; border-radius: var(--radius); margin: 0 14px 36px; }
    .lp-cta-banner h2 { font-size: 22px; }
    .lp-cta-banner p { font-size: 15px; }
    .lp-footer { padding: 32px 18px calc(24px + env(safe-area-inset-bottom, 0px)); }
    .lp-hero-actions { gap: 10px; }
    .lp-hero-actions .lp-btn, .lp-cta-banner .lp-btn { flex: 1 1 100%; justify-content: center; min-height: 48px; }
    .lp-cta-banner .lp-btn + .lp-btn { margin-top: 10px; }
    .lp-btn { padding: 12px 18px; }
    .lp-footer-bottom { flex-direction: column; align-items: flex-start; gap: 4px; }
}

/* Touch baseline for the public site */
.lp-btn, .lp-nav-link, .lp-menu-toggle { touch-action: manipulation; -webkit-user-select: none; user-select: none; }
.lp-btn:active { transform: scale(0.98); }

/* ---------- Hover states — only for inputs that can actually hover. On touch, a tapped
   element would otherwise keep its hover look until the next tap. ---------- */

@media (hover: hover) and (pointer: fine) {
    .lp-nav a.lp-nav-link:hover { color: var(--primary); text-decoration: none; }
    .lp-btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: var(--shadow-lg); text-decoration: none; color: #FFFFFF; }
    .lp-btn-outline:hover { background: var(--line-soft); transform: translateY(-2px); box-shadow: var(--shadow-lg); text-decoration: none; color: var(--ink); }
    .lp-service-card:hover {
        transform: translateY(-3px);
        box-shadow: var(--shadow-lg);
    }
    .lp-doctor-card:hover {
        transform: translateY(-3px);
        box-shadow: var(--shadow-lg);
    }
    .lp-cta-banner .lp-btn-primary:hover { background: #BE123C; }
    .lp-cta-banner .lp-btn-outline:hover { background: rgba(255,255,255,0.1); color: #FFFFFF; }
    .lp-footer a:hover { color: #FFFFFF; }
}
