/* ===================================
   LibertyX Bitcoin ATM - Stylesheet
   Classic & Elegant Design System
   =================================== */

/* CSS Custom Properties */
:root {
    /* Color Palette - Deep Navy & Warm Gold */
    --navy-950: #040d1a;
    --navy-900: #0a1628;
    --navy-800: #0f1f36;
    --navy-700: #162a45;
    --navy-600: #1e3a5c;
    --navy-500: #264a73;
    
    --gold-500: #D4A843;
    --gold-600: #b8922f;
    --gold-700: #9a7a26;
    --gold-100: #f5e6c8;
    --gold-50: #fdf6e3;
    
    /* Neutrals */
    --white: #ffffff;
    --gray-50: #fafafa;
    --gray-100: #f5f5f5;
    --gray-200: #e5e5e5;
    --gray-300: #d4d4d4;
    --gray-400: #a3a3a3;
    --gray-500: #737373;
    --gray-600: #525252;
    --gray-700: #404040;
    --gray-800: #262626;
    --gray-900: #171717;
    
    /* Typography */
    --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-sans: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    /* Spacing Scale */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;
    
    /* Borders & Shadows */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    
    --shadow-sm: 0 1px 2px rgba(10, 22, 40, 0.05);
    --shadow-md: 0 4px 12px rgba(10, 22, 40, 0.08);
    --shadow-lg: 0 8px 30px rgba(10, 22, 40, 0.12);
    --shadow-xl: 0 20px 50px rgba(10, 22, 40, 0.15);
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms ease;
}

/* 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(--gray-800);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-base);
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

ul {
    list-style: none;
}

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

@media (min-width: 768px) {
    .container {
        padding: 0 var(--space-2xl);
    }
}

/* ===================================
   Navigation
   =================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 22, 40, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(212, 168, 67, 0.15);
    transition: all var(--transition-base);
}

.navbar.scrolled {
    background: rgba(10, 22, 40, 0.98);
    box-shadow: var(--shadow-lg);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--white);
    letter-spacing: 0.02em;
}

.nav-logo:hover {
    color: var(--gold-500);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.nav-link {
    font-size: 0.9375rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 0.03em;
    transition: color var(--transition-base);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--gold-500);
    transition: width var(--transition-base);
}

.nav-link:hover {
    color: var(--gold-500);
}

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

.nav-link--cta {
    padding: 0.5rem 1.25rem;
    background: rgba(212, 168, 67, 0.12);
    border: 1px solid rgba(212, 168, 67, 0.3);
    border-radius: var(--radius-sm);
    color: var(--gold-500);
    transition: all var(--transition-base);
}

.nav-link--cta::after {
    display: none;
}

.nav-link--cta:hover {
    background: rgba(212, 168, 67, 0.2);
    border-color: var(--gold-500);
}

/* Mobile Menu Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: var(--space-sm);
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: all var(--transition-base);
}

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

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

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

@media (max-width: 767px) {
    .nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(10, 22, 40, 0.98);
        flex-direction: column;
        padding: var(--space-xl);
        gap: var(--space-md);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-base);
        border-bottom: 1px solid rgba(212, 168, 67, 0.15);
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-link {
        font-size: 1.1rem;
        padding: var(--space-sm) 0;
    }
    
    .nav-link--cta {
        margin-top: var(--space-sm);
        text-align: center;
    }
}

/* ===================================
   Hero Section
   =================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

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

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(4, 13, 26, 0.85) 0%,
        rgba(10, 22, 40, 0.9) 50%,
        rgba(10, 22, 40, 0.95) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: calc(72px + var(--space-4xl)) 0 var(--space-4xl);
    max-width: 800px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 0.5rem 1rem;
    background: rgba(212, 168, 67, 0.12);
    border: 1px solid rgba(212, 168, 67, 0.25);
    border-radius: 100px;
    color: var(--gold-500);
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: var(--space-xl);
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: var(--space-lg);
    letter-spacing: -0.02em;
}

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

.hero-subtitle {
    font-size: clamp(1.0625rem, 2vw, 1.25rem);
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.7;
    margin-bottom: var(--space-2xl);
    max-width: 580px;
}

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

.hero-stats {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
    padding-top: var(--space-2xl);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.stat-number {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--gold-500);
}

.stat-label {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.15);
}

.hero-scroll {
    position: absolute;
    bottom: var(--space-xl);
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.5);
    animation: bounce 2s ease infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-8px);
    }
    60% {
        transform: translateX(-50%) translateY(-4px);
    }
}

/* ===================================
   Buttons
   =================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 0.875rem 1.75rem;
    font-size: 0.9375rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    border-radius: var(--radius-sm);
    transition: all var(--transition-base);
    cursor: pointer;
}

.btn--primary {
    background: var(--gold-500);
    color: var(--navy-950);
    border: 2px solid var(--gold-500);
}

.btn--primary:hover {
    background: var(--gold-600);
    border-color: var(--gold-600);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 168, 67, 0.3);
}

.btn--outline {
    background: transparent;
    color: var(--white);
    border: 1.5px solid rgba(255, 255, 255, 0.35);
}

.btn--outline:hover {
    border-color: var(--gold-500);
    color: var(--gold-500);
    transform: translateY(-2px);
}

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

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

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

/* ===================================
   Section Common Styles
   =================================== */
.section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto var(--space-3xl);
}

.section-header--light {
    color: var(--white);
}

.section-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold-500);
    margin-bottom: var(--space-md);
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    color: var(--navy-900);
    line-height: 1.2;
    margin-bottom: var(--space-lg);
    letter-spacing: -0.02em;
}

