/* ============================================
   CHARGED SERVICES - SHARED STYLES
   Common styles loaded on every page.
   ============================================ */

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
    --bg-dark: #111111;
    --bg-panel: #1a1a1a;
    --bg-card: #1f1f1f;
    --bg-card-hover: #262626;
    --border: rgba(255,255,255,0.07);
    --border-hover: rgba(201,0,0,0.3);

    --accent: #C90000;
    --accent-bright: #e01010;
    --accent-glow: rgba(201,0,0,0.1);
    --accent-glow-strong: rgba(201,0,0,0.22);
    --highlight: #bee900;
    --highlight-glow: rgba(190,233,0,0.12);

    --text: #ffffff;
    --text-secondary: #d6d6d6;
    --text-muted: #777777;

    /* Inverted (light) section colours */
    --bg-light: #ffffff;
    --bg-light-card: #f4f4f4;
    --text-dark: #111111;
    --text-dark-secondary: #444444;
    --text-dark-muted: #d9d9d9;
    --border-light: rgba(0,0,0,0.08);

    --display: 'Zen Tokyo Zoo', 'Outfit', sans-serif;
    --body: 'Outfit', system-ui, sans-serif;

    --max-w: 1180px;
    --radius: 12px;
    --radius-lg: 20px;
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
    font-family: var(--body);
    background: var(--bg-dark);
    color: var(--text);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }
.container { max-width: var(--max-w); margin: 0 auto; }
section { padding: clamp(80px, 12vh, 140px) 40px; }

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    padding: 0 40px; height: 72px;
    display: flex; align-items: center; justify-content: space-between;
    background: rgba(17,17,17,0.8);
    -webkit-backdrop-filter: blur(20px) saturate(1.4);
    backdrop-filter: blur(20px) saturate(1.4);
    border-bottom: 1px solid var(--border);
    transition: all 0.35s;
}
.nav.scrolled { background: rgba(17,17,17,0.95); }
.nav-brand {
    display: flex; align-items: center; gap: 12px;
    font-weight: 700; font-size: 1.15rem; letter-spacing: -0.01em;
}
.nav-brand .bolt {
    width: 36px; height: 36px; background: var(--accent);
    border-radius: 8px; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 0 20px var(--accent-glow-strong); transition: box-shadow 0.3s;
}
.nav-brand:hover .bolt { box-shadow: 0 0 30px var(--accent-glow-strong), 0 0 60px var(--accent-glow); }
.nav-brand .bolt svg { width: 18px; height: 18px; }
.nav-brand-text span { color: var(--highlight); }
.nav-menu { display: flex; align-items: center; gap: 32px; }
.nav-menu a {
    font-size: 0.88rem; font-weight: 400; color: var(--text-secondary);
    letter-spacing: 0.01em; position: relative; transition: color 0.25s;
}
.nav-menu a::after {
    content: ''; position: absolute; bottom: -4px; left: 0;
    width: 0; height: 1.5px; background: var(--accent);
    transition: width 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.nav-menu a:hover { color: var(--text); }
.nav-menu a:hover::after { width: 100%; }
.nav-cta {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 22px; background: var(--accent); color: #fff;
    font-size: 0.85rem; font-weight: 600; border-radius: 100px;
    border: none; cursor: pointer; transition: transform 0.2s, box-shadow 0.2s;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 24px var(--accent-glow-strong); }
.nav-cta svg { width: 14px; height: 14px; }
.nav-store a {
    font-size: 0.88rem; font-weight: 400; color: var(--text-dark-secondary);
    letter-spacing: 0.01em; position: relative; transition: color 0.25s;
}
.nav-store {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 22px; background: var(--highlight); color: #353535 !important;
    font-size: 0.85rem; font-weight: 600; border-radius: 100px;
    border: none; cursor: pointer; transition: transform 0.2s, box-shadow 0.2s;
}
.nav-store:hover { transform: translateY(-1px); box-shadow: 0 6px 24px var(--highlight-glow); }
.nav-store svg { width: 14px; height: 14px; }

/* Mobile menu */
.mobile-toggle {
    display: none; background: none; border: none; cursor: pointer;
    width: 32px; height: 32px; flex-direction: column;
    justify-content: center; align-items: center; gap: 5px;
}
.mobile-toggle span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: 0.3s; }
.mobile-overlay {
    display: none; position: fixed; inset: 0; z-index: 999;
    background: rgba(17,17,17,0.97); flex-direction: column;
    align-items: center; justify-content: center; gap: 28px;
}
.mobile-overlay.open { display: flex; }
.mobile-overlay a { font-size: 1.4rem; font-weight: 500; color: var(--text-secondary); transition: color 0.2s; }
.mobile-overlay a:hover { color: var(--highlight); }
.mobile-close { position: absolute; top: 24px; right: 32px; background: none; border: none; cursor: pointer; color: var(--text); font-size: 2rem; line-height: 1; }

