/* ── Local fonts ──────────────────────────────────────────── */
@font-face {
    font-family: 'YoureGone';
    src: url('/assets/fonts/YoureGone.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* ── Design tokens ────────────────────────────────────────── */
:root {
    --green:        #1A8C00;
    --green-dark:   #004d00;
    --green-light:  #00BB00;
    --gold:         #F0B060;
    --gold-light:   #F8CC8A;
    --violet:       #C96AFF;
    --violet-dim:   rgba(201,106,255,0.16);
    --bg:           #071A00;
    --bg-surface:   #0E2E00;
    --bg-alt:       #163800;
    --text:         #E8F0E0;    /* warm white — body/description text    */
    --text-muted:   #7A9A78;    /* light green — secondary/meta text     */
    --border:       rgba(0,128,0,0.28);
    --border-gold:  rgba(240,176,96,0.50);

    --font-brand:   'Sarina', serif;
    --font-dba:     'YoureGone', 'Syncopate', sans-serif;
    --font-body:    'Chakra Petch', sans-serif;
    --nav-h:        64px;
}

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

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.75;
    color: var(--gold);         /* default text = gold */
    background: var(--bg);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-dba);
    color: var(--violet);
}

a { color: var(--gold); text-decoration: none; transition: color 0.2s; }
a:hover, a:focus-visible { color: var(--gold-light); }

/* ── Accessibility ────────────────────────────────────────── */
.skip-link {
    position: absolute; top: -40px; left: 0;
    background: var(--green); color: #fff;
    padding: 8px 16px; z-index: 9999; font-size: 0.85rem;
    border-radius: 0 0 4px 0; transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* ── Navbar — minimalist, links only ─────────────────────── */
.navbar {
    position: fixed; top: 0; width: 100%; z-index: 1000;
    height: var(--nav-h);
    padding: 0.5rem 0;
    background-color: rgba(7,26,0,0.10) !important;
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid transparent;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}
.navbar.scrolled {
    background-color: rgba(7,26,0,0.96) !important;
    border-bottom-color: var(--border);
}

.navbar-toggler { border-color: rgba(0,128,0,0.38); }
.navbar-toggler-icon { filter: invert(0.65) sepia(1) hue-rotate(80deg); }

.nav-link {
    font-family: var(--font-body);
    font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--text) !important;
    position: relative; padding-bottom: 4px;
    transition: color 0.2s ease;
}
.nav-link::after {
    content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
    width: 0; height: 2px; background: var(--gold); transition: width 0.25s ease;
}
.nav-link:hover, .nav-link.active       { color: var(--gold) !important; }
.nav-link:hover::after, .nav-link.active::after { width: 80%; }
.nav-link:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }

/* ── Buttons ──────────────────────────────────────────────── */
.btn-aloha {
    font-family: var(--font-body);
    font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,0.07);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    border: 2px solid var(--gold); color: var(--gold);
    padding: 0.75rem 2.2rem; border-radius: 50px;
    transition: background 0.25s, color 0.25s, border-color 0.25s;
    cursor: pointer; text-decoration: none !important; white-space: nowrap;
}
.btn-aloha:hover, .btn-aloha:focus-visible {
    background: var(--gold) !important; color: var(--bg) !important;
    border-color: var(--gold) !important; outline: none; backdrop-filter: none;
    text-decoration: none !important;
}

/* ── Hero ─────────────────────────────────────────────────── */
#hero {
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    text-align: center;
    position: relative;
    background: linear-gradient(155deg, #071A00 0%, #0D3300 45%, #071A00 100%);
    padding: calc(var(--nav-h) + 1.5rem) 1.5rem 3rem;
    overflow: hidden;
}
#hero::before {
    content: ''; position: absolute;
    width: 700px; height: 700px;
    background: radial-gradient(circle, rgba(0,100,0,0.13) 0%, transparent 68%);
    top: 50%; left: 50%; transform: translate(-50%,-50%);
    pointer-events: none;
}

/* Canvas container: fixed aspect-ratio box — NEVER changes size */
.hero-logo-container {
    position: relative;
    /* Size: largest square that leaves room for button + padding */
    width: min(640px, min(88vw, calc(100svh - 200px)));
    aspect-ratio: 1 / 1;
    flex-shrink: 0;
    z-index: 1;
}

#hero-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
}

/* ── Section layout ───────────────────────────────────────── */
section { padding: 5rem 0; }

