@font-face {
    font-family: 'D-DIN';
    src: url('/fonts/D-DIN.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'D-DIN';
    src: url('/fonts/D-DIN-Bold.otf') format('opentype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'MyriadPro';
    src: url('/fonts/MyriadPro-Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

:root {
    --purple: #7c2e8e;
    --cyan: #2bb9e7;
    --lime: #c8d93c;
    --orange: #fb7d4f;
    --ink: #1d2140;
    --muted: #5e6382;
    --bg: #ffffff;
    --bg-alt: #f4f5fb;
    --card: #ffffff;
    --border: #e2e4ef;
    --shadow: 0 10px 30px rgba(29, 33, 64, 0.05);
    --radius: 8px;
    /* Sobrio */
    --body-font: "MyriadPro", "Segoe UI", sans-serif;
    --heading-font: "D-DIN", "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    margin: 0;
    font-family: var(--body-font);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
}

a {
    color: var(--cyan);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--purple);
}

img {
    max-width: 100%;
    display: block;
}

.page-shell {
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;
}

/* Header */
.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    background: var(--bg);
}

.brand {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--ink);
}

.brand-logo {
    height: 45px;
    object-fit: contain;
}

.brand strong {
    display: block;
    font-size: 1.2rem;
    font-family: var(--heading-font);
}

.brand small {
    color: var(--muted);
    font-size: 0.85rem;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.main-nav a {
    color: var(--ink);
    font-family: var(--heading-font);
    font-weight: bold;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.main-nav a:hover {
    color: var(--cyan);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-family: var(--heading-font);
    font-size: 1rem;
    cursor: pointer;
    font-weight: bold;
}

/* Sections */
section {
    padding: 80px 0;
}

section:not(.hero) {
    position: relative;
}

section:not(.hero)::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border);
    pointer-events: none;
}

.section-heading {
    text-align: center;
    margin-bottom: 50px;
}

h1,
h2,
h3,
h4 {
    font-family: var(--heading-font);
    margin-top: 0;
    line-height: 1.2;
}

h2 {
    font-size: 2.5rem;
    color: var(--purple);
}

.section-heading p {
    font-size: 1.15rem;
    color: var(--muted);
    max-width: 600px;
    margin: 15px auto 0;
}

/* Hero Banner */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    padding: 60px 0 100px;
    border-top: none;
}

.hero h1 {
    font-size: 3.5rem;
    color: var(--ink);
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    color: var(--muted);
    margin-bottom: 30px;
    max-width: 500px;
}

.hero-visual {
    text-align: right;
}

.hero-logo {
    max-width: 400px;
    display: inline-block;
}

