/* ==========================================================
   SHARED STYLES — Meraki Studio Design System
   Source of truth: index.html (homepage)
   ========================================================== */

/* Custom Font Declarations */
@font-face {
    font-family: 'Nicolatte';
    src: url('assets/fonts/NICOLATTE.ttf') format('truetype');
    font-weight: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Boldonse';
    src: url('assets/fonts/Boldonse.ttf') format('truetype');
    font-weight: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Gulams Condensed';
    src: url('assets/fonts/GulamsCondensed-Bold.otf') format('opentype');
    font-weight: bold;
    font-display: swap;
}

@font-face {
    font-family: 'Trigue Sans';
    src: url('assets/fonts/Trigue Sans.otf') format('opentype');
    font-weight: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Cook Sans Metric';
    src: url('assets/fonts/CookSansmetric.ttf') format('truetype');
    font-weight: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Signaturide Sans';
    src: url('assets/fonts/Signaturide-Sans.otf') format('opentype');
    font-weight: normal;
    font-display: swap;
}

/* CSS Variables */
:root {
    /* Brand Colors */
    --rusty-orange: #D46328;
    --indigo-denim: #2D3C94;
    --pinball-green: #1C934F;
    --cherry-pink: #F7AEC7;
    --cassette-black: #1D111C;
    --off-white: #FFF9EF;

    /* Font Families */
    --font-display: 'Boldonse', 'Nicolatte', sans-serif;
    --font-headline: 'Boldonse', 'Nicolatte', sans-serif;
    --font-subhead: 'Trigue Sans', sans-serif;
    --font-body: 'Be Vietnam Pro', system-ui, sans-serif;
    --font-accent: 'Signaturide Sans', sans-serif;

    /* Viewport-Relative Typography Scale */
    --text-hero: clamp(2.5rem, 6svw, 4.5rem);
    --text-section: clamp(1.75rem, 3.5svw, 2.75rem);
    --text-large: clamp(1.15rem, 2svw, 1.75rem);
    --text-medium: clamp(1.125rem, 2svw, 1.5rem);
    --text-body: clamp(1rem, 1.2svw, 1.15rem);
    --text-small: clamp(0.75rem, 1svw, 0.875rem);

    /* Spacing Scale */
    --space-section: clamp(100px, 15svh, 180px);
    --space-element: clamp(24px, 5svw, 80px);
}

/* Reset & Globals */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--off-white);
    color: var(--cassette-black);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: default;
}

/* Grain Texture Overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10000;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-headline);
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: -0.02em;
}

.container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 clamp(20px, 5vw, 80px);
}

/* Scroll Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* Keyframes */
@keyframes float {
    0%, 100% { transform: translateY(0) rotate(-5deg); }
    50% { transform: translateY(-20px) rotate(0deg); }
}

@keyframes floatAlt {
    0%, 100% { transform: translateY(0) rotate(5deg); }
    50% { transform: translateY(-15px) rotate(2deg); }
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 24px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

nav.scrolled {
    background: var(--off-white);
    padding: 16px 40px;
    border-bottom: 2px solid var(--cassette-black);
}

/* Inner pages: nav starts in scrolled state */
body:not(.home) nav {
    background: var(--off-white);
    padding: 16px 40px;
    border-bottom: 2px solid var(--cassette-black);
}

.nav-logo {
    display: flex;
    align-items: center;
}

.nav-logo img {
    height: clamp(28px, 3.5vw, 40px);
    width: auto;
    transition: filter 0.5s ease;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--cassette-black);
    font-family: var(--font-subhead);
    font-size: var(--text-small);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    position: relative;
    transition: color 0.5s ease;
}

nav.scrolled .nav-links a {
    color: var(--cassette-black);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--cassette-black);
    transition: width 0.3s ease;
}

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

.nav-cta {
    background: var(--cassette-black) !important;
    color: var(--off-white) !important;
    padding: 14px 32px !important;
    border: none !important;
    transition: all 0.3s ease !important;
}

nav.scrolled .nav-cta {
    background: var(--cassette-black) !important;
    color: var(--off-white) !important;
}

.nav-cta::after {
    display: none !important;
}

.nav-cta:hover {
    background: var(--cassette-black) !important;
    color: var(--off-white) !important;
    opacity: 0.85;
}

.mobile-menu {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 100;
}

.mobile-menu span {
    display: block;
    width: 28px;
    height: 2px;
    background: var(--cassette-black);
    margin: 7px 0;
    transition: all 0.4s ease;
}

/* Homepage: mobile menu spans start off-white (on dark hero) */
body.home .mobile-menu span {
    background: var(--off-white);
}

body.home nav.scrolled .mobile-menu span {
    background: var(--cassette-black);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 40px;
    font-family: var(--font-subhead);
    font-weight: 500;
    font-size: var(--text-small);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--rusty-orange);
    color: var(--off-white);
    border-color: var(--rusty-orange);
}

.btn-primary:hover {
    background: var(--cassette-black);
    border-color: var(--cassette-black);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(212, 99, 40, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--cassette-black);
    border-color: var(--cassette-black);
}

