/* ===== EMBARCADERO MVB PRO BLACK ===== */
@font-face {
    font-family: 'Embarcadero';
    src: url('../fonts/embarcadero-mvb-pro-black.otf') format('opentype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

/* ===== BASE ===== */
body {
    background-color: #0A0A0A;
    color: #e2e2e2;
    -webkit-font-smoothing: antialiased;
    font-family: 'Inter', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Embarcadero', sans-serif;
    letter-spacing: 0.02em;
}

/* Apply heading font to brand name text nodes in nav/footer */
.brand-name {
    font-family: 'Embarcadero', sans-serif;
    letter-spacing: 0.03em;
}

.material-symbols-filled {
    font-variation-settings: "FILL" 1;
}

/* ===== HERO OVERLAY ===== */
.hero-overlay {
    background: linear-gradient(
        to right,
        rgba(0, 0, 0, 0.93) 0%,
        rgba(0, 0, 0, 0.82) 45%,
        rgba(0, 0, 0, 0.55) 75%,
        rgba(0, 0, 0, 0.35) 100%
    );
}

/* ===== HERO ===== */
.hero-cta-primary {
    align-items: center;
    background: #f2ca50;
    color: #3c2f00;
    display: inline-flex;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 800;
    gap: 8px;
    justify-content: center;
    letter-spacing: 0.1em;
    padding: 16px 32px;
    text-transform: uppercase;
    transition: filter 0.2s;
}
.hero-cta-primary:hover { filter: brightness(0.9); }

.hero-cta-secondary {
    align-items: center;
    border: 2px solid rgba(255, 255, 255, 0.7);
    color: white;
    display: inline-flex;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 700;
    gap: 8px;
    justify-content: center;
    letter-spacing: 0.08em;
    padding: 14px 32px;
    text-transform: uppercase;
    transition: background 0.2s, border-color 0.2s;
}
.hero-cta-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: white;
}

/* ===== MARQUEE ===== */
.marquee-track {
    align-items: center;
    animation: marquee-scroll 35s linear infinite;
    display: flex;
    width: max-content;
}
.marquee-track:hover { animation-play-state: paused; }
@keyframes marquee-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.marquee-item {
    color: #3c2f00;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.12em;
    padding: 0 28px;
    text-transform: uppercase;
    white-space: nowrap;
}
.marquee-dot {
    color: rgba(60, 47, 0, 0.5);
    flex-shrink: 0;
    font-size: 9px;
}

/* ===== SERVICES — ICON CARDS ===== */
.service-icon-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow 0.3s, border-color 0.3s, transform 0.3s;
}
.service-icon-card:hover {
    border-color: rgba(242, 202, 80, 0.6);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.10);
    transform: translateY(-3px);
}
.service-card-image {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    width: 100%;
}
.service-card-image img {
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    width: 100%;
}
.service-icon-card:hover .service-card-image img { transform: scale(1.06); }
.service-icon-wrap {
    align-items: center;
    background: rgba(242, 202, 80, 0.1);
    border: 1px solid rgba(242, 202, 80, 0.25);
    border-radius: 50%;
    display: flex;
    height: 48px;
    justify-content: center;
    margin: 20px 20px 14px;
    width: 48px;
}
.service-icon-card h3 { padding: 0 20px; }
.service-icon-card p   { padding: 0 20px; }
.service-learn-more {
    align-items: center;
    color: #f2ca50;
    display: inline-flex;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.07em;
    padding: 0 20px 20px;
    text-transform: uppercase;
    transition: letter-spacing 0.25s;
}
.service-icon-card:hover .service-learn-more { letter-spacing: 0.12em; }

