@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800&family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #059669;
    --primary-dark: #047857;
    --primary-light: #d1fae5;
    --accent: #f59e0b;
    --dark: #0f172a;
    --dark-2: #1e293b;
    --white: #ffffff;
    --soft: #f0fdf4;
    --soft-2: #f8fafc;
    --muted: #64748b;
    --border: #e2e8f0;
    --shadow: 0 4px 24px rgba(5, 150, 105, 0.10);
    --shadow-lg: 0 12px 40px rgba(5, 150, 105, 0.18);
    --radius: 16px;
    --radius-lg: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Outfit', sans-serif;
    background: var(--white);
    color: var(--dark);
    line-height: 1.65;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    color: var(--dark);
    line-height: 1.2;
}

section { padding: 90px 0; }
.bg-soft { background: var(--soft-2); }
.bg-green-soft { background: var(--soft); }
.mb-60 { margin-bottom: 60px; }

/* ── LABEL ── */
.ui-label {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.ui-label::before {
    content: '';
    display: inline-block;
    width: 24px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

/* ── NAVBAR ── */
.navbar {
    padding: 18px 0;
    background: transparent;
    transition: var(--transition);
    z-index: 1000;
}
.navbar.scrolled {
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(12px);
    padding: 12px 0;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}
.navbar-brand {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: 1.45rem;
    color: var(--dark) !important;
    display: flex;
    align-items: center;
    gap: 10px;
}
.brand-icon {
    width: 38px;
    height: 38px;
    background: var(--primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
}
.nav-link {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--dark-2) !important;
    margin: 0 6px;
    padding: 6px 12px !important;
    border-radius: 8px;
    transition: var(--transition);
}
.nav-link:hover, .nav-link.active {
    color: var(--primary) !important;
    background: var(--primary-light);
}

/* ── BUTTONS ── */
.btn-call {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 28px;
    background: var(--primary);
    color: var(--white) !important;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    border: 2px solid var(--primary);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}
.btn-call:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: var(--white) !important;
}
.btn-call.btn-outline {
    background: transparent;
    color: var(--primary) !important;
}
.btn-call.btn-outline:hover {
    background: var(--primary);
    color: var(--white) !important;
}
.btn-call.btn-white {
    background: var(--white);
    color: var(--primary) !important;
    border-color: var(--white);
}
.btn-call.btn-white:hover {
    background: var(--primary-light);
    border-color: var(--primary-light);
}

@keyframes pulse-ring {
    0% { box-shadow: 0 0 0 0 rgba(5,150,105,0.45); }
    70% { box-shadow: 0 0 0 16px rgba(5,150,105,0); }
    100% { box-shadow: 0 0 0 0 rgba(5,150,105,0); }
}
.btn-pulse { animation: pulse-ring 2.2s infinite; }

/* ── HERO ── */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 40%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(5,150,105,0.07) 0%, transparent 70%);
    top: -200px;
    right: -200px;
    pointer-events: none;
}
.hero::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(245,158,11,0.06) 0%, transparent 70%);
    bottom: -100px;
    left: -100px;
    pointer-events: none;
}
.hero-content { position: relative; z-index: 1; }
.hero h1 {
    font-size: clamp(2.6rem, 5.5vw, 4.2rem);
    line-height: 1.1;
    margin-bottom: 24px;
}
.hero h1 .highlight {
    color: var(--primary);
    position: relative;
}
.hero p.lead {
    font-size: 1.15rem;
    color: var(--muted);
    max-width: 560px;
    margin-bottom: 40px;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 8px 18px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--muted);
    margin-bottom: 28px;
    box-shadow: var(--shadow);
}
.hero-badge .dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    animation: blink 1.5s infinite;
}
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}
.hero-img-wrap {
    position: relative;
}
.hero-img-wrap img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}
.hero-float-card {
    position: absolute;
    background: var(--white);
    border-radius: var(--radius);
    padding: 18px 22px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 14px;
}
.hero-float-card.card-1 { bottom: 30px; left: -30px; }
.hero-float-card.card-2 { top: 30px; right: -20px; }
.hero-float-card .fc-icon {
    width: 44px;
    height: 44px;
    background: var(--primary-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.2rem;
    flex-shrink: 0;
}
.hero-float-card .fc-text strong {
    display: block;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--dark);
}
.hero-float-card .fc-text span {
    font-size: 0.78rem;
    color: var(--muted);
}

/* ── TRUST BAR ── */
.trust-bar {
    background: var(--dark);
    padding: 22px 0;
}
.trust-bar .trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255,255,255,0.75);
    font-size: 0.9rem;
    font-weight: 500;
}
.trust-bar .trust-item i { color: var(--primary); font-size: 1.1rem; }

/* ── CARDS ── */
.service-card {
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 36px 32px;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: var(--primary);
    transform: scaleX(0);
    transition: var(--transition);
    transform-origin: left;
}
.service-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
    transform: translateY(-6px);
}
.service-card:hover::before { transform: scaleX(1); }

