/* ===== CSS CUSTOM PROPERTIES ===== */
:root {
    --color-terracotta-deep: #5C3A2E;
    --color-terracotta: #A0523D;
    --color-terracotta-light: #C47A62;
    --color-sand: #D4B896;
    --color-sand-light: #E8D5BC;
    --color-sand-lighter: #F2E6D5;
    --color-cream: #FAF5F0;
    --color-cream-dark: #F0E6D8;
    --color-text-dark: #2C1810;
    --color-text-body: #4A3328;
    --color-text-muted: #7A6358;
    --color-text-light: #9A8578;
    --color-white: #FFFFFF;
    --color-border: #E0CFC0;
    
    --font-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    --font-sans: 'Lato', 'Segoe UI', system-ui, sans-serif;
    
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;
    
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 20px;
    
    --shadow-sm: 0 1px 3px rgba(44, 24, 16, 0.06);
    --shadow-md: 0 4px 16px rgba(44, 24, 16, 0.08);
    --shadow-lg: 0 8px 32px rgba(44, 24, 16, 0.12);
    --shadow-xl: 0 16px 48px rgba(44, 24, 16, 0.16);
    
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text-body);
    background-color: var(--color-cream);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

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

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

input, textarea, select {
    font-family: inherit;
    font-size: 1rem;
}

ul, ol {
    list-style: none;
}

/* ===== SKIP LINK ===== */
.skip-link {
    position: absolute;
    top: -100%;
    left: var(--space-md);
    background: var(--color-terracotta-deep);
    color: var(--color-white);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-sm);
    z-index: 10000;
    font-size: 0.875rem;
}

.skip-link:focus {
    top: var(--space-md);
}

/* ===== PRELOADER ===== */
.preloader {
    position: fixed;
    inset: 0;
    background: var(--color-cream);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-inner {
    width: 60px;
    height: 2px;
    background: var(--color-sand-light);
    border-radius: 2px;
    overflow: hidden;
}

.preloader-line {
    width: 30px;
    height: 100%;
    background: var(--color-terracotta);
    border-radius: 2px;
    animation: preloaderSlide 1s ease-in-out infinite;
}

@keyframes preloaderSlide {
    0% { transform: translateX(-30px); }
    100% { transform: translateX(60px); }
}

/* ===== OVERLAY ===== */
.overlay {
    position: fixed;
    inset: 0;
    background: rgba(44, 24, 16, 0.5);
    z-index: 90;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-base), visibility var(--transition-base);
}

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

/* ===== MOBILE MENU ===== */
.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: min(320px, 85vw);
    height: 100vh;
    height: 100dvh;
    background: var(--color-cream);
    z-index: 100;
    transform: translateX(100%);
    transition: transform var(--transition-base);
    display: flex;
    align-items: flex-start;
}

.mobile-menu.open {
    transform: translateX(0);
}

.mobile-menu-inner {
    width: 100%;
    padding: var(--space-2xl);
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.mobile-menu-close {
    align-self: flex-end;
    padding: var(--space-sm);
    color: var(--color-text-dark);
    transition: color var(--transition-fast), transform var(--transition-fast);
}

.mobile-menu-close:hover {
    color: var(--color-terracotta);
    transform: rotate(90deg);
}

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

.mobile-nav-link {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 500;
    color: var(--color-text-dark);
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--color-border);
    transition: color var(--transition-fast), padding-left var(--transition-fast);
}

.mobile-nav-link:hover {
    color: var(--color-terracotta);
    padding-left: var(--space-sm);
}

.mobile-menu-contact {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.mobile-phone, .mobile-email {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.875rem;
    color: var(--color-text-muted);
    transition: color var(--transition-fast);
}

.mobile-phone:hover, .mobile-email:hover {
    color: var(--color-terracotta);
}

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

@media (min-width: 768px) {
    .container {
        padding: 0 var(--space-2xl);
    }
}

/* ===== HEADER ===== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 80;
    background: rgba(250, 245, 240, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.site-header.scrolled {
    border-bottom-color: var(--color-border);
    box-shadow: var(--shadow-sm);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

/* ===== LOGO ===== */
.logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.1;
    letter-spacing: 0.08em;
}

.logo-line-one {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-text-muted);
}

.logo-line-two {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 400;
    font-style: italic;
    color: var(--color-terracotta);
}

.logo-footer {
    margin-bottom: var(--space-md);
}

/* ===== MAIN NAV ===== */
.main-nav {
    display: none;
    align-items: center;
    gap: var(--space-xl);
}