.section-header--light .section-title {
    color: var(--white);
}

.section-subtitle {
    font-size: 1.0625rem;
    color: var(--gray-600);
    line-height: 1.7;
}

.section-header--light .section-subtitle {
    color: rgba(255, 255, 255, 0.7);
}

/* ===================================
   Services Section
   =================================== */
.services {
    padding: var(--space-4xl) 0;
    background: var(--gray-50);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-xl);
}

.service-card {
    background: var(--white);
    padding: var(--space-2xl);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    transition: all var(--transition-base);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(212, 168, 67, 0.3);
}

.service-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(212, 168, 67, 0.08);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-lg);
}

.service-title {
    font-family: var(--font-serif);
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--navy-900);
    margin-bottom: var(--space-md);
}

.service-desc {
    font-size: 0.9375rem;
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: var(--space-lg);
}

.service-features {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.service-features li {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.875rem;
    color: var(--gray-700);
}

.service-features li::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--gold-500);
    border-radius: 50%;
    flex-shrink: 0;
}

/* ===================================
   How It Works Section
   =================================== */
.how-it-works {
    padding: var(--space-4xl) 0;
    background: var(--navy-900);
    position: relative;
    overflow: hidden;
}

.how-it-works::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 20% 50%, rgba(212, 168, 67, 0.06) 0%, transparent 60%);
    pointer-events: none;
}

.steps-grid {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: var(--space-xl);
}

.step-number {
    font-family: var(--font-serif);
    font-size: 3rem;
    font-weight: 700;
    color: var(--gold-500);
    line-height: 1;
    opacity: 0.6;
    flex-shrink: 0;
    min-width: 80px;
}

.step-content {
    flex: 1;
}

.step-title {
    font-family: var(--font-serif);
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: var(--space-sm);
}

.step-desc {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.7;
}

.step-connector {
    display: none;
}

@media (min-width: 768px) {
    .steps-grid {
        flex-direction: row;
        align-items: center;
    }
    
    .step {
        flex-direction: column;
        align-items: center;
        text-align: center;
        flex: 1;
    }
    
    .step-number {
        font-size: 2.5rem;
        min-width: auto;
    }
    
    .step-connector {
        display: block;
        flex-shrink: 0;
    }
}

/* ===================================
   About Section
   =================================== */
.about {
    padding: var(--space-4xl) 0;
    background: var(--white);
}

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

.about-image {
    position: relative;
}

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

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

.about-accent {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 120px;
    height: 120px;
    background: var(--gold-500);
    border-radius: var(--radius-lg);
    z-index: -1;
}

.about-content {
    max-width: 560px;
}

.about-text {
    font-size: 1rem;
    color: var(--gray-600);
    line-height: 1.8;
    margin-bottom: var(--space-lg);
}

.about-values {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    margin-top: var(--space-2xl);
}

.value-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
}

.value-item svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.value-item strong {
    display: block;
    font-size: 1rem;
    color: var(--navy-900);
    margin-bottom: 2px;
}

.value-item span {
    font-size: 0.875rem;
    color: var(--gray-500);
    line-height: 1.5;
}

@media (min-width: 900px) {
    .about-image-wrapper img {
        height: 560px;
    }
}

/* ===================================
   CTA Section
   =================================== */
.cta {
    padding: var(--space-4xl) 0;
    background: linear-gradient(135deg, var(--navy-800) 0%, var(--navy-900) 100%);
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(212, 168, 67, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

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

.cta-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 600;
    color: var(--white);
    margin-bottom: var(--space-lg);
    line-height: 1.2;
}

.cta-text {
    font-size: 1.0625rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    margin-bottom: var(--space-2xl);
}

.cta-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-md);
}

/* ===================================
   Contact Section
   =================================== */
.contact {
    padding: var(--space-4xl) 0;
    background: var(--gray-50);
}

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

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

.contact-card {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    padding: var(--space-xl);
    background: var(--white);
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-200);
    transition: all var(--transition-base);
}

.contact-card:hover {
    border-color: rgba(212, 168, 67, 0.3);
    box-shadow: var(--shadow-md);
}

.contact-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(212, 168, 67, 0.08);
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.contact-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gray-500);
    margin-bottom: 4px;
}

.contact-value {
    font-size: 1rem;
    color: var(--navy-900);
    font-weight: 500;
    line-height: 1.6;
}

.contact-link {
    color: var(--navy-900);
    transition: color var(--transition-base);
}

.contact-link:hover {
    color: var(--gold-600);
}

.contact-map {
    min-height: 350px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-200);
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    min-height: 350px;
}

@media (min-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr 1.2fr;
    }
}

/* ===================================
   Footer
   =================================== */
.footer {
    background: var(--navy-950);
    padding: var(--space-3xl) 0 var(--space-xl);
}

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

.footer-brand {
    max-width: 320px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: var(--space-md);
}

.footer-logo:hover {
    color: var(--gold-500);
}

.footer-tagline {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.7;
}

.footer-heading {
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: var(--space-md);
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-links a {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.55);
    transition: color var(--transition-base);
}

.footer-links a:hover {
    color: var(--gold-500);
}

.footer-phone {
    display: inline-block;
    margin-top: var(--space-sm);
    font-size: 1rem;
    font-weight: 500;
    color: var(--gold-500);
    transition: color var(--transition-base);
}

.footer-phone:hover {
    color: var(--gold-600);
}

.footer-bottom {
    padding-top: var(--space-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    text-align: center;
}

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

.footer-legal {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.3);
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr 1fr;
    }
    
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

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

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

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .hero-scroll {
        animation: none;
    }
}

/* ===================================
   Utility Classes
   =================================== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}
