/* ================================================
   FLORA Y FIESTA — Premium Design System
   Palette: Ivory · Champagne · Blush · Gold
   Typography: Cormorant Garamond + Inter
   ================================================ */

/* ========== Design Tokens ========== */
:root {
    /* Color Palette */
    --ivory:        #FAFAF7;
    --champagne:    #F5EDE0;
    --blush:        #EDCFC4;
    --rose-dust:    #C4939B;
    --rose-deep:    #A47078;
    --gold:         #C8A96E;
    --gold-light:   #E8D5A8;
    --gold-muted:   #9E845A;
    --warm-brown:   #5C4A3E;
    --pearl:        #D8D0C8;
    --sage:         #A8B4A0;

    /* Semantic */
    --bg-color:     var(--ivory);
    --text-color:   #2E2018;
    --text-muted:   #7A6A5E;
    --text-light:   #A8998E;
    --primary:      var(--rose-dust);
    --primary-hover: var(--rose-deep);
    --accent:       var(--gold);

    /* Surfaces */
    --card-bg:      rgba(255, 255, 255, 0.88);
    --card-border:  rgba(196, 147, 155, 0.10);
    --card-border-hover: rgba(196, 147, 155, 0.24);
    --surface:      rgba(250, 245, 238, 0.55);
    --divider:      rgba(196, 147, 155, 0.10);

    /* Gradients */
    --gradient-hero:  linear-gradient(160deg, #FDFBF8 0%, #F8F1E8 45%, #F5EDE0 100%);
    --gradient-primary: linear-gradient(135deg, var(--rose-dust) 0%, var(--rose-deep) 100%);
    --gradient-gold:  linear-gradient(135deg, #C8A96E 0%, #E8D5A8 50%, #C8A96E 100%);
    --gradient-text:  linear-gradient(135deg, #9E6870 0%, #C4939B 45%, #C8A96E 100%);

    /* Shadows */
    --shadow-xs:    0 1px 3px rgba(60, 38, 24, 0.05), 0 1px 6px rgba(60, 38, 24, 0.04);
    --shadow-sm:    0 2px 8px rgba(60, 38, 24, 0.06), 0 4px 20px rgba(60, 38, 24, 0.05);
    --shadow-md:    0 6px 24px rgba(60, 38, 24, 0.08), 0 12px 40px rgba(60, 38, 24, 0.06);
    --shadow-lg:    0 16px 56px rgba(60, 38, 24, 0.10), 0 32px 80px rgba(60, 38, 24, 0.08);
    --shadow-rose:  0 6px 24px rgba(196, 147, 155, 0.20);
    --shadow-card:  0 1px 3px rgba(60, 38, 24, 0.04), 0 2px 10px rgba(60, 38, 24, 0.03);

    /* Border Radius */
    --radius-sm:    8px;
    --radius-md:    16px;
    --radius-lg:    24px;
    --radius-xl:    32px;
    --radius-full:  100px;

    /* Spacing */
    --container-width: 1120px;
    --section-gap: 7rem;

    /* Typography */
    --font-serif:   'Cormorant Garamond', 'Georgia', serif;
    --font-sans:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Transitions */
    --ease-out:     cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ease-spring:  cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-expo:    cubic-bezier(0.19, 1, 0.22, 1);
    --t-fast:       0.2s;
    --t-base:       0.35s;
    --t-slow:       0.6s;
}

/* ========== Dark Mode ========== */
html.dark {
    --bg-color:     #1A1612;
    --text-color:   #F0EAE2;
    --text-muted:   #9E9088;
    --text-light:   #6E6058;
    --card-bg:      rgba(40, 32, 24, 0.85);
    --card-border:  rgba(196, 147, 155, 0.10);
    --surface:      rgba(30, 24, 18, 0.7);
    --gradient-hero: linear-gradient(160deg, #1A1612 0%, #201A14 45%, #261E16 100%);
}

html.dark .hero {
    background: var(--gradient-hero);
}

html.dark .trust-content {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(196, 147, 155, 0.08);
}

html.dark .trust-number {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
}

html.dark .trust-divider {
    background: linear-gradient(180deg, transparent, rgba(196, 147, 155, 0.15), transparent);
}

html.dark .navbar {
    background: rgba(26, 22, 18, 0.92);
    border-bottom-color: rgba(240, 234, 226, 0.05);
}

html.dark .btn-secondary {
    background: rgba(40, 32, 24, 0.9);
    color: var(--text-color);
    border-color: rgba(196, 147, 155, 0.3);
}

html.dark .btn-secondary:hover {
    background: rgba(50, 40, 30, 0.95);
    border-color: rgba(196, 147, 155, 0.6);
}

html.dark .portfolio {
    background: #1A1612;
}

html.dark .portfolio-header {
    border-bottom-color: rgba(240, 234, 226, 0.06);
}

/* ========== Reduced Motion ========== */
@media (prefers-reduced-motion: reduce) {
    *:not(.navbar .logo img):not(.login-logo-container):not(.login-logo-img), 
    *:not(.navbar .logo img):not(.login-logo-container):not(.login-logo-img)::before, 
    *:not(.navbar .logo img):not(.login-logo-container):not(.login-logo-img)::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

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

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

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

body {
    font-family: var(--font-sans);
    background: var(--bg-color);
    color: var(--text-color);
    line-height: 1.7;
    overflow-x: hidden;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.portfolio-open {
    overflow: hidden;
}

/* ========== Utilities ========== */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2.5rem;
}

.visually-hidden {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.hidden {
    display: none !important;
}

:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
    border-radius: 4px;
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 4px;
    border-radius: var(--radius-sm);
}

/* ========== Skip Link ========== */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary);
    color: white;
    padding: 0.5rem 1rem;
    z-index: 9999;
    transition: top var(--t-fast) ease;
    font-family: var(--font-sans);
}

.skip-link:focus {
    top: 0;
}

/* ========== Page Loader ========== */
.page-loader {
    position: fixed;
    inset: 0;
    background: var(--ivory);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity var(--t-slow) var(--ease-out), visibility var(--t-slow) var(--ease-out);
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

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

.loader-text {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 400;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: loaderPulse 1.8s ease-in-out infinite;
}

@keyframes loaderPulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

/* No more floating emojis - noise reduction */
.floating-elements { display: none; }


/* ========== Navigation ========== */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.1rem 5%;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(250, 250, 247, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(196, 147, 155, 0.08);
    transition: background var(--t-base) ease, box-shadow var(--t-base) ease;
}

.navbar .logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: opacity var(--t-fast) ease;
}

.navbar .logo img {
    height: 58px;
    width: auto;
    display: block;
    transition: transform var(--t-base) var(--ease-out), filter var(--t-base);
    animation: floating-logo 4s ease-in-out infinite;
    filter: drop-shadow(0 4px 10px rgba(196, 147, 155, 0.12));
}

@keyframes floating-logo {
    0%, 100% { transform: translateY(0) rotate(-1.5deg) scale(1); }
    50% { transform: translateY(-8px) rotate(1.5deg) scale(1.04); }
}

.navbar .logo:hover {
    opacity: 0.85;
}

.navbar .logo:hover img {
    transform: scale(1.03);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 3rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-family: var(--font-sans);
    font-weight: 400;
    font-size: 0.8125rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: color var(--t-fast) ease;
    position: relative;
    padding: 0.35rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary);
    transition: width var(--t-base) var(--ease-expo);
}

.nav-links a:hover {
    color: var(--text-color);
}

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

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.hamburger {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--text-color);
    position: relative;
    transition: background var(--t-fast) ease;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 1.5px;
    background: var(--text-color);
    left: 0;
    transition: transform var(--t-fast) ease, opacity var(--t-fast) ease;
}

.hamburger::before { top: -7px; }
.hamburger::after  { top: 7px; }

.nav-toggle[aria-expanded="true"] .hamburger {
    background: transparent;
}

.nav-toggle[aria-expanded="true"] .hamburger::before {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .hamburger::after {
    transform: translateY(-7px) rotate(-45deg);
}

/* ========== Hero Section ========== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 9rem 2rem 8rem;
    text-align: center;
    overflow: hidden;
    background: var(--gradient-hero);
}

/* Ambient blobs */
.hero::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 50%;
    width: 900px;
    height: 700px;
    background: radial-gradient(ellipse at center,
        rgba(196, 147, 155, 0.08) 0%,
        rgba(200, 169, 110, 0.04) 40%,
        transparent 70%);
    transform: translateX(-50%);
    z-index: 0;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 10%;
    right: 10%;
    width: 500px;
    height: 400px;
    background: radial-gradient(ellipse at center,
        rgba(200, 169, 110, 0.06) 0%,
        transparent 65%);
    z-index: 0;
    pointer-events: none;
}

.hero-content {
    max-width: 680px;
    z-index: 10;
    position: relative;
    animation: heroFadeIn 1s var(--ease-expo) forwards;
    opacity: 0;
}

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

.hero-eyebrow {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: heroFadeIn 0.8s var(--ease-expo) 0.1s forwards;
}

/* Hidden legacy ::before */
.hero-content::before { display: none; }

.title {
    font-family: var(--font-serif);
    font-size: clamp(2.75rem, 7.5vw, 4.85rem);
    font-weight: 300;
    line-height: 1.1;
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
    color: var(--text-color);
    opacity: 0;
    animation: heroFadeIn 0.9s var(--ease-expo) 0.15s forwards;
}

.gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 500;
    font-style: italic;
}

