/* ─────────────────────────────────────────────────────────────
   site.css — Aion New Media shared styles
   Loaded on every page via _Layout.cshtml.

   Contains:
   1. Site chrome — nav, footer, go-to-top, terms modal
      (moved here from _Layout.cshtml — unchanged, static CSS)
   2. Shared page components — reused across 2+ pages, previously
      duplicated per-page with a page-prefixed class name
      (e.g. .btn-pf-primary, .btn-sv-primary, .btn-ab-primary
      all merged into one .btn-primary here)

   Page-specific CSS (hero sections, grids, unique layouts) stays
   in each page's own <style> block — only genuinely shared rules
   live here.
   ───────────────────────────────────────────────────────────── */

/* ─── Base reset ───
   Browsers apply a default `body { margin: 8px; }` via their
   user-agent stylesheet — override it to 0 so the layout controls
   spacing instead. */
body {
    margin: 0;
}

/* ─── New Navigation ─── */
.site-nav-wrap {
    position: sticky;
    top: 0;
    z-index: 1000;
}
.site-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(9,25,41,0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(19,181,207,0.10);
    height: 62px;
    padding: 0 32px;
    gap: 24px;
}
.site-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.site-logo img {
    display: block;
    height: 34px;
    width: auto;
}
.site-nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2px;
    margin: 0;
    padding: 0;
}
.site-nav li a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 8px 18px;
    text-decoration: none;
    font-family: 'Quicksand', 'DM Sans', sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(240,244,247,0.55);
    transition: color 0.2s;
}
.site-nav li a:hover { color: rgba(240,244,247,0.90); }
.site-nav li.active a { color: #13b5cf; }
.nav-icon { font-size: 14px; line-height: 1; }

@media (max-width: 700px) {
    .site-nav-inner {
        flex-direction: column;
        height: auto;
        padding: 10px 16px 8px;
        gap: 8px;
    }
    .site-logo img { height: 26px; }
}
@media (max-width: 480px) {
    .site-nav li a {
        padding: 8px 10px;
        position: relative;
    }
    .nav-label {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0,0,0,0);
        white-space: nowrap;
        border: 0;
    }
}

