/*
 * Longhorn Agent — Public Page Styles
 * Theme: Navy & Burnt Orange
 * Used by: all public pages, signup.php, success.php
 * (Admin → admin.css | Client portal → portal.css)
 */

/* ─── Reset & Base ──────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    /* Primary palette — Navy & Burnt Orange */
    --navy:        #1B2A4A;
    --navy-dark:   #0F1C30;
    --navy-mid:    #2A3D6B;
    --orange:      #C8541A;
    --orange-light:#E06828;
    --cream:       #F8F7F4;
    --cream-dark:  #EDE8E0;
    --white:       #FFFFFF;
    --text:        #1a1a1a;
    --text-muted:  #5a6a7e;
    --border:      #D5D0C8;
    --green:       #2E7D32;
    --red:         #C62828;
    --radius:      8px;
    --shadow:      0 2px 12px rgba(15,28,48,0.12);
    --shadow-lg:   0 6px 30px rgba(15,28,48,0.18);

    /* Aliases — keep old names so signup.php / success.php still compile */
    --brown:       var(--navy);
    --brown-dark:  var(--navy-dark);
    --brown-mid:   var(--navy-mid);
    --gold:        var(--orange);
    --gold-light:  var(--orange-light);
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    background: var(--cream);
    line-height: 1.65;
    min-height: 100vh;
}

a { color: var(--navy); text-decoration: underline; }
a:hover { color: var(--orange); }

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


/* ─── Top Nav ───────────────────────────────────────────────────────────── */

.main-nav {
    background: var(--navy-dark);
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.35);
}

.main-nav__brand {
    color: var(--white);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: bold;
    letter-spacing: 0.04em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.main-nav__brand img {
    height: 44px;
    width: auto;
}

.main-nav__brand:hover { opacity: 0.9; color: var(--white); }

.main-nav__links {
    display: flex;
    align-items: center;
    gap: 28px;
}

.main-nav__links a {
    color: rgba(255,255,255,0.78);
    text-decoration: none;
    font-size: 0.9rem;
    font-family: Arial, sans-serif;
    transition: color 0.15s;
    white-space: nowrap;
}

.main-nav__links a:hover { color: var(--white); }

.main-nav__links .btn-nav {
    background: var(--orange);
    color: var(--white);
    padding: 7px 18px;
    border-radius: 4px;
    font-weight: bold;
    text-decoration: none;
    font-size: 0.88rem;
    transition: background 0.15s;
}

.main-nav__links .btn-nav:hover {
    background: var(--orange-light);
    color: var(--white);
}

/* Hamburger */
.main-nav__toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.6rem;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
}

@media (max-width: 720px) {
    .main-nav { padding: 0 16px; }
    .main-nav__toggle { display: block; }
    .main-nav__links {
        display: none;
        position: absolute;
        top: 68px;
        left: 0;
        right: 0;
        background: var(--navy-dark);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 8px 0 16px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    }
    .main-nav__links.open { display: flex; }
    .main-nav__links a {
        padding: 12px 24px;
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }
    .main-nav__links .btn-nav {
        margin: 12px 24px 0;
        text-align: center;
        border-radius: 4px;
    }
}


/* ─── Hero Section ──────────────────────────────────────────────────────── */

.hero {
    background: var(--navy-dark);
    color: var(--white);
    padding: 80px 24px 72px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('/images/Hero Banner.png') center/cover no-repeat;
    opacity: 0.18;
    z-index: 0;
}

.hero > * { position: relative; z-index: 1; }

.hero__eyebrow {
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--orange);
    margin-bottom: 16px;
    font-weight: bold;
}

.hero__title {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: bold;
    line-height: 1.15;
    margin-bottom: 20px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero__title em {
    font-style: normal;
    color: var(--orange);
}

.hero__sub {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.80);
    max-width: 540px;
    margin: 0 auto 36px;
    line-height: 1.7;
}