.subtitle {
    font-family: var(--font-sans);
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    font-weight: 400;
    line-height: 1.85;
    letter-spacing: 0.015em;
    opacity: 0;
    animation: heroFadeIn 0.9s var(--ease-expo) 0.3s forwards;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

.button-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    width: 100%;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0;
    animation: heroFadeIn 0.9s var(--ease-expo) 0.5s forwards;
}

/* ========== Buttons ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 2.25rem;
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: var(--radius-full);
    cursor: pointer;
    text-decoration: none;
    transition: all var(--t-base) var(--ease-out);
    border: none;
    position: relative;
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient-primary);
    color: #fff;
    letter-spacing: 0.09em;
    box-shadow: 0 2px 12px rgba(164, 112, 120, 0.22), 0 1px 4px rgba(0, 0, 0, 0.05);
}

.btn-primary:hover,
.btn-primary:focus {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(164, 112, 120, 0.34), 0 2px 8px rgba(0, 0, 0, 0.06);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(164, 112, 120, 0.18);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.72);
    color: var(--text-color);
    border: 1px solid rgba(196, 147, 155, 0.18);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 4px rgba(60, 38, 24, 0.04);
    letter-spacing: 0.09em;
}

.btn-secondary:hover,
.btn-secondary:focus {
    background: rgba(255, 255, 255, 0.96);
    border-color: rgba(196, 147, 155, 0.40);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:active {
    transform: translateY(0);
}

.btn-tertiary {
    background: transparent;
    color: var(--text-color);
    border: 1px solid rgba(196, 147, 155, 0.3);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 4px rgba(60, 38, 24, 0.04);
    letter-spacing: 0.09em;
    width: 100%;
    max-width: 280px;
    margin-top: 0.5rem;
}

.btn-tertiary:hover,
.btn-tertiary:focus {
    background: rgba(196, 147, 155, 0.12);
    border-color: rgba(196, 147, 155, 0.5);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* ========== Section Base ========== */
