/* ========================================
   O'Homes LLC - Custom Styles
   ======================================== */

/* CSS Variables */
:root {
    /* Colors - Warm Earth Tones */
    --color-cream: #FAF7F2;
    --color-cream-dark: #F0EBE3;
    --color-terracotta: #C67B5C;
    --color-terracotta-dark: #A85D3F;
    --color-forest: #2C4A3E;
    --color-forest-light: #3D6352;
    --color-charcoal: #2A2A2A;
    --color-charcoal-light: #4A4A4A;
    --color-gold: #D4A853;
    --color-white: #FFFFFF;
    
    /* Typography */
    --font-heading: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Outfit', -apple-system, sans-serif;
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 6rem;
    --space-xxl: 8rem;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.4s ease;
    --transition-slow: 0.6s ease;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-full: 9999px;
}

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

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

body {
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.6;
    color: var(--color-charcoal);
    background-color: var(--color-cream);
    overflow-x: hidden;
}

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

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

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

ul {
    list-style: none;
}

/* ========================================
   Utility Classes
   ======================================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.section-tag {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-terracotta);
    margin-bottom: var(--space-sm);
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto var(--space-lg);
}

.section-header h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: var(--space-sm);
}

.section-description {
    color: var(--color-charcoal-light);
    font-size: 1.1rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
}

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

.btn-primary:hover {
    background-color: var(--color-terracotta-dark);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 25px rgba(198, 123, 92, 0.35);
}

.btn-secondary {
    background-color: var(--color-white);
    color: var(--color-terracotta);
    border: 1.5px solid var(--color-white);
}

.btn-secondary:hover {
    background-color: var(--color-cream);
    border-color: var(--color-cream);
    color: var(--color-terracotta-dark);
}

.btn-light {
    background-color: var(--color-white);
    color: var(--color-forest);
}

.btn-light:hover {
    background-color: var(--color-cream);
}

.btn-light.coming-soon {
    background-color: rgba(255, 255, 255, 0.8);
    color: #888;
    cursor: default;
    pointer-events: none;
    font-style: italic;
}

.btn-full {
    width: 100%;
}

/* Form Status Messages */
.form-status {
    margin-top: var(--space-md);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    text-align: center;
    font-size: 0.95rem;
}

.form-status:empty {
    display: none;
}

.form-status.success {
    background: linear-gradient(135deg, rgba(198, 123, 92, 0.15) 0%, rgba(198, 123, 92, 0.05) 100%);
    color: var(--color-terracotta-dark);
    border: 1px solid rgba(198, 123, 92, 0.3);
}

.form-status.error {
    background: rgba(244, 67, 54, 0.1);
    color: #c62828;
    border: 1px solid rgba(244, 67, 54, 0.2);
}

.success-animation {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
}

.success-checkmark {
    width: 60px;
    height: 60px;
    color: var(--color-terracotta);
    animation: checkmarkPop 0.5s ease;
}

.success-checkmark svg {
    width: 100%;
    height: 100%;
}

.success-checkmark circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    animation: circleStroke 0.6s ease forwards;
}

.success-checkmark path {
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: checkStroke 0.4s ease 0.4s forwards;
}

.success-animation span {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-terracotta);
}

.success-animation p {
    font-size: 0.9rem;
    color: var(--color-charcoal-light);
    margin: 0;
}

.btn-loading {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    vertical-align: middle;
    margin-right: 8px;
}

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

@keyframes checkmarkPop {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes circleStroke {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes checkStroke {
    to {
        stroke-dashoffset: 0;
    }
}

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

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-8px); }
    40% { transform: translateX(8px); }
    60% { transform: translateX(-8px); }
    80% { transform: translateX(8px); }
}

.recaptcha-group {
    display: flex;
    justify-content: center;
}

/* Image Placeholders */
.image-placeholder {
    width: 100%;
    height: 100%;
    min-height: 200px;
    background: linear-gradient(135deg, var(--color-cream-dark) 0%, #E8E3DA 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    position: relative;
    overflow: hidden;
}

.image-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 20px,
            rgba(196, 189, 178, 0.3) 20px,
            rgba(196, 189, 178, 0.3) 40px
        );
}

.image-placeholder span {
    position: relative;
    font-size: 0.9rem;
    color: var(--color-charcoal-light);
    font-weight: 500;
    padding: var(--space-sm) var(--space-md);
    background: var(--color-white);
    border-radius: var(--radius-sm);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.image-placeholder.large {
    min-height: 350px;
}

/* ========================================
   Navigation
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(250, 247, 242, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(44, 74, 62, 0.1);
    transition: all var(--transition-medium);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-sm) var(--space-md);
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-forest);
}

.logo span {
    font-weight: 400;
    color: var(--color-terracotta);
}

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

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-charcoal);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-terracotta);
    transition: width var(--transition-fast);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-cta {
    background: var(--color-terracotta);
    color: var(--color-white) !important;
    padding: 0.6rem 1.5rem;
    border-radius: var(--radius-sm);
}

.nav-cta::after {
    display: none !important;
}

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

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--color-forest);
    transition: all var(--transition-fast);
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: var(--space-xxl) var(--space-md);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-bg video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%) scale(1.05);
    filter: blur(4px);
    object-fit: cover;
}

/* Gradient overlay for readability */
.hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.7);
}

