/* ============================================================
   HallWeb — style.css
   Palette: near-white bg, dark navy text, indigo accent
   Font: Inter (body) + Space Grotesk (headings/display)
   ============================================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg:         #F5F7FF;
    --surface:    #FFFFFF;
    --border:     #E0E4F0;
    --text:       #0F1629;
    --muted:      #5A6380;
    --accent:     #3B5BDB;
    --accent-dk:  #2F4AC4;
    --accent-lt:  #EEF2FF;
    --accent-mid: #C5CFF8;
    --radius:     10px;
    --max-w:      1080px;
    --font-body:  'Inter', system-ui, sans-serif;
    --font-disp:  'Space Grotesk', system-ui, sans-serif;
    --trans:      0.2s ease;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; transition: opacity var(--trans); }
a:hover { opacity: 0.78; }
img { display: block; max-width: 100%; }

/* ---------- Layout ---------- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section--sm { padding: 56px 0; }

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(245, 247, 255, 0.93);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

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

.site-logo {
    font-family: var(--font-disp);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.01em;
}

.logo-hall { color: var(--text); }
.logo-web  { color: var(--accent); }

.site-nav { display: flex; align-items: center; gap: 28px; }

.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--muted);
    transition: color var(--trans);
    letter-spacing: 0.01em;
}
.nav-link:hover { color: var(--text); opacity: 1; }
.nav-link.active { color: var(--text); }
.nav-link.active { border-bottom: 2px solid var(--accent); padding-bottom: 2px; }

.nav-cta {
    background: var(--accent);
    color: #fff !important;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 8px 20px;
    border-radius: var(--radius);
    transition: background var(--trans);
    opacity: 1 !important;
}
.nav-cta:hover { background: var(--accent-dk); opacity: 1 !important; }

/* Hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; }

/* ---------- Hero ---------- */
.hero {
    padding: 100px 0 88px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -120px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59,91,219,0.08) 0%, transparent 70%);
    pointer-events: none;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    background: var(--accent-lt);
    border: 1px solid var(--accent-mid);
    padding: 5px 14px;
    border-radius: 100px;
    margin-bottom: 28px;
}

.hero-title {
    font-family: var(--font-disp);
    font-size: clamp(2.6rem, 5.5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--text);
    max-width: 720px;
    margin-bottom: 24px;
}

.hero-title .accent { color: var(--accent); }

.hero-sub {
    font-size: 1.1rem;
    color: var(--muted);
    max-width: 540px;
    line-height: 1.8;
    margin-bottom: 44px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    padding: 13px 28px;
    border-radius: var(--radius);
    font-family: var(--font-disp);
    font-size: 0.9rem;
    font-weight: 600;
    transition: all var(--trans);
    border: 2px solid transparent;
    cursor: pointer;
    letter-spacing: 0.01em;
}

.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-dk); border-color: var(--accent-dk); opacity: 1; color: #fff; }

.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--text); opacity: 1; color: var(--text); }

.btn-outline { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn-outline:hover { background: var(--accent); color: #fff; opacity: 1; }

/* ---------- Section headings ---------- */
.section-eyebrow {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 12px;
}

.section-title {
    font-family: var(--font-disp);
    font-size: clamp(1.7rem, 3.2vw, 2.5rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--text);
    margin-bottom: 16px;
}

.section-body {
    font-size: 1rem;
    color: var(--muted);
    max-width: 560px;
    line-height: 1.8;
}

/* ---------- Services ---------- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 56px;
}

.service-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px 30px;
    transition: box-shadow var(--trans), transform var(--trans), border-color var(--trans);
}
.service-card:hover {
    box-shadow: 0 12px 40px rgba(59,91,219,0.1);
    transform: translateY(-3px);
    border-color: var(--accent-mid);
}

.service-icon {
    width: 48px;
    height: 48px;
    background: var(--accent-lt);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 20px;
}

.service-title {
    font-family: var(--font-disp);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

.service-body {
    font-size: 0.875rem;
    color: var(--muted);
    line-height: 1.75;
}

/* ---------- Stats strip ---------- */
.stats-strip {
    background: var(--text);
    padding: 56px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: rgba(255,255,255,0.08);
}

.stat-item {
    padding: 32px 40px;
    background: var(--text);
}

.stat-number {
    font-family: var(--font-disp);
    font-size: 2.8rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.03em;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-number .stat-accent { color: var(--accent); }

.stat-label {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.55);
    letter-spacing: 0.02em;
}

/* ---------- Featured block (home) ---------- */
.featured-block {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px;
    margin-top: 40px;
}

.featured-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 32px;
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
}

.featured-body {
    font-size: 1rem;
    color: var(--muted);
    line-height: 1.85;
    margin-top: 12px;
    max-width: 640px;
}

.featured-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: flex-start;
    padding-top: 4px;
    flex-shrink: 0;
}

