/*
Theme Name: Power Fit Clone
Author: GitHub Copilot
Description: A custom WordPress theme matching specific design requirements.
Version: 1.0
Text Domain: power-fit-clone
*/

:root {
    --primary-red: #E5382F; /* Updated to match design specs */
    --primary-black: #000000;
    --primary-white: #ffffff;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Montserrat', sans-serif;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--primary-black);
    background-color: var(--primary-white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    text-transform: uppercase; /* Most headings in design are uppercase */
    margin-bottom: 20px;
    font-weight: 700;
    margin-top: 0;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.container {
    max-width: 1400px; /* Wider design */
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 2px;
    cursor: pointer;
    border: none;
    text-decoration: none;
    font-size: 12px;
    line-height: 20px;
    border-radius: 5px;
}

.btn-red {
    background-color: var(--primary-red);
    color: white;
}

.btn-black {
    background-color: black;
    color: white;
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--primary-red);
    color: white;
    /* background: black; Removed to handle transparent correctly if needed, but hero has black bg anyway */
}

/* Specific styling for the third button (Protein Snacks) to have red text */
.hero-buttons .btn-outline:last-child {
    color: var(--primary-red);
}

/* Header */
.site-header {
    background: white;
    padding: 10px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    position: relative;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.site-branding {
    flex-shrink: 0;
    margin-right: 40px;
}

.site-title {
    margin: 0;
    line-height: 1;
}

/* Center Section */
.header-center {
    display: flex;
    align-items: center;
    flex-grow: 1;
    justify-content: center; /* Centered Navigation */
    margin: 0 20px;
}

/* Nav */
.main-navigation {
    margin: 0;
}

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 30px;
}

.main-navigation li {
    position: relative;
}

.main-navigation a {
    font-family: var(--font-heading);
    font-weight: 700; /* Bold as per image */
    font-size: 12px; 
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: black;
    padding: 5px 0;
    border-bottom: 2px solid transparent;
    display: block;
}

.main-navigation a:hover {
    color: var(--primary-red);
    text-decoration: none;
}

/* Submenu Indicator */
.main-navigation .menu-item-has-children > a::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 6px;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid currentColor;
    vertical-align: middle;
    transition: transform 0.2s ease;
}

.main-navigation .menu-item-has-children:hover > a::after {
    transform: rotate(180deg);
}

/* Dropdown Menus - All Levels */
.main-navigation ul ul {
    position: absolute;
    left: 0;
    top: 100%;
    display: none;
    flex-direction: column;
    gap: 0;
    background: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    min-width: 220px;
    padding: 10px 0;
    z-index: 1000;
    border-top: 3px solid var(--primary-red);
}

/* Nested submenu positioning - appears to the right */
.main-navigation ul ul ul {
    left: 100%;
    top: 0;
    margin-top: -10px;
}

/* Show submenu on hover */
.main-navigation li:hover > ul {
    display: flex;
}

/* Submenu items */
.main-navigation ul ul li {
    width: 100%;
    position: relative;
}

.main-navigation ul ul a {
    padding: 12px 20px;
    font-size: 13px;
    color: #333;
    border-bottom: none;
    white-space: nowrap;
    transition: background-color 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
}

.main-navigation ul ul a:hover {
    background-color: #f8f8f8;
    color: var(--primary-red);
    padding-left: 25px;
}

/* Nested submenu indicators point right */
.main-navigation ul ul .menu-item-has-children > a::after {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%) rotate(-90deg);
    margin-left: 0;
}

.main-navigation ul ul .menu-item-has-children:hover > a::after {
    transform: translateY(-50%) rotate(90deg);
}

/* Touch device support */
.main-navigation .submenu-open > ul {
    display: flex !important;
}

/* Active menu items */
.main-navigation .current-menu-item > a,
.main-navigation .current-menu-ancestor > a {
    color: var(--primary-red);
    border-bottom-color: var(--primary-red);
}

/* Smooth transitions for menu appearance */
.main-navigation ul ul {
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}

