/* Excellency BD — Modern Design System */

:root {
    --primary: #0a2818;
    --primary-mid: #14532d;
    --primary-light: #166534;
    --accent: #10b981;
    --accent-dark: #059669;
    --accent-light: #34d399;
    --highlight: #6ee7b7;
    --cta: #059669;
    --cta-light: #10b981;
    --cta-dark: #047857;
    --surface: #f0fdf4;
    --surface-elevated: #ffffff;
    --text: #1a3328;
    --text-muted: #4b6358;
    --text-on-dark: rgba(255, 255, 255, 0.82);
    --border: #cce8d8;
    --shadow-sm: 0 1px 3px rgba(10, 40, 24, 0.06);
    --shadow-md: 0 8px 30px rgba(10, 40, 24, 0.08);
    --shadow-lg: 0 20px 50px rgba(10, 40, 24, 0.12);
    --radius: 1rem;
    --radius-lg: 1.25rem;
}

html {
    color-scheme: light only;
    scroll-behavior: smooth;
}

body {
    background-color: var(--surface) !important;
    color: var(--text) !important;
}

body.has-mobile-cta {
    padding-bottom: 4.5rem;
}

@media (min-width: 1024px) {
    body.has-mobile-cta {
        padding-bottom: 0;
    }
}

main {
    background-color: var(--surface);
    min-height: 60vh;
}

@media (prefers-color-scheme: dark) {
    html, body, main {
        background-color: var(--surface) !important;
        color: var(--text) !important;
    }
}

/* ── Gradients ── */
.hero-gradient {
    background:
        radial-gradient(ellipse 80% 60% at 10% 20%, rgba(16, 185, 129, 0.32) 0%, transparent 55%),
        radial-gradient(ellipse 60% 50% at 90% 80%, rgba(52, 211, 153, 0.18) 0%, transparent 50%),
        radial-gradient(ellipse 50% 40% at 70% 10%, rgba(110, 231, 183, 0.12) 0%, transparent 45%),
        linear-gradient(145deg, var(--primary) 0%, var(--primary-mid) 50%, #0d4f3c 100%);
}

.hero-mesh::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
    opacity: 0.4;
    pointer-events: none;
}

.hero-mesh::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(10, 40, 24, 0.45) 100%);
    pointer-events: none;
}

.page-hero {
    background:
        radial-gradient(ellipse 70% 50% at 20% 0%, rgba(16, 185, 129, 0.28) 0%, transparent 50%),
        linear-gradient(160deg, var(--primary) 0%, var(--primary-mid) 55%, #0d4f3c 100%);
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.6;
}

.text-gradient {
    background: linear-gradient(135deg, var(--accent-light), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-on-dark {
    color: var(--text-on-dark);
}

/* ── Buttons ── */
.btn-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--cta-light) 0%, var(--cta) 100%);
    color: white;
    font-weight: 700;
    padding: 0.875rem 2rem;
    border-radius: 0.75rem;
    box-shadow: 0 4px 14px rgba(5, 150, 105, 0.35);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.btn-cta:hover {
    background: linear-gradient(135deg, #34d399 0%, var(--cta-light) 100%);
    box-shadow: 0 6px 20px rgba(5, 150, 105, 0.45);
    transform: translateY(-2px);
    color: white;
}

.btn-cta-sm {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    border-radius: 0.625rem;
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    color: white;
    font-weight: 600;
    padding: 0.875rem 2rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.25s ease;
    text-decoration: none;
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.35);
    color: white;
}

/* ── Cards ── */
.card-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.content-card {
    background: var(--surface-elevated);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.content-card:hover {
    border-color: rgba(16, 185, 129, 0.35);
    box-shadow: var(--shadow-md);
}

.benefit-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
    transition: all 0.2s ease;
}

.benefit-card:hover {
    background: var(--surface-elevated);
    border-color: rgba(16, 185, 129, 0.45);
    box-shadow: 0 4px 16px rgba(5, 150, 105, 0.1);
}

/* ── Layout ── */
.section-pad {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

@media (max-width: 768px) {
    .section-pad {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
}

/* ── Hero slider ── */
.hero-swiper {
    height: 85vh;
    min-height: 500px;
}

@media (max-width: 1023px) {
    .hero-swiper {
        height: 72vh !important;
        min-height: 420px !important;
    }

    .hero-swiper .swiper-button-next,
    .hero-swiper .swiper-button-prev {
        display: none !important;
    }
}

@media (max-width: 639px) {
    .hero-swiper {
        height: 68vh !important;
        min-height: 380px !important;
    }
}

.hero-swiper .swiper-pagination {
    bottom: 1.5rem !important;
}

.hero-swiper .swiper-pagination-bullet {
    background: white;
    opacity: 0.4;
    width: 8px;
    height: 8px;
    transition: all 0.3s ease;
}

.hero-swiper .swiper-pagination-bullet-active {
    opacity: 1;
    background: var(--accent-light);
    width: 28px;
    border-radius: 4px;
}

.hero-swiper .swiper-button-next,
.hero-swiper .swiper-button-prev {
    color: white;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: background 0.2s ease;
}

.hero-swiper .swiper-button-next:hover,
.hero-swiper .swiper-button-prev:hover {
    background: rgba(255, 255, 255, 0.22);
}

.hero-swiper .swiper-button-next::after,
.hero-swiper .swiper-button-prev::after {
    font-size: 1.1rem;
    font-weight: 700;
}

.hero-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--highlight);
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(52, 211, 153, 0.35);
    padding: 0.375rem 0.875rem;
    border-radius: 9999px;
    margin-bottom: 1rem;
}

.hero-title {
    font-size: clamp(2rem, 6vw, 4.5rem);
    line-height: 1.08;
    letter-spacing: -0.02em;
}

.hero-tagline {
    font-size: clamp(1rem, 2.5vw, 1.375rem);
    color: var(--text-on-dark);
    line-height: 1.5;
}

/* ── Process / principles ── */
.principle-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.principle-item:last-child { border-bottom: none; }

.principle-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    margin-top: 0.5rem;
    flex-shrink: 0;
}