.ftag {
    font-size: 0.75rem;
    font-weight: 500;
    background: var(--accent-lt);
    color: var(--accent);
    border: 1px solid var(--accent-mid);
    padding: 4px 12px;
    border-radius: 100px;
}

.featured-highlights {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border);
}

.fhighlight {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: var(--bg);
    border-radius: 8px;
    padding: 16px;
}

.fh-icon { font-size: 1.4rem; }

.fh-text {
    font-size: 0.82rem;
    color: var(--muted);
    line-height: 1.5;
}

.featured-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* ---------- Stack grid (home skills) ---------- */
.stack-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 48px;
}

.stack-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 28px;
    transition: box-shadow var(--trans), border-color var(--trans);
}
.stack-card:hover {
    box-shadow: 0 8px 32px rgba(59,91,219,0.08);
    border-color: var(--accent-mid);
}

/* ---------- Open to work strip ---------- */
.open-strip {
    background: var(--accent-lt);
    border-top: 1px solid var(--accent-mid);
    border-bottom: 1px solid var(--accent-mid);
}

.open-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.open-title {
    font-family: var(--font-disp);
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text);
    margin-bottom: 8px;
}

.open-body {
    font-size: 0.9rem;
    color: var(--muted);
    max-width: 480px;
    line-height: 1.7;
}

/* ---------- Portfolio cards ---------- */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 56px;
}

.portfolio-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px;
    transition: box-shadow var(--trans), transform var(--trans);
    display: flex;
    flex-direction: column;
}
.portfolio-card:hover {
    box-shadow: 0 12px 40px rgba(59,91,219,0.09);
    transform: translateY(-3px);
}

.portfolio-card--featured {
    grid-column: span 2;
    background: var(--text);
    border-color: transparent;
    color: #fff;
}

.portfolio-card-tag {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 10px;
}
.portfolio-card--featured .portfolio-card-tag { color: var(--accent-mid); }

.portfolio-card-title {
    font-family: var(--font-disp);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text);
    margin-bottom: 14px;
    line-height: 1.2;
}
.portfolio-card--featured .portfolio-card-title { color: #fff; font-size: 1.8rem; }

.portfolio-card-body {
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.75;
    margin-bottom: 28px;
    flex: 1;
}
.portfolio-card--featured .portfolio-card-body { color: rgba(255,255,255,0.65); }

.portfolio-card-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
}

.feature-tag {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 4px 12px;
    border-radius: 100px;
    background: var(--accent-lt);
    color: var(--accent);
}
.portfolio-card--featured .feature-tag {
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.85);
}

.portfolio-card-links { display: flex; gap: 12px; flex-wrap: wrap; margin-top: auto; }

.port-link {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--accent);
    border: 1.5px solid var(--accent);
    border-radius: 7px;
    padding: 7px 16px;
    transition: all var(--trans);
}
.port-link:hover { background: var(--accent); color: #fff; opacity: 1; }

.port-link-secondary {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--muted);
    border: 1.5px solid var(--border);
    border-radius: 7px;
    padding: 7px 16px;
    transition: all var(--trans);
}
.port-link-secondary:hover { border-color: var(--muted); color: var(--text); opacity: 1; }

.portfolio-card--featured .port-link {
    border-color: rgba(255,255,255,0.4);
    color: #fff;
}
.portfolio-card--featured .port-link:hover { background: #fff; color: var(--accent); opacity: 1; }

.portfolio-card--featured .port-link-secondary {
    border-color: rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.6);
}

/* ---------- About page ---------- */
.about-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 64px;
    align-items: start;
}

.about-content p {
    color: var(--muted);
    margin-bottom: 20px;
    line-height: 1.85;
    font-size: 1.025rem;
}
.about-content p:last-child { margin-bottom: 0; }

.stack-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
}

.stack-box h3 {
    font-family: var(--font-disp);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 20px;
}

.stack-group { margin-bottom: 22px; }
.stack-group:last-child { margin-bottom: 0; }

.stack-label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 8px;
}

.stack-tags { display: flex; flex-wrap: wrap; gap: 7px; }

