/*
  VxOSJ Design System
  ===================
  Shared visual language for all VxOSJ pages. Load this AFTER w3.css and
  ggapicss.css, and BEFORE font-awesome, so these rules can override w3.css
  defaults where needed.

  <link rel="stylesheet" href="./CSS/w3.css">
  <link rel="stylesheet" href="./CSS/ggapicss.css">
  <link rel="stylesheet" href="./CSS/vxosj-design-system.css">
  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">

  Color tokens (--brand-*)
    --brand-ink    #0f172a  primary text / dark surfaces
    --brand-blue   #1d4ed8  primary accent / links / buttons
    --brand-cyan   #38bdf8  secondary accent
    --brand-gold   #f59e0b  reserved highlight accent
    --brand-soft   #f8fbff  light page background
    --brand-muted  #516276  secondary/body copy on light backgrounds

  Typography: Lato (body + headings). Use w3.css text-size helpers
  (w3-large, w3-xlarge, etc.) rather than custom font-size where possible.

  Reusable components (class names to reuse on new pages):
    .nav-shell / .nav-inner / .nav-brand / .nav-links / .nav-link / .nav-cta
        Floating pill site header. Pair with the standard nav markup in
        index.html (includes a mobile .nav-mobile dropdown driven by
        toggleFunction()/#navDemo).
    .hero-shell / .hero-badge / .hero-subtitle
        Centered glass card used over a full-height parallax hero (bgimg-1).
    .section-label
        Small uppercase eyebrow label above a section heading.
    .section-card
        White rounded content card used for supporting copy blocks.
    .story-band / .story-content / .story-eyebrow / .story-lead /
    .story-chip-row / .story-chip / .story-cta
        Full-bleed cinematic project sections with a fixed background image.
        Use modifier classes .align-left / .align-right / .align-center to
        position the content card and add a unique id for anchor linking.
    .storyline-strip / .storyline-inner / .storyline-text
        Dark supporting panel for a secondary image + caption under a
        story-band.
    .quicknav-card / .quicknav-icon / .quicknav-title / .quicknav-desc /
    .quicknav-cta
        Compact link cards used for in-page "jump to a section" navigation.
    .site-footer / .footer-inner / .footer-brand / .footer-tagline /
    .footer-links / .footer-divider / .footer-fineprint
        Standard site footer. Keep hosting/legal credit inside
        .footer-fineprint so it stays understated.

  When adding a new page: link the three stylesheets above, reuse the
  header/footer markup from index.html verbatim, and build new sections
  with .section-label + .section-card or .story-band rather than inventing
  new one-off styles.
*/

:root {
    --brand-ink: #0f172a;
    --brand-blue: #1d4ed8;
    --brand-cyan: #38bdf8;
    --brand-gold: #f59e0b;
    --brand-soft: #f8fbff;
    --brand-muted: #516276;
}

body, h1, h2, h3, h4, h5, h6 {
    font-family: "Lato", sans-serif;
}

html {
    scroll-behavior: smooth;
}

body, html {
    height: 100%;
    color: var(--brand-ink);
    line-height: 1.8;
    background: linear-gradient(180deg, #f8fbff 0%, #eef4fb 100%);
}

/* Create a Parallax Effect */
.bgimg-1, .bgimg-2, .bgimg-3 {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.bgimg-1 { background-image: url('../VxImages/modern/hero-tour.jpg'); min-height: 100%; }
.bgimg-2 { background-image: url("../VxImages/modern/hero-joinus.jpg"); min-height: 400px; }
.bgimg-3 { background-image: url("../VxImages/modern/hero-contact.jpg"); min-height: 400px; }

.w3-wide { letter-spacing: 10px; }

.w3-hover-opacity {
    cursor: pointer;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.w3-hover-opacity:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* Navigation */
.nav-shell {
    padding: 14px 5vw 0;
    box-sizing: border-box;
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 999px;
    padding: 10px 14px 10px 20px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.1);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: var(--brand-ink);
    text-decoration: none;
    font-size: 1.05rem;
    white-space: nowrap;
}

.nav-brand svg { width: 22px; height: 22px; color: var(--brand-blue); }

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(245, 158, 11, 0.14);
    color: #b45309;
    border: 1px solid rgba(245, 158, 11, 0.35);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 999px;
    white-space: nowrap;
}

.status-pill::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--brand-gold);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.25);
}

