/* ============================================
   LibertyX Bitcoin ATM — Styles
   Bold editorial: Playfair Display + Inter
   Palette: Emerald green + Cream
   ============================================ */

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

:root {
    --emerald-950: #042f2e;
    --emerald-900: #064e3b;
    --emerald-800: #065f46;
    --emerald-700: #047857;
    --emerald-600: #059669;
    --emerald-500: #10b981;
    
    --cream-50: #faf9f6;
    --cream-100: #f5f3ed;
    --cream-200: #ebe7db;
    --cream-300: #e0d9c8;
    
    --gold-500: #d97706;
    --gold-600: #b45309;
    
    --text-dark: #1a1a1a;
    --text-muted: #4a4a4a;
    --text-light: #6b6b6b;
    
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Inter', system-ui, sans-serif;
    
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2.5rem;
    --space-xl: 4rem;
    --space-2xl: 6rem;
    --space-3xl: 8rem;
    
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
}

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

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

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

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

ul {
    list-style: none;
}

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

.skip-link {
    position: absolute;
    top: -100%;
    left: var(--space-sm);
    background: var(--emerald-900);
    color: #fff;
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    z-index: 1000;
    font-size: 0.875rem;
}

.skip-link:focus {
    top: var(--space-sm);
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(250, 249, 246, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--cream-200);
    transition: box-shadow 0.3s ease;
}

.site-header.scrolled {
    box-shadow: var(--shadow-sm);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.logo-mark {
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--emerald-900);
    background: var(--emerald-900);
    color: var(--cream-50);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
}

.logo-text {
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--emerald-900);
}

.main-nav ul {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.main-nav a {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.main-nav a:hover {
    color: var(--emerald-800);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 0.9375rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-primary {
    background: var(--emerald-900);
    color: #fff;
}

.btn-primary:hover {
    background: var(--emerald-800);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-ghost {
    background: transparent;
    color: var(--emerald-900);
    border: 1.5px solid var(--emerald-900);
}

.btn-ghost:hover {
    background: var(--emerald-900);
    color: #fff;
}

.btn-ghost-light {
    background: transparent;
    color: var(--cream-50);
    border: 1.5px solid rgba(250, 249, 246, 0.6);
}

.btn-ghost-light:hover {
    background: var(--cream-50);
    color: var(--emerald-900);
}

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

.btn-full {
    width: 100%;
}

.btn-nav {
    background: var(--emerald-900);
    color: #fff;
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius-md);
}

.btn-nav:hover {
    background: var(--emerald-800);
    color: #fff;
}

/* Mobile menu button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    position: relative;
}

.hamburger {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 22px;
    height: 16px;
}

.hamburger::before,
.hamburger::after,
.hamburger span {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--emerald-900);
    border-radius: 1px;
    transition: all 0.3s ease;
}

.hamburger::before { top: 0; }
.hamburger span { top: 50%; transform: translate(-50%, -50%); }
.hamburger::after { bottom: 0; }

.mobile-menu-btn[aria-expanded="true"] .hamburger::before {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

.mobile-menu-btn[aria-expanded="true"] .hamburger span {
    opacity: 0;
}

.mobile-menu-btn[aria-expanded="true"] .hamburger::after {
    bottom: 0;
    transform: translateY(0) rotate(-45deg);
}

/* ============================================
   HERO
   ============================================ */
.hero {
    margin-top: 72px;
    background: var(--emerald-900);
    min-height: calc(100vh - 72px);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    line-height: 0;
}

.hero-wave svg {
    width: 100%;
    height: 80px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 0.85fr;
    gap: var(--space-xl);
    align-items: center;
    padding-top: var(--space-2xl);
    padding-bottom: var(--space-3xl);
}

.hero-eyebrow {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold-500);
    margin-bottom: var(--space-md);
}

.hero-headline {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 5vw, 4.25rem);
    font-weight: 400;
    line-height: 1.1;
    color: var(--cream-50);
    margin-bottom: var(--space-md);
}

.hero-headline .accent-italic {
    font-style: italic;
    color: var(--gold-500);
}

.hero-sub {
    font-size: 1.125rem;
    color: rgba(250, 249, 246, 0.75);
    line-height: 1.7;
    margin-bottom: var(--space-lg);
    max-width: 520px;
}

.hero-actions {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
    flex-wrap: wrap;
}

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

.stat {
    display: flex;
    flex-direction: column;
}

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

.stat-label {
    font-size: 0.8125rem;
    color: rgba(250, 249, 246, 0.6);
    margin-top: 0.25rem;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(250, 249, 246, 0.2);
}

.hero-image {
    position: relative;
}

.hero-image-frame {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

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

.hero-accent-bar {
    position: absolute;
    bottom: -20px;
    left: -20px;
    width: 120px;
    height: 120px;
    background: var(--gold-500);
    border-radius: var(--radius-md);
    z-index: -1;
}

/* ============================================
   SECTION SHARED
   ============================================ */
.section-eyebrow {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--emerald-700);
    margin-bottom: var(--space-sm);
}

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

.section-subtitle {
    font-size: 1.0625rem;
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 560px;
}

/* ============================================
   SERVICES
   ============================================ */
.services {
    padding: var(--space-3xl) 0;
    background: var(--cream-50);
}

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

.service-card {
    background: var(--cream-100);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.service-card--sell {
    background: var(--emerald-900);
}

.service-card--sell .service-title {
    color: var(--cream-50);
}

.service-card--sell .service-desc {
    color: rgba(250, 249, 246, 0.75);
}

.service-card--sell .service-features li {
    color: rgba(250, 249, 246, 0.8);
}

.service-card--sell .service-features li::before {
    color: var(--gold-500);
}

.service-icon {
    width: 56px;
    height: 56px;
    background: var(--emerald-900);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cream-50);
    margin-bottom: var(--space-md);
}

.service-card--sell .service-icon {
    background: var(--gold-500);
    color: var(--emerald-950);
}

.service-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: var(--space-sm);
}

