:root {
    --ink: #0b2f24;
    --ink-light: #164738;
    --ink-soft: #f2f7f4;
    --green: #0d6e4e;
    --green-dark: #084c35;
    --green-light: #128e65;
    --emerald: #10b981;
    --lime: #d1fae5;
    --lime-soft: #ecfdf5;
    --gold: #d97706;
    --gold-light: #fef3c7;
    --gold-hover: #b45309;
    --paper: #ffffff;
    --bg-body: #f8faf9;
    --bg-subtle: #f0f5f2;
    --white: #ffffff;
    --muted: #4a665a;
    --muted-light: #718d81;
    --line: #e2e8f0;
    --line-subtle: #edf2f7;
    --dark-line: #cbd5e1;
    --shadow-sm: 0 1px 3px rgba(11, 47, 36, 0.05), 0 1px 2px rgba(11, 47, 36, 0.03);
    --shadow: 0 10px 25px -4px rgba(11, 47, 36, 0.07), 0 4px 10px -2px rgba(11, 47, 36, 0.04);
    --shadow-lg: 0 20px 40px -8px rgba(11, 47, 36, 0.12), 0 8px 16px -4px rgba(11, 47, 36, 0.06);
    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 20px;
    --header-height: 68px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--bg-body);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

body.menu-open {
    overflow: hidden;
}

body.contact-modal-open {
    overflow: hidden;
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: color 150ms ease, border-color 150ms ease, background-color 150ms ease;
}

.container {
    width: min(1320px, calc(100% - 36px));
    margin: 0 auto;
}

/* ============================================================
   CABEÇALHO ÚNICO E FAIXA SUPERIOR MODERNA
   ============================================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    min-height: var(--header-height);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(14px) saturate(180%);
    -webkit-backdrop-filter: blur(14px) saturate(180%);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 2px 16px rgba(11, 47, 36, 0.04);
    transition: background 200ms ease, box-shadow 200ms ease;
}

.header-inner {
    min-height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.brand-logo {
    height: 38px;
    width: auto;
    object-fit: contain;
    transition: transform 180ms ease;
}

.header-brand:hover .brand-logo {
    transform: scale(1.03);
}

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

.main-nav a:not(.button) {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    color: var(--muted);
    font-size: 13.5px;
    font-weight: 550;
    white-space: nowrap;
    border: 1px solid transparent;
}

.main-nav a:not(.button):hover {
    color: var(--green-dark);
    background: var(--bg-subtle);
}

.main-nav a:not(.button)[aria-current="page"] {
    color: var(--green-dark);
    background: var(--lime-soft);
    border-color: rgba(13, 110, 78, 0.18);
    font-weight: 700;
}

.nav-badge {
    display: inline-block;
    padding: 2px 7px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 999px;
    background: var(--lime);
    color: var(--green-dark);
}

.nav-badge-hot {
    background: var(--gold-light);
    color: var(--gold-hover);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.menu-button {
    display: none;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--paper);
    color: var(--ink);
    padding: 8px 12px;
    font-size: 20px;
    cursor: pointer;
    line-height: 1;
    transition: all 180ms ease;
}

.menu-button:hover {
    background: var(--bg-subtle);
    border-color: var(--dark-line);
}

/* ============================================================
   BOTÕES E COMPONENTES DE AÇÃO
   ============================================================ */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 9px 20px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 650;
    cursor: pointer;
    white-space: nowrap;
    transition: all 180ms cubic-bezier(0.16, 1, 0.3, 1);
}

.button-sm {
    min-height: 36px;
    padding: 6px 14px;
    font-size: 13px;
}

.button-primary {
    border-color: var(--green);
    background: var(--green);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(13, 110, 78, 0.22);
}

.button-primary:hover {
    transform: translateY(-2px);
    border-color: var(--green-light);
    background: var(--green-light);
    box-shadow: 0 6px 16px rgba(13, 110, 78, 0.3);
    color: #ffffff;
}

.button-outline {
    border-color: var(--line);
    background: #ffffff;
    color: var(--ink);
    box-shadow: var(--shadow-sm);
}

.button-outline:hover {
    transform: translateY(-2px);
    border-color: var(--green);
    color: var(--green-dark);
    background: var(--lime-soft);
}