/* ─── Footer ─── */
#footer {
    background: rgba(6,18,30,0.97);
    border-top: 1px solid rgba(19,181,207,0.15);
    font-family: 'DM Sans', 'Quicksand', sans-serif;
    font-size: 13px;
    line-height: 1.7;
}
.footer-inner {
    display: flex;
    gap: 48px;
    padding: 48px 8%;
    flex-wrap: wrap;
}
.footer-col-left { flex: 0 0 220px; }
.footer-col-right { flex: 1; min-width: 260px; }
.footer-logo { display: block; height: 32px; width: auto; margin-bottom: 20px; }
.footer-col-left address {
    font-style: normal;
    color: rgba(240,244,247,0.50);
    font-size: 13px;
    line-height: 1.75;
}
.footer-col-left a { color: #13b5cf; text-decoration: none; }
.footer-col-left a:hover { color: #20c5e0; }
.footer-text p {
    font-size: 13px;
    color: rgba(240,244,247,0.40);
    line-height: 1.75;
    margin-bottom: 10px;
}
.footer-text p:last-child { margin-bottom: 0; }
#copyrights {
    border-top: 1px solid rgba(19,181,207,0.10);
    padding: 16px 8%;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
a.Afooter {
    font-size: 12px;
    color: rgba(240,244,247,0.35);
    text-decoration: none;
}
a.Afooter:hover { color: #13b5cf; }
.AR { font-size: 12px; color: rgba(240,244,247,0.25); }

.footer-cta {
    display: inline-block;
    margin-top: 18px;
}
.footer-col-nav {
    flex: 0 0 140px;
}
.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.footer-nav a {
    font-family: 'DM Sans', 'Quicksand', sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(240,244,247,0.45);
    text-decoration: none;
}
.footer-nav a:hover { color: #13b5cf; }

/* ─── Go to top ─── */
#gotoTop {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 40px;
    height: 40px;
    background: rgba(12,119,163,0.85);
    color: #f0f4f7;
    font-size: 22px;
    line-height: 40px;
    text-align: center;
    cursor: pointer;
    z-index: 999;
    display: none;
    transition: background 0.2s;
    user-select: none;
}
#gotoTop:hover { background: #13b5cf; }

/* ─── Terms Modal ─── */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(6,18,30,0.90);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 32px;
}
.modal-overlay.is-open { display: flex; }
.modal-box {
    background: #0d2237;
    border: 1px solid rgba(19,181,207,0.20);
    max-width: 720px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    padding: 40px 48px;
    position: relative;
    font-family: 'DM Sans', 'Quicksand', sans-serif;
    color: rgba(240,244,247,0.68);
    font-size: 13px;
    line-height: 1.75;
}
.modal-box h3 {
    color: #f0f4f7;
    font-size: 17px;
    letter-spacing: 0.08em;
    margin: 0 0 20px;
}
.modal-box h2 {
    color: #f0f4f7;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin: 20px 0 8px;
}
.modal-box p { margin-bottom: 12px; }
.modal-close {
    position: absolute;
    top: 14px;
    right: 18px;
    background: none;
    border: none;
    color: rgba(240,244,247,0.45);
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
    padding: 4px 8px;
    font-family: sans-serif;
}
.modal-close:hover { color: #f0f4f7; }

/* ─────────────────────────────────────────────────────────────
   Shared page components
   Used on Portfolio, Website Development, Carbon Neutral Hosting
   and About Aion (Index has its own larger hero-* treatment,
   left in place as it isn't shared with any other page).
   Add class="theme-green" alongside these for the Carbon Neutral
   Hosting page's green accent variant.
   ───────────────────────────────────────────────────────────── */

/* Shared entrance animation — was duplicated 4x as pfFadeUp /
   svFadeUp / etFadeUp / abFadeUp with identical from/to values. */
@keyframes pageFadeUp {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Small label above a page/section heading, e.g. "OUR WORK" */
.page-eyebrow {
    font-family: 'DM Sans', 'Quicksand', sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #13b5cf;
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}
.page-eyebrow::before {
    content: '';
    display: block;
    width: 26px;
    height: 1px;
    background: #13b5cf;
    flex-shrink: 0;
}
.page-eyebrow.theme-green { color: #2ecf7a; }
.page-eyebrow.theme-green::before { background: #2ecf7a; }

/* Page header H1 */
.page-h1 {
    font-family: 'DM Sans', 'Quicksand', sans-serif;
    font-size: clamp(36px, 4.8vw, 62px);
    font-weight: 200;
    line-height: 1.06;
    letter-spacing: -0.03em;
    color: #f0f4f7;
    margin: 0 0 12px;
}

/* Gradient "accent" text treatment — used inside page-h1, the
   homepage's hero-h1, and in-body section headings. Generalised
   into a standalone utility rather than scoped to one parent. */
.accent {
    background: linear-gradient(90deg, #0c77a3, #20c5e0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 500;
}
.accent.theme-green {
    background: linear-gradient(90deg, #1a9e5a, #2ecf7a);
    -webkit-background-clip: text;
    background-clip: text;
}

.page-tagline {
    font-family: 'DM Sans', 'Quicksand', sans-serif;
    font-size: 17px;
    font-weight: 300;
    font-style: italic;
    color: rgba(240,244,247,0.48);
    margin: 0;
}

/* CTA banner section near the bottom of each page */
.cta-banner {
    padding: 64px 8%;
    background: rgba(12,119,163,0.14);
    border-top: 1px solid rgba(19,181,207,0.16);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
}
.cta-banner.theme-green {
    background: rgba(26,158,90,0.14);
    border-top-color: rgba(46,207,122,0.18);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}
@media (max-width: 640px) {
    .cta-banner { flex-direction: column; align-items: flex-start; }
}
.cta-h {
    font-family: 'DM Sans', 'Quicksand', sans-serif;
    font-size: clamp(20px, 2.2vw, 30px);
    font-weight: 200;
    letter-spacing: -0.02em;
    color: #f0f4f7;
    margin: 0 0 8px;
}
.cta-p {
    font-family: 'DM Sans', 'Quicksand', sans-serif;
    font-size: 14px;
    color: rgba(240,244,247,0.50);
    margin: 0;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    font-family: 'DM Sans', 'Quicksand', sans-serif;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.06em;
    color: #f0f4f7;
    background: #0c77a3;
    padding: 15px 30px;
    text-decoration: none;
    transition: background 0.2s;
    white-space: nowrap;
    border: none;
}
.btn-primary:hover { background: #13b5cf; color: #f0f4f7; text-decoration: none; }
.btn-primary.theme-green { background: #1a9e5a; }
.btn-primary.theme-green:hover { background: #2ecf7a; color: #091929; }

.btn-secondary {
    display: inline-block;
    font-family: 'DM Sans', 'Quicksand', sans-serif;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.06em;
    color: rgba(240,244,247,0.70);
    border: 1px solid rgba(240,244,247,0.26);
    padding: 15px 30px;
    text-decoration: none;
    transition: border-color 0.2s, color 0.2s;
}
.btn-secondary:hover { border-color: rgba(240,244,247,0.62); color: #f0f4f7; text-decoration: none; }
