/* ============================================
   Zorro Development — Clean Minimalist Design
   Color Palette: Terracotta + Sand
   ============================================ */

/* CSS Custom Properties */
:root {
    --color-terracotta-50: #fef7f4;
    --color-terracotta-100: #fde8de;
    --color-terracotta-200: #fad4c0;
    --color-terracotta-300: #f5b598;
    --color-terracotta-400: #ee8d6a;
    --color-terracotta-500: #e06b45;
    --color-terracotta-600: #c65d3e;
    --color-terracotta-700: #a84d34;
    --color-terracotta-800: #8a3f2b;
    --color-terracotta-900: #733524;
    
    --color-sand-50: #fdfbf7;
    --color-sand-100: #faf5ec;
    --color-sand-200: #f3e8d0;
    --color-sand-300: #e8d4a8;
    --color-sand-400: #d4b878;
    --color-sand-500: #c4a055;
    --color-sand-600: #a88542;
    --color-sand-700: #8a6c36;
    --color-sand-800: #70572d;
    --color-sand-900: #5c4726;
    
    --color-stone-50: #fafaf9;
    --color-stone-100: #f5f5f4;
    --color-stone-200: #e7e5e4;
    --color-stone-300: #d6d3d1;
    --color-stone-400: #a8a29e;
    --color-stone-500: #78716c;
    --color-stone-600: #57534e;
    --color-stone-700: #44403c;
    --color-stone-800: #292524;
    --color-stone-900: #1c1917;
    
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-serif: 'Playfair Display', Georgia, serif;
    
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    --spacing-3xl: 6rem;
    --spacing-4xl: 8rem;
    
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 16px;
    --border-radius-xl: 24px;
    
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms ease;
}

/* 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;
    line-height: 1.7;
    color: var(--color-stone-800);
    background-color: var(--color-sand-50);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

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

/* Utility */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

/* ============================================
   Navigation
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(253, 251, 247, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-stone-200);
    transition: box-shadow var(--transition-base);
}

.navbar.scrolled {
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    font-size: 1.1rem;
    color: var(--color-stone-800);
}

.nav-logo-icon {
    color: var(--color-terracotta-600);
}

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

.nav-links a {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--color-stone-600);
    transition: color var(--transition-fast);
    letter-spacing: 0.01em;
}

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

.nav-cta {
    background: var(--color-terracotta-600);
    color: white !important;
    padding: 10px 20px;
    border-radius: var(--border-radius-md);
    font-weight: 500;
    transition: background var(--transition-fast), transform var(--transition-fast);
}

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

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--color-stone-700);
    transition: transform var(--transition-base), opacity var(--transition-base);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(
        135deg,
        var(--color-terracotta-500) 0%,
        var(--color-terracotta-600) 25%,
        var(--color-terracotta-700) 50%,
        var(--color-sand-500) 75%,
        var(--color-sand-400) 100%
    );
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 80% 60% at 20% 40%, rgba(231, 111, 80, 0.4) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 80% 60%, rgba(196, 160, 85, 0.3) 0%, transparent 60%),
        radial-gradient(ellipse 50% 40% at 50% 20%, rgba(253, 232, 208, 0.2) 0%, transparent 50%);
    pointer-events: none;
}

.hero-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    padding: var(--spacing-2xl) var(--spacing-lg);
    color: white;
}

.hero-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 8px 20px;
    border-radius: 50px;
    margin-bottom: var(--spacing-lg);
    backdrop-filter: blur(4px);
}

.hero-headline {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 500;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
    letter-spacing: -0.01em;
}

.hero-subheadline {
    font-size: clamp(1rem, 2vw, 1.2rem);
    font-weight: 300;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    max-width: 600px;
    margin: 0 auto var(--spacing-xl);
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-2xl);
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xl);
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 500;
    color: white;
}

.stat-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--border-radius-md);
    font-size: 0.9375rem;
    font-weight: 500;
    transition: all var(--transition-fast);
    letter-spacing: 0.01em;
}

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

.btn-primary:hover {
    background: var(--color-terracotta-700);
    border-color: var(--color-terracotta-700);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(198, 93, 62, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(4px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--color-terracotta-600);
    border: 2px solid var(--color-terracotta-600);
}

.btn-outline:hover {
    background: var(--color-terracotta-600);
    color: white;
    transform: translateY(-2px);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1rem;
}

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

/* ============================================
   Section Styles
   ============================================ */
.section-header {
    text-align: center;
    max-width: 650px;
    margin: 0 auto var(--spacing-2xl);
}

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

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 500;
    color: var(--color-stone-800);
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
    letter-spacing: -0.01em;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--color-stone-500);
    font-weight: 300;
    line-height: 1.7;
}

/* ============================================
   Services Section
   ============================================ */
.services {
    padding: var(--spacing-4xl) 0;
    background: var(--color-sand-50);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
}

.service-card {
    background: white;
    border: 1px solid var(--color-stone-200);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-xl);
    transition: all var(--transition-base);
}

.service-card:hover {
    border-color: var(--color-terracotta-200);
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.06);
}

.service-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-terracotta-50);
    border-radius: var(--border-radius-md);
    color: var(--color-terracotta-600);
    margin-bottom: var(--spacing-md);
}

.service-title {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--color-stone-800);
    margin-bottom: var(--spacing-sm);
}

.service-description {
    font-size: 0.9375rem;
    color: var(--color-stone-500);
    line-height: 1.7;
    font-weight: 300;
}

/* ============================================
   About Section
   ============================================ */
