/* =============================
   Responsive Design for Mobile
============================= */

@media (max-width: 760px) {

    /* Global reset for mobile */
    body {
        padding-top: 0;
        overflow-x: hidden;
    }

    /* =============================
       Header
    ============================= */
    header {
        position: relative;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 12px 16px;
        background: #fff;
        z-index: 1200;
    }

    .logo {
        position: static;
        transform: none;
        margin: 0;
    }

    .logo img {
        height: 50px;
        width: auto;
        display: block;
    }

    .header-actions {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    /* =============================
       Hamburger Button
    ============================= */
    .hamburger {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 4px;
        background: #e2b676;
        border: none;
        width: 44px;
        height: 38px;
        border-radius: 8px;
        padding: 6px;
        cursor: pointer;
        z-index: 1300;
        touch-action: manipulation;
    }

    .hamburger span {
        width: 24px;
        height: 3px;
        background: #fff;
        border-radius: 2px;
        display: block;
    }

    /* =============================
       Mobile Navigation
    ============================= */
    nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--head-color);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s ease;
        z-index: 1100;
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    }

    nav.active {
        max-height: 100vh;
    }

    nav ul {
        display: flex;
        flex-direction: column;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    nav ul li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    }

    nav ul li:last-child {
        border-bottom: none;
    }

    nav ul li a {
        display: block;
        padding: 14px 18px;
        font-size: 16px;
        color: var(--gold-text);
        text-decoration: none;
    }

    nav ul li a:active {
        background: rgba(255, 255, 255, 0.08);
    }

    /* Mobile Dropdown Overrides */
    .dropdown-menu {
        position: static;
        display: block;
        /* Always show in mobile menu for simplicity */
        box-shadow: none;
        background: transparent;
        padding-left: 30px;
        /* Indent */
        width: 100%;
        min-width: auto;
        padding-top: 0;
        padding-bottom: 0;
    }

    .dropdown-menu li {
        border-bottom: none;
        /* Remove border for sub-items */
    }

    .dropdown-menu li a {
        padding: 8px 0;
        color: rgba(255, 255, 255, 0.8);
        /* Slightly dimmer */
        font-size: 14px;
        text-transform: none;
    }

    .dropdown:hover .dropdown-menu {
        animation: none;
        /* Disable desktop animation */
    }

    /* =============================
       Search Box
    ============================= */
    .search-box {
        position: relative;
        width: auto;
    }

    .search-box input {
        position: static;
        width: 180px;
        max-width: 100%;
    }

    /* =============================
       Hero Section
    ============================= */
    .hero {
        height: auto;
        min-height: 350px;
        /* Reduced from 500px/70vh */
        padding: 100px 16px 40px;
        /* Adjusted padding */
        text-align: center;
        background-attachment: scroll;
        /* Fix for some mobile browsers */
    }

    .hero h1 {
        font-size: 28px;
        /* Reduced from 56px */
        line-height: 1.2;
        margin-bottom: 15px;
    }

    .hero p {
        font-size: 16px;
        /* Reduced from 24px */
        line-height: 1.5;
        margin-bottom: 20px;
    }

    /* Adjust Hero Buttons */
    .hero-buttons {
        gap: 12px;
        margin-top: 20px;
    }

    .btn-hero {
        padding: 12px 24px;
        font-size: 16px;
        min-width: 160px;
    }

    /* =============================
       Global Typography Overrides
    ============================= */
    h2 {
        font-size: 24px !important;
        /* Force reduction */
        line-height: 1.3;
    }

    h3 {
        font-size: 20px !important;
    }

    p {
        font-size: 15px;
    }

    .hero h2 {
        font-size: 24px;
        line-height: 1.3;
    }

    /* =============================
       Team Section
    ============================= */
    .team-member {
        width: 100%;
        padding: 24px 16px;
        box-sizing: border-box;
    }

    /* =============================
       Footer (Mobile Redesign)
    ============================= */
    footer {
        padding: 30px 20px 80px;
        /* Reduced vertical spacing */
        text-align: left;
        /* specific for mobile readability */
    }

    .footer-container {
        display: flex;
        flex-direction: column;
        gap: 20px;
        margin-bottom: 30px;
        grid-template-columns: 1fr;
        /* Override grid */
    }

    /* Brand Section */
    .footer-brand {
        align-items: flex-start;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding-bottom: 20px;
        gap: 15px;
    }

    .footer-logo img {
        max-width: 180px;
    }

    .brand-desc {
        font-size: 13px;
        color: #999;
    }

    .social-icons-row {
        margin-top: 5px;
    }

    /* Accordion Sections */
    .accordion-col h3 {
        display: flex;
        justify-content: space-between;
        align-items: center;
        cursor: pointer;
        margin-bottom: 0;
        padding: 15px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        user-select: none;
        font-size: 16px;
    }

    .accordion-icon {
        display: block;
        font-weight: 300;
        font-size: 20px;
        transition: transform 0.3s ease;
    }

    /* Hidden by default on mobile */
    .accordion-col ul {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        padding-left: 0;
        opacity: 0;
    }

    /* Active State */
    .accordion-col.active ul {
        max-height: 400px;
        margin-top: 10px;
        margin-bottom: 10px;
        opacity: 1;
    }

    .accordion-col.active .accordion-icon {
        transform: rotate(45deg);
        color: var(--primary-color);
    }

    .footer-col ul li a {
        padding: 8px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.02);
    }

    /* Contact Section */
    .contact-col {
        margin-top: 20px;
        border-bottom: none;
    }

    .contact-col h3 {
        margin-bottom: 15px;
    }

    /* Footer Bottom */
    .footer-bottom {
        flex-direction: column;
        gap: 5px;
        text-align: center;
        padding-top: 10px;
    }

    /* =============================
       Mobile Sticky CTA
    ============================= */
    .mobile-sticky-cta {
        position: fixed;
        bottom: 20px;
        left: 50%;
        width: 90%;
        max-width: 400px;
        background: transparent;
        padding: 0;
        /* box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.1); */
        z-index: 10000;
        /* Highest priority */
        display: flex;
        /* Override desktop hidden */
        justify-content: center;
        align-items: center;
        transform: translateX(-50%) translateY(100%);
        /* Center and hide */
        transition: transform 0.3s ease-out;
    }

    .mobile-sticky-cta.show {
        transform: translateX(-50%) translateY(0);
        /* Shown on scroll */
    }

    .mobile-sticky-cta a {
        background: var(--gold-gradient);
        color: white;
        text-decoration: none;
        font-weight: bold;
        padding: 14px 24px;
        border-radius: 50px;
        width: 100%;
        text-align: center;
        font-size: 18px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    /* Ensure content doesn't get hidden behind sticky bar */
    footer {
        padding-bottom: 50px;
    }

    /* Improve Button Touch Targets */
    button,
    .btn,
    a.btn-hero {
        min-height: 48px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    /* Fix Back to Top Overlap */
    .back-to-top {
        bottom: 100px;
        /* Above the sticky CTA (approx 60-70px height) */
        right: 20px;
        z-index: 10001;
        /* Above sticky CTA if needed, or just positionally separated */
    }
}