/* ========================================
   LibertyX Bitcoin ATM — Styles
   ======================================== */

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

:root {
    --burgundy: #781F2E;
    --burgundy-dark: #5A1621;
    --burgundy-deeper: #3D0F18;
    --blush: #F5E6D3;
    --blush-light: #FBF5EF;
    --blush-mid: #E8D5C4;
    --cream: #FDF8F3;
    --charcoal: #1A1A1A;
    --text-dark: #1A1A1A;
    --text-mid: #4A4A4A;
    --text-light: #6B6B6B;
    --white: #FFFFFF;
    
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    
    --nav-height: 72px;
    --section-padding: clamp(4rem, 10vw, 8rem);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

/* ========================================
   Navigation
   ======================================== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(253, 248, 243, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(120, 31, 46, 0.08);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.nav.scrolled {
    background: rgba(253, 248, 243, 0.97);
    box-shadow: 0 1px 20px rgba(120, 31, 46, 0.08);
}

.nav-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 4vw, 3rem);
    height: var(--nav-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--burgundy);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.nav-logo-icon {
    color: var(--burgundy);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: clamp(1.5rem, 3vw, 2.5rem);
}

.nav-links a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-mid);
    text-decoration: none;
    letter-spacing: 0.02em;
    transition: color 0.2s ease;
}

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

.nav-cta {
    background: var(--burgundy);
    color: var(--white) !important;
    padding: 0.5rem 1.125rem;
    border-radius: 100px;
    font-weight: 600 !important;
    transition: background 0.2s ease, transform 0.2s ease !important;
}

.nav-cta:hover {
    background: var(--burgundy-dark);
    color: var(--white) !important;
    transform: translateY(-1px);
}

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

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--burgundy);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.active span:first-child {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active span:last-child {
    transform: translateY(-7px) rotate(-45deg);
}

/* ========================================
   Hero
   ======================================== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--burgundy-deeper);
    position: relative;
    overflow: hidden;
    padding: calc(var(--nav-height) + 2rem) 0 3rem;
}

.hero-bg-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.7;
    pointer-events: none;
}

.hero-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 4vw, 3rem);
    display: grid;
    grid-template-columns: 1fr 0.85fr;
    gap: clamp(2rem, 5vw, 5rem);
    align-items: center;
    position: relative;
    z-index: 1;
    width: 100%;
}

.hero-eyebrow {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--blush);
    margin-bottom: 1.5rem;
}

.hero-eyebrow-line {
    width: 32px;
    height: 2px;
    background: var(--blush);
    border-radius: 2px;
}

.hero-headline {
    font-family: var(--font-serif);
    font-size: clamp(2.75rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.08;
    color: var(--blush-light);
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}

.hero-headline em {
    font-style: italic;
    color: var(--blush);
    font-weight: 600;
}

.hero-sub {
    font-size: clamp(1rem, 1.5vw, 1.1875rem);
    color: rgba(245, 230, 211, 0.7);
    line-height: 1.7;
    max-width: 480px;
    margin-bottom: 2.25rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: 100px;
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--blush);
    color: var(--burgundy-deeper);
}

.btn-primary:hover {
    background: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.btn-ghost {
    background: transparent;
    color: var(--blush);
    border: 1.5px solid rgba(245, 230, 211, 0.35);
}

.btn-ghost:hover {
    border-color: var(--blush);
    background: rgba(245, 230, 211, 0.08);
}

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

.btn-light:hover {
    background: var(--blush-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.hero-visual {
    position: relative;
}

.hero-image-frame {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 32px 64px rgba(0, 0, 0, 0.3);
    aspect-ratio: 3/4;
}

.hero-image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-stat-card {
    position: absolute;
    bottom: -1.5rem;
    left: -1.5rem;
    background: var(--white);
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
}

.hero-stat-number {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 700;
    color: var(--burgundy);
    line-height: 1;
}

.hero-stat-label {
    font-size: 0.8125rem;
    color: var(--text-light);
    margin-top: 0.25rem;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: rgba(245, 230, 211, 0.5);
    font-size: 0.6875rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(245, 230, 211, 0.5), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.7); }
    50% { opacity: 1; transform: scaleY(1); }
}

/* ========================================
   Section Shared
   ======================================== */
.section-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--burgundy);
    margin-bottom: 1rem;
}

