/*
Theme Name: WohneGruen
Author: Alen Sprem
Description: Custom WordPress theme for WohneGruen - Sustainable mobile homes
Version: 1.0.0
Text Domain: wohnegruen
*/

/* ==========================================================================
   CSS VARIABLES
   ========================================================================== */

:root {
    /* Brand Colors - Exact Lovable Green: rgba(44, 140, 79, 0.9) */
    --color-primary: rgba(44, 140, 79, 0.9);
    --color-primary-solid: rgb(44, 140, 79);
    --color-primary-dark: rgba(31, 104, 56, 0.9);
    --color-primary-light: rgba(61, 168, 98, 0.9);
    --color-primary-rgb: 44, 140, 79;

    /* Additional Colors */
    --color-white: #ffffff;
    --color-black: #000000;
    --color-background: #f8f9fa;        /* Light gray background */
    --color-background-light: #ffffff;
    --color-foreground: #333333;        /* Main text color */

    --color-text-primary: #333333;
    --color-text-secondary: #666666;
    --color-text-muted: #999999;
    --color-text-light: #555555;
    --color-muted-foreground: #6b7280; /* For inactive nav items */

    --color-border: #e0e0e0;            /* Standard border */
    --color-border-light: #dee2e6;

    --color-card: #ffffff;
    --color-muted: #f8f9fa;

    --color-secondary: #b8d4a8;         /* Light green for hovers */
    --color-accent: #d4a574;            /* Accent beige */

    /* Typography */
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-system: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, sans-serif;

    /* Typography Scale */
    --font-size-xs: 0.75rem;      /* 12px */
    --font-size-sm: 0.875rem;     /* 14px */
    --font-size-base: 1rem;       /* 16px */
    --font-size-md: 1.1rem;       /* 17.6px */
    --font-size-lg: 1.25rem;      /* 20px */
    --font-size-xl: 1.5rem;       /* 24px */
    --font-size-2xl: 2rem;        /* 32px */
    --font-size-3xl: 2.5rem;      /* 40px */
    --font-size-4xl: 3.5rem;      /* 56px */

    /* Spacing Scale */
    --spacing-xs: 0.5rem;    /* 8px */
    --spacing-sm: 0.75rem;   /* 12px */
    --spacing-md: 1rem;      /* 16px */
    --spacing-lg: 1.5rem;    /* 24px */
    --spacing-xl: 2rem;      /* 32px */
    --spacing-2xl: 3rem;     /* 48px */
    --spacing-3xl: 5rem;     /* 80px */

    /* Navigation */
    --nav-height: 70px;
    --nav-height-mobile: 60px;
    --nav-logo-height: 48px;

    /* Hero Sections */
    --hero-min-height: 550px;
    --hero-min-height-mobile: 400px;
    --hero-title-size: 2.5rem;
    --hero-title-size-mobile: 2rem;

    /* Buttons */
    --btn-padding: 12px 24px;
    --btn-font-size: 16px;

    /* Border Radius */
    --radius-sm: 0.5rem;     /* 8px */
    --radius: 0.75rem;       /* 12px */
    --radius-md: 0.75rem;    /* 12px */
    --radius-lg: 1rem;       /* 16px */
    --radius-xl: 1.5rem;     /* 24px */

    /* Breakpoints (for reference in comments) */
    --breakpoint-mobile: 480px;
    --breakpoint-tablet: 768px;
    --breakpoint-desktop: 1024px;
    --breakpoint-wide: 1200px;

    /* Shadows */
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-card-hover: 0 8px 30px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.15);

    /* Transitions */
    --transition: all 0.3s ease;
    --transition-fast: all 0.2s ease;
    --transition-slow: all 0.5s ease;
}

/* ==========================================================================
   BASE STYLES
   ========================================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ==========================================================================
   ACCESSIBILITY
   ========================================================================== */

/* Skip to Content Link - Accessibility (Only visible on keyboard focus) */
.skip-to-content {
    position: absolute;
    top: -9999px;
    left: -9999px;
    z-index: -1;
    padding: 1rem 1.5rem;
    background: var(--color-primary);
    color: white;
    text-decoration: none;
    font-weight: 600;
    border-radius: 0 0 var(--radius) 0;
    transition: all 0.3s;
    clip: rect(1px, 1px, 1px, 1px) !important;
    clip-path: inset(50%) !important;
    height: 1px !important;
    width: 1px !important;
    overflow: hidden !important;
    white-space: nowrap !important;
    opacity: 0 !important;
    pointer-events: none !important;
    margin: 0 !important;
    display: block;
}

.skip-to-content:focus {
    top: 0 !important;
    left: 0 !important;
    z-index: 10000 !important;
    clip: auto !important;
    clip-path: none !important;
    height: auto !important;
    width: auto !important;
    overflow: visible !important;
    white-space: normal !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    outline: 3px solid var(--color-primary-dark);
    outline-offset: 2px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-foreground);
    background-color: var(--color-background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding-top: var(--nav-height);
    margin: 0;
}

@media (max-width: 767px) {
    body {
        padding-top: var(--nav-height-mobile);
    }
}

/* Remove all spacing from main content wrapper */
main,
#main-content,
.page-content,
.front-page,
.site-content {
    margin: 0;
    padding: 0;
}

