/* ===== DESIGN TOKENS - CSS VARIABLES ===== */

:root {
    /* ===== TYPOGRAPHY ===== */
    --font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-display: 'Source Sans 3', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    --font-size-base: 1.25rem;    /* 20px */
    --font-size-sm: 1.0625rem;    /* 17px */
    --font-size-lg: 1.375rem;     /* 22px */

    /* ===== BRAND COLORS (match tailwind.config.js) ===== */
    --brand-primary: #1A365D;
    --brand-primary-rgb: 26, 54, 93;
    --brand-secondary: #4A90A4;
    --brand-accent: #B8860B;
    --brand-info: #6B5B95;
    --brand-success: #74B72E;
    --brand-warning: #B8860B;
    --brand-danger: #BC544B;

    /* ===== NEUTRAL COLORS ===== */
    --color-gray-light: #B8C0C8;
    --color-gray-base: #708090;
    --color-gray-dark: #384048;
    --color-white: #FFFFFF;
    --color-black: #000000;
    --color-transparent: transparent;

    /* ===== SPACING ===== */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;

    /* ===== BORDER RADIUS ===== */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;

    /* ===== SHADOWS ===== */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-card: 0 1px 3px 0 rgba(0, 0, 0, 0.08), 0 1px 2px -1px rgba(0, 0, 0, 0.06);
    --shadow-card-hover: 0 12px 24px -8px rgba(26, 54, 93, 0.15), 0 4px 8px -4px rgba(0, 0, 0, 0.08);

    /* ===== TRANSITIONS ===== */
    --transition-fast: 0.15s ease-in-out;
    --transition-normal: 0.3s ease-in-out;
    --transition-slow: 0.5s ease-in-out;

    /* ===== Z-INDEX ===== */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
}

/* ===== BASE STYLES ===== */

* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    font-weight: 400;
    line-height: 1.6;
    color: var(--color-gray-dark);
    background-color: #f1f5f9;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
    color: var(--color-gray-dark);
}

h1 { font-size: 3.5rem; font-weight: 700; }
h2 { font-size: 2.75rem; font-weight: 600; }
h3 { font-size: 2.375rem; }
h4 { font-size: 2rem; }
h5 { font-size: 1.625rem; }
h6 { font-size: 1.375rem; }

p {
    margin-bottom: var(--spacing-md);
    color: var(--color-gray-base);
}

a {
    color: var(--brand-primary);
    text-decoration: none;
    transition: var(--transition-normal);
}

a:hover {
    color: var(--brand-accent);
}

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

/* ===== LAYOUT ===== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

@media (min-width: 640px) {
    .container { padding: 0 1.5rem; }
}
@media (min-width: 1024px) {
    .container { padding: 0 2rem; }
}

/* ===== BACKGROUNDS ===== */

.bg-hero-subtle {
    background: linear-gradient(135deg, rgba(26, 54, 93, 0.2) 0%, rgba(248, 250, 252, 1) 40%, rgba(248, 250, 252, 1) 60%, rgba(184, 134, 11, 0.2) 100%);
}

/* ===== BUTTONS ===== */

.btn-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: var(--radius-xl);
    background-color: var(--brand-accent);
    color: var(--color-white);
    font-weight: 600;
    border: 1px solid rgba(184, 134, 11, 0.3);
    box-shadow: var(--shadow-md);
    transition: all 0.2s;
    text-decoration: none;
}

.btn-cta:hover {
    box-shadow: var(--shadow-lg);
    background-color: var(--color-white);
    color: var(--brand-accent);
    border-color: var(--brand-accent);
}

.btn-filled {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-xl);
    font-weight: 600;
    border: 1px solid;
    box-shadow: var(--shadow-md);
    transition: all 0.2s;
    text-decoration: none;
}

.btn-filled--primary {
    background-color: var(--brand-primary);
    color: var(--color-white);
    border-color: rgba(26, 54, 93, 0.3);
}
.btn-filled--primary:hover {
    background-color: var(--color-white);
    color: var(--brand-primary);
    border-color: var(--brand-primary);
}

