/* ========================================
   LibertyX Bitcoin ATM — Styles
   Deep Navy + Warm Gold | Pastel Airy
   ======================================== */

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Outfit', system-ui, -apple-system, sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: #1e293b;
    background-color: #faf9f7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

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

ul {
    list-style: none;
}

address {
    font-style: normal;
}

.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    background: #0f172a;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 0 0 8px 0;
    z-index: 1000;
    font-size: 0.875rem;
    transition: top 0.2s;
}

.skip-link:focus {
    top: 0;
}

/* --- Custom Properties --- */
:root {
    --navy-950: #0f172a;
    --navy-900: #1e293b;
    --navy-800: #334155;
    --navy-700: #475569;
    --gold-500: #d4a017;
    --gold-400: #e2b832;
    --gold-300: #f0d060;
    --gold-200: #f7e4a0;
    --gold-100: #fdf3d0;
    --cream-50: #faf9f7;
    --cream-100: #f5f3ef;
    --cream-200: #ebe8e0;
    --warm-50: #fefdfb;
    --warm-100: #fdf8ee;
    --warm-200: #f9f0d8;
    --sky-50: #f0f7ff;
    --rose-50: #fef5f5;
    --mint-50: #f0fdf9;
    --lavender-50: #f5f3ff;
    --peach-50: #fff5ee;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 4px 16px rgba(15, 23, 42, 0.08), 0 2px 6px rgba(15, 23, 42, 0.04);
    --shadow-lg: 0 12px 40px rgba(15, 23, 42, 0.1), 0 4px 12px rgba(15, 23, 42, 0.05);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Typography --- */
h1, h2, h3, h4 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 600;
    line-height: 1.2;
    color: #0f172a;
}

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

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

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn:active {
    transform: translateY(0);
}

.btn-gold {
    background: linear-gradient(135deg, #d4a017 0%, #e2b832 100%);
    color: #0f172a;
    border-color: #d4a017;
}

.btn-gold:hover {
    background: linear-gradient(135deg, #c4920f 0%, #d4a017 100%);
    box-shadow: 0 6px 24px rgba(212, 160, 23, 0.35);
}

.btn-navy {
    background: var(--navy-900);
    color: #fff;
    border-color: var(--navy-900);
}

.btn-navy:hover {
    background: var(--navy-950);
    box-shadow: 0 6px 24px rgba(15, 23, 42, 0.3);
}

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

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.7);
}

.btn-small {
    padding: 0.625rem 1.25rem;
    font-size: 0.8125rem;
}

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

/* --- Logo --- */
.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
}

.logo-mark {
    flex-shrink: 0;
}

.logo-text {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--navy-900);
    letter-spacing: -0.01em;
}

.logo-footer .logo-text {
    color: #fff;
}

/* --- Header --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(250, 249, 247, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    transition: all var(--transition);
}

.site-header.scrolled {
    background: rgba(250, 249, 247, 0.95);
    box-shadow: var(--shadow-sm);
}

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

.nav-list {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-list a {
    padding: 0.5rem 0.875rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--navy-700);
    border-radius: 50px;
    transition: all var(--transition);
}

.nav-list a:hover {
    color: var(--navy-900);
    background: var(--cream-100);
}

/* Nav Toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    position: relative;
    width: 40px;
    height: 40px;
}

.hamburger {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hamburger::before,
.hamburger::after,
.hamburger span {
    display: block;
    height: 2px;
    background: var(--navy-900);
    border-radius: 2px;
    transition: all var(--transition);
}

.hamburger::before { content: ''; }
.hamburger::after { content: ''; }
.hamburger span { display: none; }

.hamburger::before { width: 100%; }
.hamburger::after { width: 70%; margin-left: auto; }

.nav-toggle[aria-expanded="true"] .hamburger::before {
    transform: rotate(45deg);
    top: 6px;
}

.nav-toggle[aria-expanded="true"] .hamburger::after {
    width: 100%;
    transform: rotate(-45deg);
    top: auto;
    bottom: 6px;
}

/* --- Hero --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8rem 0 4rem;
    background: linear-gradient(160deg, #faf9f7 0%, #fefdfb 40%, #fdf8ee 100%);
    overflow: hidden;
}

.hero-bg-pattern {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(ellipse 600px 600px at 80% 20%, rgba(212, 160, 23, 0.06) 0%, transparent 70%),
        radial-gradient(ellipse 400px 400px at 10% 80%, rgba(30, 41, 59, 0.04) 0%, transparent 70%);
    pointer-events: none;
}

.hero-container {
    position: relative;
    z-index: 1;
}

.hero-layout {
    display: grid;
    grid-template-columns: 1fr 0.85fr;
    gap: 4rem;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--warm-100);
    border: 1px solid var(--gold-200);
    border-radius: 50px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #8a6a00;
    margin-bottom: 1.5rem;
}

.hero-headline {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--navy-950);
    letter-spacing: -0.02em;
}

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

.hero-sub {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--navy-700);
    max-width: 520px;
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 3rem;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

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

.stat-number {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--navy-900);
    line-height: 1;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--navy-700);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 0.25rem;
}

.hero-stat-divider {
    width: 1px;
    height: 36px;
    background: var(--cream-200);
}

/* Hero Visual */
.hero-visual {
    position: relative;
}

.hero-image-frame {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 520 / 640;
    background: var(--cream-200);
}

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

.hero-floating-card {
    position: absolute;
    bottom: 2rem;
    left: -2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #fff;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.floating-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--gold-100), var(--warm-200));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-500);
    flex-shrink: 0;
}

.floating-card-label {
    font-size: 0.75rem;
    color: var(--navy-700);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.floating-card-value {
    font-family: 'Playfair Display', serif;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--navy-900);
}

