/* DevOpsRaiz — base styles. Plain CSS, no build step. */

:root {
    --bg: #0b1320;
    --bg-soft: #11192a;
    --bg-deep: #060c17;
    --surface: #ffffff;
    --surface-soft: #f8fafc;
    --surface-mute: #f1f5f9;
    --border: #e2e8f0;
    --ink: #0f172a;
    --ink-soft: #334155;
    --muted: #64748b;
    --accent: #0e7490;
    --accent-strong: #0c5566;
    --accent-soft: #ecfeff;
    --danger: #b91c1c;
    --danger-bg: #fef2f2;
    --max: 72ch;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
    --shadow-md: 0 6px 16px rgba(15, 23, 42, .08);
}

* { box-sizing: border-box; }

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

body {
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.65;
    color: var(--ink);
    background: var(--surface);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; height: auto; }

a { color: var(--accent-strong); text-decoration-thickness: 1.5px; text-underline-offset: 2px; }
a:hover, a:focus { color: var(--accent); }

p { margin: .75rem 0 1rem; }

h1, h2, h3 { color: var(--ink); }

.container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

.skip {
    position: absolute;
    left: -9999px;
    top: auto;
}
.skip:focus {
    left: 1rem;
    top: 1rem;
    background: #fff;
    padding: .5rem .75rem;
    border: 2px solid var(--accent);
    z-index: 100;
}

