/* ============================================================
   ACOMAC CAXIAS DO SUL — Shared Stylesheet
   ============================================================ */

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

:root {
    --purple:       #2B2887;
    --purple-dark:  #1D1B5E;
    --purple-light: #3D3AAF;
    --orange:       #F5A623;
    --orange-dark:  #D98F10;
    --white:        #FFFFFF;
    --bg-soft:      #F7F7FC;
    --bg-gray:      #F2F2F7;
    --text:         #1A1835;
    --text-muted:   #6B7280;
    --text-faint:   #9CA3AF;
    --border:       #E5E7EB;
    --shadow-xs:    0 1px 4px rgba(0,0,0,0.07);
    --shadow-md:    0 4px 20px rgba(43,40,135,0.10);
    --shadow-lg:    0 12px 40px rgba(43,40,135,0.16);
    --r:            12px;
    --r-lg:         20px;
    --font:         'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--text); background: var(--white); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img  { display: block; max-width: 100%; }
a    { color: inherit; }
button { font-family: var(--font); cursor: pointer; border: none; }

/* ── Utilities ─────────────────────────────────── */

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

.tag {
    display: inline-flex; align-items: center; gap: .4rem;
    font-size: .75rem; font-weight: 700; letter-spacing: .06em;
    text-transform: uppercase; color: var(--orange); margin-bottom: .875rem;
}
.tag::before { content: ''; display: block; width: 20px; height: 2px; background: var(--orange); border-radius: 2px; }
.tag.center  { justify-content: center; }
.tag.center::before { display: none; }

.section-title {
    font-size: clamp(1.75rem, 3vw, 2.4rem); font-weight: 800;
    color: var(--purple-dark); letter-spacing: -.025em; line-height: 1.2; margin-bottom: 1rem;
}
.section-subtitle { font-size: 1.0625rem; color: var(--text-muted); line-height: 1.75; }

.btn {
    display: inline-flex; align-items: center; gap: .5rem;
    text-decoration: none; font-weight: 600; border-radius: 10px;
    transition: all .2s ease; padding: .8125rem 1.75rem; font-size: .9375rem;
}
.btn-orange { background: var(--orange); color: #fff; box-shadow: 0 4px 14px rgba(245,166,35,.35); }
.btn-orange:hover { background: var(--orange-dark); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(245,166,35,.45); }
.btn-outline { background: transparent; color: var(--purple); border: 2px solid var(--purple); }
.btn-outline:hover { background: var(--purple); color: #fff; transform: translateY(-1px); }
.btn-white { background: #fff; color: var(--purple-dark); box-shadow: 0 4px 14px rgba(0,0,0,.12); }
.btn-white:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(0,0,0,.16); }
.btn-purple { background: var(--purple); color: #fff; box-shadow: 0 4px 14px rgba(43,40,135,.3); }
.btn-purple:hover { background: var(--purple-dark); transform: translateY(-1px); }

/* ── NAV ────────────────────────────────────────── */

.nav {
    position: fixed; inset: 0 0 auto; z-index: 200; height: 70px;
    background: rgba(255,255,255,.94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid transparent; transition: border-color .25s, box-shadow .25s;
}
.nav.scrolled { border-bottom-color: var(--border); box-shadow: var(--shadow-xs); }
.nav-inner {
    max-width: 1200px; height: 100%; margin: 0 auto; padding: 0 2rem;
    display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.nav-logo img { height: 40px; width: auto; }
.nav-logos { display: flex; align-items: center; gap: .875rem; }
.nav-logo-sep { width: 1px; height: 28px; background: rgba(0,0,0,.13); flex-shrink: 0; }
.nav-logo-sistema { height: 34px; width: auto; }

.nav-links { display: flex; align-items: center; gap: .125rem; list-style: none; }
.nav-links a {
    text-decoration: none; font-size: .875rem; font-weight: 500; color: var(--text);
    padding: .45rem .8rem; border-radius: 8px; transition: color .15s, background .15s;
}
.nav-links a:hover, .nav-links a.active { color: var(--purple); background: var(--bg-soft); }
.nav-cta { background: var(--orange) !important; color: #fff !important; font-weight: 600 !important; padding: .45rem 1.1rem !important; border-radius: 8px !important; }
.nav-cta:hover { background: var(--orange-dark) !important; }
.nav-hamburger { display: none; flex-direction: column; gap: 5px; padding: 4px; background: none; }
.nav-hamburger span { display: block; width: 22px; height: 2px; background: var(--purple-dark); border-radius: 2px; transition: all .3s; }
.nav-drawer {
    display: none; position: fixed; top: 70px; inset-inline: 0;
    background: #fff; border-bottom: 1px solid var(--border);
    padding: 1.25rem 1.5rem 1.75rem; z-index: 199; box-shadow: var(--shadow-md);
}
.nav-drawer.open { display: block; }
.nav-drawer ul { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.nav-drawer ul a { display: block; padding: .625rem .75rem; border-radius: 8px; text-decoration: none; font-size: .9375rem; font-weight: 500; color: var(--text); }
.nav-drawer ul a:hover { background: var(--bg-soft); color: var(--purple); }
.nav-drawer .drawer-cta { display: block; margin-top: 1rem; background: var(--orange); color: #fff; text-decoration: none; text-align: center; font-weight: 600; padding: .75rem; border-radius: 10px; }

/* ── PAGE HEADER (inner pages) ──────────────────── */

.page-header {
    background: linear-gradient(130deg, var(--purple-dark) 0%, var(--purple) 60%, var(--purple-light) 100%);
    padding: 5rem 2rem 3.5rem;
    margin-top: 70px;
    position: relative;
    overflow: hidden;
}
.page-header::before {
    content: ''; position: absolute; top: -50%; right: -10%;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(245,166,35,.1) 0%, transparent 60%);
    border-radius: 50%; pointer-events: none;
}
.page-header-inner { max-width: 1200px; margin: 0 auto; position: relative; z-index: 1; }
.breadcrumb { display: flex; align-items: center; gap: .5rem; margin-bottom: 1rem; }
.breadcrumb a, .breadcrumb span { font-size: .8125rem; font-weight: 500; color: rgba(255,255,255,.6); text-decoration: none; }
.breadcrumb a:hover { color: var(--orange); }
.breadcrumb .sep { color: rgba(255,255,255,.3); }
.breadcrumb .current { color: var(--orange); }
.page-header h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; color: #fff; letter-spacing: -.03em; line-height: 1.15; }
.page-header p { color: rgba(255,255,255,.75); font-size: 1.0625rem; line-height: 1.7; margin-top: .75rem; max-width: 600px; }

/* ── FOOTER CTA ─────────────────────────────────── */

.footer-cta {
    background: var(--bg-soft); padding: 4rem 2rem; text-align: center;
    border-top: 1px solid var(--border);
}
.footer-cta h2 { font-size: clamp(1.5rem, 2.5vw, 2rem); font-weight: 800; color: var(--purple-dark); letter-spacing: -.025em; margin-bottom: .75rem; }
.footer-cta p { color: var(--text-muted); font-size: 1rem; margin-bottom: 1.75rem; }

/* ── FOOTER ─────────────────────────────────────── */

.footer { background: var(--purple-dark); color: #fff; padding: 4.5rem 2rem 2rem; }
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-grid {
    display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem; padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255,255,255,.09); margin-bottom: 2rem;
}
.footer-brand img { height: 46px; margin-bottom: 1.25rem; filter: brightness(0) invert(1); }
.footer-brand p { font-size: .9rem; color: rgba(255,255,255,.55); line-height: 1.75; margin-bottom: 1.625rem; }
.footer-social { display: flex; gap: .625rem; }
.footer-social a {
    width: 36px; height: 36px; border-radius: 8px;
    background: rgba(255,255,255,.09);
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,.65); text-decoration: none; transition: background .2s, color .2s;
}
.footer-social a:hover { background: var(--orange); color: #fff; }
.footer-col h4 { font-size: .8125rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.55); margin-bottom: 1.25rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: .5rem; }
.footer-col ul a { text-decoration: none; font-size: .9rem; color: rgba(255,255,255,.7); transition: color .15s; }
.footer-col ul a:hover { color: var(--orange); }
.footer-contact-item { display: flex; align-items: flex-start; gap: .625rem; font-size: .9rem; color: rgba(255,255,255,.7); margin-bottom: .625rem; }
.footer-contact-item svg { color: var(--orange); flex-shrink: 0; margin-top: 1px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .75rem; }
.footer-bottom p { font-size: .8125rem; color: rgba(255,255,255,.35); }

/* ── RESPONSIVE ─────────────────────────────────── */

@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
}
@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-hamburger { display: flex; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 540px) {
    .btn { justify-content: center; }
}
