@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Sans:wght@300;400;500;600&display=swap');

:root {
    --black: #000000;
    --black-1: #080808;
    --black-2: #0d0d0d;
    --black-3: #111111;
    --black-4: #161616;
    --black-5: #1a1a1a;
    --black-6: #1e1e1e;
    --black-7: #222222;
    --accent: #ff6b35;
    --accent-2: #f04e14;
    --accent-glow: rgba(255, 107, 53, 0.25);
    --white: #ffffff;
    --white-dim: rgba(255, 255, 255, 0.65);
    --white-faint: rgba(255, 255, 255, 0.08);
    --border: rgba(255, 255, 255, 0.07);
    --border-hover: rgba(255, 255, 255, 0.18);
}

/* ============================================================
   NAVIGATION
   ============================================================ */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
    min-height: 68px;
}

/* ── Logo ── */
.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    flex-shrink: 0;
    z-index: 2;
}

.logo-img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(255, 107, 53, 0.4));
    transition: filter 0.3s, transform 0.3s;
    flex-shrink: 0;
}

.logo:hover .logo-img {
    filter: drop-shadow(0 0 18px rgba(255, 107, 53, 0.7));
    transform: rotate(-5deg) scale(1.05);
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
    overflow: visible;
}

.logo-name {
    font-family: 'Syne', sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 3px;
    color: var(--white);
    text-transform: uppercase;
    line-height: 1;
}

.logo-sub {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.58rem;
    font-weight: 500;
    letter-spacing: 1.8px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: lowercase;
    margin-top: 3px;
    white-space: nowrap;
}

/* ── Desktop nav links ── */
.nav-links {
    display: flex;
    gap: 0.4rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: var(--white-dim);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.55rem 1rem;
    border-radius: 10px;
    border: 1px solid transparent;
    background: transparent;
    transition: all 0.25s;
    display: inline-block;
    text-align: center;
    white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--white);
    background: #111111;
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 -2px 0 0 var(--accent);
}

/* ── Right group: CTA + hamburger side by side ── */
.nav-right-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    z-index: 2;
}

.contact-btn {
    padding: 0.55rem 1.6rem;
    background: var(--accent);
    color: var(--white);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.88rem;
    font-family: 'DM Sans', sans-serif;
    transition: all 0.3s;
    box-shadow: 0 0 20px var(--accent-glow);
    text-decoration: none;
    display: inline-block;
    white-space: nowrap;
}

.contact-btn:hover {
    background: #ff7d4a;
    transform: translateY(-2px);
    box-shadow: 0 4px 30px rgba(255, 107, 53, 0.45);
}

/* ── Hamburger button — hidden on desktop ── */
.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    transition: border-color 0.2s, background 0.2s;
}

.nav-hamburger:hover {
    border-color: rgba(255, 107, 53, 0.5);
    background: rgba(255, 107, 53, 0.08);
}

.nav-hamburger span {
    display: block;
    width: 17px;
    height: 1.5px;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.25s ease, width 0.3s ease;
    transform-origin: center;
}

/* Animated X */
.nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; width: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* misc legacy classes */
.nav-right  { text-decoration: none; }
.back-link  { text-decoration: none; color: white; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: #080808;
    border-top: 1px solid #181818;
    padding: 70px 100px 0;
    font-family: 'DM Sans', sans-serif;
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    max-width: 1300px;
    margin: 0 auto;
    padding-bottom: 60px;
    border-bottom: 1px solid #181818;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    margin-bottom: 22px;
}
.footer-logo img   { height: 42px; width: auto; }
.footer-logo-text  { display: flex; flex-direction: column; line-height: 1; }
.footer-logo-title {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 1.4rem;
    color: #ffffff;
    letter-spacing: 0.06em;
}
.footer-logo-sub {
    font-size: 0.6rem;
    letter-spacing: 0.22em;
    color: rgba(255, 255, 255, 0.35);
    text-transform: uppercase;
    margin-top: 3px;
}
.footer-desc {
    color: #666666;
    font-size: 0.855rem;
    line-height: 1.8;
    max-width: 340px;
}

