/* ========== GLOBAL ========== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background-color: #faf7f2;
    color: #0b1020;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    padding: 0 20px;
    margin: 0 auto;
}

/* ======================= HEADER ======================= */
.site-header {
    background-color: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 10px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 0;
    gap: 20px;
}

/* LOGO */
.logo-wrapper {
    display: flex;
    align-items: center;
}

.header-logo {
    width: 160px;
    height: auto;
    object-fit: contain;
}

/* NAV WRAPPER (nav + button on the right) */
.nav-wrapper {
    display: flex;
    align-items: center;
    gap: 32px;
    padding-right: 16px;  /* right padding for better spacing on larger screens */
}

/* ========== NAV CENTER STYLES ========== */

.nav-center {
    display: flex;
    justify-content: center;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 26px;
}

.header-nav li a {
    position: relative;
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    padding-bottom: 3px;
    transition: color 0.25s ease;
}

/* HOVER BOTTOM LINE */
.header-nav li a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 0;
    background: #4f46e5;
    transition: width 0.25s ease;
}

.header-nav li a:hover {
    color: #4f46e5;
}

.header-nav li a:hover::after {
    width: 100%;
}

/* ACTIVE PAGE HIGHLIGHT */
.header-nav li a.active {
    color: #4f46e5 !important;
}

.header-nav li a.active::after {
    width: 100%;
    background: #4f46e5;
}

/* RIGHT SIDE BUTTON */

.nav-right {
    display: flex;
    justify-content: flex-end;
}

/* GET A QUOTE BUTTON */

.quote-btn {
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    color: #ffffff !important;
    padding: 10px 26px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.30);
    transition: 0.25s ease;
    display: inline-flex;
    align-items: center;
}

.quote-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(99, 102, 241, 0.40);
}

.active-btn {
    background: linear-gradient(90deg, #4f46e5, #7c3aed) !important;
    box-shadow: 0 10px 22px rgba(79, 70, 229, 0.45) !important;
}

/* ========== HAMBURGER BUTTON (MOBILE) ========== */

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    cursor: pointer;
    padding: 6px;
    margin-right: 16px;
}

.nav-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background: #111827;
    border-radius: 999px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

/* animation when open */
.nav-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nav-toggle.open span:nth-child(2) {
    opacity: 0;
}
.nav-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ================= RESPONSIVE HEADER ================= */

@media (max-width: 900px) {
    .header-inner {
        padding: 12px 0;
    }

    /* show hamburger + push it a bit left */
    .nav-toggle {
        display: flex;
        margin-right: 24px !important; 
    }

    /* dropdown panel */
    .nav-wrapper {
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        background: #ffffff;
        border-bottom: 1px solid #e5e7eb;
        padding: 10px 20px 14px;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        display: none; /* hidden by default */
    }

    .nav-wrapper.open {
        display: flex; /* show when toggled */
    }

    .nav-center {
        width: 100%;
    }

    .header-nav {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .header-nav li a {
        padding: 6px 0;
    }

    .nav-right {
        width: 100%;
        justify-content: flex-start;
        margin-top: 6px;
    }

    .quote-btn {
        padding: 9px 18px;
        font-size: 14px;
    }
}

@media (max-width: 640px) {
    .header-logo {
        width: 140px;
    }
}

.site-footer {
    background-color: #050816;
    color: #e5e7eb;
    padding: 28px 0 0;
}

/* Footer logo – responsive size */
.site-footer .logo-image {
    width: 160px;
    height: auto;
    display: block;
    margin: 0 auto; /* center on desktop/tablet */
}

/* GRID LAYOUT */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 28px;
    padding-top: 8px;
    padding-bottom: 24px;
}

/* Each column wrapper */
.footer-column {
    margin: 0;
    text-align: left;
}

/* Logo column (desktop center) */
.footer-column.logo-column {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* COLUMN TITLES */
.footer-column h4 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 10px;
    line-height: 1.8;
}

/* ======================= TYPOGRAPHY ======================= */

.footer-column p,
.footer-column ul li,
.footer-column ul li a,
.footer-column a,
.footer-location {
    font-size: 14px;
    line-height: 1.8;
    color: #e5e7eb;
}

.footer-column p {
    margin: 0 0 6px;
}

/* List items */
.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin: 0 0 6px;
}

/* Default links */
.footer-column a {
    opacity: 0.85;
    text-decoration: none;
    transition: opacity 0.2s ease, text-decoration 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.footer-column ul li a:hover {
    opacity: 1;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ======================= EMAIL & PHONE ======================= */

.footer-contact-link,
.footer-column a[href^="mailto"],
.footer-column a[href^="https://wa.me"] {
    display: block;
    margin: 0;
    padding: 0;
    color: #e5e7eb !important;
    text-decoration: none !important;
    font-weight: 500;
    opacity: 0.9;
    line-height: 1.8;
}

.footer-contact-link:hover,
.footer-column a[href^="mailto"]:hover,
.footer-column a[href^="https://wa.me"]:hover {
    color: #FF8804 !important;
    background-color: #0b1120;
    text-decoration: underline !important;
    text-underline-offset: 3px;
    border-radius: 4px;
    opacity: 1;
}

.footer-location {
    display: block;
    margin: 0;
    opacity: 0.9;
}

/* ======================= SOCIAL ICONS ======================= */

.social-icons {
    margin-top: 10px;
    display: flex;
    gap: 8px;
}

.social-icons a {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    border: 1px solid #4b5563;
    color: #e5e7eb;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.25s ease;
}

.social-icons a:hover {
    background-color: #4f46e5;
    border-color: #4f46e5;
}

/* ======================= BOTTOM BAR ======================= */

.footer-bottom {
    border-top: 1px solid rgba(55, 65, 81, 0.9);
    padding: 12px 0;
    background-color: #020617;
}

.footer-bottom-inner {
    text-align: center;
    font-size: 14px;
    line-height: 1.8;
    color: #e5e7eb;
}

/* ======================= MOBILE RESPONSIVE ======================= */

@media (max-width: 768px) {

    .site-footer {
        padding-top: 18px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        padding-top: 4px;
        padding-bottom: 16px;
    }

    /* ★ Make footer logo LEFT-aligned on mobile */
    .footer-column.logo-column {
        justify-content: flex-start !important;
        text-align: left !important;
    }

    .site-footer .logo-image {
        margin: 0 !important;         /* remove auto-centering */
    }

    .footer-column h4 {
        font-size: 14px;
        margin: 0 0 8px;
        line-height: 1.8;
    }

    .footer-column p,
    .footer-column ul li,
    .footer-column ul li a,
    .footer-column a,
    .footer-location {
        font-size: 14px;
        line-height: 1.8;
        margin-bottom: 5px;
    }

    .social-icons {
        margin-top: 6px;
        gap: 6px;
    }
}

/* SMALL MOBILE */
@media (max-width: 480px) {

    .site-footer {
        padding-top: 14px;
    }

    .footer-grid {
        gap: 12px;
        padding-bottom: 12px;
    }

    .footer-column h4 {
        font-size: 14px;
        line-height: 1.8;
    }

    .footer-column p,
    .footer-column ul li,
    .footer-column ul li a,
    .footer-column a,
    .footer-location {
        font-size: 14px;
        line-height: 1.8;
    }
}