.stack-tag {
    font-size: 0.78rem;
    font-weight: 500;
    background: var(--accent-lt);
    color: var(--accent);
    padding: 4px 11px;
    border-radius: 100px;
    border: 1px solid var(--accent-mid);
}

/* ---------- Contact page ---------- */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.contact-info p {
    font-size: 1rem;
    color: var(--muted);
    line-height: 1.8;
    margin-bottom: 16px;
}

.contact-email-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--accent);
    color: #fff;
    border-radius: var(--radius);
    padding: 15px 30px;
    font-family: var(--font-disp);
    font-size: 0.95rem;
    font-weight: 600;
    margin-top: 8px;
    transition: background var(--trans);
}
.contact-email-btn:hover { background: var(--accent-dk); opacity: 1; color: #fff; }

.contact-note {
    font-size: 0.8rem;
    color: var(--muted);
    margin-top: 12px;
}

.contact-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px;
}
.contact-box h3 {
    font-family: var(--font-disp);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 24px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}
.contact-item:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }

.contact-item-icon { font-size: 1.2rem; flex-shrink: 0; margin-top: 2px; }

.contact-item-label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 2px;
}

.contact-item-value { font-size: 0.875rem; color: var(--muted); line-height: 1.6; }

/* ---------- Page header ---------- */
.page-header {
    padding: 80px 0 64px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 80px;
}

/* ---------- CTA strip ---------- */
.cta-strip {
    background: var(--accent);
    padding: 72px 0;
    text-align: center;
}

.cta-strip h2 {
    font-family: var(--font-disp);
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.02em;
    margin-bottom: 14px;
}

.cta-strip p {
    color: rgba(255,255,255,0.75);
    font-size: 1rem;
    margin-bottom: 36px;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.75;
}

.btn-white {
    background: #fff;
    color: var(--accent);
    border-color: #fff;
}
.btn-white:hover { background: rgba(255,255,255,0.9); opacity: 1; color: var(--accent); }

/* ---------- Divider ---------- */
.divider { border: none; border-top: 1px solid var(--border); }

/* ---------- Footer ---------- */
.site-footer {
    background: var(--text);
    padding: 56px 0 32px;
}

.footer-top {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 48px;
    align-items: start;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 28px;
}

.footer-logo { font-size: 1.2rem; }
.footer-tagline { font-size: 0.8rem; color: rgba(255,255,255,0.45); margin-top: 6px; }

.footer-nav, .footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.footer-nav a, .footer-links a {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.55);
    transition: color var(--trans);
}
.footer-nav a:hover, .footer-links a:hover { color: #fff; opacity: 1; }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.footer-bottom p { font-size: 0.78rem; color: rgba(255,255,255,0.35); }
.footer-credit { color: rgba(255,255,255,0.35); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .services-grid { grid-template-columns: 1fr 1fr; }
    .stats-grid { grid-template-columns: 1fr; gap: 0; }
    .portfolio-grid { grid-template-columns: 1fr; }
    .portfolio-card--featured { grid-column: span 1; }
    .about-layout, .contact-layout { grid-template-columns: 1fr; gap: 40px; }
    .footer-top { grid-template-columns: 1fr 1fr; }
    .featured-highlights { grid-template-columns: repeat(2, 1fr); }
    .stack-grid { grid-template-columns: 1fr 1fr; }
    .open-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 600px) {
    .nav-toggle { display: flex; }
    .site-nav {
        display: none;
        position: absolute;
        top: 66px; left: 0; right: 0;
        background: var(--bg);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        align-items: flex-start;
        padding: 16px 24px 24px;
        gap: 0;
    }
    .site-nav.open { display: flex; }
    .site-nav .nav-link, .site-nav .nav-cta {
        padding: 12px 0;
        border-bottom: 1px solid var(--border);
        width: 100%;
        border-radius: 0;
    }
    .site-nav .nav-link:last-of-type { border-bottom: none; }
    .site-nav .nav-cta { background: none; color: var(--accent) !important; }
    .site-header { position: relative; }

    .services-grid, .stack-grid, .featured-highlights { grid-template-columns: 1fr; }
    .section { padding: 56px 0; }
    .hero { padding: 64px 0 56px; }
    .hero-actions { flex-direction: column; }
    .btn { text-align: center; }
    .page-header { padding: 56px 0 40px; margin-bottom: 48px; }
    .footer-top { grid-template-columns: 1fr; gap: 28px; }
    .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
    .stat-item { padding: 28px 24px; }
}
