/* ============================================================
   FiveFour Tech — light theme (original look, polished)
   ============================================================ */

:root {
    --blue: #2f5fc0;
    --blue-dark: #244c9c;
    --header-1: #4a7bd0;
    --header-2: #34589f;
    --ink: #1f2733;
    --muted: #5b6573;
    --line: #e3e7ee;
    --bg: #ffffff;
    --bg-soft: #f5f7fb;
    --max: 1080px;
    --radius: 12px;
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); text-decoration: underline; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header {
    background: linear-gradient(135deg, var(--header-1), var(--header-2));
    color: #fff;
}
.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px 0;
    max-width: var(--max);
    margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 16px; color: #fff; }
.brand:hover { text-decoration: none; }
.brand img {
    width: 64px; height: 64px; border-radius: 50%;
    background: #fff; padding: 6px; box-shadow: 0 2px 8px rgba(0,0,0,.18);
}
.brand .brand-name { font-size: 34px; font-weight: 800; letter-spacing: -0.01em; color: #fff; }

.nav-toggle {
    display: none; background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.4);
    color: #fff; font-size: 20px; border-radius: 9px; padding: 6px 12px; cursor: pointer;
}

nav.main-nav { max-width: var(--max); margin: 0 auto; padding: 14px 24px 20px; }
.nav-links { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.nav-links a {
    display: inline-block;
    background: rgba(255,255,255,.92);
    color: #243043;
    font-weight: 700;
    font-size: 15px;
    padding: 9px 20px;
    border-radius: 999px;
    transition: background .15s ease, transform .12s ease;
}
.nav-links a:hover { background: #fff; transform: translateY(-1px); text-decoration: none; }
.nav-links a.active { background: #0e2a57; color: #fff; }

/* ---------- Subtitle bar ---------- */
.subtitle-bar {
    background: var(--bg-soft);
    border-bottom: 1px solid var(--line);
}
.subtitle-bar .wrap { padding: 16px 24px; font-weight: 800; font-size: 18px; color: var(--ink); letter-spacing: -0.01em; }

/* ---------- Sections ---------- */
.section { padding: 48px 0; }
.section.soft { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
h2.heading { font-size: 26px; font-weight: 800; letter-spacing: -0.01em; margin-bottom: 6px; }
.kicker { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); margin-bottom: 8px; }
.sub { color: var(--muted); font-size: 16px; margin-bottom: 26px; max-width: 700px; }

/* ---------- Home two-column ---------- */
.split { display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; align-items: start; }
.split aside { display: flex; flex-direction: column; gap: 16px; }
.split aside .frame { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #000; aspect-ratio: 4 / 3; }
.split aside .frame img { width: 100%; height: 100%; object-fit: cover; }

article h2 { font-size: 26px; font-weight: 800; margin-bottom: 12px; letter-spacing: -0.01em; }
article p { margin-bottom: 14px; color: #313a47; }
article ul.services { list-style: none; margin: 6px 0 18px; }
article ul.services li { padding: 7px 0 7px 26px; position: relative; }
article ul.services li::before {
    content: ""; position: absolute; left: 4px; top: 15px; width: 9px; height: 9px;
    border-radius: 2px; background: var(--blue);
}

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; text-align: center; }
.stat .num { font-size: 28px; font-weight: 800; color: var(--blue-dark); }
.stat .lbl { color: var(--muted); font-size: 13px; margin-top: 4px; }

/* ---------- Chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { background: #fff; border: 1px solid var(--line); color: #34404f; font-weight: 700; font-size: 14px; padding: 9px 16px; border-radius: 999px; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 22px; transition: box-shadow .15s ease, transform .12s ease, border-color .15s ease;
}
.card:hover { box-shadow: 0 8px 24px rgba(31,55,99,.08); transform: translateY(-2px); border-color: #cdd6e6; }
.card h3 { font-size: 18px; margin-bottom: 8px; letter-spacing: -0.01em; }
.card p { color: var(--muted); font-size: 14.5px; }
.card ul { list-style: none; margin-top: 10px; }
.card ul li { color: var(--muted); font-size: 14px; padding: 4px 0 4px 18px; position: relative; }
.card ul li::before { content: ""; position: absolute; left: 2px; top: 12px; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }

/* ---------- CTA ---------- */
.cta {
    background: linear-gradient(135deg, var(--header-1), var(--header-2));
    color: #fff; border-radius: 16px; padding: 40px; text-align: center;
}
.cta h2 { font-size: 26px; font-weight: 800; margin-bottom: 10px; color: #fff; }
.cta p { color: rgba(255,255,255,.9); font-size: 16px; margin-bottom: 22px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.btn { display: inline-block; font-weight: 700; font-size: 15px; padding: 12px 22px; border-radius: 10px; transition: transform .12s ease; }
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn-primary { background: #fff; color: var(--blue-dark); }
.btn-ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.6); }
.btn-ghost:hover { background: rgba(255,255,255,.12); }

/* ---------- Footer ---------- */
.site-footer { background: #0e2a57; color: #c7d4ec; padding: 36px 0 30px; }
.site-footer a { color: #fff; }
.site-footer .ft-name { font-weight: 800; color: #fff; font-size: 18px; margin-bottom: 8px; }
.site-footer p { font-size: 14px; }
.ft-bottom { margin-top: 22px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.15); font-size: 12px; color: #8ea4cb; }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .stats { grid-template-columns: repeat(2, 1fr); }
    .split { grid-template-columns: 1fr; }
    .split aside { flex-direction: row; }
}
@media (max-width: 680px) {
    .brand .brand-name { font-size: 26px; }
    .brand img { width: 52px; height: 52px; }
    .nav-toggle { display: block; }
    nav.main-nav { padding: 0 24px 16px; }
    .nav-links { display: none; flex-direction: column; align-items: stretch; }
    .nav-links.open { display: flex; }
    .nav-links a { text-align: center; }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .split aside { flex-direction: column; }
    .cta { padding: 30px 20px; }
}