/* Subtle color accent overlay */
.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 20% 80%, rgba(198, 123, 92, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(44, 74, 62, 0.08) 0%, transparent 50%);
}

.hero-content {
    position: relative;
    text-align: center;
    max-width: 800px;
    animation: fadeInUp 1s ease-out;
}

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

.hero-tagline {
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-terracotta);
    margin-bottom: var(--space-md);
}

.hero h1 {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: var(--space-md);
    line-height: 1.1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.hero h1 .rotating-text {
    color: var(--color-terracotta);
    font-style: italic;
    font-weight: 500;
    display: flex;
    justify-content: center;
    gap: 0.25em;
}

.rotating-word-wrapper {
    display: inline-block;
    vertical-align: baseline;
}


.rotating-word {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.4s ease, transform 0.4s ease;

    -webkit-font-smoothing: antialiased;
    backface-visibility: hidden;
}
.rotating-word.fade-out {
    opacity: 0;
    transform: translateY(4px);
}
.rotating-word.fade-in {
    opacity: 0;
    transform: translateY(-4px);
    transition: none;
}


.hero-description {
    font-size: 1.2rem;
    color: var(--color-white);
    max-width: 600px;
    margin: 0 auto var(--space-lg);
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.1);
}

.hero-buttons {
    display: flex;
    gap: var(--space-sm);
    justify-content: center;
    flex-wrap: wrap;
}

.hero-scroll {
    position: absolute;
    bottom: var(--space-lg);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    animation: fadeIn 1s ease-out 0.5s both;
}

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

.hero-scroll span {
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-charcoal-light);
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--color-forest), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { transform: scaleY(1); opacity: 1; }
    50% { transform: scaleY(0.6); opacity: 0.5; }
}

/* ========================================
   Services Section
   ======================================== */
.services {
    padding: var(--space-xxl) 0;
    background: var(--color-white);
    position: relative;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-forest), transparent);
    opacity: 0.2;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-md);
}

.service-card {
    position: relative;
    background: var(--color-cream);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-medium);
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(44, 74, 62, 0.15);
}

.service-card-featured {
    border: 2px solid var(--color-terracotta);
}

.featured-badge {
    position: absolute;
    top: var(--space-sm);
    right: var(--space-sm);
    background: var(--color-terracotta);
    color: var(--color-white);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.3rem 0.8rem;
    border-radius: var(--radius-full);
    z-index: 10;
}