.btn-outline:hover {
    background: var(--cassette-black);
    color: var(--off-white);
    transform: translateY(-3px);
}

.btn-dark {
    background: var(--cassette-black);
    color: var(--off-white);
    border-color: var(--cassette-black);
}

.btn-dark:hover {
    background: var(--off-white);
    color: var(--cassette-black);
    border-color: var(--cassette-black);
    transform: translateY(-3px);
}

/* Section Label */
.section-label {
    font-family: var(--font-subhead);
    font-size: var(--text-small);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--cherry-pink);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.section-label::before {
    content: '';
    width: 40px;
    height: 2px;
    background: var(--cherry-pink);
}

/* Section Divider */
.section-divider {
    height: 3px;
    background: var(--cassette-black);
}

/* Page Hero (inner pages) */
.page-hero {
    padding: 180px 0 100px;
    background: var(--cassette-black);
    color: var(--off-white);
    position: relative;
    overflow: hidden;
}

.page-hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.page-hero-label {
    font-family: var(--font-subhead);
    font-size: var(--text-small);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    opacity: 0.6;
    margin-bottom: 20px;
}

.page-hero-title {
    font-family: var(--font-headline);
    font-size: clamp(1.5rem, 2.8vw, 2.25rem);
    text-transform: uppercase;
    line-height: 1.4;
    margin-bottom: 30px;
}

.page-hero-title span {
    color: var(--rusty-orange);
}

.page-hero-description {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    max-width: 600px;
    line-height: 1.8;
    opacity: 0.85;
}

.page-hero-illustration {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    width: clamp(200px, 25vw, 400px);
    opacity: 0.9;
}

/* CTA Section (shared across inner pages) */
.cta-section {
    padding: 100px 0;
    background: var(--cassette-black);
    color: var(--off-white);
    text-align: center;
}

.cta-section h2 {
    font-family: var(--font-headline);
    font-size: clamp(2rem, 6vw, 4rem);
    text-transform: uppercase;
    margin-bottom: 20px;
}

.cta-section h2 span {
    color: var(--rusty-orange);
}

.cta-section p {
    font-size: clamp(1rem, 1.3vw, 1.15rem);
    max-width: 500px;
    margin: 0 auto 40px;
    opacity: 0.8;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Footer */
footer {
    padding: 100px 0 50px;
    background: var(--cassette-black);
    border-top: 3px solid rgba(255, 249, 239, 0.08);
    color: var(--off-white);
}

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

.footer-brand {
    max-width: 300px;
    display: flex;
    align-items: center;
}

.footer-logo {
    height: clamp(35px, 5vw, 50px);
    width: auto;
    margin-bottom: 0;
}

.footer-tagline {
    font-family: var(--font-accent);
    font-size: var(--text-small);
    font-style: italic;
    opacity: 0.5;
    text-align: center;
}

.footer-address {
    text-align: right;
    font-size: var(--text-small);
    opacity: 0.5;
    line-height: 2;
}

.footer-address a {
    color: var(--off-white);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-address a:hover {
    opacity: 1;
    color: var(--rusty-orange);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 50px;
    border-top: 1px solid rgba(255, 249, 239, 0.08);
}

.footer-copyright {
    font-size: var(--text-small);
    opacity: 0.4;
}

.social-links {
    display: flex;
    gap: 30px;
}

.social-links a {
    color: var(--off-white);
    opacity: 0.5;
    text-decoration: none;
    font-family: var(--font-subhead);
    font-size: var(--text-small);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transition: all 0.3s ease;
}

.social-links a:hover {
    opacity: 1;
    color: var(--rusty-orange);
}

/* ==========================================================
   RESPONSIVE — Tablet (1024px)
   ========================================================== */
@media (max-width: 1024px) {
    .footer-top {
        flex-direction: column;
        gap: 40px;
    }

    .page-hero-illustration {
        opacity: 0.3;
        right: -5%;
    }
}

/* ==========================================================
   RESPONSIVE — Mobile (640px)
   ========================================================== */
@media (max-width: 640px) {
    nav {
        padding: 16px 20px;
    }

    nav.scrolled,
    body:not(.home) nav {
        padding: 14px 20px;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--cassette-black);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 40px;
        z-index: 99;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        color: var(--off-white);
        font-size: var(--text-medium);
    }

    .mobile-menu {
        display: block;
    }

    .page-hero {
        padding: 140px 0 60px;
    }

    .page-hero-illustration {
        display: none;
    }

    footer .container {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-top {
        display: contents;
    }

    .footer-brand {
        order: 1;
        text-align: center;
        margin-bottom: 15px;
    }

    .footer-logo {
        margin-bottom: 0;
    }

    .footer-tagline {
        order: 2;
        margin-bottom: 30px;
    }

    .footer-address {
        order: 3;
        text-align: center;
        margin-bottom: 50px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 25px;
        text-align: center;
        order: 4;
        width: 100%;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}