.main-nav a {
    font-size: 0.8125rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-text-muted);
    position: relative;
    padding: var(--space-xs) 0;
    transition: color var(--transition-fast);
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-terracotta);
    transition: width var(--transition-base);
}

.main-nav a:hover {
    color: var(--color-terracotta);
}

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

.nav-cta {
    background: var(--color-terracotta);
    color: var(--color-white) !important;
    padding: var(--space-sm) var(--space-lg) !important;
    border-radius: var(--radius-sm);
    transition: background var(--transition-fast), transform var(--transition-fast) !important;
}

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

.nav-cta:hover {
    background: var(--color-terracotta-deep);
    color: var(--color-white) !important;
    transform: translateY(-1px);
}

/* ===== MOBILE MENU TOGGLE ===== */
.mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: var(--space-sm);
    z-index: 110;
}

.mobile-menu-toggle span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--color-text-dark);
    transition: transform var(--transition-base), opacity var(--transition-base);
    transform-origin: center;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}

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

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}

/* ===== SECTION COMMON ===== */
.section-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.section-eyebrow {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-terracotta);
    margin-bottom: var(--space-md);
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
    line-height: 1.2;
    color: var(--color-text-dark);
    margin-bottom: var(--space-lg);
}

.section-divider {
    width: 60px;
    height: 1px;
    background: var(--color-terracotta);
    margin: 0 auto;
}

/* ===== HERO ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 72px;
}

.hero-bg-pattern {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
    align-items: center;
    padding: var(--space-2xl) 0;
}

.hero-content {
    max-width: 560px;
}

.hero-eyebrow {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--color-sand);
    margin-bottom: var(--space-lg);
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 5.5vw, 4.5rem);
    font-weight: 400;
    line-height: 1.1;
    color: var(--color-cream);
    margin-bottom: var(--space-xl);
}

.hero-title-accent {
    font-style: italic;
    color: var(--color-sand-light);
}

.hero-title-serif {
    display: block;
    font-weight: 300;
    opacity: 0.85;
}

.hero-description {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--color-sand-lighter);
    opacity: 0.85;
    margin-bottom: var(--space-2xl);
    max-width: 440px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    margin-bottom: var(--space-2xl);
}

.hero-divider-line {
    width: 60px;
    height: 1px;
    background: var(--color-sand);
    opacity: 0.4;
    margin-bottom: var(--space-xl);
}

.hero-contact-inline {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xl);
}

.hero-contact-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.8125rem;
    color: var(--color-sand-lighter);
    opacity: 0.7;
    transition: opacity var(--transition-fast);
}

.hero-contact-item:hover {
    opacity: 1;
}

/* Hero Image */
.hero-image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-image-frame {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.hero-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    aspect-ratio: 600/780;
    object-fit: cover;
    display: block;
}

.hero-accent-circle {
    position: absolute;
    top: -30px;
    right: -30px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 1px solid var(--color-sand);
    opacity: 0.3;
    z-index: -1;
}

.hero-badge {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background: var(--color-terracotta);
    color: var(--color-white);
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-serif);
    font-size: 0.9375rem;
    font-style: italic;
    box-shadow: var(--shadow-lg);
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: var(--space-md) var(--space-xl);
    border-radius: var(--radius-sm);
    transition: all var(--transition-base);
    white-space: nowrap;
}

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

.btn-primary:hover {
    background: var(--color-terracotta-deep);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-ghost {
    background: transparent;
    color: var(--color-cream);
    border: 1px solid var(--color-sand);
}

.btn-ghost:hover {
    background: var(--color-sand);
    color: var(--color-text-dark);
}

.btn-outline-light {
    background: transparent;
    color: var(--color-cream);
    border: 1px solid var(--color-cream);
}

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

.btn-lg {
    padding: var(--space-lg) var(--space-2xl);
    font-size: 0.875rem;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* ===== SERVICES ===== */
.services {
    padding: var(--space-4xl) 0;
    background: var(--color-cream);
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
}

.service-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--color-terracotta);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-base);
}

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

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    background: var(--color-sand-lighter);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-terracotta);
    margin-bottom: var(--space-lg);
    transition: background var(--transition-fast);
}

.service-card:hover .service-card-icon {
    background: var(--color-terracotta);
    color: var(--color-white);
}

.service-card-title {
    font-family: var(--font-serif);
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--color-text-dark);
    margin-bottom: var(--space-sm);
}

.service-card-desc {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--color-text-muted);
}

