/* =============================================
   Golden Eagle Insurance Brokers LLC
   Custom Styles — built on Tailwind CSS
   Primary: #c78945  |  Navy: #1e3a5f
============================================= */

:root {
    --gold: #c78945;
    --gold-light: #d9a060;
    --gold-dark: #a96d2e;
    --navy: #1e3a5f;
    --navy-light: #2d5287;
    --navy-dark: #122438;
}

/* ========== BASE ========== */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
    color: #1a1a1a;
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 7px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold-dark); }

/* ========== LOADING SCREEN ========== */
#loading-screen {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--navy-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#loading-screen video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* ========== HEADER ========== */
#main-header {
    transition: transform 0.3s ease;
}

#main-nav {
    background: #ffffff !important;
}

#main-header.scrolled #top-bar {
    max-height: 0;
    overflow: hidden;
    padding: 0;
}

#main-header.scrolled #main-nav {
    box-shadow: 0 4px 30px rgba(0,0,0,0.12);
}

/* Nav links underline animation */
.nav-link {
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width 0.3s ease;
    border-radius: 2px;
}
.nav-link:hover::after,
.nav-link.active::after {
    width: 60%;
}

/* Dropdown */
.dropdown-menu {
    transform: translateY(-8px);
    transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
}
.group:hover .dropdown-menu {
    transform: translateY(0);
}

/* ========== HERO ========== */
#hero {
    background: linear-gradient(135deg, #0a1929 0%, #122438 40%, #1e3a5f 100%);
    position: relative;
}

/* Background video / image */
.hero-bg-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.45;
}

.hero-bg-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(10,25,41,0.90) 0%,
        rgba(18,36,56,0.84) 45%,
        rgba(30,58,95,0.78) 100%
    );
    z-index: 1;
}

/* Floating office image cards */
.hero-float-img {
    position: absolute;
    border-radius: 14px;
    overflow: hidden;
    border: 2px solid rgba(199,137,69,0.40);
    box-shadow: 0 20px 50px rgba(0,0,0,0.55), 0 0 0 1px rgba(199,137,69,0.12);
    z-index: 4;
}

.hero-float-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.hero-float-img:hover img {
    transform: scale(1.08);
}

.hero-float-img span {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 6px 10px;
    background: linear-gradient(to top, rgba(10,25,41,0.95), transparent);
    color: var(--gold-light);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.img-top-left {
    width: 188px;
    height: 130px;
    top: 18%;
    left: 1.5%;
    transform: rotate(-5deg);
    animation: float-slow 7s ease-in-out infinite;
}

.img-mid-left {
    width: 164px;
    height: 114px;
    top: 50%;
    left: 0.5%;
    transform: translateY(-50%) rotate(4deg);
    animation: float-slow 8.5s ease-in-out infinite 2s;
}

.img-bot-left {
    width: 176px;
    height: 122px;
    bottom: 20%;
    left: 2%;
    transform: rotate(-3deg);
    animation: float-slow 6.5s ease-in-out infinite 1s;
}

.hero-pattern {
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(199,137,69,0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(30,58,95,0.5) 0%, transparent 50%),
        url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23c78945' fill-opacity='0.04'%3E%3Cpath d='M0 0h80v80H0z' fill='none'/%3E%3Cpath d='M40 0L0 40l40 40 40-40z' fill-opacity='0.5'/%3E%3C/g%3E%3C/svg%3E");
}

/* ========== QUOTE TABS ========== */
.quote-tab-btn {
    color: #6b7280;
    border-bottom: 3px solid transparent;
    transition: all 0.25s ease;
    white-space: nowrap;
    background: transparent;
}

.quote-tab-btn.active {
    color: var(--gold);
    border-bottom-color: var(--gold);
    background: white;
}

.quote-tab-btn:hover:not(.active) {
    color: var(--navy);
    background: rgba(255,255,255,0.6);
}

/* Icon wrap inside tab */
.quote-tab-icon-wrap {
    background: #e5e7eb;
    color: #6b7280;
}

.quote-tab-btn.active .quote-tab-icon-wrap {
    background: var(--gold);
    color: white;
}

.quote-tab-btn:hover:not(.active) .quote-tab-icon-wrap {
    background: rgba(199,137,69,0.15);
    color: var(--gold);
}

/* ========== FORM INPUTS ========== */
.form-input {
    transition: border-color 0.3s, box-shadow 0.3s;
    background: white;
}

.form-input:focus {
    outline: none;
    border-color: var(--gold) !important;
    box-shadow: 0 0 0 3px rgba(199, 137, 69, 0.12);
}

.form-input::placeholder {
    color: #9ca3af;
}

select.form-input {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23c78945'%3E%3Cpath fill-rule='evenodd' d='M5.23 7.21a.75.75 0 011.06.02L10 11.168l3.71-3.938a.75.75 0 111.08 1.04l-4.25 4.5a.75.75 0 01-1.08 0l-4.25-4.5a.75.75 0 01.02-1.06z' clip-rule='evenodd'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 18px;
    padding-right: 40px !important;
}

/* ========== SERVICE TABS ========== */
.service-tab-btn {
    background: white;
    color: var(--navy);
    border: 2px solid #e5e7eb;
    transition: all 0.3s ease;
    cursor: pointer;
}

.service-tab-btn.active {
    background: var(--gold);
    color: white;
    border-color: var(--gold);
    box-shadow: 0 8px 25px rgba(199, 137, 69, 0.35);
}

.service-tab-btn:hover:not(.active) {
    border-color: var(--gold);
    color: var(--gold);
}

/* Service cards hover */
.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(199,137,69,0.15);
    border-color: rgba(199,137,69,0.3);
}