/* --- Section Shared --- */
.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 3.5rem;
}

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

.section-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.section-desc {
    font-size: 1.0625rem;
    color: var(--navy-700);
    line-height: 1.7;
}

/* --- Services --- */
.services {
    padding: 6rem 0;
    background: var(--cream-50);
}

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

.service-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 2rem;
    border: 1px solid var(--cream-200);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold-500), var(--gold-300));
    opacity: 0;
    transition: opacity var(--transition);
}

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

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    background: var(--warm-100);
}

.service-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1875rem;
    font-weight: 600;
    color: var(--navy-900);
    margin-bottom: 0.75rem;
}

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

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

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

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

/* --- How It Works --- */
.how-it-works {
    padding: 6rem 0;
    background: linear-gradient(180deg, var(--cream-50) 0%, var(--warm-100) 100%);
}

.steps-grid {
    display: flex;
    align-items: stretch;
    gap: 0;
}

.step-card {
    flex: 1;
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    position: relative;
    border: 1px solid var(--cream-200);
    transition: all var(--transition);
}

.step-card:hover {
    box-shadow: var(--shadow-md);
}

.step-number {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--gold-200);
    line-height: 1;
    margin-bottom: 1rem;
}

.step-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1875rem;
    font-weight: 600;
    color: var(--navy-900);
    margin-bottom: 0.625rem;
}

.step-desc {
    font-size: 0.9375rem;
    color: var(--navy-700);
    line-height: 1.65;
}

.step-connector {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 48px;
}

/* --- About --- */
.about {
    padding: 6rem 0;
    background: var(--cream-50);
}

.about-container {
    display: grid;
    grid-template-columns: 0.9fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image-wrapper {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 560 / 480;
    background: var(--cream-200);
}

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

.about-accent {
    position: absolute;
    bottom: -1.5rem;
    right: -1.5rem;
    width: 120px;
    height: 120px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--gold-100), var(--warm-200));
    z-index: -1;
}

.about-image-col {
    position: relative;
}

.about-text-col {
    max-width: 520px;
}

.about-body {
    font-size: 1rem;
    color: var(--navy-700);
    line-height: 1.75;
    margin-bottom: 1.25rem;
}

.about-trust {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 2rem;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--navy-800);
}

.trust-item svg {
    flex-shrink: 0;
}

/* --- Location --- */
.location {
    padding: 6rem 0;
    background: var(--warm-100);
}

.location-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.location-info .section-tag {
    text-align: left;
}

.location-info .section-title {
    text-align: left;
    margin-bottom: 2rem;
}

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

.address-block {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.address-block svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.address-block strong {
    display: block;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--navy-900);
    margin-bottom: 0.125rem;
}

.address-block p {
    font-size: 0.875rem;
    color: var(--navy-700);
    line-height: 1.5;
}

.location-map {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 4 / 3;
    background: var(--cream-200);
}

.map-placeholder iframe {
    width: 100%;
    height: 100%;
}

/* --- CTA --- */
.cta {
    padding: 6rem 0;
    background: var(--navy-950);
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(ellipse 500px 500px at 20% 50%, rgba(212, 160, 23, 0.12) 0%, transparent 70%),
        radial-gradient(ellipse 300px 300px at 80% 30%, rgba(212, 160, 23, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.cta-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

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

.cta-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    color: #fff;
    margin-bottom: 1rem;
}

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

.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    flex-shrink: 0;
}

/* --- Footer --- */
.site-footer {
    background: var(--navy-900);
    padding: 4rem 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

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

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

.footer-contact h4,
.footer-links h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 1rem;
}

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

.footer-contact a {
    color: var(--gold-400);
    transition: color var(--transition);
}

.footer-contact a:hover {
    color: var(--gold-300);
}

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

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

.footer-links a:hover {
    color: #fff;
}

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

.footer-bottom p {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 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-layout {
        grid-template-columns: 1fr 0.7fr;
        gap: 2.5rem;
    }

    .hero-image-frame {
        aspect-ratio: 400 / 500;
    }

    .about-container {
        gap: 2.5rem;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

    .nav-list {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(250, 249, 247, 0.98);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        flex-direction: column;
        padding: 1rem 1.5rem 1.5rem;
        gap: 0.25rem;
        border-bottom: 1px solid rgba(15, 23, 42, 0.08);
        box-shadow: var(--shadow-md);
        transform: translateY(-110%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition);
    }

    .nav-list.open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-list a {
        padding: 0.75rem 1rem;
        width: 100%;
        border-radius: var(--radius-sm);
    }

    .nav-list .btn {
        width: 100%;
        justify-content: center;
        margin-top: 0.5rem;
    }

    .hero {
        padding: 7rem 0 3rem;
        min-height: auto;
    }

    .hero-layout {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .hero-visual {
        order: -1;
        max-width: 400px;
        margin: 0 auto;
    }

    .hero-floating-card {
        left: 0;
        bottom: 1rem;
    }

    .hero-stats {
        gap: 1rem;
    }

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

    .steps-grid {
        flex-direction: column;
        gap: 1rem;
    }

    .step-connector {
        width: 100%;
        transform: rotate(90deg);
        justify-content: center;
    }

    .about-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-image-col {
        max-width: 480px;
        margin: 0 auto;
    }

    .about-text-col {
        max-width: 100%;
    }

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

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

    .location-info .section-tag,
    .location-info .section-title {
        text-align: center;
    }

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

    .cta-inner {
        flex-direction: column;
        text-align: center;
    }

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

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .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-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-stats {
        flex-wrap: wrap;
    }

    .hero-stat-divider {
        display: none;
    }

    .service-card {
        padding: 1.5rem;
    }

    .cta-actions {
        flex-direction: column;
        width: 100%;
    }

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