@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Color palette: light version of the Lopes & Ferreira sites (same gold accent) */
    --bg: #FBF9F6;
    --bg-alt: #F3EEE6;
    --surface: #FFFFFF;
    --text: #1E2329;
    --text-muted: #5C6470;
    --border: #E7E0D4;
    --accent: #C5A059;
    --accent-light: #D4B67E;
    --accent-dark: #8E6B2A;
    /* readable gold for text on light backgrounds */
    --accent-soft: rgba(197, 160, 89, 0.12);
    --shadow: 0 10px 30px rgba(30, 35, 41, 0.06);
    --shadow-hover: 0 20px 40px rgba(30, 35, 41, 0.1);

    /* Layout & spacing */
    --container-width: 1200px;
    --section-padding: 100px 20px;
    --border-radius: 16px;

    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.2s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
.logo-text {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-alt);
}

::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 10px;
}

/* Helpers */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 640px;
    margin: 0 auto;
}

.text-accent {
    color: var(--accent-dark);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background-color: var(--accent);
    color: var(--text);
}

.btn-primary:hover {
    background-color: var(--accent-light);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(197, 160, 89, 0.35);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--accent);
    color: var(--accent-dark);
}

.btn-outline:hover {
    background-color: var(--accent);
    color: var(--text);
    transform: translateY(-3px);
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}

nav.scrolled {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    padding: 12px 0;
    box-shadow: 0 4px 20px rgba(30, 35, 41, 0.06);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-text {
    font-size: 1.45rem;
    color: var(--accent-dark);
    letter-spacing: 0.5px;
}

.logo-tagline {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--text-muted);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.92rem;
    color: var(--text);
}

.nav-links a:hover {
    color: var(--accent-dark);
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--accent-dark);
}

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 130px 0 130px;
    background:
        linear-gradient(90deg, rgba(251, 249, 246, 0.96) 0%, rgba(251, 249, 246, 0.88) 38%, rgba(251, 249, 246, 0.35) 62%, rgba(251, 249, 246, 0) 80%),
        url('img/cabecalho.jpg');
    background-size: cover;
    background-position: right center;
}

/* Hero text sits on the left, in line with the logo, leaving the photo visible on the right.
   The block uses the full container width; only its children are narrowed. */
.hero > .container {
    width: 100%;
}

.hero-content > * {
    max-width: 640px;
}

.eyebrow {
    display: inline-block;
    background: var(--accent-soft);
    color: var(--accent-dark);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 8px 16px;
    border-radius: 50px;
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: 3.8rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 620px;
}

.bullet-points {
    margin-bottom: 2.2rem;
}

.bullet-point {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 1.05rem;
    font-weight: 500;
}

.bullet-point i {
    color: var(--accent);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

/* Inner-page hero */
.hero-page {
    min-height: 70vh;
}

.hero-bank {
    background:
        linear-gradient(90deg, rgba(251, 249, 246, 0.98) 0%, rgba(251, 249, 246, 0.92) 50%, rgba(251, 249, 246, 0.6) 100%),
        url('https://images.unsplash.com/photo-1434626881859-194d67b2b86f?auto=format&fit=crop&q=80&w=1920');
    background-size: cover;
    background-position: center;
}

.breadcrumb {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.breadcrumb a {
    color: var(--accent-dark);
    font-weight: 600;
}

.breadcrumb span {
    margin: 0 4px;
}

/* Service cards */
.services {
    padding: var(--section-padding);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card,
.info-card {
    background: var(--surface);
    padding: 40px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.service-card:hover,
.info-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
    box-shadow: var(--shadow-hover);
}

.service-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: var(--accent-soft);
    color: var(--accent-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    margin-bottom: 22px;
}

.service-card h3,
.info-card h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
}

.service-card p,
.info-card p {
    color: var(--text-muted);
}

/* Areas served */
.areas {
    padding: var(--section-padding);
    background: var(--bg-alt);
}

.areas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    margin-top: 50px;
}

.area-item {
    display: flex;
    gap: 18px;
    background: var(--surface);
    border-radius: 14px;
    padding: 26px;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.area-item:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow);
}

.area-item > i {
    font-size: 1.4rem;
    color: var(--accent-dark);
    margin-top: 4px;
    width: 28px;
    text-align: center;
    flex-shrink: 0;
}

.area-item h3 {
    font-size: 1.15rem;
    margin-bottom: 6px;
}

.area-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.link-more {
    display: inline-block;
    margin-top: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent-dark);
}

.link-more i {
    font-size: 0.7rem;
}

/* Delivery and payment */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
    align-items: stretch;
}

.info-card p + p {
    margin-top: 10px;
}

