/* ===== COMMON STYLES FOR NON-HOMEPAGE PAGES ONLY ===== */
/* This file ONLY affects pages that do NOT have class="homepage" on the body tag */

/* ===== CSS VARIABLES ===== */
:root {
    --primary-color: #000000;
    --secondary-color: #666666;
    --accent-color: #FF7900;
    --text-color: #333333;
    --background-color: #ffffff;
    --light-gray: #f8f9fa;
    --border-color: #e9ecef;
}

/* ===== GLOBAL STYLES FOR NON-HOMEPAGE PAGES ===== */
body:not(.homepage) {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    margin: 0;
    padding: 0;
}

/* ===== TYPOGRAPHY HIERARCHY ===== */
body:not(.homepage) h1 {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 2.5rem;
    line-height: 1.2;
    letter-spacing: 1px;
}

body:not(.homepage) h2 {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 2rem;
    line-height: 1.3;
    letter-spacing: 1px;
}

body:not(.homepage) h3 {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 1.5rem;
    line-height: 1.4;
    letter-spacing: 0.5px;
}

body:not(.homepage) h4 {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 1.2rem;
    line-height: 1.4;
    letter-spacing: 0.5px;
}

body:not(.homepage) p {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.6;
}

body:not(.homepage) .text-large {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 1.2rem;
    line-height: 1.5;
}

body:not(.homepage) .text-small {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 0.875rem;
    line-height: 1.5;
}

body:not(.homepage) .text-meta {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 0.75rem;
    line-height: 1.4;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ===== NON-HOMEPAGE HEADER STYLES ===== */
body:not(.homepage) .header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10000;
    background: white; /* White background */
    padding: 1.5rem 0;
    border-bottom: 1px solid #e9ecef; /* Light border */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Subtle shadow */
    overflow: visible;
}

body:not(.homepage) .nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0 2rem;
    height: 70px;
    position: relative;
    overflow: visible;
}

/* ===== NON-HOMEPAGE LOGO STYLES ===== */
body:not(.homepage) .logo-link {
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

body:not(.homepage) .logo-image {
    height: 50px;
    width: auto;
    transition: all 0.3s ease;
}

body:not(.homepage) .logo-link:hover .logo-image {
    transform: scale(1.1);
}

/* ===== NON-HOMEPAGE DESKTOP NAVIGATION ===== */
body:not(.homepage) .nav-menu {
    display: none;
    align-items: center;
    gap: 2rem;
}

body:not(.homepage) .nav-link {
    color: black; /* Black text for white background */
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 1rem;
    position: relative;
    transition: all 0.3s ease;
    padding: 0.5rem 0;
}

body:not(.homepage) .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

body:not(.homepage) .nav-link:hover {
    color: var(--accent-color);
}

body:not(.homepage) .nav-link:hover::after {
    width: 100%;
}

/* ===== NON-HOMEPAGE CONTACT BUTTON ===== */
body:not(.homepage) .contact-btn {
    color: var(--accent-color);
    background: transparent;
    border: 1px solid var(--accent-color);
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    border-radius: 0;
}

body:not(.homepage) .contact-btn:hover {
    background-color: var(--accent-color);
    color: white;
    transform: translateY(-2px);
}

/* ===== NON-HOMEPAGE MOBILE NAVIGATION ===== */
body:not(.homepage) .mobile-menu-btn {
    display: block;
    background: none;
    border: 2px solid black; /* Black border for white background */
    color: black; /* Black icon for white background */
    font-size: 1.5rem;
    padding: 0.5rem;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
    z-index: 10002;
    position: relative;
    flex-shrink: 0;
    width: auto;
    height: auto;
    min-width: auto;
    max-width: none;
    text-align: center;
    line-height: 1;
}

body:not(.homepage) .mobile-menu-btn i {
    display: inline-block !important;
    font-style: normal !important;
    font-variant: normal !important;
    text-rendering: auto !important;
    line-height: 1 !important;
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
    font-size: inherit !important;
    color: inherit !important;
}

body:not(.homepage) .mobile-menu-btn:hover {
    background: rgba(0, 0, 0, 0.1); /* Black transparent hover for white background */
    transform: scale(1.05);
}

body:not(.homepage) .mobile-menu-btn:active {
    transform: scale(0.95);
}

body:not(.homepage) .mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 10003;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    border-top: 3px solid var(--accent-color);
    padding: 0.5rem 0;
}

