/* ===================================
   CSS Custom Properties
   =================================== */
:root {
    --color-sand: #F5F0EB;
    --color-sand-light: #FAF7F4;
    --color-sand-dark: #E8E0D8;
    --color-terracotta: #C4704B;
    --color-terracotta-dark: #A85A3A;
    --color-terracotta-light: #D4896A;
    --color-charcoal: #2A2522;
    --color-text: #3D3530;
    --color-text-light: #6B5E56;
    --color-white: #FFFFFF;
    --color-border: rgba(196, 112, 75, 0.15);
    
    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Manrope', -apple-system, sans-serif;
    
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 6rem;
    --space-2xl: 8rem;
    
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
    font-family: var(--font-sans);
    font-weight: 300;
    color: var(--color-text);
    background-color: var(--color-sand-light);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

a {
    color: inherit;
    text-decoration: none;
}

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

ul {
    list-style: none;
}

/* ===================================
   Noise Overlay
   =================================== */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

.skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    background: var(--color-terracotta);
    color: var(--color-white);
    padding: 0.5rem 1rem;
    z-index: 10000;
}

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

/* ===================================
   Container
   =================================== */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

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

/* ===================================
   Typography
   =================================== */
h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 300;
    line-height: 1.2;
    color: var(--color-charcoal);
}

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

.section-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    margin-bottom: var(--space-md);
    line-height: 1.15;
}

/* ===================================
   Buttons
   =================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    padding: 1rem 2rem;
    border-radius: 0;
    transition: all var(--transition);
    text-transform: uppercase;
}

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

.btn--primary:hover {
    background: var(--color-terracotta-dark);
    border-color: var(--color-terracotta-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(196, 112, 75, 0.3);
}

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

.btn--ghost:hover {
    background: var(--color-charcoal);
    color: var(--color-white);
}

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

.btn--light:hover {
    background: var(--color-sand);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.btn--outline-light {
    background: transparent;
    color: var(--color-white);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

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

.btn--small {
    padding: 0.625rem 1.25rem;
    font-size: 0.75rem;
}

.btn--full {
    width: 100%;
}

/* ===================================
   Navbar
   =================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: var(--space-sm) 0;
    transition: all var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(250, 247, 244, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    padding: 0.75rem 0;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.brand-mark {
    width: 32px;
    height: 32px;
    background: var(--color-terracotta);
    display: block;
    position: relative;
}

.brand-mark::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    border: 1px solid var(--color-white);
}

.brand-name {
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-charcoal);
}

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

.nav-links a {
    font-size: 0.8125rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    color: var(--color-text-light);
    transition: color var(--transition);
    text-transform: uppercase;
}

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

.mobile-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 0.5rem;
}

.mobile-toggle span {
    display: block;
    width: 24px;
    height: 1.5px;
    background: var(--color-charcoal);
    transition: all var(--transition);
}

.mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

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

.mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
}

@media (min-width: 1024px) {
    .nav-links {
        display: flex;
    }
    .mobile-toggle {
        display: none;
    }
}

/* ===================================
   Hero
   =================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: calc(80px + var(--space-md)) 0 var(--space-md);
    background: var(--color-sand-light);
    position: relative;
    overflow: hidden;
}

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

.hero-content {
    order: 2;
}

.hero-image {
    order: 1;
}

.hero-label {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.hero-label .line {
    width: 40px;
    height: 1px;
    background: var(--color-terracotta);
}

.hero-label span {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-terracotta);
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 300;
    line-height: 1.05;
    margin-bottom: var(--space-md);
    color: var(--color-charcoal);
}

.hero-accent {
    font-style: italic;
    color: var(--color-terracotta);
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--color-text-light);
    max-width: 480px;
    margin-bottom: var(--space-lg);
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.image-frame {
    position: relative;
    overflow: hidden;
}

.image-frame::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: 20px;
    bottom: 20px;
    border: 1px solid var(--color-terracotta);
    z-index: 1;
    pointer-events: none;
}

.image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-stat {
    position: absolute;
    bottom: var(--space-md);
    left: calc(-50%);
    background: var(--color-white);
    padding: var(--space-md);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

.stat-number {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--color-terracotta);
    line-height: 1;
}

.stat-text {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-light);
}

.hero-scroll {
    position: absolute;
    bottom: var(--space-md);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

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

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

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

@media (min-width: 1024px) {
    .hero-container {
        grid-template-columns: 1.1fr 0.9fr;
        gap: var(--space-xl);
    }
    .hero-content {
        order: 1;
    }
    .hero-image {
        order: 2;
    }
    .hero-stat {
        left: auto;
        right: calc(-20%);
    }
}

/* ===================================
   Intro Section
   =================================== */
.intro {
    padding: var(--space-2xl) 0;
    background: var(--color-white);
}

.intro-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    align-items: center;
}

.intro-text p {
    margin-bottom: var(--space-sm);
    color: var(--color-text-light);
    font-size: 1.0625rem;
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: var(--space-md);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-terracotta);
    transition: gap var(--transition);
}