.service-icon {
    position: absolute;
    top: var(--space-md);
    left: var(--space-md);
    width: 48px;
    height: 48px;
    background: var(--color-white);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover .service-icon {
    transform: translateY(-5px) rotate(5deg);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.service-icon svg {
    width: 24px;
    height: 24px;
    color: var(--color-forest);
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon svg {
    transform: scale(1.1);
}

.service-image {
    height: 200px;
    overflow: hidden;
}

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

.service-image .image-placeholder {
    border-radius: 0;
    min-height: 100%;
}

.service-content {
    padding: var(--space-md);
}

.service-content h3 {
    font-size: 1.5rem;
    margin-bottom: var(--space-xs);
}

.service-content > p {
    color: var(--color-charcoal-light);
    margin-bottom: var(--space-sm);
}

.service-list {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.service-list li {
    font-size: 0.9rem;
    color: var(--color-charcoal-light);
    padding-left: 1.2rem;
    position: relative;
}

.service-list li::before {
    content: '✦';
    position: absolute;
    left: 0;
    color: var(--color-terracotta);
    font-size: 0.7rem;
}

.service-hover {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--space-md);
    background: linear-gradient(to top, var(--color-terracotta), transparent);
    opacity: 0;
    transform: translateY(20px);
    transition: all var(--transition-medium);
}

.service-card:hover .service-hover {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   About Section
   ======================================== */
.about {
    padding: var(--space-xxl) 0;
    background: var(--color-cream);
    position: relative;
    overflow: hidden;
}

.about::before {
    content: '"';
    position: absolute;
    top: 10%;
    right: 5%;
    font-family: var(--font-heading);
    font-size: 20rem;
    color: var(--color-forest);
    opacity: 0.03;
    line-height: 1;
}

.about-grid {
    display: block;
}

.about-images {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: var(--space-md);
}

.about-image-main {
    grid-column: 1 / -1;
}

.about-image-main img,
.about-image-secondary img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-lg);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.about-image-main:hover img {
    transform: scale(1.03);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.about-image-secondary:hover img {
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.about-image-main img {
    max-height: 400px;
}

.about-image-secondary img {
    max-height: 200px;
}

.about-image-secondary {
    grid-column: 1 / 2;
}

.about-stats-side {
    display: none;
}

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

.reviews-carousel {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.reviews-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
    flex: 1;
}

.carousel-arrow {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--color-white);
    border: 2px solid var(--color-cream);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.carousel-arrow:hover {
    background: var(--color-terracotta);
    border-color: var(--color-terracotta);
    color: white;
    transform: scale(1.1);
}

.carousel-arrow:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

.carousel-arrow svg {
    width: 24px;
    height: 24px;
}

.view-all-btn {
    background: transparent;
    border: 2px solid var(--color-terracotta);
    color: var(--color-terracotta);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.view-all-btn:hover {
    background: var(--color-terracotta);
    color: white;
}

.view-all-btn svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.view-all-btn.active svg {
    transform: rotate(180deg);
}

.reviews-footer {
    text-align: center;
    margin-top: var(--space-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.reviews-dropdown {
    width: 100%;
    max-width: 1100px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, padding 0.3s ease, margin 0.3s ease;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    margin-top: 0;
}

.reviews-dropdown.active {
    max-height: 550px;
    padding: var(--space-lg);
    margin-top: var(--space-md);
    overflow-y: auto;
}

.dropdown-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid var(--color-cream);
}

.dropdown-arrow {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--color-cream);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: var(--color-charcoal);
}

.dropdown-arrow:hover:not(:disabled) {
    background: var(--color-terracotta);
    color: white;
}

.dropdown-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.dropdown-arrow svg {
    width: 18px;
    height: 18px;
}

.dropdown-page {
    font-size: 0.9rem;
    color: var(--color-charcoal);
    font-weight: 500;
    min-width: 50px;
    text-align: center;
}

.dropdown-review {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--color-cream);
    border-radius: var(--radius-md);
    align-items: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dropdown-review:hover {
    transform: translateX(5px);
    box-shadow: -3px 0 0 var(--color-terracotta);
}

.dropdown-review .review-stars {
    flex-shrink: 0;
    font-size: 1rem;
}

.dropdown-review .review-text {
    flex: 1;
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

.dropdown-review .review-author {
    flex-shrink: 0;
    text-align: right;
    font-size: 0.85rem;
}

.dropdown-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.reviews-stats-row {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.review-card {
    background: var(--color-white);
    padding: var(--space-md);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.review-stars {
    color: #f5a623;
    font-size: 1.1rem;
    margin-bottom: var(--space-xs);
    letter-spacing: 2px;
}

.review-text {
    font-size: 0.9rem;
    color: var(--color-charcoal);
    line-height: 1.5;
    font-style: italic;
    margin-bottom: var(--space-sm);
}

.review-author {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.author-name {
    font-weight: 600;
    color: var(--color-forest);
    font-size: 0.85rem;
}

.author-location {
    font-size: 0.75rem;
    color: var(--color-charcoal-light);
}

.stat {
    background: var(--color-white);
    color: var(--color-charcoal);
    padding: var(--space-lg) var(--space-xl);
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-terracotta);
    transition: transform 0.3s ease;
}

.stat:hover .stat-number {
    transform: scale(1.1);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--color-charcoal-light);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.about-content h2 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    margin-bottom: var(--space-md);
}

.about-lead {
    font-size: 1.2rem;
    color: var(--color-forest);
    font-weight: 500;
    margin-bottom: var(--space-sm);
}

.about-content p {
    color: var(--color-charcoal-light);
    margin-bottom: var(--space-sm);
}

.about-values {
    margin-top: var(--space-lg);
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: var(--space-lg);
}

.value {
    display: flex;
    text-align: left;
    gap: var(--space-sm);
    align-items: flex-start;
}

.value-icon {
    width: 32px;
    height: 32px;
    background: var(--color-terracotta);
    color: var(--color-white);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    flex-shrink: 0;
    transition: transform 0.3s ease, background 0.3s ease;
}

.value:hover .value-icon {
    transform: scale(1.15) rotate(10deg);
    background: var(--color-forest);
}

.value h4 {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-forest);
    margin-bottom: 0.2rem;
}

.value p {
    font-size: 0.9rem;
    margin: 0;
}

/* ========================================
   Gallery Section
   ======================================== */
.gallery {
    padding: var(--space-xxl) 0;
    background: var(--color-white);
}

.gallery-filters {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.6rem 1.5rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    background: transparent;
    border: 1.5px solid var(--color-cream-dark);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-fast);
    color: var(--color-charcoal-light);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--color-terracotta);
    border-color: var(--color-terracotta);
    color: var(--color-white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 220px;
    gap: var(--space-sm);
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    height: 220px;
    background: linear-gradient(135deg, var(--color-cream) 0%, #e8e4df 100%);
    transition: transform 0.3s ease, box-shadow 0.3s ease, z-index 0s;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-item.large {
    grid-column: span 2;
    grid-row: span 2;
    height: 100%;
}

.gallery-item.large:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.gallery-item.large::after {
    content: '⭐ Featured';
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--color-terracotta);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 5;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.gallery-item.large:hover::after {
    opacity: 1;
    transform: translateY(0);
}

.gallery-item > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--transition-medium);
}

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

.gallery-item:hover {
    z-index: 10;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
}

.gallery-item .image-placeholder {
    height: 100%;
    min-height: unset;
    border-radius: 0;
    transition: transform var(--transition-medium);
}

.gallery-item:hover .image-placeholder {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(198, 123, 92, 0.9), transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: var(--space-md);
    opacity: 0;
    transition: opacity var(--transition-medium);
}

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

.gallery-overlay h4 {
    color: var(--color-white);
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
}

.gallery-overlay p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
}

/* ========================================
   Contact Section
   ======================================== */
.contact {
    padding: var(--space-xxl) 0;
    background: var(--color-forest);
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.contact::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 500px;
    height: 500px;
    border: 1px solid rgba(198, 123, 92, 0.1);
    border-radius: 50%;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    position: relative;
    z-index: 1;
}

.contact-info {
    color: var(--color-white);
}

.contact-info .section-tag {
    color: var(--color-terracotta);
}

.contact-info h2 {
    color: var(--color-white);
    font-size: clamp(2rem, 4vw, 2.75rem);
    margin-bottom: var(--space-md);
}

.contact-info > p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--space-lg);
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

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

.contact-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon svg {
    width: 22px;
    height: 22px;
    color: var(--color-terracotta);
}

.contact-item h4 {
    color: var(--color-white);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
}

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

.contact-social {
    display: flex;
    gap: var(--space-sm);
}

.social-link {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.social-link:hover {
    background: var(--color-terracotta);
    transform: translateY(-3px);
}

.social-link svg {
    width: 20px;
    height: 20px;
    color: var(--color-white);
}

/* Contact Form */
.contact-form-wrapper {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
}

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

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

.form-group label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-forest);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.875rem 1rem;
    font-family: var(--font-body);
    font-size: 1rem;
    border: 1.5px solid var(--color-cream-dark);
    border-radius: var(--radius-sm);
    background: var(--color-cream);
    transition: all var(--transition-fast);
    color: var(--color-charcoal);
}

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

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--color-charcoal-light);
    opacity: 0.6;
}

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

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%232C4A3E' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: var(--color-charcoal);
    color: var(--color-white);
    padding: var(--space-xl) 0 var(--space-md);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.footer-brand .logo {
    color: var(--color-white);
    margin-bottom: var(--space-sm);
    display: inline-block;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    max-width: 300px;
}

.footer h4 {
    color: var(--color-white);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

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

.footer ul a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    transition: color var(--transition-fast);
}

.footer ul a:hover {
    color: var(--color-terracotta);
}

.footer-bottom {
    padding-top: var(--space-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
    
    .about-images {
        order: 2;
    }
    
    .about-content {
        order: 1;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-auto-rows: 180px;
    }
    
    .services {
        padding: var(--space-xl) 0;
    }
    
    .about {
        padding: var(--space-xl) 0;
    }
    
    .gallery {
        padding: var(--space-xl) 0;
    }
    
    .contact {
        padding: var(--space-xl) 0;
    }
}

@media (max-width: 768px) {
    /* Tighter spacing variables for mobile */
    :root {
        --space-xs: 0.35rem;
        --space-sm: 0.75rem;
        --space-md: 1.25rem;
        --space-lg: 2rem;
        --space-xl: 3rem;
        --space-xxl: 4rem;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-cream);
        flex-direction: column;
        padding: var(--space-sm);
        gap: var(--space-xs);
        border-bottom: 1px solid rgba(44, 74, 62, 0.1);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    /* Hero Section - Keep text large, just stack buttons */
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    /* Services Section - Compact */
    .services {
        padding: 2.5rem 0;
    }
    
    .section-header {
        margin-bottom: 1.5rem;
    }
    
    .section-header h2 {
        font-size: 1.6rem;
        margin-bottom: 0.5rem;
    }
    
    .section-description {
        font-size: 0.9rem;
    }
    
    .section-tag {
        font-size: 0.75rem;
        margin-bottom: 0.35rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .service-card {
        border-radius: 12px;
    }
    
    .service-image {
        height: 150px;
    }
    
    .service-content {
        padding: 1rem;
    }
    
    .service-content h3 {
        font-size: 1.25rem;
        margin-bottom: 0.25rem;
    }
    
    .service-content > p {
        font-size: 0.85rem;
        margin-bottom: 0.5rem;
    }
    
    .service-list {
        gap: 0.25rem;
    }
    
    .service-list li {
        font-size: 0.8rem;
    }
    
    /* Contact Section - Compact */
    .contact {
        padding: 2.5rem 0;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .contact-info h2 {
        font-size: 1.6rem;
        margin-bottom: 0.75rem;
    }
    
    .contact-info > p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .contact-details {
        gap: 0.75rem;
        margin-bottom: 1rem;
    }
    
    .contact-item {
        gap: 0.75rem;
    }
    
    .contact-icon {
        width: 40px;
        height: 40px;
    }
    
    .contact-icon svg {
        width: 18px;
        height: 18px;
    }
    
    .contact-item h4 {
        font-size: 0.8rem;
    }
    
    .contact-item p {
        font-size: 0.9rem;
    }
    
    .contact-social {
        gap: 0.5rem;
    }
    
    .social-link {
        width: 38px;
        height: 38px;
    }
    
    .contact-form-wrapper {
        padding: 1.25rem;
    }
    
    .contact-form {
        gap: 0.75rem;
    }
    
    .form-group {
        gap: 0.35rem;
    }
    
    .form-group label {
        font-size: 0.85rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.7rem 0.85rem;
        font-size: 0.9rem;
    }
    
    .form-group textarea {
        min-height: 90px;
    }
    
    /* Gallery Section - Compact */
    .gallery {
        padding: 2.5rem 0;
    }
    
    .gallery-filters {
        gap: 0.5rem;
        margin-bottom: 1.25rem;
    }
    
    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: auto;
        gap: 12px;
    }
    
    .gallery-item {
        border-radius: 10px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        overflow: hidden;
        height: 130px !important;
    }
    
    .gallery-item > img {
        border-radius: 10px;
    }
    
    .gallery-item.large {
        grid-column: span 2;
        grid-row: span 1;
        height: 160px !important;
    }
    
    .gallery-overlay {
        padding: 0.75rem;
        background: linear-gradient(to top, rgba(198, 123, 92, 0.95), transparent 80%);
    }
    
    .gallery-overlay h4 {
        font-size: 0.85rem;
        margin-bottom: 0.1rem;
    }
    
    .gallery-overlay p {
        font-size: 0.7rem;
    }
    
    /* Footer - Compact */
    .footer {
        padding: 2rem 0 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.25rem;
        margin-bottom: 1rem;
    }
    
    .footer-brand p {
        max-width: 100%;
        font-size: 0.85rem;
    }
    
    .footer h4 {
        margin-bottom: 0.5rem;
        font-size: 0.9rem;
    }
    
    .footer ul {
        gap: 0.35rem;
    }
    
    .footer ul a {
        font-size: 0.85rem;
    }
    
    .footer-bottom {
        padding-top: 0.75rem;
    }
    
    .footer-bottom p {
        font-size: 0.8rem;
    }
    
    /* About Section - Compact */
    .about {
        padding: 2.5rem 0;
    }
    
    .about::before {
        display: none;
    }
    
    .about-grid {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
    
    .about-content {
        padding-right: 0;
        text-align: center;
    }
    
    .about-content .section-tag {
        margin-bottom: 0.25rem;
    }
    
    .about-content h2 {
        font-size: 1.6rem;
        margin-bottom: 0.5rem;
    }
    
    .about-lead {
        font-size: 0.95rem;
        margin-bottom: 0.5rem;
    }
    
    .about-content p {
        font-size: 0.85rem;
        margin-bottom: 0.5rem;
        line-height: 1.5;
    }
    
    .about-stats-side {
        position: relative;
        flex-direction: row;
        justify-content: center;
        gap: 0.5rem;
        margin-bottom: 1rem;
    }
    
    .stat {
        padding: 0.6rem 0.75rem;
        border-radius: var(--radius-md);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
        text-align: center;
        min-width: 80px;
        flex: 1;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.65rem;
    }
    
    .about-values {
        margin-top: 1rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .value {
        background: var(--color-white);
        padding: 0.75rem;
        border-radius: var(--radius-md);
        text-align: left;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
        gap: 0.6rem;
    }
    
    .value-icon {
        width: 28px;
        height: 28px;
        font-size: 0.7rem;
    }
    
    .value h4 {
        font-size: 0.9rem;
        margin-bottom: 0.1rem;
    }
    
    .value p {
        font-size: 0.8rem;
    }
    
    /* Reviews - Compact */
    .reviews-carousel {
        flex-direction: column;
        gap: 0.75rem;
        margin-top: 1.25rem;
    }
    
    .reviews-row {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        order: 1;
    }
    
    .carousel-arrow {
        display: none;
    }
    
    .reviews-footer {
        margin-top: 1rem;
    }
    
    .reviews-dropdown {
        width: 100%;
        left: 0;
        transform: none;
    }
    
    .reviews-stats-row {
        flex-wrap: wrap;
        gap: 0.5rem;
        margin-top: 1rem;
    }
    
    .reviews-stats-row .stat {
        flex: 1;
        min-width: 80px;
    }
    
    .review-card {
        padding: 0.85rem;
    }
    
    .review-stars {
        font-size: 0.95rem;
        margin-bottom: 0.25rem;
    }
    
    .review-text {
        font-size: 0.8rem;
        margin-bottom: 0.5rem;
        line-height: 1.45;
    }
    
    .author-name {
        font-size: 0.8rem;
    }
    
    .author-location {
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }
    
    .container {
        padding: 0 0.75rem;
    }
    
    /* Sections tighter */
    .services,
    .about,
    .gallery,
    .contact {
        padding: 2rem 0;
    }
    
    .section-header {
        margin-bottom: 1.25rem;
    }
    
    .section-header h2 {
        font-size: 1.4rem;
    }
    
    .section-description {
        font-size: 0.85rem;
    }
    
    /* Service cards */
    .services-grid {
        gap: 0.85rem;
    }
    
    .service-image {
        height: 130px;
    }
    
    .service-content {
        padding: 0.85rem;
    }
    
    .service-content h3 {
        font-size: 1.15rem;
    }
    
    /* Gallery */
    .gallery-filters {
        gap: 0.4rem;
        margin-bottom: 1rem;
    }
    
    .filter-btn {
        padding: 0.4rem 0.85rem;
        font-size: 0.75rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: auto;
        gap: 10px;
    }
    
    .gallery-item {
        border-radius: 8px;
        height: 110px !important;
    }
    
    .gallery-item > img {
        border-radius: 8px;
    }
    
    .gallery-item.large {
        grid-column: span 2;
        height: 140px !important;
    }
    
    .gallery-overlay {
        padding: 0.6rem;
    }
    
    .gallery-overlay h4 {
        font-size: 0.8rem;
    }
    
    .gallery-overlay p {
        font-size: 0.65rem;
    }
    
    /* About */
    .about-content h2 {
        font-size: 1.4rem;
    }
    
    .about-lead {
        font-size: 0.9rem;
    }
    
    .about-content p {
        font-size: 0.8rem;
        line-height: 1.45;
    }
    
    .about-values {
        gap: 0.4rem;
    }
    
    .value {
        padding: 0.6rem;
        gap: 0.5rem;
    }
    
    .value-icon {
        width: 24px;
        height: 24px;
        font-size: 0.6rem;
    }
    
    .value h4 {
        font-size: 0.85rem;
    }
    
    .value p {
        font-size: 0.75rem;
    }
    
    /* Reviews */
    .reviews-carousel {
        gap: 0.6rem;
        margin-top: 1rem;
    }
    
    .reviews-row {
        gap: 0.6rem;
    }
    
    .review-card {
        padding: 0.75rem;
    }
    
    .review-stars {
        font-size: 0.9rem;
    }
    
    .review-text {
        font-size: 0.75rem;
        margin-bottom: 0.4rem;
    }
    
    /* Contact */
    .contact-info h2 {
        font-size: 1.4rem;
    }
    
    .contact-details {
        gap: 0.6rem;
    }
    
    .contact-icon {
        width: 36px;
        height: 36px;
    }
    
    .contact-form-wrapper {
        padding: 1rem;
    }
    
    .contact-form {
        gap: 0.6rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.6rem 0.75rem;
        font-size: 0.85rem;
    }
    
    .form-group textarea {
        min-height: 80px;
    }
    
    .btn-primary.btn-full {
        padding: 0.7rem;
        font-size: 0.9rem;
    }
    
    /* Footer */
    .footer {
        padding: 1.5rem 0 0.75rem;
    }
    
    .footer-content {
        gap: 1rem;
        margin-bottom: 0.75rem;
    }
    
    .logo {
        font-size: 1.5rem;
    }
}

/* ========================================
   Animations
   ======================================== */
@media (prefers-reduced-motion: no-preference) {
    .service-card,
    .gallery-item,
    .value,
    .contact-item {
        opacity: 0;
        transform: translateY(20px);
        animation: slideUp 0.6s ease forwards;
    }
    
    .service-card:nth-child(1) { animation-delay: 0.1s; }
    .service-card:nth-child(2) { animation-delay: 0.2s; }
    .service-card:nth-child(3) { animation-delay: 0.3s; }
    .service-card:nth-child(4) { animation-delay: 0.4s; }
    
    .gallery-item:nth-child(1) { animation-delay: 0.05s; }
    .gallery-item:nth-child(2) { animation-delay: 0.1s; }
    .gallery-item:nth-child(3) { animation-delay: 0.15s; }
    .gallery-item:nth-child(4) { animation-delay: 0.2s; }
    .gallery-item:nth-child(5) { animation-delay: 0.25s; }
    .gallery-item:nth-child(6) { animation-delay: 0.3s; }
    .gallery-item:nth-child(7) { animation-delay: 0.35s; }
    .gallery-item:nth-child(8) { animation-delay: 0.4s; }
}

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

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

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

@keyframes popIn {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    70% {
        transform: scale(1.05);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes wiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-1deg) scale(1.02); }
    75% { transform: rotate(1deg) scale(1.02); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.03); }
}

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

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Scroll reveal animations */
.reveal-ready {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-ready.reveal {
    opacity: 1;
    transform: translateY(0);
}

.animate-in {
    animation-play-state: running !important;
}

/* Staggered gallery animations */
.gallery-item:nth-child(9) { animation-delay: 0.45s; }
.gallery-item:nth-child(10) { animation-delay: 0.5s; }
.gallery-item:nth-child(11) { animation-delay: 0.55s; }
.gallery-item:nth-child(12) { animation-delay: 0.6s; }

/* ========================================
   Gallery Modal
   ======================================== */
.gallery-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: translateY(20px) scale(0.95);
    transition: transform 0.3s ease;
}

.gallery-modal.active .modal-content {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: var(--space-sm);
    right: var(--space-sm);
    width: 40px;
    height: 40px;
    background: var(--color-cream);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all var(--transition-fast);
}

.modal-close:hover {
    background: var(--color-terracotta);
}

.modal-close:hover svg {
    color: var(--color-white);
}

.modal-close svg {
    width: 20px;
    height: 20px;
    color: var(--color-charcoal);
}

.modal-title {
    padding: var(--space-md);
    font-size: 1.5rem;
    color: var(--color-forest);
    margin-bottom: 0;
    text-align: center;
}

.modal-description {
    margin: 0 0 var(--space-md);
    padding: var(--space-sm) var(--space-md);
    font-size: 0.95rem;
    color: var(--color-charcoal);
    line-height: 1.6;
    background: linear-gradient(135deg, rgba(198, 123, 92, 0.08) 0%, rgba(198, 123, 92, 0.03) 100%);
    border-left: 3px solid var(--color-terracotta);
    border-radius: var(--radius-sm);
    text-align: left;
    white-space: pre-line;
}

/* Modal Booking Links for Rentals */
.modal-booking-links {
    padding: var(--space-md);
    background: var(--color-white);
    border-top: 1px solid var(--color-cream-dark);
    flex-shrink: 0;
}

.booking-links-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-forest);
    margin: 0 0 var(--space-xs);
}

.modal-booking-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
}

