/* ============================================
   LibertyX Bitcoin ATM — Editorial Style
   Forest Green + Off-White Palette
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
    --color-forest: #1a3a2a;
    --color-forest-light: #2a5a3f;
    --color-forest-dark: #0f2419;
    --color-cream: #f5f2eb;
    --color-cream-light: #faf8f4;
    --color-cream-dark: #e8e4d9;
    --color-gold: #c8a961;
    --color-gold-light: #d4bc7e;
    --color-text: #1a1a18;
    --color-text-light: #4a4a46;
    --color-text-muted: #7a7a74;
    --color-white: #ffffff;
    --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 6rem;
    --space-2xl: 8rem;
    --radius: 4px;
    --radius-lg: 8px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset & Base --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    color: var(--color-text);
    background-color: var(--color-cream);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

address {
    font-style: normal;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* --- Typography --- */
.section-label {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-gold);
    margin-bottom: var(--space-sm);
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--color-forest);
    margin-bottom: var(--space-md);
}

.text-accent {
    color: var(--color-gold);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    padding: 0.875rem 1.75rem;
    border-radius: var(--radius);
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

.btn--light {
    background: var(--color-white);
    color: var(--color-forest);
    border-color: var(--color-white);
}

.btn--light:hover {
    background: var(--color-cream);
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.btn--ghost {
    background: transparent;
    color: var(--color-white);
    border-color: rgba(255,255,255,0.5);
}

.btn--ghost:hover {
    border-color: var(--color-white);
    background: rgba(255,255,255,0.1);
}

.btn--gold {
    background: var(--color-gold);
    color: var(--color-forest-dark);
    border-color: var(--color-gold);
}

.btn--gold:hover {
    background: var(--color-gold-light);
    border-color: var(--color-gold-light);
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(200,169,97,0.3);
}

.btn--outline-light {
    background: transparent;
    color: var(--color-white);
    border-color: rgba(255,255,255,0.4);
}

.btn--outline-light:hover {
    border-color: var(--color-white);
    background: rgba(255,255,255,0.08);
}

.btn--large {
    padding: 1rem 2rem;
    font-size: 0.9375rem;
}

/* --- Navigation --- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: var(--space-sm) 0;
    transition: all var(--transition);
}

.nav.scrolled {
    background: rgba(26, 58, 42, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(255,255,255,0.08);
    padding: 0.75rem 0;
}

.nav__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav__logo {
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.nav__logo-mark {
    font-family: var(--font-serif);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-gold);
    width: 36px;
    height: 36px;
    border: 1.5px solid var(--color-gold);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0.02em;
}

.nav__logo-text {
    font-family: var(--font-serif);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-white);
    letter-spacing: 0.01em;
}

.nav__menu {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.nav__link {
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.75);
    transition: color var(--transition);
}

.nav__link:hover {
    color: var(--color-white);
}

.nav__cta {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-gold);
    border: 1.5px solid var(--color-gold);
    padding: 0.5rem 1.125rem;
    border-radius: var(--radius);
    transition: all var(--transition);
}

.nav__cta:hover {
    background: var(--color-gold);
    color: var(--color-forest-dark);
}

.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav__toggle-line {
    width: 22px;
    height: 1.5px;
    background: var(--color-white);
    transition: all var(--transition);
    transform-origin: center;
}

.nav__toggle[aria-expanded="true"] .nav__toggle-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 5px);
}

.nav__toggle[aria-expanded="true"] .nav__toggle-line:nth-child(2) {
    opacity: 0;
}

.nav__toggle[aria-expanded="true"] .nav__toggle-line:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -5px);
}

/* --- Hero --- */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--color-forest-dark);
}

.hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.45;
}

.hero__scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(15, 36, 25, 0.92) 0%,
        rgba(26, 58, 42, 0.85) 40%,
        rgba(42, 90, 63, 0.7) 100%
    );
}

.hero__content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
    padding-top: var(--space-xl);
    padding-bottom: var(--space-lg);
    width: 100%;
}

.hero__eyebrow {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-gold);
    margin-bottom: var(--space-md);
}

.hero__headline {
    font-family: var(--font-serif);
    font-size: clamp(2.75rem, 7vw, 5.5rem);
    font-weight: 900;
    line-height: 1.05;
    color: var(--color-white);
    margin-bottom: var(--space-md);
    max-width: 800px;
}

.hero__accent {
    color: var(--color-gold);
    font-style: italic;
    font-weight: 400;
}

.hero__sub {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    color: rgba(255,255,255,0.7);
    max-width: 520px;
    line-height: 1.7;
    margin-bottom: var(--space-lg);
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
}

.hero__trust {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-sm);
}

.hero__trust-item {
    font-size: 0.8125rem;
    font-weight: 500;
    color: rgba(255,255,255,0.6);
    letter-spacing: 0.04em;
}

.hero__trust-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--color-gold);
    opacity: 0.6;
    flex-shrink: 0;
}

.hero__scroll {
    position: absolute;
    bottom: var(--space-md);
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.4);
    transition: color var(--transition);
    animation: heroScrollBounce 2s ease-in-out infinite;
}

.hero__scroll:hover {
    color: var(--color-gold);
}

@keyframes heroScrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(6px); }
}

/* --- Services --- */
.services {
    padding: var(--space-2xl) 0;
    background: var(--color-cream);
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    border: 1px solid var(--color-cream-dark);
    transition: all var(--transition);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(26, 58, 42, 0.1);
    border-color: transparent;
}

.card--service {
    display: flex;
    flex-direction: column;
}

.card__icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-lg);
    background: var(--color-forest);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-gold);
    margin-bottom: var(--space-md);
}

.card__title {
    font-family: var(--font-serif);
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--color-forest);
    margin-bottom: var(--space-xs);
}

