/* TRISAFE Insurance Group - Main Stylesheet */

:root {
    --navy-primary: #0a2239;
    --navy-dark: #051526;
    --teal-accent: #53b3cb;
    --teal-light: #7dd3e8;
    --orange-cta: #ff6a3d;
    --white: #ffffff;
    --gray-light: #f5f7fa;
    --gray-medium: #8b95a5;
    --gray-dark: #2d3748;
    --black: #0d1b2a;
    --blue: #ADD8E6;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--gray-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--navy-primary);
}

.bg-blue {
background-color: var(--blue);
}

/* ==========================================
   NAVIGATION
   ========================================== */

.navbar-trisafe {
    background-color: var(--white);
    box-shadow: 0 2px 20px rgba(10, 34, 57, 0.1);
    padding: 0.75rem 0;
    transition: all 0.3s ease;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-trisafe.scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 4px 30px rgba(10, 34, 57, 0.15);
}

.navbar-brand {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--navy-primary) !important;
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-shield {
    width: 45px;
    height: 45px;
    background: var(--navy-primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    font-weight: 800;
}

.nav-link {
    color: var(--gray-dark) !important;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.5rem 1rem !important;
    margin: 0 0.2rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: var(--teal-accent) !important;
    background-color: rgba(83, 179, 203, 0.05);
}

.btn-quote {
    background: var(--orange-cta);
    color: white !important;
    padding: 0.6rem 1.8rem !important;
    border-radius: 50px;
    font-weight: 700;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 106, 61, 0.3);
}

.btn-quote:hover {
    background: #ff5226;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 106, 61, 0.4);
}

.btn-service {
    background: var(--navy-primary);
    color: white !important;
    padding: 0.6rem 1.8rem !important;
    border-radius: 50px;
    font-weight: 700;
    border: 2px solid var(--navy-primary);
    transition: all 0.3s ease;
}

.btn-service:hover {
    background: transparent;
    color: var(--navy-primary) !important;
}

/* ==========================================
   HERO SECTION
   ========================================== */

.hero-section {
    background: linear-gradient(135deg, var(--navy-primary) 0%, var(--navy-dark) 100%);
    color: white;
    padding: 6rem 0 5rem;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(83,179,203,0.1)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-section .hero-subtitle {
    font-size: 1.4rem;
    color: var(--teal-light);
    margin-bottom: 2rem;
    font-weight: 500;
}

.hero-tagline {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
    font-style: italic;
}

.hero-contact-info {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.hero-contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.1rem;
    color: white;
}

.hero-contact-item i {
    color: var(--teal-accent);
    font-size: 1.5rem;
}

.hero-cta-group {
    display: flex;
    gap: 1rem;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}

.btn-hero-primary {
    background: var(--orange-cta);
    color: white;
    padding: 1.2rem 3rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    border: none;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 6px 25px rgba(255, 106, 61, 0.4);
}

.btn-hero-primary:hover {
    background: #ff5226;
    transform: translateY(-3px);
    box-shadow: 0 10px 35px rgba(255, 106, 61, 0.5);
    color: white;
}

.btn-hero-secondary {
    background: transparent;
    color: white;
    padding: 1.2rem 3rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    border: 2px solid white;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-hero-secondary:hover {
    background: white;
    color: var(--navy-primary);
}

/* ==========================================
   SECTIONS
   ========================================== */

.section {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--navy-primary);
    margin-bottom: 1rem;
    text-align: center;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--gray-medium);
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
}

/* ==========================================
   COVERAGE TILES
   ========================================== */

.coverage-tile {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(10, 34, 57, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    border-top: 4px solid var(--teal-accent);
}

.coverage-tile:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(10, 34, 57, 0.15);
}

.coverage-icon {
    width: 60px;
    height: 60px;
    background: var(--navy-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    margin-bottom: 1.5rem;
}

.coverage-tile h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--navy-primary);
    margin-bottom: 1rem;
}

.coverage-tile p {
    color: var(--gray-dark);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.coverage-link {
    color: var(--teal-accent);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.coverage-link:hover {
    color: var(--navy-primary);
    gap: 0.75rem;
}

/* ==========================================
   WHY TRISAFE / PILLARS
   ========================================== */

.pillar-card {
    background: var(--gray-light);
    border-radius: 16px;
    padding: 3rem 2rem;
    text-align: center;
    height: 100%;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.pillar-card:hover {
    border-color: var(--teal-accent);
    background: white;
    box-shadow: 0 8px 30px rgba(83, 179, 203, 0.15);
}

.pillar-icon {
    width: 80px;
    height: 80px;
    background: var(--teal-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 32px;
    margin: 0 auto 1.5rem;
}

.pillar-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--navy-primary);
}

.pillar-card p {
    color: var(--gray-dark);
    font-size: 1.05rem;
    line-height: 1.7;
}

/* ==========================================
   HOW IT WORKS STEPS
   ========================================== */

.steps-container {
    max-width: 900px;
    margin: 0 auto;
}

.step-item {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    align-items: start;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--orange-cta);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    font-weight: 800;
    flex-shrink: 0;
}

.step-content h4 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--navy-primary);
    margin-bottom: 0.75rem;
}

.step-content p {
    color: var(--gray-dark);
    font-size: 1.05rem;
    line-height: 1.7;
}

/* ==========================================
   PATH CARDS (Owner-Op vs Fleet)
   ========================================== */