/* Buttons */
.button {
    display: inline-block;
    padding: 12px 28px;
    border-radius: var(--radius);
    font-family: var(--heading-font);
    font-size: 1rem;
    font-weight: bold;
    text-transform: uppercase;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.button.is-loading {
    cursor: wait;
}

.button.is-loading::before {
    content: '';
    display: inline-block;
    width: 0.9rem;
    height: 0.9rem;
    margin-right: 8px;
    border-radius: 50%;
    border: 2px solid currentColor;
    border-top-color: transparent;
    vertical-align: -2px;
    animation: button-spin 0.7s linear infinite;
}

@keyframes button-spin {
    to {
        transform: rotate(360deg);
    }
}

.button.primary {
    background: var(--purple);
    color: #fff;
    border-color: var(--purple);
}

.button.primary:hover {
    background: transparent;
    color: var(--purple);
}

.button.secondary {
    background: transparent;
    color: var(--purple);
    border-color: var(--purple);
}

.button.secondary:hover {
    background: rgba(124, 46, 142, 0.05);
}

.hero-actions {
    display: flex;
    gap: 15px;
}

/* Grid Layouts */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* Info Cards (Services) */
.info-card {
    background: var(--bg-alt);
    padding: 40px 30px;
    border-radius: var(--radius);
    text-align: center;
    transition: transform 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
}

.card-icon img {
    height: 80px;
    margin: 0 auto 20px;
    object-fit: contain;
}

.info-card h3 {
    font-size: 1.5rem;
    color: var(--ink);
    margin-bottom: 15px;
}

.info-card p {
    color: var(--muted);
    margin: 0;
}

/* Contact Form */
.contact-section {
    background: transparent;
}

.contact-frame {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
}

.panel {
    background: #fff;
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.contact-form {
    display: grid;
    gap: 20px;
}

.form-feedback {
    border-radius: var(--radius);
    padding: 12px 14px;
    margin-bottom: 16px;
    font-family: var(--heading-font);
    font-size: 0.95rem;
    border: 1px solid transparent;
}

.form-feedback--success {
    color: #155724;
    background: #e6f6e9;
    border-color: #b8e0bf;
}

.form-feedback--error {
    color: #7f1d1d;
    background: #fdecec;
    border-color: #f7caca;
}

.is-hidden {
    display: none;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-family: var(--heading-font);
    font-weight: bold;
    font-size: 0.95rem;
}

input,
textarea {
    padding: 12px 15px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-family: var(--body-font);
    font-size: 1rem;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--cyan);
}

.map-panel iframe {
    width: 100%;
    height: 100%;
    min-height: 400px;
    border: none;
    border-radius: var(--radius);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.contact-frame .panel {
    border: 1px solid var(--border);
    box-shadow: none;
}

/* Footer */
.footer {
    background: var(--ink);
    color: #fff;
    padding: 14px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    text-align: center;
}

.footer .page-shell {
    width: min(980px, calc(100% - 40px));
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 0;
}

.footer h3 {
    color: #fff;
    font-size: 2rem;
    margin: 0;
}

.footer p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.social-links {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 0;
    flex-wrap: wrap;
}

.social-links a {
    color: #fff;
    font-family: var(--heading-font);
    font-weight: bold;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.social-links a:hover {
    background: var(--cyan);
}

/* Colors Line */
.color-line {
    display: flex;
    height: 10px;
    width: 100%;
}

.color-line>div {
    flex: 1;
}

.bg-purple {
    background: var(--purple);
}

.bg-cyan {
    background: var(--cyan);
}

.bg-lime {
    background: var(--lime);
}

.bg-orange {
    background: var(--orange);
}

/* Privacy Modal */
.privacy-overlay {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: none;
    align-items: flex-end;
    justify-content: center;
    padding: 0 0 12px;
    pointer-events: none;
}

.privacy-overlay.active {
    display: flex;
}

.privacy-modal {
    width: min(1200px, calc(100% - 40px));
    background: rgba(29, 33, 64, 0.96);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 14px 18px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px 16px;
    align-items: center;
    text-align: left;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    pointer-events: auto;
}

.privacy-message {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    margin: 0;
    grid-column: 1 / -1;
}

.privacy-links {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    justify-content: flex-start;
    align-items: flex-start;
}

.privacy-links a {
    color: var(--cyan);
    text-decoration: none;
    border-bottom: 1px dotted var(--cyan);
    font-family: var(--heading-font);
    font-weight: bold;
    font-size: 0.9rem;
}

.privacy-actions {
    display: flex;
    justify-content: flex-end;
}

.privacy-actions .button.primary {
    margin-top: 0 !important;
    padding: 10px 18px;
    font-size: 0.9rem;
}

/* Responsiveness */
@media (max-width: 768px) {

    .hero,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        text-align: center;
    }

    .main-nav {
        display: none;
        width: 100%;
        flex-direction: column;
        padding: 20px 0;
    }

    .main-nav.is-open {
        display: flex;
    }

    .topbar {
        flex-wrap: wrap;
    }

    .menu-toggle {
        display: block;
    }

    .privacy-overlay {
        padding: 10px;
    }

    .privacy-modal {
        width: calc(100% - 20px);
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .privacy-links {
        justify-content: flex-start;
    }

    .privacy-actions {
        justify-content: flex-start;
    }
}