:root {
    --container: 1200px;
    --radius: 12px;
    --radius-lg: 24px;
    --transition: 0.3s ease;

    --primary: #000000;
    --primary-light: #333333;
    --primary-dark: #000000;
    --accent: #c89b3c;
    --accent-light: #e0bc5e;
    --accent-dark: #a07d2a;
    --success: #2d7a4f;
    --warning: #d4942e;
    --error: #c0413b;

    --neutral-50: #f8f9fa;
    --neutral-100: #f0f1f3;
    --neutral-200: #e2e5e9;
    --neutral-300: #c8cdd4;
    --neutral-400: #9aa1ab;
    --neutral-500: #6b7280;
    --neutral-600: #4b5563;
    --neutral-700: #374151;
    --neutral-800: #1f2937;
    --neutral-900: #111827;

    --bg: #faf8f5;
    --bg-warm: #f5f0e8;
    --card-bg: #ffffff;
    --text: #2a2a2a;
    --text-light: #5a5a5a;
    --text-muted: #8a8a8a;

    --font-heading: 'Georgia', 'Times New Roman', serif;
    --font-body: 'Helvetica Neue', 'Arial', sans-serif;

    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.1);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.15);

    --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    line-height: 1.25;
    color: var(--primary-dark);
    font-weight: 600;
}

h1 { font-size: clamp(1.8rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); }

a { color: var(--accent-dark); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent); }

img { max-width: 100%; height: auto; display: block; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ========== HEADER ========== */
#site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: transparent;
    transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
    padding: 12px 0;
}
#site-header.scrolled {
    background: rgba(250, 248, 245, 0.97);
    box-shadow: var(--shadow-md);
    padding: 6px 0;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}
.logo-text {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    transition: color var(--transition);
    letter-spacing: 0.5px;
}
.logo-text span {
    color: var(--accent-light);
    font-style: italic;
}
#site-header.scrolled .logo-text { color: var(--primary-dark); }
#site-header.scrolled .logo-text span { color: var(--accent-dark); }

#main-nav ul {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
}
#main-nav > ul > li > a {
    color: rgba(255,255,255,0.9);
    font-size: 0.875rem;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 8px;
    transition: all var(--transition);
    display: block;
}
#site-header.scrolled #main-nav > ul > li > a {
    color: var(--neutral-700);
}
#main-nav > ul > li > a:hover,
#main-nav > ul > li > a.active {
    background: rgba(255,255,255,0.15);
    color: #fff;
}
#site-header.scrolled #main-nav > ul > li > a:hover,
#site-header.scrolled #main-nav > ul > li > a.active {
    background: var(--bg-warm);
    color: var(--primary-dark);
}
#main-nav > ul > li > a.nav-cta {
    background: var(--accent);
    color: #fff !important;
    font-weight: 600;
    padding: 8px 18px;
}
#main-nav > ul > li > a.nav-cta:hover {
    background: var(--accent-dark);
}

/* Dropdown */
.has-dropdown { position: relative; }
.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius);
    min-width: 180px;
    padding: 8px 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition);
}
.has-dropdown:hover .dropdown,
.has-dropdown > a[aria-expanded="true"] + .dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.dropdown li a {
    display: block;
    padding: 8px 20px;
    color: var(--neutral-700);
    font-size: 0.85rem;
    transition: all var(--transition);
}
.dropdown li a:hover,
.dropdown li a.active {
    background: var(--bg-warm);
    color: var(--accent-dark);
    padding-left: 24px;
}

/* Menu Toggle */
#menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}
#menu-toggle span {
    width: 26px;
    height: 3px;
    background: #fff;
    border-radius: 2px;
    transition: all var(--transition);
}
#site-header.scrolled #menu-toggle span { background: var(--primary-dark); }
#menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
#menu-toggle.active span:nth-child(2) { opacity: 0; }
#menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }

/* ========== HERO ========== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -2;
}
.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0.85) 100%);
    z-index: -1;
}
.hero-content {
    max-width: 760px;
    padding: 120px 24px 80px;
    animation: fadeUp 1s ease;
}
.hero-content h1 {
    color: #fff;
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 16px;
}
.hero-content .subtitle {
    font-size: clamp(1.05rem, 2vw, 1.35rem);
    color: rgba(255,255,255,0.88);
    margin-bottom: 20px;
    font-family: var(--font-heading);
    font-style: italic;
}
.hero-content .sub-banner {
    display: inline-block;
    background: rgba(200,155,60,0.25);
    border: 1px solid rgba(200,155,60,0.5);
    color: var(--accent-light);
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 0.9rem;
    margin-bottom: 32px;
    max-width: 600px;
}
.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent);
    color: #fff;
    font-weight: 600;
    font-size: 1.05rem;
    padding: 16px 36px;
    border-radius: 50px;
    transition: all var(--transition);
    box-shadow: 0 8px 24px rgba(200,155,60,0.4);
}
.hero-cta:hover {
    background: var(--accent-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(200,155,60,0.5);
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ========== BUTTONS ========== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all var(--transition);
    cursor: pointer;
    border: none;
    text-decoration: none;
}
.btn-primary {
    background: var(--accent);
    color: #fff;
}
.btn-primary:hover { background: var(--accent-dark); color: #fff; transform: translateY(-2px); }
.btn-outline {
    background: transparent;
    border: 2px solid var(--accent);
    color: var(--accent-dark);
}
.btn-outline:hover { background: var(--accent); color: #fff; }
.btn-light {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.4);
    color: #fff;
}
.btn-light:hover { background: rgba(255,255,255,0.25); color: #fff; }

/* ========== SECTIONS ========== */
.section { padding: 80px 0; }
.section-warm { background: var(--bg-warm); }
.section-dark { background: var(--primary-dark); color: #fff; }
.section-dark h2, .section-dark h3 { color: #fff; }

.section-title {
    text-align: center;
    margin-bottom: 16px;
}
.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-light);
    font-style: italic;
    font-family: var(--font-heading);
    margin-bottom: 48px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ========== WELCOME ========== */
.welcome {
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
}
.welcome p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 16px;
}
.welcome .emphasis {
    font-weight: 600;
    color: var(--primary);
}
.welcome .final {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--accent-dark);
    margin-top: 24px;
    font-style: italic;
}

/* ========== HOW IT WORKS ========== */
.how-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    counter-reset: step;
}
.how-card {
    text-align: center;
    padding: 40px 20px;
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
    position: relative;
}
.how-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}
.how-card::before {
    counter-increment: step;
    content: counter(step);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--accent);
    color: #fff;
    font-size: 1.3rem;
    font-weight: 700;
    border-radius: 50%;
    margin-bottom: 16px;
    font-family: var(--font-heading);
}
.how-card h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
}
.how-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ========== RAMOS ========== */
.ramos-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}
.ramo-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
    text-align: center;
    text-decoration: none;
    display: block;
}
.ramo-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}
.ramo-card-img {
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--neutral-200);
}
.ramo-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.ramo-card:hover .ramo-card-img img { transform: scale(1.08); }
.ramo-card-body {
    padding: 20px 12px;
}
.ramo-card-body h3 {
    font-size: 1.1rem;
    color: var(--primary-dark);
    margin-bottom: 4px;
}
.ramo-card-body p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.ramos-intro {
    text-align: center;
    margin-bottom: 40px;
}
.ramos-intro h2 { margin-bottom: 12px; }
.ramos-intro .tagline {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 1.2rem;
    color: var(--accent-dark);
}

/* ========== TIMELINE ========== */
.timeline-summary {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
    max-width: 800px;
    margin: 0 auto;
}
.timeline-summary h3 {
    text-align: center;
    margin-bottom: 24px;
}
.timeline-summary .period {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--accent-dark);
    margin-bottom: 8px;
}
.timeline-summary .timeline-item {
    padding: 16px 0;
    border-bottom: 1px solid var(--neutral-200);
}
.timeline-summary .timeline-item:last-child { border-bottom: none; }
.timeline-summary p {
    color: var(--text-light);
}