/* ===== ABOUT ===== */
.about {
    padding: var(--space-4xl) 0;
    background: var(--color-cream-dark);
}

.about-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
    align-items: center;
}

.about-image-section {
    position: relative;
}

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

.about-image-main img {
    width: 100%;
    height: auto;
    aspect-ratio: 560/700;
    object-fit: cover;
    display: block;
}

.about-image-secondary {
    position: absolute;
    bottom: -30px;
    right: -20px;
    width: 55%;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 4px solid var(--color-cream-dark);
}

.about-image-secondary img {
    width: 100%;
    height: auto;
    aspect-ratio: 320/400;
    object-fit: cover;
    display: block;
}

.about-experience-badge {
    position: absolute;
    top: -20px;
    left: -20px;
    background: var(--color-terracotta);
    color: var(--color-white);
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.experience-number {
    display: block;
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-style: italic;
    line-height: 1.2;
}

.experience-text {
    display: block;
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    opacity: 0.8;
    margin-top: var(--space-xs);
}

.about-content {
    max-width: 520px;
}

.about-text {
    font-size: 1.0625rem;
    line-height: 1.85;
    color: var(--color-text-body);
    margin-bottom: var(--space-lg);
}

.about-values {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    margin-top: var(--space-2xl);
}

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

.about-value-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--color-sand-lighter);
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-value span {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-text-dark);
}

/* ===== GALLERY ===== */
.gallery {
    padding: var(--space-4xl) 0;
    background: var(--color-cream);
}

.gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
}

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

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

.gallery-item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(44, 24, 16, 0.6) 0%, transparent 60%);
    display: flex;
    align-items: flex-end;
    padding: var(--space-lg);
    opacity: 0;
    transition: opacity var(--transition-base);
}

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

.gallery-item-overlay span {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    color: var(--color-white);
    font-style: italic;
}

/* ===== TESTIMONIALS ===== */
.testimonials {
    padding: var(--space-4xl) 0;
    background: var(--color-cream-dark);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
}

.testimonial-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    position: relative;
    transition: all var(--transition-base);
}

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

.testimonial-quote-mark {
    position: absolute;
    top: var(--space-lg);
    left: var(--space-xl);
    font-family: var(--font-serif);
    font-size: 5rem;
    line-height: 1;
    color: var(--color-terracotta);
    opacity: 0.15;
    pointer-events: none;
}

.testimonial-text {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--color-text-body);
    font-style: italic;
    margin-bottom: var(--space-xl);
    position: relative;
    z-index: 1;
}

.testimonial-author {
    border-top: 1px solid var(--color-border);
    padding-top: var(--space-lg);
}

.testimonial-name {
    font-family: var(--font-serif);
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--color-terracotta);
}

/* ===== CTA BANNER ===== */
.cta-banner {
    position: relative;
    padding: var(--space-4xl) 0;
    overflow: hidden;
}

.cta-bg-pattern {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.cta-container {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--space-2xl);
}

.cta-content {
    max-width: 640px;
}

.cta-title {
    font-family: var(--font-serif);
    font-size: clamp(1.75rem, 3.5vw, 2.75rem);
    font-weight: 400;
    line-height: 1.25;
    color: var(--color-cream);
    margin-bottom: var(--space-lg);
}

.cta-description {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--color-sand-lighter);
    opacity: 0.85;
}

.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    justify-content: center;
}

/* ===== CONTACT ===== */
.contact {
    padding: var(--space-4xl) 0;
    background: var(--color-cream);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-3xl);
}

.contact-info {
    max-width: 480px;
}

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

.contact-detail {
    display: flex;
    gap: var(--space-lg);
}

.contact-detail-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--color-sand-lighter);
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-detail-label {
    font-family: var(--font-serif);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-text-dark);
    margin-bottom: var(--space-xs);
}

.contact-detail-value {
    font-size: 0.9375rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

.contact-link {
    color: var(--color-terracotta);
    transition: color var(--transition-fast);
}

.contact-link:hover {
    color: var(--color-terracotta-deep);
    text-decoration: underline;
}

.contact-map {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

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

.contact-form-title {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 500;
    color: var(--color-text-dark);
    margin-bottom: var(--space-sm);
}

.contact-form-subtitle {
    font-size: 0.9375rem;
    color: var(--color-text-muted);
    margin-bottom: var(--space-2xl);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

.form-group {
    margin-bottom: var(--space-lg);
}

.form-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
    margin-bottom: var(--space-sm);
}

.form-input {
    width: 100%;
    padding: var(--space-md);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-cream);
    color: var(--color-text-dark);
    font-size: 0.9375rem;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    outline: none;
}

.form-input::placeholder {
    color: var(--color-text-light);
}

.form-input:focus {
    border-color: var(--color-terracotta);
    box-shadow: 0 0 0 3px rgba(160, 82, 61, 0.1);
}

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

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

/* Form Success */
.form-success {
    text-align: center;
    padding: var(--space-2xl);
}

.success-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--color-sand-lighter);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-lg);
}