.footer-col h4 {
    font-family: 'Syne', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 22px;
}
.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 13px;
    padding: 0;
    margin: 0;
}
.footer-col ul li a {
    color: #666666;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s;
    display: inline-block;
}
.footer-col ul li a:hover { color: #ffffff; }

.footer-socials { display: flex; gap: 10px; flex-wrap: wrap; }
.social-btn {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: 1px solid #222222;
    background: #111111;
    color: #888888;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.social-btn:hover {
    border-color: #e85d26;
    color: #e85d26;
    background: rgba(232, 93, 38, 0.12);
}

.footer-bottom {
    max-width: 1300px;
    margin: 0 auto;
    padding: 22px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #3a3a3a;
    font-size: 0.8rem;
}
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a {
    color: #3a3a3a;
    text-decoration: none;
    transition: color 0.2s;
}
.footer-bottom-links a:hover { color: #666666; }

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* ── 900px: tablet landscape ── */
@media (max-width: 900px) {
    .site-footer { padding: 50px 40px 0; }
    .footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 36px;
    }
    .footer-brand { grid-column: 1 / -1; }
    .footer-desc  { max-width: 100%; }
    .footer-bottom {
        flex-direction: column-reverse;
        gap: 12px;
        text-align: center;
    }
}

/* ── 768px: tablet portrait — hamburger appears ── */
@media (max-width: 768px) {
    nav {
        padding: 0.85rem 5%;
        min-height: 62px;
        flex-wrap: nowrap;      /* prevent wrapping — drawer goes absolutely */
        position: fixed;
        overflow: visible;      /* allow dropdown to escape nav box */
    }

    /* Show hamburger */
    .nav-hamburger { display: flex; }

    /* Drawer — absolutely positioned below nav, overlays page */
    .nav-links {
        position: absolute;
        top: 100%;              /* sits flush below the nav bar */
        left: 0;
        right: 0;
        z-index: 999;
        flex-direction: column;
        align-items: stretch;
        gap: 3px;
        background: rgba(0, 0, 0, 0.97);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        border-bottom: 1px solid rgba(255, 107, 53, 0.15);
        padding: 0;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        pointer-events: none;
        order: unset;
        width: 100%;
        transition:
            max-height 0.36s cubic-bezier(0.4, 0, 0.2, 1),
            opacity    0.25s ease,
            padding    0.3s  ease;
    }

    .nav-links.open {
        max-height: 400px;
        opacity: 1;
        pointer-events: all;
        padding: 10px 5% 14px;
    }

    .nav-links li { width: 100%; }

    .nav-links a {
        display: block;
        width: 100%;
        text-align: left;
        padding: 0.78rem 1rem;
        font-size: 0.94rem;
        min-width: unset;
        border-radius: 10px;
        border: 1px solid transparent;
        box-shadow: none;
    }

    .nav-links a:hover,
    .nav-links a.active {
        background: rgba(255, 107, 53, 0.07);
        border-color: rgba(255, 107, 53, 0.2);
        box-shadow: none;
        color: var(--accent);
    }
}

/* ── 600px: large phone ── */
@media (max-width: 600px) {
    nav {
        padding: 0.78rem 4%;
        min-height: 58px;
    }

    .logo-img  { width: 36px; height: 36px; }
    .logo-name { font-size: 1.1rem; letter-spacing: 2px; }
    .logo-sub  { font-size: 0.5rem; }

    .contact-btn {
        padding: 0.45rem 1.1rem;
        font-size: 0.8rem;
    }

    .site-footer  { padding: 36px 20px 0; }
    .footer-inner { gap: 24px; }
    .footer-logo img    { height: 36px; }
    .footer-logo-title  { font-size: 1.2rem; }
    .footer-col h4      { margin-bottom: 16px; }
    .footer-col ul      { gap: 10px; }
}

/* ── 500px: small phone — footer single column ── */
@media (max-width: 500px) {
    .footer-inner         { grid-template-columns: 1fr; }
    .footer-brand         { grid-column: 1; }
    .footer-socials       { gap: 8px; }
    .social-btn           { width: 38px; height: 38px; }
    .footer-bottom        { font-size: 0.75rem; }
    .footer-bottom-links  { gap: 14px; }
}

/* ── 400px: very small phone ── */
@media (max-width: 400px) {
    nav           { padding: 0.7rem 4%; }
    .logo-img     { width: 30px; height: 30px; }
    .logo-name    { font-size: 0.95rem; letter-spacing: 1.5px; }
    .logo-sub     { font-size: 0.48rem; letter-spacing: 1px; }
    .contact-btn  { padding: 0.4rem 0.9rem; font-size: 0.76rem; }
    .nav-hamburger { width: 34px; height: 34px; }
}