/* Full timeline */
.timeline-full {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 0;
}
.timeline-full::before {
    content: '';
    position: absolute;
    left: 24px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--accent), var(--primary-light));
    border-radius: 2px;
}
.timeline-entry {
    position: relative;
    padding-left: 64px;
    padding-bottom: 40px;
}
.timeline-entry:last-child { padding-bottom: 0; }
.timeline-entry::before {
    content: '';
    position: absolute;
    left: 16px;
    top: 4px;
    width: 18px;
    height: 18px;
    background: var(--accent);
    border: 3px solid var(--bg);
    border-radius: 50%;
    box-shadow: 0 0 0 2px var(--accent);
}
.timeline-entry .timeline-date {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--accent-dark);
    font-size: 1.1rem;
    margin-bottom: 4px;
}
.timeline-entry h3 {
    font-size: 1.1rem;
    margin-bottom: 6px;
}
.timeline-entry p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* ========== BLOG CARDS ========== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.blog-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
}
.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}
.blog-card-img {
    aspect-ratio: 16/10;
    overflow: hidden;
    background: var(--neutral-200);
}
.blog-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.blog-card:hover .blog-card-img img { transform: scale(1.06); }
.blog-card-body { padding: 24px; }
.blog-card .blog-category {
    display: inline-block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-dark);
    font-weight: 600;
    margin-bottom: 8px;
}
.blog-card h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
    color: var(--primary-dark);
}
.blog-card .blog-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}
.blog-card p {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* ========== TESTIMONIALS ========== */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}
.testimonial-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow-sm);
    position: relative;
}
.testimonial-card::before {
    content: '\201C';
    font-family: var(--font-heading);
    font-size: 4rem;
    color: var(--accent);
    opacity: 0.3;
    position: absolute;
    top: 10px;
    left: 20px;
    line-height: 1;
}
.testimonial-card blockquote {
    font-size: 1.05rem;
    color: var(--text);
    margin-bottom: 16px;
    font-style: italic;
    padding-left: 20px;
}
.testimonial-card cite {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: normal;
    font-weight: 600;
    padding-left: 20px;
}

/* ========== CTA FINAL ========== */
.cta-final {
    text-align: center;
    padding: 80px 0;
}
.cta-final h2 {
    color: #fff;
    margin-bottom: 24px;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
}
.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ========== PAGE HEADER ========== */
.page-header {
    background: var(--primary-dark);
    color: #fff;
    padding: 140px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.page-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(to right, transparent, var(--accent), transparent);
}
.page-header h1 {
    color: #fff;
    margin-bottom: 12px;
}
.page-header p {
    color: rgba(255,255,255,0.8);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    font-style: italic;
    font-family: var(--font-heading);
}

/* ========== TREE ========== */
.tree-visual {
    text-align: center;
    padding: 40px 0;
}
.tree-visual img {
    max-width: 700px;
    margin: 0 auto 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}
.tree-structure {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}
.tree-root {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    padding: 16px 32px;
    border-radius: var(--radius);
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 30px;
    position: relative;
}
.tree-root::after {
    content: '';
    display: block;
    width: 3px;
    height: 32px;
    background: var(--accent);
    margin: 0 auto;
    position: absolute;
    bottom: -32px;
    left: 50%;
    transform: translateX(-50%);
}
.tree-branches {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    padding-top: 0;
    position: relative;
}
.tree-branches::before {
    content: '';
    position: absolute;
    top: 0;
    left: 11%;
    right: 15%;
    height: 3px;
    background: var(--accent);
}
.tree-branch {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    padding-top: 32px;
}
.tree-branch::before {
    content: '';
    position: absolute;
    top: 0;
    width: 3px;
    height: 32px;
    background: var(--accent);
}
.tree-branch a {
    display: inline-block;
    background: var(--card-bg);
    border: 2px solid var(--accent);
    color: var(--primary-dark);
    padding: 12px 20px;
    border-radius: var(--radius);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all var(--transition);
    text-decoration: none;
}
.tree-branch a:hover {
    background: var(--accent);
    color: #fff;
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.tree-branch.no-link span {
    display: inline-block;
    background: var(--neutral-100);
    border: 2px dashed var(--neutral-300);
    color: var(--text-muted);
    padding: 12px 20px;
    border-radius: var(--radius);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
}
.tree-branch .sub-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 6px;
}