.service-desc {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: var(--space-md);
}

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

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

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--emerald-600);
    font-weight: 600;
}

/* ============================================
   HOW IT WORKS
   ============================================ */
.how-it-works {
    padding: var(--space-3xl) 0;
    background: var(--cream-100);
}

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

.hiw-content {
    position: sticky;
    top: 120px;
}

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

.step {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--cream-50);
    border-radius: var(--radius-lg);
    transition: transform 0.3s ease;
}

.step:hover {
    transform: translateX(4px);
}

.step-number {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--emerald-600);
    line-height: 1;
    padding-top: 0.25rem;
}

.step-title {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.375rem;
}

.step-desc {
    font-size: 0.9375rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.hiw-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

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

/* ============================================
   ABOUT
   ============================================ */
.about {
    padding: var(--space-3xl) 0;
    background: var(--cream-50);
}

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

.about-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

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

.about-content .section-title {
    margin-bottom: var(--space-md);
}

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

.about-badges {
    display: flex;
    gap: var(--space-md);
    margin-top: var(--space-lg);
    flex-wrap: wrap;
}

.badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--emerald-800);
    background: var(--cream-100);
    padding: 0.625rem 1rem;
    border-radius: var(--radius-md);
}

.badge svg {
    color: var(--emerald-600);
}

/* ============================================
   CTA
   ============================================ */
.cta {
    padding: var(--space-3xl) 0;
    background: var(--emerald-900);
}

.cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-xl);
}

.cta-title {
    color: var(--cream-50);
    margin-bottom: var(--space-sm);
}

.cta-desc {
    font-size: 1.0625rem;
    color: rgba(250, 249, 246, 0.75);
    line-height: 1.7;
    max-width: 480px;
}

.cta-actions {
    display: flex;
    gap: var(--space-sm);
    flex-shrink: 0;
    flex-wrap: wrap;
}

/* ============================================
   LOCATION
   ============================================ */
.location {
    padding: var(--space-3xl) 0;
    background: var(--cream-100);
}

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

.location-details {
    font-style: normal;
    margin: var(--space-lg) 0;
}

.location-address {
    font-size: 1.0625rem;
    color: var(--text-dark);
    line-height: 1.7;
    margin-bottom: var(--space-sm);
}

.location-phone {
    margin-bottom: var(--space-sm);
}

.location-phone a {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--emerald-700);
    transition: color 0.2s ease;
}

.location-phone a:hover {
    color: var(--emerald-900);
}

.location-hours {
    font-size: 0.9375rem;
    color: var(--text-muted);
}

.location-map {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin-top: var(--space-md);
}

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

.location-visual {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    height: 100%;
    min-height: 400px;
}

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

/* ============================================
   CONTACT
   ============================================ */
.contact {
    padding: var(--space-3xl) 0;
    background: var(--cream-50);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
}

.contact-desc {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: var(--space-lg);
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.contact-method {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
}

.contact-method-icon {
    width: 44px;
    height: 44px;
    background: var(--cream-100);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--emerald-700);
    flex-shrink: 0;
}