.hero__btns {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-hero-primary {
    background: var(--orange);
    color: var(--white);
    padding: 14px 32px;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: bold;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
    display: inline-block;
}

.btn-hero-primary:hover {
    background: var(--orange-light);
    color: var(--white);
    transform: translateY(-1px);
}

.btn-hero-outline {
    background: transparent;
    color: var(--white);
    padding: 13px 30px;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: bold;
    text-decoration: none;
    border: 2px solid rgba(255,255,255,0.40);
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
    display: inline-block;
}

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


/* ─── Trust Bar ─────────────────────────────────────────────────────────── */

.trust-bar {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
}

.trust-bar__item {
    padding: 14px 28px;
    font-size: 0.82rem;
    font-weight: bold;
    color: var(--navy);
    letter-spacing: 0.02em;
    display: flex;
    align-items: center;
    gap: 8px;
    border-right: 1px solid var(--border);
}

.trust-bar__item:last-child { border-right: none; }

.trust-bar__item .check {
    color: var(--green);
    font-size: 1rem;
}

@media (max-width: 640px) {
    .trust-bar { border-bottom: none; }
    .trust-bar__item {
        border-right: none;
        border-bottom: 1px solid var(--border);
        width: 50%;
        justify-content: center;
    }
}


/* ─── Section Layout ────────────────────────────────────────────────────── */

.section {
    padding: 72px 24px;
}

.section--alt {
    background: var(--white);
}

.section--dark {
    background: var(--navy);
    color: var(--white);
}

.section__inner {
    max-width: 1060px;
    margin: 0 auto;
}

.section__inner--narrow {
    max-width: 740px;
    margin: 0 auto;
}

.section__eyebrow {
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--orange);
    font-weight: bold;
    margin-bottom: 10px;
    text-align: center;
}

.section__title {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: bold;
    color: var(--navy);
    text-align: center;
    margin-bottom: 12px;
    line-height: 1.2;
}

.section--dark .section__title { color: var(--white); }

.section__sub {
    font-size: 1rem;
    color: var(--text-muted);
    text-align: center;
    max-width: 580px;
    margin: 0 auto 48px;
    line-height: 1.7;
}

.section--dark .section__sub { color: rgba(255,255,255,0.72); }


/* ─── Feature Cards ─────────────────────────────────────────────────────── */

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-top: 48px;
}

.feature-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    border-top: 3px solid var(--orange);
}

.section--alt .feature-card { background: var(--cream); }

.feature-card__icon {
    font-size: 2rem;
    margin-bottom: 14px;
}

.feature-card__title {
    font-size: 1.05rem;
    font-weight: bold;
    color: var(--navy);
    margin-bottom: 8px;
}

.feature-card__body {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.65;
}


/* ─── Steps (How It Works) ──────────────────────────────────────────────── */

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
    margin-top: 48px;
    position: relative;
}

.step {
    text-align: center;
}

.step__num {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--orange);
    color: var(--white);
    font-size: 1.3rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.step__title {
    font-size: 1rem;
    font-weight: bold;
    color: var(--navy);
    margin-bottom: 8px;
}

.step__body {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.65;
}


/* ─── Pricing Cards ─────────────────────────────────────────────────────── */

.plan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.plan-card {
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px 24px;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
    position: relative;
    text-align: center;
}

.plan-card:hover {
    border-color: var(--navy-mid);
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.plan-card.selected,
.plan-card.featured {
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(200,84,26,0.15), var(--shadow);
}

.plan-card__badge {
    display: inline-block;
    background: var(--orange);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: bold;
    font-family: Arial, sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 12px;
}

.plan-card__name {
    font-size: 1.15rem;
    font-weight: bold;
    color: var(--navy);
    margin-bottom: 8px;
}

.plan-card__price {
    font-size: 2.4rem;
    font-weight: bold;
    color: var(--navy-dark);
    line-height: 1;
    margin-bottom: 4px;
}

.plan-card__period {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-family: Arial, sans-serif;
    margin-bottom: 16px;
}

.plan-card__features {
    list-style: none;
    text-align: left;
    font-size: 0.9rem;
    font-family: Arial, sans-serif;
    color: var(--text-muted);
    line-height: 2;
    margin-bottom: 8px;
}

.plan-card__features li::before {
    content: '✓ ';
    color: var(--green);
    font-weight: bold;
}

.plan-card__radio {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.plan-card__check {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-radius: 50%;
    background: var(--white);
    margin-top: 12px;
    transition: background 0.15s, border-color 0.15s;
    vertical-align: middle;
}

.plan-card.selected .plan-card__check {
    background: var(--navy);
    border-color: var(--navy);
    box-shadow: inset 0 0 0 4px var(--white);
}


/* ─── Page Wrapper (signup, success, inner pages) ───────────────────────── */

.page-wrap {
    max-width: 960px;
    margin: 0 auto;
    padding: 48px 24px 80px;
}

.page-wrap--narrow {
    max-width: 640px;
}

.page-title {
    font-size: 2rem;
    color: var(--navy);
    text-align: center;
    margin-bottom: 8px;
}

.page-subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 40px;
    font-family: Arial, sans-serif;
}


/* ─── Forms ─────────────────────────────────────────────────────────────── */

.signup-form {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow);
}

