/* ============================================
   Guaranteed Auto Finance Llc — Stylesheet
   Deep Navy + Warm Gold | Confident Corporate
   ============================================ */

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

:root {
    --navy: #1e3a5f;
    --navy-deep: #152a45;
    --navy-light: #2a4f76;
    --gold: #d4a017;
    --gold-light: #e8b930;
    --gold-pale: #fdf3d7;
    --white: #ffffff;
    --off-white: #f8f7f4;
    --gray-50: #fafaf8;
    --gray-100: #f0efe9;
    --gray-200: #e2e0d8;
    --gray-300: #c4c1b6;
    --gray-500: #7a766d;
    --gray-700: #3d3a34;
    --gray-900: #1a1814;
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --shadow-sm: 0 1px 3px rgba(30, 58, 95, 0.08);
    --shadow-md: 0 4px 20px rgba(30, 58, 95, 0.10);
    --shadow-lg: 0 8px 40px rgba(30, 58, 95, 0.14);
    --shadow-gold: 0 4px 20px rgba(212, 160, 23, 0.25);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: var(--font-body);
    color: var(--gray-700);
    background: var(--white);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

a {
    color: inherit;
    text-decoration: none;
}

ul { list-style: none; }

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    background: var(--navy);
    color: var(--white);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    z-index: 9999;
    font-weight: 600;
    transition: top var(--transition);
}
.skip-link:focus {
    top: 16px;
}

/* ---------- HEADER ---------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--gray-200);
    transition: box-shadow var(--transition);
}
.header.scrolled {
    box-shadow: var(--shadow-md);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}
.logo--light .logo__name,
.logo--light .logo__sub {
    color: var(--white);
}

.logo__icon {
    flex-shrink: 0;
}

.logo__text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}
.logo__name {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--navy);
}
.logo__sub {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--gray-500);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* Nav */
.nav__list {
    display: flex;
    align-items: center;
    gap: 4px;
}
.nav__link {
    display: block;
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray-700);
    border-radius: var(--radius-sm);
    transition: color var(--transition), background var(--transition);
}
.nav__link:hover {
    color: var(--navy);
    background: var(--gray-100);
}
.nav__link--cta {
    background: var(--navy);
    color: var(--white) !important;
    margin-left: 8px;
}
.nav__link--cta:hover {
    background: var(--navy-light);
}

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: none;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    cursor: pointer;
    padding: 8px;
}
.nav-toggle__line {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--navy);
    border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__line:nth-child(2) {
    opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ---------- HERO ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--navy-deep);
    overflow: hidden;
}
.hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.45;
}
.hero__scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(21, 42, 69, 0.92) 0%,
        rgba(30, 58, 95, 0.82) 50%,
        rgba(21, 42, 69, 0.75) 100%
    );
}

.hero__content {
    position: relative;
    z-index: 1;
    padding: 120px 0 80px;
    max-width: 780px;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(212, 160, 23, 0.15);
    border: 1px solid rgba(212, 160, 23, 0.35);
    color: var(--gold-light);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 8px 16px;
    border-radius: 50px;
    margin-bottom: 28px;
}

.hero__headline {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 24px;
}
.hero__accent {
    color: var(--gold);
}

.hero__lead {
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.75;
    margin-bottom: 40px;
    max-width: 600px;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 56px;
}

.hero__trust {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
}
.hero__trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9rem;
    font-weight: 500;
}
.hero__trust-item svg {
    flex-shrink: 0;
}

.hero__scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    z-index: 1;
}
.hero__scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(212, 160, 23, 0.7), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
    0%, 100% { opacity: 1; transform: scaleY(1); }
    50% { opacity: 0.4; transform: scaleY(0.6); }
}

/* ---------- BUTTONS ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}
.btn--gold {
    background: var(--gold);
    color: var(--navy-deep);
    border-color: var(--gold);
}
.btn--gold:hover {
    background: var(--gold-light);
    border-color: var(--gold-light);
    box-shadow: var(--shadow-gold);
    transform: translateY(-2px);
}
.btn--outline-light {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.4);
}
.btn--outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
}
.btn--dark {
    background: var(--navy);
    color: var(--white);
    border-color: var(--navy);
}
.btn--dark:hover {
    background: var(--navy-light);
    border-color: var(--navy-light);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}
.btn--full {
    width: 100%;
    justify-content: center;
}

/* ---------- SECTION COMMON ---------- */
.section-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 12px;
}
.section-tag--light {
    color: var(--gold-light);
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 700;
    color: var(--navy);
    line-height: 1.2;
    margin-bottom: 16px;
}
.section-title--light {
    color: var(--white);
}