.about {
    padding: var(--spacing-4xl) 0;
    background: white;
}

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

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    height: 750px;
    object-fit: cover;
    border-radius: var(--border-radius-lg);
}

.about-image-accent {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 200px;
    height: 200px;
    background: var(--color-terracotta-100);
    border-radius: var(--border-radius-lg);
    z-index: -1;
}

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

.about-text {
    font-size: 1rem;
    color: var(--color-stone-600);
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
    font-weight: 300;
}

.about-values {
    margin-top: var(--spacing-xl);
    display: grid;
    gap: var(--spacing-sm);
}

.value-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 0.9375rem;
    color: var(--color-stone-700);
}

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

/* ============================================
   Work Gallery
   ============================================ */
.work {
    padding: var(--spacing-4xl) 0;
    background: var(--color-sand-50);
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: auto auto;
    gap: var(--spacing-md);
}

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

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

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

.work-item--large {
    grid-column: span 7;
}

.work-item:not(.work-item--large) {
    grid-column: span 5;
}

.work-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(28, 25, 23, 0.7) 0%, transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: var(--spacing-lg);
    opacity: 0;
    transition: opacity var(--transition-base);
}

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

.work-category {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-terracotta-300);
    margin-bottom: 4px;
}

.work-title {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 500;
    color: white;
}

/* ============================================
   CTA Section
   ============================================ */
.cta {
    padding: var(--spacing-4xl) 0;
    background: linear-gradient(
        135deg,
        var(--color-stone-800) 0%,
        var(--color-stone-900) 100%
    );
}

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

.cta-title {
    font-family: var(--font-serif);
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 500;
    color: white;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
}

.cta-text {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.65);
    font-weight: 300;
    line-height: 1.7;
    margin-bottom: var(--spacing-xl);
}

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

/* ============================================
   Contact Section
   ============================================ */
.contact {
    padding: var(--spacing-4xl) 0;
    background: white;
}

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

.contact-text {
    font-size: 1rem;
    color: var(--color-stone-500);
    line-height: 1.8;
    margin-bottom: var(--spacing-xl);
    font-weight: 300;
}

.contact-details {
    display: grid;
    gap: var(--spacing-lg);
}

.contact-item {
    display: flex;
    gap: var(--spacing-md);
}

.contact-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-terracotta-50);
    border-radius: var(--border-radius-md);
    color: var(--color-terracotta-600);
    flex-shrink: 0;
}

.contact-item strong {
    display: block;
    font-weight: 500;
    color: var(--color-stone-800);
    margin-bottom: 4px;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.contact-item p {
    font-size: 0.9375rem;
    color: var(--color-stone-500);
    line-height: 1.6;
}

.contact-item a {
    font-size: 0.9375rem;
    color: var(--color-terracotta-600);
    transition: color var(--transition-fast);
}

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

/* Contact Form */
.contact-form-wrapper {
    background: var(--color-sand-50);
    border: 1px solid var(--color-stone-200);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-xl);
}

.contact-form {
    display: grid;
    gap: var(--spacing-md);
}

.form-group {
    display: grid;
    gap: 6px;
}

.form-group label {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--color-stone-700);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--color-stone-200);
    border-radius: var(--border-radius-md);
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 300;
    color: var(--color-stone-800);
    background: white;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-terracotta-400);
    box-shadow: 0 0 0 3px rgba(198, 93, 62, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--color-stone-400);
}

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

.form-success {
    display: none;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: var(--color-terracotta-50);
    border: 1px solid var(--color-terracotta-200);
    border-radius: var(--border-radius-md);
    color: var(--color-terracotta-700);
    font-size: 0.9375rem;
    margin-top: var(--spacing-md);
}

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

/* ============================================
   Footer
   ============================================ */
.footer {
    background: var(--color-stone-900);
    color: rgba(255, 255, 255, 0.65);
    padding: var(--spacing-3xl) 0 var(--spacing-lg);
}

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

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    font-size: 1.1rem;
    color: white;
    margin-bottom: var(--spacing-sm);
}

.footer-logo svg {
    color: var(--color-terracotta-500);
}

.footer-brand p {
    font-size: 0.9375rem;
    line-height: 1.7;
    font-weight: 300;
}

.footer-links h4,
.footer-contact h4 {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: var(--spacing-md);
}

.footer-links ul {
    list-style: none;
    display: grid;
    gap: 8px;
}

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

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

.footer-contact p {
    font-size: 0.9375rem;
    line-height: 1.7;
    margin-bottom: 8px;
}

.footer-contact a {
    font-size: 0.9375rem;
    color: var(--color-terracotta-400);
    transition: color var(--transition-fast);
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: var(--spacing-lg);
    text-align: center;
}

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

/* ============================================
   Scroll Reveal Animations
   (Progressive enhancement — content visible without JS)
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .work-item--large {
        grid-column: span 12;
    }
    
    .work-item:not(.work-item--large) {
        grid-column: span 6;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(253, 251, 247, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: var(--spacing-lg);
        gap: var(--spacing-md);
        border-bottom: 1px solid var(--color-stone-200);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-base);
    }
    
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    
    .hero {
        min-height: 100svh;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: var(--spacing-md);
    }
    
    .stat-divider {
        width: 40px;
        height: 1px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }
    
    .about-image img {
        height: 400px;
    }
    
    .about-image-accent {
        display: none;
    }
    
    .work-grid {
        grid-template-columns: 1fr;
    }
    
    .work-item--large,
    .work-item:not(.work-item--large) {
        grid-column: span 1;
    }
    
    .work-overlay {
        opacity: 1;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .cta-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .cta-actions .btn {
        width: 100%;
        justify-content: center;
    }
}