.section-title {
    font-family: var(--font-serif);
    text-align: center;
    font-size: clamp(1.85rem, 4vw, 2.75rem);
    font-weight: 400;
    margin-bottom: 0.75rem;
    letter-spacing: -0.015em;
    color: var(--text-color);
    line-height: 1.2;
}

.section-subtitle {
    font-family: var(--font-sans);
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 4rem;
    font-weight: 400;
    line-height: 1.8;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.section-label {
    display: block;
    text-align: center;
    font-family: var(--font-sans);
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: var(--primary);
    opacity: 0.85;
    margin-bottom: 0.9rem;
}

/* ========== Testimonials Section ========== */
.testimonials {
    padding: var(--section-gap) 0 6rem;
    position: relative;
    z-index: 2;
    background: linear-gradient(180deg, var(--bg-color) 0%, rgba(196, 147, 155, 0.04) 100%);
    overflow: hidden;
    width: 100%;
    max-width: 100vw;
}

.testimonials .container {
    max-width: 100%;
    padding: 0;
}

.testimonials .section-subtitle {
    margin-bottom: 3rem;
    padding: 0 2.5rem;
}

.testimonial-carousel-wrapper {
    position: relative;
    max-width: 100%;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(45, 40, 37, 0.5);
    border: 1px solid rgba(196, 147, 155, 0.15);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--rose-dust);
}
.carousel-btn:hover {
    background: rgba(45, 40, 37, 0.85);
    border-color: rgba(196, 147, 155, 0.4);
    color: #fff;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}
.carousel-btn svg {
    width: 24px;
    height: 24px;
}
.carousel-btn.prev {
    left: 0;
}
.carousel-btn.next {
    right: 0;
}

.testimonial-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 1rem 0;
}

.testimonial-track {
    display: flex;
    flex-wrap: nowrap;
    gap: 2rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 2rem calc(50% - 170px); /* 170px for half the desktop card width (340/2) */
}

.testimonial-track::-webkit-scrollbar {
    display: none;
}

.testimonial-track > * {
    flex-shrink: 0;
    scroll-snap-align: center;
}

.testimonial-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    box-shadow: var(--shadow-card);
    transition: all var(--t-base) var(--ease-out);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex-shrink: 0;
    width: 340px;
    box-sizing: border-box;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--card-border-hover);
}

.testimonial-stars {
    font-size: 0.9rem;
    letter-spacing: 0.15em;
    color: #E8A838;
}

.testimonial-text {
    font-family: var(--font-serif);
    font-size: 0.95rem;
    color: var(--text-color);
    line-height: 1.7;
    font-style: italic;
    margin: 0;
    flex: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(196, 147, 155, 0.12);
}

.testimonial-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 600;
    flex-shrink: 0;
}