/* ============================================
   SHARED TYPOGRAPHY
   ============================================ */
.section-eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: 0.68rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.2em;
    color: var(--highlight); margin-bottom: 16px;
}
.section-eyebrow::before { content: ''; width: 28px; height: 1.5px; background: var(--highlight); }
.section-heading {
    font-family: var(--display);
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 400; line-height: 1.15; letter-spacing: -0.02em;
    font-style: italic;
}
.section-heading em { font-style: italic; font-weight: 400; color: var(--highlight); }
.section-sub {
    margin-top: 16px; font-size: 1rem;
    color: var(--text-secondary); max-width: 520px; line-height: 1.75; font-weight: 300;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 15px 30px; font-size: 0.9rem; font-weight: 600;
    border-radius: 100px; border: none; cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, background 0.25s;
}
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-highlight { background: var(--highlight); color: #353535 !important; }
.btn-accent:hover { transform: translateY(-2px); box-shadow: 0 8px 32px var(--accent-glow-strong); }
.btn-highlight:hover { transform: translateY(-2px); box-shadow: 0 8px 32px var(--highlight-glow); }
.btn-outline { background: transparent; color: var(--text); border: 1px solid rgba(255,255,255,0.12); }
.btn-outline:hover { border-color: var(--accent); background: var(--accent-glow); }
/* Dark-on-light button variants */
.btn-accent-on-light { background: var(--accent); color: #fff; }
.btn-accent-on-light:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(201,0,0,0.2); }
.btn-outline-on-light { background: transparent; color: var(--text-dark); border: 1px solid rgba(0,0,0,0.15); }
.btn-outline-on-light:hover { border-color: var(--accent); background: rgba(201,0,0,0.04); }

/* ============================================
   PROJECTS CAROUSEL
   ============================================ */
.projects { background: var(--bg-panel); border-top: 1px solid var(--border); }
.project-card {
    flex: 0 0 calc(33.333% - 11px);
    scroll-snap-align: start;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}
.project-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.25);
}
.project-img {
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: rgba(255,255,255,0.03);
}
.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}
.project-card:hover .project-img img {
    transform: scale(1.04);
}
.project-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    border-bottom: 1px dashed rgba(255,255,255,0.08);
}
.project-body {
    padding: 24px 24px 28px;
}
.project-body h3 {
    font-size: 1.05rem;
    font-weight: 500;
    margin-bottom: 8px;
}
.project-body p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.7;
    font-weight: 300;
}
.project-location {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--highlight);
}
.project-location::before {
    content: '';
    width: 4px;
    height: 4px;
    background: var(--accent);
    border-radius: 50%;
}
.projects-cta {
    margin-top: 40px;
    text-align: center;
}
.projects-cta .link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--highlight);
    transition: gap 0.25s;
}
.projects-cta .link-arrow:hover { gap: 14px; }
.projects-cta .link-arrow svg { width: 16px; height: 16px; }

/* ============================================
   FOOTER
   ============================================ */
.footer { padding: 56px 40px 36px; border-top: 1px solid var(--border); }
.footer-grid {
    max-width: var(--max-w); margin: 0 auto;
    display: grid; grid-template-columns: 2.2fr 1fr 1fr 1.5fr; gap: 48px;
}
.footer-brand .nav-brand { font-size: 1.05rem; }
.footer-brand > p {
    margin-top: 14px; font-size: 0.84rem;
    color: var(--text-secondary); line-height: 1.7;
    max-width: 280px; font-weight: 300;
}
.footer-col h4 {
    font-size: 0.68rem; text-transform: uppercase;
    letter-spacing: 0.16em; color: var(--text-muted);
    margin-bottom: 18px; font-weight: 600;
}
.footer-col a, .footer-col p {
    display: block; font-size: 0.88rem;
    color: var(--text-secondary); padding: 4px 0;
    transition: color 0.2s; font-weight: 300;
}
.footer-col a:hover { color: var(--highlight); }
.footer-bottom {
    max-width: var(--max-w); margin: 40px auto 0;
    padding-top: 20px; border-top: 1px solid var(--border);
    display: flex; justify-content: space-between; align-items: center;
    font-size: 0.78rem; color: var(--text-muted);
}

/* ============================================
   SCROLL REVEAL
   ============================================ */
.reveal {
    opacity: 0; transform: translateY(28px);
    transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.vis { opacity: 1; transform: translateY(0); }
.s1 { transition-delay: 0.08s; }
.s2 { transition-delay: 0.16s; }
.s3 { transition-delay: 0.24s; }
.s4 { transition-delay: 0.32s; }

/* ============================================
   RESPONSIVE - SHARED
   ============================================ */
@media (max-width: 860px) {
    .nav { padding: 0 24px; }
    .nav-menu { display: none; }
    .mobile-toggle { display: flex; }
    section { padding: clamp(64px, 10vh, 100px) 24px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 560px) {
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
}