.section-rule {
    width: 40px; height: 3px; background: var(--green);
    margin: 0 auto 0.65rem; border-radius: 2px;
}
.section-title {
    font-family: var(--font-dba);
    font-size: clamp(1.5rem, 3.5vw, 2.2rem);
    color: var(--violet);
    text-align: center; margin-bottom: 0.35rem; line-height: 1.2;
}
.section-sub {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-muted);
    text-align: center; margin-bottom: 2.5rem;
    letter-spacing: 0.12em; text-transform: uppercase;
}

/* ── Banners ──────────────────────────────────────────────── */
.intro-banner {
    background: rgba(240,176,96,0.07); border: 1.5px solid var(--border-gold);
    border-radius: 10px; padding: 1rem 1.5rem;
    max-width: 780px; margin: 0 auto 2rem;
    display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
    justify-content: center; text-align: center;
}
.intro-banner .fa { font-size: 1.3rem; color: var(--gold); flex-shrink: 0; }
.intro-banner p   { font-size: 0.95rem; color: var(--gold-light); letter-spacing: 0.06em; margin: 0; line-height: 1.75; }
.intro-banner strong { color: var(--gold); }

.alacarte-note {
    background: rgba(201,106,255,0.06); border: 1px solid rgba(201,106,255,0.22);
    border-radius: 8px; padding: 0.75rem 1.25rem;
    max-width: 680px; margin: 0 auto 1.5rem; text-align: center;
}
.alacarte-note p { font-size: 0.95rem; color: rgba(201,106,255,0.85); letter-spacing: 0.06em; margin: 0; line-height: 1.7; }

.philosophy-note {
    background: rgba(26,140,0,0.07); border: 1px solid rgba(26,140,0,0.25);
    border-radius: 8px; padding: 0.75rem 1.25rem;
    max-width: 680px; margin: 0 auto 2.5rem; text-align: center;
}
.philosophy-note p { font-size: 0.95rem; color: var(--text-muted); letter-spacing: 0.06em; margin: 0; line-height: 1.75; }
.philosophy-note strong { color: var(--green-light); }

/* ── Services sticky sub-nav ──────────────────────────────── */
.sticky-nav {
    position: sticky;
    top: var(--nav-h);
    z-index: 900;
    background: rgba(7,26,0,0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    padding: 0.55rem 0;
    margin-bottom: 2.5rem;
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.sticky-nav a {
    font-family: var(--font-body);
    font-size: 0.72rem; font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase; letter-spacing: 0.08em;
    text-decoration: none;
    padding: 0.3rem 0.9rem;
    border-radius: 4px;
    transition: color 0.2s, background 0.2s;
}
.sticky-nav a:hover, .sticky-nav a.active {
    color: var(--gold);
    background: rgba(240,176,96,0.1);
}

/* ── DBA section headers ──────────────────────────────────── */
.dba-section { max-width: 900px; margin: 0 auto 3.5rem; }

.dba-title {
    font-family: var(--font-dba);
    font-size: clamp(1.4rem, 2.5vw, 1.9rem);
    color: var(--violet);
    margin-bottom: 0.35rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.5rem;
}
.dba-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 1.4rem;
}
.sub-dba-title {
    font-family: var(--font-dba);
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    color: var(--violet);
    margin: 0 0 1.2rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px dashed var(--border);
}

/* ── Service cards (accordion) ────────────────────────────── */
.single-card {
    background: var(--bg-surface);
    border: 1.5px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 2px 14px rgba(0,0,0,0.28);
    padding: 1.1rem 1.35rem;
    margin-bottom: 0.65rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    cursor: pointer;
    opacity: 0; transform: translateY(14px);
    transition: background 0.22s, border-color 0.22s, box-shadow 0.22s,
                opacity 0.35s ease, transform 0.35s ease;
}
.single-card.visible  { opacity: 1; transform: translateY(0); }
.single-card:hover    { background: var(--bg-alt); border-color: var(--border-gold); box-shadow: 0 5px 22px rgba(240,176,96,0.08); }

.card-header {
    display: flex; align-items: center; gap: 1rem;
    position: relative;
}
.card-icon {
    width: 38px; height: 38px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    background: rgba(0,128,0,0.1); border-radius: 8px; color: var(--green-light);
}
.card-icon .fa { font-size: 1.15rem; }
.card-title {
    font-family: var(--font-body);
    font-size: 1.05rem; font-weight: 700; color: var(--gold); margin: 0;
}
.card-meta {
    font-size: 0.75rem; font-weight: 700; color: var(--green-light);
    letter-spacing: 0.08em; text-transform: uppercase; display: block; margin-top: 0.15rem;
}

/* Card body: hidden by default, revealed via accordion */
.card-body {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text);    /* warm white — legible on dark bg */
    line-height: 1.75;
    margin: 0;
    max-height: 0; overflow: hidden; opacity: 0;
    transition: max-height 0.38s ease, opacity 0.38s ease, margin-top 0.28s ease;
}
.single-card.expanded .card-body {
    max-height: 600px; opacity: 1; margin-top: 0.6rem;
}