.testimonial-name {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-color);
    letter-spacing: 0.02em;
}

@media (max-width: 768px) {
    .testimonial-track {
        padding: 2rem calc(50% - 42.5vw); /* Precisely centers an 85vw card */
        gap: 1.25rem;
    }
    
    .testimonial-card {
        width: 85vw;
        max-width: 320px;
        padding: 2rem 1.75rem;
    }
    
    .testimonial-text {
        font-size: 0.95rem;
        line-height: 1.8;
    }
    
    .carousel-btn {
        width: 42px;
        height: 42px;
    }
    
    @keyframes scroll {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(calc(-50% - 0.5rem));
        }
    }
}

.testimonial-name {
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-color);
    letter-spacing: 0.02em;
}

/* ========== Features Section ========== */
.features {
    padding: var(--section-gap) 0 8rem;
    position: relative;
    z-index: 2;
}

.features .container > .section-title {
    margin-bottom: 0.6rem;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.card,
.contact-card {
    contain: layout style paint;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 3rem 2.5rem;
    box-shadow: var(--shadow-card);
    transition:
        transform var(--t-base) var(--ease-out),
        box-shadow var(--t-base) ease,
        border-color var(--t-fast) ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

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

.card:hover .card-icon {
    transform: translateY(-2px) scale(1.05);
}

.card-icon {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    transition: transform var(--t-base) var(--ease-spring);
    opacity: 0.75;
}

.card h3 {
    font-family: var(--font-serif);
    font-size: 1.45rem;
    font-weight: 500;
    margin-bottom: 0.7rem;
    color: var(--text-color);
    letter-spacing: -0.01em;
    line-height: 1.25;
}

.card p {
    font-family: var(--font-sans);
    color: var(--text-muted);
    line-height: 1.8;
    font-size: 0.9rem;
    font-weight: 400;
}

/* ========== Trust / Stats Section ========== */
.trust-section {
    padding: 2rem 0 var(--section-gap);
    position: relative;
    z-index: 2;
}

.trust-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-xl);
    max-width: 720px;
    margin: 0 auto;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.trust-stat {
    text-align: center;
    flex: 1;
    padding: 3rem 2rem;
}

.trust-number {
    display: block;
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4.5vw, 2.75rem);
    font-weight: 300;
    letter-spacing: -0.015em;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
}

.trust-label {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.68rem;
    color: var(--text-light);
    margin-top: 0.55rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 400;
}

.trust-divider {
    width: 1px;
    height: 52px;
    flex-shrink: 0;
    background: linear-gradient(180deg, transparent, rgba(196, 147, 155, 0.14), transparent);
}

/* ========== Portfolio Panel ========== */
.portfolio-overlay {
    position: fixed;
    inset: 0;
    background: rgba(30, 20, 14, 0.45);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--t-base) ease, visibility var(--t-base) ease;
}

.portfolio-overlay.active {
    opacity: 1;
    visibility: visible;
}

.portfolio {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 540px;
    height: 100vh;
    background: var(--bg-color);
    z-index: 1000;
    padding: 2.25rem 2rem 2rem;
    overflow-y: auto;
    overflow-x: hidden;
    transition: right 0.5s cubic-bezier(0.32, 0.72, 0, 1);
    box-shadow: -24px 0 80px rgba(30, 20, 14, 0.14);
}

.portfolio.visible {
    right: 0;
}

.portfolio-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.25rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--card-border);
}

.portfolio-titles {
    flex: 1;
}

.portfolio .section-title {
    text-align: left;
    margin-bottom: 0.3rem;
    font-size: 1.6rem;
    font-weight: 400;
    letter-spacing: -0.01em;
}

.portfolio .section-subtitle {
    text-align: left;
    margin-bottom: 0;
    font-size: 0.8125rem;
    color: var(--text-light);
    letter-spacing: 0.01em;
}

.close-btn {
    background: none;
    border: 1px solid var(--card-border);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.1rem;
    color: var(--text-light);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--t-fast) ease;
    margin-top: 0.2rem;
}

.close-btn:hover {
    background: var(--card-bg);
    color: var(--text-color);
    border-color: rgba(196, 147, 155, 0.3);
}

/* ========== Gallery Filters ========== */
.gallery-filters {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.75rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--card-border);
}

.filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.4rem 0.85rem;
    border-radius: var(--radius-full);
    border: 1px solid var(--card-border);
    background: transparent;
    color: var(--text-muted);
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.015em;
    cursor: pointer;
    transition: all var(--t-fast) ease;
    white-space: nowrap;
}

.filter-btn:hover {
    border-color: rgba(196, 147, 155, 0.30);
    color: var(--text-color);
    background: rgba(250, 245, 238, 0.8);
}