/* ========== RAMO PAGE ========== */
.ramo-hero {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 48px;
    align-items: center;
    padding: 40px 0;
}
.ramo-hero-img {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 3/4;
}
.ramo-hero-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.ramo-hero-text h2 {
    margin-bottom: 16px;
}
.ramo-hero-text p {
    color: var(--text-light);
    margin-bottom: 12px;
    font-size: 1.05rem;
}

.ramo-list {
    padding: 40px 0;
}
.ramo-list h3 {
    margin-bottom: 20px;
    border-bottom: 2px solid var(--accent);
    padding-bottom: 8px;
    display: inline-block;
}
.ramo-list ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}
.ramo-list ul li a {
    display: block;
    padding: 12px 20px;
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    color: var(--primary-dark);
    font-weight: 500;
    transition: all var(--transition);
}
.ramo-list ul li a:hover {
    background: var(--accent);
    color: #fff;
    transform: translateX(4px);
}

/* ========== GALLERY ========== */
.gallery-filters {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}
.filter-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}
.filter-group label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-right: 4px;
}
.filter-btn {
    padding: 6px 16px;
    border: 1px solid var(--neutral-300);
    background: var(--card-bg);
    border-radius: 50px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all var(--transition);
    color: var(--text-light);
}
.filter-btn:hover, .filter-btn.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.gallery-item {
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 1;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: all var(--transition);
    background: var(--neutral-200);
}
.gallery-item:hover {
    transform: scale(1.04);
    box-shadow: var(--shadow-md);
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.gallery-item .gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    color: #fff;
    padding: 16px 12px 8px;
    font-size: 0.8rem;
    opacity: 0;
    transition: opacity var(--transition);
}
.gallery-item:hover .gallery-caption { opacity: 1; }
.gallery-item { position: relative; }

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 40px;
}
.lightbox.open { display: flex; }
.lightbox img {
    max-width: 90%;
    max-height: 90vh;
    border-radius: var(--radius);
}
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    background: transparent;
    border: none;
}

/* ========== BLOG PAGE ========== */
.blog-categories {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}
.blog-cat {
    padding: 8px 20px;
    background: var(--bg-warm);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    transition: all var(--transition);
}
.blog-cat:hover { background: var(--accent); color: #fff; }

.blog-header-img {
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 48px;
    box-shadow: var(--shadow-md);
    aspect-ratio: 21/9;
}
.blog-header-img img { width: 100%; height: 100%; object-fit: cover; }

/* ========== FORMS ========== */
.form-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}
.form-side-img {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 4/5;
    position: sticky;
    top: 100px;
}
.form-side-img img { width: 100%; height: 100%; object-fit: cover; }

.form {
    background: var(--card-bg);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

#contact-form {
    width: calc(100% + 32px);
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 6px;
}
.form-group label .req { color: var(--error); }
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--neutral-300);
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-family: var(--font-body);
    color: var(--text);
    background: var(--neutral-50);
    transition: all var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(200,155,60,0.15);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group input[type="file"] {
    padding: 8px;
    background: #fff;
}
.form-group input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
}
.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0;
}
.checkbox-group label {
    margin-bottom: 0;
    font-weight: 400;
    color: var(--text-light);
}
.form-submit {
    width: 100%;
    padding: 16px;
    font-size: 1.05rem;
    margin-top: 12px;
    justify-content: center;
}
.form-success, .form-error {
    padding: 16px 20px;
    border-radius: var(--radius);
    margin-top: 20px;
    font-size: 0.95rem;
}
.form-success {
    background: rgba(45,122,79,0.1);
    border: 1px solid var(--success);
    color: var(--success);
}
.form-error {
    background: rgba(192,65,59,0.1);
    border: 1px solid var(--error);
    color: var(--error);
}

