/**
 * Bevacqua Immobilien - Frontend Styles
 * @version 2.0
 */

:root {
    --primary-dark: #3d4a47;
    --primary-darker: #2d3835;
    --cream: #f5f4f0;
    --cream-light: #fafaf8;
    --pastel-sage: #e8ebe9;
    --pastel-mint: #dce5e1;
    --pastel-warm: #f0ebe5;
    --accent-gold: #c9b896;
    --text-dark: #2d3835;
    --text-muted: #6b7572;
    --white: #ffffff;
    --header-height: 80px;
    --header-height-mobile: 70px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    font-family: 'Nunito Sans', sans-serif;
    background-color: var(--cream);
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden;
}

/* ==================== HEADER ==================== */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(250, 250, 248, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(61, 74, 71, 0.08);
    transition: all 0.3s ease;
    height: var(--header-height);
}

header.scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
    height: calc(var(--header-height) - 10px);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    z-index: 1001;
}

.logo-icon {
    width: 45px;
    height: 36px;
    transition: transform 0.3s ease;
}

.logo:hover .logo-icon {
    transform: scale(1.05);
}

.logo-text-group {
    display: flex;
    flex-direction: column;
}

.logo-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    color: var(--primary-dark);
    line-height: 1.2;
}

.logo-subtitle {
    font-size: 0.6rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 500;
}

/* Desktop Navigation */
nav {
    display: flex;
    gap: 2.5rem;
}

nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    position: relative;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary-dark);
    transition: width 0.3s ease;
}

nav a:hover,
nav a.active {
    color: var(--primary-dark);
}

nav a:hover::after,
nav a.active::after {
    width: 100%;
}

.header-contact {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.header-contact svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
    padding: 10px;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--primary-dark);
    transition: all 0.3s ease;
    position: relative;
}

.hamburger span::before,
.hamburger span::after {
    content: '';
    position: absolute;
    left: 0;
    width: 24px;
    height: 2px;
    background: var(--primary-dark);
    transition: all 0.3s ease;
}

.hamburger span::before { top: -8px; }
.hamburger span::after { top: 8px; }

.hamburger.active span { background: transparent; }
.hamburger.active span::before { top: 0; transform: rotate(45deg); }
.hamburger.active span::after { top: 0; transform: rotate(-45deg); }

/* Mobile Navigation */
.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--cream-light);
    z-index: 999;
    padding-top: var(--header-height-mobile);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

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

.mobile-nav-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 0;
}

.mobile-nav a {
    text-decoration: none;
    color: var(--primary-dark);
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    padding: 1rem 2rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.mobile-nav.active a {
    opacity: 1;
    transform: translateY(0);
}

.mobile-nav.active a:nth-child(1) { transition-delay: 0.1s; }
.mobile-nav.active a:nth-child(2) { transition-delay: 0.15s; }
.mobile-nav.active a:nth-child(3) { transition-delay: 0.2s; }
.mobile-nav.active a:nth-child(4) { transition-delay: 0.25s; }
.mobile-nav.active a:nth-child(5) { transition-delay: 0.3s; }

.mobile-nav a:hover {
    color: var(--accent-gold);
}

.mobile-nav-contact {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease 0.35s;
}

.mobile-nav.active .mobile-nav-contact {
    opacity: 1;
    transform: translateY(0);
}

.mobile-nav-contact a {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 1rem;
    color: var(--text-muted);
    padding: 0.5rem;
}

/* ==================== SECTIONS BASE ==================== */
section {
    padding: 6rem 1.5rem;
}

.section-label {
    font-size: 0.7rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--accent-gold);
    font-weight: 600;
    margin-bottom: 1.2rem;
    display: block;
}

/* ==================== HERO ==================== */
.hero {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(135deg, var(--cream-light) 0%, var(--pastel-sage) 50%, var(--pastel-mint) 100%);
    overflow: hidden;
    padding-top: var(--header-height);
}

.hero-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.03;
    background-image: 
        linear-gradient(45deg, var(--primary-dark) 1px, transparent 1px),
        linear-gradient(-45deg, var(--primary-dark) 1px, transparent 1px);
    background-size: 60px 60px;
}

.hero-content {
    text-align: center;
    z-index: 10;
    padding: 2rem;
    animation: fadeInUp 1.2s ease-out;
}

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

.hero-logo {
    width: 100px;
    height: auto;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.5rem, 7vw, 5rem);
    font-weight: 500;
    letter-spacing: 0.15em;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-tagline {
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    font-weight: 400;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem 2.5rem;
    background: var(--primary-dark);
    color: var(--cream);
    text-decoration: none;
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 500;
    transition: all 0.4s ease;
    animation: fadeInUp 1s ease-out 0.8s both;
}