.status-pill.on-dark {
    background: rgba(245, 158, 11, 0.16);
    color: #fde68a;
    border-color: rgba(245, 158, 11, 0.4);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
}

.nav-link {
    color: var(--brand-ink);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.92rem;
    padding: 9px 16px;
    border-radius: 999px;
    transition: background 0.2s ease, color 0.2s ease;
}

.nav-link:hover {
    background: rgba(29, 78, 216, 0.1);
    color: var(--brand-blue);
    text-decoration: none;
}

.nav-cta {
    background: var(--brand-ink);
    color: white !important;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.88rem;
    padding: 10px 20px;
    border-radius: 999px;
    white-space: nowrap;
    transition: background 0.2s ease, transform 0.2s ease;
}

.nav-cta:hover { background: var(--brand-blue); transform: translateY(-1px); }

.nav-toggle {
    margin-left: auto;
    color: var(--brand-ink);
    font-size: 1.2rem;
    padding: 6px 10px;
}

.nav-mobile {
    max-width: 1200px;
    margin: 8px auto 0;
    background: white;
    border-radius: 18px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.14);
    overflow: hidden;
}

.nav-mobile a {
    display: block;
    padding: 14px 22px;
    color: var(--brand-ink);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.nav-mobile a:last-child { border-bottom: none; }

.nav-mobile a:hover { background: rgba(29, 78, 216, 0.08); color: var(--brand-blue); }

.w3-button {
    transition: all 0.25s ease;
}

.w3-bar-item.w3-button:hover {
    background-color: var(--brand-blue) !important;
    color: white !important;
}

.w3-dark-grey {
    background: linear-gradient(90deg, #17324f 0%, #1f4e7d 100%) !important;
    color: white;
}

.w3-black {
    background: linear-gradient(180deg, #0f172a 0%, #14253d 100%) !important;
}

/* Hero */
.hero-shell {
    background: rgba(8, 15, 30, 0.72);
    color: white;
    padding: 24px 28px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.25);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

.hero-badge {
    letter-spacing: 0.3em;
    text-transform: uppercase;
    font-size: 0.8rem;
    color: #dbeafe;
    margin-bottom: 10px;
}

.hero-subtitle {
    font-size: 1.05rem;
    color: #e2e8f0;
    margin-top: 12px;
}

/* Content cards */
.section-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 12px 35px rgba(15, 23, 42, 0.08);
    padding: 24px;
    border: 1px solid rgba(148, 163, 184, 0.16);
}

.project-card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(148, 163, 184, 0.18);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    height: 100%;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.14);
}

.project-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.project-card .project-body {
    padding: 20px 22px 24px;
}

.project-card .project-pill {
    display: inline-block;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--brand-blue);
    font-weight: 700;
    margin-bottom: 8px;
}

.metric-card {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: 16px;
    padding: 18px;
    text-align: center;
    min-height: 120px;
}

.metric-card .metric-value {
    font-size: 1.6rem;
    font-weight: 700;
    display: block;
    margin-bottom: 6px;
}

.section-label {
    color: var(--brand-blue);
    letter-spacing: 0.24em;
    text-transform: uppercase;
    font-size: 0.76rem;
    font-weight: 700;
    margin-bottom: 6px;
}

/* Quick-nav cards */
.quicknav-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    height: 100%;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 16px;
    padding: 22px;
    color: white;
    text-decoration: none;
    box-sizing: border-box;
    transition: transform 0.25s ease, background 0.25s ease;
}

