/* ============================================
   CAMPOS INCOME TAX SERVICE — STYLES
   Palette: Emerald Green + Cream
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
    --emerald-50:  #ecfdf5;
    --emerald-100: #d1fae5;
    --emerald-200: #a7f3d0;
    --emerald-300: #6ee7b7;
    --emerald-400: #34d399;
    --emerald-500: #10b981;
    --emerald-600: #059669;
    --emerald-700: #047857;
    --emerald-800: #065f46;
    --emerald-900: #064e3b;
    --emerald-950: #022c22;

    --cream-50:  #fefdf8;
    --cream-100: #fdf8e8;
    --cream-200: #faf0d0;
    --cream-300: #f5e4b0;
    --cream-400: #edc87a;
    --cream-500: #d4a853;
    --cream-600: #b8872e;

    --neutral-50:  #fafafa;
    --neutral-100: #f5f5f5;
    --neutral-200: #e5e5e5;
    --neutral-300: #d4d4d4;
    --neutral-400: #a3a3a3;
    --neutral-500: #737373;
    --neutral-600: #525252;
    --neutral-700: #404040;
    --neutral-800: #262626;
    --neutral-900: #171717;
    --neutral-950: #0a0a0a;

    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;

    --shadow-sm: 0 1px 2px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.06), 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.08), 0 8px 16px rgba(0,0,0,0.06);
    --shadow-xl: 0 20px 40px rgba(0,0,0,0.12);

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset & Base --- */
*, *::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(--neutral-800);
    background: var(--cream-50);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
ul { list-style: none; }
label { font-weight: 500; font-size: 0.875rem; }

/* --- Utilities --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* --- Buttons --- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font-weight: 600; font-size: 0.9375rem; border-radius: var(--radius-sm);
    padding: 12px 28px; transition: all var(--transition); white-space: nowrap;
}
.btn-primary {
    background: var(--emerald-700); color: #fff;
    box-shadow: 0 2px 8px rgba(6,95,70,0.3);
}
.btn-primary:hover { background: var(--emerald-800); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(6,95,70,0.35); }
.btn-secondary {
    background: transparent; color: var(--emerald-700);
    border: 1.5px solid var(--emerald-700);
}
.btn-secondary:hover { background: var(--emerald-50); }
.btn-nav {
    background: var(--cream-500); color: var(--neutral-900);
    padding: 10px 22px; font-size: 0.875rem;
}
.btn-nav:hover { background: var(--cream-400); }
.btn-outline-light {
    background: transparent; color: var(--emerald-800);
    border: 1.5px solid var(--emerald-800);
}
.btn-outline-light:hover { background: var(--emerald-50); }
.btn-full { width: 100%; }
.btn-lg { padding: 16px 36px; font-size: 1rem; }
.btn-sm { padding: 8px 20px; font-size: 0.875rem; }

/* --- Header --- */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(254,253,248,0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--neutral-200);
}
.nav-inner {
    display: flex; align-items: center; justify-content: space-between;
    height: 72px;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark {
    width: 40px; height: 40px; border-radius: var(--radius-sm);
    background: var(--emerald-800); color: var(--cream-500);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-display); font-weight: 700; font-size: 1.25rem;
}
.logo-text { font-weight: 700; font-size: 1.125rem; color: var(--neutral-900); letter-spacing: -0.02em; }
.logo-accent { color: var(--cream-500); }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a:not(.btn) {
    font-size: 0.9375rem; font-weight: 500; color: var(--neutral-600);
    transition: color var(--transition);
}
.nav-links a:not(.btn):hover { color: var(--emerald-700); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav-toggle .bar { width: 24px; height: 2px; background: var(--neutral-700); border-radius: 2px; transition: all var(--transition); }
.nav-toggle[aria-expanded="true"] .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- Hero --- */
.hero {
    position: relative;
    min-height: 90vh;
    display: flex; align-items: center;
    background: var(--emerald-900);
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute; inset: 0;
    background:
        linear-gradient(135deg, rgba(2,44,34,0.92) 0%, rgba(6,79,59,0.85) 50%, rgba(4,120,87,0.78) 100%),
        url('https://images.pexels.com/photos/36733323/pexels-photo-36733323.jpeg?auto=compress&cs=tinysrgb&fit=crop&w=1600&h=900') center/cover no-repeat;
}
.hero-overlay { position: absolute; inset: 0; background: rgba(2,44,34,0.3); }
.hero-content { position: relative; z-index: 2; padding: 80px 24px; width: 100%; }
.hero-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}
.hero-eyebrow {
    font-size: 0.8125rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.12em; color: var(--cream-500); margin-bottom: 16px;
}
.hero-headline {
    font-family: var(--font-display); font-size: clamp(2.75rem, 5vw, 4.5rem);
    font-weight: 700; color: #fff; line-height: 1.08;
    margin-bottom: 24px; letter-spacing: -0.02em;
}
.hero-desc {
    font-size: 1.125rem; color: rgba(255,255,255,0.78);
    line-height: 1.7; margin-bottom: 36px; max-width: 480px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 48px; }