.form-section-title {
    font-size: 0.85rem;
    font-weight: bold;
    color: var(--navy);
    margin: 24px 0 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--cream-dark);
    font-family: Arial, sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

.form-group { margin-bottom: 16px; }

.form-group label {
    display: block;
    font-size: 0.88rem;
    font-weight: bold;
    color: var(--navy);
    margin-bottom: 5px;
    font-family: Arial, sans-serif;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 5px;
    font-size: 0.95rem;
    font-family: Arial, sans-serif;
    color: var(--text);
    background: var(--white);
    transition: border-color 0.15s, box-shadow 0.15s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--navy);
    box-shadow: 0 0 0 3px rgba(27,42,74,0.12);
}

.form-hint  { font-size: 0.80rem; color: var(--text-muted); margin-top: 4px; font-family: Arial, sans-serif; }
.form-error { font-size: 0.82rem; color: var(--red); margin-top: 4px; font-family: Arial, sans-serif; }


/* ─── Buttons ───────────────────────────────────────────────────────────── */

.btn {
    display: inline-block;
    padding: 12px 28px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-family: Arial, sans-serif;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
    text-align: center;
}

.btn:active { transform: translateY(1px); }

.btn--primary {
    background: var(--navy);
    color: var(--white);
}

.btn--primary:hover {
    background: var(--navy-dark);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(15,28,48,0.25);
}

.btn--gold,
.btn--orange {
    background: var(--orange);
    color: var(--white);
}

.btn--gold:hover,
.btn--orange:hover {
    background: var(--orange-light);
    color: var(--white);
}

.btn--outline-white {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.50);
}

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

.btn--block { display: block; width: 100%; }
.btn--lg { padding: 16px 36px; font-size: 1.1rem; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }


/* ─── Alerts & Flash ────────────────────────────────────────────────────── */

.alert, .flash {
    padding: 14px 18px;
    border-radius: var(--radius);
    font-family: Arial, sans-serif;
    font-size: 0.92rem;
    margin-bottom: 24px;
}

