/* ============================================================================
   DWELLVERSE LANDING PAGE - APPLE VISION PRO INSPIRED DESIGN
   ============================================================================ */

:root {
    /* Font Family */
    --font-family-main: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif;

    /* Color Palette */
    --bg-light: #f5f5f7;
    --glass-bg-light: rgba(240, 240, 245, 0.55);
    --glass-border-light: rgba(255, 255, 255, 0.6);
    --text-primary-light: #1d1d1f;
    --text-secondary-light: #6e6e73;

    /* Accent Colors - Taupe & Light Brown Theme */
    --accent-coral: #b08968;       /* Light Brown */
    --accent-lavender: #c9b8a3;    /* Taupe */
    --accent-teal: #a89784;        /* Warm Taupe */
    --accent-peach: #d9c7b8;       /* Light Taupe */
    --accent-coral-vibrant: rgba(176, 137, 104, 0.2);    /* Light Brown shadow */
    --accent-lavender-vibrant: rgba(201, 184, 163, 0.2); /* Taupe shadow */
    --accent-teal-vibrant: rgba(168, 151, 132, 0.2);      /* Warm Taupe shadow */

    /* Gradients - Taupe & Light Brown Theme */
    --gradient-primary: linear-gradient(135deg, #b08968 0%, #c9b8a3 100%);      /* Light Brown to Taupe */
    --gradient-secondary: linear-gradient(135deg, #a89784 0%, #c9b8a3 100%);   /* Warm Taupe to Taupe */

    /* Effects */
    --blur-intensity: 22px;
    --border-radius-main: 24px;
    --border-radius-subtle: 16px;
    --transition-speed: 0.3s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    /* Always show scrollbar - prevents layout shift when content loads */
    overflow-y: scroll;
    /* Force page taller than viewport to guarantee scrollbar appears */
    min-height: 100.1vh;
}

body {
    font-family: var(--font-family-main);
    background-color: var(--bg-light);
    color: var(--text-primary-light);
    line-height: 1.6;
    overflow-x: hidden;
    /* Ensure body is tall enough to trigger scrollbar */
    min-height: 100.1vh;
}

/* ============================================================================
   SKIP LINK (ACCESSIBILITY)
   ============================================================================ */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--accent-coral);
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    font-weight: 600;
    z-index: 10000;
    border-radius: 0 0 8px 0;
}

.skip-link:focus {
    top: 0;
}

/* ============================================================================
   KEYBOARD FOCUS INDICATORS (ACCESSIBILITY)
   ============================================================================ */

/* Remove default outline and add custom focus styles */
*:focus {
    outline: none;
}

/* Visible focus ring for all interactive elements */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
    outline: 3px solid var(--accent-coral);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Navigation links focus */
.nav-links a:focus-visible {
    outline: 3px solid var(--accent-coral);
    outline-offset: 4px;
    background: rgba(176, 137, 104, 0.1);
    border-radius: 8px;
}

/* Button focus styles */
.btn-primary:focus-visible,
.btn-gradient-large:focus-visible,
.btn-glass-large:focus-visible {
    outline: 3px solid white;
    outline-offset: 3px;
    box-shadow: 0 0 0 6px rgba(176, 137, 104, 0.4);
}

/* Slider dots focus */
.slider-dot:focus-visible {
    outline: 3px solid white;
    outline-offset: 4px;
    transform: scale(1.3);
    box-shadow: 0 0 0 6px rgba(176, 137, 104, 0.5);
}

/* Card focus states */
.service-card:focus-visible,
.area-card:focus-visible,
.testimonial-card:focus-visible,
.faq-item:focus-visible {
    outline: 3px solid var(--accent-coral);
    outline-offset: 4px;
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(176, 137, 104, 0.25);
}

/* Modal close button focus */
.modal-close:focus-visible,
.close-button:focus-visible {
    outline: 3px solid var(--accent-coral);
    outline-offset: 2px;
    background: rgba(176, 137, 104, 0.3);
    transform: scale(1.15);
}

/* Social button focus */
.social-button:focus-visible {
    outline: 3px solid var(--accent-coral);
    outline-offset: 4px;
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(176, 137, 104, 0.3);
}

/* Form input focus - enhanced */
.form-group input:focus-visible,
.form-group select:focus-visible,
.form-group textarea:focus-visible,
.inline-form-input:focus-visible,
.inline-form-select:focus-visible,
.inline-form-textarea:focus-visible {
    outline: 3px solid var(--accent-coral);
    outline-offset: 2px;
    border-color: var(--accent-coral);
}

/* Mobile menu toggle focus */
.mobile-menu-toggle:focus-visible {
    outline: 3px solid var(--accent-coral);
    outline-offset: 4px;
    border-radius: 8px;
}

/* Logo focus */
.nav-logo:focus-visible,
.footer-logo:focus-visible {
    outline: 3px solid var(--accent-coral);
    outline-offset: 4px;
    border-radius: 12px;
}

/* ============================================================================
   ANIMATED BACKGROUND
   ============================================================================ */
.vision-pro-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: linear-gradient(180deg, #f5f5f7 0%, #e5e5ea 100%);
}

.gradient-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation: float 20s ease-in-out infinite;
}