.expand-indicator {
    position: absolute; right: 0; top: 50%; transform: translateY(-50%);
    color: var(--gold); font-size: 0.8rem;
    transition: transform 0.3s;
}
.single-card.expanded .expand-indicator {
    transform: translateY(-50%) rotate(180deg);
}

.tag-row { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 0.65rem; }
.tag {
    font-family: var(--font-body);
    font-size: 0.65rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase;
    background: rgba(0,128,0,0.12); color: var(--green-light);
    border: 1px solid rgba(0,128,0,0.28); padding: 3px 8px; border-radius: 4px;
}

/* ── Portfolio ────────────────────────────────────────────── */
#portfolio { background: linear-gradient(180deg, var(--bg) 0%, #0A2200 100%); }

/* Sub-section (mirrors services DBA layout) */
.port-section { margin-bottom: 3.5rem; max-width: 1100px; margin-inline: auto; }
.port-section:last-child { margin-bottom: 0; }

.port-section-title {
    font-family: var(--font-dba);
    font-size: clamp(1.1rem, 2.2vw, 1.55rem);
    color: var(--gold);          /* gold to distinguish from section-level violet */
    margin-bottom: 1.1rem;
    padding-bottom: 0.45rem;
    border-bottom: 1px solid var(--border);
}

/* Gallery grid — consistent card sizes within each sub-section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
}

.gallery-card {
    background: var(--bg-surface); border: 1.5px solid var(--border);
    border-radius: 10px; overflow: hidden; cursor: pointer;
    user-select: none; -webkit-user-select: none;
    opacity: 0; transform: translateY(10px);
    transition: background 0.22s, border-color 0.22s, box-shadow 0.22s,
                opacity 0.35s ease, transform 0.35s ease;
}
.gallery-card.visible { opacity: 1; transform: translateY(0); }
.gallery-card:hover   { background: var(--bg-alt); border-color: var(--border-gold); box-shadow: 0 4px 18px rgba(240,176,96,0.1); }

.gallery-img-wrap {
    position: relative; width: 100%; padding-top: 62%;
    overflow: hidden;
}
.gallery-img {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    transition: transform 0.5s ease;   /* smooth expand on hover */
}
/* Scale 1.2 on hover — image expands inside the fixed card */
.gallery-card:hover .gallery-img { transform: scale(1.2); }

.gallery-protect { position: absolute; inset: 0; z-index: 2; background: transparent; cursor: pointer; }

.gallery-caption { padding: 0.7rem 0.9rem; }
.gallery-title {
    font-family: var(--font-body);
    font-size: 0.95rem; font-weight: 700; color: var(--gold);
    display: block; margin-bottom: 3px;
}
.gallery-cat {
    font-family: var(--font-body);
    font-size: 0.65rem; font-weight: 700;
    letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted);
}

/* ── Lightbox ─────────────────────────────────────────────── */
/* Uses v-if — enters/leaves DOM cleanly */
.lightbox-overlay {
    position: fixed; inset: 0; z-index: 9999;
    background: rgba(0, 0, 0, 0.92);
    display: flex; align-items: center; justify-content: center;
    animation: lbFadeIn 0.22s ease forwards;
}
@keyframes lbFadeIn { from { opacity: 0; } to { opacity: 1; } }

.lightbox-img {
    max-width: 90vw; max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 0 60px rgba(0,0,0,0.8);
    animation: lbImgIn 0.28s ease forwards;
    pointer-events: none;
    user-select: none; -webkit-user-select: none;
}
@keyframes lbImgIn {
    from { transform: scale(0.90); opacity: 0; }
    to   { transform: scale(1);    opacity: 1; }
}