/* ===== WHY SMP ===== */
.why-card {
    background: #f8f9fa;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    padding: 32px 24px;
    text-align: center;
    transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.why-card:hover {
    border-color: rgba(242, 202, 80, 0.6);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    transform: translateY(-3px);
}
.why-icon {
    align-items: center;
    background: rgba(242, 202, 80, 0.15);
    border: 1px solid rgba(242, 202, 80, 0.4);
    border-radius: 50%;
    display: flex;
    height: 64px;
    justify-content: center;
    margin: 0 auto 20px;
    width: 64px;
}

/* ===== CTA BAND ===== */
.cta-band { overflow: hidden; position: relative; }
.cta-band-bg-logo {
    height: 90%;
    left: 50%;
    max-width: 680px;
    object-fit: contain;
    opacity: 0.05;
    pointer-events: none;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    user-select: none;
    width: auto;
}

/* ===== SOCIAL LINKS ===== */
.social-link {
    align-items: center;
    border: 1px solid #4d4635;
    color: #c8c6c5;
    display: inline-flex;
    height: 34px;
    justify-content: center;
    transition: border-color 0.2s, color 0.2s, background-color 0.2s;
    width: 34px;
}
.social-link:hover {
    background-color: rgba(242, 202, 80, 0.1);
    border-color: #f2ca50;
    color: #f2ca50;
}

/* ===== REVEAL ANIMATION ===== */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.65s ease, transform 0.65s ease;
    transition-delay: var(--reveal-delay, 0ms);
    will-change: opacity, transform;
}
.reveal-on-scroll.reveal-visible {
    opacity: 1;
    transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
    .reveal-on-scroll { opacity: 1; transform: none; transition: none; }
}

/* ===== QUOTE MODAL ===== */
body.quote-modal-open { overflow: hidden; }

.quote-modal {
    align-items: center;
    display: none;
    inset: 0;
    justify-content: center;
    padding: 24px;
    position: fixed;
    z-index: 1000;
}
.quote-modal.is-open { display: flex; }
.quote-modal-backdrop {
    background: rgba(10, 10, 10, 0.82);
    backdrop-filter: blur(10px);
    inset: 0;
    position: absolute;
}
.quote-modal-panel {
    background: #ffffff;
    border: 1px solid rgba(242, 202, 80, 0.45);
    border-radius: 16px;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
    display: flex;
    flex-direction: column;
    max-height: min(820px, calc(100vh - 48px));
    max-width: 980px;
    overflow: hidden;
    position: relative;
    width: min(100%, 980px);
}
.quote-modal-header {
    align-items: center;
    background: linear-gradient(135deg, #0A0A0A 0%, #1e2020 100%);
    border-bottom: 4px solid #f2ca50;
    color: #ffffff;
    display: flex;
    gap: 20px;
    justify-content: space-between;
    padding: 20px 24px;
}
.quote-modal-eyebrow {
    color: #f2ca50;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 18px;
    margin: 0 0 4px;
    text-transform: uppercase;
}
.quote-modal-header h2 {
    font-family: 'Embarcadero', sans-serif;
    font-size: 26px;
    font-weight: 700;
    line-height: 32px;
    margin: 0;
    text-transform: uppercase;
}
.quote-modal-close {
    align-items: center;
    background: rgba(242, 202, 80, 0.12);
    border: 1px solid rgba(242, 202, 80, 0.45);
    color: #f2ca50;
    cursor: pointer;
    display: inline-flex;
    flex: 0 0 44px;
    height: 44px;
    justify-content: center;
    transition: background-color 0.2s, color 0.2s;
    width: 44px;
}
.quote-modal-close:hover { background: #f2ca50; color: #3c2f00; }
.quote-modal-frame-wrap {
    background: #f8fafc;
    flex: 1;
    min-height: 560px;
    overflow: hidden;
}
.quote-modal iframe {
    border: 0;
    display: block;
    height: min(680px, calc(100vh - 170px));
    width: 100%;
}

/* ===== RESPONSIVE ===== */

/* Landscape mobile — prevent hero from being too short */
@media (max-height: 600px) and (orientation: landscape) {
    #home {
        min-height: auto;
        padding-top: 100px;
        padding-bottom: 60px;
    }
}

/* XS screens — phones under 380px (iPhone SE, etc.) */
@media (max-width: 379px) {
    .brand-name { font-size: 14px; }
    .hero-cta-primary,
    .hero-cta-secondary { font-size: 11px; padding: 13px 18px; width: 100%; }
    .why-card { padding: 22px 14px; }
    .why-icon { height: 52px; width: 52px; }
    .service-icon-wrap { height: 40px; margin: 14px 14px 10px; width: 40px; }
    .service-icon-card h3 { padding: 0 14px; font-size: 14px; }
    .service-icon-card p,
    .service-icon-card ul { padding: 0 14px; }
    .service-learn-more { padding: 0 14px 16px; }
}

/* Mobile — phones up to 639px */
@media (max-width: 639px) {
    /* Hero: stronger overlay on mobile since image is centered not left-biased */
    .hero-overlay {
        background: linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0.80) 0%,
            rgba(0, 0, 0, 0.75) 60%,
            rgba(0, 0, 0, 0.65) 100%
        );
    }
    /* Hero CTAs go full-width */
    .hero-cta-primary,
    .hero-cta-secondary { width: 100%; justify-content: center; }
    /* Tighten card internals on mobile */
    .service-icon-card h3 { padding: 0 16px; }
    .service-icon-card p,
    .service-icon-card ul { padding: 0 16px; }
    .service-learn-more { padding: 0 16px 18px; }
    .service-icon-wrap { margin: 16px 16px 12px; }
    /* Why cards tighter on mobile */
    .why-card { padding: 26px 18px; }
    /* Footer brand col spans full width, links in 2 cols */
    footer .brand-name { font-size: 15px; }
    /* Marquee slightly smaller on mobile */
    .marquee-item { font-size: 11px; padding: 0 18px; }
    /* About section stat badge on mobile: centre at bottom of image */
    .about-stat-badge { right: 12px; bottom: -12px; }
}