.modal-book-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.modal-book-btn.direct {
    background: var(--color-terracotta);
    color: var(--color-white);
}

.modal-book-btn.direct:hover {
    background: var(--color-terracotta-dark);
}

.modal-book-btn .best-price {
    font-size: 0.7rem;
    background: rgba(255,255,255,0.25);
    padding: 0.15rem 0.4rem;
    border-radius: var(--radius-full);
}

.modal-book-btn.airbnb {
    background: #FF5A5F;
    color: white;
}

.modal-book-btn.airbnb:hover {
    background: #e54950;
}

.modal-book-btn.vrbo {
    background: #3D67B2;
    color: white;
}

.modal-book-btn.vrbo:hover {
    background: #345aa0;
}

.modal-book-btn.booking {
    background: #003580;
    color: white;
}

.modal-book-btn.booking:hover {
    background: #002a66;
}

.modal-booking-links .booking-note {
    margin: var(--space-sm) 0 0;
    font-size: 0.8rem;
    color: var(--color-charcoal-light);
    text-align: center;
}

.modal-booking-links .booking-note strong {
    color: var(--color-forest);
}

.modal-gallery {
    padding: var(--space-md);
    overflow-y: auto;
    flex: 1;
}

/* Custom scrollbar for modal */
.modal-gallery::-webkit-scrollbar {
    width: 8px;
}