.hero-cta:hover {
    background: var(--primary-darker);
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(45, 56, 53, 0.15);
}

.hero-cta svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.hero-cta:hover svg {
    transform: translateX(4px);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    color: var(--text-muted);
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    animation: bounce 2s infinite;
}

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

.scroll-indicator svg {
    width: 20px;
    height: 20px;
    stroke: var(--text-muted);
}

/* ==================== ABOUT ==================== */
.about {
    padding: 6rem 1.5rem;
    background: var(--white);
    position: relative;
}

.about-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image-main {
    width: 100%;
    aspect-ratio: 4/5;
    background: linear-gradient(135deg, var(--pastel-sage) 0%, var(--pastel-mint) 100%);
    overflow: hidden;
}

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

.about-image-accent {
    position: absolute;
    bottom: -1.5rem;
    right: -1.5rem;
    width: 50%;
    height: 50%;
    background: var(--pastel-warm);
    z-index: -1;
}

.about h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 500;
    color: var(--primary-dark);
    line-height: 1.25;
    margin-bottom: 1.5rem;
}

.about p {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 1.2rem;
    line-height: 1.85;
}

.about-stats {
    display: flex;
    gap: 2.5rem;
    margin-top: 2.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--pastel-sage);
    flex-wrap: wrap;
}

.stat {
    text-align: left;
}

.stat-number {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 600;
    color: var(--primary-dark);
    line-height: 1;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 0.4rem;
}

/* ==================== SERVICES ==================== */
.services {
    padding: 6rem 1.5rem;
    background: var(--cream);
}

.services-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.services-header {
    text-align: center;
    margin-bottom: 4rem;
}

.services h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 500;
    color: var(--primary-dark);
}

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

.service-card {
    background: var(--white);
    padding: 2.5rem 2rem;
    position: relative;
    transition: all 0.4s ease;
    border: 1px solid transparent;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(45, 56, 53, 0.08);
    border-color: var(--pastel-sage);
}

.service-icon {
    width: 55px;
    height: 55px;
    background: var(--pastel-sage);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    background: var(--primary-dark);
}

.service-icon svg {
    width: 26px;
    height: 26px;
    stroke: var(--primary-dark);
    transition: stroke 0.3s ease;
}

.service-card:hover .service-icon svg {
    stroke: var(--cream);
}

.service-card h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 0.8rem;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.75;
}

/* ==================== PROPERTIES ==================== */
.properties {
    padding: 6rem 1.5rem;
    background: var(--white);
}

.properties-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.properties-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.properties-header h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 500;
    color: var(--primary-dark);
}

.properties-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-dark);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.properties-link:hover {
    color: var(--accent-gold);
}

.properties-link svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.properties-link:hover svg {
    transform: translateX(4px);
}

.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

/* Property Card */
.property-card {
    background: var(--white);
    border: 1px solid var(--pastel-sage);
    overflow: hidden;
    transition: all 0.3s ease;
}

.property-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(45, 56, 53, 0.1);
}

.property-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.property-image {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: var(--pastel-sage);
}

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

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

.property-badges {
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.property-badge {
    padding: 0.4rem 0.8rem;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-type {
    background: var(--primary-dark);
    color: var(--cream);
}

.badge-featured {
    background: var(--accent-gold);
    color: var(--primary-darker);
}

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

.badge-reserved {
    background: #d97706;
    color: white;
}

/* Status Overlay für vermietete/verkaufte Objekte */
.property-status-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
}

.property-status-overlay span {
    background: #059669;
    color: white;
    padding: 0.6rem 1.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transform: rotate(-5deg);
}

.property-card.is-sold .property-status-overlay span {
    background: #dc2626;
}

.property-card.is-rented .property-image img,
.property-card.is-sold .property-image img {
    filter: grayscale(30%);
}

.property-content {
    padding: 1.5rem;
}

.property-price {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

.property-price small {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-muted);
}

.property-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 0.3rem;
}

.property-location {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.property-details {
    display: flex;
    gap: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--pastel-sage);
}

.property-detail {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.property-detail svg {
    width: 16px;
    height: 16px;
    stroke: var(--accent-gold);
}

/* Empty State */
.properties-empty {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--cream);
}

.properties-empty svg {
    width: 80px;
    height: 80px;
    stroke: var(--pastel-sage);
    margin-bottom: 1.5rem;
}

.properties-empty h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

.properties-empty p {
    color: var(--text-muted);
}

/* Loading Spinner */
.properties-loading {
    display: flex;
    justify-content: center;
    padding: 4rem;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--pastel-sage);
    border-top-color: var(--primary-dark);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ==================== CONTACT ==================== */