/* ========== CURIOSIDADES ========== */
.curiosidades-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.curiosidade-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 28px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
}
.curiosidade-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.curiosidade-card .q {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--accent-dark);
    font-weight: 700;
    margin-bottom: 4px;
}
.curiosidade-card .label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ========== FOOTER ========== */
#site-footer {
    background: var(--primary-dark);
    color: rgba(255,255,255,0.8);
    padding: 60px 0 24px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 32px;
}
.footer-brand h3 {
    color: #fff;
    font-size: 1.3rem;
    margin-bottom: 8px;
}
.footer-brand p {
    font-style: italic;
    font-family: var(--font-heading);
    color: var(--accent-light);
}
.footer-links h4,
.footer-contact h4 {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 16px;
}
.footer-links ul,
.footer-contact ul {
    list-style: none;
}
.footer-links li,
.footer-contact li {
    margin-bottom: 8px;
}
.footer-links a,
.footer-contact a {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    transition: color var(--transition);
}
.footer-links a:hover,
.footer-contact a:hover {
    color: var(--accent-light);
}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.85rem;
}
.footer-bottom strong { color: var(--accent-light); }

/* ========== REVEAL ========== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
    #menu-toggle { display: flex; }
    #main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        max-width: 85vw;
        height: 100vh;
        background: var(--primary-dark);
        padding: 80px 24px 24px;
        transition: right 0.35s ease;
        overflow-y: auto;
    }
    #main-nav.open { right: 0; }
    #main-nav ul {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }
    #main-nav > ul > li > a {
        color: rgba(255,255,255,0.9);
        padding: 14px 16px;
        border-radius: 8px;
        font-size: 1rem;
    }
    #main-nav > ul > li > a:hover,
    #main-nav > ul > li > a.active {
        background: rgba(255,255,255,0.1);
    }
    #main-nav > ul > li > a.nav-cta {
        margin-top: 12px;
        text-align: center;
    }
    .dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: rgba(255,255,255,0.05);
        border-radius: 8px;
        margin: 4px 0 4px 16px;
        display: none;
    }
    .dropdown.open { display: block; }
    .dropdown li a {
        color: rgba(255,255,255,0.7);
        padding: 10px 20px;
    }

    .how-grid { grid-template-columns: repeat(2, 1fr); }
    .ramos-grid { grid-template-columns: repeat(3, 1fr); }
    .blog-grid { grid-template-columns: 1fr; }
    .testimonials-grid { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: repeat(3, 1fr); }
    .curiosidades-grid { grid-template-columns: repeat(2, 1fr); }
    .form-wrapper { grid-template-columns: 1fr; }
    .form-side-img { display: none; }
    .form-row { grid-template-columns: 1fr; }
    .ramo-hero { grid-template-columns: 1fr; }
    .ramo-hero-img { max-width: 400px; margin: 0 auto; }
    .footer-grid { grid-template-columns: 1fr; }
    .tree-branches { gap: 8px; }
    .tree-branch a, .tree-branch.no-link span { font-size: 0.8rem; padding: 10px 14px; }
}

@media (max-width: 900px) {
    #contact-form {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .how-grid { grid-template-columns: 1fr; }
    .ramos-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .curiosidades-grid { grid-template-columns: 1fr; }
    .section { padding: 56px 0; }
    .form { padding: 24px; }
    .hero-content { padding: 100px 20px 60px; }
    .cta-buttons { flex-direction: column; align-items: center; }
    .cta-buttons .btn { width: 100%; max-width: 280px; justify-content: center; }
    .footer-bottom { flex-direction: column; text-align: center; }
}