.section-headline {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 700;
    line-height: 1.12;
    color: var(--text-dark);
    letter-spacing: -0.025em;
    margin-bottom: 1.5rem;
}

/* ========================================
   Services
   ======================================== */
.services {
    padding: var(--section-padding) 0;
    background: var(--cream);
}

.services-grid {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 4vw, 3rem);
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.service-card {
    background: var(--white);
    border-radius: 20px;
    padding: clamp(1.75rem, 3vw, 2.5rem);
    border: 1px solid rgba(120, 31, 46, 0.07);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--burgundy);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    box-shadow: 0 16px 48px rgba(120, 31, 46, 0.1);
    transform: translateY(-4px);
}

.service-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(120, 31, 46, 0.07);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--burgundy);
    margin-bottom: 1.25rem;
}

.service-card h3 {
    font-family: var(--font-serif);
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.625rem;
    letter-spacing: -0.01em;
}

.service-card p {
    font-size: 0.9375rem;
    color: var(--text-mid);
    line-height: 1.65;
    margin-bottom: 1.25rem;
}

.service-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--burgundy);
    background: rgba(120, 31, 46, 0.07);
    padding: 0.375rem 0.875rem;
    border-radius: 100px;
}

/* ========================================
   How It Works
   ======================================== */
.how-it-works {
    padding: var(--section-padding) 0;
    background: var(--burgundy-deeper);
    position: relative;
    overflow: hidden;
}

.how-it-works::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: rgba(245, 230, 211, 0.03);
    pointer-events: none;
}

.how-inner {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 4vw, 3rem);
    position: relative;
    z-index: 1;
}

.how-inner .section-label {
    color: var(--blush);
}

.how-inner .section-headline {
    color: var(--blush-light);
    max-width: 560px;
}

.steps {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 3rem;
}

.step {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 1.5rem;
    padding: 2rem 0;
    border-bottom: 1px solid rgba(245, 230, 211, 0.1);
}

.step:first-child {
    padding-top: 0;
}

.step:last-child {
    border-bottom: none;
}

.step-number {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--blush);
    opacity: 0.5;
    line-height: 1;
    padding-top: 0.125rem;
}

.step-content h3 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--blush-light);
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.step-content p {
    font-size: 1rem;
    color: rgba(245, 230, 211, 0.65);
    line-height: 1.7;
    max-width: 520px;
}

/* ========================================
   About
   ======================================== */
.about {
    padding: var(--section-padding) 0;
    background: var(--blush-light);
}

.about-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 4vw, 3rem);
    display: grid;
    grid-template-columns: 0.9fr 1fr;
    gap: clamp(2rem, 5vw, 5rem);
    align-items: center;
}

.about-visual {
    position: relative;
}

.about-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    display: block;
    box-shadow: 0 24px 48px rgba(120, 31, 46, 0.12);
}

.about-accent {
    position: absolute;
    bottom: -1rem;
    right: -1rem;
    width: 56px;
    height: 56px;
    background: var(--burgundy);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blush);
}

.about-content .section-headline {
    margin-top: 0.5rem;
}

.about-content > p {
    font-size: 1rem;
    color: var(--text-mid);
    line-height: 1.75;
    margin-bottom: 1rem;
}

.about-stats {
    display: flex;
    gap: 2rem;
    margin-top: 2.25rem;
    padding-top: 2.25rem;
    border-top: 1px solid rgba(120, 31, 46, 0.12);
}

.about-stat-number {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--burgundy);
    line-height: 1;
}

.about-stat-label {
    font-size: 0.8125rem;
    color: var(--text-light);
    margin-top: 0.375rem;
}

/* ========================================
   Testimonial
   ======================================== */
.testimonial {
    padding: var(--section-padding) 0;
    background: var(--cream);
}

.testimonial-inner {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 4vw, 3rem);
    text-align: center;
}

.testimonial-quote {
    color: var(--burgundy);
    opacity: 0.2;
    margin-bottom: 1.5rem;
}

.testimonial-text {
    font-family: var(--font-serif);
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    font-weight: 400;
    font-style: italic;
    color: var(--text-dark);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.testimonial-author {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--burgundy);
    letter-spacing: 0.04em;
}

