/* ═══════════════════════════════════════════════════════
   HOME PAGE — Ayurvedic Plus
═══════════════════════════════════════════════════════ */

/* ── HERO ─────────────────────────────────────────────── */
.hero {
    padding: 90px 0 0;
    background: linear-gradient(145deg, #f5f0e8 0%, #ede8dc 60%, #e4ddd0 100%);
    position: relative;
    overflow: hidden;
}

/* Decorative background circles */
.hero-bg-circles { position: absolute; inset: 0; pointer-events: none; }
.circle {
    position: absolute;
    border-radius: 50%;
    opacity: .08;
    background: var(--sage-green, #8B9D83);
}
.c1 { width: 500px; height: 500px; top: -150px; right: -100px; }
.c2 { width: 300px; height: 300px; bottom: 60px; left: -80px; background: var(--golden, #D4AF37); }
.c3 { width: 200px; height: 200px; top: 40%; right: 20%; }

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding-bottom: 80px;
}

.hero-eyebrow {
    display: inline-block;
    background: rgba(139,157,131,.15);
    color: #5a7052;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 20px;
    letter-spacing: .5px;
}

.hero-title {
    font-size: 54px;
    line-height: 1.15;
    margin-bottom: 22px;
    color: var(--text-dark, #1a1a1a);
}

.hero-subtitle {
    font-size: 17px;
    color: var(--text-light, #666);
    margin-bottom: 36px;
    line-height: 1.85;
    max-width: 520px;
}

.hero-buttons { display: flex; gap: 16px; margin-bottom: 48px; flex-wrap: wrap; }

.hero-stats { display: flex; align-items: center; gap: 0; }
.stat { text-align: center; padding: 0 28px; }
.stat:first-child { padding-left: 0; }
.stat h3 { font-size: 34px; color: var(--golden, #D4AF37); margin-bottom: 4px; font-weight: 700; }
.stat p  { color: var(--text-light, #888); font-size: 13px; }
.stat-divider { width: 1px; height: 40px; background: rgba(0,0,0,.12); }

/* Hero visual / card */
.hero-visual { position: relative; display: flex; justify-content: center; }

.hero-card {
    background: #fff;
    padding: 44px 36px 36px;
    border-radius: 28px;
    box-shadow: 0 24px 70px rgba(0,0,0,.12);
    text-align: center;
    max-width: 340px;
    width: 100%;
    position: relative;
    z-index: 2;
    border: 1px solid rgba(212,175,55,.2);
    background: linear-gradient(160deg, #fff 70%, #faf7f0 100%);
}

.hero-card-logo {
    width: 120px;
    height: 120px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.hero-logo-pulse {
    position: absolute;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    border: 2px solid rgba(212,175,55,.3);
    animation: logoPulse 2.5s ease-in-out infinite;
}
@keyframes logoPulse {
    0%,100% { transform: scale(1);   opacity: .5; }
    50%      { transform: scale(1.1); opacity: .15; }
}
.hero-mandala {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: radial-gradient(circle at center, #fdf8ee 60%, #f0e8d0 100%);
    border: 2px solid rgba(212,175,55,.5);
    box-shadow: 0 4px 20px rgba(212,175,55,.2), inset 0 0 20px rgba(212,175,55,.08);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.hero-mandala::before {
    content: '';
    position: absolute;
    width: 96px;
    height: 96px;
    border-radius: 50%;
    border: 1px dashed rgba(212,175,55,.4);
}
.mandala-om {
    font-size: 58px;
    line-height: 1;
    background: linear-gradient(135deg, #D4AF37, #a07c20);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: serif;
    filter: drop-shadow(0 2px 6px rgba(212,175,55,.3));
}
.hero-card-logo img { display: none; }

.hero-card-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 auto 16px;
    color: #D4AF37;
    font-size: 12px;
    opacity: .6;
}
.hero-card-divider::before,
.hero-card-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(212,175,55,.4), transparent);
}

.hero-card-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 18px;
    background: rgba(139,157,131,.07);
    border-radius: 12px;
    padding: 12px 8px;
}
.hcs { text-align: center; padding: 0 14px; }
.hcs strong { display: block; font-size: 16px; font-weight: 700; color: #D4AF37; }
.hcs span   { font-size: 10px; color: #888; text-transform: uppercase; letter-spacing: .5px; }
.hcs-sep    { width: 1px; height: 30px; background: rgba(139,157,131,.25); }

.hero-card-cta {
    display: inline-block;
    margin-top: 18px;
    background: linear-gradient(135deg, #8B9D83, #5a7052);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 11px 24px;
    border-radius: 50px;
    text-decoration: none;
    letter-spacing: .3px;
    transition: transform .2s, box-shadow .2s;
    box-shadow: 0 4px 16px rgba(90,112,82,.3);
}
.hero-card-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(90,112,82,.4);
}

.hero-card h4 { font-size: 22px; margin-bottom: 10px; color: var(--dark-sage, #5a7052); }
.hero-card p  { color: #888; font-size: 14px; line-height: 1.7; margin-bottom: 20px; }

.hero-card-badges { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.hbadge {
    background: rgba(139,157,131,.1);
    color: #5a7052;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 50px;
    border: 1px solid rgba(139,157,131,.2);
}

/* Floating mini-cards */
.hero-float-card {
    position: absolute;
    background: #fff;
    border-radius: 12px;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 600;
    color: #444;
    box-shadow: 0 8px 24px rgba(0,0,0,.10);
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    z-index: 3;
    animation: floatY 3s ease-in-out infinite;
}
.hero-float-card span { font-size: 18px; }
.fc1 { top: 10px; left: -30px; animation-delay: 0s; }
.fc2 { bottom: 30px; right: -20px; animation-delay: 1.5s; }

@keyframes floatY {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-8px); }
}

/* Wave divider */
.hero-wave { line-height: 0; margin-top: -2px; }
.hero-wave svg { display: block; width: 100%; height: 80px; }

/* ── PORTALS ──────────────────────────────────────────── */
.portals-section {
    padding: 90px 0;
    background: #fff;
}

.portals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 36px;
    max-width: 860px;
    margin: 0 auto;
}

.portal-card {
    border-radius: 20px;
    padding: 40px 36px;
    box-shadow: 0 4px 24px rgba(0,0,0,.07);
    border: 2px solid transparent;
    transition: transform .25s, box-shadow .25s;
}
.portal-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0,0,0,.12);
}
.portal-doctor { background: linear-gradient(160deg, #f4f7f2 0%, #eaf0e7 100%); border-color: rgba(139,157,131,.3); }
.portal-patient { background: linear-gradient(160deg, #fdf9ee 0%, #faf3d8 100%); border-color: rgba(212,175,55,.3); }

.portal-icon { font-size: 56px; margin-bottom: 16px; }
.portal-card h3 { font-size: 24px; margin-bottom: 10px; color: #1e293b; }
.portal-card > p { color: #64748b; font-size: 14px; line-height: 1.7; margin-bottom: 20px; }

.portal-features { list-style: none; padding: 0; margin: 0 0 28px; }
.portal-features li {
    padding: 7px 0;
    color: #555;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid rgba(0,0,0,.05);
}
.portal-features li:last-child { border-bottom: none; }
.portal-doctor .portal-features li span { color: #8B9D83; font-weight: 700; }
.portal-patient .portal-features li span { color: #D4AF37; font-weight: 700; }

.portal-actions { display: flex; flex-direction: column; gap: 10px; }
.portal-btn {
    display: block;
    padding: 13px 20px;
    border-radius: 10px;
    text-align: center;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: all .2s;
}
.portal-btn-primary { background: linear-gradient(135deg,#8B9D83,#6B7D63); color: #fff; }
.portal-btn-primary:hover { box-shadow: 0 6px 18px rgba(139,157,131,.4); transform: translateY(-2px); }
.portal-btn-outline { background: #fff; color: #6B7D63; border: 2px solid #8B9D83; }
.portal-btn-outline:hover { background: #f4f7f2; }
.portal-btn-gold { background: linear-gradient(135deg,#D4AF37,#B8941F); color: #fff; }
.portal-btn-gold:hover { box-shadow: 0 6px 18px rgba(212,175,55,.4); transform: translateY(-2px); }
.portal-btn-outline-gold { background: #fff; color: #B8941F; border: 2px solid #D4AF37; }
.portal-btn-outline-gold:hover { background: #fdf9ee; }

/* ── ABOUT ────────────────────────────────────────────── */
.about { padding: 100px 0; background: var(--white, #fff); }
.about-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 36px; }

/* ── FEATURES ─────────────────────────────────────────── */
.features { padding: 100px 0; background: var(--cream, #f5f0e8); }
.features-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }

/* ── HOW IT WORKS ─────────────────────────────────────── */
.how-it-works { padding: 100px 0; background: #fff; }
.steps { display: flex; justify-content: space-between; align-items: center; max-width: 1000px; margin: 0 auto; }
.step-arrow { font-size: 28px; color: var(--sage-green, #8B9D83); margin: 0 10px; }

/* ── CTA ──────────────────────────────────────────────── */
.cta { padding: 0; }
.cta-inner {
    background: linear-gradient(135deg, #8B9D83 0%, #5a7052 100%);
    padding: 90px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cta-inner::before {
    content: '';
    position: absolute;
    width: 400px; height: 400px;
    border-radius: 50%;
    background: rgba(255,255,255,.06);
    top: -100px; right: -100px;
}
.cta-inner::after {
    content: '';
    position: absolute;
    width: 250px; height: 250px;
    border-radius: 50%;
    background: rgba(255,255,255,.05);
    bottom: -80px; left: -60px;
}
.cta-content { position: relative; z-index: 1; }
.cta-content h2 { font-size: 40px; color: #fff; margin-bottom: 14px; }
.cta-content p  { font-size: 17px; color: rgba(255,255,255,.88); margin-bottom: 32px; }

/* ── CONTACT ──────────────────────────────────────────── */
.contact { padding: 100px 0; background: var(--cream, #f5f0e8); }
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 48px;
    align-items: start;
}

/* Info cards */
.contact-info-side { display: flex; flex-direction: column; gap: 16px; }
.contact-info-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: #fff;
    border-radius: 14px;
    padding: 20px 22px;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
    border-left: 4px solid var(--sage-green);
    transition: transform .2s;
}
.contact-info-card:hover { transform: translateX(4px); }
.cic-icon { font-size: 28px; flex-shrink: 0; line-height: 1; margin-top: 2px; }
.contact-info-card h4 { font-size: 14px; font-weight: 600; color: var(--dark-sage); margin-bottom: 4px; font-family: 'Poppins', sans-serif; }
.contact-info-card a,
.contact-info-card p { font-size: 14px; color: #555; text-decoration: none; line-height: 1.6; margin: 0; }
.contact-info-card a:hover { color: var(--golden); }

/* Form */
.contact-form-side {}
.contact-form-box {
    background: #fff;
    border-radius: 20px;
    padding: 36px;
    box-shadow: 0 4px 24px rgba(0,0,0,.08);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; margin-bottom: 18px; }
.form-group label { font-size: 13px; font-weight: 600; color: var(--dark-sage); margin-bottom: 6px; }
.form-group input,
.form-group textarea {
    padding: 12px 14px;
    border: 1.5px solid rgba(139,157,131,.25);
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    color: var(--text-dark);
    background: #fafafa;
    transition: border .2s, background .2s;
    resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--sage-green);
    background: #fff;
}

/* ── RESPONSIVE ───────────────────────────────────────── */

/* Tablet (≤900px) */
@media (max-width: 900px) {
    .hero { padding: 60px 0 0; }
    .hero-content { grid-template-columns: 1fr; gap: 40px; text-align: center; padding-bottom: 60px; }
    .hero-eyebrow { margin-bottom: 14px; }
    .hero-title   { font-size: 40px; }
    .hero-subtitle { font-size: 16px; margin: 0 auto 28px; max-width: 100%; }
    .hero-buttons { justify-content: center; }
    .hero-stats   { justify-content: center; }
    .hero-visual  { justify-content: center; margin-top: 10px; }
    .fc1, .fc2    { display: none; }

    .about { padding: 70px 0; }
    .about-grid { grid-template-columns: 1fr 1fr; gap: 24px; }

    .features { padding: 70px 0; }
    .features-grid { grid-template-columns: 1fr 1fr; gap: 20px; }

    .how-it-works { padding: 70px 0; }
    .steps { flex-direction: column; }
    .step-arrow { transform: rotate(90deg); margin: 8px 0; }

    .portals-section { padding: 60px 0; }
    .portals-grid { grid-template-columns: 1fr; max-width: 480px; }

    .contact { padding: 70px 0; }
    .contact-grid { grid-template-columns: 1fr; gap: 36px; }

    .cta-inner { padding: 70px 24px; }
    .cta-content h2 { font-size: 32px; }
}

/* Mobile (≤600px) */
@media (max-width: 600px) {
    .hero-title  { font-size: 32px; }
    .hero-card   { padding: 32px 24px; }
    .hero-card-logo { width: 90px; height: 90px; }
    .stat h3     { font-size: 28px; }
    .stat        { padding: 0 16px; }

    .about-grid,
    .features-grid { grid-template-columns: 1fr; }

    .portal-card { padding: 30px 24px; }

    .cta-content h2 { font-size: 26px; }
    .cta-inner { padding: 50px 20px; }

    .section-header h2 { font-size: 26px; }
    .section-header p  { font-size: 14px; }
    .section-header    { margin-bottom: 32px; }
}

/* Small Mobile (≤400px) */
@media (max-width: 400px) {
    .hero-title  { font-size: 28px; }
    .hero-buttons { flex-direction: column; align-items: center; }
    .btn-large   { width: 100%; text-align: center; padding: 13px 20px; }
    .hero-stats  { flex-wrap: wrap; gap: 16px; justify-content: center; }
    .stat-divider { display: none; }
    .stat        { padding: 0 10px; }
}

/* ── Portal section mobile compact ─────────────── */
@media (max-width: 600px) {
    .portals-section { padding: 40px 0; }

    .portals-section .section-header { margin-bottom: 24px; }
    .portals-section .section-header h2 { font-size: 24px; }
    .portals-section .section-header p  { display: none; }

    .portals-grid { gap: 16px; }

    .portal-card { padding: 20px 18px; border-radius: 14px; }

    .portal-icon { font-size: 36px; margin-bottom: 8px; }
    .portal-card h3 { font-size: 18px; margin-bottom: 6px; }
    .portal-card > p { font-size: 13px; margin-bottom: 12px; line-height: 1.5; }

    .portal-features { display: none; } /* hide feature list on mobile */

    .portal-actions { flex-direction: row; gap: 10px; }
    .portal-btn { padding: 10px 14px; font-size: 13px; border-radius: 8px; }
}

/* ── About section mobile compact ──────────────── */
@media (max-width: 600px) {
    .about { padding: 40px 0; }
    .about-grid { grid-template-columns: 1fr; gap: 14px; }

    .about-card { padding: 20px 18px; border-radius: 12px; }
    .about-card .card-icon { font-size: 34px; margin-bottom: 10px; }
    .about-card h3 { font-size: 17px; margin-bottom: 6px; }
    .about-card p  { font-size: 13px; line-height: 1.55; }

    .about .section-header { margin-bottom: 24px; }
    .about .section-header h2 { font-size: 22px; }
    .about .section-header p  { font-size: 13px; }
}

/* ── All remaining sections mobile compact ──────── */
@media (max-width: 600px) {

    /* Features */
    .features { padding: 40px 0; }
    .features .section-header { margin-bottom: 24px; }
    .features .section-header h2 { font-size: 22px; }
    .features-grid { grid-template-columns: 1fr; gap: 14px; }
    .feature-card { padding: 20px 18px; border-radius: 12px; }
    .feature-icon { font-size: 32px; margin-bottom: 10px; }
    .feature-card h3 { font-size: 16px; margin-bottom: 6px; }
    .feature-card p  { font-size: 13px; }

    /* How It Works */
    .how-it-works { padding: 40px 0; }
    .how-it-works .section-header { margin-bottom: 24px; }
    .how-it-works .section-header h2 { font-size: 22px; }
    .how-it-works .section-header p  { font-size: 13px; }
    .step { padding: 0 10px; }
    .step-number { width: 56px; height: 56px; font-size: 22px; margin-bottom: 12px; }
    .step h3 { font-size: 16px; margin-bottom: 6px; }
    .step p  { font-size: 13px; }
    .step-arrow { font-size: 18px; margin: 4px 0; }

    /* CTA */
    .cta-inner { padding: 44px 20px; }
    .cta-content h2 { font-size: 22px; margin-bottom: 10px; }
    .cta-content p  { font-size: 14px; margin-bottom: 22px; }

    /* Contact */
    .contact { padding: 40px 0; }
    .contact .section-header { margin-bottom: 24px; }
    .contact .section-header h2 { font-size: 22px; }
    .contact-grid { grid-template-columns: 1fr; gap: 24px; }
    .contact-info-card { padding: 14px 16px; }
    .cic-icon { font-size: 22px; }
    .contact-form-box { padding: 22px 18px; border-radius: 14px; }
    .form-row { grid-template-columns: 1fr; gap: 0; }

    /* Footer handled in common.css */
}
