/*
Theme Name: LAZAMAC
Theme URI: https://lazamac.com
Author: LAZAMAC LIMITED
Author URI: https://lazamac.com
Description: Lightweight, responsive HTML5 corporate theme for LAZAMAC LIMITED cross-border sourcing. No frameworks, no jQuery. Deep-blue & amber brand system with native inquiry form, hero, product-line cards, OEM timeline and WhatsApp float.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: lazamac
*/

/* ==========================================================================
   1. Design tokens & reset
   ========================================================================== */
:root {
    --blue-900: #0b1f4b;
    --blue-800: #12295f;
    --blue-700: #1e3a8a;
    --blue-600: #27499f;
    --blue-100: #dbe5ff;
    --blue-50:  #eef3ff;
    --amber-500: #f59e0b;
    --amber-600: #d97706;
    --ink-900: #0f172a;
    --ink-700: #334155;
    --ink-500: #64748b;
    --ink-300: #cbd5e1;
    --ink-100: #e8edf4;
    --paper:   #ffffff;
    --paper-2: #f8fafc;
    --green-500: #22c55e;
    --radius-s: 8px;
    --radius-m: 14px;
    --radius-l: 22px;
    --shadow-s: 0 1px 3px rgba(15, 23, 42, .08);
    --shadow-m: 0 8px 24px rgba(15, 23, 42, .10);
    --shadow-l: 0 20px 48px rgba(11, 31, 75, .18);
    --container: 1200px;
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font);
    font-size: 16.5px;
    line-height: 1.7;
    color: var(--ink-700);
    background: var(--paper);
    overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; }
a { color: var(--blue-700); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--amber-600); }
h1, h2, h3, h4 { color: var(--ink-900); line-height: 1.25; margin: 0 0 .6em; font-weight: 800; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--amber-500); color: var(--blue-900); }

.container { width: min(var(--container), 92%); margin-inline: auto; }
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section--tint { background: var(--paper-2); }
.section--blue { background: linear-gradient(135deg, var(--blue-900), var(--blue-700)); color: #fff; }

.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
    color: var(--amber-600); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--amber-500); }
.section--blue .eyebrow { color: var(--amber-500); }

.section-head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head.center .eyebrow::before { display: none; }
.section-head p { color: var(--ink-500); font-size: 1.06rem; }
.section--blue .section-head p { color: var(--blue-100); }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 15px 30px; border-radius: 999px; border: 0; cursor: pointer;
    font-weight: 700; font-size: .98rem; letter-spacing: .01em;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), color .25s var(--ease);
    will-change: transform;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn--primary { background: linear-gradient(135deg, var(--amber-500), var(--amber-600)); color: var(--blue-900); box-shadow: 0 10px 24px rgba(245, 158, 11, .35); }