/* Remove WordPress default block spacing */
.wp-site-blocks {
    padding-top: 0;
    margin-top: 0;
}

.wp-site-blocks > * {
    margin-block-start: 0;
    margin-block-end: 0;
}

/* Remove spacing from WordPress ACF block wrappers */
.wp-block-acf,
[class*="wp-block-acf"] {
    margin-top: 0;
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 0;
}

/* Specific fix for Gallery and Models blocks */
.wp-block[data-type="acf/wohnegruen-gallery-complete"],
.wp-block[data-type="acf/wohnegruen-models-complete"] {
    margin-top: 0;
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 0;
}

/* Remove spacing from all page wrapper divs */
.gallery-complete-page,
.models-complete-page,
.home-complete-page,
.contact-complete-page {
    margin: 0;
    padding: 0;
}

/* Ensure hero sections touch the nav exactly */
.gallery-hero,
.models-hero,
.home-hero,
.contact-hero,
[class*="-hero"] {
    margin-top: 0;
    margin-block-start: 0;
    padding-top: 0;
    padding-block-start: 0;
}

/* Force hero sections as first visual element - remove ALL spacing */
.gallery-complete-page > .gallery-hero:first-of-type,
.models-complete-page > .models-hero:first-of-type,
.home-complete-page > .home-hero:first-of-type,
.contact-complete-page > .contact-hero:first-of-type {
    margin-top: 0;
    margin-block-start: 0;
    padding-top: 0;
    padding-block-start: 0;
}

/* Remove spacing from wrapper when it's first in main */
main > .gallery-complete-page:first-child,
main > .models-complete-page:first-child,
main > .home-complete-page:first-child,
main > .contact-complete-page:first-child {
    margin-top: 0;
    margin-block-start: 0;
    padding-top: 0;
    padding-block-start: 0;
}

/* SPECIFIC FIX: Force Galerie and Modelle pages to have zero gap */
.gallery-complete-page,
.models-complete-page {
    margin-top: 0;
    margin-block-start: 0;
    padding-top: 0;
    padding-block-start: 0;
}

.gallery-complete-page .gallery-hero,
.models-complete-page .models-hero {
    margin-top: 0;
    margin-block-start: 0;
    padding-top: 0;
    padding-block-start: 0;
}

/* WordPress Admin Bar Support */
.admin-bar .site-navigation {
    top: 32px;
}

@media screen and (max-width: 782px) {
    .admin-bar .site-navigation {
        top: 46px;
    }
}

.admin-bar .mobile-menu {
    top: 32px;
    padding-top: calc(60px + 2rem);
}

@media screen and (max-width: 782px) {
    .admin-bar .mobile-menu {
        top: 46px;
    }
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* ==========================================================================
   UTILITY CLASSES
   ========================================================================== */

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
}

.section-padding {
    padding: 4rem 0;
}

@media (min-width: 768px) {
    .section-padding {
        padding: 6rem 0;
    }
}

.text-gradient {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-primary {
    color: var(--color-primary);
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: var(--btn-padding);
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-weight: 500;
    font-size: var(--btn-font-size);
    line-height: 1.4;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    white-space: nowrap;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
    box-shadow: 0 2px 8px rgba(var(--color-primary-rgb), 0.15);
}

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(var(--color-primary-rgb), 0.25);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

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

.btn-white {
    background-color: hsla(0, 0%, 100%, 0.1);
    color: var(--color-white);
    border: 1px solid hsla(0, 0%, 100%, 0.3);
}

.btn-white:hover {
    background-color: hsla(0, 0%, 100%, 0.2);
}

.btn svg,
.btn-arrow svg {
    width: 1rem;
    height: 1rem;
    transition: transform 0.3s ease;
}

.btn:hover svg,
.btn-arrow:hover svg {
    transform: translateX(4px);
}

.btn-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-primary);
    font-weight: 600;
    font-size: 0.875rem;
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */

.site-navigation {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    height: var(--nav-height);
}

@media (max-width: 767px) {
    .site-navigation {
        height: var(--nav-height-mobile);
    }
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
    height: 100%;
}

@media (min-width: 640px) {
    .nav-container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .nav-container {
        padding: 0 2rem;
    }
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.site-logo .logo-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--radius);
    background-color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
}

.site-logo .logo-text {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--color-foreground);
}

.site-logo .logo-text span {
    color: var(--color-primary);
}

.site-logo svg,
.site-logo img {
    height: var(--nav-logo-height);
    width: auto;
}