.success-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-text-dark);
    margin-bottom: var(--space-sm);
}

.success-text {
    font-size: 0.9375rem;
    color: var(--color-text-muted);
    line-height: 1.7;
}

/* ===== FOOTER ===== */
.site-footer {
    background: var(--color-text-dark);
    color: var(--color-sand-lighter);
    padding: var(--space-3xl) 0 var(--space-xl);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--space-xl);
    padding-bottom: var(--space-2xl);
    border-bottom: 1px solid rgba(212, 184, 150, 0.15);
}

.footer-tagline {
    font-size: 0.9375rem;
    color: var(--color-text-light);
    max-width: 280px;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-lg);
}

.footer-nav a {
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-light);
    transition: color var(--transition-fast);
}

.footer-nav a:hover {
    color: var(--color-sand);
}

.footer-contact {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-xl);
}

.footer-phone, .footer-email {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.8125rem;
    color: var(--color-text-light);
    transition: color var(--transition-fast);
}

.footer-phone:hover, .footer-email:hover {
    color: var(--color-sand);
}

.footer-bottom {
    padding-top: var(--space-xl);
    text-align: center;
}

.footer-copyright, .footer-address {
    font-size: 0.8125rem;
    color: var(--color-text-light);
    margin-bottom: var(--space-sm);
}

/* ===== SCROLL ANIMATIONS ===== */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal[data-reveal] {
    opacity: 0;
    transform: translateY(24px);
}

@media (prefers-reduced-motion: no-preference) {
    .reveal[data-reveal] {
        opacity: 0;
        transform: translateY(24px);
    }
    
    .reveal.visible[data-reveal] {
        opacity: 1;
        transform: none;
    }
}

/* ===== RESPONSIVE ===== */
@media (min-width: 640px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-item-tall {
        grid-row: span 2;
    }
    
    .gallery-item-wide {
        grid-column: span 2;
    }
}

@media (min-width: 768px) {
    .mobile-menu-toggle {
        display: none;
    }
    
    .main-nav {
        display: flex;
    }
    
    .hero-container {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-3xl);
    }
    
    .hero {
        padding-top: 0;
    }
    
    .about-container {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-3xl);
    }
    
    .contact-container {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-3xl);
    }
    
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .site-header .container {
        height: 80px;
    }
}