.main-navigation li:hover > ul,
.main-navigation .submenu-open > ul {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Nested submenus slide from the side */
.main-navigation ul ul ul {
    transform: translateX(-10px);
}

.main-navigation ul ul li:hover > ul,
.main-navigation ul ul .submenu-open > ul {
    transform: translateX(0);
}

/* Search */
.header-search {
    position: relative;
    display: flex;
    align-items: center;
    margin-right: 15px; /* Spacing between search and button */
}

.search-icon {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.search-icon:hover {
    transform: scale(1.1);
}

.header-search-form-wrapper {
    display: none; /* Hidden by default */
    position: absolute;
    top: 60px; /* Aligns below the header */
    right: 0; /* Aligns to the right since it's in the right section now */
    left: auto; 
    background: white;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border: 1px solid #f0f0f0;
    z-index: 100;
    min-width: 320px;
    border-radius: 8px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.header-search-form-wrapper.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.header-search-form-wrapper form {
    display: flex;
    align-items: stretch;
    position: relative;
    width: 100%;
}

.header-search-form-wrapper label {
    flex-grow: 1;
    margin: 0;
}

.header-search-form-wrapper input[type="search"] {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #eee;
    border-right: none;
    border-radius: 4px 0 0 4px;
    font-size: 14px;
    font-family: var(--font-body);
    outline: none;
    transition: border-color 0.2s;
    height: 48px; /* Force height */
    box-sizing: border-box;
}

.header-search-form-wrapper input[type="search"]:focus {
    border-color: var(--primary-red);
}

.header-search-form-wrapper button[type="submit"] {
    background: var(--primary-red);
    color: white;
    border: none;
    padding: 0 20px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
    height: 48px; /* Force height */
}

.header-search-form-wrapper button[type="submit"]:hover {
    background-color: #b92b24;
}

.header-search-form-wrapper button[type="submit"] svg {
    stroke: white; /* Ensure icon is white on red button */
}

.close-btn {
    position: absolute;
    top: -12px;
    right: -12px;
    background: black;
    color: white;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    border-radius: 50%;
    width: 28px;
    height: 28px;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.2s;
}

.close-btn:hover {
    background: var(--primary-red);
    transform: scale(1.1);
}

/* Search backdrop overlay - only visible on mobile */
.search-backdrop {
    display: none;
}

@media screen and (max-width: 768px) {
    .search-backdrop {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 9999;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .search-backdrop.active {
        display: block;
        opacity: 1;
    }
}

/* Custom Logo Handling */
.site-branding img.custom-logo {
    max-height: 80px; /* Force appropriate height */
    width: auto;
    object-fit: contain;
    display: block;
}

/* Right Header */
.header-right {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-shrink: 0;
}

/* Monthly Specials Button */
.monthly-specials-btn.btn { 
    background-color: var(--primary-red);
    color: white;
    font-weight: 700;
    padding: 12px 25px;
    font-size: 13px;
    border-radius: 4px;
    white-space: nowrap;
    letter-spacing: 1.5px;
}

.monthly-specials-btn:hover {
    background-color: #b92b24;
    color: white;
}

/* Cart */
.header-cart {
    position: relative;
    display: flex;
    align-items: center;
}

.cart-contents {
    position: relative;
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.cart-contents svg {
    transition: transform 0.2s;
}

.cart-contents:hover svg {
    transform: scale(1.1);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: black;
    color: white;
    font-size: 10px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    border: 1px solid white;
}

/* Hero Section Slider */
.hero-section-wrapper {
    position: relative;
    border-bottom: 4px solid white;
}

.hero-slider {
    width: 100%;
    height: 100%;
}

.hero-slider .swiper-slide {
    height: auto;
}

/* Hero Section */
.hero-section {
    display: flex;
    min-height: 600px;
}

.hero-text {
    background-color: black;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center; /* Center content horizontally */
    text-align: center; /* Ensure text alignment */
    padding: 80px;
    color: white;
}

.hero-text h1 {
    font-size: 72px;
    font-family: 'Bebas Neue', sans-serif;
    color: #E5382F;
    line-height: 68px;
    letter-spacing: 0px;
    margin-bottom: 30px;
}

.hero-image {
    flex: 1;
    background-color: var(--primary-red);
    background-image: url('images/hero-bg.jpg'); /* Placeholder */
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    min-height: 400px;
}

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

/* Hero slider navigation */
.hero-pagination {
    bottom: 20px !important;
}

.hero-prev,
.hero-next {
    color: var(--primary-red) !important;
}

.hero-prev:after,
.hero-next:after {
    font-size: 30px !important;
}

/* Just styling for the buttons group in hero */
.hero-buttons {
    margin-top: 40px;
    display: flex;
    flex-wrap: wrap; /* in case of small screens */
    justify-content: center; /* Center buttons in their container */
    gap: 20px;
    align-items: center;
}

.shop-menu-btn {
    width: auto;
    min-width: 200px;
    display: inline-block;
    margin-top: 20px;
    padding: 14px 40px;
    font-size: 14px;
}

/* Hero Button Variants */
.btn-outline-white {
    background-color: transparent;
    border: 1px solid white;
    color: white;
}
.btn-outline-white:hover {
    background-color: white;
    color: black;
}

.btn-fill-red {
    background-color: var(--primary-red);
    color: white;
    border: 1px solid var(--primary-red);
}
.btn-fill-red:hover {
    background-color: #b92b24; /* Darker red */
    border-color: #b92b24;
}

.btn-outline-red {
    background-color: transparent;
    border: 1px solid var(--primary-red);
    color: var(--primary-red);
}
.btn-outline-red:hover {
    background-color: var(--primary-red);
    color: white;
}

@media (max-width: 600px) {
    .shop-menu-btn {
        min-width: 140px;
        max-width: 100%;
        font-size: 11px;
        padding: 10px 10px;
    }
}

/* Simple Steps */
.steps-section {
    background-color: black;
    color: white;
    padding: 80px 0;
    border-bottom: 4px solid white;
}

.steps-section h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 32px;
    line-height: 20px; /* From design spec, likely tight */
    letter-spacing: 2px;
    text-align: center;
    margin-bottom: 50px;
    text-transform: uppercase;
}

.steps-container {
    display: flex;
    gap: 50px;
}

.steps-text {
    flex: 1;
}

.step-item {
    margin-bottom: 25px;
    font-size: 18px; /* Match design size */
    line-height: 1.5;
}

.step-item h3 {
    display: inline;
    font-family: var(--font-body); /* Looks like normal font in screenshot, not heading font */
    font-weight: 400; /* Regular weight */
    font-size: 18px; /* Same as p */
    color: white;
    margin: 0;
}

.step-item h3::after {
    content: " - ";
}

.step-item p {
    display: inline;
    color: #e5e5e5; /* Slightly muted white */
    margin: 0;
    font-weight: 300;
}

.steps-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.steps-image-box {
    width: 100%;
}

.steps-image-title {
    font-size: 36px;
    line-height: 1.1;
    margin-bottom: 20px;
    font-family: var(--font-heading);
    text-transform: uppercase;
}

@media (max-width: 768px) {
    .steps-container {
        flex-direction: column;
    }
}

.steps-list {
    margin-bottom: 40px;
}

.step-item {
    margin-bottom: 25px;
}

.step-item h3 {
    margin: 0 0 5px 0;
    font-size: 20px;
    color: white;
    text-transform: none; /* The "1. Select your meals" looks normal sentence case */
    font-family: var(--font-body);
    font-weight: normal;
}

.step-item p {
    margin: 0;
    font-size: 14px;
    opacity: 0.8;
    line-height: 1.5;
}

.steps-image {
    flex: 1;
}

/* Expert Training */
.training-section {
    background-color: black;
    color: white;
    padding: 80px 0;
    border-top: 1px solid #333;
}

.training-container {
    display: flex;
    gap: 50px;
    align-items: center;
}

.training-image {
    flex: 1;
}
.training-image img { width: 100%; height: auto; border: 4px solid white; box-sizing: border-box; }

.training-text {
    flex: 1;
}

.training-text h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.training-text p {
    font-size: 14px;
    line-height: 1.6; margin-bottom: 30px;
}

/* Products */
.products-section {
    padding: 80px 0;
    text-align: center;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 40px;
}

@media (max-width: 900px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.product-cat {
    text-align: center;
}

.product-cat a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.product-cat-image {
    width: 100%;
    aspect-ratio: 1/1;
    overflow: hidden;
    border-radius: 4px;
    background: #f5f5f5;
    position: relative;
    display: block;
}

.product-cat-image img {
    border-radius: 4px;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
}

.product-cat-image .placeholder-icon {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eee;
    border-radius: 4px;
}

.product-cat h3 {
    text-align: center;
    color: black;
    margin-top: 15px;
    font-size: 16px;
    font-family: var(--font-heading);
    font-weight: 700;
}

.product-price, .product-count {
    color: var(--primary-red);
    font-weight: 600;
    margin-top: 10px;
}

/* Testimonials */
.testimonials-section {
    padding: 80px 0;
    background: white;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.testimonials-section h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-weight: 400;
    font-size: 64px;
    line-height: 68px;
    letter-spacing: 0px;
    color: #E5382F;
    margin-bottom: 20px;
}

/* Override container width inside this special section if needed, or rely on internal padding */

.testimonials-grid {
    display: flex;
    gap: 30px;
    justify-content: center;
    margin: 50px 0;
}

.testimonial-card {
    background: var(--primary-red);
    color: white;
    padding: 30px;
    border-radius: 5px;
    flex: 1;
    text-align: left;
    display: flex;
    flex-direction: column;
}

.testimonial-card p {
    flex-grow: 1;
    font-size: 13px;
    line-height: 1.4;
    margin: 15px 0;
}

.stars { color: white; font-size: 18px; margin-bottom: 15px;}

/* Newsletter */
.newsletter-section {
    background: #222; /* Dark food texture bg */
    padding: 0;
    color: white;
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 480px;
    display: flex;
    align-items: center;
}

.newsletter-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6));
    z-index: 1;
}

.newsletter-section .container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 100%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.newsletter-content {
    text-align: right;
    padding-right: 80px;
}

.newsletter-content h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.newsletter-form {
    display: flex;
    justify-content: flex-end;
    gap: 0;
}

.newsletter-form input {
    padding: 15px;
    width: 300px;
    border: none;
    font-family: var(--font-heading);
}

.newsletter-form button {
    border: none;
    border-radius: 0; /* Square button */
}

/* Locations */
.locations-section {
    display: flex;
    flex-wrap: wrap;
}
.map-half { flex: 1; min-height: 600px; background: #eee; min-width: 300px; }
.locations-list-half { flex: 1; padding: 60px; min-width: 300px; background: white; display:flex; flex-direction:column; justify-content:center; }

.locations-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

@media (max-width: 768px) {
    .locations-grid {
        grid-template-columns: 1fr;
    }
}

.location-item {
    text-align: center;
}

.location-item h4 {
    color: var(--primary-red);
    font-family: 'Bebas Neue', sans-serif;
    font-size: 32px; /* Large and condensed */
    margin-bottom: 5px;
    letter-spacing: 1px;
}
.location-item p.loc-address {
    font-size: 16px;
    color: #000;
    line-height: 1.4;
    margin-bottom: 10px;
    text-transform: uppercase;
    font-weight: 700;
    font-family: 'Oswald', sans-serif;
}

.location-item p.loc-hours {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 0;
    font-family: var(--font-body);
}

.location-item p {
     margin-bottom: 10px;
}


/* Footer */
.site-footer {
    padding: 60px 0;
    font-size: 11px;
    color: #333;
    background: white;
    border-top: 1px solid #eee; /* subtle separation */
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.footer-col h5 {
    color: #000;
    font-size: 14px;
    margin-bottom: 20px;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: #333; font-weight: 500; font-family: var(--font-heading); }

.social-icons {
    margin-top: 20px;
    display: flex; 
    gap: 10px;
}

.social-icons a {
    width: 30px; 
    height: 30px;
    background: #eee;
    display: flex;
    align-items: center; 
    justify-content: center;
    border-radius: 50%;
    font-size: 12px;
    color: #333;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background: var(--primary-red);
    color: white;
}

.social-icons svg {
    width: 16px;
    height: 16px;
}
}

/* =========================================
   RESPONSIVENESS & ANIMATION SUPPORT
   ========================================= */

/* Swiper Slider Customization */
.products-slider {
    padding-bottom: 50px; /* Space for pagination */
}
.swiper-button-next, .swiper-button-prev {
    color: var(--primary-red);
}
.swiper-pagination-bullet-active {
    background: var(--primary-red);
}

/* Map */
#map {
    z-index: 1; /* Ensure map is below potential overlays but visible */
}

/* 
   Media Queries 
   -----------------------------------------
*/

/* Tablet (max-width: 1024px) */
@media screen and (max-width: 1024px) {
    .hero-text h1 { font-size: 48px; }
    .locations-list-half { padding: 40px; }
    
    .header-container {
        padding: 0 15px;
    }
    
    .main-navigation ul {
        gap: 20px;
    }
    
    .main-navigation a {
        font-size: 11px;
    }
    
    .monthly-specials-btn {
        font-size: 10px;
        padding: 10px 20px;
    }
}

/* Mobile Menu Toggle Button - Hidden on Desktop */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    position: relative;
}

.hamburger-line {
    width: 100%;
    height: 3px;
    background-color: var(--primary-red);
    transition: all 0.3s ease;
    border-radius: 2px;
    display: block;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    /* Keep hamburger visible - no transform */
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    /* Keep hamburger visible - no transform */
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    /* Keep hamburger visible - no transform */
}

.mobile-menu-toggle:hover .hamburger-line,
.mobile-menu-toggle.active .hamburger-line {
    background-color: #b92b24;
}

/* Mobile & Small Tablets (max-width: 768px) */
@media screen and (max-width: 768px) {
    
    /* Global Layout */
    .container { padding: 0 20px; }
    
    /* Header */
    .header-container {
        flex-wrap: wrap;
        position: relative;
        min-height: 60px;
        align-items: flex-start;
    }
    
    .site-branding {
        margin-right: 0;
        display: flex;
        align-items: center;
        height: 60px;
    }
    
    .mobile-menu-toggle {
        display: flex;
        position: fixed;
        right: 20px;
        top: 28px;
        z-index: 10001;
    }
    
    /* Hide navigation by default on mobile */
    .header-center {
        display: none;
        width: 100%;
        margin: 20px 0 0 0;
        order: 3;
        animation: slideDown 0.3s ease;
    }
    
    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .header-center.active {
        display: block;
    }
    
    .header-right {
        order: 2;
        margin-right: 60px;
        display: flex;
        align-items: center;
        gap: 15px;
        height: 60px;
    }
    
    .header-search {
        margin-right: 0;
        display: flex;
        align-items: center;
    }
    
    .header-cart {
        display: flex;
        align-items: center;
    }
    
    .monthly-specials-btn {
        display: none;
    }
    
    /* Mobile Navigation Styles */
    .main-navigation ul {
        flex-direction: column;
        gap: 0;
        width: 100%;
        align-items: stretch;
        background: white;
        padding: 10px 0;
    }
    
    .main-navigation li {
        width: 100%;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .main-navigation a {
        padding: 15px 20px;
        font-size: 14px;
    }
    
    /* Nested menus on mobile - stack vertically below parent */
    .main-navigation ul ul {
        position: static;
        box-shadow: none;
        border-top: none;
        padding: 0;
        background: #f8f8f8;
        min-width: 100%;
        display: none;
    }
    
    .main-navigation li:hover > ul {
        display: none;
    }
    
    .main-navigation li.submenu-open > ul {
        display: flex;
    }
    
    .main-navigation ul ul ul {
        left: 0;
        margin-top: 0;
        padding-left: 0;
        background: #e8e8e8;
    }
    
    .main-navigation ul ul a {
        padding: 12px 20px 12px 40px;
        font-size: 13px;
    }
    
    .main-navigation ul ul ul a {
        padding-left: 60px;
    }
    
    .main-navigation .menu-item-has-children > a::after {
        float: right;
        margin-left: 0;
        transition: transform 0.3s ease;
    }
    
    .main-navigation li.submenu-open > a::after {
        transform: rotate(180deg);
    }
    
    .main-navigation ul ul {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    .main-navigation li.submenu-open > ul {
        max-height: 1000px;
    }
    
    /* Header Icons Adjustments */
    .header-search svg,
    .header-cart svg {
        width: 24px;
        height: 24px;
    }
    
    /* Mobile Search Overlay */
    .header-search-form-wrapper {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        min-width: 100%;
        height: auto;
        padding: 20px;
        box-sizing: border-box;
        border-radius: 0;
        border: none;
        box-shadow: 0 4px 20px rgba(0,0,0,0.2);
        z-index: 10002;
    }
    
    .header-search-form-wrapper.active {
        display: block;
        animation: slideDown 0.3s ease;
    }
    
    .header-search-form-wrapper form {
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }
    
    .header-search-form-wrapper label {
        flex: 1;
        min-width: 0;
        margin: 0;
    }
    
    .header-search-form-wrapper input[type="search"] {
        font-size: 16px;
        padding: 15px;
        height: 52px;
        box-sizing: border-box;
        flex: 1;
        min-width: 0;
        width: 100%;
    }
    
    .header-search-form-wrapper button[type="submit"] {
        height: 52px;
        padding: 0 25px;
        box-sizing: border-box;
        flex-shrink: 0;
    }
    
    .close-btn {
        width: 36px;
        height: 36px;
        font-size: 24px;
        top: 15px;
        right: 15px;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 10003;
    }
    
    /* Hero */
    .hero-section {
        flex-direction: column;
        min-height: auto;
    }
    .hero-text {
        padding: 40px 20px;
        text-align: center;
        align-items: center;
    }
    .hero-text h1 { font-size: 40px; }
    .hero-buttons { justify-content: center; }
    .hero-image { min-height: 300px; }

    /* Steps */
    .steps-container {
        flex-direction: column;
        gap: 0;
    }
    .steps-image {
        order: -1; /* Image first on mobile? Or last. Let's keep it last but full width */
        margin-top: 40px;
    }
    
    /* Training */
    .training-container {
        flex-direction: column;
    }
    .training-image { margin-bottom: 30px; }
    .training-text { text-align: center; }
    
    /* Testimonials */
    .testimonials-grid {
        flex-direction: column;
    }
    
    /* Newsletter */
    .newsletter-form {
        flex-direction: column;
    }
    .newsletter-form input { width: 100%; margin-bottom: 10px; }
    .newsletter-form button { width: 100%; }

    /* Locations */
    .locations-section {
        flex-direction: column;
    }
    .map-half { height: 400px; }
    .locations-grid {
        grid-template-columns: 1fr; /* Stack locations */
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr; /* Single column footer */
        gap: 30px;
        text-align: center;
    }
    .social-icons { justify-content: center; }
}

/* Newsletter Modal */
.newsletter-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s;
}

.newsletter-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.newsletter-modal-content {
    background-color: white;
    margin: auto;
    padding: 0;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    position: relative;
    animation: slideIn 0.3s;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.newsletter-modal-close {
    position: absolute;
    right: 15px;
    top: 15px;
    color: #aaa;
    font-size: 32px;
    font-weight: bold;
    background: none;
    border: none;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
    transition: color 0.3s;
}

.newsletter-modal-close:hover,
.newsletter-modal-close:focus {
    color: var(--primary-red);
}

.newsletter-modal-body {
    padding: 50px 30px 40px;
    text-align: center;
}

.newsletter-modal-body h3 {
    color: var(--primary-red);
    font-size: 28px;
    margin-bottom: 15px;
    margin-top: 0;
}

.newsletter-modal-body p {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    margin: 0;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@media (max-width: 768px) {
    .newsletter-modal-content {
        width: 95%;
    }
    
    .newsletter-modal-body {
        padding: 40px 20px 30px;
    }
    
    .newsletter-modal-body h3 {
        font-size: 24px;
    }
}