.nav-menu {
    display: none;
    align-items: center;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

@media (min-width: 768px) {
    .nav-menu {
        display: flex;
    }
}

.nav-menu > li {
    list-style: none;
    position: relative;
}

.nav-menu > li > a {
    font-weight: 500;
    color: var(--color-muted-foreground);
    transition: var(--transition);
    position: relative;
    padding-bottom: 4px;
    text-decoration: none;
    display: inline-block;
}

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

.nav-menu > li > a:hover {
    color: var(--color-primary);
}

.nav-menu > li > a:hover::after {
    width: 100%;
}

/* Active page state */
.nav-menu > li.current-menu-item > a,
.nav-menu > li.current_page_item > a,
.nav-menu > li.current-menu-ancestor > a,
.nav-menu > li.current-menu-parent > a {
    color: var(--color-primary);
    font-weight: 600;
}

.nav-menu > li.current-menu-item > a::after,
.nav-menu > li.current_page_item > a::after,
.nav-menu > li.current-menu-ancestor > a::after,
.nav-menu > li.current-menu-parent > a::after {
    width: 100%;
}

/* Dropdown Menu Styles - Desktop only */
.nav-menu > li.menu-item-has-children > a {
    padding-right: 1.25rem;
    position: relative;
}

/* Add dropdown arrow via CSS for desktop navigation only - using ::before to avoid conflict with ::after underline */
.nav-menu > li.menu-item-has-children > a::before {
    content: '▼';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.6rem;
    opacity: 0.6;
    transition: transform 0.3s ease, opacity 0.3s ease;
    pointer-events: none;
}

.nav-menu > li.menu-item-has-children:hover > a::before {
    transform: translateY(-50%) rotate(180deg);
    opacity: 1;
}

/* Desktop submenu (only applies to desktop nav) */
.nav-menu .sub-menu {
    position: absolute;
    top: calc(100% + 1rem);
    left: 0;
    min-width: 200px;
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    padding: 0.75rem 0;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 100;
    list-style: none;
}

/* Show submenu on parent hover */
.nav-menu > .menu-item-has-children {
    position: relative;
}

.nav-menu > .menu-item-has-children:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}


.nav-menu .sub-menu li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu .sub-menu a {
    display: block;
    padding: 0.75rem 1.25rem;
    color: var(--color-text-primary);
    text-decoration: none;
    transition: all 0.2s ease;
    font-weight: 500;
    font-size: 0.9375rem;
    position: relative;
    white-space: nowrap;
}

.nav-menu .sub-menu a::after {
    content: '';
    position: absolute;
    bottom: 0.5rem;
    left: 1.25rem;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: width 0.3s ease;
}

.nav-menu .sub-menu a:hover {
    background: var(--color-background);
    color: var(--color-primary);
    padding-left: 1.5rem;
}

.nav-menu .sub-menu a:hover::after {
    left: 1.5rem;
    width: calc(100% - 3rem);
}

/* Active submenu item - always show underline when dropdown is open */
.nav-menu .sub-menu li.current-menu-item > a,
.nav-menu .sub-menu li.current_page_item > a {
    background: var(--color-background);
    color: var(--color-primary);
    font-weight: 600;
}

.nav-menu .sub-menu li.current-menu-item > a::after,
.nav-menu .sub-menu li.current_page_item > a::after {
    width: calc(100% - 2.5rem);
    transition: none; /* Instant appearance for active state */
}

.nav-right {
    display: none;
    align-items: center;
    gap: 1rem;
}

@media (min-width: 768px) {
    .nav-right {
        display: flex;
    }
}

.nav-phone {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-muted-foreground);
    font-weight: 500;
}

.nav-phone:hover {
    color: var(--color-primary);
}

.nav-phone svg {
    width: 1rem;
    height: 1rem;
}

/* Hamburger Menu */
.hamburger {
    display: none; /* Hidden by default on desktop */
    flex-direction: column;
    justify-content: center;
    gap: 0.375rem;
    width: 2.5rem;
    height: 2.5rem;
    cursor: pointer;
    padding: 0.5rem;
    margin: 0;
    position: relative;
    background: none;
    border: none;
}

@media (max-width: 767px) {
    .hamburger {
        display: flex; /* Show only on mobile */
    }
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--color-foreground);
    border-radius: 2px;
    transition: var(--transition);
    transform-origin: center;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--color-white);
    z-index: 40;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

@media (max-width: 767px) {
    .mobile-menu {
        display: flex;
    }
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-items {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    width: 100%;
}

.mobile-menu-items > li {
    display: flex;
    justify-content: center;
    align-items: center;
}

.mobile-menu-items a {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-foreground);
    position: relative;
    padding-left: 0;
    transition: var(--transition);
    text-align: center;
}

/* Remove ::before indicator from mobile menu - doesn't work well when centered */
.mobile-menu-items a::before {
    display: none;
}

.mobile-menu-items a:hover {
    color: var(--color-primary);
}

/* Mobile menu list items */
.mobile-menu-items,
.mobile-menu-items > li {
    list-style: none;
    width: 100%;
}

.mobile-menu-items ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Active page state in mobile menu - target li elements */
.mobile-menu-items li.current-menu-item > a,
.mobile-menu-items li.current_page_item > a,
.mobile-menu-items li.current-menu-ancestor > a {
    color: var(--color-primary);
    font-weight: 700;
    position: relative;
    padding-bottom: 0.25rem;
}

/* Green underline for active menu item on mobile */
.mobile-menu-items li.current-menu-item > a::after,
.mobile-menu-items li.current_page_item > a::after,
.mobile-menu-items li.current-menu-ancestor > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 2px;
    background-color: var(--color-primary);
}

/* Mobile Submenu Styles */
.mobile-menu-items .menu-item-has-children {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Container for link and toggle button - keep them tight together */
.mobile-menu-items .menu-item-has-children > .menu-item-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 0;
}

/* Remove ALL padding from links inside wrapper */
.mobile-menu-items .menu-item-has-children .menu-item-wrapper > a {
    padding-left: 0;
    padding-right: 0;
}