.path-card {
    background: white;
    border-radius: 16px;
    padding: 3rem;
    box-shadow: 0 8px 40px rgba(10, 34, 57, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    text-align: center;
    border: 3px solid transparent;
}

.path-card:hover {
    border-color: var(--teal-accent);
    transform: translateY(-10px);
    box-shadow: 0 15px 50px rgba(10, 34, 57, 0.2);
}

.path-icon {
    width: 100px;
    height: 100px;
    background: var(--navy-primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    margin: 0 auto 2rem;
}

.path-card h3 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--navy-primary);
    margin-bottom: 1.5rem;
}

.path-card p {
    color: var(--gray-dark);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

/* ==========================================
   SERVICE REQUEST CARDS
   ========================================== */

.service-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(10, 34, 57, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    border-left: 4px solid var(--teal-accent);
    height: 100%;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 35px rgba(10, 34, 57, 0.12);
    border-left-color: var(--orange-cta);
}

.service-card-icon {
    width: 50px;
    height: 50px;
    background: var(--gray-light);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--navy-primary);
    font-size: 24px;
    margin-bottom: 1.5rem;
}

.service-card h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--navy-primary);
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--gray-dark);
    line-height: 1.7;
}

/* ==========================================
   FORMS
   ========================================== */

.form-container {
    background: white;
    border-radius: 16px;
    padding: 3rem;
    box-shadow: 0 8px 40px rgba(10, 34, 57, 0.1);
}

.form-label {
    font-weight: 600;
    color: var(--navy-primary);
    margin-bottom: 0.5rem;
    display: block;
}

.form-control {
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    width: 100%;
}

.form-control:focus {
    border-color: var(--teal-accent);
    box-shadow: 0 0 0 3px rgba(83, 179, 203, 0.1);
    outline: none;
}

.form-select {
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    width: 100%;
}

.form-select:focus {
    border-color: var(--teal-accent);
    box-shadow: 0 0 0 3px rgba(83, 179, 203, 0.1);
    outline: none;
}

.btn-submit {
    background: var(--orange-cta);
    color: white;
    padding: 1rem 3rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 106, 61, 0.3);
}

.btn-submit:hover {
    background: #ff5226;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 106, 61, 0.4);
}

/* ==========================================
   REVIEWS / TESTIMONIALS
   ========================================== */

.review-card {
    background: white;
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 4px 20px rgba(10, 34, 57, 0.08);
    height: 100%;
}

.review-stars {
    color: #ffc107;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.review-text {
    color: var(--gray-dark);
    font-size: 1.05rem;
    line-height: 1.8;
    font-style: italic;
    margin-bottom: 1.5rem;
}

.review-author {
    font-weight: 700;
    color: var(--navy-primary);
    font-size: 1.05rem;
}

.review-company {
    color: var(--gray-medium);
    font-size: 0.95rem;
}

/* ==========================================
   FAQ
   ========================================== */

/* FAQ Clickable Fix */
.faq-item {
    position: relative;
    z-index: 1;
}

.faq-question {
    position: relative;
    z-index: 2;
    cursor: pointer;
    padding: 1.5rem 2rem 1.5rem 2rem;
    margin: -1.5rem -2rem 0 -2rem;
}

.faq-answer {
    position: relative;
    z-index: 1;
}

/* Make sure nothing is covering the FAQ */
.faq-container {
    position: relative;
    z-index: 1;
}

.faq-item {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 15px rgba(10, 34, 57, 0.05);
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: 4px solid var(--teal-accent);
}

.faq-item:hover {
    box-shadow: 0 4px 25px rgba(10, 34, 57, 0.1);
    border-left-color: var(--orange-cta);
}

.faq-question {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--navy-primary);
    margin-bottom: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-right: 1rem;
}

.faq-answer {
    color: var(--gray-dark);
    line-height: 1.8;
    font-size: 1.05rem;
    margin-top: 1.5rem;
    display: none; /* Initially hidden */
    padding-top: 1.5rem;
    border-top: 1px solid #e1e8ed;
}

.faq-answer p {
    margin-bottom: 1rem;
}

.faq-answer ul, .faq-answer ol {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.faq-answer li {
    margin-bottom: 0.5rem;
}

.faq-question i {
    color: var(--teal-accent);
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-item.active .faq-answer {
    display: block;
}

/* ==========================================
   FOOTER
   ========================================== */

.footer {
    background: var(--navy-dark);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1rem;
}

.footer h5 {
    color: var(--teal-accent);
    font-weight: 700;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
    margin-bottom: 0.5rem;
}

.footer a:hover {
    color: var(--teal-accent);
    padding-left: 5px;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

.footer-contact-item i {
    color: var(--teal-accent);
    width: 20px;
}

.footer-disclaimer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    margin-top: 3rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* ==========================================
   UTILITY CLASSES
   ========================================== */

.bg-light {
    background-color: var(--gray-light);
}

.bg-navy {
    background-color: var(--navy-primary);
    color: white;
}

.text-teal {
    color: var(--teal-accent);
}

.text-navy {
    color: var(--navy-primary);
}

/* ==========================================
   RESPONSIVE
   ========================================== */

@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.2rem;
    }

    .hero-section .hero-subtitle {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .section {
        padding: 3rem 0;
    }

    .hero-cta-group {
        flex-direction: column;
    }

    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
        text-align: center;
    }

    .step-item {
        flex-direction: column;
        text-align: center;
    }

    .step-number {
        margin: 0 auto;
    }
}