/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    width: 100%;
}



body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.5;
    color: #2A2E1A;
    background-color: #fff;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 600;
    line-height: 1;
}

h1 {
    font-size: 30px !important;
}

h2 {
    font-size: 30px !important;
}

h3 {
    font-size: 18px !important;
    font-weight: 600;
}

p {
    font-size: 18px !important;
    font-weight: 400;
    line-height: 1.5;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(3px);
    z-index: 1000;
    padding: 10px 0;
}

.header-container {
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 0 20px;
    gap: 0; /* Force zero gap between all elements */
}

/* Mobile menu button positioning */
.header-container .mobile-menu-toggle {
    order: -1 !important; /* Move to left side */
    margin-right: 0 !important; /* Remove gap between hamburger and logo */
    padding: 0 !important; /* Remove button padding */
}

/* Force logo to be right next to mobile menu button */
.header-container .logo {
    margin-left: 0 !important;
    padding-left: 0 !important;
}

/* Hide navigation completely on tablet and mobile to prevent it from taking up space */
@media (min-width: 769px) and (max-width: 1200px) {
    .header-container {
        justify-content: flex-start !important;
        gap: 0 !important;
    }
    
    .header-container .navigation {
        display: none !important;
        width: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .header-container .mobile-menu-toggle {
        margin-right: 0 !important;
        padding: 0 !important;
    }
    
    .header-container .logo {
        margin-left: 0 !important;
        padding-left: 0 !important;
    }
}

@media (max-width: 768px) {
    /* Prevent horizontal scroll on mobile */
    * {
        max-width: 100vw;
    }
    
    /* Override fixed widths that might cause horizontal scroll */
    .hero-content {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .hero-image {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .services-grid {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .team-grid {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    /* Ensure all main containers don't exceed viewport */
    .container, .section, .hero-container, .services-container, 
    .about-container, .team-container, .contact-container {
        width: 100% !important;
        max-width: 100vw !important;
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
    
    .header-container {
        justify-content: flex-start !important;
        gap: 0 !important;
    }
    
    .header-container .navigation {
        display: none !important;
        width: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .header-container .mobile-menu-toggle {
        margin-right: 0 !important;
        padding: 0 !important;
    }
    
    .header-container .logo {
        margin-left: 0 !important;
        padding-left: 0 !important;
    }
}

/* Desktop navigation - restore right alignment */
@media (min-width: 1201px) {
    .header-container {
        justify-content: space-between !important;
    }
    
    .header-container .navigation {
        display: flex !important;
        width: auto !important;
    }
}

.logo-img {
    height: 125px;
    width: auto;
    margin-left: 0 !important; /* Remove any left margin */
}

.navigation {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-item {
    text-decoration: none;
    color: #2A2E1A;
    font-size: 18px;
    font-weight: 400;
    padding: 10px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-item:hover {
    color: #BF9050;
}

.nav-item.active {
    color: #BF9050;
}

.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10px;
    right: 10px;
    height: 3px;
    background-color: #4E513E;
    border-radius: 2px;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.mobile-menu-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

/* Mobile Navigation Overlay - Figma Design */
.mobile-navigation {
    position: fixed;
    top: 0;
    left: 0;
    width: 170px;
    height: 100vh;
    background: white;
    z-index: 1000;
    display: none;
    flex-direction: column;
    padding: 120px 26px 26px 20px;
    box-shadow: 0px 10px 30px 0px rgba(42, 46, 26, 0.15);
}

/* Mobile Menu Backdrop */
.mobile-menu-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(191, 144, 80, 0.5); /* Gold at 50% opacity */
    z-index: 999;
    display: none;
}

.mobile-menu-backdrop.show {
    display: block;
}

.mobile-navigation.show {
    display: flex;
}

/* Close Button */
.mobile-close-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    margin: 0;
    align-self: flex-start;
    position: absolute;
    top: 72px;
    left: 20px;
}

.close-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

/* Navigation Items Container */
.mobile-nav-items {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
    padding-left: 0;
    margin-left: 0;
}

/* Navigation Items */
.mobile-navigation .nav-item {
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.5;
    color: #2A2E1A;
    text-decoration: none;
    padding: 0;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.mobile-navigation .nav-item:hover,
.mobile-navigation .nav-item.active {
    color: #BF9050;
}

.mobile-navigation .nav-item.active::after {
    display: none;
}

/* Hero Section */
.hero-section {
    padding-top: 180px;
    padding-bottom: 50px;
    position: relative;
    width: 100%;
    margin: 0 auto;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 50px;
    margin-bottom: 50px;
    max-width: 1440px;
    margin-left: auto;
    margin-right: auto;
}

.hero-content {
    width: 550px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding-left: 40px;
}

.hero-title {
    font-size: 30px;
    font-weight: 600;
    color: #2A2E1A;
    margin-bottom: 20px;
}

.hero-description {
    font-size: 18px;
    color: #2A2E1A;
    margin-bottom: 8px;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.btn {
    padding: 16px 20px;
    border: none;
    border-radius: 6px;
    font-size: 18px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    position: relative;
}

.btn-primary {
    background-color: #BF9050;
    color: white;
    box-shadow: 0px 10px 30px rgba(139, 100, 43, 0.15);
    width: 164px;
    height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.btn-primary:hover {
    background-color: #D99A45;
    transform: translateY(-2px);
}

.btn-primary:focus {
    outline: 2px solid #8C7657;
    outline-offset: 2px;
}

.btn-primary:active {
    background-color: #A68456;
}

.btn-primary:disabled {
    background-color: #BFBFBE;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background-color: transparent;
    color: #2A2E1A;
    border: 2px solid #BF9050;
    width: 148px;
    height: 58px;
}

.btn-secondary:hover {
    background-color: #D99A45;
    color: white;
    border-color: #D99A45;
    transform: translateY(-2px);
}

.btn-secondary:focus {
    outline: 2px solid #8C7657;
    outline-offset: 2px;
}

.btn-secondary:active {
    background-color: #A68456;
    border-color: #A68456;
}

.btn-secondary:disabled {
    background-color: #BFBFBE;
    border-color: #BFBFBE;
    color: #666;
    cursor: not-allowed;
    transform: none;
}

.hero-image {
    width: 823px;
    height: 400px;
    overflow: hidden;
    margin-right: -50px;
}

.main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Core Values Sidebar */
.core-values {
    position: absolute;
    right: 30px;
    top: 253px;
    width: 324px;
    display: flex;
    flex-direction: column;
    gap: 0;
    z-index: 10;
}

.value-item {
    padding: 24px;
    color: white;
    font-size: 18px;
    font-weight: 400;
    backdrop-filter: blur(3px);
}

.value-primary {
    background-color: rgba(217, 154, 69, 0.8);
    font-weight: 600;
    font-size: 30px;
}

.value-secondary {
    background-color: rgba(191, 144, 80, 0.8);
}

.value-tertiary {
    background-color: rgba(166, 132, 86, 0.8);
}

.value-quaternary {
    background-color: rgba(140, 118, 87, 0.8);
}

.value-quinary {
    background-color: rgba(115, 101, 83, 0.8);
}

/* Services Section */
.services-section {
    background-color: #FCF7F0;
    padding: 50px 0;
    width: 100%;
    margin: 0 auto;
}

.services-container {
    max-width: 1340px;
    margin: 0 auto;
    padding: 0 50px;
}

.services-header {
    margin-bottom: 70px;
}

.services-header h2 {
    margin-bottom: 12px;
    color: #2A2E1A;
    font-size: 30px !important;
}

.services-header p {
    max-width: 769px;
    color: #2A2E1A;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.service-card {
    background: white;
    padding: 40px 20px;
    box-shadow: 0px 10px 20px rgba(78, 81, 62, 0.15);
    border-bottom: 12px solid #4E513E;
}

.service-card h3 {
    margin-bottom: 20px;
    color: #2A2E1A;
    font-weight: 600;
    font-size: 18px !important;
    letter-spacing: -0.4px;
}

.service-card p {
    color: #2A2E1A;
}

/* About Section */
.about-section {
    padding: 50px 0;
    width: 100%;
    margin: 0 auto;
}

.about-container {
    display: flex;
    gap: 20px;
    max-width: 1440px;
    margin: 0 auto;
    align-items: stretch;
}

.about-image {
    width: 710px;
    height: auto;
    min-height: 400px;
    overflow: hidden;
    margin-left: -50px;
    flex-shrink: 0;
}

.about-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.about-content {
    flex: 1;
    padding-left: 20px;
    padding-right: 70px;
}

.about-content h2 {
    margin-bottom: 12px;
    color: #2A2E1A;
    font-size: 30px !important;
}

.about-content p {
    margin-bottom: 20px;
    color: #2A2E1A;
}

/* Team Section */
.team-section {
    padding: 50px 0;
    width: 100%;
    margin: 0 auto;
}

.team-container {
    max-width: 1340px;
    margin: 0 auto;
    padding: 0 50px;
}

.team-section h2 {
    margin-bottom: 25px;
    color: #2A2E1A;
    font-size: 30px !important;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.team-member {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.member-photo {
    width: 252px;
    height: 324px;
    background-color: #f5f5f5;
    overflow: hidden;
}

.member-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-info {
    text-align: left;
    width: 100%;
    max-width: 252px;
    margin: 0 auto;
}

.member-info h3 {
    font-weight: 600;
    color: #4E513E;
    letter-spacing: -0.4px;
    margin-bottom: 4px;
}

.member-info p {
    font-weight: 400;
    color: #4E513E;
    font-size: 18px;
}

/* Contact Section */
.contact-section {
    background-color: #FCF7F0;
    padding: 50px 0;
    width: 100%;
    margin: 0 auto;
}

.contact-container {
    display: flex;
    gap: 20px;
    max-width: 1440px;
    margin: 0 auto;
    align-items: stretch;
}

.contact-image {
    width: 597px;
    height: auto;
    min-height: 400px;
    overflow: hidden;
    margin-left: -50px;
    flex-shrink: 0;
}

.contact-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.contact-form {
    flex: 1;
    padding-left: 20px;
}

.form-header {
    margin-bottom: 20px;
}

.form-header h2 {
    margin-bottom: 10px;
    color: #2A2E1A;
    font-size: 30px !important;
}

.form-header p {
    color: #2A2E1A;
}

.contact-form-fields {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Honeypot field - visually hidden but accessible to bots */
.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-group label {
    font-size: 18px;
    color: #2A2E1A;
    font-weight: 400;
}

.form-input,
.form-select,
.form-textarea {
    padding: 15px 12px;
    border: 1px solid #969696;
    border-radius: 6px;
    font-size: 18px;
    font-family: 'Montserrat', sans-serif;
    background-color: white;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: #BF9050;
}

/* Error message styles */
.error-message {
    color: #e74c3c;
    font-size: 14px;
    margin-top: 5px;
    font-weight: 400;
}

.form-textarea {
    resize: vertical;
    min-height: 152px;
}

.btn-submit {
    background-color: #BFBFBE;
    color: #666;
    width: 111px;
    height: 58px;
    box-shadow: 0px 10px 30px rgba(150, 150, 150, 0.15);
    cursor: not-allowed;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    background-color: #BFBFBE;
    cursor: not-allowed;
    transform: none;
}

.btn-submit:enabled {
    background-color: #BF9050;
    color: white;
    cursor: pointer;
    box-shadow: 0px 10px 30px rgba(139, 100, 43, 0.15);
}

.btn-submit:enabled:hover {
    background-color: #D99A45;
    transform: translateY(-2px);
}

.btn-submit:enabled:focus {
    outline: 2px solid #8C7657;
    outline-offset: 2px;
}

.btn-submit:enabled:active {
    background-color: #A68456;
}

/* Footer */
.footer {
    background-color: #4E513E;
    color: white;
    padding: 50px 0;
    width: 100%;
    margin: 0 auto;
}

/* Ensure footer section headers are left-aligned */
.footer-section h4 {
    text-align: left;
}

.footer-container {
    max-width: 831px;
    margin: 0 auto;
    padding: 0 50px;
}

.footer-content {
    display: flex;
    gap: 50px;
    margin-bottom: 40px;
}

.footer-section h4 {
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 10px;
    font-size: 18px;
}

.footer-section p {
    color: white;
    margin-bottom: 5px;
    font-size: 18px;
}

.footer-section a {
    color: white;
    text-decoration: underline;
}

/* Prevent email from wrapping at larger breakpoints */
.footer-section p {
    white-space: nowrap;
}

/* Allow wrapping on smaller screens */
@media (max-width: 768px) {
    .footer-section p {
        white-space: normal;
    }
}

/* Email protection - "Email us" link styling */
.email-protected {
    font-family: inherit;
    letter-spacing: normal;
    cursor: pointer;
    transition: color 0.3s ease;
}

.email-protected:hover {
    color: #BF9050; /* Gold color on hover */
}

/* Email Overlay Popup */
.email-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.email-overlay.show {
    display: flex;
}

.email-popup {
    background: white;
    border-radius: 8px;
    padding: 0;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: popupSlideIn 0.3s ease-out;
}

@keyframes popupSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.email-popup-header {
    background-color: #4E513E;
    color: white;
    padding: 20px;
    border-radius: 8px 8px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.email-popup-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.close-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.email-popup-content {
    padding: 20px;
}

.email-popup-content p {
    margin-bottom: 15px;
    color: #2A2E1A;
}

.email-address-container {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

#email-address-display {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: monospace;
    font-size: 16px;
    background-color: #f9f9f9;
}

.copy-btn {
    background-color: #BF9050;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.copy-btn:hover {
    background-color: #D99A45;
}

.copy-btn.copied {
    background-color: #4CAF50;
}

/* 404 Error Page */
.error-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(191, 144, 80, 0.5); /* Gold at 50% opacity */
    padding: 100px 20px 50px;
}

.error-container {
    max-width: 800px;
    width: 100%;
    text-align: center;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.error-content {
    background: white;
    padding: 60px 40px;
    border-radius: 0; /* Remove rounded corners */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
    border-bottom: 3px solid #4E513E; /* 3px bayleaf line at bottom */
    width: 100%;
    max-width: 100%;
    text-align: center;
}

.error-image {
    max-width: 200px;
    height: auto;
    margin-bottom: 30px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.error-title {
    font-size: 48px;
    font-weight: 700;
    color: #4E513E;
    margin: 0 0 30px 0;
    line-height: 1.2;
}

.error-message {
    font-size: 20px;
    color: #2A2E1A;
    line-height: 1.6;
    margin: 0 auto;
    max-width: 600px;
    text-align: center;
}

.return-home-container {
    margin-top: 20px;
    text-align: center;
}

.return-home-link {
    color: #BF9050;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.return-home-link:hover {
    color: #A68456;
    border-bottom-color: #BF9050;
}

/* Success Modal */
.success-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 0;
}

.success-modal.show {
    display: flex;
}

.success-modal-content {
    background: white;
    border-radius: 8px;
    padding: 0;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
    position: relative;
    margin: 0;
    z-index: 2001;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.success-modal-header {
    background-color: #4E513E;
    color: white;
    padding: 20px;
    border-radius: 8px 8px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.success-modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.success-modal-body {
    padding: 30px 20px;
    text-align: center;
}

.success-modal-body p {
    margin: 0;
    color: #2A2E1A;
    font-size: 18px;
    line-height: 1.5;
}

.success-modal-footer {
    padding: 20px;
    text-align: center;
    border-top: 1px solid #eee;
}

.success-modal-footer .btn {
    width: auto;
    padding: 12px 30px;
    font-size: 16px;
}

.footer-bottom {
    text-align: center;
    color: white;
    font-size: 18px;
}

/* ========================================
   CLEAN RESPONSIVE BREAKPOINT SYSTEM
   ======================================== */

/* DESKTOP: 1201px and above */
@media (min-width: 1201px) {
    /* Core values positioned over hero image on large screens */
    .core-values {
        position: absolute;
        right: calc(50% - 600px - 100px);
        top: 253px;
        width: 324px;
        z-index: 10;
    }
    
    /* Hero image extends to edge */
    .hero-image {
        margin-right: -50px;
    }
    
    /* Other images extend to edges */
    .about-image {
        margin-left: -50px;
    }
    
    .contact-image {
        margin-left: -50px;
    }
    
    /* Restore right padding to contact form */
    .contact-form {
        padding-right: 20px;
    }
    
    /* Ensure team members fit in one row with proper spacing */
    .team-container {
        max-width: 1440px;
        padding: 0 50px;
    }
    
    /* Align services section with team section */
    .services-container {
        max-width: 1440px;
        padding: 0 50px;
    }
    
    /* Reduce hero content left padding to align with other sections */
    .hero-content {
        padding-left: 0;
    }
}

/* TABLET: 769px - 1200px */
@media (min-width: 769px) and (max-width: 1200px) {
    /* Mobile menu button visible */
    .mobile-menu-toggle {
        display: block;
        order: -1; /* Move to left side */
    }
    
    /* Hide regular navigation */
    .navigation {
        display: none;
    }
    
    /* Hero section becomes vertical stack */
    .hero-container {
        flex-direction: column;
        gap: 40px;
        text-align: left;
        padding: 0 20px;
    }
    
    .hero-section {
        padding-left: 0;
        padding-right: 0;
    }
    
    .hero-content {
        width: 100%;
        max-width: 600px;
        margin: 0 auto;
    }
    
    .hero-image {
        width: calc(100% + 40px);
        max-width: none;
        margin: 0 -20px;
        height: 400px;
    }
    
    /* Core values centered over hero image */
    .hero-image {
        position: relative;
    }
    
    .core-values {
        position: absolute;
        top: 80%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 70%;
        max-width: 350px;
        z-index: 10;
    }
    
    /* Services grid becomes 1 column (vertical stack) */
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    /* Team grid becomes 1 column (vertical stack) */
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    /* Maintain team photo aspect ratio */
    .member-photo {
        width: 100%;
        max-width: 300px;
        height: auto;
        aspect-ratio: 252 / 324;
        margin: 0 auto;
    }
    
    /* Align team names with photo width */
    .member-info {
        max-width: 300px;
    }
    
    /* Contact section becomes vertical */
    .contact-container {
        flex-direction: column;
    }
    
    .contact-image {
        width: 100%;
        height: 400px;
        margin-left: 0;
    }
    
    /* Restore right padding to contact form */
    .contact-form {
        padding-right: 20px;
    }
    
    /* About section becomes vertical */
    .about-container {
        flex-direction: column;
    }
    
    .about-image {
        width: 100%;
        height: 300px;
        margin-left: 0;
    }
    
    /* All text left-aligned on tablet */
    h1, h2, h3, p {
        text-align: left !important;
    }
    
    .services-header, .about-content, .team-section, .contact-section {
        text-align: left !important;
    }
}

/* MOBILE LANDSCAPE: 600px - 768px */
@media (min-width: 600px) and (max-width: 768px) {
    /* Mobile menu button visible */
    .mobile-menu-toggle {
        display: block;
        order: -1; /* Move to left side */
    }
    
    /* Hide regular navigation */
    .navigation {
        display: none;
    }
    
    /* Hero section vertical stack layout */
    .hero-container {
        flex-direction: column;
        gap: 30px;
        text-align: left;
        padding: 0 20px;
    }
    
    .hero-section {
        padding-left: 0;
        padding-right: 0;
    }
    
    .hero-content {
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .hero-image {
        width: calc(100% + 40px);
        max-width: none;
        margin: 0 -20px;
        height: 350px;
    }
    
    /* Core values centered over hero image */
    .hero-image {
        position: relative;
    }
    
    .core-values {
        position: absolute;
        top: 80%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 70%;
        max-width: 320px;
        z-index: 10;
    }
    
    /* Services and team sections stack vertically */
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    /* Maintain team photo aspect ratio */
    .member-photo {
        width: 100%;
        max-width: 280px;
        height: auto;
        aspect-ratio: 252 / 324;
        margin: 0 auto;
    }
    
    /* Align team names with photo width */
    .member-info {
        max-width: 280px;
    }
    
    /* Full-width images for other sections */
    .about-image {
        width: calc(100% + 40px);
        margin-left: -20px;
        margin-right: -20px;
        height: 250px;
    }
    
    .contact-image {
        width: calc(100% + 40px);
        margin-left: -20px;
        margin-right: -20px;
        height: 300px;
    }
    
    /* Remove padding for edge-to-edge images */
    .about-section, .contact-section {
        padding-left: 0;
        padding-right: 0;
    }
    
    
    .about-container, .contact-container {
        padding-left: 0;
        padding-right: 0;
    }
    
    /* Restore right padding to contact form */
    .contact-form {
        padding-right: 20px;
    }
}

/* MOBILE PORTRAIT: 0px - 599px */
@media (max-width: 599px) {
    /* Mobile menu button visible */
    .mobile-menu-toggle {
        display: block;
    }
    
    /* Hide regular navigation */
    .navigation {
        display: none;
    }
    
    /* Header adjustments */
    .header-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 0 20px;
    }
    
    /* Ensure mobile menu button stays on left */
    .mobile-menu-toggle {
        order: -1;
    }
    
    .logo-img {
        height: 80px;
    }
    
    /* Hero section becomes vertical stack */
    .hero-section {
        padding-top: 120px;
        padding-left: 0;
        padding-right: 0;
    }
    
    .hero-container {
        flex-direction: column;
        gap: 40px;
        text-align: left;
        padding: 0 20px;
    }
    
    .hero-content {
        width: 100%;
        max-width: none;
    }
    
    .hero-image {
        width: calc(100% + 40px);
        margin-left: -20px;
        margin-right: -20px;
        height: 350px;
    }
    
    /* Core values centered over hero image */
    .hero-image {
        position: relative;
    }
    
    .core-values {
        position: absolute;
        top: 80%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 70%;
        max-width: 300px;
        z-index: 10;
    }
    
    /* Typography adjustments */
    .hero-title {
        font-size: 26px;
    }
    
    .hero-description {
        font-size: 16px;
    }
    
    .btn {
        font-size: 16px;
        padding: 14px 18px;
    }
    
    /* Services single column */
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    /* About section vertical */
    .about-container {
        flex-direction: column;
    }
    
    .about-image {
        width: calc(100% + 40px);
        margin-left: -20px;
        margin-right: -20px;
        height: 250px;
    }
    
    .about-content {
        padding: 0 20px;
    }
    
    /* Team grid 1 column (vertical stack) */
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    /* Maintain team photo aspect ratio */
    .member-photo {
        width: 100%;
        max-width: 250px;
        height: auto;
        aspect-ratio: 252 / 324;
        margin: 0 auto;
    }
    
    /* Align team names with photo width */
    .member-info {
        max-width: 250px;
    }
    
    /* Contact section vertical */
    .contact-container {
        flex-direction: column;
    }
    
    .contact-image {
        width: calc(100% + 40px);
        margin-left: -20px;
        margin-right: -20px;
        height: 300px;
    }
    
    /* Restore right padding to contact form */
    .contact-form {
        padding-right: 20px;
    }
    
    /* Footer vertical */
    .footer-content {
        flex-direction: column;
        gap: 30px;
        text-align: left;
    }
    
    /* All text left-aligned on mobile */
    h1, h2, h3, p {
        text-align: left !important;
    }
    
    .services-header, .about-content, .team-section, .contact-section {
        text-align: left !important;
    }
    
    /* Remove top padding from contact section on mobile to eliminate tan background */
    .contact-section {
        padding-top: 0;
    }
    
    /* Modal responsive adjustments for mobile */
    .success-modal-content {
        width: 95%;
        max-width: 95%;
        margin: 20px;
        max-height: 85vh;
    }
    
    .success-modal-header {
        padding: 15px;
    }
    
    .success-modal-header h3 {
        font-size: 18px;
    }
    
    .success-modal-body {
        padding: 20px 15px;
    }
    
    .success-modal-body p {
        font-size: 16px;
    }
    
    .success-modal-footer {
        padding: 15px;
    }
    
    .success-modal-footer .btn {
        width: 100%;
        padding: 15px;
        font-size: 16px;
    }
}

/* SMALL MOBILE: 0px - 480px */
@media (max-width: 480px) {
    /* Typography further reduced */
    .hero-title {
        font-size: 22px;
    }
    
    .hero-description {
        font-size: 14px;
    }
    
    .btn {
        font-size: 14px;
        padding: 12px 16px;
    }
    
    /* Team single column */
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    /* Maintain team photo aspect ratio */
    .member-photo {
        width: 100%;
        max-width: 220px;
        height: auto;
        aspect-ratio: 252 / 324;
        margin: 0 auto;
    }
    
    /* Align team names with photo width */
    .member-info {
        max-width: 220px;
    }
    
    /* Form inputs smaller */
    .form-input,
    .form-select,
    .form-textarea {
        font-size: 14px;
        padding: 12px 10px;
    }
    
    /* 404 Error Page Mobile */
    .error-section {
        padding: 80px 15px 30px;
    }
    
    .error-container {
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
    }
    
    .error-content {
        padding: 40px 25px;
        width: 100%;
        max-width: 100%;
    }
    
    .error-image {
        max-width: 150px;
        margin-bottom: 20px;
    }
    
    .error-title {
        font-size: 36px;
        margin-bottom: 20px;
    }
    
    .error-message {
        font-size: 18px;
        text-align: center;
        margin: 0 auto;
    }
}

/* Additional responsive breakpoints for 404 page */
@media (max-width: 480px) {
    .error-content {
        padding: 30px 20px;
    }
    
    .error-title {
        font-size: 32px;
    }
    
    .error-message {
        font-size: 16px;
    }
    
    /* Modal adjustments for small mobile */
    .success-modal-content {
        width: 98%;
        max-width: 98%;
        margin: 10px;
        max-height: 90vh;
    }
    
    .success-modal-header {
        padding: 12px;
    }
    
    .success-modal-header h3 {
        font-size: 16px;
    }
    
    .success-modal-body {
        padding: 15px 12px;
    }
    
    .success-modal-body p {
        font-size: 14px;
    }
    
    .success-modal-footer {
        padding: 12px;
    }
    
    .success-modal-footer .btn {
        padding: 12px;
        font-size: 14px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .error-container {
        max-width: 700px;
    }
    
    .error-content {
        padding: 50px 35px;
    }
}


