/* CSS Custom Properties */
:root {
    --color-terracotta-900: #4A1A0A;
    --color-terracotta-800: #5C220E;
    --color-terracotta-700: #7A2E14;
    --color-terracotta-600: #8B3A18;
    --color-terracotta-500: #A0522D;
    --color-terracotta-400: #B8653A;
    --color-terracotta-300: #D4956A;
    --color-terracotta-200: #E8C4A8;
    --color-terracotta-100: #F5E6D8;
    --color-terracotta-50: #FBF3ED;
    
    --color-sand-900: #3D3229;
    --color-sand-800: #5C4D3C;
    --color-sand-700: #7A6855;
    --color-sand-600: #9C8670;
    --color-sand-500: #B8A088;
    --color-sand-400: #D4C4B0;
    --color-sand-300: #E8DDD0;
    --color-sand-200: #F2EBE3;
    --color-sand-100: #F8F4F0;
    --color-sand-50: #FBF9F7;
    
    --color-white: #FFFFFF;
    --color-black: #1A1410;
    
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Source Sans 3', system-ui, sans-serif;
    
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    --space-3xl: 6rem;
    
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    
    --shadow-sm: 0 1px 2px rgba(74, 26, 10, 0.05);
    --shadow-md: 0 4px 12px rgba(74, 26, 10, 0.08);
    --shadow-lg: 0 8px 30px rgba(74, 26, 10, 0.12);
    --shadow-xl: 0 20px 60px rgba(74, 26, 10, 0.15);
}

/* 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);
    color: var(--color-sand-900);
    background-color: var(--color-sand-50);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

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

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

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

/* Section Tags */
.section-tag {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-terracotta-500);
    margin-bottom: var(--space-sm);
}

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

.section-title-accent {
    color: var(--color-terracotta-500);
    font-style: italic;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--color-sand-700);
    max-width: 600px;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(251, 249, 247, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-sand-200);
    transition: box-shadow 0.3s ease;
}

.nav.scrolled {
    box-shadow: var(--shadow-md);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-terracotta-900);
}

.nav-logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--color-terracotta-500);
    color: var(--color-white);
    border-radius: var(--radius-sm);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: var(--space-xs);
}

.nav-toggle-line {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-terracotta-900);
    transition: transform 0.3s ease;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.nav-link {
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-sand-700);
    transition: color 0.2s ease;
}

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

.nav-cta {
    display: inline-flex;
    align-items: center;
    padding: 0.625rem 1.25rem;
    background: var(--color-terracotta-600);
    color: var(--color-white);
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: background 0.2s ease, transform 0.2s ease;
}

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

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8rem 0 4rem;
    background: linear-gradient(135deg, var(--color-sand-50) 0%, var(--color-terracotta-50) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: var(--color-terracotta-100);
    clip-path: polygon(20% 0, 100% 0, 100% 100%, 0% 100%);
    z-index: 0;
}

.hero-pattern {
    position: absolute;
    top: 10%;
    left: -5%;
    width: 300px;
    height: 300px;
    background-image: radial-gradient(circle, var(--color-terracotta-200) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.5;
    z-index: 0;
}

.hero-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
    position: relative;
    z-index: 1;
}

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

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

.hero-tag-line {
    width: 40px;
    height: 2px;
    background: var(--color-terracotta-500);
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
    margin-bottom: var(--space-lg);
    color: var(--color-terracotta-900);
}

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

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--color-sand-700);
    line-height: 1.7;
    margin-bottom: var(--space-xl);
}

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

.hero-stats {
    display: flex;
    gap: var(--space-xl);
    padding-top: var(--space-xl);
    border-top: 1px solid var(--color-sand-300);
}

.hero-stat {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.hero-stat-number {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 600;
    color: var(--color-terracotta-600);
}

.hero-stat-label {
    font-size: 0.8125rem;
    color: var(--color-sand-600);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero-stat-divider {
    width: 1px;
    background: var(--color-sand-300);
    align-self: stretch;
}

.hero-image {
    position: relative;
}

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

.hero-image-wrapper img {
    width: 100%;
    height: 800px;
    object-fit: cover;
}

.hero-image-accent {
    position: absolute;
    bottom: -2rem;
    left: -2rem;
    z-index: 2;
}

.hero-accent-box {
    background: var(--color-terracotta-600);
    color: var(--color-white);
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.hero-accent-box-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    opacity: 0.8;
    margin-bottom: 0.25rem;
}

.hero-accent-box-year {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 600;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
}

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

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

.btn-secondary {
    background: transparent;
    color: var(--color-terracotta-700);
    border: 2px solid var(--color-terracotta-300);
}

.btn-secondary:hover {
    background: var(--color-terracotta-50);
    border-color: var(--color-terracotta-500);
}

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

.btn-light:hover {
    background: var(--color-sand-100);
    transform: translateY(-2px);
}

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

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--color-white);
}

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

/* Services Section */
.services {
    padding: var(--space-3xl) 0;
    background: var(--color-white);
}