.blob-1 {
    width: 500px;
    height: 500px;
    background: var(--gradient-primary);
    top: -250px;
    left: -250px;
    animation-delay: 0s;
}

.blob-2 {
    width: 600px;
    height: 600px;
    background: var(--gradient-secondary);
    top: 50%;
    right: -300px;
    animation-delay: 7s;
}

.blob-3 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #d9c7b8 0%, #b08968 100%);
    bottom: -200px;
    left: 20%;
    animation-delay: 14s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(100px, -100px) scale(1.1);
    }
    66% {
        transform: translate(-50px, 100px) scale(0.9);
    }
}

/* ============================================================================
   NAVIGATION
   ============================================================================ */
.nav-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0 2rem;
    backdrop-filter: blur(var(--blur-intensity)) saturate(180%);
    background-color: var(--glass-bg-light);
    border-bottom: 1px solid var(--glass-border-light);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 600;
    color: #5d4a3a;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.nav-logo:hover {
    opacity: 0.8;
}

.nav-logo img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

/* Brand logo sizing - handles dynamic logo updates from CMS */
.brand-logo {
    max-width: 800px !important;
    max-height: 200px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    /* Hide logo initially with opacity to prevent flash of hardcoded fallback */
    /* Using opacity instead of display prevents layout shift */
    /* CMS loader will set opacity: 1 when logo URL is loaded from Firestore */
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.nav-logo .brand-logo {
    max-width: 500px !important;
    max-height: 80px !important;
}

.footer-logo .brand-logo {
    max-width: 500px !important;
    max-height: 140px !important;
}

/* Responsive logo sizing */
@media (max-width: 768px) {
    .nav-logo .brand-logo {
        max-width: 400px !important;
        max-height: 100px !important;
    }
}

@media (max-width: 480px) {
    .nav-logo .brand-logo {
        max-width: 300px !important;
        max-height: 80px !important;
    }
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-primary-light);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color var(--transition-speed);
}

.nav-links a:hover {
    color: var(--accent-coral);
}

/* ============================================================================
   BUTTONS
   ============================================================================ */
.btn-primary,
.btn-gradient-large,
.btn-glass-large {
    padding: 12px 32px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-speed);
    border: none;
    cursor: pointer;
}

/* Smaller buttons in navigation */
.nav-links .btn-primary {
    padding: 6px 16px;
    font-size: 0.85rem;
    border-radius: 30px;
    box-shadow: 0 2px 8px rgba(176, 137, 104, 0.25);
}

.nav-links .btn-primary:hover {
    box-shadow: 0 4px 12px rgba(176, 137, 104, 0.35);
}

.btn-primary,
.btn-gradient-large {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 12px var(--accent-coral-vibrant);
}

.btn-primary:hover,
.btn-gradient-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--accent-coral-vibrant);
}

.btn-glass-large {
    background: var(--glass-bg-light);
    border: 1px solid var(--glass-border-light);
    color: var(--text-primary-light);
    backdrop-filter: blur(var(--blur-intensity));
}

.btn-glass-large:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: translateY(-2px);
}

/* ============================================================================
   HERO SECTION
   ============================================================================ */
.hero-section {
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 2rem 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Hero Slider */
.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-slide-overlay {
    position: absolute;
    bottom: 2rem;
    bottom: calc(2rem + env(safe-area-inset-bottom)); /* iOS safe area */
    left: 2rem;  /* Position from left edge */
    left: calc(2rem + env(safe-area-inset-left)); /* iOS safe area */
    transform: translateY(20px);  /* Initial offset (no X centering) */
    background: var(--glass-bg-light);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--glass-border-light);
    border-radius: var(--border-radius-subtle);
    padding: 1.5rem 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transition: all 0.6s ease 0.3s;
    z-index: 1;
    max-width: 380px;
    width: calc(100% - 4rem);  /* Maintain side margins */
    width: calc(100% - 4rem - env(safe-area-inset-left) - env(safe-area-inset-right)); /* iOS safe area */
    text-align: left;
    /* Fix overlay stacking - hide non-active overlays completely */
    visibility: hidden;
    pointer-events: none;
}

.hero-slide.active .hero-slide-overlay {
    opacity: 1;
    transform: translateY(0);  /* Remove X centering transform */
    visibility: visible;
    pointer-events: auto;
}

.hero-slide-overlay-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #3a2817;
    margin-bottom: 0.5rem;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
}

.hero-slide-overlay-price {
    font-size: 1.75rem;
    font-weight: 800;
    color: #8b5a3c;
    margin-bottom: 0.75rem;
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.4);
}

.hero-slide-overlay-details {
    display: flex;
    gap: 1.5rem;
    font-size: 0.95rem;
    color: var(--text-secondary-light);
    font-weight: 500;
    justify-content: flex-start;
}

.hero-slide-overlay-detail {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.hero-slide-overlay-detail-icon {
    font-size: 1.1rem;
}

/* Hero Overlay */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
        rgba(0, 0, 0, 0.6) 0%,
        rgba(0, 0, 0, 0.4) 50%,
        rgba(0, 0, 0, 0.6) 100%);
    z-index: 1;
}

/* Hero Content */
.hero-content {
    max-width: 900px;
    margin: 0 auto; /* Center the content */
    position: relative;
    z-index: 2;
}