/* Remove the ::before indicator from submenu parent links */
.mobile-menu-items .menu-item-has-children .menu-item-wrapper > a::before {
    display: none;
}

.mobile-menu-items .submenu-toggle {
    background: none;
    border: none;
    color: var(--color-primary);
    cursor: pointer;
    padding: 0.5rem 0.75rem;
    font-size: 1.25rem;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-items .submenu-open .submenu-toggle {
    transform: rotate(180deg);
}

.mobile-menu-items .sub-menu {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
    padding-left: 0;
    width: 100%;
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: transparent;
    box-shadow: none;
    padding: 0;
}

.mobile-menu-items .submenu-open .sub-menu {
    display: flex;
}

.mobile-menu-items .sub-menu li {
    list-style: none;
    width: 100%;
    text-align: center;
}

.mobile-menu-items .sub-menu a {
    font-size: 1.25rem;
    opacity: 0.85;
}

/* Active submenu item */
.mobile-menu-items .sub-menu li.current-menu-item > a,
.mobile-menu-items .sub-menu li.current_page_item > a {
    color: var(--color-primary);
    opacity: 1;
    font-weight: 700;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 2rem;
    margin-top: -70px;
}

@media (max-width: 767px) {
    .hero-section {
        margin-top: -60px;
    }
}

.hero-background {
    position: absolute;
    inset: 0;
    z-index: -1;
}

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

.hero-background::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, hsla(150, 10%, 15%, 0.8), hsla(150, 10%, 15%, 0.5), transparent);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 42rem;
    color: var(--color-white);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: hsla(142, 52%, 36%, 0.2);
    backdrop-filter: blur(4px);
    border: 1px solid hsla(142, 52%, 36%, 0.3);
    border-radius: 50px;
    padding: 0.5rem 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.hero-badge svg {
    width: 1rem;
    height: 1rem;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 3.75rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-content h1 span {
    display: block;
    color: var(--color-primary-light);
}

.hero-content .hero-text {
    font-size: 1.125rem;
    line-height: 1.7;
    opacity: 0.9;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .hero-content .hero-text {
        font-size: 1.25rem;
    }
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 3rem;
}

@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
    }
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding-top: 2rem;
    border-top: 1px solid hsla(0, 0%, 100%, 0.2);
}

.hero-stat {
    text-align: left;
}

.hero-stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.875rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.hero-stat-label {
    font-size: 0.875rem;
    opacity: 0.7;
}

.hero-stat-divider {
    width: 1px;
    height: 3rem;
    background-color: hsla(0, 0%, 100%, 0.2);
}

/* ==========================================================================
   SECTION COMMON
   ========================================================================== */

.section-header {
    text-align: center;
    max-width: 42rem;
    margin: 0 auto 4rem;
}

.section-header h2 {
    font-size: clamp(1.875rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--color-foreground);
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.125rem;
    color: var(--color-muted-foreground);
    line-height: 1.7;
}

/* ==========================================================================
   FEATURES SECTION
   ========================================================================== */

.features-section {
    background-color: var(--color-muted);
}

.features-grid {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.feature-card {
    background-color: var(--color-card);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-card);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
}

.feature-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: var(--radius-lg);
    background-color: hsla(142, 52%, 36%, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    background-color: hsla(142, 52%, 36%, 0.2);
}

.feature-icon svg {
    width: 1.75rem;
    height: 1.75rem;
    color: var(--color-primary);
}

.feature-card h3 {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.feature-card p {
    font-size: 0.9375rem;
    color: var(--color-muted-foreground);
    line-height: 1.6;
}

/* ==========================================================================
   MODELS SECTION
   ========================================================================== */

.models-section {
    background-color: var(--color-background);
}

.models-grid {
    display: grid;
    gap: 2rem;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .models-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .models-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.model-card {
    background-color: var(--color-card);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: var(--transition);
}

.model-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-card-hover);
}

.model-image {
    position: relative;
    height: 14rem;
    overflow: hidden;
}

.model-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.model-card:hover .model-image img {
    transform: scale(1.05);
}

.model-price {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
}

.model-content {
    padding: 1.5rem;
}

.model-content h2 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-foreground);
    margin-bottom: 0.5rem;
}

.model-content > p {
    font-size: 0.9375rem;
    color: var(--color-muted-foreground);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.model-specs {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.model-spec {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--color-muted-foreground);
}

.model-spec svg {
    width: 1rem;
    height: 1rem;
    color: var(--color-primary);
}

.model-card .btn {
    width: 100%;
}

.models-cta {
    text-align: center;
}

/* ==========================================================================
   ABOUT SECTION
   ========================================================================== */

.about-section {
    background-color: var(--color-muted);
    padding: 0;
}

.about-wrapper {
    display: grid;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .about-wrapper {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }
}

.about-image-wrapper {
    position: relative;
}

.about-image {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-card-hover);
}

.about-image img {
    width: 100%;
    height: 25rem;
    object-fit: cover;
}

@media (min-width: 1024px) {
    .about-image img {
        height: 31.25rem;
    }
}

.about-badge {
    position: absolute;
    bottom: -1.5rem;
    right: -1.5rem;
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    display: none;
}