.info-card-highlight {
    border: 2px solid var(--accent);
    background: linear-gradient(180deg, #FFFDF8 0%, #FFFFFF 100%);
}

.card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.card-actions .btn {
    padding: 11px 22px;
    font-size: 0.85rem;
}

.price-list {
    margin-top: 16px;
}

.price-list li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-top: 1px dashed var(--border);
}

.price-list strong {
    color: var(--accent-dark);
}

.check-list li {
    display: flex;
    gap: 12px;
    padding: 8px 0;
    color: var(--text-muted);
}

.check-list i {
    color: var(--accent);
    margin-top: 5px;
}

/* About */
.about {
    padding: var(--section-padding);
    background: var(--bg-alt);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-hover);
}

.about-text h2 {
    font-size: 2.4rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.about-text p {
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.about-text .btn {
    margin-top: 1rem;
}

/* Closing note (bank page) */
.note {
    max-width: 850px;
    text-align: center;
}

.note > i {
    font-size: 2.2rem;
    color: var(--accent-dark);
    margin-bottom: 20px;
}

.note p {
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

/* Contact */
.contact {
    padding: var(--section-padding);
}

.contact-container {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 60px;
    background: var(--surface);
    padding: 60px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-hover);
}

.contact-info h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.contact-info > p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.contact-item i {
    color: var(--accent-dark);
    font-size: 1.25rem;
    margin-top: 2px;
    width: 22px;
}

.contact-item p,
.contact-item a {
    color: var(--text-muted);
}

.contact-item a:hover {
    color: var(--accent-dark);
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 500;
}

/* Long option names must not widen the page on small screens */
select {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.form-group {
    min-width: 0;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

input,
textarea,
select {
    padding: 14px 15px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--bg);
    font-family: inherit;
    font-size: 1rem;
    color: var(--text);
    transition: var(--transition);
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--surface);
    box-shadow: 0 0 0 4px var(--accent-soft);
}

textarea {
    height: 150px;
    resize: none;
}

.form-feedback {
    display: none;
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
}

/* Anti-spam honeypot: hidden from people, filled in by bots */
.form-hp {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Text pages (privacy policy) */
.page-section {
    padding: 140px 20px 80px;
}

.page-content {
    max-width: 800px;
    line-height: 1.8;
}

.page-content h1 {
    font-size: 2.6rem;
    margin-bottom: 1.5rem;
}

.page-content h2 {
    font-size: 1.4rem;
    margin: 2rem 0 0.6rem;
}

.page-content p {
    color: var(--text-muted);
}

.back-link {
    display: inline-block;
    margin-bottom: 20px;
    color: var(--accent-dark);
    font-weight: 600;
}

/* Footer */
.footer {
    background: #EFE8DC;
    padding: 70px 0 0;
    border-top: 3px solid var(--accent);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1.1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-column .logo-tagline {
    margin-bottom: 18px;
}

.footer-description {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.footer-title {
    font-size: 1.1rem;
    color: var(--accent-dark);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-divider {
    width: 40px;
    height: 2px;
    background-color: var(--accent);
    margin-bottom: 22px;
}

.footer-info li {
    display: flex;
    gap: 14px;
    margin-bottom: 16px;
    color: var(--text-muted);
    font-size: 0.92rem;
    align-items: flex-start;
}

.footer-info i {
    color: var(--accent-dark);
    margin-top: 4px;
    width: 16px;
}

.footer-info a:hover {
    color: var(--accent-dark);
}

.footer-bottom {
    padding: 24px 0;
    border-top: 1px solid rgba(30, 35, 41, 0.08);
    text-align: center;
}

.copyright {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.92rem;
}

.footer-links a:hover {
    color: var(--accent-dark);
}

/* Floating WhatsApp button */
.whatsapp-float {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #25D366;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.9rem;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
    z-index: 900;
}

.whatsapp-float:hover {
    transform: scale(1.08);
}

/* Steps and FAQ */
.steps-grid {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 24px;
    margin-top: 50px;
}

.step {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    padding: 30px;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--text);
    font-weight: 700;
    margin-bottom: 16px;
}

.step h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.step p {
    color: var(--text-muted);
}

.faq {
    max-width: 850px;
}

.faq h2 {
    font-size: 2.1rem;
    margin-bottom: 1.5rem;
}

.faq details {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 12px;
    padding: 0 24px;
}

.faq summary {
    cursor: pointer;
    font-weight: 600;
    font-size: 1.05rem;
    padding: 18px 0;
}

.faq summary:hover {
    color: var(--accent-dark);
}

.faq details p {
    padding-bottom: 20px;
    color: var(--text-muted);
    line-height: 1.8;
}

/* Tool pages (calculator, average rate, expert report) */
.tool-hero {
    padding: 140px 0 60px;
    background:
        radial-gradient(circle at 85% 20%, rgba(197, 160, 89, 0.16), transparent 45%),
        var(--bg-alt);
}

.tool-hero h1 {
    font-size: 3rem;
    line-height: 1.15;
    margin-bottom: 1rem;
    max-width: 820px;
}

.tool-hero p {
    color: var(--text-muted);
    font-size: 1.15rem;
    max-width: 720px;
    margin-bottom: 1.5rem;
}

.tool-section {
    padding: 60px 20px;
}

.tool-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 40px;
    align-items: start;
}

.tool-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-hover);
    padding: 36px;
}

.tool-card h2,
.tool-help h2 {
    font-size: 1.4rem;
    margin-bottom: 20px;
}

.tool-card .form-group {
    margin-bottom: 18px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.month-year {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 12px;
}

.btn-block {
    width: 100%;
    margin-top: 6px;
}

.form-note {
    margin-top: 14px;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
}

.form-note i {
    color: var(--accent-dark);
}

.tool-help {
    padding: 8px 4px;
}

.tool-help p {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.help-list {
    margin-bottom: 32px;
}

.help-list li {
    display: flex;
    gap: 16px;
    margin-bottom: 18px;
    color: var(--text-muted);
}

.help-list li > i {
    color: var(--accent-dark);
    font-size: 1.2rem;
    margin-top: 3px;
    width: 22px;
    text-align: center;
}

.help-list strong {
    color: var(--text);
}

.alert {
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 20px;
}

.alert-error {
    background: #FDF0EE;
    border: 1px solid #F1C9C2;
    color: #8A2E21;
}

.alert-error p + p {
    margin-top: 6px;
}

/* Results */
.result-section {
    padding-top: 0;
}

.result-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-top: 5px solid var(--accent);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-hover);
    padding: 36px;
    margin-top: 30px;
}

.result-alert {
    border-top-color: #C0513F;
}

.result-ok {
    border-top-color: #3E8E5E;
}

.result-header {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    margin-bottom: 28px;
}

.result-header > i {
    font-size: 2rem;
    margin-top: 4px;
}

.result-alert .result-header > i {
    color: #C0513F;
}

.result-ok .result-header > i {
    color: #3E8E5E;
}

.result-header h2 {
    font-size: 1.7rem;
    margin-bottom: 6px;
}

.result-header p {
    color: var(--text-muted);
    font-size: 1.05rem;
}

.rate-compare {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 28px;
}

.rate-single {
    grid-template-columns: 1fr;
    max-width: 520px;
}

.rate-tile {
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 22px 24px;
    background: var(--bg);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.rate-tile span {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
}

.rate-tile strong {
    font-family: 'Outfit', sans-serif;
    font-size: 2.4rem;
    line-height: 1.1;
}

.rate-tile small {
    font-size: 1rem;
    color: var(--text-muted);
}

.rate-tile em {
    font-style: normal;
    color: var(--text-muted);
}

.result-alert .rate-tile:first-child strong {
    color: #A8402F;
}

.rate-tile-avg {
    background: var(--accent-soft);
    border-color: rgba(197, 160, 89, 0.35);
}

.rate-tile-avg strong {
    color: var(--accent-dark);
}

.table-wrap {
    overflow-x: auto;
    margin-bottom: 24px;
}

.result-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1rem;
}

.result-table th,
.result-table td {
    padding: 13px 14px;
    border-bottom: 1px solid var(--border);
    text-align: left;
}

.result-table tbody th {
    font-weight: 500;
    color: var(--text-muted);
}

.result-table td {
    text-align: right;
    font-weight: 600;
    white-space: nowrap;
}

.result-table tr.total th,
.result-table tr.total td {
    font-size: 1.1rem;
    color: var(--text);
    font-weight: 700;
    border-bottom: none;
    background: var(--accent-soft);
}

.history-table thead th {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
}

.history-table thead th:not(:first-child) {
    text-align: right;
}

.history-table td:first-child {
    text-align: left;
    font-weight: 500;
}

.history-table tr.current td {
    background: var(--accent-soft);
    color: var(--accent-dark);
}

.history-title {
    font-size: 1.2rem;
    margin: 10px 0 12px;
}

.result-note {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.result-note i {
    color: var(--accent-dark);
}

.result-note a {
    color: var(--accent-dark);
    font-weight: 600;
}

.citation {
    background: var(--bg);
    border-left: 4px solid var(--accent);
    border-radius: 0 12px 12px 0;
    padding: 18px 22px;
    margin-bottom: 28px;
}

.citation-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--accent-dark);
    margin-bottom: 6px;
}

.citation p {
    line-height: 1.75;
}

/* Next steps after a result */
.next-steps {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 24px;
    margin-top: 24px;
}

.next-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    padding: 30px;
}