.button:focus-visible,
.main-nav a:focus-visible,
.menu-button:focus-visible,
.contact-dialog button:focus-visible,
.contact-dialog input:focus-visible {
    outline: 2px solid var(--green);
    outline-offset: 2px;
}

/* ============================================================
   HERO E SEÇÕES PRINCIPAIS
   ============================================================ */
.hero {
    position: relative;
    padding: 56px 0 48px;
    background: radial-gradient(100% 80% at 75% 10%, rgba(209, 250, 229, 0.45) 0%, rgba(248, 250, 249, 0) 70%),
                radial-gradient(80% 60% at 10% 90%, rgba(254, 243, 199, 0.25) 0%, rgba(248, 250, 249, 0) 70%),
                var(--bg-body);
    border-bottom: 1px solid var(--line);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 48px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--green);
    font-size: 12.5px;
    font-weight: 750;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--lime-soft);
    border: 1px solid rgba(13, 110, 78, 0.15);
    margin-bottom: 14px;
}

h1, h2, h3, p {
    margin-top: 0;
}

h1 {
    max-width: 720px;
    margin: 12px 0 20px;
    font-size: clamp(34px, 4vw, 52px);
    line-height: 1.1;
    letter-spacing: -1.2px;
    color: var(--ink);
    font-weight: 850;
}

.hero p {
    max-width: 620px;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.65;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 28px;
}

.hero-visual {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--line);
    background: #ffffff;
}

.hero-visual img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

.hero-note {
    position: absolute;
    right: 14px;
    bottom: 14px;
    max-width: 280px;
    padding: 14px 16px;
    border: 1px solid rgba(13, 110, 78, 0.15);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
}

.hero-note strong {
    display: block;
    color: var(--ink);
    font-size: 13.5px;
    font-weight: 750;
    margin-bottom: 3px;
}

.hero-note span {
    display: block;
    color: var(--muted);
    font-size: 12.5px;
    line-height: 1.45;
}

/* ============================================================
   CARROSSEL MODERNO DE FOTOS DOS SISTEMAS
   ============================================================ */
.systems-carousel-section {
    padding: 56px 0 64px;
    background: linear-gradient(180deg, #ffffff 0%, var(--bg-body) 100%);
    border-bottom: 1px solid var(--line);
}

.carousel-heading {
    text-align: center;
    max-width: 780px;
    margin: 0 auto 36px;
}

.carousel-heading h2 {
    font-size: clamp(28px, 3.5vw, 40px);
    line-height: 1.15;
    letter-spacing: -0.8px;
    margin: 10px 0 12px;
    color: var(--ink);
}

.carousel-heading p {
    color: var(--muted);
    font-size: 16px;
    margin: 0;
}

.carousel-container {
    position: relative;
    max-width: 1180px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.carousel-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    background: #f8faf9;
    border-bottom: 1px solid var(--line);
}

.carousel-dots {
    display: flex;
    gap: 6px;
}

.carousel-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
}

