/* ==========================================================================
   ABJ Accounting Solutions — shared stylesheet
   ========================================================================== */

/* ----- Design tokens ----- */
:root {
    --blue: #304fff;        /* logo blue */
    --blue-dark: #2442d9;   /* logo blue, darkened for text/links on light */
    --blue-deep: #1e40af;   /* deep end of the gradient (same hue family) */
    --navy: #1e2147;
    --navy-soft: #2d325f;
    --ink: #2d3748;
    --ink-soft: #4a5568;
    --muted: #718096;
    --line: #e2e8f0;
    --bg-soft: #f7fafc;
    --white: #ffffff;
    --green: #2f855a;
    --green-bg: #f0fff4;
    --green-line: #48bb78;
    --red: #9b2c2c;
    --red-bg: #fff5f5;
    --red-line: #f56565;
    --grad: linear-gradient(135deg, #304fff 0%, #1e40af 100%);
    --grad-text: linear-gradient(135deg, #304fff 0%, #1e40af 100%);
    --radius: 16px;
    --radius-lg: 24px;
    --shadow-sm: 0 2px 10px rgba(30, 33, 71, 0.06);
    --shadow: 0 10px 40px rgba(30, 33, 71, 0.1);
    --shadow-lg: 0 20px 60px rgba(30, 33, 71, 0.16);
    --nav-h: 84px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
}

/* ----- Reset & base ----- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--ink);
    background: var(--white);
    overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

h1, h2, h3, h4 { line-height: 1.25; color: var(--ink); font-weight: 800; letter-spacing: -0.02em; }
h1, h2 { text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { text-wrap: pretty; }

::selection { background: var(--blue); color: #fff; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }

.skip-link {
    position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden;
}
.skip-link:focus {
    position: fixed; left: 1rem; top: 1rem; width: auto; height: auto; z-index: 3000;
    background: var(--navy); color: #fff; padding: 0.6rem 1rem; border-radius: 8px; font-weight: 600;
}

/* ----- Layout helpers ----- */
.container { max-width: 1180px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 4.5rem 0; }
.section--alt { background: var(--bg-soft); }
.section--dark { background: var(--navy); color: #cfd3ea; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark .section-head p { color: #aab0d0; }

.section-head { text-align: center; max-width: 720px; margin: 0 auto 3rem; }
.section-head p { color: var(--muted); font-size: 1.08rem; margin-top: 0.75rem; }

.eyebrow {
    display: inline-flex; align-items: center; gap: 0.5rem;
    text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.78rem; font-weight: 700;
    color: var(--blue-dark); background: rgba(48, 79, 255, 0.1);
    padding: 0.4rem 0.9rem; border-radius: 100px; margin-bottom: 1rem;
}
.section--dark .eyebrow, .hero .eyebrow, .page-hero .eyebrow { background: rgba(255, 255, 255, 0.15); color: #fff; }

.grad-text { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }

[id] { scroll-margin-top: calc(var(--nav-h) + 16px); }

/* ----- Buttons ----- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
    padding: 0.9rem 1.7rem; border-radius: 100px; border: 2px solid transparent;
    font-weight: 700; font-size: 1rem; line-height: 1.2; cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
    white-space: nowrap;
}
.btn svg { width: 1.1em; height: 1.1em; flex-shrink: 0; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 26px rgba(48, 79, 255, 0.35); }
.btn-primary:hover { box-shadow: 0 14px 34px rgba(30, 64, 175, 0.45); }

.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--navy-soft); box-shadow: 0 12px 28px rgba(30, 33, 71, 0.3); }

.btn-white { background: #fff; color: var(--blue-dark); box-shadow: 0 10px 26px rgba(0, 0, 0, 0.22); }
.btn-white:hover { box-shadow: 0 14px 34px rgba(0, 0, 0, 0.3); }

.btn-outline { background: transparent; color: var(--blue-dark); border-color: var(--blue); }
.btn-outline:hover { background: rgba(48, 79, 255, 0.08); }

.btn-outline-light { background: rgba(255, 255, 255, 0.12); color: #fff; border-color: rgba(255, 255, 255, 0.55); }
.btn-outline-light:hover { background: rgba(255, 255, 255, 0.22); }

.btn-whatsapp { background: #25d366; color: #fff; }
.btn-whatsapp:hover { background: #1ebe5b; box-shadow: 0 12px 28px rgba(37, 211, 102, 0.4); }

.btn-sm { padding: 0.6rem 1.2rem; font-size: 0.92rem; }
.btn-lg { padding: 1.05rem 2rem; font-size: 1.06rem; }

/* ----- Header / nav ----- */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(255, 255, 255, 0.92);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(30, 33, 71, 0.06);
    transition: box-shadow 0.3s ease, background 0.3s ease;
}
.navbar.scrolled { background: rgba(255, 255, 255, 0.98); box-shadow: 0 2px 16px rgba(30, 33, 71, 0.08); }
.nav-container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: var(--nav-h); }
.brand { display: flex; align-items: center; }
.brand img { height: 46px; width: auto; }
.site-nav { display: flex; }
.nav-links { display: flex; align-items: center; gap: 1.9rem; }
.nav-links a:not(.btn) {
    font-weight: 600; color: var(--ink-soft); font-size: 0.97rem; position: relative; padding: 0.35rem 0;
    transition: color 0.2s ease;
}
.nav-links a:not(.btn):hover { color: var(--blue-dark); }
.nav-links a:not(.btn)::after {
    content: ''; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
    background: var(--grad); border-radius: 2px; transition: width 0.25s ease;
}
.nav-links a:not(.btn):hover::after, .nav-links a[aria-current="page"]::after { width: 100%; }
.nav-links a[aria-current="page"] { color: var(--blue-dark); }

.mobile-menu {
    display: none; background: transparent; border: 0; cursor: pointer; padding: 0.6rem;
    border-radius: 8px; flex-direction: column; gap: 5px;
}
.mobile-menu .bar { width: 24px; height: 3px; background: var(--ink); border-radius: 3px; transition: transform 0.3s ease, opacity 0.3s ease; }
.mobile-menu[aria-expanded="true"] .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.mobile-menu[aria-expanded="true"] .bar:nth-child(2) { opacity: 0; }
.mobile-menu[aria-expanded="true"] .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ----- Home hero ----- */
.hero {
    position: relative; min-height: 100svh; display: flex; align-items: center;
    padding: calc(var(--nav-h) + 3rem) 0 4.5rem; overflow: hidden;
    background: var(--grad);
    color: #fff;
}
.hero::before {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background:
        radial-gradient(ellipse 60% 45% at 12% 0%, rgba(255, 255, 255, 0.16), transparent 60%),
        radial-gradient(ellipse 55% 45% at 100% 100%, rgba(30, 33, 71, 0.35), transparent 60%);
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 3.5rem; align-items: center; }
.hero h1 { color: #fff; font-size: clamp(2.4rem, 5.2vw, 3.6rem); margin-bottom: 1.1rem; }
.hero-subtitle { font-size: 1.15rem; opacity: 0.95; max-width: 560px; margin-bottom: 1.6rem; }
.hero-points { display: flex; flex-wrap: wrap; gap: 0.6rem 1.6rem; margin-bottom: 2rem; }
.hero-points li { display: flex; align-items: center; gap: 0.5rem; font-weight: 600; font-size: 0.95rem; }
.hero-points svg { width: 1.1em; height: 1.1em; flex-shrink: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.hero-panel {
    background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: var(--radius-lg); padding: 10px;
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    box-shadow: 0 24px 60px rgba(30, 33, 71, 0.3);
}
.hero-panel h2 { color: #fff; font-size: 1.15rem; margin-bottom: 1.1rem; }
.hero-panel ul { display: flex; flex-direction: column; gap: 0.85rem; }
.hero-panel li { display: flex; gap: 0.8rem; align-items: flex-start; font-size: 0.95rem; line-height: 1.45; }
.hero-panel .icon-chip { background: rgba(255, 255,255, 0.18); border-radius: 10px; padding: 0.45rem; display: flex; }
.hero-panel svg { width: 1.15rem; height: 1.15rem; }
.hero-panel strong { display: block; }
.hero-panel .desc { opacity: 0.85; font-size: 0.88rem; }

/* Dark cards (used on navy sections) */
.dark-card {
    padding: 1.5rem; border-radius: 16px;
    background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.08);
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.dark-card:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.22); transform: translateY(-4px); }
.dark-card p { color: #aab0d0; font-size: 0.95rem; }

.hero-stats {
    position: relative; z-index: 1; margin-top: 3rem;
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
    background: rgba(255, 255, 255, 0.16); border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: var(--radius-lg); overflow: hidden;
}
.hero-stat { background: rgba(30, 33, 71, 0.25); padding: 1.4rem 1rem; text-align: center; }
.hero-stat strong { display: block; font-size: 1.7rem; font-weight: 800; }
.hero-stat span { font-size: 0.85rem; opacity: 0.9; }
#main > section.hero > div > div.hero-grid > aside > img {
    width: 100%; height: auto;}
/* ----- Page hero (subpages) ----- */
.page-hero {
    position: relative; padding: calc(var(--nav-h) + 3.5rem) 0 3.5rem; text-align: center; color: #fff;
    background: var(--grad);
}
.page-hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 50% 60% at 85% 0%, rgba(255,255,255,0.14), transparent 60%); }
.page-hero .container { position: relative; }
.page-hero h1 { color: #fff; margin-bottom: 0.9rem; }
.page-hero p { max-width: 640px; margin: 0 auto; opacity: 0.95; font-size: 1.1rem; }
.breadcrumbs { display: flex; justify-content: center; gap: 0.5rem; font-size: 0.85rem; margin-bottom: 1.2rem; opacity: 0.85; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs li + li::before { content: '/'; margin-right: 0.5rem; opacity: 0.6; }

/* ----- Cards & grids ----- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.8rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.8rem; }

.card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
    padding: 2rem; box-shadow: var(--shadow-sm); transition: transform 0.25s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(48, 79, 255, 0.35); }

.icon-chip {
    display: inline-flex; width: 56px; height: 56px; align-items: center; justify-content: center;
    background: var(--grad); color: #fff; border-radius: 14px; margin-bottom: 1.1rem;
    box-shadow: 0 8px 20px rgba(48, 79, 255, 0.3);
}
.icon-chip svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: 0.6rem; }
.card p { color: var(--muted); font-size: 0.96rem; }
.card-link { display: inline-flex; align-items: center; gap: 0.4rem; margin-top: 1rem; font-weight: 700; color: var(--blue-dark); font-size: 0.92rem; }
.card-link svg { width: 1em; height: 1em; transition: transform 0.2s ease; }
.card-link:hover svg { transform: translateX(4px); }

/* About snapshot */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }
.about-grid h2 { margin-bottom: 1rem; }
.about-grid > div > p { color: var(--ink-soft); margin-bottom: 1.1rem; }
.check-list { display: flex; flex-direction: column; gap: 0.7rem; margin: 1.4rem 0 1.8rem; }
.check-list li { display: flex; gap: 0.65rem; align-items: flex-start; font-weight: 500; color: var(--ink-soft); }
.check-list svg { width: 1.3em; height: 1.3em; color: var(--green-line); flex-shrink: 0; margin-top: 0.1em; }
.about-visual { position: relative; }
.about-visual img {
    border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); width: 100%;
    max-height: 620px; object-fit: cover; object-position: center 20%;
}
.badge-float {
    position: absolute; bottom: -1.4rem; left: 50%; transform: translateX(-50%);
    background: #fff; border-radius: 14px; box-shadow: var(--shadow-lg); border: 1px solid var(--line);
    padding: 0.9rem 1.4rem; display: flex; align-items: center; gap: 0.8rem; white-space: nowrap;
}
.badge-float .icon-chip { margin: 0; width: 44px; height: 44px; border-radius: 10px; }
.badge-float strong { font-size: 1.05rem; }
.badge-float span { color: var(--muted); font-size: 0.85rem; }

/* Software chips */
.chips { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1rem; }
.chip {
    display: inline-flex; align-items: center; gap: 0.45rem; font-weight: 600; font-size: 0.88rem;
    background: #fff; border: 1px solid var(--line); color: var(--ink-soft);
    padding: 0.45rem 0.95rem; border-radius: 100px; transition: border-color 0.2s ease, color 0.2s ease;
}
.chip:hover { border-color: var(--blue); color: var(--blue-dark); }
.section--dark .chip { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.2); color: #e6e8f5; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; counter-reset: step; }
.step { position: relative; text-align: center; padding: 1.8rem 1.2rem; }
.step::before {
    counter-increment: step; content: counter(step);
    display: flex; width: 44px; height: 44px; margin: 0 auto 1rem; align-items: center; justify-content: center;
    background: var(--grad); color: #fff; font-weight: 800; font-size: 1.1rem; border-radius: 50%;
    box-shadow: 0 8px 18px rgba(48, 79, 255, 0.35);
}
.step h3 { font-size: 1.02rem; margin-bottom: 0.45rem; }
.step p { color: var(--muted); font-size: 0.9rem; }
.step + .step::after {
    content: ''; position: absolute; top: 40px; left: -0.85rem; width: 1.7rem; height: 2px;
    background: repeating-linear-gradient(90deg, var(--blue) 0 6px, transparent 6px 12px);
}
.section--dark .step p { color: #aab0d0; }

/* Mission / vision */
.mv-card {
    background: #fff; border-radius: var(--radius-lg); padding: 2.2rem; text-align: center;
    border: 1px solid var(--line); box-shadow: var(--shadow-sm);
    border-top: 5px solid var(--blue);
}
.mv-card--vision { border-top-color: var(--blue-deep); }
.mv-card .icon-chip { margin-left: auto; margin-right: auto; }
.mv-card p { color: var(--ink-soft); }

/* Team */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.8rem; max-width: 860px; margin: 0 auto; }
.team-card { display: flex; flex-direction: column; align-items: center; text-align: center; }
.team-card img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; margin-bottom: 1rem; border: 3px solid #fff; box-shadow: 0 8px 22px rgba(30, 33, 71, 0.2); }
.team-name { font-weight: 800; font-size: 1.1rem; color: var(--ink); }
.team-role { color: var(--blue-dark); font-weight: 700; font-size: 0.9rem; margin-bottom: 0.9rem; }
.team-list { text-align: left; margin: 0 auto; display: flex; flex-direction: column; gap: 0.5rem; }
.team-list li { display: flex; gap: 0.55rem; align-items: flex-start; color: var(--ink-soft); font-size: 0.93rem; }
.team-list li::before { content: '✓'; color: var(--green-line); font-weight: 800; flex-shrink: 0; }

/* Service detail items (services page) */
.service-item {
    display: grid; grid-template-columns: auto 1fr auto; gap: 1.6rem; align-items: start;
    padding: 2.2rem; margin-bottom: 1.8rem;
}
.service-item .icon-chip { margin-bottom: 0; }
.service-item h3 { margin-bottom: 0.5rem; }
.service-item > div p { color: var(--muted); margin-bottom: 0.9rem; }
.service-item ul { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1.1rem; }
.service-item ul li { display: flex; gap: 0.55rem; align-items: flex-start; color: var(--ink-soft); font-size: 0.94rem; }
.service-item ul li::before { content: '✓'; color: var(--blue); font-weight: 800; flex-shrink: 0; }
.service-item .btn { align-self: center; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 0.9rem; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-sm); overflow: hidden; transition: border-color 0.25s ease; }
.faq details[open] { border-color: rgba(48, 79, 255, 0.5); }
.faq summary {
    display: flex; justify-content: space-between; align-items: center; gap: 1rem;
    padding: 1.1rem 1.4rem; cursor: pointer; font-weight: 700; color: var(--ink); list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--blue-dark); }