/* Slider Navigation Dots */
.slider-nav {
    position: absolute !important;
    bottom: 2rem !important;
    bottom: calc(2rem + env(safe-area-inset-bottom)) !important; /* iOS safe area */
    left: 50% !important;
    right: auto !important;
    top: auto !important;
    transform: translateX(-50%) !important;
    display: flex !important;
    gap: 0.75rem;
    z-index: 3;
    justify-content: center;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.8);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.slider-dot:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: scale(1.2);
}

.slider-dot.active {
    background: var(--accent-coral);
    border-color: var(--accent-coral);
}

.hero-title {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #b08968 0%, #c9b8a3 50%, #d9c7b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
    filter: drop-shadow(0 4px 20px rgba(176, 137, 104, 0.4));
}

.hero-subtitle {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2rem;
    line-height: 1.5;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================================================
   SECTIONS
   ============================================================================ */
.services-section,
.areas-section {
    padding: 2rem 2rem;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: clamp(2rem, 5vw, 2.75rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #b08968 0%, #c9b8a3 50%, #d9c7b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary-light);
    text-align: center;
    margin-bottom: 1.5rem;
}

/* ============================================================================
   ABOUT SECTION
   ============================================================================ */
.about-section {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, rgba(176, 137, 104, 0.03) 0%, rgba(201, 184, 163, 0.03) 100%);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-description {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-secondary-light);
    margin-bottom: 2.5rem;
}

.about-subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #b08968 0%, #c9b8a3 50%, #d9c7b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Expertise Hero Section - Full Width */
.expertise-hero-section {
    padding: 5rem 2rem;
    background: linear-gradient(135deg, rgba(176, 137, 104, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    position: relative;
    overflow: hidden;
}

.expertise-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(176, 137, 104, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 50%, rgba(118, 75, 162, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.expertise-hero-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .expertise-hero-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .expertise-hero-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.expertise-hero-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2rem;
    background: var(--glass-bg-light);
    border-radius: 16px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.expertise-hero-card:hover {
    border-color: var(--accent-coral);
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.expertise-hero-icon {
    font-size: 4rem;
}

.expertise-hero-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary-light);
    text-align: center;
    margin: 0;
}

.founder-card {
    background: var(--glass-bg-light);
    backdrop-filter: blur(var(--blur-intensity)) saturate(180%);
    border: 1px solid var(--glass-border-light);
    border-radius: var(--border-radius-main);
    padding: 2rem;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.founder-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.12);
    border-color: var(--accent-coral);
}

.founder-image {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 12px 32px var(--accent-coral-vibrant);
    border: 3px solid white;
}

.founder-initial {
    font-size: 4rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.founder-info {
    text-align: center;
}

.founder-info h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #b08968 0%, #c9b8a3 50%, #d9c7b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.founder-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent-coral);
    margin-bottom: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.founder-bio {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-secondary-light);
    margin-bottom: 1.5rem;
}

.founder-stats {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--glass-border-light);
}

.founder-stats .stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.founder-stats .stat-icon {
    font-size: 1.75rem;
}

.founder-stats .stat-item span:last-child {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary-light);
}

/* ============================================================================
   TESTIMONIALS SECTION
   ============================================================================ */
.testimonials-section {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, rgba(201, 184, 163, 0.03) 0%, rgba(176, 137, 104, 0.03) 100%);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2.5rem;
}

.testimonial-card {
    background: var(--glass-bg-light);
    backdrop-filter: blur(var(--blur-intensity)) saturate(180%);
    border: 1px solid var(--glass-border-light);
    border-radius: var(--border-radius-main);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    transition: all var(--transition-speed);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(176, 137, 104, 0.15);
    border-color: var(--accent-coral);
}

.testimonial-stars {
    display: flex;
    gap: 0.25rem;
    font-size: 1.25rem;
}

.testimonial-stars .star {
    color: #fbbf24;
    filter: drop-shadow(0 2px 4px rgba(251, 191, 36, 0.3));
}

.testimonial-text {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-secondary-light);
    font-style: italic;
    flex: 1;
    position: relative;
    padding-left: 1.25rem;
}

.testimonial-text::before {
    content: '"';
    position: absolute;
    left: 0;
    top: -0.25rem;
    font-size: 3rem;
    color: var(--accent-coral);
    opacity: 0.3;
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    border-top: 1px solid var(--glass-border-light);
    padding-top: 1rem;
}

.testimonial-author strong {
    font-size: 1.05rem;
    color: var(--text-primary-light);
    font-weight: 600;
}

.testimonial-location {
    font-size: 0.9rem;
    color: var(--accent-coral);
    font-weight: 500;
}

/* ============================================================================
   SERVICE CARDS
   ============================================================================ */
/* Featured Service Card */
.featured-service-card {
    background: var(--gradient-primary);
    border-radius: var(--border-radius-main);
    padding: 2rem;
    margin: 1.5rem 0 2rem;
    box-shadow: 0 20px 60px rgba(176, 137, 104, 0.3);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.featured-service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 70px rgba(176, 137, 104, 0.4);
}

.featured-service-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.featured-service-card .service-icon {
    margin-bottom: 1rem;
}

.featured-service-card h3 {
    font-size: 1.85rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
}