.filter-btn.active {
    background: var(--gradient-primary);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 2px 10px rgba(164, 112, 120, 0.22);
}

.filter-icon {
    font-size: 0.85em;
    line-height: 1;
}

.filter-name {
    font-weight: 400;
}

.filter-count {
    font-size: 0.68rem;
    opacity: 0.65;
    background: rgba(255, 255, 255, 0.22);
    padding: 0.05rem 0.3rem;
    border-radius: 20px;
    line-height: 1.6;
}

.filter-btn:not(.active) .filter-count {
    background: rgba(0, 0, 0, 0.04);
}

/* ========== Gallery Grid ========== */
.gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.gallery-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    position: relative;
    background: var(--champagne);
    border: none;
    padding: 0;
    aspect-ratio: 4 / 3;
    opacity: 0;
    transform: translateY(8px);
    transition:
        opacity 0.4s var(--ease-out),
        transform 0.4s var(--ease-out),
        box-shadow var(--t-base) ease;
}

.gallery-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s var(--ease-expo);
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(30, 20, 14, 0.36) 0%,
        rgba(30, 20, 14, 0.10) 40%,
        transparent 70%
    );
    opacity: 0;
    transition: opacity var(--t-base) ease;
}

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

.gallery-item:hover {
    box-shadow: var(--shadow-sm);
}

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

.gallery-item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    z-index: 2;
    opacity: 0;
    transform: translateY(6px);
    transition: all var(--t-fast) ease;
}

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

.gallery-item-title {
    font-family: var(--font-sans);
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.88);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.gallery-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3.5rem 1rem;
    color: var(--text-light);
}

.gallery-empty-icon {
    font-size: 2.25rem;
    margin-bottom: 0.75rem;
    opacity: 0.5;
}

.gallery-empty-text {
    font-family: var(--font-sans);
    font-size: 0.9rem;
}

/* Smooth image loading */
.portfolio .gallery-item img,
.portfolio .gallery-item .gallery-img {
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.6s var(--ease-expo);
}

.portfolio .gallery-item img.loaded,
.portfolio .gallery-item .gallery-img.loaded {
    opacity: 1;
}

/* ========== Lightbox ========== */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(20, 14, 10, 0.94);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--t-base) ease, visibility var(--t-base) ease;
    padding: 2rem;
}

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

.lightbox img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: var(--radius-md);
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s var(--ease-out), opacity 0.3s ease;
}

.close-lightbox {
    position: absolute;
    top: 1.5rem;
    right: 1.75rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.85);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--t-fast) ease;
    z-index: 10;
    line-height: 1;
}

.close-lightbox:hover {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--t-fast) ease;
    z-index: 10;
    line-height: 1;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
}

.lightbox-nav:disabled {
    opacity: 0.25;
    cursor: not-allowed;
}

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

.lightbox-counter {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-sans);
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.08em;
}

/* ========== Contact Section ========== */
.contact {
    padding: var(--section-gap) 0 8rem;
    position: relative;
    z-index: 2;
}

.contact-content {
    max-width: 700px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

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

.contact-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 2.75rem 2.25rem;
    box-shadow: var(--shadow-card);
    transition:
        transform var(--t-base) var(--ease-out),
        box-shadow var(--t-base) ease,
        border-color var(--t-fast) ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.contact-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
    border-color: var(--card-border-hover);
}

.social-card {
    display: flex;
    flex-direction: column;
}

.social-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-top: auto;
}

.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.9rem 1.5rem;
    border-radius: var(--radius-md);
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--t-fast) ease;
    border: 1px solid rgba(196, 147, 155, 0.15);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.social-icon {
    width: 18px;
    height: 18px;
    transition: transform var(--t-fast) ease;
}

.btn-instagram {
    background: rgba(196, 147, 155, 0.05);
    color: var(--rose-deep);
}

.btn-instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 8px 20px rgba(188, 24, 136, 0.25);
    transform: translateY(-2px);
}

.btn-facebook {
    background: rgba(196, 147, 155, 0.05);
    color: var(--rose-deep);
}

.btn-facebook:hover {
    background: #1877F2;
    color: white;
    border-color: transparent;
    box-shadow: 0 8px 20px rgba(24, 119, 242, 0.25);
    transform: translateY(-2px);
}

.btn-social:hover .social-icon {
    transform: scale(1.1) rotate(-5deg);
}

@media (max-width: 480px) {
    .social-buttons {
        gap: 0.65rem;
    }
    
    .btn-social {
        padding: 0.8rem 1.2rem;
        font-size: 0.8rem;
    }
}

.contact-icon {
    font-size: 1.5rem;
    margin-bottom: 1.1rem;
    display: inline-block;
    opacity: 0.7;
}