/* ========== PARTNERS MARQUEE ========== */
.partners-marquee {
    -webkit-mask-image: linear-gradient(to right, transparent 0%, white 8%, white 92%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, white 8%, white 92%, transparent 100%);
}

.partners-track {
    display: flex;
    align-items: stretch;
    gap: 16px;
    width: max-content;
}

.partner-card {
    width: 270px;
    transition: all 0.25s ease;
}

.partner-logo-wrap {
    transition: none;
}

/* ========== ASSOCIATES MARQUEE ========== */
.associates-marquee {
    -webkit-mask-image: linear-gradient(to right, transparent 0%, white 8%, white 92%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, white 8%, white 92%, transparent 100%);
}

.associates-track {
    display: flex;
    align-items: stretch;
    gap: 16px;
    width: max-content;
    animation: scrollAssociates 25s linear infinite;
}

.associates-track:hover {
    animation-play-state: paused;
}

.associate-card {
    width: 240px;
    transition: all 0.25s ease;
}

.associate-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

@keyframes scrollAssociates {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ========== TESTIMONIALS ========== */
.testimonials-slider {
    -webkit-mask-image: linear-gradient(to right, transparent 0%, white 4%, white 96%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, white 4%, white 96%, transparent 100%);
}

.testimonials-track {
    display: flex;
    will-change: transform;
}

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

/* ========== STATS COUNTER ========== */
.stat-item {
    transition: transform 0.3s ease;
}
.stat-item:hover {
    transform: translateY(-4px);
}

/* ========== SCROLL-TO-TOP ========== */
#scrollTop {
    transition: opacity 0.3s, transform 0.3s, background-color 0.3s;
}

/* ========== WHATSAPP FLOAT ========== */
#wa-float {
    animation: wa-pulse 2.5s infinite;
}
@keyframes wa-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(37,211,102,0.5); }
    70%  { box-shadow: 0 0 0 16px rgba(37,211,102,0); }
    100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