.lightbox-close {
    position: fixed; top: 1.25rem; right: 1.25rem;
    width: 46px; height: 46px;
    background: rgba(0,0,0,0.65);
    border: 1.5px solid var(--border-gold);
    border-radius: 50%;
    color: var(--gold); font-size: 1.5rem; line-height: 1;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; z-index: 10000;
    transition: background 0.2s, color 0.2s;
}
.lightbox-close:hover, .lightbox-close:focus-visible {
    background: var(--gold); color: var(--bg); outline: none;
}

/* ── About ────────────────────────────────────────────────── */
#about {
    background: var(--bg-surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.about-inner { max-width: 680px; margin: 0 auto; text-align: center; }
.about-logo  { height: 88px; width: 88px; object-fit: contain; margin: 0 auto 1.25rem; display: block; }
.about-name  { font-family: var(--font-dba); font-size: 1.5rem; color: var(--gold); margin-bottom: 5px; }
.about-role  { font-family: var(--font-body); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--green-light); margin-bottom: 1.35rem; }
.about-body  {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text);     /* warm white — not muted green */
    line-height: 1.95; margin-bottom: 1.35rem;
}

/* ── Contact / Platforms ──────────────────────────────────── */
#platforms { background: var(--bg); padding: 4rem 0; }

.platforms-heading {
    font-family: var(--font-dba);
    font-size: clamp(1.3rem, 3vw, 1.9rem);
    color: var(--violet);
    text-align: center; margin-bottom: 0.35rem;
}
.platforms-location {
    font-family: var(--font-body);
    font-size: 0.7rem; letter-spacing: 0.18em;
    color: rgba(0,200,0,0.5); text-align: center; margin-bottom: 2.5rem;
}
.platforms-grid {
    display: flex; flex-wrap: wrap; justify-content: center;
    gap: 14px; max-width: 820px; margin: 0 auto;
}

/* 100×100 icon tiles — name slides up on hover */
.platform-link {
    position: relative;
    width: 100px; height: 100px;
    display: flex; align-items: center; justify-content: center;
    background: var(--bg-surface); border: 1.5px solid var(--border);
    border-radius: 12px; text-decoration: none !important; overflow: hidden;
    transition: border-color 0.2s, background 0.2s;
}
.platform-link:hover { border-color: var(--gold); background: var(--bg-alt); }

.platform-icon {
    font-size: 2rem; color: var(--text-muted);
    transition: color 0.2s;
}
.platform-link:hover .platform-icon { color: var(--gold); }

.platform-name {
    position: absolute; bottom: 0; left: 0; width: 100%;
    background: var(--gold); color: var(--bg);
    font-family: var(--font-body); font-size: 0.58rem; font-weight: 700;
    text-align: center; padding: 4px 0;
    transform: translateY(100%); transition: transform 0.22s ease;
}
.platform-link:hover .platform-name { transform: translateY(0); }

/* ── Footer ───────────────────────────────────────────────── */
footer {
    background: rgba(0,0,0,0.45); border-top: 1px solid var(--border);
    padding: 2rem 0 1.5rem; text-align: center;
}
footer p      { font-family: var(--font-body); font-size: 1rem; color: var(--gold); letter-spacing: 0.06em; margin-bottom: 4px; }
footer a:hover{ color: var(--gold-light); }

/* ── Scroll-to-top ────────────────────────────────────────── */
.home-button {
    position: fixed; bottom: 28px; right: 28px; z-index: 999;
    background: var(--green); color: #fff; border: none;
    width: 48px; height: 48px; border-radius: 12px; cursor: pointer;
    box-shadow: 0 4px 16px rgba(0,0,0,0.45); font-size: 1.1rem;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none;
    transition: background 0.3s, transform 0.3s, opacity 0.3s;
}
.home-button.visible       { opacity: 1; pointer-events: auto; }
.home-button:hover,
.home-button:focus-visible { background: var(--gold); transform: translateY(-3px); outline: none; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 768px) {
    .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
    .single-card  { padding: 0.9rem 1rem; }
    .sticky-nav   { top: var(--nav-h); }
}
@media (max-width: 500px) {
    .sticky-nav   { flex-direction: column; align-items: center; }
    .sticky-nav a { width: 100%; max-width: 280px; text-align: center; }
    .platforms-grid { gap: 10px; }
    .platform-link { width: 88px; height: 88px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