.services-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.services-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.services-header .section-subtitle {
    margin: 0 auto;
}

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

.service-card {
    background: var(--color-sand-50);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-sand-200);
    transition: all 0.3s ease;
}

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

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

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

.service-card-text {
    color: var(--color-sand-700);
    font-size: 0.9375rem;
    line-height: 1.6;
}

/* About Section */
.about {
    padding: var(--space-3xl) 0;
    background: var(--color-sand-100);
}

.about-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

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

.about-text {
    color: var(--color-sand-700);
    font-size: 1.0625rem;
    line-height: 1.8;
    margin-bottom: var(--space-md);
}

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

.about-value {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-weight: 500;
    color: var(--color-terracotta-800);
}

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

.about-image {
    position: relative;
}

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

.about-image-main img {
    width: 100%;
    height: 600px;
    object-fit: cover;
}

.about-image-secondary {
    position: absolute;
    bottom: -2rem;
    right: -2rem;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 4px solid var(--color-white);
}

.about-image-secondary img {
    width: 300px;
    height: 200px;
    object-fit: cover;
}

/* CTA Section */
.cta {
    padding: var(--space-3xl) 0;
    background: linear-gradient(135deg, var(--color-terracotta-700) 0%, var(--color-terracotta-900) 100%);
    color: var(--color-white);
}

.cta-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-xl);
}

.cta-content {
    flex: 1;
}

.cta-title {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    color: var(--color-white);
    margin-bottom: var(--space-sm);
}

.cta-text {
    font-size: 1.125rem;
    opacity: 0.9;
}

.cta-actions {
    display: flex;
    gap: var(--space-md);
    flex-shrink: 0;
}

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

.contact-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.contact-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

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

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

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

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

.contact-info-content h4 {
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-terracotta-600);
    margin-bottom: 0.25rem;
}

.contact-info-content p {
    color: var(--color-sand-800);
    line-height: 1.6;
}

.contact-info-content a {
    color: var(--color-terracotta-600);
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-info-content a:hover {
    color: var(--color-terracotta-800);
    text-decoration: underline;
}

.contact-form-wrapper {
    background: var(--color-sand-50);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-sand-200);
}

.contact-form h3 {
    font-size: 1.5rem;
    margin-bottom: var(--space-lg);
}

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

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-sand-800);
    margin-bottom: 0.375rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    color: var(--color-sand-900);
    background: var(--color-white);
    border: 1px solid var(--color-sand-300);
    border-radius: var(--radius-sm);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-terracotta-500);
    box-shadow: 0 0 0 3px var(--color-terracotta-100);
}

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

.form-success {
    display: none;
    text-align: center;
    padding: var(--space-2xl);
}

.form-success.show {
    display: block;
}

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

.form-success h4 {
    font-size: 1.5rem;
    margin-bottom: var(--space-sm);
}

.form-success p {
    color: var(--color-sand-700);
}

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

/* Footer */
.footer {
    background: var(--color-terracotta-900);
    color: var(--color-white);
    padding: var(--space-3xl) 0 var(--space-lg);
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-white);
    margin-bottom: var(--space-md);
}

.footer-logo-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    color: var(--color-white);
    border-radius: var(--radius-sm);
    font-family: var(--font-serif);
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9375rem;
    line-height: 1.6;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9375rem;
    transition: color 0.2s ease;
}

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

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

.footer-contact p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9375rem;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.2s ease;
}

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

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

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

/* Responsive */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }
    
    .hero-image {
        max-width: 500px;
    }
    
    .hero::before {
        display: none;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-container {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        max-width: 500px;
    }
    
    .cta-container {
        flex-direction: column;
        text-align: center;
    }
    
    .cta-actions {
        justify-content: center;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--color-sand-50);
        flex-direction: column;
        padding: var(--space-lg);
        gap: var(--space-md);
        border-bottom: 1px solid var(--color-sand-200);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .hero {
        padding: 6rem 0 3rem;
    }
    
    .hero-title {
        font-size: clamp(2rem, 8vw, 3rem);
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .hero-stats {
        flex-wrap: wrap;
        gap: var(--space-md);
    }
    
    .hero-stat-divider {
        display: none;
    }
    
    .hero-image-wrapper img {
        height: 500px;
    }
    
    .hero-image-accent {
        bottom: -1rem;
        left: -1rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .about-values {
        grid-template-columns: 1fr;
    }
    
    .about-image-secondary {
        display: none;
    }
    
    .cta-actions {
        flex-direction: column;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
}

@media (max-width: 480px) {
    :root {
        --space-lg: 1.25rem;
        --space-xl: 1.5rem;
        --space-2xl: 2rem;
        --space-3xl: 3rem;
    }
    
    .nav-container {
        padding: var(--space-sm);
    }
    
    .hero-container,
    .services-container,
    .about-container,
    .contact-container {
        padding: 0 var(--space-sm);
    }
    
    .hero-title {
        font-size: 2rem;
    }
}