@media (max-width: 480px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .about-values {
        grid-template-columns: 1fr;
    }
    
    .hero-badge {
        position: relative;
        bottom: auto;
        left: auto;
        margin-top: var(--space-md);
        display: inline-flex;
    }
}
</style>
<sm-file path="script.js">
(function() {
    'use strict';
    
    // ===== PRELOADER =====
    const preloader = document.getElementById('preloader');
    window.addEventListener('load', function() {
        setTimeout(function() {
            preloader.classList.add('hidden');
        }, 400);
    });
    
    // Fallback: hide preloader after 2s regardless
    setTimeout(function() {
        if (preloader) {
            preloader.classList.add('hidden');
        }
    }, 2000);
    
    // ===== MOBILE MENU =====
    const menuToggle = document.getElementById('mobileMenuToggle');
    const mobileMenu = document.getElementById('mobileMenu');
    const menuClose = document.getElementById('mobileMenuClose');
    const overlay = document.getElementById('overlay');
    const mobileNavLinks = mobileMenu.querySelectorAll('.mobile-nav-link');
    
    function openMenu() {
        mobileMenu.classList.add('open');
        overlay.classList.add('active');
        menuToggle.classList.add('active');
        document.body.style.overflow = 'hidden';
        menuClose.focus();
    }
    
    function closeMenu() {
        mobileMenu.classList.remove('open');
        overlay.classList.remove('active');
        menuToggle.classList.remove('active');
        document.body.style.overflow = '';
        menuToggle.focus();
    }
    
    menuToggle.addEventListener('click', function() {
        if (mobileMenu.classList.contains('open')) {
            closeMenu();
        } else {
            openMenu();
        }
    });
    
    menuClose.addEventListener('click', closeMenu);
    overlay.addEventListener('click', closeMenu);
    
    mobileNavLinks.forEach(function(link) {
        link.addEventListener('click', closeMenu);
    });
    
    document.addEventListener('keydown', function(e) {
        if (e.key === 'Escape' && mobileMenu.classList.contains('open')) {
            closeMenu();
        }
    });
    
    // ===== HEADER SCROLL =====
    const header = document.getElementById('siteHeader');
    let lastScroll = 0;
    
    function handleScroll() {
        const currentScroll = window.pageYOffset;
        
        if (currentScroll > 50) {
            header.classList.add('scrolled');
        } else {
            header.classList.remove('scrolled');
        }
        
        lastScroll = currentScroll;
    }
    
    if (typeof requestAnimationFrame !== 'undefined') {
        let ticking = false;
        window.addEventListener('scroll', function() {
            if (!ticking) {
                window.requestAnimationFrame(function() {
                    handleScroll();
                    ticking = false;
                });
                ticking = true;
            }
        });
    } else {
        window.addEventListener('scroll', handleScroll);
    }
    
    // ===== SCROLL REVEAL =====
    const prefersReducedMotion = window.matchMedia('(prefers-reduced-motion: reduce)').matches;
    
    if (!prefersReducedMotion && 'IntersectionObserver' in window) {
        const revealElements = document.querySelectorAll('[data-reveal]');
        
        const revealObserver = new IntersectionObserver(function(entries) {
            entries.forEach(function(entry) {
                if (entry.isIntersecting) {
                    entry.target.classList.add('visible');
                    revealObserver.unobserve(entry.target);
                }
            });
        }, {
            threshold: 0.1,
            rootMargin: '0px 0px -40px 0px'
        });
        
        revealElements.forEach(function(el) {
            revealObserver.observe(el);
        });
    } else {
        document.querySelectorAll('[data-reveal]').forEach(function(el) {
            el.classList.add('visible');
        });
    }
    
    // ===== SMOOTH SCROLL FOR ANCHOR LINKS =====
    document.querySelectorAll('a[href^="#"]').forEach(function(anchor) {
        anchor.addEventListener('click', function(e) {
            const targetId = this.getAttribute('href');
            if (targetId === '#') return;
            
            const target = document.querySelector(targetId);
            if (target) {
                e.preventDefault();
                const headerHeight = header.offsetHeight;
                const targetPosition = target.getBoundingClientRect().top + window.pageYOffset - headerHeight - 20;
                
                window.scrollTo({
                    top: targetPosition,
                    behavior: 'smooth'
                });
            }
        });
    });
    
    // ===== CONTACT FORM =====
    const contactForm = document.getElementById('contactForm');
    const formSuccess = document.getElementById('formSuccess');
    
    if (contactForm) {
        contactForm.addEventListener('submit', function(e) {
            e.preventDefault();
            
            // Basic validation
            const firstName = document.getElementById('firstName');
            const lastName = document.getElementById('lastName');
            const email = document.getElementById('email');
            
            let isValid = true;
            
            [firstName, lastName, email].forEach(function(input) {
                if (!input.value.trim()) {
                    input.style.borderColor = '#c0392b';
                    isValid = false;
                } else {
                    input.style.borderColor = '';
                }
            });
            
            if (email.value && !/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(email.value)) {
                email.style.borderColor = '#c0392b';
                isValid = false;
            }
            
            if (!isValid) return;
            
            // Show success
            contactForm.style.display = 'none';
            formSuccess.style.display = 'block';
        });
    }
    
    // ===== ACTIVE NAV LINK HIGHLIGHT =====
    const sections = document.querySelectorAll('section[id]');
    const navLinks = document.querySelectorAll('.main-nav a:not(.nav-cta)');
    
    if (sections.length > 0 && navLinks.length > 0) {
        const sectionObserver = new IntersectionObserver(function(entries) {
            entries.forEach(function(entry) {
                if (entry.isIntersecting) {
                    const id = entry.target.getAttribute('id');
                    navLinks.forEach(function(link) {
                        link.style.color = '';
                        if (link.getAttribute('href') === '#' + id) {
                            link.style.color = 'var(--color-terracotta)';
                        }
                    });
                }
            });
        }, {
            threshold: 0.3,
            rootMargin: '-80px 0px -50% 0px'
        });
        
        sections.forEach(function(section) {
            sectionObserver.observe(section);
        });
    }
    
})();