/* ========================================
   Location
   ======================================== */
.location {
    padding: var(--section-padding) 0;
    background: var(--white);
}

.location-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 4vw, 3rem);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: stretch;
}

.location-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.location-content .section-headline {
    margin-bottom: 2rem;
}

.location-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.location-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.location-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(120, 31, 46, 0.07);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--burgundy);
    flex-shrink: 0;
}

.location-item strong {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.125rem;
}

.location-item p {
    font-size: 0.9375rem;
    color: var(--text-mid);
    line-height: 1.5;
}

.location-item a {
    color: var(--burgundy);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.location-item a:hover {
    color: var(--burgundy-dark);
    text-decoration: underline;
}

.location-cta {
    margin-top: 0.5rem;
}

.location-map {
    border-radius: 20px;
    overflow: hidden;
    min-height: 400px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.08);
}

.location-map iframe {
    width: 100%;
    height: 100%;
    min-height: 400px;
}

/* ========================================
   CTA
   ======================================== */
.cta {
    padding: var(--section-padding) 0;
    background: var(--burgundy);
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 20% 50%, rgba(245, 230, 211, 0.06) 0%, transparent 60%);
    pointer-events: none;
}

.cta-inner {
    max-width: 680px;
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 4vw, 3rem);
    text-align: center;
    position: relative;
    z-index: 1;
}

.cta-headline {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--blush-light);
    letter-spacing: -0.025em;
    margin-bottom: 1rem;
}

.cta p {
    font-size: 1.0625rem;
    color: rgba(245, 230, 211, 0.75);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.cta a {
    color: var(--blush);
    text-decoration: underline;
    text-underline-offset: 3px;
}

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

/* ========================================
   Footer
   ======================================== */
.footer {
    background: var(--charcoal);
    padding: 3rem 0 1.5rem;
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 4vw, 3rem);
}

.footer-brand {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--blush);
    text-decoration: none;
}

.footer-logo svg {
    color: var(--blush);
}

.footer-brand p {
    font-size: 0.875rem;
    color: rgba(245, 230, 211, 0.5);
    line-height: 1.6;
    max-width: 320px;
    margin-left: 3.25rem;
}

.footer-info {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(245, 230, 211, 0.1);
}

.footer-info p {
    font-size: 0.875rem;
    color: rgba(245, 230, 211, 0.6);
}

.footer-info a {
    color: var(--blush);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

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

.footer-bottom p {
    font-size: 0.8125rem;
    color: rgba(245, 230, 211, 0.35);
}

.footer-disclaimer {
    font-size: 0.75rem !important;
    color: rgba(245, 230, 211, 0.25) !important;
}

/* ========================================
   Reveal Animations
   ======================================== */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ========================================
   Mobile
   ======================================== */
@media (max-width: 900px) {
    .nav-links {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: rgba(253, 248, 243, 0.98);
        backdrop-filter: blur(12px);
        flex-direction: column;
        padding: 1.5rem clamp(1.25rem, 4vw, 3rem);
        gap: 1rem;
        border-bottom: 1px solid rgba(120, 31, 46, 0.08);
        transform: translateY(-120%);
        opacity: 0;
        transition: transform 0.35s ease, opacity 0.35s ease;
        pointer-events: none;
    }

    .nav-links.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-eyebrow {
        justify-content: center;
    }

    .hero-sub {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-visual {
        max-width: 360px;
        margin: 0 auto;
    }

    .hero-stat-card {
        left: 50%;
        transform: translateX(-50%);
    }

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

    .about-inner {
        grid-template-columns: 1fr;
    }

    .about-visual {
        order: -1;
    }

    .about-accent {
        right: -0.5rem;
        bottom: -0.5rem;
    }

    .location-inner {
        grid-template-columns: 1fr;
    }

    .location-map {
        min-height: 300px;
    }

    .location-map iframe {
        min-height: 300px;
    }

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

    .footer-brand p {
        margin-left: 0;
    }

    .footer-info {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.75rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-headline {
        font-size: 2.25rem;
    }

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

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

    .about-stats {
        flex-direction: column;
        gap: 1.25rem;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .reveal {
        opacity: 1;
        transform: none;
    }
}