@media (min-width: 768px) {
    .about-badge {
        display: block;
    }
}

.about-badge span:first-child {
    display: block;
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
}

.about-badge span:last-child {
    font-size: 0.875rem;
    opacity: 0.9;
}

.about-content {
    padding: 4rem 1rem;
}

@media (min-width: 1024px) {
    .about-content {
        padding: 4rem 0;
        padding-right: 2rem;
    }
}

.about-content h2 {
    font-size: clamp(1.875rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--color-foreground);
    margin-bottom: 1.5rem;
}

.about-content > p {
    font-size: 1.125rem;
    color: var(--color-muted-foreground);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.about-list {
    margin-top: 2rem;
}

.about-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: var(--color-foreground);
}

.about-list li .check-icon {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background-color: hsla(142, 52%, 36%, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.about-list li .check-icon svg {
    width: 1rem;
    height: 1rem;
    color: var(--color-primary);
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */

.contact-section {
    background-color: var(--color-background);
}

.contact-wrapper {
    display: grid;
    gap: 3rem;
}

@media (min-width: 1024px) {
    .contact-wrapper {
        grid-template-columns: 1fr 1fr;
    }
}

.contact-info-bar {
    background-color: var(--color-primary);
    color: var(--color-white);
    border-radius: var(--radius-xl);
    padding: 2rem;
}

.contact-info-bar h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.contact-info-bar > p {
    opacity: 0.9;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.contact-info-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-info-item .icon-wrapper {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--radius);
    background-color: hsla(0, 0%, 100%, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-info-item svg {
    width: 1.25rem;
    height: 1.25rem;
}

.contact-info-item .info-text span:first-child {
    display: block;
    font-size: 0.875rem;
    opacity: 0.7;
}

.contact-info-item .info-text span:last-child {
    font-weight: 500;
}

.contact-form-wrapper {
    background-color: var(--color-card);
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-card);
}

.contact-form-wrapper h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-foreground);
    margin-bottom: 1.5rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-row {
    display: grid;
    gap: 1.25rem;
}

@media (min-width: 640px) {
    .form-row {
        grid-template-columns: 1fr 1fr;
    }
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 0.9375rem;
    transition: var(--transition);
    background-color: var(--color-background);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--color-muted-foreground);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px hsla(142, 52%, 36%, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 8rem;
}

.contact-form .btn {
    width: 100%;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
    background-color: var(--color-foreground);
    color: var(--color-white);
    padding: 3rem 0;
}

.footer-grid {
    display: grid;
    gap: 2rem;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr 1fr;
    }
}

.footer-column h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #ffffff;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.footer-logo .logo-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--radius);
    background-color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
}

.footer-logo .logo-text {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
}

.footer-logo .logo-text span {
    color: var(--color-primary-light);
}

.footer-column p {
    font-size: 0.9375rem;
    color: hsla(0, 0%, 100%, 0.7);
    line-height: 1.7;
}

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

.footer-links a {
    font-size: 0.9375rem;
    color: var(--color-primary);
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--color-primary-light);
    text-decoration: underline;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-size: 0.9375rem;
    color: var(--color-primary);
}

.footer-contact-item a,
.footer-contact-item .address-link {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact-item a:hover,
.footer-contact-item .address-link:hover {
    color: var(--color-primary-light);
    text-decoration: underline;
}

.footer-contact-item svg {
    width: 1rem;
    height: 1rem;
    color: var(--color-primary-light);
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.footer-divider {
    display: block;
    width: 100%;
    height: 1px;
    background-color: hsla(0, 0%, 100%, 0.1);
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-top: 2rem;
    text-align: center;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        text-align: left;
    }
}

.footer-bottom p {
    font-size: 0.875rem;
    color: hsla(0, 0%, 100%, 0.5);
}

.footer-legal {
    display: flex;
    gap: 1.5rem;
}

.footer-legal a {
    font-size: 0.875rem;
    color: hsla(0, 0%, 100%, 0.5);
}

.footer-legal a:hover {
    color: var(--color-primary-light);
}

/* ============================================
   LEGAL PAGES (AGB & DATENSCHUTZ)
   ============================================ */

.legal-section {
    background: #f8f9fa;
    padding: 80px 0;
}

.legal-content {
    max-width: 860px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 16px;
    padding: 60px 72px;
    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.07);
}

.legal-content h2 {
    font-size: 2rem;
    color: var(--color-primary);
    font-weight: 800;
    margin: 0 0 40px 0;
    padding-bottom: 24px;
    border-bottom: 3px solid var(--color-primary);
}

.legal-content h3 {
    font-size: 1.25rem;
    color: var(--color-primary);
    font-weight: 700;
    margin: 48px 0 16px 0;
    padding: 14px 20px;
    background: #f0f7f3;
    border-left: 4px solid var(--color-primary);
    border-radius: 0 8px 8px 0;
}

.legal-content h3:first-of-type {
    margin-top: 0;
}

.legal-content h4 {
    font-size: 1.05rem;
    color: var(--color-text-primary);
    font-weight: 700;
    margin: 28px 0 10px 0;
}

.legal-content p {
    font-size: 1rem;
    color: #444444;
    line-height: 1.8;
    margin-bottom: 16px;
}

