/* Máximo Império Telecom — estilo institucional
   Paleta inspirada no logo dourado + preto sobre bege claro. */

:root {
    --gold: #c9a032;
    --gold-2: #d4b256;
    --gold-dark: #8a6c1a;
    --ink: #171512;
    --ink-2: #2a251d;
    --paper: #faf7f0;
    --paper-2: #f2ecdd;
    --line: #e4dcc4;
    --muted: #6b6355;
    --white: #ffffff;
    --shadow: 0 6px 24px -8px rgba(23, 21, 18, .12);
    --shadow-strong: 0 12px 48px -12px rgba(23, 21, 18, .28);
    --radius: 8px;
    --radius-lg: 16px;
    --container: 1160px;
    --pad: clamp(20px, 4vw, 32px);
    --gap: clamp(20px, 3vw, 32px);
}

* { box-sizing: border-box; }

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

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 17px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: var(--gold-dark);
    text-decoration: none;
    transition: color .15s ease;
}
a:hover { color: var(--gold); }

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding-left: var(--pad);
    padding-right: var(--pad);
}

/* ---------- Header ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(250, 247, 240, .92);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--line);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 88px;
}
.logo {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}
.logo img { display: block; height: 64px; width: auto; }

.nav-menu {
    display: flex;
    gap: 28px;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}
.nav-menu a {
    color: var(--ink);
    font-weight: 500;
    font-size: 15px;
    letter-spacing: .01em;
}
.nav-menu a:not(.nav-cta):hover { color: var(--gold-dark); }

.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--gold);
    color: var(--ink) !important;
    padding: 10px 18px;
    border-radius: var(--radius);
    font-weight: 600;
    box-shadow: 0 4px 12px -4px rgba(201, 160, 50, .5);
    transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
}
.nav-cta:hover {
    background: var(--gold-2);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px -4px rgba(201, 160, 50, .6);
}
.nav-cta svg { flex-shrink: 0; }

.nav-toggle {
    display: none;
    background: transparent;
    border: 0;
    width: 44px;
    height: 44px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    padding: 0;
}
.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */

.hero {
    background: linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%);
    color: var(--paper);
    padding: clamp(64px, 12vw, 128px) 0 clamp(72px, 12vw, 136px);
    position: relative;
    overflow: hidden;
    isolation: isolate;
}
.hero .container { position: relative; z-index: 2; }
.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: .55;
}
/* Vinheta escura sobre o vídeo pra o texto ficar legível.
   Gradientes dourados sutis reforçam a marca. */
.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        radial-gradient(1200px 500px at 80% -10%, rgba(201, 160, 50, .12), transparent 60%),
        radial-gradient(900px 400px at 10% 110%, rgba(201, 160, 50, .08), transparent 60%),
        linear-gradient(180deg, rgba(23, 21, 18, .55) 0%, rgba(23, 21, 18, .78) 100%);
}
.hero::after {
    content: "";
    position: absolute;
    inset: auto 0 -1px 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: .35;
    z-index: 2;
}
/* Usuário com prefers-reduced-motion: mostra só o poster do vídeo,
   sem autoplay/loop, pra não incomodar. */
@media (prefers-reduced-motion: reduce) {
    .hero-video { display: none; }
    .hero { background:
        radial-gradient(1200px 500px at 80% -10%, rgba(201, 160, 50, .18), transparent 60%),
        radial-gradient(900px 400px at 10% 110%, rgba(201, 160, 50, .10), transparent 60%),
        linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%); }
}
.eyebrow {
    display: inline-block;
    color: var(--gold);
    font-size: 13px;
    letter-spacing: .16em;
    text-transform: uppercase;
    font-weight: 600;
    margin: 0 0 16px;
    padding: 6px 12px;
    border: 1px solid rgba(201, 160, 50, .35);
    border-radius: 999px;
    background: rgba(201, 160, 50, .06);
}
.hero h1 {
    font-size: clamp(30px, 5vw, 52px);
    line-height: 1.1;
    font-weight: 700;
    margin: 0 0 20px;
    letter-spacing: -.02em;
    max-width: 20ch;
}
.hero .lede {
    font-size: clamp(16px, 2vw, 19px);
    color: rgba(250, 247, 240, .82);
    max-width: 62ch;
    margin: 0 0 32px;
}

.cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 26px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: transform .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
    border: 1px solid transparent;
    letter-spacing: .01em;
}
.btn-primary {
    background: var(--gold);
    color: var(--ink);
}
.btn-primary:hover {
    background: var(--gold-2);
    color: var(--ink) !important;
    transform: translateY(-1px);
}
.btn-ghost {
    background: transparent;
    color: var(--paper);
    border-color: rgba(250, 247, 240, .3);
}
.btn-ghost:hover {
    background: rgba(250, 247, 240, .08);
    color: var(--paper) !important;
    border-color: rgba(250, 247, 240, .6);
}

/* ---------- Section base ---------- */

.section { padding: clamp(64px, 10vw, 104px) 0; }
.section-alt { background: var(--paper-2); }
.section-dark {
    background: linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%);
    color: var(--paper);
}
.section-dark h2, .section-dark h3 { color: var(--paper); }
.section-dark .section-lede { color: rgba(250, 247, 240, .78); }
.section-dark .section-lede strong { color: var(--gold); }

.section h2 {
    font-size: clamp(26px, 3.4vw, 38px);
    line-height: 1.15;
    letter-spacing: -.02em;
    margin: 0 0 12px;
    font-weight: 700;
}
.section-lede {
    color: var(--muted);
    font-size: clamp(15px, 1.5vw, 17px);
    max-width: 60ch;
    margin: 0 0 40px;
}

/* ---------- Sobre ---------- */

.two-col {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--gap);
    align-items: start;
}
.two-col p {
    color: var(--ink-2);
    margin: 0 0 16px;
    line-height: 1.7;
}
.fact-card {
    background: linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%);
    color: var(--paper);
    border: 1px solid rgba(201, 160, 50, .3);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-strong);
    position: sticky;
    top: 104px;
    overflow: hidden;
}
.fact-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.fact-card .stat {
    display: flex;
    flex-direction: column;
    padding: 18px 0;
    border-bottom: 1px solid rgba(250, 247, 240, .1);
}
.fact-card .stat:first-child { padding-top: 4px; }
.fact-card .stat-num {
    font-size: 44px;
    line-height: 1;
    font-weight: 800;
    color: var(--gold);
    letter-spacing: -.02em;
    font-variant-numeric: tabular-nums;
}
.fact-card .stat-num sup {
    font-size: 22px;
    top: -.5em;
    margin-left: 2px;
    color: var(--gold-2);
}
.fact-card .stat-label {
    color: rgba(250, 247, 240, .7);
    font-size: 13px;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-weight: 500;
    margin-top: 6px;
}
.fact-card .badge {
    display: flex;
    flex-direction: column;
    padding: 18px 0;
    border-bottom: 1px solid rgba(250, 247, 240, .1);
}
.fact-card .badge-eyebrow {
    color: rgba(250, 247, 240, .55);
    font-size: 11px;
    letter-spacing: .14em;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 4px;
}
.fact-card .badge-title {
    color: var(--gold);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -.01em;
}
.fact-card .meta {
    display: flex;
    flex-direction: column;
    padding-top: 18px;
}
.fact-card .meta-label {
    color: rgba(250, 247, 240, .55);
    font-size: 11px;
    letter-spacing: .14em;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 4px;
}
.fact-card .meta-value {
    color: var(--paper);
    font-size: 15px;
    font-weight: 500;
}

/* ---------- Grid genérico ---------- */

.grid {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: var(--gap);
}

/* ---------- Serviços ---------- */

.grid-services {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.grid-services li {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.grid-services li:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-strong);
    border-color: rgba(201, 160, 50, .5);
}
.grid-services svg {
    width: 32px;
    height: 32px;
    color: var(--gold);
    margin-bottom: 14px;
    stroke-width: 1.5;
}
.grid-services h3 {
    font-size: 17px;
    margin: 0 0 6px;
    font-weight: 700;
    color: var(--ink);
}
.grid-services p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.55;
}

/* ---------- Diferenciais ---------- */

