/* ============================================
   LibertyX Bitcoin ATM — Custom Styles
   Palette: Burgundy (#800020) + Blush (#F5E6D3)
   Fonts: Cormorant Garamond + Inter
   ============================================ */

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

:root {
    --burgundy: #800020;
    --burgundy-dark: #5c0017;
    --burgundy-deep: #3a000f;
    --blush: #F5E6D3;
    --blush-light: #FDF6EE;
    --blush-dark: #E8D5C0;
    --cream: #FAF7F4;
    --text-dark: #1a0a10;
    --text-muted: #5a4a50;
    --text-light: #8a7a80;
    --white: #ffffff;
    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Inter', -apple-system, sans-serif;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

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

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================
   Navigation
   ============================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(250, 247, 244, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(128, 0, 32, 0.08);
    transition: var(--transition);
}

.nav.scrolled {
    background: rgba(250, 247, 244, 0.97);
    box-shadow: 0 1px 20px rgba(128, 0, 32, 0.06);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--burgundy);
}

.nav-logo-mark {
    width: 36px;
    height: 36px;
    background: var(--burgundy);
    color: var(--blush);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-serif);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    border-radius: 6px;
}

.nav-logo-text {
    display: none;
}

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

.nav-links a {
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
    transition: color var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--burgundy);
    transition: width var(--transition);
}

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

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

.nav-cta {
    background: var(--burgundy) !important;
    color: var(--blush) !important;
    padding: 10px 22px;
    border-radius: 100px;
    font-size: 0.78rem !important;
    font-weight: 500 !important;
    letter-spacing: 0.06em !important;
    transition: background var(--transition), transform var(--transition) !important;
}

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

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

/* Mobile Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle-line {
    width: 22px;
    height: 1.5px;
    background: var(--text-dark);
    transition: var(--transition);
    transform-origin: center;
}

.nav-toggle.active .nav-toggle-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 5px);
}

.nav-toggle.active .nav-toggle-line:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active .nav-toggle-line:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -5px);
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--cream);
    z-index: 999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu a {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 400;
    color: var(--text-dark);
    transition: color var(--transition);
}

.mobile-menu a:hover {
    color: var(--burgundy);
}

.mobile-menu-cta {
    font-family: var(--font-sans) !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    color: var(--burgundy) !important;
    border: 1px solid var(--burgundy);
    padding: 14px 32px;
    border-radius: 100px;
    margin-top: 16px;
}

/* ============================================
   Hero
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: var(--burgundy-deep);
    overflow: hidden;
    padding: 120px 24px 80px;
}

.hero-bg-pattern {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-grid {
    width: 100%;
    height: 100%;
}

/* Subtle radial glow */
.hero::before {
    content: '';
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(ellipse, rgba(128, 0, 32, 0.4) 0%, transparent 70%);
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--blush);
    opacity: 0.7;
    margin-bottom: 32px;
}

.hero-tag-line {
    width: 40px;
    height: 1px;
    background: var(--blush);
    opacity: 0.5;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(2.8rem, 7vw, 5.5rem);
    font-weight: 300;
    line-height: 1.1;
    color: var(--blush-light);
    margin-bottom: 28px;
    letter-spacing: -0.01em;
}

.hero-title em {
    font-style: italic;
    font-weight: 300;
}

.hero-accent {
    color: var(--blush);
    position: relative;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.15rem);
    font-weight: 300;
    line-height: 1.7;
    color: rgba(245, 230, 211, 0.65);
    max-width: 520px;
    margin: 0 auto 48px;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 64px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 100px;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    transition: all var(--transition);
    cursor: pointer;
    border: none;
    text-decoration: none;
}

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

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

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

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

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

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

.btn-outline-light {
    background: transparent;
    color: var(--blush);
    border: 1px solid rgba(245, 230, 211, 0.4);
}

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

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

.btn-lg {
    padding: 18px 40px;
    font-size: 0.9rem;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
}

.hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.hero-stat-value {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--blush);
}

