@import url('extra.css');

:root {
    --font-heading: "Playfair Display", Georgia, serif;
    --font-body: "Inter", system-ui, -apple-system, sans-serif;

    /* Premium Palette - Navy & Gold */
    --color-primary: #0a192f;
    /* Deepest Navy */
    --color-primary-light: #112240;
    /* Lighter Navy for cards */
    --color-primary-accent: #d4af37;
    /* Metallic Gold */
    --color-primary-accent-hover: #f3c648;
    /* Lighter Gold */

    --color-bg: #fdfbf7;
    /* Warm White / Cream */
    --color-bg-soft: #f4f1ea;
    /* Soft Beige */
    --color-surface: #ffffff;

    --color-text: #334155;
    /* Slate 700 */
    --color-heading: #0f172a;
    /* Slate 900 */
    --color-muted: #64748b;
    /* Slate 500 */
    --color-border: #e2e8f0;

    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 20px 40px -10px rgba(0, 0, 0, 0.12);

    --radius-md: 0.75rem;
    --radius-lg: 1.5rem;

    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
    --color-primary: #020c1b;
    --color-primary-light: #112240;
    --color-primary-accent: #d4af37;
    --color-primary-accent-hover: #eecb6d;

    --color-bg: #0a192f;
    --color-bg-soft: #112240;
    --color-surface: #1e293b;
    /* Fallback */
    --color-surface: rgba(17, 34, 64, 0.7);
    /* Glassy dark */

    --color-text: #8892b0;
    --color-heading: #ccd6f6;
    --color-muted: #8892b0;
    --color-border: #233554;

    --glass-bg: rgba(17, 34, 64, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);

    --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    --shadow-hover: 0 20px 40px -10px rgba(0, 0, 0, 0.6);
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    background: var(--color-bg);
    color: var(--color-text);
    min-height: 100vh;
    line-height: 1.7;
    transition: background-color var(--transition-base), color var(--transition-base);
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-base);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: min(1200px, 100% - 3rem);
    margin-inline: auto;
}

/* Typography */
h1,
h2,
h3 {
    font-family: var(--font-heading);
    color: var(--color-heading);
    line-height: 1.2;
    margin-bottom: 1rem;
}

.eyebrow {
    font-family: var(--font-body);
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-primary-accent);
    font-weight: 600;
    margin-bottom: 1rem;
    display: block;
}

p {
    margin-bottom: 1.5rem;
}

/* Layout */
.section {
    padding-block: clamp(5rem, 10vw, 8rem);
    position: relative;
    overflow: hidden;
}

.section__intro {
    text-align: center;
    max-width: 700px;
    margin-inline: auto;
    margin-bottom: 4rem;
}

.section__intro h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

.section__intro p {
    font-size: 1.125rem;
    color: var(--color-muted);
}

/* Header */
.header {
    position: sticky;
    top: 0;
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 100;
    transition: all var(--transition-base);
    box-shadow: var(--glass-shadow);
}

[data-theme="dark"] .header {
    background: var(--glass-bg);
    border-bottom: 1px solid var(--glass-border);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-block: 1.25rem;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-heading);
    letter-spacing: -0.02em;
}

.logo span {
    color: var(--color-primary-accent);
}

/* Navigation */
.nav ul {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text);
    position: relative;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary-accent);
    transition: width var(--transition-base);
}

.nav a:hover {
    color: var(--color-heading);
}

.nav a:hover::after {
    width: 100%;
}

/* Actions */
.header__actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.theme-toggle,
.mobile-menu {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    color: var(--color-heading);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
}

.theme-toggle:hover,
.mobile-menu:hover {
    border-color: var(--color-primary-accent);
    color: var(--color-primary-accent);
}

.mobile-menu {
    display: none;
    font-size: 1.25rem;
}

.theme-toggle__icon {
    display: none;
}

[data-theme="light"] .theme-toggle__icon--sun,
[data-theme="dark"] .theme-toggle__icon--moon {
    display: block;
}

