/* ============================================================
   GLOBAL
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Anton&family=REM:ital,wght@0,100..900;1,100..900&family=Space+Mono:ital,wght@0,400;0,700;1,400;1,700&family=Syne:wght@400..800&display=swap');

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

html, body {
    font-family: 'REM', 'Segoe UI', sans-serif;
    background: #f9fafb;
    color: #1f2937;
    overflow-x: hidden;
}

/* ============================================================
   KEYFRAMES (shared with main site)
   ============================================================ */
@keyframes gradientScroll {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes logoBreath {
    0%, 100% {
        filter: drop-shadow(0 2px 8px rgba(96,165,250,0.2));
    }

    50% {
        filter: drop-shadow(0 4px 22px rgba(96,165,250,0.55));
    }
}

@keyframes shimmerSweep {
    0% {
        left: -80%;
    }

    100% {
        left: 130%;
    }
}

@keyframes borderFlow {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 200% 50%;
    }
}

@keyframes cardShine {
    0% {
        left: -100%;
    }

    100% {
        left: 160%;
    }
}

@keyframes floatUp {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

@keyframes loaderDots {
    0%, 80%, 100% {
        opacity: 0.2;
        transform: scale(0.8);
    }

    40% {
        opacity: 1;
        transform: scale(1.1);
    }
}

@keyframes loaderPulse {
    0%, 100% {
        opacity: 0.6;
        transform: scale(0.97);
    }

    50% {
        opacity: 1;
        transform: scale(1);
    }
}

/* ============================================================
   HEADER
   ============================================================ */
.main-header {
    position: sticky;
    top: 0;
    z-index: 999;
    width: 100%;
    background: rgba(15, 30, 70, 0.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 30px;
}

    .main-header .left {
        display: flex;
        align-items: center;
        gap: 12px;
        flex-shrink: 0;
        cursor: default;
    }

.sv-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
    animation: logoBreath 3s ease-in-out infinite;
}

.main-header .left h1 {
    font-family: 'Syne', sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1.2;
    color: #fff;
    transition: text-shadow 0.3s ease;
}

.main-header .left:hover h1 {
    text-shadow: 0 0 20px rgba(96,165,250,0.5);
}

.main-header .left p {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 0;
}

    .nav-menu a {
        margin-left: 20px;
        font-weight: 600;
        color: rgba(255,255,255,0.85);
        text-decoration: none;
        font-size: 1rem;
        white-space: nowrap;
        position: relative;
        padding-bottom: 3px;
        transition: color 0.2s;
    }

        .nav-menu a::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 0;
            height: 2px;
            background: linear-gradient(90deg, #60a5fa, #93c5fd);
            transition: width 0.28s cubic-bezier(0.34,1.56,0.64,1);
            border-radius: 1px;
        }

        .nav-menu a:hover {
            color: #fff;
        }

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

        .nav-menu a.active {
            color: #93c5fd;
        }

            .nav-menu a.active::after {
                width: 100%;
            }

/* Hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    z-index: 1001;
}

    .nav-toggle span {
        display: block;
        width: 26px;
        height: 2px;
        background: #fff;
        border-radius: 2px;
        transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s ease, width 0.3s ease;
    }

    .nav-toggle:hover span:nth-child(1) {
        width: 22px;
    }

    .nav-toggle:hover span:nth-child(3) {
        width: 18px;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

/* ============================================================
   PAGE TITLE BAR
   ============================================================ */
.page-title-bar {
    background: linear-gradient(135deg, #0f1e46 0%, #1a3a8a 50%, #1e56c8 100%);
    background-size: 200% 200%;
    animation: gradientScroll 12s ease infinite;
    color: #fff;
    padding: 48px 60px 40px;
    position: relative;
    overflow: hidden;
}

    /* Shimmer sweep on page title bar */
    .page-title-bar::before {
        content: '';
        position: absolute;
        top: 0;
        left: -80%;
        width: 60%;
        height: 100%;
        background: linear-gradient( 105deg, transparent 20%, rgba(255,255,255,0.04) 50%, transparent 80% );
        animation: shimmerSweep 5s ease-in-out infinite;
        pointer-events: none;
    }

    .page-title-bar h2 {
        font-family: 'Syne', sans-serif;
        font-size: 2.4rem;
        font-weight: 800;
        margin-bottom: 6px;
        position: relative;
        z-index: 1;
        text-shadow: 0 2px 20px rgba(0,0,0,0.3);
    }

.breadcrumb {
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.55);
    letter-spacing: 0.06em;
    position: relative;
    z-index: 1;
}

    .breadcrumb a {
        color: #93c5fd;
        text-decoration: none;
        transition: color 0.2s;
    }

        .breadcrumb a:hover {
            color: #fff;
            text-decoration: underline;
        }

/* ============================================================
   CONTACT MAIN — FORM + MAP SIDE BY SIDE
   ============================================================ */
.contact-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 580px;
    border-top: 1px solid #e5e7eb;
}