.quicknav-card:hover {
    transform: translateY(-3px);
    background: rgba(255,255,255,0.12);
    text-decoration: none;
    color: white;
}

.quicknav-icon svg { width: 28px; height: 28px; color: #93c5fd; }

.quicknav-title { font-weight: 700; font-size: 1.05rem; }

.quicknav-desc { color: #cbd5e1; font-size: 0.92rem; }

.quicknav-cta {
    margin-top: auto;
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #93c5fd;
    font-weight: 700;
}

/* Immersive full-bleed project story bands */
.story-band {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    padding: 80px 7vw;
}

.story-band.align-right { justify-content: flex-end; }
.story-band.align-center { justify-content: center; text-align: center; }

.story-content { color: white; max-width: 620px; }

.story-eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    font-size: 0.78rem;
    font-weight: 700;
    color: #93c5fd;
    margin-bottom: 18px;
}

.story-band.align-center .story-eyebrow { justify-content: center; }

.story-eyebrow svg { width: 22px; height: 22px; flex-shrink: 0; }

.story-content h2 { font-size: 2.5rem; margin: 0 0 16px; line-height: 1.2; }

.story-lead { font-size: 1.15rem; color: #e2e8f0; margin-bottom: 24px; }

.story-chip-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }

.story-band.align-right .story-chip-row,
.story-band.align-center .story-chip-row { justify-content: inherit; }

.story-chip {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.28);
    color: #fff;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 0.85rem;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.story-cta {
    display: inline-block;
    border-radius: 999px;
    font-weight: 700;
    padding: 12px 26px;
}

.storyline-strip {
    background: linear-gradient(180deg, #0f172a 0%, #132a4a 100%);
    padding: 56px 7vw;
    color: #e2e8f0;
}

.storyline-inner {
    max-width: 1100px;
    margin: auto;
    display: flex;
    gap: 36px;
    align-items: center;
    flex-wrap: wrap;
}

.storyline-inner img {
    width: 100%;
    max-width: 460px;
    border-radius: 18px;
    box-shadow: 0 20px 45px rgba(0,0,0,0.35);
}

.storyline-text { flex: 1; min-width: 260px; }

.storyline-text h4 { color: white; margin-top: 0; }

/* Footer */
.site-footer {
    background: linear-gradient(180deg, #0f172a 0%, #14253d 100%);
    color: #cbd5e1;
    padding: 80px 24px 48px;
    text-align: center;
}

.footer-inner {
    max-width: 720px;
    margin: 0 auto;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: 0.04em;
    color: white;
    text-decoration: none;
    margin-bottom: 20px;
}

.footer-brand svg { width: 22px; height: 22px; color: #93c5fd; }

.footer-tagline {
    color: #cbd5e1;
    font-size: 1rem;
    line-height: 1.7;
    margin: 0 0 32px;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 28px;
    margin-bottom: 36px;
}

.footer-links a {
    color: #e2e8f0;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.92rem;
}

.footer-links a:hover { color: #93c5fd; }

.footer-divider {
    height: 1px;
    background: rgba(255,255,255,0.12);
    max-width: 220px;
    margin: 0 auto 20px;
}

.footer-fineprint {
    font-size: 0.78rem;
    color: rgba(203,213,225,0.55);
    margin: 0;
}

.footer-fineprint a {
    color: rgba(203,213,225,0.7);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.footer-fineprint a:hover { color: #93c5fd; }

/* Image gallery loading state */
.loading-placeholder {
    background: #f0f0f0;
    height: 200px;
    width: 100%;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

.image-container {
    position: relative;
}

@media only screen and (max-width: 900px) {
    .story-band { justify-content: center !important; text-align: center; padding: 70px 24px; }
    .story-band .story-chip-row { justify-content: center !important; }
}

@media only screen and (max-device-width: 1024px) {
    .bgimg-1, .bgimg-2, .bgimg-3, .story-band {
        background-attachment: scroll;
    }
}