.featured-service-card p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.featured-service-card .service-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 0.5rem;
    max-width: 1000px;
    margin: 0 auto;
    text-align: left;
}

.featured-service-card .service-features li {
    color: white;
    font-weight: 500;
    font-size: 0.95rem;
}

.featured-service-card .service-features li::before {
    color: var(--accent-teal);
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.services-grid-2col {
    grid-template-columns: repeat(2, 1fr);
}

.service-card {
    background: var(--glass-bg-light);
    backdrop-filter: blur(var(--blur-intensity)) saturate(180%);
    border: 1px solid var(--glass-border-light);
    border-radius: var(--border-radius-main);
    padding: 2rem;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, #b08968 0%, #c9b8a3 50%, #d9c7b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.service-tagline {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--accent-coral);
    margin-bottom: 0.75rem;
}

.service-card p {
    color: var(--text-secondary-light);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.service-features {
    list-style: none;
    padding: 0;
}

.service-features li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-primary-light);
}

.service-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-teal);
    font-weight: bold;
}

/* ============================================================================
   AREAS SECTION
   ============================================================================ */
.areas-section {
    background: var(--glass-bg-light);
    backdrop-filter: blur(var(--blur-intensity));
}

.areas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.25rem;
    margin-top: 2rem;
}

.area-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(var(--blur-intensity));
    border: 1px solid var(--glass-border-light);
    border-radius: var(--border-radius-subtle);
    padding: 1.5rem;
    text-align: center;
    transition: all var(--transition-speed);
}

.area-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.area-card h3 {
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary-light);
}

.area-card p {
    color: var(--text-secondary-light);
    line-height: 1.5;
    font-size: 0.95rem;
}

/* ============================================================================
   FAQ SECTION
   ============================================================================ */
.faq-section {
    padding: 3rem 2rem;
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.faq-item {
    background: var(--glass-bg-light);
    backdrop-filter: blur(var(--blur-intensity));
    border: 1px solid var(--glass-border-light);
    border-radius: var(--border-radius-subtle);
    padding: 1.75rem;
    transition: all var(--transition-speed);
}

.faq-item:hover {
    border-color: var(--accent-coral);
    box-shadow: 0 8px 25px rgba(176, 137, 104, 0.15);
    transform: translateY(-2px);
}

.faq-item h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary-light);
    line-height: 1.4;
}

.faq-answer p {
    color: var(--text-secondary-light);
    line-height: 1.7;
    font-size: 1.05rem;
}

/* ============================================================================
   CTA SECTION
   ============================================================================ */
.cta-section {
    text-align: center;
    padding: 3rem 2rem;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #b08968 0%, #c9b8a3 50%, #d9c7b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cta-content p {
    font-size: 1.15rem;
    color: var(--text-secondary-light);
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================================================
   FOOTER
   ============================================================================ */
.footer {
    background: var(--glass-bg-light);
    backdrop-filter: blur(var(--blur-intensity));
    border-top: 1px solid var(--glass-border-light);
    padding: 3rem 2rem 1.5rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary-light);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--text-secondary-light);
    text-decoration: none;
    transition: color var(--transition-speed);
}

.footer-section a:hover {
    color: var(--accent-coral);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #5d4a3a;
}

.footer-logo img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.footer-section p {
    color: var(--text-secondary-light);
    line-height: 1.5;
    font-size: 0.95rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--glass-border-light);
    color: var(--text-secondary-light);
    font-size: 0.9rem;
}

/* Newsletter Form */
.newsletter-form {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid var(--glass-border-light);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--accent-coral);
    box-shadow: 0 0 0 3px rgba(176, 137, 104, 0.1);
}

.newsletter-submit {
    padding: 0.75rem 1.5rem;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.newsletter-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(176, 137, 104, 0.3);
}

/* Social Links */
.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--glass-bg-light);
    border: 1px solid var(--glass-border-light);
    border-radius: 50%;
    color: var(--text-primary-light);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--gradient-primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(176, 137, 104, 0.3);
}

/* ============================================================================
   STATS COUNTER
   ============================================================================ */
.stats-counter {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin: 2.5rem 0;
    padding: 2rem;
    background: var(--glass-bg-light);
    backdrop-filter: blur(var(--blur-intensity));
    border: 1px solid var(--glass-border-light);
    border-radius: var(--border-radius-subtle);
}

.stat-counter-item {
    text-align: center;
}

.stat-counter-number {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #b08968 0%, #c9b8a3 50%, #d9c7b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.stat-counter-label {
    font-size: 0.95rem;
    color: var(--text-secondary-light);
    font-weight: 600;
    margin-top: 0.5rem;
}

/* ============================================================================
   MOBILE NAVIGATION
   ============================================================================ */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-primary-light);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ============================================================================
   SCROLL ANIMATIONS
   ============================================================================ */
.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================================
   RESPONSIVE DESIGN
   ============================================================================ */