.text-gold {
    color: var(--gold);
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--gray-500);
    max-width: 560px;
    line-height: 1.7;
}
.section-subtitle--light {
    color: rgba(255, 255, 255, 0.7);
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}
.section-header .section-subtitle {
    margin: 0 auto;
}

/* ---------- SERVICES ---------- */
.services {
    padding: 100px 0;
    background: var(--white);
}
.services__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    transition: all var(--transition);
}
.service-card:hover {
    border-color: var(--gold);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}
.service-card__icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gold-pale);
    border-radius: var(--radius-md);
    margin-bottom: 20px;
}
.service-card__title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 10px;
}
.service-card__desc {
    font-size: 0.92rem;
    color: var(--gray-500);
    line-height: 1.7;
}

/* ---------- ABOUT ---------- */
.about {
    padding: 100px 0;
    background: var(--off-white);
}
.about__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.about__images {
    position: relative;
}
.about__img-main {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.about__img-main img {
    width: 100%;
    height: 420px;
    object-fit: cover;
}
.about__img-secondary {
    position: absolute;
    bottom: -40px;
    right: -30px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 4px solid var(--white);
}
.about__img-secondary img {
    width: 240px;
    height: 180px;
    object-fit: cover;
}

.about__experience-badge {
    position: absolute;
    top: -20px;
    left: -20px;
    background: var(--navy);
    color: var(--white);
    padding: 20px 24px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    text-align: center;
    z-index: 2;
}
.experience-badge__number {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--gold);
}
.experience-badge__label {
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.about__content .section-title {
    margin-bottom: 24px;
}
.about__text {
    font-size: 0.95rem;
    color: var(--gray-500);
    line-height: 1.8;
    margin-bottom: 16px;
}
.about__text strong {
    color: var(--navy);
}

.about__highlights {
    margin-top: 32px;
    display: grid;
    gap: 14px;
}
.highlight-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--gray-700);
}

/* ---------- WHY US ---------- */
.why-us {
    padding: 100px 0;
    background: var(--navy);
    position: relative;
    overflow: hidden;
}
.why-us::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(212, 160, 23, 0.08) 0%, transparent 70%);
    pointer-events: none;
}
.why-us__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    position: relative;
    z-index: 1;
}

.why-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    transition: all var(--transition);
}
.why-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(212, 160, 23, 0.4);
    transform: translateY(-4px);
}
.why-card__number {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    color: rgba(212, 160, 23, 0.2);
    line-height: 1;
    margin-bottom: 16px;
}
.why-card__title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 12px;
}
.why-card__text {
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.75;
}

/* ---------- FINANCING ---------- */
.financing {
    padding: 100px 0;
    background: var(--off-white);
}
.financing__card {
    background: var(--navy);
    border-radius: var(--radius-lg);
    padding: 64px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 48px;
    align-items: center;
    position: relative;
    overflow: hidden;
}
.financing__card::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(212, 160, 23, 0.1) 0%, transparent 70%);
    pointer-events: none;
}
.financing__content {
    position: relative;
    z-index: 1;
}
.financing__text {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.8;
    margin-bottom: 24px;
    max-width: 480px;
}
.financing__list {
    display: grid;
    gap: 12px;
}
.financing__list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.92rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
}

.financing__aside {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}
.financing__card-inner {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    max-width: 320px;
}
.financing__icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gold-pale);
    border-radius: 50%;
}
.financing__card-text {
    font-size: 0.85rem;
    color: var(--gray-500);
    line-height: 1.7;
    margin-bottom: 24px;
}

/* ---------- CONTACT ---------- */
.contact {
    padding: 100px 0;
    background: var(--white);
}
.contact__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.contact__text {
    font-size: 0.95rem;
    color: var(--gray-500);
    line-height: 1.8;
    margin-bottom: 36px;
}