.contact-card h3 {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-weight: 500;
    margin-bottom: 0.55rem;
    color: var(--text-color);
    letter-spacing: -0.01em;
    line-height: 1.25;
}

.contact-card p {
    font-family: var(--font-sans);
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.75;
    margin-bottom: 1.5rem;
}

.contact-card ul {
    list-style: none;
}

.contact-card ul li {
    font-family: var(--font-sans);
    font-size: 0.8375rem;
    color: var(--text-muted);
    padding: 0.25rem 0;
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.contact-card ul li::before {
    content: '—';
    color: var(--primary);
    font-size: 0.75rem;
    flex-shrink: 0;
}

/* ========== Footer ========== */
.site-footer {
    background: var(--bg-color);
    border-top: 1px solid var(--divider);
    padding: 3.5rem 0;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    position: relative;
    z-index: 2;
}

.site-footer .container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.site-footer p {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    color: var(--text-light);
    letter-spacing: 0.05em;
    font-weight: 400;
}

/* ========== Floating Controls ========== */
.controls {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    z-index: 2000;
}

.controls button, .control-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--card-border);
    background: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all var(--t-base) var(--ease-spring);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--text-color);
    text-decoration: none;
}

.controls button:hover, .control-btn:hover {
    transform: scale(1.15) translateY(-3px);
    background: white;
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    color: var(--primary);
}

@property --angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

@keyframes rotate-border {
    to { --angle: 360deg; }
}

@keyframes whatsapp-main-pulse {
    0%, 90%, 100% {
        transform: scale(1) rotate(0deg);
        box-shadow: 0 4px 15px rgba(37, 211, 102, 0.25);
    }
    93% {
        transform: scale(1.05) rotate(-3deg);
    }
    96% {
        transform: scale(1.05) rotate(3deg);
    }
}

.whatsapp-btn {
    width: 51px;
    height: 51px;
    background: 
        linear-gradient(white, white) padding-box,
        conic-gradient(from var(--angle), transparent 75%, #25D366, #fff, #25D366) border-box;
    border: 3px solid transparent;
    color: #25D366;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.25);
    animation: 
        whatsapp-main-pulse 4s ease-in-out infinite,
        rotate-border 4s linear infinite;
    position: relative;
    overflow: visible;
    z-index: 10;
}

/* Pulsing rings around the button */
.whatsapp-btn::before,
.whatsapp-btn::after {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    border: 1px solid #25D366;
    opacity: 0;
    pointer-events: none;
    z-index: -1;
}

.whatsapp-btn::before {
    animation: whatsapp-ring 4s linear infinite;
}

.whatsapp-btn::after {
    animation: whatsapp-ring 4s linear 2s infinite;
}

@keyframes whatsapp-ring {
    0% { transform: scale(1); opacity: 0.4; border-width: 2px; }
    100% { transform: scale(1.6); opacity: 0; border-width: 1px; }
}

.whatsapp-btn:hover {
    background: 
        linear-gradient(#25D366, #25D366) padding-box,
        conic-gradient(from var(--angle), #fff, #25D366, #fff) border-box !important;
    color: white !important;
    box-shadow: 0 20px 40px rgba(37, 211, 102, 0.6) !important;
    animation: rotate-border 1s linear infinite !important;
    transform: scale(1.2) translateY(-8px) rotate(0deg);
}

.whatsapp-btn:hover svg {
    transform: scale(1.1);
}

.whatsapp-btn svg {
    transition: transform 0.3s ease;
}

html.dark .whatsapp-btn {
    background: 
        linear-gradient(#fff, #fff) padding-box,
        conic-gradient(from var(--angle), transparent 70%, #25D366, #fff, #25D366) border-box;
}

html.dark .controls button, 
html.dark .control-btn {
    background: rgba(40, 32, 24, 0.85);
    border-color: rgba(196, 147, 155, 0.1);
}

/* ========== Quote Modal ========== */
.quote-modal {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--t-base) ease, visibility var(--t-base) ease;
}

/* ========== Services Modal ========== */
.services-modal {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--t-base) ease, visibility var(--t-base) ease;
}

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

.services-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(20, 14, 10, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.services-modal-content {
    position: relative;
    background: linear-gradient(145deg, #FDFBF8 0%, #F8F1E8 100%);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    max-width: 680px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 24px 80px rgba(20, 14, 10, 0.18), 0 8px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(20px) scale(0.96);
    transition: transform var(--t-base) ease;
}

html.dark .services-modal-content {
    background: linear-gradient(145deg, #1A1612 0%, #261E16 100%);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.2);
}

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

.services-modal-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: rgba(196, 147, 155, 0.12);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.5rem;
    color: var(--text-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--t-fast) ease;
    line-height: 1;
}

.services-modal-close:hover {
    background: rgba(196, 147, 155, 0.25);
    transform: rotate(90deg);
}

.services-modal-title {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    color: var(--text-color);
    text-align: center;
    margin-bottom: 0.5rem;
}

.services-modal-subtitle {
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 2rem;
}

.services-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.service-item {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(196, 147, 155, 0.15);
    border-radius: var(--radius-md);
    transition: all var(--t-fast) ease;
    cursor: pointer;
    position: relative;
}

html.dark .service-item {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(196, 147, 155, 0.1);
}

.service-item:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(196, 147, 155, 0.35);
    transform: translateX(4px);
    box-shadow: 0 4px 16px rgba(196, 147, 155, 0.1);
}

html.dark .service-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(196, 147, 155, 0.25);
}

.service-item.active {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(196, 147, 155, 0.5);
    box-shadow: 0 8px 24px rgba(196, 147, 155, 0.15);
}

html.dark .service-item.active {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(196, 147, 155, 0.4);
}

.service-toggle {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(196, 147, 155, 0.15);
    border-radius: 50%;
    font-size: 1.25rem;
    color: var(--text-color);
    transition: all var(--t-fast) ease;
    flex-shrink: 0;
}

.service-item.active .service-toggle {
    background: var(--primary);
    color: white;
    transform: rotate(45deg);
}

.service-icon {
    font-size: 1.75rem;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(196, 147, 155, 0.1);
    border-radius: var(--radius-md);
}

.service-info {
    flex: 1;
    min-width: 200px;
    padding-right: 2rem;
}

.service-info h3 {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    color: var(--text-color);
    margin-bottom: 0.25rem;
}

.service-info p {
    font-family: var(--font-sans);
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}

.service-expand {
    width: 100%;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all var(--t-base) ease;
}

.service-item.active .service-expand {
    max-height: 500px;
    opacity: 1;
    margin-top: 1rem;
    animation: expandIn 0.4s ease forwards;
}

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

.service-expand img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--radius-md);
    margin-bottom: 0.75rem;
    box-shadow: 0 4px 16px rgba(196, 147, 155, 0.15);
}

.service-expand-content {
    padding: 0.75rem 1rem;
    background: rgba(196, 147, 155, 0.08);
    border-radius: var(--radius-md);
    border-left: 3px solid var(--primary);
}

.service-expand-content p {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
}

.services-cta {
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
    display: block;
}

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

.quote-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(20, 14, 10, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.quote-modal-content {
    position: relative;
    background: var(--ivory);
    border-radius: var(--radius-xl);
    padding: 3rem 2.75rem;
    width: 100%;
    max-width: 480px;
    box-shadow: var(--shadow-lg);
    transform: translateY(16px);
    transition: transform var(--t-base) var(--ease-out);
    max-height: 90vh;
    overflow-y: auto;
}

html.dark .quote-modal-content {
    background: #241C16;
}

.quote-modal.active .quote-modal-content {
    transform: translateY(0);
}

.quote-modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.75rem;
    background: none;
    border: 1px solid var(--card-border);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.1rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--t-fast) ease;
    line-height: 1;
}

