/* ==============================
   CONTACT PAGE
============================== */

/* --- Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500&family=Playfair+Display:wght@500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');

/* --- Root Variables --- */
:root {
    --primary: #0f172a;
    --accent: #c6a75e;
    --light: #f8f8f8;
    --text: #1e293b;
    --max-width: 1200px;
}

/* --- Reset --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Open Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 300;
    font-style: normal;
    font-variation-settings:
    "wdth" 100;
    color: var(--text);
    line-height: 1.7;
    background: white;
}

/* ==============================
   TOP BAR
============================== */

.topbar {
    background: #0b111f;
    color: white;
    padding: 12px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.topbar p {
    font-weight: 300;
    font-size: 0.95rem;
}

.topbar a {
    color: white;
    text-decoration: none;
    transition: 0.3s ease;
}

.topbar a:hover {
    color: var(--accent);
}

.links {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* ==============================
   TITLE SECTION
============================== */

.title {
    background: var(--primary);
    color: white;
    text-align: center;
    padding: 100px 20px 90px;
}

.title h1 {
    font-family: "Montserrat", sans-serif;
    font-optical-sizing: auto;
    font-weight: 600;
    font-style: normal;
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 600;
}

.title::after {
    content: "";
    display: block;
    width: 70px;
    height: 2px;
    background: var(--accent);
    margin: 30px auto 0;
}

/* ==============================
   MAIN CONTACT LAYOUT
============================== */

.contact {
    max-width: var(--max-width);
    margin: 80px auto;
    padding: 0 30px;
    display: grid;
    gap: 80px;
}

/* ==============================
   MAP
============================== */

.map iframe {
    width: 100%;
    height: 420px;
    border: none;
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

/* ==============================
   CONTACT INFO
============================== */

.contact-info {
    text-align: center;
}

.contact-info h2 {
    font-family: "Montserrat", sans-serif;
    font-optical-sizing: auto;
    font-weight: 600;
    font-style: normal;
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--primary);
}

.contact-info h3 {
    font-weight: 400;
    margin-bottom: 50px;
    color: #475569;
}

/* --- Contact Boxes --- */

.contact-boxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.box {
    background: white;
    padding: 40px 30px;
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.06);
    transition: 0.4s ease;
}

.box:hover {
    transform: translateY(-6px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.12);
}

.box img {
    width: 40px;
    margin-bottom: 20px;
}

.box p {
    margin-bottom: 12px;
    font-size: 1rem;
}

.box a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s ease;
}

.box a:hover {
    color: var(--accent);
}

/* ==============================
   DROPDOWN
============================== */

.dropbtn {
    background: transparent;
    border: none;
    font-size: 26px;
    color: white;
    cursor: pointer;
    transition: 0.3s ease;
}

.dropbtn:hover {
    color: var(--accent);
}

.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    top: 120%;
    background: white;
    min-width: 180px;
    border-radius: 6px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    overflow: hidden;
}

.dropdown-content a {
    display: block;
    padding: 14px 18px;
    color: var(--primary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: 0.3s ease;
}

.dropdown-content a:hover {
    background: var(--light);
    padding-left: 24px;
}

.show {
    display: block;
}

/* ==============================
   PRELOADER
============================== */

#preloader {
    position: fixed;
    inset: 0;
    background: white;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #e2e8f0;
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ==============================
   RESPONSIVE
============================== */

@media (max-width: 768px) {
    .topbar {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .contact {
        gap: 60px;
        margin: 60px auto;
    }

    .map iframe {
        height: 320px;
    }
}

@media (max-width: 480px) {
    .title {
        padding: 70px 20px;
    }

    .title h1 {
        font-size: 1.8rem;
    }

    .box {
        padding: 30px 20px;
    }
}
