/* ===================================
   petershaus - Modern CSS
   Mobile-First Responsive Design
   =================================== */

/* === CSS Variables === */
:root {
    /* Colors - Minimalistisch & Elegant */
    --color-primary: #1a1a1a;
    --color-primary-dark: #000000;
    --color-primary-light: #333333;
    --color-secondary: #8B7355;
    --color-accent: #C4A77D;
    --color-dark: #0a0a0a;
    --color-text: #2a2a2a;
    --color-text-light: #666666;
    --color-bg: #FFFFFF;
    --color-bg-light: #FAFAFA;
    --color-bg-dark: #F5F5F5;
    --color-border: #E5E5E5;
    
    /* Typography - Premium */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
    --spacing-xxl: 6rem;
    
    /* Transitions */
    --transition: all 0.3s ease;
    --transition-slow: all 0.5s ease;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.15);
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    /* Layout */
    --container-width: 1200px;
    --header-height: 80px;
}

/* === Reset & Base === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Subtle texture overlay - Optional (deaktiviert für bessere Performance) */
/*
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 0, 0, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.3;
}
*/

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

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

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

ul {
    list-style: none;
}

/* === Container === */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* === Typography === */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-dark);
    margin-bottom: var(--spacing-sm);
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: var(--spacing-sm);
    color: var(--color-text-light);
}

/* === Buttons === */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: 2px solid transparent;
    letter-spacing: 0.3px;
}

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

.btn-primary:hover {
    background-color: var(--color-secondary);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

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

.btn-secondary:hover {
    background-color: transparent;
    color: white;
    border-color: white;
}

.btn-outline {
    background-color: transparent;
    color: var(--color-dark);
    border-color: var(--color-dark);
}

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

.btn-large {
    padding: 1.25rem 2.5rem;
    font-size: 1.125rem;
}

/* === Preheader (Top Bar) === */
.preheader {
    background-color: var(--color-dark);
    color: white;
    font-size: 0.875rem;
    padding: 0.625rem 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1001;
    transition: var(--transition);
}

.preheader-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.preheader-left,
.preheader-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.preheader-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.preheader-item i {
    color: var(--color-accent);
    font-size: 0.875rem;
}

.preheader-item a {
    color: rgba(255, 255, 255, 0.9);
    transition: var(--transition);
}

.preheader-item a:hover {
    color: var(--color-accent);
}

.preheader-divider {
    color: rgba(255, 255, 255, 0.3);
    margin: 0 0.25rem;
}

/* Preheader hides on scroll */
.preheader.hidden {
    transform: translateY(-100%);
}

/* Adjust navbar position when preheader is visible */
.navbar {
    position: fixed;
    top: 42px; /* Preheader height */
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 1000;
    transition: var(--transition);
}

.navbar.no-preheader {
    top: 0;
}

/* === Navigation === */

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
}

.logo {
    display: flex;
    flex-direction: column;
    font-weight: 700;
    color: var(--color-dark);
}

.logo-text {
    font-size: 1.5rem;
    color: var(--color-dark);
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.01em;
}

.logo-subtitle {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--color-text-light);
    font-family: var(--font-primary);
    margin-top: -4px;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    width: 30px;
    height: 24px;
    justify-content: space-between;
    cursor: pointer;
    z-index: 1001;
}

.mobile-toggle span {
    width: 100%;
    height: 3px;
    background-color: var(--color-dark);
    border-radius: 2px;
    transition: var(--transition);
}

.mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.nav-item {
    position: relative;
}

.nav-link {
    padding: 0.5rem 0;
    color: var(--color-text);
    font-weight: 500;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-link:hover {
    color: var(--color-secondary);
}

.nav-link i {
    font-size: 0.75rem;
}

.nav-cta {
    background-color: var(--color-dark);
    color: white;
    padding: 0.625rem 1.5rem;
    border-radius: var(--radius-sm);
}

.nav-cta:hover {
    background-color: var(--color-secondary);
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-sm);
    padding: var(--spacing-sm);
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    margin-top: 0.5rem;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    margin-bottom: 0.5rem;
}

.dropdown-menu li:last-child {
    margin-bottom: 0;
}

.dropdown-menu a {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--color-text);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.dropdown-menu a:hover {
    background-color: var(--color-bg-light);
    color: var(--color-secondary);
}

/* === Hero Section === */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    overflow: hidden;
    margin-top: calc(var(--header-height) + 42px); /* Header + Preheader */
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.65) 40%, rgba(0, 0, 0, 0.4) 70%, rgba(0, 0, 0, 0.2) 100%);
    z-index: 1;
}

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

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 700px;
    color: white;
}

.hero-label {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.hero-title {
    color: white;
    font-size: clamp(3rem, 7vw, 6.5rem);
    line-height: 1.05;
    margin-bottom: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    animation: fadeInUp 0.8s ease 0.1s both;
    text-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
}

.hero-text {
    font-size: 1.125rem;
    line-height: 1.7;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.98);
    max-width: 600px;
    animation: fadeInUp 0.8s ease 0.2s both;
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.7);
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.25), transparent);
    padding: 1rem;
    border-radius: 8px;
    backdrop-filter: blur(3px);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.3s both;
}