.btn--primary:hover { color: var(--blue-900); transform: translateY(-2px); box-shadow: 0 16px 32px rgba(245, 158, 11, .45); }
.btn--ghost { background: rgba(255, 255, 255, .08); color: #fff; border: 1.5px solid rgba(255, 255, 255, .45); backdrop-filter: blur(6px); }
.btn--ghost:hover { background: rgba(255, 255, 255, .16); color: #fff; transform: translateY(-2px); }
.btn--blue { background: var(--blue-700); color: #fff; box-shadow: 0 10px 24px rgba(30, 58, 138, .28); }
.btn--blue:hover { background: var(--blue-600); color: #fff; transform: translateY(-2px); }
.btn .icon { transition: transform .25s var(--ease); }
.btn:hover .icon { transform: translateX(4px); }

/* ==========================================================================
   2. Header
   ========================================================================== */
.topbar {
    background: var(--blue-900); color: var(--blue-100);
    font-size: .82rem; padding: 7px 0;
}
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.topbar a { color: var(--blue-100); }
.topbar a:hover { color: var(--amber-500); }
.topbar__contact { display: flex; gap: 20px; align-items: center; }
.topbar__contact a { display: inline-flex; align-items: center; gap: 6px; }
.topbar .icon { width: 14px; height: 14px; }

.lang-switcher { display: flex; gap: 2px; }
.lang-switcher a {
    padding: 3px 10px; border-radius: 999px; font-weight: 600; font-size: .78rem;
    color: var(--blue-100);
}
.lang-switcher a:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.lang-switcher a.current { background: var(--amber-500); color: var(--blue-900); }

.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.site-header.scrolled { border-color: var(--ink-100); box-shadow: var(--shadow-m); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand__logo {
    width: 42px; height: 42px; border-radius: 12px; flex: none;
    background: linear-gradient(135deg, var(--blue-700), var(--blue-900));
    display: grid; place-items: center; color: var(--amber-500);
    font-weight: 900; font-size: 1.25rem; letter-spacing: .02em;
    box-shadow: 0 6px 16px rgba(30, 58, 138, .35);
}
.brand__name { font-weight: 900; font-size: 1.3rem; color: var(--blue-900); letter-spacing: .02em; line-height: 1.1; }
.brand__name small { display: block; font-size: .62rem; font-weight: 700; letter-spacing: .3em; color: var(--amber-600); text-transform: uppercase; }
.brand:hover .brand__name { color: var(--blue-700); }

.nav-menu { display: flex; align-items: center; gap: 4px; }
.nav-menu > li > a {
    display: block; padding: 10px 15px; border-radius: 10px;
    font-weight: 600; font-size: .95rem; color: var(--ink-700);
}
.nav-menu > li > a:hover { color: var(--blue-700); background: var(--blue-50); }
.nav-menu > li.current-menu-item > a, .nav-menu > li.current_page_item > a { color: var(--blue-700); background: var(--blue-50); }
.header-cta { margin-left: 10px; }
.header-cta .btn { padding: 11px 22px; font-size: .9rem; }

.nav-toggle {
    display: none; width: 46px; height: 46px; border: 0; background: var(--blue-50);
    border-radius: 12px; cursor: pointer; position: relative; z-index: 120;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
    content: ""; position: absolute; left: 12px; width: 22px; height: 2.5px; border-radius: 2px;
    background: var(--blue-800); transition: all .3s var(--ease);
}
.nav-toggle span { top: 22px; }
.nav-toggle span::before { left: 0; top: -7px; }
.nav-toggle span::after { left: 0; top: 7px; }
body.nav-open .nav-toggle span { background: transparent; }
body.nav-open .nav-toggle span::before { transform: rotate(45deg); top: 0; }
body.nav-open .nav-toggle span::after { transform: rotate(-45deg); top: 0; }

/* ==========================================================================
   3. Hero
   ========================================================================== */
.hero {
    position: relative; color: #fff; overflow: hidden;
    background:
        radial-gradient(900px 500px at 85% -10%, rgba(245, 158, 11, .22), transparent 60%),
        radial-gradient(700px 500px at -10% 110%, rgba(59, 130, 246, .28), transparent 60%),
        linear-gradient(135deg, var(--blue-900) 0%, var(--blue-700) 58%, #1b3a8f 100%);
}
.hero::before {
    content: ""; position: absolute; inset: 0; opacity: .35;
    background-image:
        linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse 90% 80% at 50% 30%, #000 30%, transparent 75%);
}
.hero__inner {
    position: relative; z-index: 2;
    padding: clamp(72px, 11vw, 140px) 0 clamp(64px, 9vw, 120px);
    max-width: 880px;
}
.hero__badge {
    display: inline-flex; align-items: center; gap: 10px;
    background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22);
    padding: 8px 18px; border-radius: 999px; font-size: .84rem; font-weight: 600;
    color: var(--blue-100); margin-bottom: 26px; backdrop-filter: blur(6px);
}
.hero__badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green-500); box-shadow: 0 0 0 4px rgba(34, 197, 94, .25); animation: pulse 2.4s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); } }
.hero h1 { color: #fff; font-weight: 900; margin-bottom: 20px; }
.hero h1 .hl {
    background: linear-gradient(120deg, #fcd34d, var(--amber-500));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__sub { font-size: clamp(1.02rem, 1.6vw, 1.22rem); color: var(--blue-100); max-width: 640px; margin-bottom: 36px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 46px; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 12px 30px; font-size: .9rem; color: var(--blue-100); }
.hero__meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero__meta .icon { width: 17px; height: 17px; color: var(--amber-500); }

/* Stats strip */
.stats { position: relative; z-index: 2; margin-top: -1px; background: linear-gradient(180deg, rgba(11, 31, 75, 0), rgba(11, 31, 75, .0)); }
.stats__grid {
    transform: translateY(-0px);
    background: var(--paper); border-radius: var(--radius-l); box-shadow: var(--shadow-l);
    display: grid; grid-template-columns: repeat(4, 1fr);
    padding: 30px clamp(20px, 4vw, 48px); margin-top: clamp(-52px, -4vw, -40px);
    position: relative; z-index: 3;
}
.stat { text-align: center; padding: 8px 12px; position: relative; }
.stat + .stat::before { content: ""; position: absolute; left: 0; top: 18%; height: 64%; width: 1px; background: var(--ink-100); }
.stat b { display: block; font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 900; color: var(--blue-700); letter-spacing: -.02em; }
.stat b i { font-style: normal; color: var(--amber-500); }
.stat span { font-size: .86rem; color: var(--ink-500); font-weight: 600; }

/* ==========================================================================
   4. Cards & sections
   ========================================================================== */
.grid { display: grid; gap: 26px; }
.grid--5 { grid-template-columns: repeat(5, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
    background: var(--paper); border: 1px solid var(--ink-100); border-radius: var(--radius-m);
    padding: 28px 24px; box-shadow: var(--shadow-s);
    transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
    position: relative; overflow: hidden;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-l); border-color: var(--blue-100); }
.card__icon {
    width: 56px; height: 56px; border-radius: 16px; margin-bottom: 18px;
    display: grid; place-items: center; color: var(--blue-700);
    background: linear-gradient(135deg, var(--blue-50), var(--blue-100));
    transition: all .35s var(--ease);
}
.card:hover .card__icon { background: linear-gradient(135deg, var(--blue-700), var(--blue-900)); color: var(--amber-500); transform: scale(1.06) rotate(-4deg); }
.card h3 { margin-bottom: 8px; font-size: 1.12rem; }
.card p { font-size: .92rem; color: var(--ink-500); margin: 0 0 14px; }
.card__link { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; font-size: .88rem; color: var(--blue-700); }
.card__link .icon { width: 15px; height: 15px; transition: transform .25s var(--ease); }
.card:hover .card__link .icon { transform: translateX(5px); }
.card::after {
    content: ""; position: absolute; inset: auto 0 0 0; height: 3px;
    background: linear-gradient(90deg, var(--blue-700), var(--amber-500));
    transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease);
}
.card:hover::after { transform: scaleX(1); }

/* Product card with image area */
.pcard { padding: 0; display: flex; flex-direction: column; }
.pcard__media {
    aspect-ratio: 16 / 10; position: relative; overflow: hidden;
    background: linear-gradient(135deg, var(--blue-700), var(--blue-900));
    display: grid; place-items: center; color: rgba(255, 255, 255, .85);
}
.pcard__media .icon { width: 52px; height: 52px; opacity: .9; transition: transform .5s var(--ease); }
.pcard:hover .pcard__media .icon { transform: scale(1.15); }
.pcard__media::after {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(400px 200px at 80% 0%, rgba(245, 158, 11, .25), transparent 60%);
}
.pcard__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pcard__body { padding: 22px 22px 26px; display: flex; flex-direction: column; flex: 1; }
.pcard__body h3 { font-size: 1.05rem; }
.pcard__body .card__link { margin-top: auto; }

/* Why us */
.why { position: relative; }
.why .card { text-align: left; }
.why .card__num {
    position: absolute; top: 18px; right: 20px; font-size: 2.6rem; font-weight: 900;
    color: var(--blue-50); line-height: 1; transition: color .35s var(--ease);
}
.why .card:hover .card__num { color: var(--blue-100); }

/* OEM timeline */
.timeline { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; counter-reset: step; }
.tstep { position: relative; padding: 26px 18px 22px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--radius-m); color: var(--blue-100); backdrop-filter: blur(4px); transition: all .35s var(--ease); }
.tstep:hover { background: rgba(255, 255, 255, .12); transform: translateY(-5px); }
.tstep::before {
    counter-increment: step; content: "0" counter(step);
    display: inline-grid; place-items: center; width: 46px; height: 46px; margin-bottom: 14px;
    border-radius: 14px; font-weight: 900; font-size: 1.05rem;
    background: linear-gradient(135deg, var(--amber-500), var(--amber-600)); color: var(--blue-900);
    box-shadow: 0 8px 20px rgba(245, 158, 11, .35);
}
.tstep h3 { color: #fff; font-size: 1.02rem; margin-bottom: 6px; }
.tstep p { font-size: .85rem; color: var(--blue-100); margin: 0; opacity: .85; }

/* Trust wall */
.trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.trust__badge {
    display: inline-flex; align-items: center; gap: 10px; padding: 13px 24px;
    background: var(--paper); border: 1.5px dashed var(--ink-300); border-radius: 999px;
    font-weight: 800; font-size: .95rem; color: var(--ink-700); letter-spacing: .04em;
    transition: all .3s var(--ease);
}
.trust__badge:hover { border-color: var(--amber-500); color: var(--blue-700); transform: translateY(-3px); box-shadow: var(--shadow-m); }
.trust__badge .icon { width: 18px; height: 18px; color: var(--amber-600); }

/* About split */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.split__media {
    border-radius: var(--radius-l); overflow: hidden; position: relative; min-height: 340px;
    background: linear-gradient(135deg, var(--blue-700), var(--blue-900));
    box-shadow: var(--shadow-l); display: grid; place-items: center;
}
.split__media::before {
    content: ""; position: absolute; inset: 0;
    background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
    background-size: 40px 40px;
}
.split__media .icon { width: 84px; height: 84px; color: rgba(255, 255, 255, .9); position: relative; }
.split__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.split__media .float-badge {
    position: absolute; bottom: 22px; left: 22px; z-index: 2;
    background: rgba(255, 255, 255, .96); color: var(--blue-900); border-radius: 14px;
    padding: 12px 20px; font-weight: 800; font-size: .9rem; box-shadow: var(--shadow-m);
    display: flex; align-items: center; gap: 10px;
}
.float-badge .icon { width: 20px; height: 20px; color: var(--amber-600); }
.checklist { display: grid; gap: 14px; margin: 24px 0 30px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; color: var(--ink-700); }
.checklist .icon { width: 22px; height: 22px; flex: none; color: var(--paper); background: var(--blue-700); border-radius: 50%; padding: 4px; margin-top: 2px; }

/* Blog cards */
.bcard { padding: 0; display: flex; flex-direction: column; }
.bcard__media { aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--blue-100), var(--blue-50)); overflow: hidden; position: relative; }
.bcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.bcard:hover .bcard__media img { transform: scale(1.06); }
.bcard__media .placeholder { position: absolute; inset: 0; display: grid; place-items: center; color: var(--blue-700); }
.bcard__body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.bcard__date { font-size: .78rem; font-weight: 700; color: var(--amber-600); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 8px; }
.bcard__body h3 { font-size: 1.05rem; line-height: 1.4; }
.bcard__body h3 a { color: var(--ink-900); }
.bcard__body h3 a:hover { color: var(--blue-700); }
.bcard__body p { font-size: .9rem; color: var(--ink-500); flex: 1; }

/* CTA band */
.cta-band { text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: var(--blue-100); max-width: 560px; margin: 0 auto 32px; }
.cta-band .hero__actions { justify-content: center; margin-bottom: 0; }

/* ==========================================================================
   5. Footer
   ========================================================================== */
.site-footer { background: var(--blue-900); color: var(--blue-100); }
.footer-grid {
    display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: clamp(28px, 4vw, 56px);
    padding: clamp(48px, 6vw, 80px) 0 40px;
}
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 18px; letter-spacing: .02em; }
.site-footer a { color: var(--blue-100); font-size: .92rem; }
.site-footer a:hover { color: var(--amber-500); }
.footer-menu li { margin-bottom: 10px; }
.footer-brand p { font-size: .9rem; opacity: .8; margin: 14px 0 18px; max-width: 300px; }
.footer-contact li { display: flex; gap: 12px; margin-bottom: 14px; font-size: .9rem; align-items: flex-start; }
.footer-contact .icon { width: 17px; height: 17px; flex: none; color: var(--amber-500); margin-top: 3px; }
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .12); padding: 22px 0;
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px;
    font-size: .82rem; opacity: .75;
}