@media (max-width: 1024px) {
    .services-grid-2col {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background: var(--glass-bg-light);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 5rem 2rem 2rem;
        gap: 1.5rem;
        transition: right 0.3s ease;
        z-index: 1000;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.1rem;
        padding: 0.75rem 0;
        border-bottom: 1px solid var(--glass-border-light);
    }

    .stats-counter {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        padding: 1.5rem;
    }

    .stat-counter-number {
        font-size: 2.25rem;
    }

    .hero-section {
        min-height: 70vh;
        padding: 5rem 1.5rem 2rem;
    }

    .about-section {
        padding: 3rem 1.5rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .about-description {
        font-size: 1rem;
    }

    .expertise-grid {
        grid-template-columns: 1fr;
    }

    .founder-image {
        width: 120px;
        height: 120px;
    }

    .founder-initial {
        font-size: 3rem;
    }

    .founder-info h3 {
        font-size: 1.5rem;
    }

    .founder-stats {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .testimonials-section {
        padding: 3rem 1.5rem;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .services-section,
    .areas-section,
    .cta-section {
        padding: 2.5rem 1.5rem;
    }

    .services-grid,
    .services-grid-2col,
    .areas-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .service-card,
    .area-card {
        padding: 1.5rem;
    }

    .featured-service-card {
        padding: 2rem 1.5rem;
    }

    .featured-service-card h3 {
        font-size: 1.75rem;
    }

    .featured-service-card p {
        font-size: 1rem;
    }

    .featured-service-card .service-features {
        grid-template-columns: 1fr;
    }

    .hero-slide-overlay {
        /* Mobile: Full-width centered card */
        bottom: 1rem;
        left: 1rem;
        right: 1rem;
        transform: translateY(20px); /* Override desktop left positioning */
        padding: 1.25rem 1.5rem;
        max-width: 100%;
        text-align: center; /* Center text on mobile */
        /* Stronger background for readability on small screens */
        background: rgba(240, 240, 245, 0.95);
        backdrop-filter: blur(25px) saturate(180%);
    }

    .hero-slide.active .hero-slide-overlay {
        transform: translateY(0); /* Smooth slide up */
    }

    .hero-slide-overlay-title {
        font-size: 1.15rem;
        margin-bottom: 0.4rem;
    }

    .hero-slide-overlay-price {
        font-size: 1.35rem;
        margin-bottom: 0.65rem;
    }

    .hero-slide-overlay-details {
        gap: 0.75rem;
        font-size: 0.85rem;
        justify-content: center; /* Center details on mobile */
        flex-wrap: wrap; /* Allow wrapping if needed */
    }

    .hero-cta,
    .cta-buttons {
        flex-direction: column;
    }

    .btn-primary,
    .btn-gradient-large,
    .btn-glass-large {
        width: 100%;
        max-width: 300px;
    }

    .footer {
        padding: 2.5rem 1.5rem 1.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .footer-logo {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .nav-logo span {
        display: none;
    }

    .nav-links a:not(.btn-primary) {
        display: none;
    }

    .hero-section {
        min-height: 60vh;
        padding: 4.5rem 1rem 1.5rem;
    }

    .hero-title {
        margin-bottom: 0.75rem;
    }

    .hero-subtitle {
        margin-bottom: 1.5rem;
    }

    .services-section,
    .areas-section,
    .cta-section {
        padding: 2rem 1rem;
    }

    .section-subtitle {
        margin-bottom: 1.5rem;
    }

    .service-card,
    .area-card {
        padding: 1.25rem;
    }

    .footer {
        padding: 2rem 1rem 1rem;
    }
}

/* ============================================================================
   TOAST NOTIFICATION
   ============================================================================ */
.toast-notification {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 10000;
    animation: slideInUp 0.3s ease;
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: var(--glass-bg-light);
    backdrop-filter: blur(var(--blur-intensity)) saturate(180%);
    border: 1px solid var(--glass-border-light);
    border-radius: var(--border-radius-subtle);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    min-width: 300px;
}

.toast-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    font-weight: 700;
    font-size: 1.1rem;
}

.toast-message {
    color: var(--text-primary-light);
    font-weight: 500;
}

@keyframes slideInUp {
    from {
        transform: translateY(100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Form Styles */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary-light);
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--glass-border-light);
    border-radius: var(--border-radius-subtle);
    background: var(--glass-bg-light);
    font-family: var(--font-family-main);
    font-size: 1rem;
    color: var(--text-primary-light);
    transition: all var(--transition-speed);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-coral);
    box-shadow: 0 0 0 3px var(--accent-coral-vibrant);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.button-glass-subtle {
    background: var(--glass-bg-light);
    border: 1px solid var(--glass-border-light);
    color: var(--text-primary-light);
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-speed);
}

.button-glass-subtle:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* ========================================
   MODAL STYLES
   ======================================== */

/* Modal Overlay */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Modal Content Container */
.modal-content {
    background: #f9fafb;
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid #e5e7eb;
    border-radius: var(--border-radius-main);
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
    position: relative;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-medium {
    max-width: 650px;
}

.modal-large, .wide {
    max-width: 1000px;
}

.modal-small {
    max-width: 450px;
}

/* Modal Header */
.modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--glass-border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a1a1a;
    background: linear-gradient(135deg, #b08968 0%, #c9b8a3 50%, #d9c7b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Modal Body */
.modal-body {
    padding: 1.5rem 2rem;
}

.modal-body p {
    color: #4b5563;
    line-height: 1.6;
}

.modal-body small {
    color: #6b7280;
}

/* Modal Footer */
.modal-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--glass-border-light);
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    align-items: center;
}

/* Modal Close Button */
.modal-close, .close-button {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    background: rgba(0, 0, 0, 0.05);
    border: none;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    color: #333;
    transition: all 0.3s ease;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    padding: 0;
    z-index: 10;
}

.modal-close:hover, .close-button:hover {
    background: rgba(176, 137, 104, 0.2);
    color: var(--accent-coral);
    transform: scale(1.1);
}

/* Form Fields in Modals */
.modal-body form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.modal-body label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #111827;
    font-size: 1rem;
}

.modal-body input[type="text"],
.modal-body input[type="email"],
.modal-body input[type="tel"],
.modal-body select,
.modal-body textarea {
    width: 100%;
    padding: 0.875rem 1.125rem;
    border: 2px solid #d1d5db;
    border-radius: 10px;
    background: #ffffff;
    color: #111827;
    font-size: 1.05rem;
    font-family: inherit;
    transition: all 0.3s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.modal-body input[type="text"]:focus,
.modal-body input[type="email"]:focus,
.modal-body input[type="tel"]:focus,
.modal-body select:focus,
.modal-body textarea:focus {
    outline: none;
    border-color: #b08968;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(176, 137, 104, 0.25);
}

.modal-body input[type="text"]::placeholder,
.modal-body input[type="email"]::placeholder,
.modal-body input[type="tel"]::placeholder,
.modal-body textarea::placeholder {
    color: #9ca3af;
}

.modal-body textarea {
    resize: vertical;
    min-height: 100px;
}

.modal-body select {
    cursor: pointer;
}

/* Form Field Container */
.modal-body > div {
    display: flex;
    flex-direction: column;
}

/* Toast Notification */
.toast-notification {
    position: fixed;
    top: 2rem;
    right: 2rem;
    background: linear-gradient(135deg, #b08968 0%, #c9b8a3 100%);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius-main);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    z-index: 10001;
    animation: toastSlideIn 0.3s ease;
    display: none;
}

@keyframes toastSlideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.toast-icon {
    font-size: 1.5rem;
    background: rgba(255, 255, 255, 0.3);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toast-message {
    font-size: 1rem;
    font-weight: 500;
}

/* ============================================================================
   BUTTON SPINNER ANIMATION
   ============================================================================ */
.button-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: button-spin 0.6s linear infinite;
    vertical-align: middle;
    margin-right: 8px;
}

@keyframes button-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .modal-content {
        max-width: 95%;
    }
    
    .modal-header {
        padding: 1.25rem 1.5rem;
    }
    
    .modal-body {
        padding: 1.5rem;
    }
    
    .modal-footer {
        padding: 1.25rem 1.5rem;
        flex-direction: column;
    }
    
    .modal-footer button {
        width: 100%;
    }
    
    .modal-close, .close-button {
        top: 1.25rem;
        right: 1.5rem;
    }
    
    .toast-notification {
        top: 1rem;
        right: 1rem;
        left: 1rem;
        max-width: calc(100% - 2rem);
    }
}


/* Hide overlay during CMS load to prevent text jump */
.hero-slider[data-cms-loading] .hero-slide-overlay {
    opacity: 0 !important;
    visibility: hidden;
}

/* ============================================================================
   IPHONE/IOS RESPONSIVE FIXES
   ============================================================================ */

/* Fix #1: Increase touch target size for slider dots (Apple HIG minimum 44x44px) */
.slider-dot {
    position: relative;
}

.slider-dot::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;  /* Apple minimum touch target */
    height: 44px;
    border-radius: 50%;
    /* Invisible but tappable area */
}

/* Fix #2: Dynamic viewport height for iOS Safari (prevents jump when toolbar hides) */
.hero-section {
    min-height: 85dvh; /* Dynamic viewport height */
    min-height: 85vh; /* Fallback for older browsers */
}

@media (max-width: 768px) {
    .hero-section {
        min-height: 70dvh;
        min-height: 70vh; /* Fallback */
    }

    /* Mobile: safe area with extra space for dots */
    .slider-nav {
        bottom: calc(1rem + env(safe-area-inset-bottom));
    }

    /* Note: hero-slide-overlay positioning is handled in main @media (max-width: 768px) section */
}

@media (max-width: 480px) {
    .hero-section {
        min-height: 60dvh;
        min-height: 60vh; /* Fallback */
    }
}

/* Fix #3: iOS smooth momentum scrolling */
body {
    -webkit-overflow-scrolling: touch;
    overflow-scrolling: touch;
}

.modal-content {
    -webkit-overflow-scrolling: touch;
}

/* Fix #4: Prevent iOS auto-zoom on form inputs (min 16px font-size required) */
.modal-body input[type='text'],
.modal-body input[type='email'],
.modal-body input[type='tel'],
.modal-body select,
.modal-body textarea,
input, select, textarea {
    font-size: max(1rem, 16px); /* Ensures minimum 16px to prevent zoom */
}

/* Fix #5: Modal fixes for iOS keyboard */
.modal {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* iOS specific modal handling */
@supports (-webkit-touch-callout: none) {
    .modal {
        align-items: flex-start;
        padding-top: calc(1rem + env(safe-area-inset-top));
        padding-bottom: calc(1rem + env(safe-area-inset-bottom));
    }

    .modal-content {
        margin: auto;
        margin-top: 2rem;
        margin-bottom: 2rem;
    }
}

/* Prevent body scroll when modal open (iOS fix) */
body.modal-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}

/* Fix #6: Prevent accidental zoom on double-tap */
button, a, img, .slider-dot, .btn-primary {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

/* Prevent text selection interference with swipe gestures */
.hero-slider, .hero-slide {
    -webkit-user-select: none;
    user-select: none;
}

/* Fix #7: Improve text contrast on mobile */
@media (max-width: 768px) {
    .hero-title {
        /* Darker gradient for better contrast on small screens */
        background: linear-gradient(135deg, #9a754e 0%, #b08968 50%, #c9b8a3 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        /* Add subtle text shadow for better legibility */
        filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
    }

    .hero-subtitle {
        /* Ensure high contrast */
        color: rgba(255, 255, 255, 0.98);
        text-shadow: 0 2px 16px rgba(0, 0, 0, 0.7);
    }

    .hero-slide-overlay-title,
    .hero-slide-overlay-price {
        /* Improve contrast on glassmorphic background */
        text-shadow: 0 1px 3px rgba(255, 255, 255, 0.5);
    }
}

/* ============================================================================
   CMS CONTENT LOADING STATES (Prevent FOUC)
   ============================================================================ */

/* Hide CMS-managed content while loading to prevent flash */
[data-cms-loading="true"] {
    opacity: 0 !important;
    pointer-events: none;
    transition: none !important;
}

/* Smoothly fade in content once loaded */
[data-cms-loaded="true"] {
    opacity: 1 !important;
    pointer-events: auto;
    transition: opacity 0.4s ease-in !important;
}

/* Prevent slider text flash during initial load */
.hero-slider[data-cms-loading="true"] .hero-slide-overlay {
    opacity: 0 !important;
    visibility: hidden !important;
}

/* Loading spinner for CMS content areas */
.cms-loading-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid rgba(176, 137, 104, 0.2);
    border-top-color: var(--accent-coral);
    border-radius: 50%;
    animation: cms-spinner-spin 0.8s linear infinite;
    margin: 2rem auto;
}

@keyframes cms-spinner-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ============================================================================
   SOCIAL MEDIA BUTTONS (2x2 GRID)
   ============================================================================ */
.social-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--glass-bg-light);
    backdrop-filter: blur(var(--blur-intensity)) saturate(180%);
    border: 1px solid var(--glass-border-light);
    border-radius: 16px;
    text-decoration: none;
    color: var(--text-primary-light);
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.social-button:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
    border-color: var(--accent-coral);
    background: rgba(255, 255, 255, 0.9);
}

.social-button svg {
    transition: all 0.3s ease;
}

.social-button:hover svg {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .social-button {
        padding: 1.25rem;
        font-size: 1rem;
        gap: 0.75rem;
    }

    .social-button svg {
        width: 28px;
        height: 28px;
    }
}

/* ============================================================================
   INLINE CONTACT FORM STYLES
   ============================================================================ */
.contact-section-bg {
    background: linear-gradient(180deg, rgba(176, 137, 104, 0.05) 0%, rgba(78, 205, 196, 0.05) 100%);
}

.contact-subtitle-narrow {
    max-width: 700px;
    margin: 0 auto 3rem;
}

.inline-contact-container {
    max-width: 700px;
    margin: 0 auto;
    background: var(--glass-bg-light);
    backdrop-filter: blur(var(--blur-intensity)) saturate(180%);
    border: 1px solid var(--glass-border-light);
    border-radius: var(--border-radius-main);
    padding: 3rem 2.5rem;
}

.inline-form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.inline-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.inline-form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-primary-light);
}

