/* ============================================================
   IFAAMSF — Tech Institutional Theme
   Super hi-tech visual overhaul (content unchanged)
   ============================================================ */

/* ---------- Base Reset & Variables ---------- */
:root {
    --tc: #00d4ff;           /* electric cyan */
    --tc2: #0ea5e9;          /* sky blue */
    --tc-mint: #00ffcc;      /* neon mint */
    --tc-bg: #020c1b;        /* deepest background */
    --tc-surf: #0d1b2e;      /* card/surface */
    --tc-surf2: #0f2035;     /* slightly lighter surface */
    --tc-border: rgba(0,212,255,.13);
    --tc-glow: 0 0 22px rgba(0,212,255,.22);
    --tc-glow-md: 0 0 40px rgba(0,212,255,.4);
    --tc-font: 'Inter', system-ui, sans-serif;
    --tc-mono: 'Fira Code', 'JetBrains Mono', 'Courier New', monospace;
}

/* ---------- Body + Grid Background ---------- */
body {
    background-color: #020c1b !important;
    background-image:
        conic-gradient(from 90deg at 1px 1px,
            transparent 90deg,
            rgba(0,212,255,.045) 0
        ) -1px -1px / 44px 44px !important;
    background-attachment: fixed !important;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6,
.wp-block-heading {
    font-family: var(--tc-font) !important;
    letter-spacing: -0.025em;
    color: #e2f3fb !important;
}

h1.wp-block-heading {
    text-shadow: 0 0 50px rgba(0,212,255,.25), 0 2px 30px rgba(0,0,0,.5) !important;
    font-weight: 800 !important;
    letter-spacing: -0.035em;
}

h2.wp-block-heading {
    text-shadow: 0 0 30px rgba(0,212,255,.18) !important;
    font-weight: 700 !important;
}

h3.wp-block-heading {
    text-shadow: 0 0 20px rgba(0,212,255,.15) !important;
    font-weight: 700 !important;
}

/* Section heading accent underline */
h2.wp-block-heading::after {
    content: '';
    display: block;
    width: 36px;
    height: 2px;
    margin-top: 10px;
    background: linear-gradient(90deg, var(--tc), transparent);
    box-shadow: 0 0 10px rgba(0,212,255,.55);
}

/* ---------- Primary colour elements (labels, counters) ---------- */
.has-primary-color-color,
p.has-primary-color-color {
    color: var(--tc) !important;
    font-family: var(--tc-mono) !important;
    text-shadow: 0 0 18px rgba(0,212,255,.7) !important;
    font-variant-numeric: tabular-nums;
}

/* "SOBRE NÓS / FAQ" style labels */
p.has-primary-color-color[style*="uppercase"] {
    font-size: 0.68rem !important;
    letter-spacing: 3.5px !important;
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

p.has-primary-color-color[style*="uppercase"]::before {
    content: '//';
    opacity: 0.55;
    font-family: var(--tc-mono);
}

/* ---------- Sections ---------- */
.wp-block-group.has-neutral-0-background-color {
    background-color: #020c1b !important;
    border-top: 1px solid rgba(0,212,255,.07);
}

.wp-block-group.has-neutral-200-background-color {
    background-color: #0d1b2e !important;
    position: relative;
    overflow: hidden;
}

/* Top gradient line on every dark surface section */
.wp-block-group.has-neutral-200-background-color::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(0,212,255,.35) 50%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}

/* ---------- Hero Cover ---------- */
.wp-block-cover {
    border: 1px solid var(--tc-border) !important;
    transition: border-color .3s ease, box-shadow .3s ease !important;
}

.wp-block-cover:hover {
    border-color: rgba(0,212,255,.32) !important;
    box-shadow: 0 0 28px rgba(0,212,255,.1), inset 0 0 28px rgba(0,212,255,.04) !important;
}

/* ---------- Buttons ---------- */
.wp-element-button,
a.wp-element-button {
    font-family: var(--tc-mono) !important;
    font-size: 0.68rem !important;
    letter-spacing: 2.5px !important;
    text-transform: uppercase !important;
    font-weight: 600 !important;
    transition: all .25s ease !important;
    border-radius: 4px !important;
}

/* Solid buttons */
.wp-block-button:not(.is-style-ghost):not(.is-style-outline) .wp-element-button {
    background: linear-gradient(135deg, #0ea5e9 0%, #00d4ff 100%) !important;
    color: #020c1b !important;
    border: none !important;
    box-shadow: 0 4px 22px rgba(0,212,255,.38) !important;
}

.wp-block-button:not(.is-style-ghost):not(.is-style-outline) .wp-element-button:hover {
    box-shadow: 0 6px 32px rgba(0,212,255,.65), 0 0 60px rgba(0,212,255,.18) !important;
    transform: translateY(-2px) scale(1.02);
}

/* Ghost / outline buttons */
.wp-block-button.is-style-ghost .wp-element-button,
.wp-block-button.is-style-outline .wp-element-button {
    background: transparent !important;
    border: 1px solid rgba(0,212,255,.48) !important;
    color: #00d4ff !important;
    box-shadow: 0 0 14px rgba(0,212,255,.14), inset 0 0 14px rgba(0,212,255,.05) !important;
}

.wp-block-button.is-style-ghost .wp-element-button:hover,
.wp-block-button.is-style-outline .wp-element-button:hover {
    background: rgba(0,212,255,.08) !important;
    border-color: rgba(0,212,255,.85) !important;
    box-shadow: 0 0 28px rgba(0,212,255,.45), inset 0 0 22px rgba(0,212,255,.08) !important;
    transform: translateY(-2px);
}

/* ---------- Navigation Header ---------- */
header.wp-block-template-part {
    backdrop-filter: blur(22px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(22px) saturate(180%) !important;
    background: rgba(2,12,27,.88) !important;
    border-bottom: 1px solid rgba(0,212,255,.1) !important;
}

/* Nav links */
.wp-block-navigation a,
.wp-block-navigation .wp-block-navigation-item__content {
    font-family: var(--tc-mono) !important;
    font-size: 0.68rem !important;
    letter-spacing: 2px !important;
    text-transform: uppercase !important;
    color: #94a3b8 !important;
    transition: color .2s ease, text-shadow .2s ease !important;
    text-decoration: none !important;
}

.wp-block-navigation a:hover,
.wp-block-navigation .wp-block-navigation-item__content:hover {
    color: var(--tc) !important;
    text-shadow: 0 0 14px rgba(0,212,255,.8) !important;
}

/* Site title */
.wp-block-site-title a,
.wp-block-site-title {
    font-family: var(--tc-mono) !important;
    letter-spacing: 3.5px !important;
    text-transform: uppercase !important;
    color: var(--tc) !important;
    text-shadow: 0 0 22px rgba(0,212,255,.55) !important;
    font-weight: 700 !important;
    text-decoration: none !important;
}

/* ---------- FAQ / Details ---------- */
.wp-block-details {
    background: rgba(13,27,46,.85) !important;
    border: 1px solid rgba(0,212,255,.13) !important;
    border-left: 2px solid rgba(0,212,255,.45) !important;
    border-radius: 6px !important;
    transition: border-color .3s ease, box-shadow .3s ease !important;
}

.wp-block-details[open],
.wp-block-details:hover {
    border-color: rgba(0,212,255,.32) !important;
    border-left-color: var(--tc) !important;
    box-shadow: 0 0 22px rgba(0,212,255,.08), -4px 0 18px rgba(0,212,255,.15) !important;
}

.wp-block-details summary {
    font-family: var(--tc-font) !important;
    font-weight: 600 !important;
    color: #e2f3fb !important;
    letter-spacing: 0.01em;
    cursor: pointer;
    list-style: none;
    padding-left: 8px;
}

.wp-block-details summary::before {
    content: '›';
    color: var(--tc);
    font-family: var(--tc-mono);
    font-size: 1.2rem;
    margin-right: 8px;
    display: inline-block;
    transition: transform .2s ease;
}

.wp-block-details[open] summary::before {
    transform: rotate(90deg);
}

/* ---------- Accent border paragraphs ---------- */
p[style*="border-left"] {
    border-left-color: var(--tc) !important;
    border-left-width: 3px !important;
    box-shadow: -5px 0 22px rgba(0,212,255,.22) !important;
    background: rgba(0,212,255,.03) !important;
    border-radius: 0 6px 6px 0 !important;
    color: #94a3b8 !important;
    padding: 12px 16px !important;
}

/* ---------- Checklist ---------- */
.wp-block-list.is-style-check-circle li {
    color: #94a3b8 !important;
    padding: 7px 0;
    border-bottom: 1px solid rgba(0,212,255,.06);
    font-size: 0.95rem;
}

/* ---------- Images ---------- */
.wp-block-image img,
.wp-block-gallery img {
    border: 1px solid rgba(0,212,255,.12) !important;
    box-shadow: 0 0 30px rgba(0,212,255,.08) !important;
    filter: brightness(.92) contrast(1.05) saturate(.95) !important;
    transition: filter .3s ease, box-shadow .3s ease !important;
}

.wp-block-image:hover img,
.wp-block-gallery:hover img {
    filter: brightness(1) contrast(1.05) saturate(1.05) !important;
    box-shadow: 0 0 40px rgba(0,212,255,.16) !important;
}

/* ---------- Footer ---------- */
footer.wp-block-template-part {
    background: #020c1b !important;
    border-top: 1px solid rgba(0,212,255,.18) !important;
    position: relative;
}

footer.wp-block-template-part::before {
    content: '';
    position: absolute;
    top: -1px; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--tc) 50%, transparent 100%);
    box-shadow: 0 0 18px rgba(0,212,255,.5);
    pointer-events: none;
}

/* ---------- Post cards ---------- */
.wp-block-post {
    border: 1px solid rgba(0,212,255,.09) !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    background: rgba(13,27,46,.5) !important;
    transition: border-color .3s ease, transform .3s ease, box-shadow .3s ease !important;
}

.wp-block-post:hover {
    border-color: rgba(0,212,255,.28) !important;
    transform: translateY(-5px) !important;
    box-shadow: 0 10px 42px rgba(0,212,255,.12) !important;
}

/* ---------- Posts section heading ---------- */
.wp-block-group.is-style-dark h1.wp-block-heading {
    font-family: var(--tc-mono) !important;
    letter-spacing: -0.03em;
    text-shadow: 0 0 45px rgba(0,212,255,.4) !important;
    color: #e2f3fb !important;
}

/* ---------- Stats block ---------- */
.wp-block-group[style*="font-weight:600"] p,
.wp-block-group[style*="font-weight: 600"] p {
    font-family: var(--tc-mono) !important;
}

/* ---------- Form inputs ---------- */
input[type="text"], input[type="email"],
input[type="password"], input[type="search"],
textarea, select {
    background: rgba(13,27,46,.8) !important;
    border: 1px solid rgba(0,212,255,.2) !important;
    color: #94a3b8 !important;
    border-radius: 4px !important;
    font-family: var(--tc-font) !important;
    transition: border-color .2s ease, box-shadow .2s ease !important;
}

input[type="text"]:focus, input[type="email"]:focus,
input[type="password"]:focus, textarea:focus, select:focus {
    border-color: rgba(0,212,255,.6) !important;
    box-shadow: 0 0 16px rgba(0,212,255,.18) !important;
    outline: none !important;
    color: #e2f3fb !important;
}

/* ---------- Separator lines ---------- */
.wp-block-separator {
    border-color: rgba(0,212,255,.22) !important;
    box-shadow: 0 0 8px rgba(0,212,255,.28);
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: #020c1b; }
::-webkit-scrollbar-thumb {
    background: rgba(0,212,255,.28);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover { background: rgba(0,212,255,.55); }

/* ---------- Selection ---------- */
::selection {
    background: rgba(0,212,255,.2);
    color: var(--tc);
}

/* ---------- General text colours ---------- */
p, li, span:not(.wp-block-navigation-item__content) {
    color: #94a3b8;
}

/* Paragraphs inside hero keep white */
.wp-block-cover p {
    color: rgba(255,255,255,.72) !important;
}

/* ---------- Links ---------- */
a:not(.wp-element-button):not(.wp-block-navigation-item__content) {
    transition: color .2s ease !important;
}

a:not(.wp-element-button):not(.wp-block-navigation-item__content):hover {
    color: var(--tc) !important;
}

/* ---------- Columns divider ---------- */
.wp-block-columns.alignwide {
    gap: 1.5rem;
}

/* ---------- Mobile ---------- */
@media (max-width: 768px) {
    body {
        background-image:
            conic-gradient(from 90deg at 1px 1px,
                transparent 90deg,
                rgba(0,212,255,.03) 0
            ) -1px -1px / 30px 30px !important;
    }

    h1.wp-block-heading {
        text-shadow: 0 0 30px rgba(0,212,255,.2) !important;
    }
}