/* Active state for mobile menu */
body:not(.homepage) .mobile-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

body:not(.homepage) .mobile-menu a {
    display: block;
    padding: 1rem 2rem;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    text-align: center;
}

body:not(.homepage) .mobile-menu a:hover {
    background-color: #f8f8f8;
    color: var(--accent-color);
}

body:not(.homepage) .mobile-menu a:last-child {
    border-bottom: none;
}

body:not(.homepage) .mobile-menu .contact-btn,
body:not(.homepage) .mobile-menu .contact-btn-mobile {
    background-color: var(--accent-color);
    color: white;
    border: none;
    margin: 1rem 2rem;
    display: block;
    text-align: center;
    border-radius: 4px;
    font-weight: 600;
}

body:not(.homepage) .mobile-menu .contact-btn:hover,
body:not(.homepage) .mobile-menu .contact-btn-mobile:hover {
    background-color: #e55a00;
    color: white;
}

/* ===== NON-HOMEPAGE DESKTOP RESPONSIVE ===== */
@media (min-width: 768px) {
    body:not(.homepage) .nav-menu {
        display: flex;
    }
    
    body:not(.homepage) .mobile-menu-btn {
        display: none;
    }
    
    body:not(.homepage) .mobile-menu {
        display: none !important;
    }
}

/* ===== NON-HOMEPAGE PAGE CONTENT ===== */
body:not(.homepage) .main-content {
    padding-top: 120px; /* Account for fixed header */
}

/* ===== NON-HOMEPAGE BUTTON STYLES ===== */
body:not(.homepage) .btn,
body:not(.homepage) .button,
body:not(.homepage) button:not(.mobile-menu-btn):not(.contact-btn) {
    background: transparent;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    border-radius: 0;
    cursor: pointer;
}

body:not(.homepage) .btn:hover,
body:not(.homepage) .button:hover,
body:not(.homepage) button:not(.mobile-menu-btn):not(.contact-btn):hover {
    background-color: var(--accent-color);
    color: white;
    transform: translateY(-2px);
}

/* ===== NON-HOMEPAGE FOOTER STYLES ===== */
body:not(.homepage) .footer {
    background-color: var(--primary-color);
    color: white;
    padding: 3rem 0 2rem;
    margin-top: 4rem;
}

body:not(.homepage) .footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

body:not(.homepage) .footer-nav-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

body:not(.homepage) .footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

body:not(.homepage) .footer-divider {
    height: 1px;
    background-color: rgba(255, 255, 255, 0.2);
    margin: 2rem 0;
}

/* ===== General Footer Styles for All Pages ===== */
.footer {
    background-color: var(--primary-color);
    color: white;
    padding: 4rem 0 1rem;
    border-top: 2px solid var(--accent-color);
}

.footer-main-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 3rem;
    padding-bottom: 2rem;
}

.footer-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-logo {
    max-height: 50px;
    width: auto;
    transition: all 0.3s ease;
}

.footer-logo-link:hover .footer-logo {
    transform: scale(1.05);
}

