/* ====================================================================
   DoLittle Technologies — main.css  (GLOBAL DESIGN SYSTEM)
   --------------------------------------------------------------------
   Single source of truth for the design language used by the reference
   pages:  resources/views/layouts/header/company/*

   These classes previously lived in style.css AND were duplicated across
   coaching-erp.css, college-erp.css, schoolerp.css, preschool_erp.css,
   pta_page.css, dolittle_cms.css, contact.css (each redefining
   .section-tag / .section-title / .why-card / .feature-card / .cta-section).
   main.css consolidates them so every page can share one definition.

   Load order (header.blade.php):
     1. style.css            (existing global theme: top-bar, nav, footer)
     2. main.css             (this file — consolidated design system)
     3. responsive-fixes.css (breakpoint overrides, loaded last)

   Values copied verbatim from the reference so existing pages are
   unaffected; new/refactored pages rely on these instead of re-declaring.
   ==================================================================== */

/* ============================ VARIABLES ============================ */
:root {
    --navy: #0B1F4B;
    --blue: #1A56DB;
    --sky: #3B82F6;
    --teal: #06B6D4;
    --green: #10B981;
    --orange: #F59E0B;
    --light: #F0F6FF;
    --white: #FFFFFF;
    --gray: #6B7280;
    --dark: #111827;
    --border: #E2EAF6;
    --purple: #8B5CF6;

    --font-head: 'Sora', sans-serif;
    --font-body: 'DM Sans', sans-serif;

    --radius-sm: 10px;
    --radius: 14px;
    --radius-lg: 20px;
    --section-pad: 80px;
    --maxw: 1200px;

    --shadow-card: 0 12px 40px rgba(26, 86, 219, 0.10);
    --shadow-soft: 0 8px 32px rgba(26, 86, 219, 0.08);
}

/* ============================ TYPOGRAPHY ========================== */
.ds-scope h1,
.ds-scope h2,
.ds-scope h3,
.ds-scope h4 {
    font-family: var(--font-head);
}

.section-title {
    font-size: 38px;
    font-weight: 800;
    color: var(--navy);
    line-height: 1.2;
    margin-bottom: 16px;
}

.section-tag {
    display: inline-block;
    background: var(--light);
    color: var(--blue);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
}

.section-sub {
    font-size: 17px;
    color: var(--gray);
    max-width: 580px;
    line-height: 1.8;
}

.text-center {
    text-align: center;
}

.text-center .section-sub {
    margin: 0 auto;
}

/* ============================ LAYOUT ============================== */
.max-w {
    max-width: var(--maxw);
    margin: 0 auto;
}

/* Sections share consistent vertical rhythm (matches reference pages) */
.ds-scope section {
    padding: var(--section-pad) 5%;
}

/* ============================ BUTTONS ============================= */
.btn-cta-white {
    padding: 16px 36px;
    background: var(--white);
    color: var(--blue);
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
}

.btn-cta-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.btn-cta-outline {
    padding: 16px 36px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    color: var(--white);
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    background: transparent;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
}

.btn-cta-outline:hover {
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.1);
}

/* Solid primary (gradient) — for light sections */
.btn-primary-grad {
    padding: 14px 32px;
    background: linear-gradient(135deg, var(--blue), var(--teal));
    color: var(--white);
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary-grad:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-card);
    color: var(--white);
}

/* ============================ HERO =============================== */
/* Reference uses .common-hero.dark-hero with inline bg; this provides
   a reusable equivalent so new pages don't need inline styles. */
.page-hero {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 5% 80px;
    text-align: center;
    background-size: cover;
    background-position: center;
}

.page-hero .hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(6, 15, 36, 0.75);
}

.page-hero .hero-inner {
    position: relative;
    z-index: 2;
}

.page-hero h1 {
    font-size: 52px;
    font-weight: 800;
    color: var(--white);
    margin: 20px 0;
    line-height: 1.15;
}

.page-hero h1 span {
    color: #00C2FF;
}