.contact {
    padding: 6rem 1.5rem;
    background: var(--cream);
}

.contact-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 500;
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
}

.contact > div > p {
    color: var(--text-muted);
    line-height: 1.85;
}

.contact-info {
    margin-top: 2.5rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem;
    background: var(--white);
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: var(--pastel-sage);
}

.contact-icon {
    width: 56px;
    height: 56px;
    background: var(--cream);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-bottom: 1rem;
    box-shadow: 0 4px 15px rgba(61, 74, 71, 0.08);
}

.contact-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--primary-dark);
}

.contact-item-content h4 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 0.4rem;
}

.contact-item-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

.contact-item-content a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
    word-break: break-word;
}

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

/* Contact Form */
.contact-form {
    background: var(--white);
    padding: 2.5rem;
    position: relative;
}

.form-group {
    margin-bottom: 1.3rem;
}

.form-group label {
    display: block;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-dark);
    margin-bottom: 0.6rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 1px solid var(--pastel-sage);
    background: var(--white);
    font-family: 'Nunito Sans', sans-serif;
    font-size: 1rem;
    color: var(--text-dark);
    transition: all 0.3s ease;
    border-radius: 0;
    -webkit-appearance: none;
}

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

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

.form-submit {
    width: 100%;
    padding: 1.1rem 2rem;
    background: var(--primary-dark);
    color: var(--cream);
    border: none;
    font-family: 'Nunito Sans', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-submit:hover {
    background: var(--primary-darker);
}

.form-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.form-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    padding: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.form-success {
    text-align: center;
    padding: 2rem;
}

.form-success svg {
    width: 60px;
    height: 60px;
    stroke: var(--primary-dark);
    margin-bottom: 1.5rem;
}

.form-success h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

.form-success p {
    color: var(--text-muted);
    line-height: 1.8;
}

/* ==================== FOOTER ==================== */
footer {
    background: var(--primary-darker);
    padding: 3.5rem 1.5rem 1.5rem;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-main {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid rgba(245, 244, 240, 0.1);
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
}

.footer-logo-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    color: var(--cream);
}

.footer-logo-subtitle {
    font-size: 0.6rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: rgba(245, 244, 240, 0.5);
}

.footer-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: rgba(245, 244, 240, 0.7);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--cream);
}

.footer-bottom {
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    color: rgba(245, 244, 240, 0.4);
    font-size: 0.78rem;
}

/* ==================== PAGE HEADER ==================== */
.page-header {
    background: linear-gradient(135deg, var(--cream-light) 0%, var(--pastel-sage) 100%);
    padding: 4rem 2rem;
    text-align: center;
    padding-top: calc(var(--header-height) + 3rem);
}

.page-header h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 500;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

.page-header p {
    color: var(--text-muted);
    font-size: 1rem;
}

.page-header .back-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    display: inline-block;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.page-header .back-link:hover {
    color: var(--primary-dark);
}

/* ==================== FILTER BAR ==================== */
.filter-bar {
    background: var(--white);
    padding: 1.5rem 1rem;
    border-bottom: 1px solid var(--pastel-sage);
}

.filter-bar-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.filter-select {
    padding: 0.7rem 1rem;
    border: 1px solid var(--pastel-sage);
    background: var(--white);
    font-family: inherit;
    font-size: 0.9rem;
    color: var(--text-dark);
    min-width: 150px;
    cursor: pointer;
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary-dark);
}

/* ==================== LIGHTBOX ==================== */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

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

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

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 0.5rem;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 2rem;
    padding: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }

.lightbox-counter {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 0.9rem;
}