.carousel-dot.red { background: #ef4444; }
.carousel-dot.yellow { background: #f59e0b; }
.carousel-dot.green { background: #10b981; }

.carousel-badge {
    font-size: 12px;
    font-weight: 700;
    color: var(--green-dark);
    background: var(--lime);
    padding: 3px 10px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.carousel-viewport {
    position: relative;
    overflow: hidden;
    width: 100%;
    min-height: 480px;
    background: #111827;
}

.carousel-slides {
    position: relative;
    width: 100%;
    min-height: 480px;
}

.carousel-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 500ms ease, visibility 500ms ease, transform 500ms ease;
    transform: scale(0.99);
    display: flex;
    flex-direction: column;
}

.carousel-slide.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    position: relative;
}

.carousel-slide img {
    width: 100%;
    height: 520px;
    object-fit: cover;
    object-position: top center;
    display: block;
    background: #1e293b;
}

.carousel-caption {
    padding: 16px 24px;
    background: rgba(11, 47, 36, 0.92);
    backdrop-filter: blur(8px);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.carousel-caption-text strong {
    font-size: 16px;
    font-weight: 750;
    display: block;
    color: #ffffff;
}

.carousel-caption-text span {
    font-size: 13.5px;
    color: #cbd5e1;
}

.carousel-nav-btn {
    position: absolute;
    top: calc(50% - 24px);
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--line);
    color: var(--ink);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
    z-index: 10;
    transition: all 180ms ease;
}

.carousel-nav-btn:hover {
    background: #ffffff;
    transform: translateY(-50%) scale(1.08);
    color: var(--green);
}

.carousel-nav-btn.prev { left: 16px; }
.carousel-nav-btn.next { right: 16px; }

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 16px;
    background: #ffffff;
    border-top: 1px solid var(--line);
}

.carousel-indicator {
    width: 28px;
    height: 6px;
    border-radius: 999px;
    background: var(--line);
    border: 0;
    padding: 0;
    cursor: pointer;
    transition: all 250ms ease;
}

.carousel-indicator.active {
    width: 48px;
    background: var(--green);
}

/* ============================================================
   SEÇÕES, CARDS E GRIDS ORGANIZADOS
   ============================================================ */
.section {
    padding: 64px 0;
}

.section-light {
    color: var(--ink);
    background: #ffffff;
}

.section-deep {
    color: var(--ink);
    background: var(--bg-subtle);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.section-heading {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: end;
    gap: 40px;
    margin-bottom: 40px;
}

.section-heading h2,
.split-copy h2 {
    margin: 10px 0 0;
    font-size: clamp(28px, 3.5vw, 42px);
    line-height: 1.15;
    letter-spacing: -0.8px;
    color: var(--ink);
}

.section-heading p,
.split-copy p {
    color: var(--muted);
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.card {
    min-height: 200px;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: var(--shadow-sm);
    transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-3px);
    border-color: rgba(13, 110, 78, 0.3);
    box-shadow: var(--shadow);
}

.card small {
    color: var(--green);
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 10px;
}

.card h3 {
    margin: 0 0 10px;
    font-size: 20px;
    line-height: 1.25;
    color: var(--ink);
    font-weight: 750;
}

.card p {
    color: var(--muted);
    font-size: 14.5px;
    line-height: 1.55;
    margin: 0;
}

.split {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 56px;
    align-items: center;
}

.check-list {
    display: grid;
    gap: 16px;
    margin-top: 24px;
}

.check-item {
    display: grid;
    grid-template-columns: 28px 1fr;
    gap: 12px;
    align-items: start;
}

.check-item i {
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--lime);
    color: var(--green-dark);
    font-style: normal;
    font-weight: 900;
    font-size: 13px;
}

.check-item b {
    display: block;
    font-size: 15px;
    color: var(--ink);
    margin-bottom: 2px;
}

.check-item span {
    display: block;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
}

.screen-stack {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.screen-stack img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: transform 200ms ease;
}

.screen-stack img:first-child {
    grid-column: 1 / -1;
    height: 260px;
}

.screen-stack img:hover {
    transform: scale(1.02);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 18px;
}

.screen-card {
    grid-column: span 4;
    overflow: hidden;
    margin: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: var(--shadow-sm);
    transition: transform 200ms ease, box-shadow 200ms ease;
}

.screen-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.screen-card:nth-child(1),
.screen-card:nth-child(6) {
    grid-column: span 8;
}

.screen-card img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.screen-card figcaption {
    padding: 16px;
    font-weight: 700;
    color: var(--ink);
    font-size: 14.5px;
    border-top: 1px solid var(--line);
}

.screen-card small {
    display: block;
    color: var(--green);
    font-size: 11.5px;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 3px;
}

.gift-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.gift-card {
    position: relative;
    overflow: hidden;
    padding: 32px 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: #ffffff;
    box-shadow: var(--shadow-sm);
    transition: transform 220ms ease, box-shadow 220ms ease;
}

.gift-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: rgba(13, 110, 78, 0.3);
}