/* WhatsApp float */
.wa-float {
    position: fixed; right: 22px; bottom: 22px; z-index: 90;
    width: 58px; height: 58px; border-radius: 50%;
    background: #25d366; color: #fff; display: grid; place-items: center;
    box-shadow: 0 10px 28px rgba(37, 211, 102, .45);
    transition: transform .3s var(--ease), box-shadow .3s var(--ease);
    animation: wa-breathe 3s infinite;
}
.wa-float:hover { transform: scale(1.1); color: #fff; }
.wa-float svg { width: 30px; height: 30px; }
@keyframes wa-breathe { 50% { box-shadow: 0 10px 28px rgba(37, 211, 102, .45), 0 0 0 14px rgba(37, 211, 102, 0); } }

/* ==========================================================================
   6. Inquiry modal & forms
   ========================================================================== */
.modal {
    position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px;
    background: rgba(11, 31, 75, .6); backdrop-filter: blur(6px);
    opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility .3s;
}
.modal.open { opacity: 1; visibility: visible; }
.modal__box {
    width: min(560px, 100%); max-height: 90vh; overflow: auto;
    background: var(--paper); border-radius: var(--radius-l); padding: clamp(26px, 4vw, 40px);
    transform: translateY(24px) scale(.97); transition: transform .35s var(--ease);
    box-shadow: var(--shadow-l); position: relative;
}
.modal.open .modal__box { transform: none; }
.modal__close {
    position: absolute; top: 16px; right: 16px; width: 38px; height: 38px;
    border: 0; border-radius: 50%; background: var(--paper-2); cursor: pointer;
    font-size: 1.15rem; color: var(--ink-500); transition: all .25s var(--ease);
}
.modal__close:hover { background: var(--ink-100); color: var(--ink-900); transform: rotate(90deg); }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-weight: 700; font-size: .86rem; color: var(--ink-900); margin-bottom: 7px; }
.field label em { color: #dc2626; font-style: normal; }
.field input, .field select, .field textarea {
    width: 100%; padding: 13px 16px; border-radius: 10px;
    border: 1.5px solid var(--ink-100); background: var(--paper-2);
    transition: border-color .25s var(--ease), box-shadow .25s var(--ease), background .25s;
    outline: none; font-size: .95rem;
}
.field input:focus, .field select:focus, .field textarea:focus {
    border-color: var(--blue-700); background: var(--paper);
    box-shadow: 0 0 0 4px rgba(30, 58, 138, .12);
}
.field textarea { min-height: 110px; resize: vertical; }
.field .hp { position: absolute; left: -9999px; opacity: 0; height: 0; }
.form-status { margin-top: 14px; font-weight: 600; font-size: .92rem; display: none; }
.form-status.ok { display: block; color: #15803d; }
.form-status.err { display: block; color: #b91c1c; }

/* ==========================================================================
   7. Inner pages
   ========================================================================== */
.page-hero { background: linear-gradient(135deg, var(--blue-900), var(--blue-700)); color: #fff; padding: clamp(48px, 7vw, 88px) 0; position: relative; overflow: hidden; }
.page-hero::before {
    content: ""; position: absolute; inset: 0; opacity: .3;
    background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 80% 90% at 50% 0%, #000, transparent 70%);
}
.page-hero .container { position: relative; }
.page-hero h1 { color: #fff; margin-bottom: 10px; font-size: clamp(1.8rem, 3.6vw, 2.8rem); }
.page-hero p { color: var(--blue-100); max-width: 640px; margin: 0; }
.breadcrumb { font-size: .82rem; color: var(--blue-100); margin-bottom: 14px; opacity: .85; }
.breadcrumb a { color: #fff; font-weight: 600; }

.content-area { padding: clamp(44px, 6vw, 80px) 0; }
.entry-content { max-width: 820px; }
.entry-content > * { margin-bottom: 1.15em; }
.entry-content h2 { margin-top: 1.6em; padding-top: .3em; }
.entry-content h3 { margin-top: 1.4em; }
.entry-content ul, .entry-content ol { padding-left: 1.4em; list-style: disc; }
.entry-content ol { list-style: decimal; }
.entry-content li { margin-bottom: .5em; }
.entry-content blockquote {
    margin: 1.6em 0; padding: 18px 26px; border-left: 4px solid var(--amber-500);
    background: var(--blue-50); border-radius: 0 var(--radius-m) var(--radius-m) 0;
    font-size: 1.05rem; color: var(--ink-700);
}
.entry-content img { border-radius: var(--radius-m); }

.post-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .84rem; color: var(--ink-500); margin-bottom: 26px; }
.posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 44px; }
.pagination .page-numbers {
    min-width: 42px; height: 42px; display: inline-grid; place-items: center;
    border-radius: 10px; background: var(--paper-2); font-weight: 700; color: var(--ink-700);
    padding: 0 12px;
}
.pagination .page-numbers.current { background: var(--blue-700); color: #fff; }
.pagination .page-numbers:hover:not(.current) { background: var(--blue-50); color: var(--blue-700); }

/* Search form */
.search-form { display: flex; gap: 10px; max-width: 460px; }
.search-form input { flex: 1; padding: 13px 18px; border-radius: 999px; border: 1.5px solid var(--ink-100); outline: none; }
.search-form input:focus { border-color: var(--blue-700); }
.search-form button { border: 0; border-radius: 999px; padding: 13px 26px; background: var(--blue-700); color: #fff; font-weight: 700; cursor: pointer; }

/* 404 */
.error-404 { text-align: center; padding: clamp(60px, 10vw, 120px) 0; }
.error-404 .code { font-size: clamp(4rem, 12vw, 7rem); font-weight: 900; color: var(--blue-100); line-height: 1; margin-bottom: 10px; }

/* Comments */
.comments-area { max-width: 820px; margin-top: 56px; padding-top: 36px; border-top: 1px solid var(--ink-100); }
.comment-list { display: grid; gap: 20px; margin: 26px 0; }
.comment-body { background: var(--paper-2); border-radius: var(--radius-m); padding: 20px 24px; }
.comment-meta { font-size: .82rem; color: var(--ink-500); margin-bottom: 8px; }
.comment-reply-title, .comments-title { font-size: 1.2rem; }
.comment-form { display: grid; gap: 14px; }
.comment-form input:not([type=submit]), .comment-form textarea {
    padding: 12px 16px; border: 1.5px solid var(--ink-100); border-radius: 10px; background: var(--paper-2); outline: none; width: 100%;
}
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--blue-700); background: #fff; }
.comment-form .submit { border: 0; border-radius: 999px; padding: 13px 30px; background: var(--blue-700); color: #fff; font-weight: 700; cursor: pointer; justify-self: start; }

/* ==========================================================================
   8. Scroll reveal
   ========================================================================== */
html.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    html { scroll-behavior: auto; }
    * { animation: none !important; }
}

/* ==========================================================================
   9. Responsive
   ========================================================================== */
@media (max-width: 1080px) {
    .grid--5 { grid-template-columns: repeat(3, 1fr); }
    .grid--4 { grid-template-columns: repeat(2, 1fr); }
    .timeline { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
    .nav-toggle { display: block; }
    .site-nav {
        position: fixed; inset: 0; z-index: 110;
        background: linear-gradient(160deg, var(--blue-900), var(--blue-700));
        display: grid; place-items: center;
        opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility .35s;
    }
    body.nav-open .site-nav { opacity: 1; visibility: visible; }
    .nav-menu { flex-direction: column; gap: 6px; text-align: center; }
    .nav-menu > li > a { color: #fff; font-size: 1.35rem; padding: 12px 30px; }
    .nav-menu > li > a:hover { background: rgba(255, 255, 255, .12); color: var(--amber-500); }
    .header-cta { margin: 18px 0 0; }
    .header-cta .btn { font-size: 1.05rem; padding: 14px 30px; }
    .topbar__contact .topbar-mail { display: none; }
    .split { grid-template-columns: 1fr; }
    .split__media { min-height: 260px; order: -1; }
    .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 10px 0; }
    .stat:nth-child(3)::before { display: none; }
    .posts-grid { grid-template-columns: 1fr 1fr; }
    .grid--5 { grid-template-columns: repeat(2, 1fr); }
    .grid--3 { grid-template-columns: 1fr 1fr; }
    .timeline { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
    body { font-size: 15.5px; }
    .grid--5, .grid--4, .grid--3, .grid--2, .posts-grid { grid-template-columns: 1fr; }
    .timeline { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .form-grid { grid-template-columns: 1fr; }
    .hero__actions .btn { width: 100%; }
    .stats__grid { padding: 22px 16px; }
    .footer-bottom { justify-content: center; text-align: center; }
    .topbar__contact { display: none; }
    .topbar .container { justify-content: center; }
}
