@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Inter:wght@400;500;600&display=swap');

/* =============================================
   CSS VARIABLES
   ============================================= */
:root {
    --primary: #0a2540;
    --primary-light: #16365b;
    --accent: #d4af37;
    --accent-hover: #c5a028;
    --bg-light: #f8fafc;
    --white: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --radius: 8px;
    --radius-lg: 12px;
}

/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-light);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--primary);
    line-height: 1.2;
    font-weight: 700;
    word-break: break-word;
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

input, textarea, select, button {
    font-family: inherit;
}

/* =============================================
   LAYOUT
   ============================================= */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 5rem 0;
}
.section-light {
    background-color: var(--white);
}
.text-center { text-align: center; }
.text-muted  { color: var(--text-muted); }
.mt-4  { margin-top: 1.5rem; }
.mb-4  { margin-bottom: 1.5rem; }

/* =============================================
   TYPOGRAPHY HELPERS
   ============================================= */
.section-subtitle {
    color: var(--accent);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
    display: block;
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 1rem;
    word-break: break-word;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}
.section-title.text-center::after {
    left: 50%;
    transform: translateX(-50%);
}

/* =============================================
   BUTTONS
   ============================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    gap: 8px;
    white-space: nowrap;
}
.btn-primary {
    background-color: var(--accent);
    color: var(--white);
    box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: var(--white);
}
.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}
.btn-outline:hover {
    background-color: var(--primary);
    color: var(--white);
}

/* =============================================
   TOPBAR
   ============================================= */
.topbar {
    background-color: var(--primary);
    color: var(--white);
    font-size: 0.8rem;
    padding: 0.5rem 0;
}
.topbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.topbar-contact {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
    align-items: center;
}
.topbar-contact span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: rgba(255,255,255,0.9);
    white-space: nowrap;
}
.topbar-contact span svg {
    flex-shrink: 0;
    color: var(--accent);
}

/* =============================================
   HEADER / NAVIGATION
   ============================================= */
header {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}
.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    gap: 1rem;
}
.brand {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
    text-decoration: none;
}
.brand span { color: var(--accent); }
.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}
.nav-links a {
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.9rem;
    position: relative;
    white-space: nowrap;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
    padding: 4px;
    flex-shrink: 0;
}

/* Mobile Nav Drawer */
.mobile-nav {
    display: none;
    background: var(--white);
    border-top: 1px solid var(--border);
    padding: 1rem 0;
    position: absolute;
    width: 100%;
    left: 0;
    top: 100%;
    box-shadow: var(--shadow-md);
    z-index: 999;
}
.mobile-nav.open { display: block; }
.mobile-nav .container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.mobile-nav a {
    padding: 0.5rem 0;
    font-weight: 500;
    border-bottom: 1px solid var(--border);
    color: var(--text-main);
}

/* =============================================
   PAGE HEADER (internal pages)
   ============================================= */
.page-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    padding: 4rem 0;
    text-align: center;
    color: var(--white);
}
.page-header h1 {
    color: var(--white);
    font-size: clamp(1.8rem, 5vw, 3rem);
    margin-bottom: 1rem;
    word-break: break-word;
}
.page-header p {
    color: rgba(255,255,255,0.8);
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    max-width: 600px;
    margin: 0 auto;
}

/* =============================================
   FOOTER
   ============================================= */
footer {
    background-color: var(--primary);
    color: rgba(255,255,255,0.7);
    padding: 4rem 0 0 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2.5rem;
    margin-bottom: 3rem;
}
.footer-brand {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 1rem;
}
.footer-brand span { color: var(--accent); }
.footer-title {
    color: var(--white);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1rem;
    margin-bottom: 1.25rem;
    position: relative;
    padding-bottom: 0.5rem;
}
.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 28px;
    height: 2px;
    background: var(--accent);
    border-radius: 1px;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.65rem; }
.footer-links a {
    color: rgba(255,255,255,0.65);
    font-size: 0.875rem;
    transition: all 0.2s;
}
.footer-links a:hover {
    color: var(--accent);
    padding-left: 4px;
}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.8rem;
}

/* =============================================
   RESPONSIVE GRID UTILITIES
   ============================================= */
/* Two column grid that stacks on mobile */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}
/* Auto-fill cards */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.75rem;
}

/* =============================================
   ABOUT PAGE — Vision grid
   ============================================= */
.about-vision-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

/* =============================================
   CONTACT PAGE — Two-column layout
   ============================================= */
.contact-layout-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
}
.contact-form-box {
    background: var(--bg-light);
    padding: 3rem;
    border-radius: 14px;
    border: 1px solid var(--border);
}
.contact-form-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

/* =============================================
   SERVICE DETAIL PAGE — Main + Sidebar
   ============================================= */
.service-detail-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
}
.service-sidebar {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.service-benefit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-bottom: 3rem;
}

/* =============================================
   APPLY MODAL — Form grid
   ============================================= */
.modal-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* =============================================
   CALCULATOR — Result grid
   ============================================= */
.calc-result-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

/* =============================================
   RESPONSIVE BREAKPOINTS
   ============================================= */