/* ── LEFT: FORM BOX ── */
.contact-form-box {
    background: #fff;
    padding: 48px 44px;
    border-right: 1px solid #e5e7eb;
    position: relative;
    overflow: hidden;
}

    /* Subtle top stripe matching service card style */
    .contact-form-box::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(90deg, #1a3a8a, #3b82f6);
        border-radius: 0;
    }

    .contact-form-box h3 {
        font-family: 'Syne', sans-serif;
        font-size: 1.5rem;
        font-weight: 800;
        color: #1a3a8a;
        margin-bottom: 6px;
    }

    .contact-form-box > p {
        font-size: 0.9rem;
        color: #6b7280;
        margin-bottom: 28px;
        line-height: 1.6;
    }

/* Form layout */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

    .form-group label {
        font-family: 'Space Mono', monospace;
        font-size: 0.72rem;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        color: #374151;
        font-weight: 700;
    }

.req {
    color: #ef4444;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-family: 'REM', sans-serif;
    font-size: 0.9rem;
    color: #1f2937;
    background: #f9fafb;
    outline: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    width: 100%;
}

    .form-group input:focus,
    .form-group select:focus,
    .form-group textarea:focus {
        border-color: #3b82f6;
        box-shadow: 0 0 0 3px rgba(59,130,246,0.12);
        background: #fff;
    }

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%231a3a8a' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    cursor: pointer;
}

.form-group textarea {
    resize: vertical;
    min-height: 110px;
}

