/*
Theme Name: MIT Technologies Dark
Template: twentytwentyfive
Description: Lightweight child theme for mit-technologies.com (ECCO launch look: navy, emerald, gold, ivory).
Version: 2.0.1
Author: MIT Innovation Sdn Bhd
Text Domain: mit-technologies-dark
*/

/* Thin brand typography */
body { -webkit-font-smoothing: antialiased; }
.mit-wordmark { font-weight: 300; letter-spacing: .02em; }
.mit-gold-rule { border: 0; height: 1px; background: var(--wp--preset--color--gold); width: 64px; margin: 1.25rem 0; }
.mit-card { border-top: 2px solid var(--wp--preset--color--emerald); background: #fff; padding: 1.75rem; height: 100%; }
.mit-card h3 { margin-top: 0; }
.wp-block-navigation a:hover { color: var(--wp--preset--color--gold); }
.mit-header { border-bottom: 1px solid rgba(201,162,75,.35); }
.mit-whatsapp { position: fixed; right: 20px; bottom: 20px; z-index: 50; width: 52px; height: 52px; border-radius: 50%; background: var(--wp--preset--color--emerald); display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 14px rgba(0,0,0,.2); }
.mit-whatsapp svg { width: 26px; height: 26px; fill: #fff; }
.mit-spec table td:first-child { color: var(--wp--preset--color--navy); font-weight: 400; width: 40%; }
.mit-spec table td { border-color: rgba(18,38,58,.12); }
.mit-header { border-bottom: 1px solid rgba(201,162,75,.5); z-index: 20; }
.mit-logo { margin: 0; }
.mit-spec table { font-size: .92rem; }
.mit-spec thead th { background: var(--wp--preset--color--navy); color: #fff; font-weight: 400; border-color: var(--wp--preset--color--navy); }
.has-navy-background-color .mit-card { background: rgba(255,255,255,.06); color: var(--wp--preset--color--ivory); }
.has-navy-background-color .mit-card h3, .has-navy-background-color h2 { color: #fff; }
.has-navy-background-color .mit-spec td { border-color: rgba(255,255,255,.2); }
.has-navy-background-color .mit-spec td:first-child { color: var(--wp--preset--color--gold); }
.has-navy-background-color a:not(.wp-element-button) { color: var(--wp--preset--color--gold); }
.wp-block-button.is-style-outline .wp-block-button__link { border-color: currentColor; background: transparent; }
.has-navy-background-color .is-style-outline .wp-block-button__link, .has-emerald-background-color .is-style-outline .wp-block-button__link { color: #fff; }
.wp-block-image figcaption { font-size: .82rem; opacity: .8; }
.mit-gold-rule { margin-left: 0 !important; margin-right: auto !important; }
.wp-site-blocks > footer, .wp-site-blocks > main + footer { margin-block-start: 0; }
.wp-site-blocks > main { margin-block-end: 0; }
.wp-block-column .wp-block-image img { max-height: 560px; object-fit: cover; width: 100%; }
.has-emerald-background-color .wp-block-button:not(.is-style-outline) .wp-block-button__link { background: var(--wp--preset--color--navy); }
.mit-hero-img img { background: #fff; border-radius: 2px; }
strong, b { font-weight: 600; }

/* ===== Dark technical look (v2) ===== */
:root { --mit-ink:#0B1218; --mit-panel:#131D25; --mit-line:rgba(185,198,207,.12); --mit-teal:#5FC4CB; --mit-amber:#E8A87C; --mit-mono:"JetBrains Mono","SFMono-Regular",Menlo,Consolas,monospace; }
body { background:#0F171E; }
.has-white-background-color { background-color: var(--mit-panel) !important; }
.mit-header { background: rgba(11,18,24,.92) !important; backdrop-filter: blur(6px); border-bottom: 1px solid var(--mit-line); }
.mit-header .wp-block-navigation { font-family: var(--mit-mono); font-size: .82rem !important; letter-spacing: .06em; text-transform: uppercase; }
.wp-block-navigation__submenu-container { background: var(--mit-panel) !important; border: 1px solid var(--mit-line) !important; }
/* dotted-grid motif on dark bands */
.wp-site-blocks .alignfull.has-navy-background-color { background-image: radial-gradient(rgba(95,196,203,.16) 1.2px, transparent 1.3px); background-size: 22px 22px; background-position: right top; }
/* eyebrows, stats, captions in mono */
p[style*="letter-spacing:0.14em"], p[style*="letter-spacing:0.12em"] { font-family: var(--mit-mono); color: var(--mit-teal) !important; }
p.has-gold-color[style*="2.6rem"] { font-family: var(--mit-mono); color: var(--mit-teal) !important; font-weight: 500; }
.wp-block-column p.has-gold-color[style*="2.6rem"] + p { color: var(--mit-teal); opacity: .85; }
/* hero lead text in amber, as in the reference style */
.has-navy-background-color p[style*="font-size:1.15rem"] { color: var(--mit-amber) !important; font-weight: 500; }
h1.wp-block-heading { font-weight: 500; letter-spacing: -0.02em; }
/* cards / tiles */
.mit-card { background: var(--mit-panel) !important; border: 1px solid var(--mit-line); border-top: 2px solid var(--mit-teal); color: #B9C6CF; transition: border-color .2s, transform .2s; }
.mit-card:hover { border-color: rgba(95,196,203,.45); transform: translateY(-2px); }
.mit-card h3 { color: #F2F5F7; font-weight: 500; }
.mit-card .wp-block-image img { filter: saturate(.85) brightness(.9); }
.mit-gold-rule { background: var(--mit-teal) !important; }
/* tables */
.mit-spec table td, .mit-spec table th { border-color: var(--mit-line) !important; }
.mit-spec thead th { background: #0B1218 !important; color: var(--mit-teal) !important; font-family: var(--mit-mono); font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; }
.mit-spec table td:first-child { color: #F2F5F7 !important; }
/* buttons: outlined, square */
.wp-element-button, .wp-block-button__link { font-family: var(--mit-mono); font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; }
.has-emerald-background-color { background-color: #0E3E44 !important; }
.has-emerald-background-color .wp-block-button:not(.is-style-outline) .wp-block-button__link { background: transparent; border: 1px solid var(--mit-amber); color: var(--mit-amber); }
/* images with white backgrounds sit on panels */
.wp-block-image img { border-radius: 0; }
.wp-block-image figcaption { color: #8A9AA6; font-family: var(--mit-mono); font-size: .75rem; }
.mit-whatsapp { background: var(--mit-teal); }
.mit-whatsapp svg { fill: #0B1218; }
footer .has-navy-background-color, footer .wp-block-group.has-navy-background-color { background: #0B1218 !important; border-top: 1px solid var(--mit-line); }
.has-ivory-background-color { background-color: #0F171E !important; }
.has-navy-background-color p.has-ivory-color[style*="font-size:1.15rem"] { color: var(--mit-amber) !important; }
footer p, footer .has-ivory-color { color: #B9C6CF !important; }
footer a { color: var(--mit-amber) !important; }