.gift-card::after {
    content: "100% gratuito";
    position: absolute;
    top: 20px;
    right: -40px;
    width: 155px;
    padding: 5px;
    transform: rotate(38deg);
    background: var(--gold);
    color: #ffffff;
    text-align: center;
    font-size: 10px;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.gift-number {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 12px;
    background: var(--lime);
    color: var(--green-dark);
    font-weight: 900;
    font-size: 18px;
}

.gift-card h3 {
    margin: 20px 0 10px;
    font-size: 21px;
    line-height: 1.2;
    color: var(--ink);
}

.gift-card p {
    color: var(--muted);
    font-size: 14.5px;
    line-height: 1.55;
    margin-bottom: 16px;
}

.gift-card ul {
    margin: 0;
    padding-left: 18px;
    color: var(--ink);
    font-size: 13.5px;
    line-height: 1.6;
}

.gift-card li {
    margin-bottom: 6px;
}

.course-banner {
    padding: 48px;
    border: 1px solid rgba(13, 110, 78, 0.2);
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, #ffffff 0%, var(--lime-soft) 100%);
    box-shadow: var(--shadow);
    text-align: center;
}

.course-banner h2 {
    max-width: 800px;
    margin: 12px auto 16px;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.15;
    letter-spacing: -1px;
    color: var(--ink);
}

.course-banner p {
    max-width: 680px;
    margin: 0 auto;
    color: var(--muted);
    font-size: 16.5px;
    line-height: 1.6;
}

.course-banner .actions {
    justify-content: center;
    margin-top: 24px;
}

/* ============================================================
   HUB DE SISTEMAS & CURSOS EM IFRAME (SEÇÃO DEDICADA)
   ============================================================ */
.hub-page {
    padding: 32px 0 64px;
    background: var(--bg-body);
}

.hub-header-card {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px 24px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.hub-header-info h1 {
    font-size: 24px;
    margin: 4px 0 2px;
    letter-spacing: -0.5px;
}

.hub-header-info p {
    color: var(--muted);
    font-size: 14px;
    margin: 0;
}

.hub-nav-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.hub-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    background: #ffffff;
    color: var(--ink);
    font-size: 14px;
    font-weight: 650;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: all 180ms ease;
}

.hub-tab-btn:hover {
    border-color: var(--green);
    color: var(--green-dark);
    background: var(--lime-soft);
}

.hub-tab-btn.active {
    background: var(--green);
    color: #ffffff;
    border-color: var(--green);
    box-shadow: 0 4px 12px rgba(13, 110, 78, 0.25);
}

.hub-tab-btn .tag {
    font-size: 10px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.25);
    text-transform: uppercase;
}

.hub-viewport-shell {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.hub-viewport-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    background: #f8faf9;
    border-bottom: 1px solid var(--line);
    gap: 12px;
    flex-wrap: wrap;
}

.hub-address-bar {
    flex: 1;
    min-width: 240px;
    max-width: 520px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 12.5px;
    color: var(--muted);
}

.hub-address-bar span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hub-device-controls {
    display: flex;
    align-items: center;
    gap: 6px;
}

.hub-device-btn {
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: #ffffff;
    color: var(--muted);
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 150ms ease;
}

.hub-device-btn.active,
.hub-device-btn:hover {
    border-color: var(--green);
    color: var(--green);
    background: var(--lime-soft);
}

.hub-iframe-wrapper {
    position: relative;
    width: 100%;
    min-height: 720px;
    height: 80vh;
    background: #f1f5f9;
    display: flex;
    justify-content: center;
    align-items: stretch;
    transition: width 300ms ease;
}

.hub-iframe-wrapper.tablet {
    max-width: 820px;
    margin: 0 auto;
    border-left: 1px solid var(--line);
    border-right: 1px solid var(--line);
}

.hub-iframe-wrapper.mobile {
    max-width: 420px;
    margin: 0 auto;
    border-left: 1px solid var(--line);
    border-right: 1px solid var(--line);
}

.hub-iframe {
    width: 100%;
    height: 100%;
    border: 0;
    background: #ffffff;
}

/* ============================================================
   MODAL DE CONTATO / DIALOG COMPARTILHADO
   ============================================================ */
.contact-dialog {
    width: min(440px, calc(100% - 24px));
    margin: auto;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    color: var(--ink);
    background: #ffffff;
    box-shadow: var(--shadow-lg);
}