.submit-btn {
    padding: 12px 32px;
    background: linear-gradient(135deg, #1a3a8a, #1e56c8);
    color: #fff;
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.3s ease;
    align-self: flex-start;
    letter-spacing: 0.04em;
    box-shadow: 0 4px 16px rgba(26,58,138,0.3);
}

    .submit-btn:hover {
        transform: translateY(-3px) scale(1.03);
        box-shadow: 0 10px 28px rgba(26,58,138,0.4);
    }

    .submit-btn:active {
        transform: translateY(0);
    }

    .submit-btn:disabled {
        opacity: 0.6;
        cursor: not-allowed;
        transform: none;
    }

.form-status {
    font-size: 0.85rem;
    min-height: 20px;
    margin-top: -8px;
}

    .form-status.success {
        color: #10b981;
    }

    .form-status.error {
        color: #ef4444;
    }

/* ── RIGHT: MAP BOX ── */
.contact-map-box {
    position: relative;
    min-height: 580px;
    background: #e5e7eb;
    overflow: hidden;
}

    .contact-map-box iframe {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        border: 0;
        display: block;
    }

.map-link-btn {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    background: #fff;
    color: #1a3a8a;
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 0.78rem;
    padding: 7px 14px;
    border-radius: 8px;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(26,58,138,0.15);
    border: 1px solid #bfdbfe;
    transition: background 0.25s, color 0.25s, transform 0.3s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.3s;
}

    .map-link-btn:hover {
        background: #1a3a8a;
        color: #fff;
        transform: translateY(-2px);
        box-shadow: 0 8px 24px rgba(26,58,138,0.3);
    }

/* ============================================================
   FOOTER  (matches index/style.css exactly)
   ============================================================ */
.main-footer {
    background: linear-gradient(135deg, #0f1e46 0%, #1a3a8a 100%);
    color: rgba(255,255,255,0.88);
    padding: 48px 20px 24px;
    font-size: 0.9rem;
    position: relative;
    z-index: 1;
    margin-top: auto;
}

    /* Animated rainbow top border */
    .main-footer::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(90deg, #1a56db, #60a5fa, #f97316, #60a5fa, #1a56db);
        background-size: 200% 100%;
        animation: borderFlow 4s linear infinite;
    }

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: auto;
    gap: 30px;
}

.footer-column {
    flex: 1 1 260px;
    min-width: 240px;
}

    .footer-column h3,
    .footer-column h4 {
        font-size: 1.05rem;
        margin-bottom: 14px;
        color: #fff;
        font-weight: 700;
        letter-spacing: 0.02em;
        position: relative;
        display: inline-block;
    }

        /* Underline reveal on hover */
        .footer-column h4::after,
        .footer-column h3::after {
            content: '';
            position: absolute;
            bottom: -3px;
            left: 0;
            width: 0;
            height: 1.5px;
            background: linear-gradient(90deg, #60a5fa, transparent);
            transition: width 0.35s cubic-bezier(0.34,1.56,0.64,1);
            border-radius: 1px;
        }

    .footer-column:hover h4::after,
    .footer-column:hover h3::after {
        width: 100%;
    }

    .footer-column ul {
        list-style: none;
        padding-left: 0;
        margin-bottom: 20px;
    }

        .footer-column ul li {
            margin-bottom: 8px;
        }

            .footer-column ul li a {
                color: rgba(255,255,255,0.72);
                text-decoration: none;
                transition: color 0.2s, padding-left 0.25s cubic-bezier(0.34,1.56,0.64,1), letter-spacing 0.2s;
            }

                .footer-column ul li a:hover {
                    color: #fff;
                    padding-left: 6px;
                    letter-spacing: 0.02em;
                }

.footer-address {
    position: relative;
}

.world-map {
    width: 120%;
    opacity: 0.06;
    position: absolute;
    top: -100px;
    left: 0;
    z-index: 0;
    pointer-events: none;
}

.footer-address p {
    position: relative;
    z-index: 1;
    line-height: 1.8;
    color: rgba(255,255,255,0.78);
}

.newsletter-form {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    margin: 10px 0 20px;
    gap: 8px;
}

    .newsletter-form img {
        width: 24px;
        height: auto;
        filter: brightness(0) invert(1) opacity(0.7);
    }

    .newsletter-form input[type="email"] {
        padding: 9px 12px;
        flex: 1;
        min-width: 140px;
        border: 1px solid rgba(255,255,255,0.2);
        background: rgba(255,255,255,0.08);
        color: #fff;
        outline: none;
        border-radius: 6px;
        transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
    }

        .newsletter-form input[type="email"]:focus {
            border-color: rgba(96,165,250,0.7);
            background: rgba(255,255,255,0.12);
            box-shadow: 0 0 0 3px rgba(96,165,250,0.15);
        }

        .newsletter-form input[type="email"]::placeholder {
            color: rgba(255,255,255,0.4);
        }

    .newsletter-form button {
        padding: 9px 18px;
        background: linear-gradient(135deg, #f97316, #ea580c);
        color: #fff;
        border: none;
        cursor: pointer;
        border-radius: 6px;
        font-weight: 700;
        font-size: 0.875rem;
        transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.3s ease;
        box-shadow: 0 4px 16px rgba(249,115,22,0.35);
    }

        .newsletter-form button:hover {
            transform: translateY(-3px) scale(1.04);
            box-shadow: 0 10px 28px rgba(249,115,22,0.5);
        }

.social-icons {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

    .social-icons > div {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 6px;
        padding: 12px 16px;
        background: rgba(255,255,255,0.07);
        border: 1px solid rgba(255,255,255,0.12);
        border-radius: 10px;
        cursor: pointer;
        transition: background 0.25s ease, transform 0.3s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.3s ease;
        position: relative;
    }

        .social-icons > div:hover {
            background: rgba(255,255,255,0.14);
            transform: translateY(-5px) scale(1.05);
            box-shadow: 0 8px 24px rgba(96,165,250,0.2);
        }

    .social-icons img {
        width: 32px;
        height: 32px;
        object-fit: contain;
        transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1);
    }

    .social-icons > div:hover img {
        transform: rotate(-8deg) scale(1.15);
    }

    .social-icons p {
        font-size: 0.78rem;
        color: rgba(255,255,255,0.72);
        text-align: center;
    }

.footer-bottom {
    text-align: center;
    margin-top: 36px;
    padding-top: 18px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
}

    .footer-bottom a {
        color: rgba(255,255,255,0.65);
        text-decoration: underline;
        transition: color 0.2s ease, text-shadow 0.2s ease;
    }

        .footer-bottom a:hover {
            color: #fff;
            text-shadow: 0 0 12px rgba(96,165,250,0.4);
        }

/* ============================================================
   RESPONSIVE — TABLET (≤ 900px)
   ============================================================ */
@media (max-width: 900px) {
    .page-title-bar {
        padding: 36px 30px 28px;
    }

    .contact-main {
        grid-template-columns: 1fr;
    }

    .contact-form-box {
        padding: 36px 30px;
        border-right: none;
        border-bottom: 1px solid #e5e7eb;
    }

    .contact-map-box {
        min-height: 380px;
    }
}

/* ============================================================
   RESPONSIVE — MOBILE (≤ 768px)
   ============================================================ */
@media (max-width: 768px) {
    /* Header */
    .main-header {
        padding: 10px 16px;
    }

        .main-header .left h1 {
            font-size: 1.2rem;
        }

        .main-header .left p {
            font-size: 0.75rem;
        }

    .sv-logo {
        height: 32px;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(15,30,70,0.98);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s ease, padding 0.3s ease;
        z-index: 998;
        border-top: 1px solid rgba(255,255,255,0.08);
    }

        .nav-menu.open {
            max-height: 300px;
            padding: 10px 0;
        }

        .nav-menu a {
            margin: 0;
            padding: 12px 24px;
            width: 100%;
            border-bottom: 1px solid rgba(255,255,255,0.06);
        }

            .nav-menu a:last-child {
                border-bottom: none;
            }

    /* Page title */
    .page-title-bar {
        padding: 32px 20px 24px;
    }

        .page-title-bar h2 {
            font-size: 1.8rem;
        }

    .contact-form-box {
        padding: 28px 18px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-map-box {
        min-height: 300px;
    }

    /* Footer */
    .main-footer {
        padding: 28px 14px 16px;
    }

    .footer-container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .footer-column:last-child {
        grid-column: 1 / -1;
    }

    .footer-column {
        min-width: unset;
        width: 100%;
    }

        .footer-column h3,
        .footer-column h4 {
            font-size: 0.9rem;
            margin-bottom: 8px;
        }

        .footer-column ul li {
            margin-bottom: 4px;
        }

            .footer-column ul li a,
            .footer-column ul li {
                font-size: 0.78rem;
            }

    .footer-address p {
        font-size: 0.78rem;
        line-height: 1.5;
    }

    .footer-column > p {
        font-size: 0.78rem;
        margin-bottom: 6px;
    }

    .world-map {
        display: none;
    }

    .newsletter-form {
        flex-direction: row;
        flex-wrap: wrap;
        margin: 6px 0 12px;
        gap: 6px;
    }

        .newsletter-form img {
            width: 18px;
        }

        .newsletter-form input[type="email"] {
            flex: 1 1 120px;
            padding: 6px 8px;
            font-size: 0.8rem;
        }

        .newsletter-form button {
            padding: 6px 12px;
            font-size: 0.8rem;
        }

    .social-icons {
        gap: 10px;
    }

        .social-icons > div {
            padding: 8px 10px;
        }

        .social-icons img {
            width: 26px;
            height: 26px;
        }

        .social-icons p {
            font-size: 0.7rem;
        }

    .footer-bottom {
        margin-top: 14px;
        padding-top: 10px;
        font-size: 0.72rem;
    }
}