/* Tablet portrait — 768px to 1023px */
@media (min-width: 768px) and (max-width: 1023px) {
    /* About: tighten gap a little more */
    #about .grid { gap: 40px; }
    /* Services: 2-column on tablet, not 3 — already handled by md:grid-cols-2 lg:grid-cols-3 */
    /* Why SMP: 2-column on tablet — already handled */
    /* CTA band bg logo: smaller on tablet */
    .cta-band-bg-logo { max-width: 420px; }
    /* Why cards slightly less padding */
    .why-card { padding: 28px 20px; }
}

/* Tablet landscape / small laptop — 1024px to 1279px */
@media (min-width: 1024px) and (max-width: 1279px) {
    .cta-band-bg-logo { max-width: 520px; }
}

/* ===== CONTACT MOBILE FIXES ===== */
@media (max-width: 767px) {
    #contact { overflow: hidden; }
    #contact, #contact * { box-sizing: border-box; }
    .contact-section-container {
        max-width: 100%;
        padding-left: 16px;
        padding-right: 16px;
        width: 100%;
    }
    .contact-layout { gap: 32px; }
    .contact-info, .contact-form-card { min-width: 0; width: 100%; }
    .contact-method {
        align-items: flex-start;
        background: #ffffff;
        border: 1px solid #e2e8f0;
        border-radius: 8px;
        gap: 14px;
        padding: 14px;
        width: 100%;
    }
    .contact-icon {
        align-items: center;
        display: inline-flex;
        flex: 0 0 48px;
        height: 48px;
        justify-content: center;
        padding: 0 !important;
        width: 48px;
    }
    .contact-method-text { flex: 1; min-width: 0; }
    .contact-method-value {
        font-size: 18px;
        line-height: 26px;
        overflow-wrap: anywhere;
        word-break: break-word;
    }
    .contact-qr { display: none !important; }
    .contact-form-card { padding: 20px !important; }
    #contact input, #contact select, #contact textarea {
        font-size: 16px;
        min-height: 52px;
        width: 100%;
    }
    #contact textarea { min-height: 140px; }
    #contact button[type="submit"] { padding-bottom: 16px; padding-top: 16px; }

    .quote-modal { align-items: stretch; padding: 12px; }
    .quote-modal-panel { border-radius: 12px; max-height: calc(100vh - 24px); }
    .quote-modal-header { padding: 16px; }
    .quote-modal-header h2 { font-size: 22px; line-height: 28px; }
    .quote-modal-frame-wrap { min-height: 0; }
    .quote-modal iframe { height: calc(100vh - 126px); }
}