.inline-form-input,
.inline-form-select,
.inline-form-textarea {
    width: 100%;
    padding: 0.875rem 1.125rem;
    border: 2px solid #d1d5db;
    border-radius: 10px;
    background: #ffffff;
    color: #111827;
    font-size: 1.05rem;
    font-family: inherit;
    transition: all 0.3s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.inline-form-input:focus,
.inline-form-select:focus,
.inline-form-textarea:focus {
    outline: none;
    border-color: var(--accent-coral);
    box-shadow: 0 0 0 3px rgba(176, 137, 104, 0.15);
}

.inline-form-select {
    cursor: pointer;
}

.inline-form-textarea {
    resize: vertical;
    min-height: 100px;
}

.inline-form-label-secondary {
    font-weight: 400;
    color: var(--text-secondary-light);
}

.inline-form-submit {
    width: 100%;
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Social section styling */
.social-section-container {
    max-width: 700px;
    margin: 4rem auto 0;
    text-align: center;
}

.social-section-heading {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, var(--accent-taupe) 0%, var(--accent-coral) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.social-links-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .inline-contact-container {
        padding: 2rem 1.5rem;
    }

    .inline-form-row {
        grid-template-columns: 1fr;
    }
}

/* ============================================================================
   IPHONE SCREENSHOT GALLERY
   ============================================================================ */

.iphone-gallery-container {
    position: relative;
    text-align: center;
}

/* iPhone Mockup */
.iphone-mockup {
    position: relative;
    width: 320px;
    margin: 0 auto;
    background: linear-gradient(145deg, #1d1d1f 0%, #2d2d2f 50%, #1d1d1f 100%);
    border-radius: 42px;
    padding: 14px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

/* iPhone Notch */
.iphone-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 140px;
    height: 28px;
    background: #1d1d1f;
    border-radius: 0 0 18px 18px;
    z-index: 10;
    box-shadow: inset 0 -2px 4px rgba(0, 0, 0, 0.3);
}

.iphone-notch::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 6px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
}

/* iPhone Screen */
.iphone-screen {
    position: relative;
    width: 100%;
    aspect-ratio: 390 / 844;
    background: #000;
    border-radius: 32px;
    overflow: hidden;
}

/* iPhone Bottom Bar (Home Indicator) */
.iphone-bottom-bar {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 140px;
    height: 5px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    z-index: 10;
}

/* Screenshot Carousel */
.screenshot-carousel {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.screenshot-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.screenshot-slide {
    min-width: 100%;
    height: 100%;
    width: 100%;
    object-fit: contain;
    object-position: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.screenshot-slide.active {
    opacity: 1;
}

/* Gallery Controls */
.gallery-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.gallery-nav-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid rgba(176, 137, 104, 0.3);
    background: rgba(176, 137, 104, 0.1);
    backdrop-filter: blur(10px);
    color: var(--accent-coral);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.gallery-nav-btn:hover {
    background: rgba(176, 137, 104, 0.2);
    border-color: var(--accent-coral);
    transform: scale(1.05);
}

.gallery-nav-btn:active {
    transform: scale(0.95);
}

.gallery-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Gallery Dots */
.gallery-dots {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.gallery-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(176, 137, 104, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-dot.active {
    width: 24px;
    border-radius: 4px;
    background: var(--accent-coral);
}

.gallery-dot:hover:not(.active) {
    background: rgba(176, 137, 104, 0.5);
    transform: scale(1.2);
}

/* Screenshot Labels */
.screenshot-labels {
    margin-top: 1.5rem;
    position: relative;
    height: 30px;
}

.screenshot-label {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary-light);
    opacity: 0;
    transition: opacity 0.3s ease;
    white-space: nowrap;
}

.screenshot-label.active {
    opacity: 1;
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .iphone-mockup {
        width: 280px;
    }

    .gallery-nav-btn {
        width: 40px;
        height: 40px;
    }

    .screenshot-label {
        font-size: 1rem;
    }
}

/* Touch Swipe Support */
.screenshot-carousel.dragging {
    cursor: grabbing;
}

.screenshot-carousel.dragging .screenshot-track {
    transition: none;
}
/* ============================================================================
   CRM SHOWCASE STYLES
   Add these to the end of styles.css
   ============================================================================ */

/* CRM Screenshot Gallery */
.crm-screenshot-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.screenshot-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius-main);
    background: var(--glass-bg-light);
    backdrop-filter: blur(var(--blur-intensity));
    border: 1px solid var(--glass-border-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.screenshot-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.screenshot-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--border-radius-main) var(--border-radius-main) 0 0;
}

.screenshot-caption {
    padding: 1.5rem;
    text-align: center;
}

.screenshot-caption h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary-light);
}

.screenshot-caption p {
    font-size: 0.95rem;
    color: var(--text-secondary-light);
    line-height: 1.6;
}

/* Admin Screenshot Showcase */
.admin-screenshot-showcase {
    max-width: 1200px;
    margin: 0 auto;
}

/* Integration Flow Diagram */
.integration-flow {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto 3rem;
    padding: 3rem;
    background: var(--glass-bg-light);
    backdrop-filter: blur(var(--blur-intensity));
    border: 1px solid var(--glass-border-light);
    border-radius: var(--border-radius-main);
}

.flow-step {
    position: relative;
    text-align: center;
    flex: 1;
    min-width: 150px;
}

.flow-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-coral) 0%, var(--accent-lavender) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    box-shadow: 0 10px 30px rgba(176, 137, 104, 0.3);
}

.flow-step h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary-light);
}

.flow-step p {
    font-size: 0.95rem;
    color: var(--text-secondary-light);
}

.flow-arrow {
    position: absolute;
    right: -2.5rem;
    top: 35px;
    font-size: 2rem;
    color: var(--accent-coral);
    display: none;
}

/* Show arrows only on desktop */
@media (min-width: 768px) {
    .flow-step:not(:last-child) .flow-arrow {
        display: block;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .crm-screenshot-gallery {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .integration-flow {
        flex-direction: column;
        gap: 1rem;
        padding: 2rem 1.5rem;
    }

    .flow-step {
        width: 100%;
    }

    .flow-arrow {
        display: none !important;
    }

    /* Stack admin screenshots vertically on mobile */
    .admin-screenshot-showcase > div:last-child {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 480px) {
    .screenshot-caption h4 {
        font-size: 1.1rem;
    }

    .flow-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }
}

/* Loading State for Images */
.screenshot-item img,
.admin-screenshot-showcase img {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s ease-in-out infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.screenshot-item img[src],
.admin-screenshot-showcase img[src] {
    animation: none;
    background: none;
}
