/* ─── SHARED STYLES ─── */
/* Common CSS used across all pages */

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

:root {
    --navy: #0B1F3A;
    --teal: #1FA3A3;
    --cyan: #4FD1C5;
    --white: #FFFFFF;
    --grey: #6B7280;
    --light-bg: #F5F7FA;
    --border: #E5E7EB;
    --grad: linear-gradient(135deg, #0B1F3A, #1FA3A3);
}

html { scroll-behavior: smooth; }

body {
    font-family: 'IBM Plex Sans', sans-serif;
    background: var(--white);
    color: var(--navy);
    overflow-x: hidden;
}

/* ─── NAVIGATION ─── */
nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 0 48px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(11, 31, 58, 0.96);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(79, 209, 197, 0.15);
    transition: height 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.3s,
                background 0.35s;
}

/* ─── SCROLL-SHRINK STATE ─── */
nav.scrolled {
    height: 56px;
    background: rgba(11, 31, 58, 0.98);
    border-bottom-color: rgba(79, 209, 197, 0.22);
}

nav.scrolled .nav-logo img {
    height: 36px;
}

.nav-logo {
    text-decoration: none;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.nav-logo img {
    height: 48px;
    width: auto;
    display: block;
    transition: height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
    list-style: none;
}

.nav-links a {
    font-size: 13px;
    font-weight: 400;
    color: rgba(255,255,255,0.55);
    text-decoration: none;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: color 0.25s;
    cursor: pointer;
    font-family: 'IBM Plex Sans', sans-serif;
    position: relative;
    padding: 4px 0;
}

/* ─── ANIMATED UNDERLINE ─── */
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--cyan);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover { color: var(--cyan); }
.nav-links a.active { color: var(--cyan); }

/* ─── GRID ICON (WAFFLE) ─── */
.nav-more-wrap {
    position: relative;
    margin-left: 8px;
}

.nav-more-toggle {
    display: grid;
    grid-template-columns: repeat(2, 5px);
    grid-template-rows: repeat(2, 5px);
    gap: 3px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.nav-more-toggle span {
    width: 5px;
    height: 5px;
    border-radius: 1.5px;
    background: rgba(255,255,255,0.45);
    transition: background 0.2s, transform 0.2s;
}

.nav-more-toggle:hover span {
    background: var(--cyan);
}

.nav-more-toggle.active span {
    background: var(--cyan);
}

.nav-more-toggle.active span:nth-child(1) { transform: rotate(45deg); }
.nav-more-toggle.active span:nth-child(2) { transform: rotate(-45deg); }
.nav-more-toggle.active span:nth-child(3) { transform: rotate(-45deg); }
.nav-more-toggle.active span:nth-child(4) { transform: rotate(45deg); }

/* ─── MORE DROPDOWN MENU ─── */
.nav-more-menu {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    min-width: 220px;
    background: var(--navy);
    border: 1px solid rgba(79, 209, 197, 0.12);
    border-radius: 8px;
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    box-shadow: 0 16px 48px rgba(0,0,0,0.35), 0 4px 12px rgba(0,0,0,0.15);
    z-index: 200;
    list-style: none;
}

.nav-more-menu.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-more-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    font-size: 14px;
    font-weight: 400;
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
    text-transform: none;
    letter-spacing: 0.01em;
}

.nav-more-menu a:hover {
    color: var(--white);
    background: rgba(79,209,197,0.07);
}

.nav-more-menu a::after { display: none; }

.nav-more-menu .nav-icon {
    width: 18px;
    height: 18px;
    color: rgba(79,209,197,0.45);
    flex-shrink: 0;
    transition: color 0.2s;
}

.nav-more-menu a:hover .nav-icon {
    color: var(--cyan);
}

/* ─── SECTION UTILITIES ─── */
.section-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 48px;
}

.section-eyebrow {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    font-weight: 400;
    color: var(--teal);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.section-eyebrow::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 1px;
    background: var(--teal);
    flex-shrink: 0;
}

/* ─── PAGE HERO ─── */
.page-hero {
    background: var(--navy);
    padding: 160px 48px 72px;
    position: relative;
    overflow: hidden;
}