.card-icon {
    width: 58px;
    height: 58px;
    background: var(--primary-light);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 22px;
    transition: var(--transition);
}
.service-card:hover .card-icon {
    background: var(--primary);
    color: var(--white);
}

/* ── FEATURE LIST ── */
.feature-item {
    display: flex;
    gap: 16px;
    margin-bottom: 28px;
}
.feature-item .fi-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* ── STATS ── */
.stats-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    padding: 70px 0;
}
.stat-item { text-align: center; }
.stat-item h3 {
    font-size: 3rem;
    color: var(--white);
    margin-bottom: 6px;
}
.stat-item p {
    color: rgba(255,255,255,0.75);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.stat-divider {
    width: 1px;
    background: rgba(255,255,255,0.2);
    height: 60px;
    margin: auto;
}

/* ── PAGE HEADER ── */
.page-header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    padding: 130px 0 80px;
    position: relative;
    overflow: hidden;
}
.page-header::after {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(5,150,105,0.15) 0%, transparent 70%);
    top: -100px;
    right: -100px;
}
.page-header *,
.page-header h1,
.page-header h2,
.page-header h3,
.page-header h4,
.page-header h5,
.page-header h6,
.page-header p,
.page-header span,
.page-header .lead { color: #ffffff !important; }
.page-header .ui-label::before { background: rgba(255,255,255,0.5); }
.page-header .reveal {
    opacity: 1 !important;
    transform: translateY(0) !important;
    transition: none !important;
}
.breadcrumb-item a { color: rgba(255,255,255,0.6); text-decoration: none; }
.breadcrumb-item.active { color: var(--primary) !important; }
.breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.3); }

/* ── CTA SECTION ── */
.cta-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, #10b981 100%);
    border-radius: var(--radius-lg);
    padding: 70px 50px;
    position: relative;
    overflow: hidden;
}
.cta-section::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    top: -150px;
    right: -100px;
}

/* ── FOOTER ── */
footer {
    background: var(--dark);
    color: var(--white);
    padding: 80px 0 0;
}
footer h5 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 22px;
    font-weight: 700;
}
.footer-link {
    color: rgba(255,255,255,0.55);
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
    font-size: 0.9rem;
    transition: var(--transition);
}
.footer-link:hover {
    color: var(--primary);
    padding-left: 6px;
}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 24px 0;
    margin-top: 60px;
    color: rgba(255,255,255,0.4);
    font-size: 0.85rem;
}
.footer-bottom a {
    color: rgba(255,255,255,0.4);
    text-decoration: none;
    transition: var(--transition);
}
.footer-bottom a:hover { color: var(--primary); }
.footer-social a {
    width: 38px;
    height: 38px;
    background: rgba(255,255,255,0.07);
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    transition: var(--transition);
    margin-right: 8px;
}
.footer-social a:hover {
    background: var(--primary);
    color: var(--white);
}

/* ── PREMIUM CARD (insurance.php / about.php) ── */
.premium-card {
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 36px 32px;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}
.premium-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
    transform: translateY(-6px);
}

/* ── ANIMATIONS ── */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ── UTILITIES ── */
.text-primary { color: var(--primary) !important; }
.text-muted { color: var(--muted) !important; }
.bg-primary { background-color: var(--primary) !important; }
.border-primary { border-color: var(--primary) !important; }

/* ── RESPONSIVE ── */
@media (max-width: 991px) {
    .hero { padding-top: 90px; }
    .hero-float-card { display: none; }
    section { padding: 70px 0; }
    .cta-section { padding: 50px 30px; }
}
@media (max-width: 767px) {
    .hero h1 { font-size: 2.2rem; }
    .stat-divider { display: none; }
    .cta-section { padding: 40px 20px; }
}

/* ── CTA GLOBAL POPUP ── */
.cta-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15,23,42,0.55);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}
.cta-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}
.cta-popup-box {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 48px 40px 40px;
    max-width: 460px;
    width: 100%;
    text-align: center;
    position: relative;
    box-shadow: 0 24px 60px rgba(0,0,0,0.18);
    transform: translateY(30px) scale(0.97);
    transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
}
.cta-popup-overlay.active .cta-popup-box {
    transform: translateY(0) scale(1);
}
.cta-popup-close {
    position: absolute;
    top: 14px;
    right: 18px;
    background: none;
    border: none;
    font-size: 1.7rem;
    line-height: 1;
    color: var(--muted);
    cursor: pointer;
    transition: var(--transition);
}
.cta-popup-close:hover { color: var(--dark); }
.cta-popup-icon {
    width: 64px;
    height: 64px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.8rem;
    margin: 0 auto 20px;
}
.cta-popup-box h3 {
    font-size: 1.55rem;
    margin-bottom: 12px;
}
.cta-popup-box p {
    color: var(--muted);
    font-size: 0.95rem;
    margin-bottom: 28px;
}
@media (max-width: 480px) {
    .cta-popup-box { padding: 40px 24px 32px; }
    .cta-popup-box h3 { font-size: 1.3rem; }
}