.legal-content ul,
.legal-content ol {
    margin: 16px 0 24px 0;
    padding-left: 0;
    list-style: none;
}

.legal-content ul li,
.legal-content ol li {
    position: relative;
    padding: 10px 16px 10px 44px;
    margin-bottom: 8px;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 1rem;
    color: #444444;
    line-height: 1.6;
}

.legal-content ul li::before {
    content: '';
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    background: var(--color-primary);
    border-radius: 50%;
}

.legal-content ol {
    counter-reset: legal-counter;
}

.legal-content ol li {
    counter-increment: legal-counter;
}

.legal-content ol li::before {
    content: counter(legal-counter);
    position: absolute;
    left: 14px;
    top: 10px;
    width: 20px;
    height: 20px;
    background: var(--color-primary);
    color: white;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.legal-content a {
    color: var(--color-primary);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.legal-content a:hover {
    color: var(--color-primary-dark);
}

.legal-content strong {
    color: var(--color-text-primary);
    font-weight: 700;
}

.legal-update {
    margin-top: 48px;
    padding: 20px 24px;
    background: #f0f7f3;
    border-radius: 10px;
    font-size: 0.9rem;
    color: #666;
    line-height: 1.8;
    border-left: 4px solid var(--color-primary);
}

.legal-update small {
    font-size: inherit;
}

@media (max-width: 768px) {
    .legal-section {
        padding: 40px 0;
    }

    .legal-content {
        padding: 32px 24px;
        border-radius: 12px;
    }

    .legal-content h2 {
        font-size: 1.5rem;
    }

    .legal-content h3 {
        font-size: 1.1rem;
        margin-top: 36px;
    }
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */

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

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

.animate-fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

.animate-slide-up {
    animation: slideUp 0.6s ease-out forwards;
}

/* ==========================================================================
   RESPONSIVE UTILITIES
   ========================================================================== */

.hidden-mobile {
    display: none;
}

@media (min-width: 768px) {
    .hidden-mobile {
        display: block;
    }
}

.hidden-desktop {
    display: block;
}

@media (min-width: 768px) {
    .hidden-desktop {
        display: none;
    }
}

/* Body scroll lock when menu is open */
body.menu-open {
    overflow: hidden;
}

/* Focus styles for accessibility */
*:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}

/* ==========================================================================
   GLOBAL HERO DEFAULTS - Apply automatically to all hero sections
   ========================================================================== */

/* All hero sections get default height */
.home-hero,
.gallery-hero,
.models-hero,
.contact-hero,
.mobilhaus-hero-new,
[class*="-hero"] {
    min-height: var(--hero-min-height);
}

/* All h1 inside hero content get default font size */
.hero-content h1,
.gallery-hero-content h1,
[class*="-hero"] h1 {
    font-size: var(--hero-title-size);
}

@media (max-width: 767px) {
    /* Mobile hero heights */
    .home-hero,
    .gallery-hero,
    .models-hero,
    .contact-hero,
    .mobilhaus-hero-new,
    [class*="-hero"] {
        min-height: var(--hero-min-height-mobile);
    }

    /* Mobile hero title sizes */
    .hero-content h1,
    .gallery-hero-content h1,
    [class*="-hero"] h1 {
        font-size: var(--hero-title-size-mobile);
    }
}

/* ==========================================================================
   GALLERY PAGE
   ========================================================================== */

.gallery-hero {
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.gallery-hero-background {
    position: absolute;
    inset: 0;
    z-index: -1;
}

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

.gallery-hero-background::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--color-background), hsla(150, 10%, 15%, 0.5), transparent);
}

.gallery-hero-content {
    text-align: center;
    color: var(--color-white);
    z-index: 1;
}

.gallery-hero-content h1 {
    font-size: var(--hero-title-size);
    font-weight: 700;
    margin-bottom: 1rem;
}

@media (max-width: 767px) {
    .gallery-hero-content h1 {
        font-size: var(--hero-title-size-mobile);
    }
}

.gallery-hero-content p {
    font-size: 1.125rem;
    opacity: 0.9;
    max-width: 32rem;
    margin: 0 auto;
    padding: 0 1rem;
}

.gallery-section {
    background-color: var(--color-background);
}

.gallery-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 3rem;
}

.gallery-filter-btn {
    padding: 0.625rem 1.5rem;
    border-radius: 50px;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.875rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    background-color: var(--color-secondary);
    color: var(--color-muted-foreground);
}

.gallery-filter-btn:hover {
    background-color: var(--color-muted);
}

.gallery-filter-btn.active {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.gallery-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(1, 1fr);
}

@media (min-width: 640px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1280px) {
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.gallery-item {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: var(--radius-xl);
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: linear-gradient(to top, hsla(150, 10%, 15%, 0.7), transparent);
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-item-overlay {
    opacity: 1;
}

.gallery-item-title {
    color: var(--color-white);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.gallery-item-category {
    color: hsla(0, 0%, 100%, 0.7);
    font-size: 0.75rem;
}

.gallery-item.hidden {
    display: none;
}

/* Lightbox */
.gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 100;
    background-color: hsla(150, 10%, 15%, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.gallery-lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--color-white);
    cursor: pointer;
    padding: 0.5rem;
    transition: var(--transition);
    z-index: 10;
}

.lightbox-close:hover {
    color: var(--color-primary);
}

.lightbox-close svg {
    width: 2rem;
    height: 2rem;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--color-white);
    cursor: pointer;
    padding: 0.5rem;
    transition: var(--transition);
    z-index: 10;
}

.lightbox-nav:hover {
    color: var(--color-primary);
}

.lightbox-nav svg {
    width: 2.5rem;
    height: 2.5rem;
}

.lightbox-prev {
    left: 1rem;
}

.lightbox-next {
    right: 1rem;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 85vh;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
}

.lightbox-caption {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--color-white);
}