.btn-outline-white {
    background-color: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

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

/* === Story Section === */
.story-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 600px;
    background-color: var(--color-bg);
}

.story-image {
    position: relative;
    overflow: hidden;
    background-color: var(--color-bg-dark);
}

.story-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, transparent 60%, var(--color-bg-light) 100%);
    z-index: 1;
}

.story-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.story-section:hover .story-image img {
    transform: scale(1.05);
}

.story-content {
    display: flex;
    align-items: center;
    padding: var(--spacing-xxl);
    background-color: var(--color-bg-light);
}

.story-inner {
    max-width: 550px;
}

.story-label {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-secondary);
    margin-bottom: 1.5rem;
}

.story-content h2 {
    font-size: clamp(2rem, 3.5vw, 3rem);
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.story-content p {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--color-text-light);
    margin-bottom: var(--spacing-lg);
}

.story-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat-item strong {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-dark);
    line-height: 1;
    letter-spacing: -0.02em;
}

.stat-item span {
    font-size: 0.875rem;
    color: var(--color-text-light);
    line-height: 1.4;
}

/* === Section Header === */
.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--spacing-xl);
}

.section-header h2 {
    margin-bottom: var(--spacing-sm);
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700;
    letter-spacing: -0.03em;
}

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

/* === Benefits Section === */
.benefits {
    padding: var(--spacing-xxl) 0;
    background-color: var(--color-bg-light);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.benefit-card {
    background-color: white;
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.benefit-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 0, 0, 0.15);
}

.benefit-icon {
    width: 80px;
    height: 80px;
    background: var(--color-dark);
    color: white;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto var(--spacing-md);
    transition: var(--transition);
}

.benefit-card:hover .benefit-icon {
    background: var(--color-secondary);
    transform: translateY(-5px) scale(1.05);
}

.benefit-card h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
}

.benefit-card p {
    font-size: 1rem;
    line-height: 1.8;
}

/* === House Types Section === */
.house-types {
    padding: var(--spacing-xxl) 0;
}

.house-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-lg);
}

.house-card {
    background-color: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.house-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transform: translateY(-8px);
    border-color: rgba(0, 0, 0, 0.15);
}

.house-image {
    position: relative;
    height: 280px;
    overflow: hidden;
}

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

.house-card:hover .house-image img {
    transform: scale(1.1);
}

.house-content {
    padding: var(--spacing-md);
}

.house-content h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
    color: var(--color-dark);
}

.house-content p {
    margin-bottom: var(--spacing-md);
    line-height: 1.8;
}

/* === Features Section === */
.features {
    padding: var(--spacing-xxl) 0;
    background-color: var(--color-bg-light);
}

.features-container {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xxl);
}

.feature-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.feature-item.reverse {
    direction: rtl;
}

.feature-item.reverse > * {
    direction: ltr;
}

.feature-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

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

.feature-item:hover .feature-image img {
    transform: scale(1.05);
}

.feature-content {
    padding: var(--spacing-md);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--color-dark);
    color: white;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: var(--spacing-md);
}

.feature-content h3 {
    font-size: 2rem;
    margin-bottom: var(--spacing-md);
}

.feature-content p {
    font-size: 1.0625rem;
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
}

.feature-list {
    list-style: none;
    margin-top: var(--spacing-md);
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: 0.5rem 0;
    font-size: 1rem;
    color: var(--color-text);
}

.feature-list i {
    color: var(--color-secondary);
    font-size: 1.25rem;
    flex-shrink: 0;
}

/* === Team Section === */
.team {
    padding: var(--spacing-xxl) 0;
    background-color: white;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
}

.team-member {
    background-color: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.team-member:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 0, 0, 0.15);
}

.member-image {
    height: 300px;
    overflow: hidden;
}

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

.team-member:hover .member-image img {
    transform: scale(1.1);
}

.member-info {
    padding: var(--spacing-md);
}

.member-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
    color: var(--color-dark);
}

.member-role {
    color: var(--color-secondary);
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    font-size: 0.9375rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.member-description {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--color-text-light);
}

/* === CTA Section === */
.cta-section {
    position: relative;
    padding: var(--spacing-xxl) 0;
    overflow: hidden;
}

.cta-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

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

.cta-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.7) 100%);
    z-index: 1;
}

.cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    color: white;
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: var(--spacing-md);
}

.cta-content p {
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
    color: rgba(255, 255, 255, 0.95);
}

.cta-highlight {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--spacing-lg);
    color: white;
}