/* Header */
.site-header {
    background: var(--bg);
    color: #f8fafc;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.site-header a { color: #f8fafc; text-decoration: none; }
.site-header a:hover, .site-header a:focus { color: #e0f2fe; }
.header-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.brand {
    font-weight: 700;
    letter-spacing: .02em;
    font-size: 1.2rem;
}
.brand .brand-dot { color: #67e8f9; }
.nav {
    list-style: none;
    display: flex;
    gap: 1.25rem;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
    font-weight: 500;
}
.nav a[aria-current="page"] {
    text-decoration: underline;
    text-underline-offset: 6px;
    text-decoration-color: #67e8f9;
    text-decoration-thickness: 2px;
}

/* Hero */
.hero {
    padding: 3.25rem 1.25rem 1.75rem;
    position: relative;
}
.hero.hero-dark {
    background:
        radial-gradient(1100px 380px at 12% 0%, rgba(14, 116, 144, .25), transparent 65%),
        radial-gradient(900px 320px at 100% 20%, rgba(8, 145, 178, .18), transparent 60%),
        linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
    color: #f8fafc;
    margin: 0;
    padding: 4rem 1.25rem 3rem;
    max-width: none;
    border-bottom: 1px solid rgba(255, 255, 255, .05);
}
.hero.hero-dark h1, .hero.hero-dark p { color: #f8fafc; }
.hero.hero-dark .lead { color: #cbd5e1; }
.hero.hero-dark .eyebrow { color: #67e8f9; }
.hero-inner { max-width: 1080px; margin: 0 auto; }

.eyebrow {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: .75rem;
    font-weight: 700;
    color: var(--accent-strong);
    margin-bottom: .75rem;
}

.hero h1 {
    font-size: clamp(1.75rem, 2.6vw + 1rem, 2.6rem);
    line-height: 1.15;
    margin: 0 0 1rem;
    letter-spacing: -0.01em;
}
.lead {
    font-size: 1.125rem;
    color: var(--ink-soft);
    max-width: var(--max);
    margin: 0 0 1rem;
}

.cta-row {
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: .75rem 1.25rem;
    border-radius: .5rem;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1.2;
    transition: background-color .15s ease, color .15s ease, transform .05s ease, box-shadow .15s ease;
    box-shadow: var(--shadow-sm);
}
.btn:active { transform: translateY(1px); }
.btn-primary {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}
.btn-primary:hover, .btn-primary:focus {
    background: var(--accent-strong);
    border-color: var(--accent-strong);
    color: #fff;
    box-shadow: var(--shadow-md);
}
.btn-secondary {
    background: transparent;
    border-color: var(--accent);
    color: var(--accent-strong);
    box-shadow: none;
}
.btn-secondary:hover, .btn-secondary:focus {
    background: var(--accent);
    color: #fff;
}
.hero.hero-dark .btn-secondary {
    color: #e0f2fe;
    border-color: #67e8f9;
}
.hero.hero-dark .btn-secondary:hover,
.hero.hero-dark .btn-secondary:focus {
    background: #67e8f9;
    color: var(--bg);
}

/* Content */
.content {
    padding: 2rem 1.25rem 3rem;
    max-width: 75ch;
}
.content h2 {
    margin-top: 2.5rem;
    margin-bottom: .75rem;
    font-size: 1.4rem;
    letter-spacing: -0.005em;
}
.content h2:first-child { margin-top: 1rem; }
.content ul, .content ol { padding-left: 1.25rem; }
.content li { margin: .35rem 0; }

.muted { color: var(--muted); font-size: .95rem; }

/* Cards / grid */
.section-title {
    margin: 2.5rem 0 1rem;
    font-size: 1.5rem;
    letter-spacing: -0.005em;
}
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
    padding-top: 1rem;
    padding-bottom: 1.5rem;
}
.card {
    padding: 1.5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: .75rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: .5rem;
    transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.card:hover, .card:focus-within {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: #cbd5e1;
}
.card .card-tag {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: .1em;
    font-size: .7rem;
    font-weight: 700;
    color: var(--accent-strong);
    background: var(--accent-soft);
    padding: .15rem .55rem;
    border-radius: 999px;
    align-self: flex-start;
}
.card h2 { margin: .35rem 0 0; font-size: 1.2rem; }
.card h2 a { text-decoration: none; color: var(--ink); }
.card h2 a:hover, .card h2 a:focus { color: var(--accent-strong); }
.card p { margin: .25rem 0 .5rem; color: var(--ink-soft); }
.card .card-cta {
    margin-top: auto;
    font-weight: 600;
    color: var(--accent-strong);
    text-decoration: none;
}
.card .card-cta:hover, .card .card-cta:focus {
    text-decoration: underline;
}

.callout {
    background: var(--surface-mute);
    border-left: 4px solid var(--accent);
    padding: 1.5rem 1.5rem;
    margin: 2.5rem auto;
    border-radius: .5rem;
}
.callout h2 { margin-top: 0; }

/* Mailing list notice — reused across /mar, /ingles, /contato */
.mailing-notice {
    background: var(--accent-soft);
    border: 1px solid #a5f3fc;
    border-left: 4px solid var(--accent);
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
    border-radius: .5rem;
    color: var(--ink);
}
.mailing-notice strong { color: var(--accent-strong); }
.mailing-notice ul { margin: .5rem 0 .25rem 1.25rem; padding: 0; }
.mailing-notice li { margin: .15rem 0; }

/* Forms */
.form-section { padding: 1.5rem 1.25rem 3rem; max-width: 60ch; }
.field { margin-bottom: 1rem; }
.field label {
    display: block;
    font-weight: 600;
    margin-bottom: .25rem;
}
.field input, .field select, .field textarea {
    width: 100%;
    padding: .6rem .7rem;
    font: inherit;
    border: 1px solid #cbd5e1;
    border-radius: .375rem;
    background: #fff;
    transition: border-color .12s ease, box-shadow .12s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(14, 116, 144, .18);
}
.hint { color: var(--muted); font-size: .9rem; margin: .25rem 0 0; }
.req { color: var(--danger); }

.alert {
    padding: .85rem 1rem;
    border-radius: .5rem;
    margin-bottom: 1.25rem;
}
.alert-error {
    background: var(--danger-bg);
    border: 1px solid #fecaca;
    color: var(--danger);
}

/* Honeypot — visually hide but keep accessible to bots */
.hp {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Footer */
.site-footer {
    background: var(--bg-deep);
    color: #cbd5e1;
    padding: 2.5rem 0 2rem;
    margin-top: 3.5rem;
}
.site-footer a { color: #e0f2fe; text-decoration: none; }
.site-footer a:hover, .site-footer a:focus { color: #67e8f9; text-decoration: underline; }
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}
.footer-col h3 {
    margin: 0 0 .5rem;
    font-size: .9rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: #f8fafc;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin: .25rem 0; }
.site-footer .bottom {
    border-top: 1px solid rgba(255, 255, 255, .08);
    padding-top: 1.25rem;
    margin-top: 1rem;
}
.site-footer p { margin: .35rem 0; }
.site-footer .muted { color: #94a3b8; }

/* Mobile tweaks */
@media (max-width: 640px) {
    .hero { padding: 2.25rem 1.25rem 1.25rem; }
    .hero.hero-dark { padding: 2.75rem 1.25rem 2rem; }
    .hero h1 { font-size: 1.7rem; }
    .lead { font-size: 1.05rem; }
    .btn { width: 100%; text-align: center; }
    .cta-row { flex-direction: column; align-items: stretch; }
    .nav { gap: .9rem; width: 100%; }
    .header-inner { flex-direction: column; align-items: flex-start; }
    .content { padding-top: 1.25rem; }
}
