*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --red:       #8B1C1C;
    --red-dark:  #741616;
    --red-light: #FAF0EF;
    --bg:        #F9F5F4;
    --white:     #ffffff;
    --text:      #1a1a1a;
    --muted:     #6B6060;
    --border:    #E8DEDD;
    --radius:    14px;
    --shadow:    0 4px 28px rgba(139,28,28,.08);
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

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

/* ── Navbar ──────────────────────────────────────────────────────────────── */
.navbar {
    position: sticky; top: 0; z-index: 100;
    background: var(--red);
}

.nav-inner {
    display: flex; align-items: center; justify-content: space-between;
    height: 68px;
}

/* Logo */
.logo {
    display: flex; align-items: center; gap: 10px;
    text-decoration: none;
}
.logo-spiral { width: 36px; height: 36px; flex-shrink: 0; object-fit: contain; }
.logo-words  { display: flex; flex-direction: column; line-height: 1.1; }
.logo-bbm    { font-family: 'Inter', sans-serif; font-weight: 800; font-size: 18px; color: #fff; letter-spacing: .5px; }
.logo-sub    { font-size: 10px; font-weight: 500; color: rgba(255,255,255,.6); letter-spacing: 1.5px; text-transform: uppercase; }

/* Nav links */
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
    text-decoration: none; color: rgba(255,255,255,.88);
    font-size: 14px; font-weight: 500;
    transition: color .15s;
}
.nav-links a:hover { color: #fff; }
.nav-btn-outline {
    border: 1.5px solid rgba(255,255,255,.55) !important;
    border-radius: 999px !important;
    padding: 7px 20px !important;
    transition: background .15s, border-color .15s !important;
}
.nav-btn-outline:hover {
    background: rgba(255,255,255,.12) !important;
    border-color: rgba(255,255,255,.9) !important;
    color: #fff !important;
}

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero {
    position: relative; overflow: hidden;
    background: var(--white);
    padding: 90px 0 100px;
    border-bottom: 1px solid var(--border);
}

.hero-inner { position: relative; z-index: 2; max-width: 640px; }

.eyebrow {
    display: inline-block;
    background: var(--red-light);
    color: var(--red);
    border: 1px solid #E8C8C8;
    font-size: 12px; font-weight: 600; letter-spacing: .8px;
    text-transform: uppercase;
    padding: 5px 14px; border-radius: 999px;
    margin-bottom: 28px;
}

.hero h1 {
    font-family: 'Lora', Georgia, serif;
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--text);
    margin-bottom: 22px;
}

.hero-sub {
    font-size: 1.05rem;
    color: var(--muted);
    line-height: 1.75;
    max-width: 520px;
}

/* decorative right-side shape */
.hero-shape {
    position: absolute; right: -60px; top: 0; bottom: 0;
    width: 420px;
    background: linear-gradient(135deg, var(--red-light) 0%, transparent 70%);
    border-left: 1px solid #F0DADA;
    clip-path: polygon(12% 0%, 100% 0%, 100% 100%, 0% 100%);
    z-index: 1;
}

/* ── Portal cards ────────────────────────────────────────────────────────── */
.portals { padding: 72px 0 80px; }

.portals-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.portal-card {
    display: flex; flex-direction: column;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px 32px 28px;
    text-decoration: none; color: inherit;
    transition: transform .2s, box-shadow .2s, border-color .2s;
    box-shadow: var(--shadow);
}
.portal-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(139,28,28,.13);
    border-color: #D8BABA;
}

.portal-icon { margin-bottom: 24px; }
.portal-icon svg { width: 48px; height: 48px; }

.portal-body { flex: 1; }
.portal-body h2 {
    font-family: 'Lora', Georgia, serif;
    font-size: 1.5rem; font-weight: 700;
    color: var(--text);
    margin-bottom: 10px;
}
.portal-body p {
    font-size: .95rem; color: var(--muted); line-height: 1.7;
    margin-bottom: 20px;
}

.portal-features {
    list-style: none; display: flex; flex-direction: column; gap: 7px;
    margin-bottom: 28px;
}
.portal-features li {
    font-size: .88rem; color: #555;
    display: flex; align-items: center; gap: 8px;
}
.portal-features li::before {
    content: '';
    display: inline-block;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--red);
    flex-shrink: 0;
}

.portal-footer { border-top: 1px solid var(--border); padding-top: 20px; }

.portal-link {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: .9rem; font-weight: 600;
    color: var(--red);
    transition: gap .15s;
}
.portal-card:hover .portal-link { gap: 10px; }
.portal-link .arrow { font-size: 1rem; transition: transform .15s; }
.portal-card:hover .arrow { transform: translateX(3px); }

/* ── About strip ─────────────────────────────────────────────────────────── */
.about-strip {
    background: var(--red);
    padding: 40px 0;
}

.about-strip-inner {
    display: flex; align-items: center; justify-content: center;
    gap: 0; flex-wrap: wrap;
}

.strip-item {
    display: flex; flex-direction: column; align-items: center;
    padding: 0 48px; gap: 4px;
}
.strip-num  { font-size: 1.6rem; font-weight: 800; color: #fff; }
.strip-label { font-size: .78rem; font-weight: 500; color: rgba(255,255,255,.7); letter-spacing: .4px; text-align: center; }

.strip-divider {
    width: 1px; height: 44px;
    background: rgba(255,255,255,.25);
}

/* ── Footer ──────────────────────────────────────────────────────────────── */
.footer {
    background: var(--white);
    border-top: 1px solid var(--border);
    padding: 32px 0;
}

.footer-inner {
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 16px;
}

.logo--footer .logo-spiral { width: 28px; height: 28px; object-fit: contain; }
.logo--footer .logo-bbm    { font-size: 16px; }

.footer-copy { font-size: .85rem; color: var(--muted); }

.footer-site {
    font-size: .85rem; color: var(--red);
    text-decoration: none; font-weight: 500;
}
.footer-site:hover { text-decoration: underline; }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .portals-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 2rem; }
    .hero-shape { display: none; }
    .nav-links { gap: 14px; }
    .nav-links a { font-size: 13px; }
    .strip-item { padding: 12px 24px; }
    .footer-inner { flex-direction: column; text-align: center; align-items: center; }
    .about-strip-inner { flex-direction: row; justify-content: center; }
}

@media (max-width: 480px) {
    .nav-links { display: none; }
    .portals { padding: 40px 0 48px; }
    .portal-card { padding: 28px 22px 22px; }
}