.footer-address {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-nav {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

.footer-section h4 {
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    font-size: 1rem;
}

.footer-nav a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
    position: relative;
    padding: 0.25rem 0;
}

.footer-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.footer-nav a:hover {
    color: var(--accent-color);
}

.footer-nav a:hover::after {
    width: 100%;
}

.footer-social-icons a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.footer-social-icons a:hover {
    color: var(--accent-color);
}

.footer-social-icons {
    display: flex;
    gap: 1rem;
}

.footer-social-icons a {
    font-size: 1.5rem;
}

.footer-social-icons img {
    width: 24px;
    height: 24px;
    max-width: 24px;
    max-height: 24px;
    object-fit: contain;
    transition: all 0.3s ease;
}

.footer-social-icons a:hover img {
    transform: scale(1.1);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 1.5rem;
    margin-top: 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
}

/* Desktop Layout (768px and up) for All Pages */
@media (min-width: 768px) {
    .footer-main-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        text-align: left;
    }

    .footer-section {
        align-items: flex-start;
        flex: 1;
    }

    .footer-section:nth-child(2) {
        text-align: center;
        align-items: center;
    }

    .footer-section:last-child {
        align-items: flex-end;
        text-align: right;
    }

    .footer-logo-link {
        padding: 0;
        margin-bottom: 0.5rem;
    }

    .footer-social-icons {
        gap: 1.5rem;
    }
}

/* Mobile Layout for All Pages */
@media (max-width: 768px) {
    .footer-main-content {
        gap: 2rem;
    }

    .footer-nav {
        flex-wrap: wrap;
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 3rem 0 1rem;
    }

    .footer-main-content {
        gap: 1.5rem;
    }

    .footer-nav {
        flex-direction: column;
        gap: 0.5rem;
    }

    .footer-social-icons {
        gap: 0.75rem;
    }
}

body:not(.homepage) .footer a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

body:not(.homepage) .footer a:hover {
    color: var(--accent-color);
}

/* ===== NON-HOMEPAGE FOOTER SOCIAL ICONS ===== */
body:not(.homepage) .footer-social-icons {
    display: flex;
    gap: 1rem;
    align-items: center;
}

body:not(.homepage) .footer-social-icons a {
    display: inline-block;
    transition: transform 0.3s ease;
}

body:not(.homepage) .footer-social-icons a:hover {
    transform: scale(1.1);
}

body:not(.homepage) .footer-social-icons img {
    width: 24px;
    height: 24px;
    max-width: 24px;
    max-height: 24px;
    object-fit: contain;
}

/* ===== NON-HOMEPAGE FORM STYLES ===== */
body:not(.homepage) input,
body:not(.homepage) textarea,
body:not(.homepage) select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 0;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

body:not(.homepage) input:focus,
body:not(.homepage) textarea:focus,
body:not(.homepage) select:focus {
    outline: none;
    border-color: var(--accent-color);
}

/* ===== NON-HOMEPAGE CARD STYLES ===== */
body:not(.homepage) .card {
    background: white;
    border-radius: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
}

/* ===== NON-HOMEPAGE UTILITY CLASSES ===== */
body:not(.homepage) .text-center {
    text-align: center;
}

body:not(.homepage) .text-left {
    text-align: left;
}

body:not(.homepage) .text-right {
    text-align: right;
}

body:not(.homepage) .mb-1 { margin-bottom: 0.5rem; }
body:not(.homepage) .mb-2 { margin-bottom: 1rem; }
body:not(.homepage) .mb-3 { margin-bottom: 1.5rem; }
body:not(.homepage) .mb-4 { margin-bottom: 2rem; }

body:not(.homepage) .mt-1 { margin-top: 0.5rem; }
body:not(.homepage) .mt-2 { margin-top: 1rem; }
body:not(.homepage) .mt-3 { margin-top: 1.5rem; }
body:not(.homepage) .mt-4 { margin-top: 2rem; }

body:not(.homepage) .p-1 { padding: 0.5rem; }
body:not(.homepage) .p-2 { padding: 1rem; }
body:not(.homepage) .p-3 { padding: 1.5rem; }
body:not(.homepage) .p-4 { padding: 2rem; }

/* ===== SEO HIDDEN CLASS ===== */
.seo-hidden {
    display: none !important;
    visibility: hidden;
    opacity: 0;
    height: 0;
    overflow: hidden;
}