.hero-stat-label {
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(245, 230, 211, 0.45);
}

.hero-stat-divider {
    width: 1px;
    height: 32px;
    background: rgba(245, 230, 211, 0.15);
}

/* Hero Scroll */
.hero-scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(245, 230, 211, 0.35);
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

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

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

/* ============================================
   Section Shared
   ============================================ */
.section-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--burgundy);
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    font-weight: 300;
    line-height: 1.15;
    color: var(--text-dark);
    margin-bottom: 20px;
    letter-spacing: -0.01em;
}

.section-title em {
    font-style: italic;
    font-weight: 300;
}

.section-subtitle {
    font-size: 1.05rem;
    font-weight: 300;
    line-height: 1.7;
    color: var(--text-muted);
    max-width: 520px;
}

.section-header {
    margin-bottom: 64px;
}

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

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    background: var(--white);
    border: 1px solid rgba(128, 0, 32, 0.08);
    border-radius: 16px;
    padding: 40px 32px;
    transition: all var(--transition);
}

.service-card:hover {
    border-color: rgba(128, 0, 32, 0.18);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(128, 0, 32, 0.06);
}

.service-icon {
    width: 56px;
    height: 56px;
    background: var(--blush);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--burgundy);
    margin-bottom: 24px;
}

.service-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.service-body {
    font-size: 0.92rem;
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.service-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.service-features li {
    font-size: 0.82rem;
    color: var(--text-muted);
    padding-left: 16px;
    position: relative;
}

.service-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 5px;
    height: 5px;
    background: var(--burgundy);
    border-radius: 50%;
    opacity: 0.5;
}

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

.how-it-works::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: radial-gradient(ellipse at top right, rgba(128, 0, 32, 0.3) 0%, transparent 70%);
    pointer-events: none;
}

.how-it-works .section-tag {
    color: var(--blush);
    opacity: 0.6;
}

.how-it-works .section-title {
    color: var(--blush-light);
}

.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    position: relative;
}

.step {
    padding: 0 24px;
    position: relative;
}

.step-number {
    font-family: var(--font-serif);
    font-size: 3rem;
    font-weight: 300;
    color: rgba(245, 230, 211, 0.12);
    line-height: 1;
    margin-bottom: 20px;
}

.step-line {
    width: 100%;
    height: 1px;
    background: rgba(245, 230, 211, 0.1);
    margin-bottom: 20px;
}

.step:last-child .step-line {
    display: none;
}

.step-title {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--blush-light);
    margin-bottom: 10px;
}

.step-body {
    font-size: 0.88rem;
    line-height: 1.7;
    color: rgba(245, 230, 211, 0.5);
}

/* ============================================
   About
   ============================================ */
.about {
    padding: 120px 0;
    background: var(--cream);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    height: 700px;
    object-fit: cover;
    border-radius: 16px;
}

.about-image-accent {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 200px;
    height: 200px;
    background: var(--burgundy);
    border-radius: 16px;
    z-index: -1;
    opacity: 0.08;
}

.about-content {
    padding: 20px 0;
}

.about-body {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.about-divider {
    width: 60px;
    height: 1px;
    background: var(--burgundy);
    margin: 36px 0;
    opacity: 0.3;
}

.about-values {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.about-value {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.about-value-label {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--burgundy);
    white-space: nowrap;
    padding-top: 2px;
}

.about-value-line {
    flex: 1;
    height: 1px;
    background: rgba(128, 0, 32, 0.15);
    min-width: 24px;
}

.about-value-desc {
    display: none;
}

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

.location-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: start;
}

.location-info {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.location-detail {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.location-detail-icon {
    width: 48px;
    height: 48px;
    background: var(--blush);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--burgundy);
    flex-shrink: 0;
}

.location-detail-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 4px;
}

.location-detail-value {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-dark);
    line-height: 1.6;
}

.location-detail-value a {
    color: var(--burgundy);
    transition: color var(--transition);
}

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