.contact-method-label {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-light);
    display: block;
    margin-bottom: 0.125rem;
}

.contact-method a {
    font-size: 1.0625rem;
    font-weight: 500;
    color: var(--emerald-700);
    transition: color 0.2s ease;
}

.contact-method a:hover {
    color: var(--emerald-900);
}

.contact-method span:not(a) {
    font-size: 1rem;
    color: var(--text-muted);
}

/* Form */
.contact-form-wrapper {
    background: var(--cream-100);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
}

.form-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: var(--space-lg);
}

.form-group {
    margin-bottom: var(--space-md);
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 0.375rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--cream-300);
    border-radius: var(--radius-md);
    font-family: var(--font-sans);
    font-size: 1rem;
    color: var(--text-dark);
    background: var(--cream-50);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--emerald-600);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-light);
}

.form-notice {
    font-size: 0.8125rem;
    color: var(--text-light);
    margin-top: var(--space-sm);
    text-align: center;
}

/* Success message */
.form-success {
    text-align: center;
    padding: var(--space-xl);
}

.form-success h3 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--text-dark);
    margin: var(--space-sm) 0 0.5rem;
}

.form-success p {
    color: var(--text-muted);
    font-size: 0.9375rem;
}

.success-icon {
    color: var(--emerald-600);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: var(--emerald-950);
    color: var(--cream-200);
    padding: var(--space-2xl) 0 var(--space-lg);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.footer-brand .logo {
    margin-bottom: var(--space-sm);
}

.footer-brand .logo-mark {
    background: var(--emerald-700);
    color: var(--cream-50);
}

.footer-brand .logo-text {
    color: var(--cream-50);
}

.footer-tagline {
    font-size: 0.9375rem;
    color: rgba(250, 249, 246, 0.6);
    line-height: 1.6;
}

.footer-links h4,
.footer-contact h4 {
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 700;
    color: var(--cream-50);
    margin-bottom: var(--space-sm);
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links a {
    font-size: 0.9375rem;
    color: rgba(250, 249, 246, 0.6);
    transition: color 0.2s ease;
}

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

.footer-contact p {
    font-size: 0.9375rem;
    color: rgba(250, 249, 246, 0.6);
    line-height: 1.7;
    margin-bottom: 0.25rem;
}

.footer-contact a {
    color: var(--gold-500);
    transition: color 0.2s ease;
}

.footer-contact a:hover {
    color: var(--cream-50);
}

.footer-bottom {
    border-top: 1px solid rgba(250, 249, 246, 0.1);
    padding-top: var(--space-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.footer-bottom p {
    font-size: 0.8125rem;
    color: rgba(250, 249, 246, 0.4);
}

.footer-disclaimer {
    max-width: 480px;
    text-align: right;
}

/* ============================================
   SCROLL REVEAL (progressive enhancement)
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr 0.6fr;
        gap: var(--space-lg);
    }
    
    .hiw-layout {
        grid-template-columns: 1fr;
    }
    
    .hiw-content {
        position: static;
    }
    
    .about-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .location-grid {
        grid-template-columns: 1fr 0.8fr;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
    
    .main-nav {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--cream-50);
        border-bottom: 1px solid var(--cream-200);
        padding: var(--space-md);
        transform: translateY(-120%);
        transition: transform 0.3s ease;
        box-shadow: var(--shadow-md);
    }
    
    .main-nav.open {
        transform: translateY(0);
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: var(--space-sm);
    }
    
    .main-nav a {
        display: block;
        padding: 0.5rem 0;
        font-size: 1rem;
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
        padding-top: var(--space-lg);
        padding-bottom: var(--space-xl);
    }
    
    .hero-image {
        order: -1;
    }
    
    .hero-image-frame {
        max-height: 360px;
    }
    
    .hero-accent-bar {
        display: none;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        order: -1;
    }
    
    .cta-inner {
        flex-direction: column;
        text-align: center;
    }
    
    .cta-actions {
        justify-content: center;
    }
    
    .location-grid {
        grid-template-columns: 1fr;
    }
    
    .location-visual {
        order: -1;
        min-height: 250px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-disclaimer {
        text-align: center;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .hero-headline {
        font-size: 2rem;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .hero-stats {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-sm);
    }
    
    .stat-divider {
        display: none;
    }
    
    .service-card {
        padding: var(--space-md);
    }
    
    .btn-lg {
        width: 100%;
    }
    
    .cta-actions {
        flex-direction: column;
    }
}