/* ========== GOLD GRADIENT TEXT ========== */
.gold-gradient-text {
    background: linear-gradient(135deg, #c78945 0%, #e6b56e 50%, #c78945 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========== SECTION DIVIDER ========== */
.gold-divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    border-radius: 2px;
    margin: 12px auto 0;
}

/* ========== RADIO / CHECKBOX GOLD ========== */
input[type="radio"]:checked {
    accent-color: var(--gold);
}
input[type="checkbox"]:checked {
    accent-color: var(--gold);
}

/* ========== FOOTER LINK HOVER ========== */
footer a {
    transition: color 0.25s ease;
}

/* ========== MOBILE MENU ANIMATION ========== */
#mobile-menu {
    transition: max-height 0.35s ease, opacity 0.35s ease;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .testimonial-slide { width: 50%; }
}
@media (max-width: 768px) {
    .testimonial-slide { width: 100%; }
    #hero { padding-top: 6rem; }
}
@media (max-width: 480px) {
    .quote-tabs { font-size: 0.7rem; }
    .quote-tab-btn { padding: 10px 8px; }
}

/* ========== OFFICE CARDS ========== */
.office-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.office-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(199,137,69,0.12);
    border-color: rgba(199,137,69,0.35) !important;
}

/* ========== FADE IN ON SCROLL ========== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
.fade-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.fade-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}
.fade-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}
.fade-in-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}
.fade-in-scale.visible {
    opacity: 1;
    transform: scale(1);
}
/* Stagger delays */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }
.delay-6 { transition-delay: 0.6s; }
.delay-7 { transition-delay: 0.7s; }
.delay-8 { transition-delay: 0.8s; }

/* ========== ANIMATE FLOATING SHAPES ========== */
@keyframes float-slow {
    0%, 100% { transform: translateY(0) scale(1); }
    50%       { transform: translateY(-20px) scale(1.05); }
}
.float-anim {
    animation: float-slow 6s ease-in-out infinite;
}
.float-anim-delay {
    animation: float-slow 7s ease-in-out infinite 1.5s;
}

/* ========== WHY CHOOSE US CARDS ========== */
.why-reason-card {
    transition: background 0.3s ease, transform 0.3s ease;
}
.why-reason-card:hover {
    background: rgba(255,255,255,0.1) !important;
    transform: translateX(6px);
}

/* ========== CTA SECTION ========== */
.cta-section {
    background: linear-gradient(135deg, #0a1929 0%, #122438 50%, #1e3a5f 100%);
}

/* ========== PARTNER LOGO PLACEHOLDER ========== */
.partner-name {
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--navy);
    letter-spacing: -0.01em;
}

/* ========== COMPLIANCE / REGULATORY RESOURCES SECTION ========== */
.compliance-section {
    padding: 50px 5%;
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
}

.compliance-header {
    text-align: center;
    margin-bottom: 50px;
}

.compliance-header .section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(199,137,69,0.1);
    color: var(--gold);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.compliance-header .section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--navy);
    margin: 0;
}

.compliance-header .section-title span {
    color: var(--gold);
}

.compliance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.compliance-card {
    background: #fff;
    border-radius: 20px;
    padding: 35px 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.compliance-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}

.compliance-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.compliance-icon i {
    font-size: 1.5rem;
    color: #fff;
}

.compliance-tag {
    display: inline-block;
    background: rgba(199,137,69,0.12);
    color: var(--gold-dark);
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.compliance-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--navy);
    margin: 0 0 12px 0;
    line-height: 1.4;
}

.compliance-desc {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.7;
    margin: 0 0 20px 0;
}

.compliance-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--gold);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: gap 0.3s ease, color 0.3s ease;
}

.compliance-link:hover {
    gap: 12px;
    color: var(--gold-dark);
}

/* Complaint Form Card */
.complaint-form-card {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
    border: none;
}

.complaint-form-card .compliance-icon {
    background: rgba(255,255,255,0.15);
}

.complaint-form-card .compliance-tag {
    background: rgba(199,137,69,0.25);
    color: var(--gold-light);
}

.complaint-form-card .compliance-title {
    color: #fff;
}

.complaint-form-card .compliance-desc {
    color: rgba(255,255,255,0.7);
}

.complaint-form-inner {
    background: rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 25px;
}

