/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

:root {
    color-scheme: light;
    --primary: #9a7656;
    --primary-light: #b49479;
    --primary-dark: #7d5e44;
    --accent: #9a7656;
    --accent-hover: #7d5e44;
    --bg: #f0ebe7;
    --secondary-bg: #e8dfd8;
    --text: #69533c;
    --text-muted: #8a755f;
    --white: #ffffff;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    --shadow-large: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-hero: 0 8px 20px rgba(0, 0, 0, 0.15);
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Typography Improvements */
h1, h2, h3 {
    text-wrap: balance;
    color: var(--primary);
}

h2 {
    scroll-margin-top: 100px;
}

/* Header & Nav */
header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
}

nav {
    max-width: 1200px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    letter-spacing: 2px;
    color: var(--primary);
}

.menu {
    display: flex;
    gap: 25px;
}

.menu a {
    text-decoration: none;
    color: var(--primary-dark);
    font-weight: 600;
    transition: color 0.3s ease;
}

.menu a:hover {
    color: var(--primary-light);
}

.menu a:focus-visible {
    outline: 2px solid var(--primary-light);
    outline-offset: 4px;
    border-radius: 4px;
}

/* Hero Section */
.hero {
    height: 100vh;
    background:
        linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.35)),
        url('https://images.unsplash.com/photo-1519167758481-83f550bb49b3?q=80&w=1600&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 20px;
}

.hero-content {
    max-width: 800px;
    animation: fadeUp 1.2s ease forwards;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    letter-spacing: 3px;
    color: white;
}

.hero p {
    font-size: 1.3rem;
    line-height: 1.8;
    margin-bottom: 30px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 15px 35px;
    background: var(--accent);
    color: white;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.3s ease, background-color 0.3s ease;
    box-shadow: var(--shadow-hero);
}

.btn:hover {
    transform: translateY(-3px);
    background: var(--accent-hover);
}

.btn:focus-visible {
    outline: 2px solid var(--accent-hover);
    outline-offset: 4px;
}

/* Section Containers */
section {
    padding: 100px 20px;
}

#servicos {
    background-color: var(--secondary-bg);
}

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

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.section-title p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Services / Cards */
.services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.card {
    background: white;
    border-radius: 20px;
    padding: 35px;
    box-shadow: var(--shadow-large);
    transition: transform 0.4s ease;
}

.card:hover {
    transform: translateY(-10px);
}

.card h3 {
    margin-bottom: 15px;
}

.card p {
    line-height: 1.7;
    color: var(--primary-dark);
}

/* Gallery */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.gallery img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    border-radius: 20px;
    transition: transform 0.4s ease;
}

.gallery img:hover {
    transform: scale(1.03);
}

/* About Section */
.about {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
    align-items: center;
}

.about img {
    width: 100%;
    border-radius: 25px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.about-text h2 {
    font-size: 2.5rem;
}

.about-text p {
    line-height: 1.9;
    margin-bottom: 20px;
    color: var(--primary-dark);
}

/* Contact Section */
.contact {
    background: var(--primary-dark);
    color: white;
    text-align: center;
    border-radius: 30px;
    padding: 70px 30px;
}

.contact h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: white;
}

.contact p {
    margin-bottom: 30px;
    font-size: 1.1rem;
}

/* Footer */
footer {
    text-align: center;
    padding: 30px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

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

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s ease, transform 1s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Accessibility: Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* Responsive */
@media(max-width:768px) {
    .hero h1 {
        font-size: 2.7rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .menu {
        display: none;
    }
}