.contact-dialog::backdrop {
    background: rgba(11, 47, 36, 0.45);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.contact-dialog__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.contact-dialog__eyebrow {
    display: block;
    color: var(--green);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.contact-dialog h2 {
    margin: 4px 0 0;
    font-size: 22px;
    line-height: 1.2;
    letter-spacing: -0.4px;
}

.contact-dialog__close {
    width: 28px;
    height: 28px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--muted);
    background: var(--bg-subtle);
    font: 18px/1 Arial, sans-serif;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: all 150ms ease;
}

.contact-dialog__close:hover {
    border-color: var(--dark-line);
    color: var(--ink);
    background: var(--line);
}

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

.contact-form label {
    color: var(--ink);
    font-size: 13px;
    font-weight: 650;
    display: block;
    margin-bottom: 2px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    color: var(--ink);
    background: #ffffff;
    font: 400 14px Inter, -apple-system, sans-serif;
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

.contact-form input:hover,
.contact-form input:focus,
.contact-form textarea:hover,
.contact-form textarea:focus {
    border-color: var(--green);
    outline: none;
    box-shadow: 0 0 0 3px rgba(13, 110, 78, 0.12);
}

.contact-form__trap {
    position: absolute;
    left: -9999px;
}

.contact-form__status {
    min-height: 20px;
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 12.5px;
}

.contact-form__status[data-state="success"] {
    color: var(--green);
    font-weight: 700;
}

.contact-form__status[data-state="error"] {
    color: #dc2626;
    font-weight: 700;
}

.contact-form__submit {
    justify-self: start;
    min-height: 38px;
    padding: 8px 18px;
    cursor: pointer;
}

.contact-form__submit:disabled {
    cursor: wait;
    opacity: 0.7;
}

/* ============================================================
   RODAPÉ UNIFICADO E ELEGANTE
   ============================================================ */
.site-footer {
    padding: 48px 0 32px;
    border-top: 1px solid var(--line);
    background: #ffffff;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    color: var(--muted);
    font-size: 13.5px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 20px;
}

.footer-links a {
    color: var(--muted);
}

.footer-links a:hover {
    color: var(--green);
}

/* ============================================================
   RESPONSIVIDADE E DISPOSITIVOS MÓVEIS
   ============================================================ */
@media (max-width: 1140px) {
    .main-nav {
        gap: 2px;
    }
    
    .main-nav a:not(.button) {
        font-size: 12.5px;
        padding: 6px 9px;
    }
}

@media (max-width: 1040px) {
    .menu-button {
        display: block;
    }

    .main-nav {
        position: fixed;
        inset: var(--header-height) 0 auto 0;
        display: none;
        padding: 20px;
        flex-direction: column;
        align-items: stretch;
        background: #ffffff;
        border-bottom: 1px solid var(--line);
        box-shadow: 0 16px 30px rgba(0, 0, 0, 0.08);
        gap: 8px;
        max-height: calc(100vh - var(--header-height));
        overflow-y: auto;
    }

    .main-nav.open {
        display: flex;
        animation: slideDown 220ms ease forwards;
    }

    @keyframes slideDown {
        from { opacity: 0; transform: translateY(-10px); }
        to { opacity: 1; transform: translateY(0); }
    }

    .main-nav a:not(.button) {
        font-size: 15px;
        padding: 10px 14px;
        border-radius: var(--radius-sm);
    }

    .hero-grid,
    .section-heading,
    .split {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .card-grid,
    .gift-grid {
        grid-template-columns: 1fr 1fr;
    }

    .carousel-slide img {
        height: 380px;
    }

    .carousel-viewport {
        min-height: 380px;
    }
}

@media (max-width: 680px) {
    .container {
        width: calc(100% - 28px);
    }

    .hero {
        padding: 36px 0;
    }

    .section {
        padding: 40px 0;
    }

    h1 {
        font-size: 32px;
        letter-spacing: -0.8px;
    }

    .card-grid,
    .gift-grid,
    .screen-stack {
        grid-template-columns: 1fr;
    }

    .screen-stack img:first-child {
        grid-column: auto;
    }

    .screen-card,
    .screen-card:nth-child(1),
    .screen-card:nth-child(6) {
        grid-column: 1 / -1;
    }

    .carousel-slide img {
        height: 240px;
    }

    .carousel-viewport {
        min-height: 240px;
    }

    .carousel-caption {
        padding: 12px 14px;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .footer-links {
        justify-content: flex-start;
        gap: 8px 14px;
    }

    .course-banner {
        padding: 28px 18px;
    }

    .hub-header-card {
        padding: 16px;
    }
}
