/* =========================
   GLOBAL RESET & BASE
========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #f5f7fb;
    color: #1e293b;
    line-height: 1.6;
}

img {
    max-width: 100%;
    display: block;
    border-radius: 10px;
}

a {
    text-decoration: none;
    color: inherit;
}

/* =========================
   CONTAINER & LAYOUT
========================= */
.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

.section-padding {
    padding: 100px 0;
}

.section-light {
    background: #ffffff;
}

/* =========================
   TOP BAR
========================= */
.top-bar {
    background: #020617;
    color: #cbd5e1;
    font-size: 14px;
    padding: 10px 0;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

/* =========================
   NAVBAR
========================= */
.navbar {
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 20px 0;
    border-bottom: 1px solid #e2e8f0;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* LOGO */
.logo img {
    height: 60px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
}

/* NAV LINKS */
.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 500;
    position: relative;
    color: #334155;
}

/* underline animation */
.nav-links a::after {
    content: "";
    position: absolute;
    width: 0%;
    height: 2px;
    background: #2563eb;
    bottom: -5px;
    left: 0;
    transition: 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Highlight Quote CTA */
.nav-links a[href="quote.html"] {
    background: #2563eb;
    color: #fff;
    padding: 6px 14px;
    border-radius: 8px;
}

.nav-links a[href="quote.html"]:hover {
    background: #1d4ed8;
}

/* =========================
   HERO
========================= */
.hero {
    background: linear-gradient(135deg, #020617, #1e3a8a);
    color: #fff;
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(37,99,235,0.4), transparent);
    top: -200px;
    right: -200px;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text h1 {
    font-size: 52px;
    margin-bottom: 20px;
}

.hero-text p {
    font-size: 18px;
    color: #cbd5e1;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* =========================
   BUTTONS
========================= */
.btn {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    padding: 14px 30px;
    border-radius: 10px;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(37,99,235,0.4);
}

.secondary-btn {
    background: transparent;
    border: 1px solid #94a3b8;
}

.secondary-btn:hover {
    background: #1e293b;
}

/* =========================
   TITLES
========================= */
.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 40px;
    font-weight: 700;
}

/* =========================
   CARDS
========================= */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.card {
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(12px);
    padding: 30px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    transition: all 0.4s ease;
    text-align: center;
}

.card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    cursor: pointer;
}

.card img {
    margin: auto;
    max-height: 60px;
    object-fit: contain;
}

.card h3 {
    margin-bottom: 10px;
}

/* =========================
   CTA
========================= */
.cta {
    background: linear-gradient(135deg, #1e3a8a, #2563eb);
    color: white;
    text-align: center;
}

.cta h2 {
    font-size: 42px;
    margin-bottom: 20px;
}

.cta p {
    margin-bottom: 30px;
    color: #e2e8f0;
}

/* =========================
   TEXT UTILITIES
========================= */
.center-text {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 20px;
}

.center-btn {
    text-align: center;
    margin-top: 30px;
}

/* =========================
   CONTACT FORM
========================= */
.contact-form {
    max-width: 700px;
    margin: auto;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.08);
    border: 1px solid #e2e8f0;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    color: #1e293b;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px 16px;
    border-radius: 10px;
    border: 1px solid #cbd5e1;
    font-size: 15px;
    background: #f8fafc;
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #2563eb;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
}

.contact-form textarea {
    resize: vertical;
}

.contact-form .btn {
    width: 100%;
    margin-top: 10px;
}

.form-message {
    transition: all 0.3s ease;
}

/* =========================
   FOOTER
========================= */
footer {
    background: #020617;
    color: #94a3b8;
    padding-top: 70px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px,1fr));
    gap: 40px;
    padding-bottom: 40px;
}

.footer-content h3,
.footer-content h4 {
    color: white;
    margin-bottom: 15px;
}

.footer-content a:hover {
    color: #fff;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #1e293b;
    padding: 20px;
    font-size: 14px;
}

/* =========================
   ANIMATIONS
========================= */
/* Scroll reveal (exclude hero) */
.card,
.section-title {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

/* Hero should always be visible immediately */
.hero-text,
.hero-image {
    opacity: 1;
    transform: none;
    animation: fadeUp 0.6s ease forwards;
}

.card.active,
.section-title.active,
.hero-text.active,
.hero-image.active {
    opacity: 1;
    transform: translateY(0);
}

.legal-content {
    max-width: 900px;
    margin: auto;
    line-height: 1.8;
}

.legal-content h3 {
    margin-top: 25px;
    margin-bottom: 10px;
}

/* =========================
   BRAND GRID (UPGRADE)
========================= */
.brand-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.brand-card {
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    text-align: center;
    transition: all 0.4s ease;
}

.brand-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

/* Logo styling */
.brand-card img {
    max-height: 60px;
    margin: 0 auto 20px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.brand-card:hover img {
    transform: scale(1.05);
}

.brand-card h3 {
    margin-bottom: 10px;
    font-size: 18px;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 36px;
    }

    .nav-content {
        flex-direction: column;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .section-title h2 {
        font-size: 28px;
    }

    .cta h2 {
        font-size: 30px;
    }

    .contact-form {
        padding: 25px;
    }
}