/* === Contact Section === */
.contact {
    padding: var(--spacing-xxl) 0;
    background-color: var(--color-bg-light);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    background-color: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.contact-info {
    padding: var(--spacing-xl);
    background: var(--color-dark);
    color: white;
}

.contact-info h2 {
    color: white;
    margin-bottom: var(--spacing-md);
}

.contact-intro {
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: var(--spacing-lg);
    line-height: 1.8;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.contact-item {
    display: flex;
    gap: var(--spacing-md);
    align-items: flex-start;
}

.contact-item i {
    font-size: 1.5rem;
    margin-top: 0.25rem;
    color: var(--color-accent);
}

.contact-item h4 {
    color: white;
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
}

.contact-item p,
.contact-item a {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
}

.contact-item a:hover {
    color: white;
    text-decoration: underline;
}

.contact-form-wrapper {
    padding: var(--spacing-xl);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

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

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--color-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.875rem;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
}

.form-group textarea {
    resize: vertical;
}

.checkbox-group label {
    flex-direction: row;
    align-items: flex-start;
    gap: 0.5rem;
    font-weight: 400;
}

.checkbox-group input[type="checkbox"] {
    margin-top: 0.25rem;
    width: auto;
}

/* === Footer === */
.footer {
    background-color: var(--color-dark);
    color: white;
    padding: var(--spacing-xxl) 0 var(--spacing-md);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.footer-col h4 {
    color: white;
    font-size: 1.25rem;
    margin-bottom: var(--spacing-md);
}

.footer-tagline {
    font-size: 0.875rem;
    color: var(--color-accent);
    font-style: italic;
    margin-bottom: var(--spacing-sm);
}

.footer-col p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--spacing-md);
}

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

.footer-col a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

.footer-col a:hover {
    color: white;
    padding-left: 0.5rem;
}

.social-links {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--color-primary);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--spacing-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.footer-legal {
    display: flex;
    gap: var(--spacing-md);
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9375rem;
}

.footer-legal a:hover {
    color: white;
}

.copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9375rem;
}

/* === Back to Top Button === */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background-color: var(--color-dark);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--color-secondary);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

/* === Animations === */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Page load animation */
body {
    animation: fadeIn 0.5s ease;
}

@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(10px);
    }
}

/* === Responsive Design === */

/* Tablet */
@media (max-width: 1024px) {
    :root {
        --spacing-xl: 3rem;
        --spacing-xxl: 4rem;
    }
    
    .story-section {
        grid-template-columns: 1fr;
    }
    
    .story-image {
        min-height: 400px;
    }
    
    .story-content {
        padding: var(--spacing-xl) var(--spacing-md);
    }
    
    .feature-item {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .feature-item.reverse {
        direction: ltr;
    }
    
    .feature-image {
        order: -1;
    }
}

/* Mobile */
@media (max-width: 768px) {
    :root {
        --spacing-md: 1.5rem;
        --spacing-lg: 2rem;
        --spacing-xl: 2.5rem;
        --spacing-xxl: 3rem;
        --header-height: 70px;
    }
    
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    /* Preheader Mobile */
    .preheader {
        font-size: 0.8125rem;
        padding: 0.5rem 0;
    }
    
    .preheader-content {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .preheader-left,
    .preheader-right {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .preheader-divider {
        display: none;
    }
    
    .navbar {
        top: 80px; /* Adjusted for mobile preheader */
    }
    
    .navbar.no-preheader {
        top: 0;
    }
    
    .hero {
        margin-top: calc(var(--header-height) + 80px);
    }
    
    /* Navigation Mobile */
    .mobile-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background-color: white;
        flex-direction: column;
        align-items: stretch;
        padding: var(--spacing-md);
        gap: 0;
        transform: translateX(-100%);
        transition: var(--transition);
        overflow-y: auto;
    }
    
    .nav-menu.active {
        transform: translateX(0);
    }
    
    .nav-item {
        border-bottom: 1px solid var(--color-border);
    }
    
    .nav-link {
        padding: var(--spacing-sm) 0;
        width: 100%;
        justify-content: space-between;
    }
    
    .dropdown-menu {
        position: static;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        padding-left: var(--spacing-md);
        background-color: var(--color-bg-light);
        margin-top: 0.5rem;
        border-radius: var(--radius-sm);
    }
    
    .dropdown.active .dropdown-menu {
        display: block;
    }
    
    .nav-cta {
        margin-top: var(--spacing-sm);
        text-align: center;
    }
    
    /* Hero Mobile */
    .hero {
        min-height: 500px;
        height: auto;
        padding: var(--spacing-xxl) 0;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    /* Grids Mobile */
    .benefits-grid,
    .house-grid,
    .team-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    /* Story Mobile */
    .story-stats {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .stat-item strong {
        font-size: 2rem;
    }
    
    /* Contact Mobile */
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .contact-info,
    .contact-form-wrapper {
        padding: var(--spacing-md);
    }
    
    /* Footer Mobile */
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-legal {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    /* Buttons Mobile */
    .btn {
        padding: 0.875rem 1.5rem;
    }
    
    .btn-large {
        padding: 1rem 2rem;
    }
    
    .back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 45px;
        height: 45px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    :root {
        font-size: 14px;
    }
    
    .logo-text {
        font-size: 1.25rem;
    }
    
    .feature-image img {
        min-height: 250px;
    }
}

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