/* Tablet — up to 992px */
@media (max-width: 992px) {
    .nav-links { display: none; }
    .mobile-toggle { display: flex; align-items: center; }

    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }

    /* Hero two-col → single col */
    .hero-content-grid {
        grid-template-columns: 1fr !important;
        text-align: center;
    }
    .hero-content-grid > div:last-child { display: none; }

    /* Calculators side by side → stack */
    .calc-grid { grid-template-columns: 1fr !important; }

    /* Service detail → stack */
    .service-detail-container { grid-template-columns: 1fr !important; }
    .service-sidebar { position: static !important; }

    /* Why us / about split → stack */
    .split-grid { grid-template-columns: 1fr !important; }
    .about-vision-grid { grid-template-columns: 1fr !important; gap: 2.5rem !important; }

    /* Contact layout → stack */
    .contact-layout-grid { grid-template-columns: 1fr !important; gap: 2rem !important; }

    /* How it works 4-col → 2-col */
    .steps-grid { grid-template-columns: 1fr 1fr !important; gap: 2rem !important; }
    .steps-divider { display: none !important; }

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

/* Mobile — up to 768px */
@media (max-width: 768px) {
    .container { padding: 0 16px; }

    .section { padding: 3.5rem 0; }

    .topbar { display: none; }

    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }

    /* Trust bar — 2 col */
    .trustbar-grid { grid-template-columns: 1fr 1fr !important; }

    /* Stats hero grid — 2 col */
    .stats-hero-grid { grid-template-columns: 1fr 1fr !important; }
    .stats-hero-grid > div { transform: none !important; }

    /* Leadership grid — single col */
    .leadership-grid { grid-template-columns: 1fr !important; }

    /* Cards min-width override — single col */
    .cards-grid { grid-template-columns: 1fr; }

    /* Steps — single col */
    .steps-grid { grid-template-columns: 1fr !important; }

    /* Hero text size */
    .hero-h1 { font-size: clamp(1.8rem, 7vw, 2.5rem) !important; }

    /* CTA buttons stack */
    .cta-buttons { flex-direction: column !important; }
    .cta-buttons .btn { width: 100%; justify-content: center; }

    .page-header { padding: 2.5rem 0; }
    .page-header h1 { font-size: clamp(1.6rem, 6vw, 2.2rem); }

    /* Service detail main grid */
    .service-detail-container { grid-template-columns: 1fr !important; gap: 2rem !important; }
    .service-sidebar { position: static !important; }

    /* Service benefit cards — single col on mobile */
    .service-benefit-grid { grid-template-columns: 1fr !important; }

    /* Contact layout */
    .contact-layout-grid { grid-template-columns: 1fr !important; gap: 1.5rem !important; }
    .contact-form-box { padding: 1.5rem !important; }
    .contact-form-inner { grid-template-columns: 1fr !important; }

    /* About grid */
    .about-vision-grid { grid-template-columns: 1fr !important; gap: 2rem !important; }
    .about-grid { grid-template-columns: 1fr !important; }

    /* Modal form — single col */
    .modal-form-grid { grid-template-columns: 1fr !important; }

    /* Form grids */
    .form-2col { grid-template-columns: 1fr !important; }

    /* Why us list icons */
    .why-list-item { flex-direction: row; }

    /* Calculator sliders area */
    .calc-grid { grid-template-columns: 1fr !important; }
    .calc-result-grid { grid-template-columns: 1fr 1fr !important; }

    /* Benefit cards */
    .benefit-cards { grid-template-columns: 1fr !important; }

    /* Leadership minmax override */
    .leadership-page-grid { grid-template-columns: 1fr !important; }
}

/* Small mobile — up to 480px */
@media (max-width: 480px) {
    .container { padding: 0 12px; }

    h1 { font-size: clamp(1.6rem, 8vw, 2rem); }
    h2 { font-size: clamp(1.4rem, 7vw, 1.75rem); }

    .btn { font-size: 0.85rem; padding: 0.7rem 1.25rem; }

    .trustbar-grid { grid-template-columns: 1fr 1fr !important; gap: 0.75rem !important; }

    /* Section title smaller */
    .section-title { font-size: 1.5rem !important; }

    /* Footer */
    .footer-grid { grid-template-columns: 1fr; }

    /* Brand logo shrink */
    .brand { font-size: 1.2rem; }

    /* Nav height */
    .nav-wrapper { height: 60px; }

    /* Stats smaller */
    .stats-hero-grid > div { padding: 1.25rem !important; }

    /* Hero badge */
    .hero-badge { font-size: 0.7rem !important; }

    /* Contact form box padding */
    .contact-form-box { padding: 1.25rem !important; }

    /* Calc result grid: stack on very small */
    .calc-result-grid { grid-template-columns: 1fr !important; }

    /* Service benefit grid — single col */
    .service-benefit-grid { grid-template-columns: 1fr !important; }
}

/* Very small — 320px */
@media (max-width: 360px) {
    .container { padding: 0 10px; }
    .stats-hero-grid { grid-template-columns: 1fr 1fr !important; }
    .cards-grid { grid-template-columns: 1fr; }
    .trustbar-grid { grid-template-columns: 1fr 1fr !important; }
    .calc-result-grid { grid-template-columns: 1fr !important; }
    .contact-form-inner { grid-template-columns: 1fr !important; }
    .modal-form-grid { grid-template-columns: 1fr !important; }
    .service-benefit-grid { grid-template-columns: 1fr !important; }
}