.btn-filled--accent {
    background-color: var(--brand-accent);
    color: var(--color-white);
    border-color: rgba(184, 134, 11, 0.3);
}
.btn-filled--accent:hover {
    background-color: var(--color-white);
    color: var(--brand-accent);
    border-color: var(--brand-accent);
}

.btn-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.875rem 1rem;
    border-radius: var(--radius-lg);
    background-color: var(--brand-accent);
    color: var(--color-white);
    font-weight: 500;
    border: 1px solid rgba(26, 54, 93, 0.2);
    box-shadow: var(--shadow-md);
    transition: all 0.2s;
    cursor: pointer;
    font-size: 1.125rem;
}

.btn-submit:hover {
    background-color: var(--color-white);
    color: var(--brand-accent);
    border-color: var(--brand-accent);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ===== CARDS ===== */

.card-feature {
    border-radius: var(--radius-xl);
    border: 1px solid rgba(226, 232, 240, 0.5);
    background-color: rgba(255, 255, 255, 0.9);
    padding: 1.5rem 2rem;
    display: flex;
    flex-direction: column;
    text-align: left;
    box-shadow: var(--shadow-card);
    transition: all 0.3s;
    min-height: 200px;
}

.card-feature h3 {
    font-size: 1.5rem;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.5em;
    align-items: baseline;
}

.card-feature p,
.card-feature ul,
.card-feature li {
    font-size: 1.125rem;
}

/* Bullet lists: text wraps in line with first line, not under bullet */
.card-feature ul {
    list-style-position: outside;
    padding-left: 1.5em;
}

/* Card heading icon: in first column, text wraps in second */
.card-heading__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1em;
    height: 1em;
    flex-shrink: 0;
}

.card-heading__icon svg {
    width: 100%;
    height: 100%;
}

/* ===== SECTION HEADINGS (same pattern as card headings) ===== */

.section-heading {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.5em;
    align-items: baseline;
}

.section-heading__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1em;
    height: 1em;
    flex-shrink: 0;
}

.section-heading__icon svg {
    width: 100%;
    height: 100%;
}

/* Slightly smaller section headings on mobile */
@media (max-width: 767px) {
    h2.section-heading,
    section h2 {
        font-size: 1.875rem;
    }
}

@media (min-width: 768px) {
    .card-feature { padding: 2rem; }
}

.card-feature:hover {
    box-shadow: var(--shadow-card-hover);
    border-color: rgba(203, 213, 225, 0.7);
    background-color: var(--color-white);
}

.card-form {
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(226, 232, 240, 0.6);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.card-form:hover {
    box-shadow: var(--shadow-card-hover);
}

.card-callout {
    border-radius: var(--radius-xl);
    border: 1px solid rgba(226, 232, 240, 0.5);
    background-color: rgba(184, 134, 11, 0.05);
    padding: 1.5rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    box-shadow: var(--shadow-card);
}

@media (min-width: 768px) {
    .card-callout {
        flex-direction: row;
        padding: 2rem;
    }
}

/* ===== FORMS ===== */

.input-base {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(226, 232, 240, 0.8);
    background-color: var(--color-white);
    color: var(--color-gray-dark);
    font-size: 1.125rem;
    transition: box-shadow 0.2s;
}

.input-base::placeholder {
    color: #94a3b8;
}

.input-base:focus {
    outline: none;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 2px rgba(var(--brand-primary-rgb), 0.2);
}

textarea.input-base {
    resize: vertical;
    min-height: 140px;
}

.label-base {
    display: block;
    font-size: 1rem;
    font-weight: 500;
    color: #334155;
    margin-bottom: 0.375rem;
}

select.input-base {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m1 6 7 7 7-7'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    background-size: 16px 12px;
    padding-right: 2.5rem;
}

/* ===== HEADER & FOOTER ===== */

.app-header {
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
    background: linear-gradient(180deg, var(--brand-primary) 0%, #243342 100%);
    color: var(--color-white);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06), 0 4px 12px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.app-header__inner {
    min-height: 56px;
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.app-header__logo {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.375rem;
    letter-spacing: -0.02em;
    color: var(--color-white);
    text-decoration: none;
    transition: color 0.2s;
}

.app-header__logo:hover {
    color: var(--color-white);
}

.app-header__logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: var(--radius-lg);
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--brand-accent);
    flex-shrink: 0;
}

.app-header__nav {
    display: none;
}

@media (min-width: 768px) {
    .app-header__nav {
        display: flex;
        align-items: center;
        gap: 0.25rem;
    }
}

.app-header__nav ul {
    display: flex;
    flex-direction: column;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0;
}

@media (min-width: 768px) {
    .app-header__nav ul {
        flex-direction: row;
        align-items: center;
        gap: 0.25rem;
    }
}

.app-header__link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    font-size: 1.0625rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: all 0.2s;
}