.process-step {
    position: relative;
    padding-left: 3.5rem;
    padding-bottom: 2rem;
}

.process-step::before {
    content: '';
    position: absolute;
    left: 1.25rem;
    top: 2.5rem;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--accent), var(--border));
}

.process-step:last-child::before { display: none; }

.process-number {
    position: absolute;
    left: 0;
    top: 0;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-mid), var(--accent-dark));
    color: white;
    font-weight: 700;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cta-sidebar {
    background: linear-gradient(160deg, var(--primary) 0%, var(--primary-mid) 100%);
    border-radius: var(--radius-lg);
    padding: 2rem;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow-md);
}

/* ── Navigation ── */
.site-header {
    background: rgba(240, 253, 244, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    transition: box-shadow 0.3s ease;
}

.site-header.scrolled {
    box-shadow: 0 4px 24px rgba(10, 40, 24, 0.08);
}

.nav-link {
    position: relative;
    font-weight: 500;
    font-size: 0.9375rem;
    color: var(--text);
    transition: color 0.2s ease;
    padding: 0.25rem 0;
}

.nav-link:hover {
    color: var(--primary-mid);
}

.nav-link.active {
    color: var(--accent-dark);
    font-weight: 600;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
    border-radius: 2px;
}

/* Mobile menu */
.mobile-menu-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
    border-top: 1px solid var(--border);
}

.mobile-menu-panel.open {
    max-height: 28rem;
}

.mobile-menu-link {
    display: block;
    padding: 0.875rem 1rem;
    font-weight: 500;
    color: var(--text);
    border-radius: 0.625rem;
    transition: background 0.15s ease, color 0.15s ease;
}

.mobile-menu-link:hover,
.mobile-menu-link.active {
    background: rgba(16, 185, 129, 0.1);
    color: var(--primary-mid);
}

/* ── Footer ── */
.site-footer {
    background: linear-gradient(180deg, var(--primary) 0%, #041a10 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(52, 211, 153, 0.5), transparent);
}

.footer-muted {
    color: rgba(255, 255, 255, 0.65);
}

/* ── Mobile CTA bar ── */
.mobile-cta-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 40;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--border);
    padding: 0.625rem 1rem;
    padding-bottom: max(0.625rem, env(safe-area-inset-bottom));
    display: flex;
    gap: 0.625rem;
    box-shadow: 0 -4px 24px rgba(10, 40, 24, 0.08);
}

@media (min-width: 1024px) {
    .mobile-cta-bar { display: none; }
}

.mobile-cta-call {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    padding: 0.75rem;
    border-radius: 0.75rem;
    border: 1.5px solid var(--primary-mid);
    color: var(--primary-mid);
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    transition: background 0.2s ease;
}

.mobile-cta-call:hover {
    background: rgba(20, 83, 45, 0.08);
    color: var(--primary-mid);
}

.mobile-cta-quote {
    flex: 1.4;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, var(--cta-light), var(--cta));
    color: white;
    font-weight: 700;
    font-size: 0.875rem;
    text-decoration: none;
    box-shadow: 0 2px 10px rgba(5, 150, 105, 0.35);
}

/* ── Section accents ── */
.section-dark {
    background: linear-gradient(160deg, var(--primary) 0%, var(--primary-mid) 100%);
}

.icon-box {
    background: linear-gradient(135deg, var(--primary-mid), var(--accent-dark));
    border-radius: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 14px rgba(5, 150, 105, 0.25);
}

.stat-number {
    background: linear-gradient(135deg, var(--primary-mid), var(--accent-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Forms ── */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
textarea,
select {
    border-radius: 0.75rem !important;
    border-color: var(--border) !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--accent) !important;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18) !important;
    outline: none !important;
}

/* ── FAQ ── */
details.group summary {
    border-radius: var(--radius);
}

details.group[open] {
    border-color: rgba(16, 185, 129, 0.25);
    box-shadow: var(--shadow-sm);
}

/* ── Trust accents ── */
.text-accent { color: var(--accent-dark); }
.bg-trust { background-color: var(--surface); }
.badge-trust {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-dark);
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
}

.hero-gradient .badge-trust,
.section-dark .badge-trust,
.page-hero .badge-trust {
    color: var(--highlight);
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(52, 211, 153, 0.35);
}