.alert--success, .flash--success { background: #E8F5E9; border: 1px solid #A5D6A7; color: #1B5E20; }
.alert--error,   .flash--error   { background: #FFEBEE; border: 1px solid #EF9A9A; color: #B71C1C; }
.alert--info,    .flash--info    { background: #E3F2FD; border: 1px solid #90CAF9; color: #0D47A1; }
.flash--warning                  { background: #FFF8E1; border: 1px solid #FFE082; color: #7A5000; }


/* ─── Success Page ──────────────────────────────────────────────────────── */

.success-box {
    background: var(--white);
    border: 1px solid #A5D6A7;
    border-radius: var(--radius);
    padding: 40px 32px;
    text-align: center;
    box-shadow: var(--shadow);
}

.success-icon { font-size: 3rem; margin-bottom: 16px; }

.success-box h2 { font-size: 1.7rem; color: var(--navy); margin-bottom: 12px; }

.success-box p {
    color: var(--text-muted);
    font-family: Arial, sans-serif;
    margin-bottom: 16px;
    font-size: 1rem;
}

.next-steps {
    text-align: left;
    background: var(--cream);
    border-radius: var(--radius);
    padding: 20px 24px;
    margin: 24px 0;
}

.next-steps h3 { font-size: 1rem; color: var(--navy); margin-bottom: 12px; font-family: Arial, sans-serif; }
.next-steps ol { font-family: Arial, sans-serif; font-size: 0.92rem; color: var(--text); padding-left: 20px; line-height: 2; }


/* ─── CTA Banner ────────────────────────────────────────────────────────── */

.cta-banner {
    background: var(--orange);
    color: var(--white);
    text-align: center;
    padding: 56px 24px;
}

.cta-banner__title {
    font-size: 1.9rem;
    font-weight: bold;
    margin-bottom: 12px;
}

.cta-banner__sub {
    font-size: 1rem;
    opacity: 0.88;
    margin-bottom: 28px;
}

.cta-banner .btn--white {
    background: var(--white);
    color: var(--orange);
    padding: 14px 36px;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
    transition: opacity 0.15s, transform 0.1s;
}

.cta-banner .btn--white:hover {
    opacity: 0.92;
    transform: translateY(-1px);
    color: var(--orange);
}


/* ─── FAQ Accordion ─────────────────────────────────────────────────────── */

.faq-item {
    border-bottom: 1px solid var(--border);
}

.faq-item:first-child { border-top: 1px solid var(--border); }

.faq-q {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 18px 0;
    font-size: 1rem;
    font-weight: bold;
    color: var(--navy);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    font-family: Arial, sans-serif;
}

.faq-q:hover { color: var(--orange); }

.faq-q__arrow {
    font-size: 1.2rem;
    transition: transform 0.2s;
    flex-shrink: 0;
    color: var(--orange);
}

.faq-item.open .faq-q__arrow { transform: rotate(180deg); }

.faq-a {
    display: none;
    padding: 0 0 18px;
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.75;
    font-family: Arial, sans-serif;
}

.faq-item.open .faq-a { display: block; }


/* ─── Blog ──────────────────────────────────────────────────────────────── */

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 28px;
    margin-top: 40px;
}

.blog-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.15s;
}

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

.blog-card__body { padding: 22px; }

.blog-card__date {
    font-size: 0.78rem;
    color: var(--orange);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.blog-card__title {
    font-size: 1.05rem;
    font-weight: bold;
    color: var(--navy);
    margin-bottom: 10px;
    line-height: 1.3;
}

.blog-card__title a {
    color: inherit;
    text-decoration: none;
}

.blog-card__title a:hover { color: var(--orange); }

.blog-card__excerpt {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 14px;
}

.blog-card__more {
    font-size: 0.85rem;
    font-weight: bold;
    color: var(--orange);
    text-decoration: none;
}

.blog-card__more:hover { color: var(--orange-light); }

/* Blog post body */
.post-body { max-width: 720px; margin: 0 auto; font-size: 1rem; line-height: 1.8; color: var(--text); }
.post-body h2 { font-size: 1.4rem; color: var(--navy); margin: 36px 0 14px; }
.post-body h3 { font-size: 1.15rem; color: var(--navy); margin: 28px 0 10px; }
.post-body p  { margin-bottom: 18px; }
.post-body ul, .post-body ol { padding-left: 24px; margin-bottom: 18px; }
.post-body li { margin-bottom: 6px; line-height: 1.7; }
.post-body a  { color: var(--orange); }
.post-body blockquote {
    border-left: 4px solid var(--orange);
    padding: 12px 20px;
    margin: 24px 0;
    background: var(--cream);
    font-style: italic;
    color: var(--text-muted);
}


/* ─── Footer ────────────────────────────────────────────────────────────── */

.main-footer {
    background: var(--navy-dark);
    color: rgba(255,255,255,0.55);
    padding: 48px 24px 28px;
    font-family: Arial, sans-serif;
    font-size: 0.82rem;
}

.main-footer__inner {
    max-width: 1060px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 36px;
}

.main-footer__brand {
    color: var(--white);
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 10px;
    display: block;
    text-decoration: none;
}

.main-footer__brand:hover { color: rgba(255,255,255,0.85); }

.main-footer__tagline {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.50);
    line-height: 1.6;
    margin-bottom: 14px;
}

.main-footer__col-title {
    color: var(--white);
    font-weight: bold;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 12px;
}

.main-footer__links { list-style: none; }
.main-footer__links li { margin-bottom: 8px; }
.main-footer__links a { color: rgba(255,255,255,0.55); text-decoration: none; }
.main-footer__links a:hover { color: var(--white); }

.main-footer__bottom {
    border-top: 1px solid rgba(255,255,255,0.10);
    padding-top: 20px;
    text-align: center;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.35);
}

.main-footer__bottom a { color: rgba(255,255,255,0.45); text-decoration: none; }
.main-footer__bottom a:hover { color: rgba(255,255,255,0.75); }

@media (max-width: 640px) {
    .main-footer__inner { grid-template-columns: 1fr; gap: 28px; }
}


/* ─── Responsive ────────────────────────────────────────────────────────── */

@media (max-width: 640px) {
    .page-title  { font-size: 1.5rem; }
    .page-wrap   { padding: 28px 16px 60px; }
    .signup-form { padding: 20px 16px; }
    .hero        { padding: 52px 16px 48px; }
    .section     { padding: 48px 16px; }
    .plan-grid   { grid-template-columns: 1fr; }
    .steps       { grid-template-columns: 1fr; }
    .feature-grid { grid-template-columns: 1fr; }
}