.link-arrow:hover {
    gap: 1.25rem;
}

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

@media (min-width: 1024px) {
    .intro-grid {
        grid-template-columns: 1.2fr 0.8fr;
        gap: var(--space-xl);
    }
}

/* ===================================
   Services
   =================================== */
.services {
    padding: var(--space-2xl) 0;
    background: var(--color-sand);
}

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

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

.service-card {
    background: var(--color-white);
    padding: var(--space-lg);
    position: relative;
    transition: all var(--transition);
    border: 1px solid transparent;
}

.service-card:hover {
    border-color: var(--color-terracotta);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(196, 112, 75, 0.1);
}

.service-number {
    font-family: var(--font-serif);
    font-size: 3rem;
    font-weight: 300;
    color: var(--color-sand-dark);
    line-height: 1;
    margin-bottom: var(--space-sm);
    transition: color var(--transition);
}

.service-card:hover .service-number {
    color: var(--color-terracotta-light);
}

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

.service-card p {
    color: var(--color-text-light);
    margin-bottom: var(--space-md);
    font-size: 0.9375rem;
}

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

.service-list li {
    font-size: 0.875rem;
    color: var(--color-text);
    padding-left: 1rem;
    position: relative;
}

.service-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5em;
    width: 4px;
    height: 1px;
    background: var(--color-terracotta);
}

@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ===================================
   Values
   =================================== */
.values {
    padding: var(--space-2xl) 0;
    background: var(--color-sand-light);
}

.values-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    align-items: center;
}

.values-content .section-title {
    margin-bottom: var(--space-lg);
}

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

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

.value-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-border);
    color: var(--color-terracotta);
}

.value-item h4 {
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
    color: var(--color-charcoal);
}

.value-item p {
    font-size: 0.9375rem;
    color: var(--color-text-light);
    line-height: 1.6;
}

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

@media (min-width: 1024px) {
    .values-grid {
        grid-template-columns: 1.2fr 0.8fr;
        gap: var(--space-xl);
    }
}

/* ===================================
   CTA Section
   =================================== */
.cta-section {
    padding: var(--space-2xl) 0;
    background: var(--color-charcoal);
    text-align: center;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.cta-content .section-label {
    color: var(--color-terracotta-light);
}

.cta-content .section-title {
    color: var(--color-white);
    margin-bottom: var(--space-sm);
}

.cta-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.125rem;
    margin-bottom: var(--space-lg);
    line-height: 1.8;
}

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

/* ===================================
   Contact
   =================================== */
.contact {
    padding: var(--space-2xl) 0;
    background: var(--color-white);
}

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

.contact-info .section-title {
    margin-bottom: var(--space-lg);
}

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

.contact-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.contact-label {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-terracotta);
}

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

.contact-value a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-text);
    transition: color var(--transition);
}

.contact-value a:hover {
    color: var(--color-terracotta);
}

.contact-form-wrapper {
    background: var(--color-sand);
    padding: var(--space-lg);
}

.contact-form-wrapper h3 {
    font-size: 1.75rem;
    margin-bottom: var(--space-md);
}

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

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    color: var(--color-text);
    background: var(--color-white);
    border: 1px solid var(--color-sand-dark);
    transition: border-color var(--transition);
    outline: none;
    border-radius: 0;
    -webkit-appearance: none;
}

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

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

.form-success {
    display: none;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(196, 112, 75, 0.1);
    color: var(--color-terracotta-dark);
    font-size: 0.9375rem;
    margin-top: var(--space-sm);
}

.form-success svg {
    flex-shrink: 0;
    color: var(--color-terracotta);
}

@media (min-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-xl);
    }
}

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

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

.footer-brand .brand-name {
    color: var(--color-white);
    font-size: 1rem;
    margin-bottom: 0.5rem;
    display: block;
}

.footer-tagline {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: var(--space-sm);
}

.footer-address {
    font-size: 0.875rem;
    line-height: 1.6;
}

.footer-links h4,
.footer-contact h4 {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-white);
    margin-bottom: var(--space-sm);
}

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

.footer-links a {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    transition: color var(--transition);
}

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

.footer-phone {
    font-size: 1.125rem;
    color: var(--color-terracotta-light);
    margin-bottom: 0.5rem;
    display: block;
}

.footer-hours {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.6;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--space-md);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.4);
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr 1fr;
    }
}

/* ===================================
   Mobile Menu
   =================================== */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(250, 247, 244, 0.98);
    backdrop-filter: blur(20px);
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition);
}

.mobile-menu.active {
    opacity: 1;
    pointer-events: all;
}

.mobile-menu a {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 300;
    color: var(--color-charcoal);
    transition: color var(--transition);
}

.mobile-menu a:hover {
    color: var(--color-terracotta);
}

/* ===================================
   Animations (progressive enhancement)
   =================================== */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fallback: ensure content is visible without JS */
@media not all and (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: none;
    }
}
