/* =========================
   Navigation (brand-only)
   ========================= */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 25px 60px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid #f0f0f0;
    z-index: 1000;
    transition: all 0.3s ease;
}

nav.scrolled {
    padding: 18px 60px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.03);
}

.nav-container {
    display: flex;
    justify-content: flex-start; /* brand on the left */
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 24px;
    font-weight: 400;
    color: #2a2a2a;
    text-decoration: none;
    z-index: 1003;
    position: relative;
    white-space: nowrap;
}

/* Remove legacy menu elements if present */
.nav-links, .hamburger { 
    display: none !important; 
}

/* Tablet */
@media (max-width: 1024px) {
    nav {
        padding: 20px 50px;
    }
    nav.scrolled {
        padding: 16px 50px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    nav {
        padding: 15px 20px !important;
        box-sizing: border-box !important;
    }
    nav.scrolled {
        padding: 12px 20px !important;
    }
    .nav-container {
        width: 100% !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }
    .logo {
        font-size: 18px !important;
        max-width: 100% !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    nav {
        padding: 12px 15px !important;
    }
    nav.scrolled {
        padding: 10px 15px !important;
    }
    .logo {
        font-size: 16px !important;
    }
}

/* =========================
   Footer Styles (unchanged)
   ========================= */
footer {
    background: #2a2a2a;
    color: #ffffff;
    padding: 40px 60px 30px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.footer-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.footer-bottom {
    border-top: 1px solid #444;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-social {
    display: flex;
    gap: 30px;
}

.footer-social a {
    color: #999;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s ease;
}

.footer-social a:hover {
    color: #fff;
}

.footer-left h3 {
    font-size: 18px;
    font-weight: 400;
    margin-bottom: 15px;
    line-height: 1.2;
}

.footer-left p {
    color: #999;
    line-height: 1.5;
    font-weight: 300;
    font-size: 14px;
    margin-bottom: 0;
}

.footer-right {
    text-align: right;
}

.contact-info {
    margin-bottom: 40px;
}

.contact-info h4 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    font-weight: 400;
}

.contact-info a {
    color: #999;
    text-decoration: none;
    margin-bottom: 8px;
    transition: color 0.3s ease;
    display: block;
}

.contact-info a:hover {
    color: #fff;
}

/* Newsletter Form */
.newsletter-form {
    margin-top: 25px;
}

.newsletter-form-group {
    display: flex;
    gap: 0;
    max-width: 350px;
}

.newsletter-email-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #555;
    border-right: none;
    background: transparent;
    color: #fff;
    font-size: 13px;
    border-radius: 0;
    font-family: 'Inter', sans-serif;
    outline: none;
    min-width: 0;
}

.newsletter-email-input::placeholder {
    color: #999;
}

.newsletter-email-input:focus {
    border-color: #777;
    box-shadow: none;
}

.newsletter-submit-btn {
    background: #555;
    color: #fff;
    border: 1px solid #555;
    padding: 12px 20px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 0;
    font-weight: 400;
    font-family: 'Inter', sans-serif;
    white-space: nowrap;
    flex-shrink: 0;
}

.newsletter-submit-btn:hover {
    background: #666;
    border-color: #666;
}

.newsletter-submit-btn:disabled {
    background: #444;
    cursor: not-allowed;
}

.newsletter-message {
    margin-top: 15px;
    font-size: 13px;
    padding: 10px;
    border-radius: 4px;
    display: none;
}

.newsletter-message.success {
    background: rgba(46, 160, 67, 0.2);
    color: #4CAF50;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.newsletter-message.error {
    background: rgba(244, 67, 54, 0.2);
    color: #f44336;
    border: 1px solid rgba(244, 67, 54, 0.3);
}

/* Tablet Responsive (footer) */
@media (max-width: 1024px) {
    footer {
        padding: 40px 50px 30px;
    }
    .footer-top {
        gap: 40px;
    }
}

/* Mobile Responsive (footer + safety) */
@media (max-width: 768px) {
    /* Footer */
    footer {
        padding: 30px 20px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .footer-content {
        width: 100% !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }

    .footer-top {
        display: block !important;
        width: 100% !important;
    }

    .footer-left, .footer-right {
        width: 100% !important;
        margin-bottom: 25px !important;
        text-align: left !important;
        box-sizing: border-box !important;
    }

    .footer-right {
        text-align: left !important;
    }

    .footer-left h3 {
        font-size: 16px !important;
        margin-bottom: 15px !important;
    }

    .footer-left p {
        font-size: 13px !important;
        line-height: 1.5 !important;
    }

    .newsletter-form-group {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .newsletter-email-input {
        width: 100% !important;
        border-right: 1px solid #555 !important;
        padding: 14px 16px !important;
        font-size: 16px !important;
        box-sizing: border-box !important;
    }

    .newsletter-submit-btn {
        width: 100% !important;
        padding: 14px 20px !important;
        font-size: 12px !important;
        box-sizing: border-box !important;
    }

    .contact-info {
        margin-bottom: 20px !important;
    }

    .contact-info h4 {
        font-size: 13px !important;
        margin-bottom: 15px !important;
    }

    .contact-info a {
        font-size: 14px !important;
        margin-bottom: 8px !important;
        word-break: break-word !important;
        min-height: 44px !important;
        display: flex !important;
        align-items: center !important;
    }

    .footer-bottom {
        flex-direction: column !important;
        gap: 20px !important;
        align-items: center !important;
        text-align: center !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .footer-bottom > div:first-child {
        order: 2 !important;
        width: 100% !important;
    }

    .footer-social {
        order: 1 !important;
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 20px !important;
        width: 100% !important;
    }

    .footer-social a {
        font-size: 12px !important;
        padding: 8px !important;
        min-height: 40px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
}

/* Small mobile devices (footer tweaks) */
@media (max-width: 480px) {
    footer {
        padding: 25px 15px !important;
    }
    .footer-social {
        gap: 15px !important;
    }
    .footer-social a {
        font-size: 11px !important;
        padding: 6px !important;
    }
}

/* Prevent horizontal scroll safety for small devices */
@media (max-width: 768px) {
    body {
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100vw !important;
    }
    html {
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100vw !important;
    }
    * {
        box-sizing: border-box !important;
    }
}