.contact__details {
    display: grid;
    gap: 28px;
}
.contact-detail {
    display: flex;
    gap: 16px;
}
.contact-detail__icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gold-pale);
    border-radius: var(--radius-md);
}
.contact-detail strong {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--navy);
    margin-bottom: 4px;
}
.contact-detail p {
    font-size: 0.92rem;
    color: var(--gray-500);
    line-height: 1.6;
}
.contact-detail a {
    color: var(--gold);
    font-weight: 600;
    transition: color var(--transition);
}
.contact-detail a:hover {
    color: var(--gold-light);
}

/* Contact Form */
.contact-form {
    background: var(--off-white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 40px;
}
.contact-form__title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 8px;
}
.contact-form__subtitle {
    font-size: 0.9rem;
    color: var(--gray-500);
    margin-bottom: 28px;
}

.form-group {
    margin-bottom: 20px;
}
.form-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.form-input {
    width: 100%;
    padding: 12px 16px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--gray-700);
    background: var(--white);
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-sm);
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
}
.form-input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(212, 160, 23, 0.15);
}
.form-input::placeholder {
    color: var(--gray-300);
}
.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237a766d' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}
.form-textarea {
    resize: vertical;
    min-height: 100px;
}

.form-success {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
    padding: 14px 18px;
    background: #e8f5e9;
    border: 1px solid #c8e6c9;
    border-radius: var(--radius-sm);
    color: #2e7d32;
    font-size: 0.9rem;
    font-weight: 500;
}
.form-success svg {
    flex-shrink: 0;
}

/* ---------- FOOTER ---------- */
.footer {
    background: var(--navy-deep);
    color: var(--white);
    padding: 64px 0 0;
}
.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer__tagline {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.7;
    margin-top: 16px;
    max-width: 300px;
}
.footer__heading {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 20px;
}
.footer__links ul {
    display: grid;
    gap: 10px;
}
.footer__links a {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    transition: color var(--transition);
}
.footer__links a:hover {
    color: var(--gold);
}
.footer__contact address {
    font-style: normal;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.8;
}
.footer__contact a {
    color: var(--gold);
    font-weight: 500;
    transition: color var(--transition);
}
.footer__contact a:hover {
    color: var(--gold-light);
}

.footer__bottom {
    padding: 24px 0;
    text-align: center;
}
.footer__bottom p {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.4);
}

/* ---------- SCROLL REVEAL (progressive enhancement) ---------- */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal[data-reveal] {
    opacity: 0;
    transform: translateY(24px);
}

@media (prefers-reduced-motion: no-preference) {
    .reveal[data-reveal] {
        opacity: 0;
        transform: translateY(24px);
    }
    .reveal.visible[data-reveal] {
        opacity: 1;
        transform: none;
    }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
    .services__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .financing__card {
        grid-template-columns: 1fr;
        padding: 48px;
    }
    .financing__aside {
        max-width: none;
    }
    .financing__card-inner {
        max-width: none;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }
    .nav {
        position: fixed;
        top: 76px;
        left: 0;
        right: 0;
        background: var(--white);
        border-bottom: 1px solid var(--gray-200);
        padding: 16px 24px;
        box-shadow: var(--shadow-lg);
        transform: translateY(-120%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition);
        z-index: 999;
    }
    .nav.open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    .nav__list {
        flex-direction: column;
        gap: 4px;
        width: 100%;
    }
    .nav__link {
        width: 100%;
        padding: 12px 16px;
    }
    .nav__link--cta {
        margin-left: 0;
        text-align: center;
        margin-top: 8px;
    }

    .hero__content {
        padding: 100px 0 80px;
    }
    .hero__actions {
        flex-direction: column;
    }
    .hero__actions .btn {
        justify-content: center;
    }
    .hero__trust {
        gap: 20px;
    }

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

    .about__grid {
        grid-template-columns: 1fr;
        gap: 80px;
    }
    .about__img-secondary {
        right: 10px;
        bottom: -30px;
    }
    .about__experience-badge {
        left: 10px;
        top: -14px;
    }

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

    .financing__card {
        padding: 32px;
    }

    .contact__grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    .contact-form {
        padding: 28px;
    }

    .footer__grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    .hero__badge {
        font-size: 0.7rem;
        padding: 6px 12px;
    }
    .service-card {
        padding: 28px 22px;
    }
    .why-card {
        padding: 28px 22px;
    }
}