.app-header__link:hover {
    color: var(--color-white);
    background-color: rgba(255, 255, 255, 0.1);
}

.app-header__link--cta {
    font-weight: 600;
    background-color: var(--brand-accent);
    color: var(--color-white);
}

.app-header__link--cta:hover {
    background-color: var(--color-white);
    color: var(--brand-accent);
}

.app-header__mobile-toggle {
    display: flex;
    padding: 0.625rem;
    border-radius: var(--radius-lg);
    color: rgba(255, 255, 255, 0.9);
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

@media (min-width: 768px) {
    .app-header__mobile-toggle {
        display: none;
    }
}

.app-header__mobile-toggle:hover {
    color: var(--color-white);
    background-color: rgba(255, 255, 255, 0.1);
}

/* Mobile nav expanded */
.app-header__nav.show {
    display: flex !important;
    flex-direction: column;
    width: 100%;
}

@media (max-width: 767px) {
    .app-header__inner {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }
    .app-header__nav:not(.show) {
        display: none !important;
    }
    .app-header__nav.show {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        max-height: calc(100vh - 4rem);
        overflow-y: auto;
        background: linear-gradient(180deg, #243342 0%, var(--brand-primary) 100%);
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
        padding: 0.5rem 0 1rem;
    }
    .app-header__nav ul {
        width: 100%;
    }
    .app-header__link {
        padding: 0.75rem 1rem 0.75rem 2.5rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
}

/* ===== FOOTER ===== */

.app-footer {
    margin-top: auto;
    background: linear-gradient(180deg, var(--brand-primary) 0%, #243342 100%);
    color: var(--color-white);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 -1px 0 rgba(255, 255, 255, 0.06);
}

.app-footer__top {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.app-footer__logo {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.375rem;
    color: var(--color-white);
    text-decoration: none;
}

.app-footer__logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: var(--radius-lg);
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--brand-accent);
}

.app-footer__links {
    display: none;
}

@media (min-width: 768px) {
    .app-footer__links {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: flex-end;
        gap: 0.25rem;
    }
}

.app-footer__link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 0.75rem;
    font-size: 1.0625rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    border-radius: var(--radius-lg);
    transition: all 0.2s;
}

.app-footer__link:hover {
    color: var(--color-white);
    background-color: rgba(255, 255, 255, 0.1);
}

/* ===== LANDING PAGE GRIDS ===== */

.dream-outcome-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .dream-outcome-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

.services-cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .services-cards-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }

    .services-card-header {
        min-height: 5rem;
    }
}

/* ===== UTILITY CLASSES ===== */

.font-display {
    font-family: var(--font-display);
}

.font-sans {
    font-family: var(--font-family);
}