.faq summary::after {
    content: '+'; flex-shrink: 0; width: 26px; height: 26px; display: flex; align-items: center; justify-content: center;
    background: rgba(48, 79, 255, 0.12); color: var(--blue-dark); border-radius: 50%;
    font-weight: 700; font-size: 1.1rem; transition: transform 0.25s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq-body { padding: 0 1.4rem 1.2rem; color: var(--muted); font-size: 0.96rem; }
.faq-body a { color: var(--blue-dark); font-weight: 600; text-decoration: underline; }

/* CTA band */
.cta-band {
    position: relative; background: var(--grad); color: #fff; text-align: center;
    padding: 4rem 0; overflow: hidden;
}
.cta-band::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 50% 80% at 50% 120%, rgba(30,33,71,0.4), transparent 70%); }
.cta-band .container { position: relative; }
.cta-band h2 { color: #fff; margin-bottom: 0.6rem; }
.cta-band p { opacity: 0.95; max-width: 560px; margin: 0 auto 1.8rem; }
.cta-band-actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }

/* ----- Contact ----- */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 2.5rem; align-items: start; }
.contact-cards { display: flex; flex-direction: column; gap: 1rem; }
.contact-card { display: flex; gap: 1rem; align-items: flex-start; }
.contact-card .icon-chip { margin: 0; width: 46px; height: 46px; border-radius: 12px; flex-shrink: 0; }
.contact-card .icon-chip svg { width: 22px; height: 22px; }
.contact-card strong { display: block; }
.contact-card a:hover { text-decoration: underline; }
.contact-card p, .contact-card a { color: var(--ink-soft); }
.contact-card--dark .icon-chip { background: var(--navy); }