.next-card > i {
    font-size: 1.6rem;
    color: var(--accent-dark);
    margin-bottom: 14px;
}

.next-card h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.next-card p {
    color: var(--text-muted);
}

.next-card-main {
    border: 2px solid var(--accent);
    background: linear-gradient(180deg, #FFFDF8 0%, #FFFFFF 100%);
}

.card-actions .link-more {
    align-self: center;
}

/* Links between tools */
.tool-links {
    padding-top: 0;
}

.tool-links-grid,
.tools-banner-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.tool-link-card {
    display: flex;
    align-items: center;
    gap: 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 22px 24px;
    box-shadow: var(--shadow);
}

.tool-link-card:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
}

.tool-link-card > i:first-child {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 12px;
    background: var(--accent-soft);
    color: var(--accent-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.tool-link-card > i:last-child {
    margin-left: auto;
    color: var(--accent-dark);
}

.tool-link-card strong {
    display: block;
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
}

.tool-link-card span {
    color: var(--text-muted);
    font-size: 0.92rem;
}

.tools-banner {
    margin-top: -50px;
    position: relative;
    z-index: 2;
    padding: 0 20px;
}

.lookup-fields {
    display: grid;
    grid-template-columns: 1.6fr 1fr auto;
    gap: 16px;
    align-items: end;
}

.lookup-fields .form-group {
    margin-bottom: 0;
}

.lookup-fields .btn {
    height: 52px;
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 992px) {
    :root {
        --section-padding: 70px 20px;
    }

    .about-grid,
    .contact-container {
        grid-template-columns: 1fr;
    }

    .about-grid {
        gap: 40px;
    }

    .contact-container {
        padding: 40px 24px;
        gap: 40px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 1080px) {
    .mobile-menu-btn {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--surface);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 36px;
        transition: var(--transition);
        box-shadow: -10px 0 30px rgba(30, 35, 41, 0.12);
        z-index: 1001;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.15rem;
    }

    .mobile-menu-btn {
        position: relative;
        z-index: 1002;
    }
}

@media (max-width: 992px) {
    /* Narrow screens: the text covers the whole photo, so keep it light behind the text */
    .hero:not(.hero-page) {
        background:
            linear-gradient(90deg, rgba(251, 249, 246, 0.97) 0%, rgba(251, 249, 246, 0.9) 40%, rgba(251, 249, 246, 0.25) 100%),
            url('img/cabecalho.jpg');
        background-size: cover;
        background-position: right center;
    }
}

@media (max-width: 992px) {
    .tool-grid,
    .next-steps,
    .lookup-fields {
        grid-template-columns: minmax(0, 1fr);
    }

    .lookup-fields .btn {
        height: auto;
    }
}

@media (max-width: 768px) {
    .tool-hero {
        padding: 120px 0 40px;
    }

    .tool-hero h1 {
        font-size: 2.2rem;
    }

    .tool-card,
    .result-card {
        padding: 26px 20px;
    }

    .form-row,
    .rate-compare,
    .tool-links-grid,
    .tools-banner-grid {
        grid-template-columns: 1fr;
    }

    .rate-tile strong {
        font-size: 2rem;
    }

    .result-header h2 {
        font-size: 1.35rem;
    }

    .tools-banner {
        margin-top: 0;
        padding-top: 30px;
    }

    .faq h2 {
        font-size: 1.7rem;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.05rem;
    }

    .about-text h2 {
        font-size: 1.9rem;
    }

    .service-card,
    .info-card {
        padding: 30px 24px;
    }

    .contact-form {
        grid-template-columns: 1fr;
    }

    .areas-grid,
    .services-grid,
    .info-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.05rem;
    }

    .logo-text {
        font-size: 1.2rem;
    }

    .logo-tagline {
        letter-spacing: 3px;
    }

    .btn {
        width: 100%;
    }

    .whatsapp-float {
        right: 16px;
        bottom: 16px;
    }
}

/* Highlighted tool card with a button (bank-calculation page) */
.tool-link-highlight {
    border: 2px solid var(--accent);
    padding: 26px 28px;
}

.tool-link-highlight strong {
    font-size: 1.25rem;
}

.tool-link-highlight .btn {
    margin-left: auto;
    flex-shrink: 0;
}

.btn-sm {
    padding: 10px 24px;
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .tool-link-highlight {
        flex-wrap: wrap;
    }

    .tool-link-highlight .btn {
        margin-left: 0;
        width: 100%;
    }
}