.text-gray-dark { color: var(--color-gray-dark); }
.text-slate-500 { color: #64748b; }
.text-slate-600 { color: #475569; }
.text-slate-700 { color: #334155; }
.text-brand-primary { color: var(--brand-primary); }
.text-brand-secondary { color: var(--brand-secondary); }
.text-brand-accent { color: var(--brand-accent); }
.text-brand-success { color: var(--brand-success); }
.text-brand-danger { color: var(--brand-danger); }

.bg-white { background-color: var(--color-white); }
.bg-brand-primary\/10 { background-color: rgba(26, 54, 93, 0.1); }
.bg-brand-secondary\/10 { background-color: rgba(74, 144, 164, 0.1); }
.bg-brand-accent\/10 { background-color: rgba(184, 134, 11, 0.1); }

.border-brand-primary\/20 { border-color: rgba(26, 54, 93, 0.2); }
.border-brand-secondary\/20 { border-color: rgba(74, 144, 164, 0.2); }
.border-brand-accent\/20 { border-color: rgba(184, 134, 11, 0.2); }

.flex { display: flex; }
.inline-flex { display: inline-flex; }
.flex-col { flex-direction: column; }
.flex-1 { flex: 1; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-start { justify-content: flex-start; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

.shrink-0 { flex-shrink: 0; }

.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }

@media (min-width: 768px) {
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.w-full { width: 100%; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-6xl { max-width: 72rem; }
.max-w-7xl { max-width: 80rem; }

.mx-auto { margin-left: auto; margin-right: auto; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-8 { margin-top: 2rem; }
.mt-auto { margin-top: auto; }
.me-3 { margin-inline-end: 0.75rem; }
.me-4 { margin-inline-end: 1rem; }

.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }

@media (min-width: 768px) {
    .md\:p-8 { padding: 2rem; }
    .md\:mb-8 { margin-bottom: 2rem; }
    .md\:mb-10 { margin-bottom: 2.5rem; }
    .md\:mb-12 { margin-bottom: 3rem; }
}

.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-24 { padding-top: 6rem; padding-bottom: 6rem; }
.py-28 { padding-top: 7rem; padding-bottom: 7rem; }
.py-36 { padding-top: 9rem; padding-bottom: 9rem; }

@media (min-width: 768px) {
    .md\:py-32 { padding-top: 8rem; padding-bottom: 8rem; }
    .md\:py-36 { padding-top: 9rem; padding-bottom: 9rem; }
}

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

.text-sm { font-size: 1.0625rem; }
.text-base { font-size: 1.125rem; }
.text-lg { font-size: 1.375rem; }
.text-xl { font-size: 1.5rem; }
.text-2xl { font-size: 1.75rem; }
.text-3xl { font-size: 2.625rem; }
.text-4xl { font-size: 2.75rem; }
.text-5xl { font-size: 3.5rem; }
.text-6xl { font-size: 4.25rem; }
.text-7xl { font-size: 5rem; }

.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

.leading-relaxed { line-height: 1.625; }
.leading-\[1\.1\] { line-height: 1.1; }
.tracking-tight { letter-spacing: -0.025em; }

.relative { position: relative; }
.absolute { position: absolute; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.pointer-events-none { pointer-events: none; }
.overflow-hidden { overflow: hidden; }
.z-10 { z-index: 10; }

.rounded-xl { border-radius: var(--radius-xl); }
.rounded-2xl { border-radius: 1rem; }
.border { border-width: 1px; }
.border-slate-200\/50 { border-color: rgba(226, 232, 240, 0.5); }
.shadow-sm { box-shadow: var(--shadow-sm); }

.list-none { list-style: none; }
.list-disc { list-style-type: disc; }
.list-inside { list-style-position: inside; }

.pl-5 { padding-left: 1.25rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }

.hidden { display: none; }

/* Animation for loader */
@keyframes spin {
    to { transform: rotate(360deg); }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

/* Form error/success messages */
.form-error {
    border-radius: var(--radius-lg);
    border: 1px solid rgba(188, 84, 75, 0.3);
    background-color: rgba(188, 84, 75, 0.05);
    color: var(--brand-danger);
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-weight: 500;
}

.form-success {
    border-radius: var(--radius-lg);
    border: 1px solid rgba(116, 183, 46, 0.3);
    background-color: rgba(116, 183, 46, 0.05);
    color: var(--brand-success);
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-weight: 500;
}