.modal-gallery::-webkit-scrollbar-track {
    background: var(--color-cream);
    border-radius: 4px;
}

.modal-gallery::-webkit-scrollbar-thumb {
    background: var(--color-terracotta);
    border-radius: 4px;
}

.modal-gallery::-webkit-scrollbar-thumb:hover {
    background: var(--color-terracotta-dark);
}

.modal-images {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
}

.modal-loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: var(--space-lg);
    color: var(--color-charcoal-light);
    font-size: 0.95rem;
}

.modal-image-wrapper {
    width: 100%;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.modal-images img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-md);
    transition: transform var(--transition-fast);
    cursor: pointer;
}

.modal-images img:hover {
    transform: scale(1.02);
}

.modal-image-placeholder {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, var(--color-cream-dark) 0%, #E8E3DA 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.modal-image-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 20px,
            rgba(196, 189, 178, 0.3) 20px,
            rgba(196, 189, 178, 0.3) 40px
        );
    border-radius: var(--radius-md);
}

.modal-image-placeholder span {
    position: relative;
    font-size: 0.9rem;
    color: var(--color-charcoal-light);
    font-weight: 500;
    padding: var(--space-xs) var(--space-sm);
    background: var(--color-white);
    border-radius: var(--radius-sm);
}

/* Responsive modal */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        max-height: 90vh;
    }
    
    .modal-images {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .modal-title {
        padding: 0.75rem;
        font-size: 1.15rem;
        text-align: center;
    }
    
    .modal-description {
        padding: 0.6rem 0.75rem;
        margin: 0 0 0.75rem;
        font-size: 0.85rem;
    }
    
    .modal-gallery {
        padding: 0.75rem;
    }
    
    .modal-booking-links {
        padding: 0.75rem;
    }
    
    .modal-booking-buttons {
        gap: 0.35rem;
    }
    
    .modal-book-btn {
        padding: 0.4rem 0.75rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .modal-content {
        width: 96%;
    }
    
    .modal-title {
        padding: 0.6rem;
        font-size: 1.05rem;
    }
    
    .modal-gallery {
        padding: 0.6rem;
    }
    
    .modal-images {
        gap: 0.6rem;
    }
}

/* Prevent body scroll when modal is open */
body.modal-open {
    overflow: hidden;
}

/* ========================================
   Booking Modal
   ======================================== */
.booking-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.booking-modal .modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
}