.hero-actions .btn-primary { background: var(--cream-500); color: var(--neutral-900); box-shadow: 0 2px 12px rgba(212,168,83,0.4); }
.hero-actions .btn-primary:hover { background: var(--cream-400); transform: translateY(-1px); }
.hero-actions .btn-secondary { border-color: rgba(255,255,255,0.4); color: #fff; }
.hero-actions .btn-secondary:hover { background: rgba(255,255,255,0.1); border-color: #fff; }
.hero-trust { display: flex; gap: 32px; flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,0.7); font-size: 0.875rem; font-weight: 500; }
.trust-icon { width: 18px; height: 18px; color: var(--cream-500); flex-shrink: 0; }

/* Hero visual card */
.hero-visual { position: relative; display: flex; flex-direction: column; align-items: flex-end; gap: 20px; }
.hero-card {
    background: #fff; border-radius: var(--radius-lg); padding: 28px;
    width: 100%; max-width: 340px; box-shadow: var(--shadow-xl);
}
.hero-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.hc-label { font-size: 0.8125rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--neutral-500); }
.hc-badge { background: var(--emerald-100); color: var(--emerald-700); font-size: 0.75rem; font-weight: 700; padding: 4px 10px; border-radius: 20px; }
.hc-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; font-size: 0.9375rem; }
.hc-val { color: var(--neutral-600); }
.hc-divider { height: 1px; background: var(--neutral-200); margin: 8px 0; }
.hc-total { font-weight: 600; }
.hc-total .hc-val { color: var(--neutral-800); }
.hc-refund { color: var(--emerald-600); font-weight: 700; font-size: 1rem; }
.hero-badge {
    display: flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--radius-xl); padding: 10px 20px;
    color: rgba(255,255,255,0.9); font-size: 0.875rem; font-weight: 500;
    backdrop-filter: blur(8px);
}
.hero-badge svg { width: 16px; height: 16px; color: var(--cream-500); }

/* --- Sections --- */
.section { padding: 100px 0; }
.section-header { text-align: center; max-width: 640px; margin: 0 auto 64px; }
.section-eyebrow {
    font-size: 0.8125rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.12em; color: var(--emerald-600); margin-bottom: 12px;
}
.section-title {
    font-family: var(--font-display); font-size: clamp(2rem, 3.5vw, 2.75rem);
    font-weight: 700; color: var(--neutral-900); line-height: 1.15;
    margin-bottom: 16px; letter-spacing: -0.02em;
}
.section-desc { font-size: 1.0625rem; color: var(--neutral-500); line-height: 1.7; }