.page-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 70% 40%, rgba(31,163,163,0.06) 0%, transparent 60%),
                radial-gradient(ellipse at 20% 80%, rgba(79,209,197,0.04) 0%, transparent 50%);
    pointer-events: none;
}

.page-hero .section-eyebrow {
    color: rgba(79,209,197,0.75);
    position: relative;
    z-index: 1;
}

.page-hero .section-eyebrow::before {
    background: rgba(79,209,197,0.75);
}

.page-hero-headline {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 400;
    color: var(--white);
    line-height: 1.1;
    letter-spacing: -0.02em;
    max-width: 680px;
    position: relative;
    z-index: 1;
}

.page-hero-sub {
    font-size: 17px;
    font-weight: 300;
    color: rgba(255,255,255,0.6);
    line-height: 1.75;
    max-width: 520px;
    margin-top: 24px;
    position: relative;
    z-index: 1;
}

/* ─── CTA ─── */
.cta {
    padding: 160px 0;
    background: var(--grad);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.cta-noise {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4'%3E%3Crect width='1' height='1' x='0' y='0' fill='rgba(255,255,255,0.02)'/%3E%3Crect width='1' height='1' x='2' y='2' fill='rgba(255,255,255,0.02)'/%3E%3C/svg%3E");
    pointer-events: none;
}

.cta-headline {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(36px, 5.5vw, 76px);
    font-weight: 400;
    color: var(--white);
    line-height: 1.05;
    letter-spacing: -0.025em;
    margin-bottom: 24px;
    position: relative;
}

.cta-desc {
    font-size: 16px;
    font-weight: 300;
    color: rgba(255,255,255,0.65);
    max-width: 480px;
    margin: 0 auto 60px;
    line-height: 1.75;
    position: relative;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    position: relative;
}

.cta-btn-solid {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12px;
    font-weight: 500;
    color: var(--navy);
    background: var(--white);
    padding: 18px 44px;
    border: none;
    cursor: pointer;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.2s;
}

.cta-btn-solid:hover {
    background: var(--cyan);
    transform: translateY(-2px);
    box-shadow: 0 20px 48px rgba(0,0,0,0.25);
}

.cta-btn-outline {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12px;
    font-weight: 400;
    color: rgba(255,255,255,0.8);
    background: transparent;
    padding: 18px 44px;
    border: 1px solid rgba(255,255,255,0.3);
    cursor: pointer;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.2s;
}

.cta-btn-outline:hover {
    border-color: rgba(255,255,255,0.7);
    color: var(--white);
}

/* ─── FOOTER ─── */
footer {
    background: #060F1C;
    padding: 80px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 80px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    margin-bottom: 40px;
}

.footer-brand-name {
    display: block;
    margin-bottom: 20px;
}

.footer-brand-name img {
    height: 44px;
    width: auto;
    display: block;
}

.footer-tagline {
    font-size: 14px;
    font-weight: 300;
    color: rgba(255,255,255,0.52);
    line-height: 1.7;
    max-width: 280px;
    margin-bottom: 32px;
}

.footer-cert-badge {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 10px;
    color: rgba(79,209,197,0.6);
    border: 1px solid rgba(79,209,197,0.2);
    padding: 8px 14px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    display: inline-block;
}

.footer-col-title {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 9px;
    font-weight: 500;
    color: rgba(255,255,255,0.25);
    letter-spacing: 0.22em;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-links a {
    font-size: 14px;
    font-weight: 300;
    color: rgba(255,255,255,0.55);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover { color: var(--white); }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-copy {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    color: rgba(255,255,255,0.35);
    letter-spacing: 0.05em;
}

.footer-location {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    color: rgba(255,255,255,0.35);
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-location::before {
    content: '\25C6';
    color: var(--teal);
    font-size: 7px;
}

/* ─── ANIMATIONS ─── */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1100px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 48px; }
}

@media (max-width: 860px) {
    nav { padding: 0 24px; }
    .nav-links { display: none; }
    .nav-links a::after { display: none; }

    .page-hero { padding: 140px 24px 72px; }
    .section-inner { padding: 0 24px; }
    .cta-buttons { flex-direction: column; align-items: center; }
    .footer-grid { grid-template-columns: 1fr; gap: 40px; }
    .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}