.location-map {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

/* Location CTA Card */
.location-cta-card {
    background: var(--burgundy-deep);
    border-radius: 20px;
    padding: 48px 40px;
    text-align: center;
    position: sticky;
    top: 120px;
}

.location-cta-icon {
    width: 64px;
    height: 64px;
    background: rgba(245, 230, 211, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    color: var(--blush);
}

.location-cta-title {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: 400;
    color: var(--blush-light);
    margin-bottom: 16px;
    line-height: 1.3;
}

.location-cta-text {
    font-size: 0.92rem;
    line-height: 1.7;
    color: rgba(245, 230, 211, 0.6);
    margin-bottom: 32px;
}

.location-cta-note {
    margin-top: 20px;
    font-size: 0.78rem;
    color: rgba(245, 230, 211, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

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

.cta::before {
    content: '';
    position: absolute;
    bottom: -200px;
    left: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(ellipse, rgba(245, 230, 211, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.cta .section-tag {
    color: var(--blush);
    opacity: 0.6;
}

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

.cta-title {
    font-family: var(--font-serif);
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 300;
    line-height: 1.15;
    color: var(--blush-light);
    margin-bottom: 24px;
}

.cta-title em {
    font-style: italic;
}

.cta-body {
    font-size: 1.05rem;
    line-height: 1.7;
    color: rgba(245, 230, 211, 0.65);
    margin-bottom: 40px;
}

.cta-body a {
    color: var(--blush);
    border-bottom: 1px solid rgba(245, 230, 211, 0.3);
    transition: all var(--transition);
}

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

.cta-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: var(--burgundy-deep);
    padding: 80px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.footer-logo-mark {
    width: 36px;
    height: 36px;
    background: rgba(245, 230, 211, 0.12);
    color: var(--blush);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-serif);
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 6px;
}

.footer-logo-text {
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--blush);
}

.footer-tagline {
    font-size: 0.88rem;
    color: rgba(245, 230, 211, 0.4);
    line-height: 1.6;
}

.footer-contact-label,
.footer-links-group .footer-contact-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(245, 230, 211, 0.35);
    margin-bottom: 16px;
}

.footer-contact-value {
    display: block;
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--blush);
    margin-bottom: 8px;
    transition: color var(--transition);
}

.footer-contact-value:hover {
    color: var(--white);
}

.footer-contact-address {
    font-size: 0.88rem;
    color: rgba(245, 230, 211, 0.4);
    line-height: 1.6;
}

.footer-links-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links-group a {
    font-size: 0.88rem;
    color: rgba(245, 230, 211, 0.4);
    transition: color var(--transition);
}

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

.footer-bottom {
    border-top: 1px solid rgba(245, 230, 211, 0.08);
    padding-top: 32px;
}

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

/* ============================================
   Reveal Animations
   ============================================ */
@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 (min-width: 640px) {
    .nav-logo-text {
        display: block;
    }

    .about-value-desc {
        display: block;
        font-size: 0.88rem;
        color: var(--text-muted);
        line-height: 1.6;
    }

    .about-value {
        align-items: center;
    }
}

@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .steps {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }

    .step-line {
        display: none;
    }

    .about-grid {
        gap: 48px;
    }

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

    .location-cta-card {
        position: static;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .hero {
        padding: 100px 24px 60px;
    }

    .hero-stats {
        gap: 20px;
    }

    .hero-stat-value {
        font-size: 1.2rem;
    }

    .services {
        padding: 80px 0;
    }

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

    .how-it-works {
        padding: 80px 0;
    }

    .steps {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .about {
        padding: 80px 0;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-image img {
        height: 400px;
    }

    .location {
        padding: 80px 0;
    }

    .cta {
        padding: 80px 0;
    }

    .cta-actions {
        flex-direction: column;
    }

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

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

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

    .hero-stats {
        flex-direction: column;
        gap: 16px;
    }

    .hero-stat-divider {
        width: 32px;
        height: 1px;
    }
}
