/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    background: #fff;
    color: #000;
}

nav {
    position: absolute;        /* 🔥 key fix */
    top: 0;
    left: 0;
    width: 100%;

    display: flex;
    align-items: center;
    padding: 2rem 4rem;
    z-index: 20;
}

.nav-spacer {
    flex: 1;
}

.logo img {
    width: 300px;
    border-radius: 12px;
}

/* NAV LINKS */
.nav-links {
    display: flex;
    gap: 1rem;
    list-style: none;
}

.nav-links > li > a {
    position: relative;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    background: rgba(255,255,255,0.14);
    border: 1px solid rgba(255,255,255,0.25);
    color: #fff;
    text-decoration: none;
    backdrop-filter: blur(10px);
    transition: .4s ease;
    box-shadow: 0 0 10px #0047aa40;
}

/* RIPPLE */
.nav-links > li > a::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--g2);
    opacity: .85;
    border-radius: inherit;
    transform: scale(0);
    transition: .5s ease;
    z-index: -1;
}

.nav-links > li > a:hover::after {
    transform: scale(1);
}

/* DROPDOWN */
.nav-item {
    position: relative;
}

.dropdown {
    position: absolute;
    top: 170%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);

    padding: .75rem;
    background: rgba(0,0,0,.65);
    backdrop-filter: blur(14px);
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,.2);
    box-shadow: 0 20px 40px rgba(0,0,0,.4);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: .35s ease;

    display: grid;
    grid-template-columns: 1fr; /* default: single column */
    gap: .25rem;
    min-width: 160px;
}

/* 🔥 If dropdown has MORE THAN 3 items → 2 columns */
.dropdown:has(a:nth-child(4)) {
    grid-template-columns: repeat(2, minmax(160px, 1fr));
    min-width: 340px;
}


/* ✅ ONLY JS CONTROLS VISIBILITY */
.nav-item.open .dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.dropdown a {
    display: block;
    padding: .75rem 1.25rem;
    border-radius: 12px;
    color: #fff;
    text-decoration: none;
    transition: .3s ease;
}

.dropdown a:hover {
    background: var(--g2);
    transform: translateX(4px);
}

/* HERO */
.contact-hero {
    min-height: 100vh;
    background:
        linear-gradient(rgba(0,0,0,.6), rgba(0,0,0,.6)),
        url("assets/images/contact.jpg");
    background-size: cover;
    background-position: center;
    position: relative;
    color: white;
}

.contact-hero-text {
    max-width: 900px;
    margin: 0 auto;
    padding-top: 14rem;
    text-align: center;
}

.contact-hero-text h1 {
    font-size: 3.4rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.5rem;
}

.contact-hero-text p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* INFO STRIP */
.contact-info-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: -6rem auto 6rem;
    padding: 0 4rem;
    z-index: 5;
    position: relative;
}

.info-card {
    padding: 2rem;
    border-radius: 20px;
}

.glass {
    background: rgba(255,255,255,0.75);
    backdrop-filter: blur(16px);
    box-shadow: 0 30px 60px rgba(0,0,0,.25);
}

.info-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.6rem;
}

.info-card p {
    font-size: 0.95rem;
    line-height: 1.6;
}

/* FORM SECTION */
.contact-form-section {
    padding: 6rem 0;
    background: #f4f4f4;
}

.contact-form {
    max-width: 900px;
    margin: 0 auto;
    padding: 3.5rem 4rem;
    border-radius: 28px;
}

.contact-form h2 {
    font-size: 2.4rem;
    font-weight: 800;
    margin-bottom: 0.6rem;
}

.form-subtext {
    margin-bottom: 2.5rem;
    color: #444;
}

form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

input,
textarea {
    padding: 1rem 1.2rem;
    border-radius: 14px;
    border: none;
    background: rgba(255,255,255,0.9);
    font-size: 0.95rem;
}

textarea {
    min-height: 140px;
    resize: none;
}

button {
    align-self: flex-start;
    padding: 0.9rem 2.2rem;
    border-radius: 999px;
    border: none;
    background: linear-gradient(45deg, #8cb500, #0047aa);
    color: white;
    font-size: 0.95rem;
    cursor: pointer;
    transition: .3s ease;
}

button:hover {
    transform: translateY(-2px);
}

/* CTA */
.contact-cta {
    padding: 4rem 2rem;
    text-align: center;
}

.contact-cta h3 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.8rem;
}

.contact-cta p {
    font-size: 1rem;
    color: #444;
}




/* ===============================
   LOCATIONS SECTION
=============================== */

.locations-section {
    padding: 90px 100px;
    background: linear-gradient(180deg, #f6faf7, #ffffff);
    text-align: center;
}

.section-eyebrow {
    font-size: 0.75rem;
    letter-spacing: 2px;
    color: #4caf50;
    font-weight: 700;
    margin-bottom: 10px;
}

.locations-grid {
    margin-top: 60px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

/* CARD */
.location-card {
    text-align: left;
    padding: 32px;
    border-radius: 20px;
    backdrop-filter: blur(12px);
    background:  rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 18px 40px rgba(0,0,0,0.08);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.location-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 28px 60px rgba(0,0,0,0.14);
}

/* ICON */
.location-card .icon {
    font-size: 1.5rem;
    background: #6c6c6c;
    color: #1b5e20;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}

/* TEXT */
.location-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: #0f3d2e;
}

.location-card h5 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #2e7d32;
    margin-bottom: 12px;
}

.location-card p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: rgba(0,0,0,0.75);
}

/* ===============================
   RESPONSIVE
=============================== */

@media (max-width: 1100px) {
    .locations-section {
        padding: 80px 50px;
    }
}

@media (max-width: 768px) {
    .locations-grid {
        grid-template-columns: 1fr;
    }

    .locations-section {
        padding: 70px 30px;
    }
}