.card__body {
    font-size: 0.9375rem;
    color: var(--color-text-light);
    line-height: 1.7;
    flex: 1;
}

/* --- How It Works --- */
.how-it-works {
    padding: var(--space-2xl) 0;
    background: var(--color-forest);
}

.how-it-works__header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.how-it-works__header .section-title {
    color: var(--color-white);
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
    position: relative;
}

.step {
    text-align: center;
    padding: var(--space-lg) var(--space-md);
    position: relative;
}

.step__number {
    font-family: var(--font-serif);
    font-size: 4rem;
    font-weight: 900;
    color: var(--color-gold);
    opacity: 0.3;
    line-height: 1;
    margin-bottom: var(--space-sm);
}

.step__title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: var(--space-xs);
}

.step__body {
    font-size: 0.9375rem;
    color: rgba(255,255,255,0.6);
    line-height: 1.7;
    max-width: 280px;
    margin: 0 auto;
}

.step__connector {
    display: none;
}

/* --- About --- */
.about {
    padding: var(--space-2xl) 0;
    background: var(--color-cream-light);
}

.about__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
}

.about__body {
    font-size: 1rem;
    color: var(--color-text-light);
    line-height: 1.8;
    margin-bottom: var(--space-md);
}

.about__stats {
    display: flex;
    gap: var(--space-lg);
    margin-top: var(--space-lg);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--color-cream-dark);
}

.stat {
    text-align: left;
}

.stat__number {
    font-family: var(--font-serif);
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--color-forest);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat__label {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

.about__image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 6/7;
}

.about__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- CTA --- */
.cta {
    padding: var(--space-2xl) 0;
    background: var(--color-forest-dark);
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: rgba(200, 169, 97, 0.04);
    pointer-events: none;
}

.cta__inner {
    text-align: center;
    position: relative;
    z-index: 1;
    max-width: 680px;
    margin: 0 auto;
}

.cta__eyebrow {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-gold);
    margin-bottom: var(--space-sm);
}

.cta__headline {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--color-white);
    margin-bottom: var(--space-md);
}

.cta__body {
    font-size: 1.0625rem;
    color: rgba(255,255,255,0.6);
    line-height: 1.7;
    margin-bottom: var(--space-lg);
}

.cta__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-sm);
}

/* --- Location --- */
.location {
    padding: var(--space-2xl) 0;
    background: var(--color-cream);
}

.location__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: stretch;
}

.location__info {
    padding-right: var(--space-md);
}

.location__address {
    list-style: none;
    margin: var(--space-lg) 0;
}

.location__detail {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
    color: var(--color-text-light);
    font-size: 0.9375rem;
    line-height: 1.6;
}

.location__detail svg {
    flex-shrink: 0;
    margin-top: 0.15em;
    color: var(--color-gold);
}

.location__detail a {
    color: var(--color-forest);
    font-weight: 500;
    transition: color var(--transition);
}

.location__detail a:hover {
    color: var(--color-gold);
}

.location__map {
    border-radius: var(--radius-lg);
    overflow: hidden;
    min-height: 400px;
    border: 1px solid var(--color-cream-dark);
}

/* --- Footer --- */
.footer {
    background: var(--color-forest-dark);
    padding: var(--space-lg) 0;
}

.footer__inner {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.footer__brand {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.footer__logo-mark {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-gold);
    width: 48px;
    height: 48px;
    border: 1.5px solid var(--color-gold);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer__logo-text {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-white);
}

.footer__tagline {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.5);
    margin-top: 0.25rem;
}

.footer__contact {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer__contact p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: rgba(255,255,255,0.6);
}

.footer__contact a {
    color: var(--color-gold);
    transition: color var(--transition);
}

.footer__contact a:hover {
    color: var(--color-gold-light);
}

.footer__legal {
    padding-top: var(--space-md);
    border-top: 1px solid rgba(255,255,255,0.08);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer__legal p {
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.35);
    line-height: 1.6;
}

.footer__disclaimer {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.25);
}

/* --- Scroll Reveal (progressive enhancement) --- */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    }

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

/* --- Responsive --- */
@media (max-width: 900px) {
    .nav__toggle {
        display: flex;
    }

    .nav__menu {
        position: fixed;
        top: 0;
        right: 0;
        width: min(320px, 85vw);
        height: 100vh;
        height: 100dvh;
        background: var(--color-forest-dark);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: var(--space-md);
        transform: translateX(100%);
        transition: transform var(--transition);
        box-shadow: -10px 0 40px rgba(0,0,0,0.3);
    }

    .nav__menu.open {
        transform: translateX(0);
    }

    .nav__link {
        font-size: 1rem;
        color: rgba(255,255,255,0.8);
    }

    .nav__cta {
        font-size: 0.9375rem;
    }

    .services__grid {
        grid-template-columns: 1fr;
    }

    .steps {
        grid-template-columns: 1fr;
        gap: var(--space-sm);
    }

    .step__connector {
        display: none;
    }

    .about__inner {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .about__image {
        aspect-ratio: 16/9;
        order: -1;
    }

    .location__inner {
        grid-template-columns: 1fr;
    }

    .location__info {
        padding-right: 0;
    }

    .location__map {
        min-height: 280px;
    }

    .footer__inner {
        gap: var(--space-md);
    }
}

@media (max-width: 480px) {
    :root {
        --space-lg: 3rem;
        --space-xl: 4rem;
        --space-2xl: 5rem;
    }

    .hero__actions {
        flex-direction: column;
    }

    .btn {
        justify-content: center;
        width: 100%;
    }

    .hero__trust {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.375rem;
    }

    .hero__trust-dot {
        display: none;
    }

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

    .about__stats {
        flex-direction: column;
        gap: var(--space-md);
    }
}