.page-hero p {
    max-width: 700px;
    margin: auto;
    color: rgba(255, 255, 255, 0.85);
    font-size: 18px;
    line-height: 1.7;
}

.page-hero .section-tag {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

/* ============================ CARDS ============================== */
/* Feature cards (2-col grid with gradient accent bar) */
.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 48px;
}

.feature-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px;
    border: 1px solid var(--border);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--blue), var(--teal));
}

.feature-card:hover {
    box-shadow: var(--shadow-card);
    transform: translateY(-4px);
}

.feature-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 15px;
    color: var(--gray);
    line-height: 1.7;
}

/* Stat / why cards (4-col) */
.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 48px;
}

.why-card {
    background: var(--light);
    border-radius: var(--radius-lg);
    padding: 28px;
    text-align: center;
    transition: all 0.3s;
    border: 1px solid var(--border);
}

.why-card:hover {
    background: var(--white);
    box-shadow: var(--shadow-soft);
    transform: translateY(-4px);
}

.why-num {
    font-family: var(--font-head);
    font-size: 40px;
    font-weight: 800;
    color: var(--blue);
    line-height: 1;
    margin-bottom: 6px;
}

.why-card h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 8px;
}

.why-card p {
    font-size: 13px;
    color: var(--gray);
    line-height: 1.65;
}

/* Core value boxes (3-col) */
.core-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.core-box {
    text-align: left;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: all 0.3s;
}

.core-box:hover {
    box-shadow: var(--shadow-soft);
    transform: translateY(-4px);
}

.cb-icon {
    font-size: 30px;
    margin-bottom: 14px;
}

.core-box h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 8px;
}

.core-box p {
    font-size: 14px;
    color: var(--gray);
    line-height: 1.7;
}

/* ============================ CTA SECTION ======================== */
.cta-section {
    background: linear-gradient(135deg, var(--blue) 0%, var(--navy) 100%);
    padding: 80px 5%;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.2) 0%, transparent 70%);
    border-radius: 50%;
}

.cta-section h2 {
    font-size: 44px;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 16px;
    position: relative;
}

.cta-section p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    margin: 0 auto 36px;
    max-width: 560px;
    position: relative;
}

.cta-btns {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
}

/* ============================ UTILITIES ========================== */
.u-mt-60 {
    margin-top: 60px;
}

.u-mt-48 {
    margin-top: 48px;
}

.u-bg-light {
    background: var(--light);
}

.fade-up {
    opacity: 0;
    transform: translateY(28px);
    transition: all 0.65s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================ RESPONSIVE ========================= */
@media (max-width: 992px) {

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

    .why-grid {
        grid-template-columns: 1fr 1fr;
    }

    .core-grid {
        grid-template-columns: 1fr 1fr;
    }

    .section-title {
        font-size: 32px;
    }

    .page-hero h1 {
        font-size: 40px;
    }

    .cta-section h2 {
        font-size: 34px;
    }
}

@media (max-width: 768px) {

    .features-grid,
    .why-grid,
    .core-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-top: 32px;
    }

    .ds-scope section {
        padding: 56px 5%;
    }

    .section-title {
        font-size: 28px;
        line-height: 1.25;
    }

    .section-sub {
        font-size: 15px;
        line-height: 1.75;
    }

    .page-hero {
        min-height: 50vh;
        padding: 100px 5% 60px;
    }

    .page-hero h1 {
        font-size: 32px;
    }

    .page-hero p {
        font-size: 15px;
    }

    .feature-card,
    .why-card,
    .core-box {
        padding: 22px;
    }

    .cta-section h2 {
        font-size: 26px;
    }

    .cta-btns {
        flex-direction: column;
        align-items: stretch;
    }

    .cta-btns .btn-cta-white,
    .cta-btns .btn-cta-outline {
        text-align: center;
    }
}

@media (max-width: 480px) {

    .section-title {
        font-size: 24px;
    }

    .page-hero h1 {
        font-size: 28px;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {

    .fade-up {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .feature-card:hover,
    .why-card:hover,
    .core-box:hover {
        transform: none;
    }
}