.booking-content {
    position: relative;
    width: 90%;
    max-width: 550px;
    max-height: 90vh;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    overflow-y: auto;
    transform: translateY(20px) scale(0.95);
    transition: transform 0.3s ease;
}

.booking-modal.active .booking-content {
    transform: translateY(0) scale(1);
}

.booking-header {
    background: var(--color-forest);
    padding: var(--space-md);
    padding-right: 60px;
    color: var(--color-white);
}

.booking-header h3 {
    color: var(--color-white);
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.booking-header p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
}

.booking-body {
    padding: var(--space-md);
}

.booking-info {
    margin-bottom: var(--space-md);
}

.booking-feature {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-md);
    transition: background var(--transition-fast);
}

.booking-feature.highlight {
    background: rgba(198, 123, 92, 0.1);
    border: 1px solid rgba(198, 123, 92, 0.2);
}

.feature-icon {
    width: 28px;
    height: 28px;
    background: var(--color-cream);
    color: var(--color-terracotta);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.booking-feature.highlight .feature-icon {
    background: var(--color-terracotta);
    color: var(--color-white);
}

.booking-feature h4 {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-forest);
    margin-bottom: 0.1rem;
}

.booking-feature p {
    font-size: 0.85rem;
    color: var(--color-charcoal-light);
    margin: 0;
    line-height: 1.4;
}