.quote-modal-close:hover {
    background: var(--surface);
    color: var(--text-color);
    border-color: rgba(196, 147, 155, 0.3);
}

.quote-modal-title {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 400;
    color: var(--text-color);
    margin-bottom: 0.4rem;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.quote-modal-subtitle {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 2.25rem;
    font-weight: 400;
}

/* ========== Form Styles ========== */
.quote-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

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

.form-group label {
    font-family: var(--font-sans);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.form-group input,
.form-group textarea {
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: var(--text-color);
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: 0.9rem 1.1rem;
    transition: all var(--t-fast) ease;
    outline: none;
    width: 100%;
    line-height: 1.5;
}

html.dark .form-group input,
html.dark .form-group textarea {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(196, 147, 155, 0.12);
    color: var(--text-color);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: rgba(196, 147, 155, 0.4);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(196, 147, 155, 0.06);
}

html.dark .form-group input:focus,
html.dark .form-group textarea:focus {
    background: rgba(255, 255, 255, 0.07);
    box-shadow: 0 0 0 3px rgba(196, 147, 155, 0.12);
}

.form-group input.error,
.form-group textarea.error {
    border-color: #C0706A;
    box-shadow: 0 0 0 3px rgba(192, 112, 106, 0.10);
}

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

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-light);
    font-weight: 400;
}

.form-error {
    font-family: var(--font-sans);
    font-size: 0.78rem;
    color: #C0706A;
    display: none;
    align-items: center;
    gap: 0.35rem;
}

.form-error.show {
    display: flex;
}

.quote-submit {
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 1rem 2rem;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--t-base) var(--ease-out);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(164, 112, 120, 0.28);
    margin-top: 0.5rem;
}

.quote-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(164, 112, 120, 0.38);
}