/* Hero - Enhanced Background */
.hero {
    position: relative;
    color: #ffffff;
    padding-block: clamp(8rem, 15vw, 12rem);
    text-align: center;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 90vh;
    /* Increased height for impact */
}

.hero__bg-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.hero__bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.8) contrast(1.1);
    transform: scale(1.05);
    transition: transform 10s ease;
}

.hero:hover .hero__bg {
    transform: scale(1);
}

.hero__overlay {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
            rgba(10, 25, 47, 0.7) 0%,
            rgba(10, 25, 47, 0.4) 40%,
            rgba(10, 25, 47, 0.8) 100%);
    z-index: 1;
}

.hero__inner {
    width: 100%;
    max-width: 1100px;
    margin-inline: auto;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4rem;
}

.hero__content {
    animation: fade-up 1s ease-out;
    max-width: 800px;
}

@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero h1 {
    font-size: clamp(3rem, 7vw, 5.5rem);
    color: #ffffff;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
    line-height: 1.1;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero .lead {
    font-size: clamp(1.125rem, 2vw, 1.35rem);
    color: rgba(255, 255, 255, 0.95);
    max-width: 750px;
    margin-inline: auto;
    margin-bottom: 3rem;
    font-weight: 300;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero__cta {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.hero__stats-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    animation: fade-up 1s ease-out 0.3s backwards;
}

.hero__stats {
    display: flex;
    justify-content: center;
    gap: clamp(2rem, 6vw, 5rem);
    list-style: none;
    flex-wrap: wrap;
    padding: 2rem 4rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
}

.hero__stats li {
    text-align: center;
}

.hero__stats strong {
    display: block;
    font-size: 2.5rem;
    font-family: var(--font-heading);
    color: var(--color-primary-accent);
    margin-bottom: 0.25rem;
    background: linear-gradient(to right, #d4af37, #f3c648);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero__stats span {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.9;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    font-weight: 600;
    border-radius: 2rem;
    /* Pill shape for modern look */
    transition: all var(--transition-base);
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    font-size: 1rem;
    letter-spacing: 0.02em;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: width var(--transition-base);
    z-index: -1;
}

.btn:hover::before {
    width: 100%;
}

.btn:active {
    transform: scale(0.96);
}

.btn--primary {
    background: var(--color-primary-accent);
    color: #ffffff;
    border-color: var(--color-primary-accent);
}

.btn--primary:hover {
    background: var(--color-primary-accent-hover);
    border-color: var(--color-primary-accent-hover);
    box-shadow: 0 10px 20px -5px rgba(197, 160, 89, 0.4);
}

.btn--ghost {
    background: transparent;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.3);
}

.btn--ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #ffffff;
}

.btn--full {
    width: 100%;
}

/* Cards & Grid */
.grid {
    display: grid;
    gap: 2.5rem;
}

.services__grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.card {
    background: var(--color-surface);
    padding: 3rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--color-primary-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-base);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: transparent;
}

.card:hover::before {
    transform: scaleX(1);
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--color-primary);
}

/* Coverage */
.coverage {
    background: var(--color-bg-soft);
    position: relative;
}

.coverage__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.coverage__card {
    background: var(--color-surface);
    padding: 3rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--color-border);
    position: relative;
}

.coverage__card::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(to bottom right, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.checklist {
    list-style: none;
    margin-bottom: 2rem;
}

.checklist li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 0.75rem;
}

.checklist li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--color-primary-accent);
    font-weight: bold;
}

.coverage__card ul {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.coverage__card li::before {
    content: "•";
    color: var(--color-primary-accent);
    margin-right: 0.5rem;
}

.disclaimer {
    font-size: 0.875rem;
    color: var(--color-muted);
    margin-top: 1rem;
    font-style: italic;
}

/* Testimonials */
.testimonials {
    background: linear-gradient(to bottom, var(--color-bg) 0%, var(--color-bg-soft) 100%);
}

.testimonials__grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.testimonial {
    background: var(--color-surface);
    padding: 3rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-base);
}

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