.booking-buttons {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xs);
    margin-bottom: var(--space-sm);
}

.booking-note {
    font-size: 0.8rem;
    color: var(--color-charcoal-light);
    text-align: center;
    margin: 0;
    padding-top: var(--space-xs);
    border-top: 1px solid var(--color-cream-dark);
}

.booking-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    padding: 0.75rem var(--space-md);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.booking-btn svg {
    width: 20px;
    height: 20px;
}

.booking-btn.direct {
    background: var(--color-terracotta);
    color: var(--color-white);
    position: relative;
}

.booking-btn.direct:hover {
    background: var(--color-terracotta-dark);
    transform: translateY(-2px);
}

.btn-label {
    font-weight: 600;
}

.btn-tag {
    background: rgba(255, 255, 255, 0.25);
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
}

.booking-btn.airbnb {
    background: #FF5A5F;
    color: var(--color-white);
}

.booking-btn.airbnb:hover {
    background: #e54950;
    transform: translateY(-2px);
}

.booking-btn.vrbo {
    background: #3D67B2;
    color: var(--color-white);
}

.booking-btn.vrbo:hover {
    background: #345aa0;
    transform: translateY(-2px);
}

.booking-btn.booking-com {
    background: #003580;
    color: var(--color-white);
}

.booking-btn.booking-com:hover {
    background: #002a66;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .booking-content {
        width: 94%;
    }
    
    .booking-header {
        padding: 1rem;
        padding-right: 50px;
    }
    
    .booking-header h3 {
        font-size: 1.25rem;
    }
    
    .booking-header p {
        font-size: 0.8rem;
    }
    
    .booking-body {
        padding: 1rem;
    }
    
    .booking-info {
        margin-bottom: 0.75rem;
    }
    
    .booking-feature {
        padding: 0.5rem;
        margin-bottom: 0.5rem;
    }
    
    .feature-icon {
        width: 24px;
        height: 24px;
        font-size: 0.7rem;
    }
    
    .booking-feature h4 {
        font-size: 0.85rem;
    }
    
    .booking-feature p {
        font-size: 0.8rem;
    }
    
    .booking-btn {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .booking-header {
        padding: 0.85rem;
        padding-right: 45px;
    }
    
    .booking-body {
        padding: 0.85rem;
    }
    
    .booking-header h3 {
        font-size: 1.15rem;
    }
    
    .booking-feature h4 {
        font-size: 0.8rem;
    }
    
    .booking-feature p {
        font-size: 0.75rem;
    }
}

/* ========================================
   Image Lightbox
   ======================================== */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.lightbox-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    cursor: pointer;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease;
    z-index: 10;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.lightbox-close svg {
    width: 24px;
    height: 24px;
    stroke: white;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.lightbox-image {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: var(--radius-md);
    transform: scale(1);
    transition: transform 0.3s ease;
    cursor: zoom-in;
}

.lightbox-image.zoomed {
    cursor: zoom-out;
    transform: scale(2);
    cursor: grab;
}

.lightbox-image.zoomed:active {
    cursor: grabbing;
}

.lightbox-hint {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    text-align: center;
    pointer-events: none;
}

/* Make modal images clickable */
.modal-image-wrapper img {
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.modal-image-wrapper img:hover {
    opacity: 0.9;
}