/* --- Services --- */
.services { background: #fff; }
.services-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.service-card {
    background: var(--cream-50); border: 1px solid var(--neutral-200);
    border-radius: var(--radius-lg); padding: 36px 28px;
    transition: all var(--transition);
}
.service-card:hover { border-color: var(--emerald-300); transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.service-icon {
    width: 56px; height: 56px; border-radius: var(--radius-md);
    background: var(--emerald-100); color: var(--emerald-700);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 20px;
}
.service-icon svg { width: 28px; height: 28px; }
.service-card h3 {
    font-size: 1.125rem; font-weight: 700; color: var(--neutral-900);
    margin-bottom: 10px; letter-spacing: -0.01em;
}
.service-card p { font-size: 0.9375rem; color: var(--neutral-500); line-height: 1.65; }

/* --- About --- */
.about { background: var(--cream-50); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about-visual { position: relative; }
.about-visual img { border-radius: var(--radius-lg); width: 100%; height: 420px; object-fit: cover; box-shadow: var(--shadow-lg); }
.about-stat-card {
    position: absolute; bottom: -24px; right: -24px;
    background: var(--emerald-800); color: #fff;
    border-radius: var(--radius-md); padding: 20px 28px;
    display: flex; flex-direction: column; gap: 2px;
    box-shadow: var(--shadow-lg);
}
.as-number { font-family: var(--font-display); font-size: 1.75rem; font-weight: 700; color: var(--cream-500); }
.as-label { font-size: 0.8125rem; color: rgba(255,255,255,0.7); }
.about-content .section-title { text-align: left; }
.about-content .section-eyebrow { text-align: left; }
.about-text { font-size: 1rem; color: var(--neutral-600); line-height: 1.75; margin-bottom: 16px; }
.about-values { margin-top: 28px; display: flex; flex-direction: column; gap: 12px; }
.value-item { display: flex; align-items: center; gap: 12px; font-size: 0.9375rem; color: var(--neutral-700); font-weight: 500; }
.value-check { width: 20px; height: 20px; color: var(--emerald-600); flex-shrink: 0; }

/* --- Why Us --- */
.why-us { background: var(--emerald-900); }
.why-us .section-eyebrow { color: var(--cream-500); }
.why-us .section-title { color: #fff; text-align: center; }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.why-card {
    background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-lg); padding: 36px 28px;
    transition: all var(--transition);
}
.why-card:hover { background: rgba(255,255,255,0.1); transform: translateY(-4px); }
.why-number {
    font-family: var(--font-display); font-size: 2.5rem; font-weight: 700;
    color: var(--cream-500); line-height: 1; margin-bottom: 16px;
}
.why-card h3 { font-size: 1.0625rem; font-weight: 700; color: #fff; margin-bottom: 10px; }
.why-card p { font-size: 0.875rem; color: rgba(255,255,255,0.65); line-height: 1.65; }

/* --- CTA Banner --- */
.cta-banner {
    background: var(--cream-200);
    padding: 80px 0;
}
.cta-inner {
    display: flex; align-items: center; justify-content: space-between;
    gap: 40px; flex-wrap: wrap;
}
.cta-text { max-width: 520px; }
.cta-title {
    font-family: var(--font-display); font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700; color: var(--neutral-900); line-height: 1.2; margin-bottom: 12px;
}
.cta-desc { font-size: 1.0625rem; color: var(--neutral-600); line-height: 1.65; }
.cta-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.cta-actions .btn-primary { background: var(--emerald-700); }
.cta-actions .btn-primary:hover { background: var(--emerald-800); }
.cta-actions .btn-outline-light { border-color: var(--emerald-700); color: var(--emerald-700); }
.cta-actions .btn-outline-light:hover { background: var(--emerald-50); }

/* --- Contact --- */
.contact { background: #fff; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.contact-item { display: flex; gap: 16px; margin-bottom: 24px; }
.ci-icon {
    width: 48px; height: 48px; border-radius: var(--radius-md);
    background: var(--emerald-100); color: var(--emerald-700);
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.ci-icon svg { width: 22px; height: 22px; }
.ci-label { display: block; font-size: 0.8125rem; color: var(--neutral-500); font-weight: 500; margin-bottom: 2px; }
.ci-value { display: block; font-size: 1rem; color: var(--neutral-800); font-weight: 600; line-height: 1.5; }
.ci-link { color: var(--emerald-700); font-weight: 600; transition: color var(--transition); }
.ci-link:hover { color: var(--emerald-500); }
.contact-map { border-radius: var(--radius-md); overflow: hidden; margin-top: 8px; box-shadow: var(--shadow-sm); }

/* Form */
.contact-form-wrapper {
    background: var(--cream-50); border: 1px solid var(--neutral-200);
    border-radius: var(--radius-lg); padding: 40px;
}
.form-title { font-size: 1.25rem; font-weight: 700; color: var(--neutral-900); margin-bottom: 24px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 6px; color: var(--neutral-700); }
.form-group input, .form-group select, .form-group textarea {
    width: 100%; padding: 12px 14px; border: 1.5px solid var(--neutral-300);
    border-radius: var(--radius-sm); font-family: var(--font-body); font-size: 0.9375rem;
    color: var(--neutral-800); background: #fff; transition: border-color var(--transition);
    appearance: none;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none; border-color: var(--emerald-500);
    box-shadow: 0 0 0 3px rgba(16,185,129,0.12);
}
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--neutral-400); }
.form-group textarea { resize: vertical; min-height: 100px; }
.form-note { text-align: center; font-size: 0.8125rem; color: var(--neutral-500); margin-top: 12px; }
.form-success { text-align: center; padding: 40px 20px; }
.success-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--emerald-100); color: var(--emerald-600); display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; }
.success-icon svg { width: 32px; height: 32px; }
.form-success h3 { font-size: 1.375rem; font-weight: 700; color: var(--neutral-900); margin-bottom: 8px; }
.form-success p { font-size: 0.9375rem; color: var(--neutral-500); margin-bottom: 24px; }

/* --- Footer --- */
.site-footer { background: var(--neutral-950); color: rgba(255,255,255,0.6); padding: 72px 0 0; }
.footer-grid {
    display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 48px;
    padding-bottom: 56px; border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand .logo-text { color: #fff; }
.footer-tagline { font-size: 0.875rem; line-height: 1.7; margin-top: 16px; max-width: 280px; }
.footer-links h4, .footer-contact h4 {
    font-size: 0.8125rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.1em; color: rgba(255,255,255,0.4); margin-bottom: 20px;
}
.footer-links ul { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 0.9375rem; color: rgba(255,255,255,0.65); transition: color var(--transition); }
.footer-links a:hover { color: var(--cream-500); }
.footer-contact p { font-size: 0.9375rem; line-height: 1.7; margin-bottom: 6px; }
.footer-contact a { color: var(--cream-500); transition: color var(--transition); }
.footer-contact a:hover { color: var(--cream-400); }
.footer-bottom { padding: 24px 0; text-align: center; font-size: 0.8125rem; color: rgba(255,255,255,0.35); }

/* --- Scroll Reveal (progressive enhancement) --- */
@media (prefers-reduced-motion: no-preference) {
    .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
    .reveal.visible { opacity: 1; transform: translateY(0); }
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .hero-grid { grid-template-columns: 1fr; gap: 48px; }
    .hero-visual { align-items: flex-start; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .why-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav-links { 
        position: fixed; top: 72px; left: 0; right: 0;
        background: var(--cream-50); border-bottom: 1px solid var(--neutral-200);
        flex-direction: column; padding: 24px; gap: 20px;
        transform: translateY(-100%); opacity: 0;
        pointer-events: none; transition: all var(--transition);
        box-shadow: var(--shadow-md);
    }
    .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: all; }
    .nav-toggle { display: flex; }
    .hero { min-height: auto; padding: 60px 0; }
    .hero-content { padding: 40px 24px; }
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; justify-content: center; }
    .hero-trust { flex-direction: column; gap: 12px; }
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .about-stat-card { bottom: -16px; right: 16px; }
    .contact-grid { grid-template-columns: 1fr; gap: 40px; }
    .cta-inner { flex-direction: column; text-align: center; }
    .cta-actions { justify-content: center; }
    .services-grid { grid-template-columns: 1fr; }
    .why-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .section { padding: 72px 0; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .hero-headline { font-size: 2.25rem; }
    .hero-card { max-width: 100%; }
    .contact-form-wrapper { padding: 24px; }
}