.testimonial blockquote {
    font-size: 1.25rem;
    font-style: italic;
    color: var(--color-heading);
    margin-bottom: 2rem;
    flex-grow: 1;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

.testimonial blockquote::before {
    content: "“";
    font-family: var(--font-heading);
    font-size: 5rem;
    color: var(--color-primary-accent);
    line-height: 0;
    position: absolute;
    top: -1rem;
    left: -1.5rem;
    opacity: 0.15;
    z-index: -1;
}

.testimonial figcaption {
    font-weight: 700;
    color: var(--color-primary);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.testimonial figcaption::before {
    content: '';
    width: 20px;
    height: 1px;
    background: var(--color-primary-accent);
}

/* Contact */
.contact {
    position: relative;
    overflow: hidden;
}

.contact__inner {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 6rem;
    align-items: start;
}

.contact__copy p {
    font-size: 1.25rem;
    color: var(--color-muted);
    margin-bottom: 2rem;
}

.contact__points li {
    position: relative;
    padding-left: 2.5rem;
    margin-bottom: 1.25rem;
    font-size: 1.1rem;
}

.contact__points li::before {
    content: "→";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--color-primary-accent);
    font-weight: bold;
    background: none;
    width: auto;
    height: auto;
}

.form {
    background: var(--color-surface);
    padding: 2.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--color-border);
}

.form__group {
    margin-bottom: 1.5rem;
}

.form label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--color-heading);
}

.form input,
.form textarea,
.form select {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: 0.5rem;
    background: var(--color-bg);
    color: var(--color-text);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.form select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23334155' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.form input:focus,
.form textarea:focus,
.form select:focus {
    outline: none;
    border-color: var(--color-primary-accent);
    box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.1);
}

.honeypot {
    position: absolute;
    left: -9999px;
    opacity: 0;
}

.char-count {
    display: block;
    text-align: right;
    font-size: 0.75rem;
    color: var(--color-muted);
    margin-top: 0.5rem;
}

.form__status {
    margin-top: 1rem;
    font-size: 0.9rem;
    text-align: center;
    min-height: 1.5rem;
}

.form__status.success {
    color: #10b981;
}

.form__status.error {
    color: #ef4444;
}

/* Loader */
.btn__loader {
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: none;
}

.btn.loading .btn__loader {
    display: inline-block;
}

.btn.loading .btn__text {
    display: none;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Footer */
.footer {
    background: var(--color-primary);
    color: rgba(255, 255, 255, 0.7);
    padding-block: 4rem;
    border-top: none;
}

.footer__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer p {
    margin-bottom: 0;
}

.footer__links {
    display: flex;
    gap: 2rem;
}

.footer a {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    transition: color var(--transition-base);
}

.footer a:hover {
    color: var(--color-primary-accent);
}

/* Animation Utils */
.reveal-init {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s cubic-bezier(0.2, 0.8, 0.2, 1), transform 1s cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: opacity, transform;
}

.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 900px) {

    .coverage__inner,
    .contact__inner {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .mobile-menu {
        display: flex;
    }

    .nav {
        position: fixed;
        top: 73px;
        /* Header height approx */
        left: 0;
        right: 0;
        background: var(--glass-bg);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        padding: 2rem;
        border-bottom: 1px solid var(--glass-border);
        box-shadow: var(--glass-shadow);
        transform: translateY(-150%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 90;
    }

    .nav.open {
        transform: translateY(0);
    }

    .nav ul {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    .nav a {
        font-size: 1.25rem;
        font-weight: 500;
    }
}

@media (max-width: 600px) {
    .hero h1 {
        font-size: 2.75rem;
    }

    .hero__stats {
        gap: 1.5rem;
        padding: 1.5rem;
    }

    .footer__inner {
        flex-direction: column;
        text-align: center;
    }

    .footer__links {
        flex-direction: column;
        gap: 1rem;
    }
}