/* ==================== COOKIE BANNER ==================== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.1);
    z-index: 9998;
    transform: translateY(100%);
    transition: transform 0.4s ease;
    border-top: 1px solid var(--pastel-sage);
}

.cookie-banner.active {
    transform: translateY(0);
}

.cookie-banner-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.cookie-text {
    flex: 1;
    min-width: 280px;
}

.cookie-text h4 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

.cookie-text p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

.cookie-text a {
    color: var(--primary-dark);
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.cookie-btn {
    padding: 0.8rem 1.5rem;
    font-family: 'Nunito Sans', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.cookie-btn-accept {
    background: var(--primary-dark);
    color: var(--cream);
}

.cookie-btn-accept:hover {
    background: var(--primary-darker);
}

.cookie-btn-settings {
    background: transparent;
    color: var(--primary-dark);
    border: 1px solid var(--primary-dark);
}

.cookie-btn-settings:hover {
    background: var(--pastel-sage);
}

.cookie-btn-decline {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--pastel-sage);
}

.cookie-btn-decline:hover {
    border-color: var(--primary-dark);
    color: var(--primary-dark);
}

/* Cookie Modal */
.cookie-modal {
    position: fixed;
    inset: 0;
    background: rgba(45, 56, 53, 0.7);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

.cookie-modal-content {
    background: var(--white);
    max-width: 550px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.cookie-modal-header {
    padding: 2rem 2rem 1rem;
    border-bottom: 1px solid var(--pastel-sage);
}

.cookie-modal-header h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.6rem;
    color: var(--primary-dark);
    margin: 0;
}

.cookie-modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cookie-modal-close svg {
    width: 20px;
    height: 20px;
    stroke: var(--text-muted);
    transition: stroke 0.3s ease;
}

.cookie-modal-close:hover svg {
    stroke: var(--primary-dark);
}

.cookie-modal-body {
    padding: 1.5rem 2rem;
}

.cookie-option {
    padding: 1.2rem 0;
    border-bottom: 1px solid var(--pastel-sage);
}

.cookie-option:last-child {
    border-bottom: none;
}

.cookie-option-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.cookie-option-title {
    font-weight: 600;
    color: var(--primary-dark);
    font-size: 0.95rem;
}

.cookie-option p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    width: 50px;
    height: 26px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: var(--pastel-sage);
    transition: 0.3s;
    border-radius: 26px;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background: var(--white);
    transition: 0.3s;
    border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
    background: var(--primary-dark);
}

.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(24px);
}

.toggle-switch input:disabled + .toggle-slider {
    opacity: 0.6;
    cursor: not-allowed;
}

.cookie-modal-footer {
    padding: 1.5rem 2rem;
    background: var(--cream);
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.cookie-modal-footer .cookie-btn {
    flex: 1;
    min-width: 120px;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
    .header-inner {
        padding: 0 2rem;
    }

    nav {
        gap: 2rem;
    }

    .header-contact {
        display: none;
    }

    .about-inner {
        gap: 3rem;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-inner {
        gap: 3rem;
    }
}

@media (max-width: 900px) {
    :root {
        --header-height: 70px;
    }

    html {
        scroll-padding-top: var(--header-height-mobile);
    }

    .header-inner {
        padding: 0 1.5rem;
    }

    nav {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .mobile-nav {
        display: block;
    }

    .about-inner {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-image {
        max-width: 400px;
        margin: 0 auto;
    }

    .about-content {
        text-align: center;
    }

    .about-stats {
        justify-content: center;
    }

    .contact-inner {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contact > div:first-child {
        text-align: center;
    }

    .contact-info {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }

    .contact-item {
        padding: 1.2rem 1rem;
    }
}

@media (max-width: 768px) {
    section {
        padding: 4rem 1.25rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .properties-grid {
        grid-template-columns: 1fr;
    }

    .contact-info {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .contact-item {
        flex-direction: row;
        text-align: left;
        padding: 1.2rem 1.5rem;
        gap: 1rem;
    }

    .contact-icon {
        margin-bottom: 0;
        width: 50px;
        height: 50px;
    }

    .service-card {
        padding: 2rem 1.5rem;
    }

    .footer-main {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-logo {
        align-items: center;
    }

    .footer-links {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .cookie-banner-inner {
        flex-direction: column;
        text-align: center;
    }

    .cookie-buttons {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    :root {
        --header-height: 65px;
        --header-height-mobile: 65px;
    }

    .header-inner {
        padding: 0 1rem;
    }

    .logo-icon {
        width: 38px;
        height: 30px;
    }

    .logo-text {
        font-size: 1.1rem;
        letter-spacing: 0.15em;
    }

    .logo-subtitle {
        font-size: 0.5rem;
    }

    section {
        padding: 3.5rem 1rem;
    }

    .hero-content {
        padding: 1.5rem 1rem;
    }

    .hero-logo {
        width: 70px;
        margin-bottom: 1rem;
    }

    .hero-cta {
        padding: 1rem 1.8rem;
        font-size: 0.72rem;
    }

    .contact-form {
        padding: 1.8rem 1.3rem;
    }

    .mobile-nav a {
        font-size: 1.6rem;
        padding: 0.8rem 1.5rem;
    }
}

@media (max-width: 360px) {
    .logo-text-group {
        display: none;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .scroll-indicator {
        animation: none;
    }
}

/* Print styles */
@media print {
    header,
    .scroll-indicator,
    .hamburger,
    .mobile-nav,
    .cookie-banner,
    .lightbox {
        display: none !important;
    }

    .hero {
        min-height: auto;
        padding: 2rem;
    }

    section {
        padding: 2rem 1rem;
    }
}