.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 2.2rem; }
.form-card h2 { font-size: 1.4rem; margin-bottom: 0.4rem; }
.form-card > p { color: var(--muted); font-size: 0.95rem; margin-bottom: 1.5rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { margin-bottom: 1.15rem; }
.form-group label { display: block; font-weight: 600; color: var(--ink-soft); margin-bottom: 0.4rem; font-size: 0.92rem; }
.form-group label .opt { font-weight: 500; color: var(--muted); }
.form-group input, .form-group select, .form-group textarea {
    width: 100%; padding: 0.8rem 1rem; border: 2px solid var(--line); border-radius: 10px;
    font-family: inherit; font-size: 0.98rem; color: var(--ink); background: #fff;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.2s ease;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(48, 79, 255, 0.14);
}
.form-group textarea { min-height: 140px; resize: vertical; }
.form-group input.is-valid, .form-group textarea.is-valid { border-color: var(--green-line); }
.form-group input.is-invalid, .form-group textarea.is-invalid { border-color: var(--red-line); background: var(--red-bg); }
.char-count { display: block; text-align: right; font-size: 0.8rem; color: var(--muted); margin-top: 0.25rem; }

.form-status { display: none; margin-top: 1.1rem; padding: 0.85rem 1.1rem; border-radius: 10px; font-weight: 600; font-size: 0.95rem; }
.form-status.success { display: block; color: var(--green); background: var(--green-bg); border: 1px solid var(--green-line); }
.form-status.error { display: block; color: var(--red); background: var(--red-bg); border: 1px solid var(--red-line); }

.map-wrap { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); margin-top: 2.5rem; }
.map-wrap iframe { display: block; width: 100%; height: 380px; border: 0; }