.grid-features {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.grid-features li {
    padding: 24px 20px 24px 0;
    border-top: 1px solid rgba(250, 247, 240, .12);
    position: relative;
}
.feature-number {
    display: inline-block;
    color: var(--gold);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .12em;
    margin-bottom: 8px;
    font-variant-numeric: tabular-nums;
}
.grid-features h3 {
    font-size: 18px;
    margin: 0 0 6px;
    font-weight: 700;
}
.grid-features p {
    margin: 0;
    color: rgba(250, 247, 240, .72);
    font-size: 14px;
    line-height: 1.6;
}

/* ---------- Galeria "Nossa loja" ---------- */

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--gap);
}
.gallery figure {
    margin: 0;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform .15s ease, box-shadow .15s ease;
}
.gallery figure:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-strong);
}
.gallery video {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 9 / 16;
    object-fit: cover;
    background: var(--ink);
}
.gallery figcaption {
    padding: 14px 18px 16px;
    font-size: 14px;
    color: var(--muted);
    font-weight: 500;
    text-align: center;
}

/* ---------- Contato ---------- */

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--gap);
}
.contact-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    box-shadow: var(--shadow);
}
.contact-card svg {
    width: 26px;
    height: 26px;
    color: var(--gold);
    margin-bottom: 12px;
}
.contact-card h3 {
    font-size: 16px;
    margin: 0 0 8px;
    font-weight: 700;
    color: var(--ink);
}
.contact-card p {
    margin: 0 0 4px;
    color: var(--ink-2);
    font-size: 15px;
    line-height: 1.5;
}
.contact-card a {
    color: var(--gold-dark);
    font-weight: 500;
    word-break: break-word;
}
.contact-card .hint {
    color: var(--muted);
    font-size: 13px;
    margin-top: 6px;
}

/* ---------- Footer ---------- */

.site-footer {
    background: var(--ink);
    color: rgba(250, 247, 240, .7);
    padding: 56px 0 32px;
    border-top: 1px solid rgba(201, 160, 50, .2);
}
.footer-inner {
    display: grid;
    grid-template-columns: 1fr 1.4fr 1fr;
    gap: var(--gap);
    align-items: start;
}
.footer-brand img { margin-bottom: 12px; height: 72px; width: auto; }
.footer-logo { filter: brightness(1.05); }

.social {
    list-style: none;
    padding: 0;
    margin: 14px 0 0;
    display: flex;
    gap: 10px;
}
.social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    color: rgba(250, 247, 240, .8);
    background: rgba(250, 247, 240, .06);
    border: 1px solid rgba(250, 247, 240, .12);
    transition: color .15s ease, background .15s ease, border-color .15s ease, transform .15s ease;
}
.social a:hover {
    color: var(--gold) !important;
    background: rgba(201, 160, 50, .12);
    border-color: rgba(201, 160, 50, .5);
    transform: translateY(-1px);
}
.footer-brand .tagline {
    color: rgba(250, 247, 240, .6);
    font-size: 14px;
    margin: 0;
    max-width: 20ch;
}
.footer-info p {
    margin: 0 0 4px;
    font-size: 13px;
    line-height: 1.5;
    color: rgba(250, 247, 240, .7);
}
.footer-info strong { color: var(--paper); }
.footer-legal {
    font-size: 12px;
    line-height: 1.6;
    text-align: right;
}
.footer-legal p { margin: 0 0 8px; color: rgba(250, 247, 240, .5); }
.footer-legal .disclaimer {
    font-size: 11px;
    color: rgba(250, 247, 240, .4);
    max-width: 28ch;
    margin-left: auto;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
    .two-col { grid-template-columns: 1fr; }
    .fact-card { position: static; }
    .footer-inner { grid-template-columns: 1fr; }
    .footer-legal { text-align: left; }
    .footer-legal .disclaimer { margin-left: 0; }
}

@media (max-width: 720px) {
    .nav-toggle { display: flex; }
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--paper);
        border-bottom: 1px solid var(--line);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 12px var(--pad);
        transform: translateY(-8px);
        opacity: 0;
        pointer-events: none;
        transition: transform .18s ease, opacity .18s ease;
    }
    .nav-menu.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }
    .nav-menu li { border-bottom: 1px solid var(--line); }
    .nav-menu li:last-child { border-bottom: 0; padding-top: 8px; padding-bottom: 8px; }
    .nav-menu a { display: block; padding: 14px 4px; }
    .nav-cta { text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }
}