.quote-submit:active {
    transform: translateY(0);
}

.btn-text { display: inline; }
.btn-loading { display: none; }

.quote-submit.loading .btn-text { display: none; }
.quote-submit.loading .btn-loading {
    display: inline;
    opacity: 0.8;
}

.quote-submit.loading {
    opacity: 0.75;
    cursor: not-allowed;
    transform: none;
}

.form-message {
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    display: none;
    align-items: flex-start;
    gap: 0.75rem;
    line-height: 1.5;
}

.form-message.show {
    display: flex;
}

.form-success {
    background: rgba(120, 160, 120, 0.1);
    border: 1px solid rgba(120, 160, 120, 0.2);
    color: #3D6E3D;
}

html.dark .form-success {
    color: #8EC88E;
}

.form-error-message {
    background: rgba(192, 112, 106, 0.08);
    border: 1px solid rgba(192, 112, 106, 0.18);
    color: #b05050;
}

.message-icon {
    font-weight: 600;
    flex-shrink: 0;
    font-size: 0.9rem;
}

/* ========== Scroll Progress ========== */
/* (Injected via JS — keeping it subtle) */

/* ========== Scroll Reveal ========== */
/* JS injects inline; kept here for overrides */

/* ========== Responsive ========== */
@media (max-width: 1024px) {
    :root {
        --section-gap: 5rem;
    }

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

@media (max-width: 768px) {
    :root {
        --section-gap: 4.5rem;
    }

    .container {
        padding: 0 1.5rem;
    }

    /* Mobile Nav */
    .nav-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: var(--bg-color);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2.5rem;
        z-index: 999;
        transform: translateX(100%);
        transition: transform 0.4s var(--ease-expo);
    }

    .nav-links.open {
        transform: translateX(0);
    }

    .nav-links a {
        font-size: 1.1rem;
        letter-spacing: 0.18em;
    }

    /* Hero */
    .hero {
        padding: 8rem 1.5rem 6rem;
    }

    .title {
        font-size: clamp(2.5rem, 10vw, 3.5rem);
    }

    .button-group {
        gap: 0.75rem;
    }

    .btn {
        padding: 0.85rem 1.75rem;
        font-size: 0.75rem;
    }

    .btn-secondary {
        max-width: 100%;
    }

    /* Grid */
    .grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    /* Trust */
    .trust-content {
        flex-direction: column;
    }

    .trust-stat {
        padding: 1.75rem 2rem;
    }

    .trust-divider {
        width: 60%;
        height: 1px;
        background: linear-gradient(90deg, transparent, rgba(196, 147, 155, 0.18), transparent);
    }

    /* Portfolio */
    .portfolio {
        max-width: 100%;
        padding: 1.75rem 1.25rem;
    }

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

    /* Contact */
    .contact-info {
        grid-template-columns: 1fr;
    }

    /* Modal */
    .quote-modal {
        padding: 1rem;
        align-items: flex-end;
    }

    .quote-modal-content {
        padding: 2.25rem 1.75rem;
        border-radius: var(--radius-xl) var(--radius-xl) var(--radius-md) var(--radius-md);
        max-width: 100%;
    }

    .lightbox-nav {
        display: none;
    }
}

@media (max-width: 480px) {
    .gallery {
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }

    .filter-btn {
        font-size: 0.72rem;
        padding: 0.375rem 0.75rem;
    }

    .controls {
        bottom: 1.25rem;
        right: 1.25rem;
        gap: 0.5rem;
    }

    .controls button {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }

    .trust-number {
        font-size: 2.25rem;
    }
}

/* ========== Dark mode specific fixes ========== */
html.dark .card {
    background: rgba(40, 30, 22, 0.75);
    border-color: rgba(196, 147, 155, 0.08);
}

html.dark .contact-card {
    background: rgba(40, 30, 22, 0.75);
    border-color: rgba(196, 147, 155, 0.08);
}

html.dark .site-footer {
    background: rgba(30, 22, 16, 0.5);
}

html.dark .controls button {
    background: rgba(40, 30, 22, 0.9);
    border-color: rgba(196, 147, 155, 0.15);
}

html.dark .controls button:hover {
    background: rgba(50, 40, 30, 0.95);
    border-color: rgba(196, 147, 155, 0.3);
}

html.dark .close-btn {
    border-color: rgba(196, 147, 155, 0.15);
}

html.dark .gallery-filters,
html.dark .portfolio-header {
    border-bottom-color: rgba(196, 147, 155, 0.1);
}

html.dark .filter-btn {
    border-color: rgba(196, 147, 155, 0.12);
}

html.dark .filter-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(196, 147, 155, 0.25);
}

html.dark .form-group input,
html.dark .form-group textarea {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(196, 147, 155, 0.15);
}