.lightbox-caption p {
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.lightbox-caption span {
    font-size: 0.875rem;
    opacity: 0.7;
}

/* ==========================================================================
   MODEL DETAIL PAGE
   ========================================================================== */

.model-hero {
    position: relative;
    height: 50vh;
    min-height: 400px;
    display: flex;
    align-items: flex-end;
    padding-top: 5rem;
    overflow: hidden;
}

@media (min-width: 768px) {
    .model-hero {
        height: 60vh;
    }
}

.model-hero-background {
    position: absolute;
    inset: 0;
    z-index: -1;
}

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

.model-hero-background::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, hsla(150, 10%, 15%, 0.9), hsla(150, 10%, 15%, 0.4), transparent);
}

.model-hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
    padding-bottom: 3rem;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: hsla(0, 0%, 100%, 0.8);
    font-size: 0.875rem;
    margin-bottom: 1rem;
    transition: var(--transition);
}

.back-link:hover {
    color: var(--color-white);
}

.back-link svg {
    width: 1rem;
    height: 1rem;
}

.model-hero-content h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 0.5rem;
}

.model-hero-description {
    font-size: 1.25rem;
    color: hsla(0, 0%, 100%, 0.8);
}

.model-details {
    background-color: var(--color-background);
}

.model-details-grid {
    display: grid;
    gap: 3rem;
}

@media (min-width: 1024px) {
    .model-details-grid {
        grid-template-columns: 2fr 1fr;
    }
}

.model-main-content {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.model-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-foreground);
    margin-bottom: 1rem;
}

.model-description {
    font-size: 1.125rem;
    color: var(--color-muted-foreground);
    line-height: 1.7;
}

.model-quick-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.quick-stat {
    background-color: var(--color-secondary);
    border-radius: var(--radius-xl);
    padding: 1.25rem;
    text-align: center;
}

.quick-stat svg {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--color-primary);
    margin: 0 auto 0.5rem;
}

.quick-stat-value {
    font-weight: 700;
    color: var(--color-foreground);
    margin-bottom: 0.25rem;
}

.quick-stat-label {
    font-size: 0.875rem;
    color: var(--color-muted-foreground);
}

.model-features-grid {
    display: grid;
    gap: 0.75rem;
}

@media (min-width: 768px) {
    .model-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.model-feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.model-feature-item .check-icon {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background-color: hsla(142, 52%, 36%, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.model-feature-item .check-icon svg {
    width: 1rem;
    height: 1rem;
    color: var(--color-primary);
}

.model-feature-item span {
    color: var(--color-muted-foreground);
}

.model-specs-table {
    background-color: var(--color-secondary);
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.spec-row {
    display: flex;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--color-border);
}

.spec-row:last-child {
    border-bottom: none;
}

.spec-label {
    color: var(--color-muted-foreground);
}

.spec-value {
    font-weight: 500;
    color: var(--color-foreground);
}

/* Model Sidebar */
.model-sidebar-card {
    background-color: var(--color-card);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    box-shadow: var(--shadow-card);
    position: sticky;
    top: 6rem;
}

.model-price-large {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.price-note {
    color: var(--color-muted-foreground);
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

.sidebar-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.sidebar-contact {
    border-top: 1px solid var(--color-border);
    padding-top: 1.5rem;
}

.sidebar-contact h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-foreground);
    margin-bottom: 1rem;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--color-muted-foreground);
    font-size: 0.9375rem;
    margin-bottom: 0.75rem;
    transition: var(--transition);
}

.contact-link:hover {
    color: var(--color-primary);
}

.contact-link svg {
    width: 1.25rem;
    height: 1.25rem;
}

/* Other Models Section */
.other-models-section {
    background-color: var(--color-secondary);
}

.other-models-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-foreground);
    margin-bottom: 2rem;
}

.other-models-grid {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .other-models-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.other-model-card {
    display: flex;
    background-color: var(--color-card);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: var(--transition);
}

.other-model-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
}

.other-model-image {
    width: 33.333%;
    height: 8rem;
    overflow: hidden;
}

.other-model-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.other-model-card:hover .other-model-image img {
    transform: scale(1.05);
}

.other-model-content {
    flex: 1;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.other-model-content h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-foreground);
    margin-bottom: 0.25rem;
}

.other-model-specs {
    font-size: 0.875rem;
    color: var(--color-muted-foreground);
    margin-bottom: 0.5rem;
}

.other-model-price {
    font-weight: 600;
    color: var(--color-primary);
}

/* ==========================================================================
   NOTIFICATIONS
   ========================================================================== */

