/* ===========================================
   HOME PAGE STYLES
   Loaded on: index.html, success.html
=========================================== */

/* ===========================================
   Hero
=========================================== */

.hero{

    min-height:100vh;

    display:flex;
    align-items:center;

    padding:120px 0 80px;

    background-image:
        linear-gradient(
            rgba(8,22,46,.70),
            rgba(8,22,46,.45)
        ),
        url("../assets/hero/hero-background.png");

    background-size:cover;
    background-position:center;
    background-repeat:no-repeat;

}

.hero-content{

    display:grid;

    grid-template-columns:1.1fr 1fr;

    align-items:center;

    gap:60px;

}

.hero-text{

    max-width:620px;

    color:white;

}

.hero h1{

    font-size:4.3rem;

    line-height:1.1;

    margin-bottom:25px;

    color:white;

}

.hero p{

    font-size:1.25rem;

    line-height:1.8;

    margin-bottom:40px;

    color:rgba(255,255,255,.92);

}

.hero-image{

    display:flex;

    justify-content:center;

    align-items:center;

}

.hero-image img{

    max-width:100%;

    width:650px;

}

/* ===========================================
   OUR STORY
=========================================== */

.our-story{

    padding:120px 0;

    background:#ffffff;

}

.story-heading{

    text-align:center;

    max-width:850px;

    margin:0 auto 70px;

}

.story-heading h2{

    font-size:3rem;

    margin:15px 0 25px;

    color:var(--dark);

}

.story-heading p{

    color:var(--text);

    line-height:1.9;

    font-size:1.1rem;

}

.story-grid{

    display:grid;

    grid-template-columns:repeat(2,1fr);

    gap:40px;

    margin-bottom:60px;

}

.story-card{

    background:white;

    padding:45px;

    border-radius:20px;

    box-shadow:var(--shadow);

    transition:.35s;

}

.story-card:hover{

    transform:translateY(-8px);

}

.story-icon{

    width:160px;
    height:160px;

    margin:0 auto 35px;

    display:flex;
    justify-content:center;
    align-items:center;

}

.story-icon img{

    width:100%;
    height:100%;

    object-fit:contain;

    transition:transform .35s ease;

    transform-origin:center center;

    filter:drop-shadow(0 10px 25px rgba(212,175,55,.30));

}

.story-card:hover .story-icon img{

    /* LINT FIX: rule was declared twice with conflicting scale values (1.08 then 1.1) — kept the larger, removed the duplicate */
    transform:scale(1.1);

}

.story-card h3{

    font-size:2rem;

    margin-bottom:10px;

}

.story-card h4{

    color:var(--secondary);

    margin-bottom:25px;

    font-weight:600;

}

.story-card p{

    color:var(--text);

    line-height:1.9;

}

.story-banner{

    background:linear-gradient(135deg,var(--primary),#061d47);

    color:white;

    padding:60px;

    border-radius:20px;

    text-align:center;

}

.story-banner h3{

    font-size:2.2rem;

    margin-bottom:25px;

}

.story-banner p{

    max-width:900px;

    margin:auto;

    line-height:2;

    opacity:.95;

}

/* ===========================================
   Stats
=========================================== */

.stats{

    background:#ffffff;
    padding:80px 0;

}

.stats .container{

    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:30px;

}

.stat{

    background:white;
    border-radius:var(--radius);
    padding:35px 25px;
    text-align:center;
    box-shadow:var(--shadow);
    transition:var(--transition);

}

.stat h2{

    color:var(--primary);
    font-size:2rem;
    margin-bottom:10px;

}

.stat p{

    color:var(--text);
    margin-bottom:0; /* LINT FIX: global p has 22px bottom margin, was pushing card padding uneven */

}

/* ===========================================
   Services
=========================================== */

.services{

    padding:100px 0;
    background:var(--light);

}

.services h2{

    text-align:center;
    font-size:2.8rem;
    margin-bottom:60px;

}

.service-grid{

    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:30px;

}

.card{

    background:white;
    padding:35px;
    border-radius:var(--radius);
    box-shadow:var(--shadow);
    transition:var(--transition);

}

.card h3{

    margin-bottom:10px;
    color:var(--dark);

}

.card p{

    color:var(--text);
    line-height:1.8;
    margin-bottom:0;

}

/* ===========================================
   CTA
=========================================== */

.cta{

    padding:100px 0;
    background:linear-gradient(135deg,var(--primary),#0044cc);
    color:white;
    text-align:center;

}

.cta h2{

    font-size:2.8rem;
    margin-bottom:20px;
    color:#ffffff;

}

.cta p{

    /* ==== FIX: original bug from screenshot ====
       This paragraph had no color override, so it fell back to
       the global `p` rule (color:var(--text) = #475569, a dark
       slate grey meant for LIGHT backgrounds). Against this
       section's dark blue gradient that produced near-invisible
       text. Overriding with a light blue-white for ~7:1 contrast. */

    color:#CFD9F7;
    opacity:.92;

    max-width:700px;
    margin:0 auto 35px;
    font-size:1.15rem;
    line-height:1.8;

}

.cta .primary-btn{

    background:white;
    color:var(--primary);

}

.cta .primary-btn:hover{

    background:var(--secondary);
    color:white;

}