/* ----- Footer ----- */
.site-footer { background: var(--navy); color: #aab0d0; font-size: 0.95rem; }
.footer-top { padding: 4rem 0 2.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 0.8fr 1fr 1.2fr; gap: 2.5rem; }
.footer-brand .brand-word { font-size: 1.35rem; font-weight: 800; color: #fff; letter-spacing: -0.01em; display: inline-flex; align-items: center; gap: 0.6rem; }
.footer-brand .brand-word img { height: 40px; width: auto; }
.footer-brand p { margin: 0.9rem 0 1.3rem; line-height: 1.6; }
.site-footer h3 { color: #fff; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 1.1rem; }
.footer-links { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-links a { transition: color 0.2s ease, padding-left 0.2s ease; }
.footer-links a:hover { color: #fff; padding-left: 4px; }
.footer-contact { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-contact li { display: flex; gap: 0.7rem; align-items: flex-start; }
.footer-contact svg { width: 1.1em; height: 1.1em; margin-top: 0.2em; flex-shrink: 0; color: var(--blue); }
.footer-contact a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); padding: 1.3rem 0; font-size: 0.86rem; }
.footer-bottom .container { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

/* ----- Floating elements ----- */
.whatsapp-float {
    position: fixed; right: 1.4rem; bottom: 1.4rem; z-index: 900;
    width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 10px 26px rgba(37, 211, 102, 0.45);
    transition: transform 0.2s ease, box-shadow 0.25s ease;
}
.whatsapp-float:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 14px 32px rgba(37, 211, 102, 0.55); }
.whatsapp-float svg { width: 30px; height: 30px; }

.back-to-top {
    position: fixed; left: 1.4rem; bottom: 1.4rem; z-index: 900;
    width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
    background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transform: translateY(12px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
    box-shadow: 0 8px 20px rgba(30, 33, 71, 0.35);
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--blue-dark); }
.back-to-top svg { width: 20px; height: 20px; }

/* ----- Reveal animation (only hidden when JS is confirmed running) ----- */
.js-anim .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js-anim .reveal.revealed { opacity: 1; transform: translateY(0); }

/* ----- 404 ----- */
.error-page { min-height: 70vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: calc(var(--nav-h) + 2rem) 1.5rem 4rem; }
.error-code { font-size: clamp(5rem, 18vw, 9rem); font-weight: 900; line-height: 1; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.error-page p { color: var(--muted); max-width: 460px; margin: 1rem auto 2rem; }

/* ----- Animations (respect reduced motion) ----- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
    .js-anim .reveal { opacity: 1; transform: none; }
}

/* ----- Responsive ----- */
@media (max-width: 1024px) {
    .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .hero-panel { max-width: 560px; }
    .hero-stats { grid-template-columns: repeat(2, 1fr); }
    .steps { grid-template-columns: repeat(2, 1fr); }
    .step + .step::after { display: none; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
    .mobile-menu { display: flex; }
    .site-nav {
        position: fixed; top: var(--nav-h); right: 1rem; left: 1rem; z-index: 1200;
        background: #fff; border: 1px solid var(--line); border-radius: 14px;
        box-shadow: 0 18px 50px rgba(30, 33, 71, 0.18);
        padding: 1.1rem 1.3rem;
        opacity: 0; visibility: hidden; transform: translateY(-10px);
        transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
    }
    .site-nav.open { opacity: 1; visibility: visible; transform: translateY(0); }
    .nav-links { flex-direction: column; align-items: stretch; gap: 0.9rem; }
    .nav-links a:not(.btn) { font-size: 1.05rem; }
    .nav-links .nav-cta { margin-top: 0.4rem; }
    .nav-links .nav-cta .btn { width: 100%; }

    .about-grid, .contact-grid { grid-template-columns: 1fr; }
    .about-visual { max-width: 480px; }
    .form-row { grid-template-columns: 1fr; }
    .service-item { grid-template-columns: 1fr; }
    .service-item .btn { justify-self: start; }
    .section { padding: 3.5rem 0; }
}

@media (max-width: 600px) {
    .grid-3, .grid-2, .steps, .footer-grid { grid-template-columns: 1fr; }
    .hero-actions { flex-direction: column; align-items: stretch; }
    .hero-actions .btn { justify-content: center; }
    .cta-band-actions { flex-direction: column; }
    .cta-band .btn-white { margin-right: 0; }
    .hero-stats { grid-template-columns: repeat(2, 1fr); }
    .badge-float { position: static; transform: none; margin-top: 1rem; justify-content: center; }
    .form-card { padding: 1.5rem; }
    .whatsapp-float { width: 52px; height: 52px; right: 1rem; bottom: 1rem; }
    .back-to-top { left: 1rem; bottom: 1rem; }
}

/* ----- Print ----- */
@media print {
    .navbar, .mobile-menu, .whatsapp-float, .back-to-top, .cta-band, .site-footer, .hero-actions { display: none !important; }
    body { font-size: 12pt; line-height: 1.4; color: #000; }
    .hero, .page-hero { background: #fff !important; color: #000 !important; min-height: auto; padding: 1rem 0; }
    .hero h1, .page-hero h1, .grad-text { color: #000 !important; -webkit-text-fill-color: #000; }
    .section { padding: 1rem 0; }
    a { color: #000; text-decoration: underline; }
}