.notification {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    max-width: 400px;
    padding: 1rem 1.5rem;
    background-color: var(--color-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 1000;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
}

.notification.show {
    transform: translateY(0);
    opacity: 1;
}

.notification-success {
    border-left: 4px solid var(--color-primary);
}

.notification-error {
    border-left: 4px solid #ef4444;
}

.notification span {
    flex: 1;
    font-size: 0.9375rem;
    line-height: 1.5;
}

.notification-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--color-muted-foreground);
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.notification-close:hover {
    color: var(--color-foreground);
}

/* ==========================================================================
   IMAGE MODAL
   ========================================================================== */

.image-modal {
    position: fixed;
    inset: 0;
    background-color: hsla(0, 0%, 0%, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 2rem;
}

.image-modal.active {
    opacity: 1;
    visibility: visible;
}

.image-modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
}

.image-modal-content img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: var(--radius);
}

.image-modal-close {
    position: absolute;
    top: -2.5rem;
    right: 0;
    background: none;
    border: none;
    color: var(--color-white);
    font-size: 2rem;
    cursor: pointer;
    transition: var(--transition);
}

.image-modal-close:hover {
    color: var(--color-primary);
}

.image-modal-title {
    text-align: center;
    color: var(--color-white);
    margin-top: 1rem;
    font-size: 1rem;
}

/* ==========================================================================
   SMALLER HERO FOR SUBPAGES
   ========================================================================== */

.hero-small {
    min-height: 50vh;
}

.hero-small .hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-small .hero-content h1 {
    font-size: 2.5rem;
}

@media (min-width: 768px) {
    .hero-small .hero-content h1 {
        font-size: 3.5rem;
    }
}

/* ==========================================================================
   BODY SCROLL LOCK
   ========================================================================== */

body.menu-open {
    overflow: hidden;
}

/* ==========================================================================
   WORDPRESS ADMIN BAR STYLING
   ========================================================================== */

#wpadminbar {
    background: var(--color-primary-solid) !important;
}

#wpadminbar .ab-item,
#wpadminbar a.ab-item,
#wpadminbar > #wp-toolbar span.ab-label,
#wpadminbar > #wp-toolbar span.noticon {
    color: rgba(255, 255, 255, 0.95) !important;
}

#wpadminbar .ab-top-menu > li.hover > .ab-item,
#wpadminbar.nojq .quicklinks .ab-top-menu > li > .ab-item:focus,
#wpadminbar:not(.mobile) .ab-top-menu > li:hover > .ab-item,
#wpadminbar:not(.mobile) .ab-top-menu > li > .ab-item:focus {
    background: var(--color-primary-dark) !important;
    color: #fff !important;
}

#wpadminbar .ab-submenu {
    background: var(--color-primary-dark) !important;
}

#wpadminbar .ab-submenu .ab-item {
    color: rgba(255, 255, 255, 0.9) !important;
}

#wpadminbar .ab-submenu .ab-item:hover {
    background: rgba(0, 0, 0, 0.2) !important;
    color: #fff !important;
}

#wpadminbar #wp-admin-bar-site-name > .ab-item:before,
#wpadminbar #wp-admin-bar-my-sites > .ab-item:before {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* ==========================================================================
   WORDPRESS LOGIN PAGE STYLING
   ========================================================================== */

body.login {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.login h1 a {
    background-image: none !important;
    background-color: var(--color-primary);
    width: 84px;
    height: 84px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    font-weight: 800;
    text-decoration: none;
}

.login h1 a::before {
    content: "W";
}

.login form {
    background: #ffffff;
    border: none;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    padding: 32px;
}

.login label {
    color: #333;
    font-weight: 600;
}

.login input[type="text"],
.login input[type="password"] {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.login input[type="text"]:focus,
.login input[type="password"]:focus {
    border-color: var(--color-primary-solid);
    outline: none;
    box-shadow: 0 0 0 3px rgba(44, 140, 79, 0.1);
}

.login .button-primary {
    background: var(--color-primary-solid) !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 12px 24px !important;
    font-weight: 600 !important;
    text-shadow: none !important;
    box-shadow: 0 2px 8px rgba(44, 140, 79, 0.2) !important;
    transition: all 0.3s ease !important;
}

.login .button-primary:hover,
.login .button-primary:focus {
    background: rgba(31, 104, 56, 0.9) !important;
    box-shadow: 0 4px 16px rgba(44, 140, 79, 0.3) !important;
    transform: translateY(-2px);
}

.login #backtoblog a,
.login #nav a {
    color: var(--color-primary-solid) !important;
    text-decoration: none;
    transition: all 0.3s ease;
}

.login #backtoblog a:hover,
.login #nav a:hover {
    color: rgba(31, 104, 56, 0.9) !important;
}

.login .message,
.login .success {
    border-left: 4px solid var(--color-primary-solid);
    background: rgba(44, 140, 79, 0.05);
}

/* ==========================================================================
   PRINT STYLES
   ========================================================================== */

@media print {
    .site-navigation,
    .mobile-menu,
    .hamburger,
    .notification,
    .image-modal,
    .gallery-lightbox,
    #wpadminbar {
        display: none !important;
    }

    body {
        padding-top: 0;
    }

    .hero-section {
        margin-top: 0;
        min-height: auto;
        padding: 2rem 0;
    }
}
