:root {
    --primary-color: #8B4513;
    --primary-rgb: 139, 69, 19;
    --secondary-color: #228B22;
    --secondary-rgb: 34, 139, 34;
    --accent-color: #D2691E;
    --accent-rgb: 210, 105, 30;
}

* {
    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 the .navbar is fixed; header/nav containers remain static */
.navbar {
  position: fixed; top: 0; left: 0; right: 0;
  background: var(--neutral-light, #ffffff);
  z-index: 10000; /* ensure nav overlays all content */
}
header, .site-header, nav {
  position: static;
  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; }

/* Navigation layout and CTA button */
.navbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 20px; }
.brand { font-weight: 700; color: var(--text-color, #111); text-decoration: none; }
.nav-menu { display: flex; align-items: center; gap: 20px; }
.nav-menu a { color: var(--text-color, #111); text-decoration: none; }
.nav-cta a, .nav-cta button {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 16px; border-radius: 999px;
  background: var(--primary-color); color: #fff; border: none; text-decoration: none;
  transition: background 0.2s ease;
}
.nav-cta a:hover, .nav-cta button:hover { background: rgba(var(--primary-rgb), 0.9); }

/* Toggle (burger) */
.nav-toggle { display: none; flex-direction: column; gap: 4px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text-color, #111); }

/* Mobile navigation behavior */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    display: none;
    position: fixed; top: var(--nav-height, 64px); left: 0; right: 0;
    background: var(--neutral-light, #ffffff);
    flex-direction: column; gap: 12px;
    padding: 16px 20px;
    border-top: 1px solid rgba(var(--primary-rgb), 0.12);
  }
  .nav-menu.active { display: flex; }
  .navbar__inner { padding: 10px 16px; }
  .nav-cta { margin-left: 8px; }
}

/* Desktop */
@media (min-width: 769px) {
  .nav-toggle { display: none; }
}

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

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

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

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background-color: var(--primary-color);
    color: #F5F5DC;
}

.btn-primary:hover {
    background-color: rgba(var(--primary-rgb), 0.9);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.3);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: #F5F5DC;
}

.btn-secondary:hover {
    background-color: rgba(var(--secondary-rgb), 0.9);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(var(--secondary-rgb), 0.3);
}

.btn-accent {
    background-color: var(--accent-color);
    color: #F5F5DC;
}

.btn-accent:hover {
    background-color: rgba(var(--accent-rgb), 0.9);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(var(--accent-rgb), 0.3);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(var(--primary-rgb), 0.8), rgba(var(--primary-rgb), 0.8)), url('./assets/images/hero_1.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #F5F5DC;
    position: relative;
}

.hero-content {
    max-width: 800px;
    padding: 2rem;
    animation: fadeInUp 1s ease-out;
}

.hero-headline {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subheadline {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* About Section */
.about-section {
    background-color: #F5F5DC;
    color: #2F2F2F;
    padding: 5rem 0;
}

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

.about-content h2 {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.about-content h3 {
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.about-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.about-images img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.about-images img:hover {
    transform: scale(1.05);
}

/* Services Section */
.services-section {
    background-color: #2F2F2F;
    color: #F5F5DC;
    padding: 5rem 0;
}

.services-section h2 {
    color: #F5F5DC;
    text-align: center;
    margin-bottom: 1rem;
}

.services-section .section-subtitle {
    text-align: center;
    margin-bottom: 3rem;
    opacity: 0.9;
}

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

.service-card {
    background: rgba(245, 245, 220, 0.1);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(var(--secondary-rgb), 0.2);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(var(--secondary-rgb), 0.2);
}

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

.service-card h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.services-cta {
    text-align: center;
}

/* Benefits Section */
.benefits-section {
    background-color: #F5F5DC;
    color: #2F2F2F;
    padding: 5rem 0;
}

.benefits-section h2 {
    color: var(--accent-color);
    text-align: center;
    margin-bottom: 1rem;
}

.benefits-section .section-subtitle {
    text-align: center;
    margin-bottom: 3rem;
}

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

.stat-item {
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

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

.stat-label {
    font-size: 1.1rem;
    color: #2F2F2F;
    font-weight: 600;
}

/* Testimonials Section */
.testimonials-section {
    background-color: var(--primary-color);
    color: #F5F5DC;
    padding: 5rem 0;
    text-align: center;
}

.testimonials-section h2 {
    color: #F5F5DC;
    margin-bottom: 1rem;
}

.testimonials-section .section-subtitle {
    margin-bottom: 3rem;
    opacity: 0.9;
}

.testimonial-card {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem;
    background: rgba(245, 245, 220, 0.1);
    border-radius: 12px;
    position: relative;
}

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

.testimonial-quote::before {
    content: '"';
    font-size: 4rem;
    color: var(--accent-color);
    position: absolute;
    top: -1rem;
    left: -2rem;
}

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

.testimonial-role {
    opacity: 0.8;
    font-size: 1rem;
}

/* Process Section */
.process-section {
    background-color: #F5F5DC;
    color: #2F2F2F;
    padding: 5rem 0;
}

.process-section h2 {
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 1rem;
}

.process-section .section-subtitle {
    text-align: center;
    margin-bottom: 3rem;
}

.process-timeline {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto 3rem;
}

.process-step {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.process-step:hover {
    transform: translateX(10px);
}

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

.step-content h3 {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.process-cta {
    text-align: center;
}

/* Contact Section */
.contact-section {
    background-color: #2F2F2F;
    color: #F5F5DC;
    padding: 5rem 0;
}

.contact-section h2 {
    color: #F5F5DC;
    text-align: center;
    margin-bottom: 1rem;
}

.contact-section .section-subtitle {
    text-align: center;
    margin-bottom: 3rem;
    opacity: 0.9;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-form {
    background: rgba(245, 245, 220, 0.1);
    padding: 2rem;
    border-radius: 12px;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(245, 245, 220, 0.3);
    border-radius: 8px;
    background: rgba(245, 245, 220, 0.1);
    color: #F5F5DC;
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(var(--primary-rgb), 0.2);
}

.contact-info h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

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

/* Footer */
.footer {
    background-color: #1a1a1a;
    color: #F5F5DC;
    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(--primary-color);
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

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

.footer-section ul li a {
    color: #F5F5DC;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    border-top: 1px solid rgba(245, 245, 220, 0.2);
    padding-top: 1rem;
    text-align: center;
    opacity: 0.8;
}

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

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

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

/* Responsive Design */
@media (max-width: 768px) {
    .hero-headline {
        font-size: 2.5rem;
    }
    
    .hero-subheadline {
        font-size: 1.2rem;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .about-container,
    .contact-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-images {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .process-step {
        flex-direction: column;
        text-align: center;
    }
    
    .process-step:hover {
        transform: translateY(-5px);
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.8rem; }
    h3 { font-size: 1.5rem; }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-content {
        padding: 1rem;
    }
    
    .testimonial-card {
        padding: 2rem 1rem;
    }
    
    .testimonial-quote::before {
        left: -1rem;
    }
}

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

/* Focus states for accessibility */
.btn:focus,
input:focus,
textarea:focus,
a:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* Responsive images */
.responsive-image {
    width: 100%;
    height: auto;
    display: block;
}