.cf-row {
    margin-bottom: 16px;
}

.cf-row.full {
    width: 100%;
}

.cf-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255,255,255,0.8);
    margin-bottom: 6px;
}

.cf-group input,
.cf-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 10px;
    color: #fff;
    font-size: 0.9rem;
    font-family: inherit;
    transition: border-color 0.3s ease, background 0.3s ease;
}

.cf-group input::placeholder,
.cf-group textarea::placeholder {
    color: rgba(255,255,255,0.4);
}

.cf-group input:focus,
.cf-group textarea:focus {
    outline: none;
    border-color: var(--gold);
    background: rgba(255,255,255,0.15);
}

.cf-group textarea {
    min-height: 100px;
    resize: vertical;
}

.complaint-form-submit {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.complaint-form-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(199,137,69,0.4);
}

@media (max-width: 768px) {
    .compliance-section {
        padding: 40px 4%;
    }

    .compliance-header .section-title {
        font-size: 1.75rem;
    }

    .compliance-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .compliance-card {
        padding: 28px 24px;
    }
}

/* ========== EXTENDED MOBILE RESPONSIVE ========== */

/* Hide decorative floating hero image cards on mobile */
@media (max-width: 767px) {
    .img-top-left,
    .img-mid-left,
    .img-bot-left {
        display: none;
    }

    /* Hero stats: wrap on small screens */
    .hero-stats {
        flex-wrap: wrap !important;
        gap: 1.25rem !important;
        justify-content: center;
    }

    /* Inner-page hero heading scale */
    .inner-hero-content h1 {
        font-size: 1.75rem;
    }
}

/* Very small screens (< 480px) */
@media (max-width: 479px) {
    /* Quote tab buttons — tighter */
    .quote-tab-btn {
        padding: 10px 5px;
        min-width: 58px;
        font-size: 0.66rem;
    }
    .quote-tab-icon-wrap {
        width: 2rem !important;
        height: 2rem !important;
    }
    .quote-tab-icon-wrap i {
        font-size: 0.95rem !important;
    }

    /* Partners marquee — slightly smaller cards */
    .partner-card {
        width: 230px;
    }

    /* Compliance title */
    .compliance-header .section-title {
        font-size: 1.4rem;
    }

    /* Why-us reason cards — smaller gap */
    .why-reason-card {
        gap: 0.75rem;
        padding: 0.875rem;
    }
}

/* =============================================
   GLOBAL RESPONSIVE SAFETY NET
   Additive guards that improve behaviour on small
   and unusual viewports WITHOUT altering the
   desktop design or any functionality.
============================================= */

/* Media can never force horizontal scroll.
   (Decorative hero/background images keep their own
   height via higher-specificity class / inline rules.) */
img, svg, video, iframe { max-width: 100%; }

/* Long emails, URLs and unbroken strings wrap instead
   of pushing the layout wider than the screen. */
body { overflow-wrap: break-word; }

/* Data tables stay within the viewport; their wrapper
   (.overflow-x-auto) provides scroll when needed. */
table { max-width: 100%; }

/* ----- Tablets / small laptops ----- */
@media (max-width: 1024px) {
    /* Inner-page hero: tighten the copy↔quote-card gap so
       the form sits closer once the columns stack. */
    .inner-hero-content { gap: 2.5rem; }
}

/* ----- Phones ----- */
@media (max-width: 640px) {
    /* Safety against very long single words in headings. */
    h1, h2, h3 { overflow-wrap: break-word; }

    /* Inner-page hero heading scales down a touch more. */
    .inner-hero-content h1 { font-size: 2rem; line-height: 1.15; }
}

/* ----- Small phones (<= 400px) ----- */
@media (max-width: 400px) {
    /* Associate / partner marquee cards shrink to fit. */
    .associate-card { width: 215px; }
    .partner-card   { width: 215px; }

    /* Inner-page hero heading on the narrowest devices. */
    .inner-hero-content h1 { font-size: 1.65rem; }
}
