:root {
    --primary-color: #8B4513;
    --primary-rgb: 139, 69, 19;
    --secondary-color: #228B22;
    --secondary-rgb: 34, 139, 34;
    --accent-color: #D4A574;
    --accent-rgb: 212, 165, 116;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Ensure HTML and BODY have no default spacing */
html, body { margin: 0; padding: 0; }

/* CRITICAL: Eliminate 1px seams between header/nav and hero */
/* Only navbar should be fixed positioned */
header, nav, .site-header {
  margin: 0; padding: 0; border: 0; box-shadow: none; outline: 0;
  background: transparent;
}

/* Main content offset is determined at runtime if nav overlays; fallback remains zero-gap safe */
main { padding-top: var(--nav-height, 0px); margin: 0; }

/* Hero must start flush under nav */
.hero, .hero-section, #hero, [data-section="hero"] { margin-top: 0; border-top: 0; }

/* Avoid decorative separators that create 1px lines at the top */
nav, .navbar, .site-header { border-bottom: none !important; box-shadow: none !important; }
.hero, .hero-section { border-top: none !important; }

body {
    font-family: 'Inter', Arial, sans-serif;
    line-height: 1.6;
    color: #2C1810;
    background-color: #F8F6F3;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1.125rem; }

p {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    color: inherit;
}

/* Navigation */
.navbar {
    background: rgba(248, 246, 243, 0.98);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    transition: all 0.3s ease;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transform: translateZ(0);
    backface-visibility: hidden;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-brand:hover {
    color: var(--secondary-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-link {
    color: #2C1810;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

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

.nav-cta {
    background: var(--secondary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.nav-cta:hover {
    background: rgba(34, 139, 34, 0.9);
    transform: translateY(-2px);
}

/* Mobile Navigation */
.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    background: linear-gradient(135deg, #2C1810 0%, rgba(44, 24, 16, 0.8) 100%);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
    margin-top: 0;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(44, 24, 16, 0.7) 0%, rgba(44, 24, 16, 0.5) 100%);
    z-index: 2;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 60% 40%;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 3;
}

.hero-image {
    width: 100%;
    height: 600px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.hero-content {
    color: #FFFFFF;
    animation: fadeInUp 0.8s ease-out;
}

.hero-headline {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: #FFFFFF;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.6);
}

.hero-subheadline {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: #FFE5CC;
    font-weight: 400;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.4);
}

.hero-cta {
    display: inline-flex;
    gap: 1rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.125rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
}

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

.btn-primary:hover {
    background: rgba(34, 139, 34, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(34, 139, 34, 0.3);
}

.btn-secondary {
    background: transparent;
    color: #F8F6F3;
    border: 2px solid var(--accent-color);
}

.btn-secondary:hover {
    background: var(--accent-color);
    color: #2C1810;
}

/* Section Styles */
.section {
    padding: 5rem 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.25rem;
    color: rgba(44, 24, 16, 0.7);
    max-width: 600px;
    margin: 0 auto;
}

/* Services Section */
.services-section {
    background: #F8F6F3;
    color: #2C1810;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: #2C1810;
}

.service-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.service-description {
    color: rgba(44, 24, 16, 0.8);
}

/* Experience Section */
.experience-section {
    background: var(--accent-color);
    color: #2C1810;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: var(--secondary-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    padding: 0 2rem;
}

.timeline-item:nth-child(odd) {
    text-align: right;
    padding-right: calc(50% + 2rem);
}

.timeline-item:nth-child(even) {
    text-align: left;
    padding-left: calc(50% + 2rem);
}

.timeline-marker {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: var(--secondary-color);
    border-radius: 50%;
    border: 4px solid var(--accent-color);
}

.timeline-content {
    background: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Testimonials Section */
.testimonials-section {
    background: #2C1810;
    color: #F8F6F3;
}

.testimonial-card {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 3rem;
    background: rgba(212, 165, 116, 0.1);
    border-radius: 12px;
    border: 1px solid var(--accent-color);
}

.testimonial-quote {
    font-size: 1.5rem;
    font-style: italic;
    margin-bottom: 2rem;
    position: relative;
}

.testimonial-quote::before,
.testimonial-quote::after {
    content: '"';
    font-size: 3rem;
    color: var(--accent-color);
    position: absolute;
    top: -10px;
}

.testimonial-quote::before {
    left: -30px;
}

.testimonial-quote::after {
    right: -30px;
}

.testimonial-author {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.testimonial-role {
    color: var(--accent-color);
    font-style: italic;
}

/* Stats Section */
.stats-section {
    background: #F8F6F3;
    color: #2C1810;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2.5rem;
    text-align: center;
}

.stat-item {
    padding: 2rem;
}

.stat-value {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    display: block;
}

.stat-label {
    font-size: 1.125rem;
    color: rgba(44, 24, 16, 0.8);
}

/* Before-After Section */
.before-after-section {
    background: #8B7355;
    color: #F8F6F3;
}

.comparison-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.comparison-item {
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    text-align: center;
}

.comparison-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(44, 24, 16, 0.7);
    z-index: 1;
}

.comparison-content {
    position: relative;
    z-index: 2;
}

.comparison-title {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.comparison-description {
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

.comparison-outcome {
    font-weight: 600;
    color: #F8F6F3;
}

/* Process Section */
.process-section {
    background: #F8F6F3;
    color: #2C1810;
}

.process-timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    position: relative;
}

.process-step {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: relative;
}

.process-number {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
}

.process-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.process-description {
    color: rgba(44, 24, 16, 0.8);
}

/* Contact Section */
.contact-section {
    background: #2C1810;
    color: #F8F6F3;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-form {
    background: rgba(212, 165, 116, 0.1);
    padding: 3rem;
    border-radius: 12px;
    border: 1px solid var(--accent-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--accent-color);
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid rgba(212, 165, 116, 0.3);
    border-radius: 8px;
    background: rgba(248, 246, 243, 0.1);
    color: #F8F6F3;
    font-size: 1rem;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(212, 165, 116, 0.2);
}

.contact-info {
    padding: 2rem 0;
}

.contact-item {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(212, 165, 116, 0.1);
    border-radius: 8px;
    border-left: 4px solid var(--accent-color);
}

.contact-label {
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    display: block;
}

.contact-value {
    color: #F8F6F3;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

.slide-up {
    animation: fadeInUp 0.8s ease-out;
}

/* Footer */
.footer {
    background: #1a0f0a;
    color: #F8F6F3;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #F8F6F3;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    border-top: 1px solid rgba(212, 165, 116, 0.2);
    padding-top: 1rem;
    text-align: center;
    color: rgba(248, 246, 243, 0.7);
}

/* Responsive Images */
.responsive-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Animations */
.fade-in-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.fade-in-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-up-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.slide-up-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(248, 246, 243, 0.98);
        flex-direction: column;
        padding: 2rem;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-image {
        order: -1;
        height: 300px;
    }

    .hero-headline {
        font-size: 2.5rem;
    }

    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.5rem; }

    .section {
        padding: 3rem 0;
    }

    .container {
        padding: 0 1rem;
    }

    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        text-align: left;
        padding-left: 3rem;
        padding-right: 1rem;
    }

    .timeline::before {
        left: 1rem;
    }

    .timeline-marker {
        left: 1rem;
    }

    .comparison-container {
        grid-template-columns: 1fr;
    }

    .contact-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .process-timeline {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-headline {
        font-size: 2rem;
    }

    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }

    .hero-cta {
        flex-direction: column;
        gap: 0.5rem;
    }
}
