/* ========================================
   LibertyX Bitcoin ATM — Styles
   Classic & Elegant | Deep Navy + Warm Gold
   ======================================== */

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

:root {
    --navy-950: #060E1A;
    --navy-900: #0A1628;
    --navy-800: #0F1F36;
    --navy-700: #162A4A;
    --navy-600: #1E3660;
    --navy-500: #264273;
    
    --gold-500: #C9A84C;
    --gold-400: #D4B85E;
    --gold-300: #E0C970;
    --gold-200: #EBD982;
    --gold-100: #F5EAB4;
    
    --cream-50: #FAF8F5;
    --cream-100: #F5F2ED;
    --cream-200: #EDE8E0;
    
    --text-dark: #0A1628;
    --text-light: #FAF8F5;
    --text-muted: #6B7A90;
    --text-muted-light: #8A9BB5;
    
    --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

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

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

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 500;
    line-height: 1.2;
}

/* ---------- Navigation ---------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    transition: var(--transition);
    padding: 0;
}

.navbar.scrolled {
    background: rgba(10, 22, 40, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(201, 168, 76, 0.1);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1001;
}

.logo-mark {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gold-500);
    letter-spacing: 0.05em;
    border: 1.5px solid var(--gold-500);
    padding: 4px 8px;
}

.logo-text {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-light);
    letter-spacing: 0.02em;
}

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

.nav-link {
    font-size: 0.875rem;
    font-weight: 400;
    color: rgba(250, 248, 245, 0.7);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    position: relative;
}

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

.nav-link:hover {
    color: var(--text-light);
}

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

.nav-cta {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--gold-500);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border: 1px solid var(--gold-500);
    padding: 10px 20px;
    transition: var(--transition);
}

.nav-cta:hover {
    background: var(--gold-500);
    color: var(--navy-900);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    z-index: 1001;
}

.hamburger {
    width: 24px;
    height: 1.5px;
    background: var(--text-light);
    transition: var(--transition);
    display: block;
}

.hamburger::before,
.hamburger::after {
    content: '';
    width: 24px;
    height: 1.5px;
    background: var(--text-light);
    transition: var(--transition);
    display: block;
}

.hamburger::before {
    transform: translateY(-6px);
}

.hamburger::after {
    transform: translateY(6px);
}

.nav-toggle.active .hamburger {
    background: transparent;
}

.nav-toggle.active .hamburger::before {
    transform: rotate(45deg);
}

.nav-toggle.active .hamburger::after {
    transform: rotate(-45deg);
}

/* ---------- Hero Section ---------- */
.hero {
    min-height: 100vh;
    background: var(--navy-950);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

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

.hero-pattern {
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(ellipse 80% 50% at 70% 40%, rgba(201, 168, 76, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse 60% 40% at 20% 80%, rgba(201, 168, 76, 0.04) 0%, transparent 50%);
}

.hero-pattern::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(201, 168, 76, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(201, 168, 76, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 70% 60% at 65% 50%, black 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 65% 50%, black 20%, transparent 70%);
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 24px 80px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
    width: 100%;
}

.hero-content {
    max-width: 520px;
}

.hero-eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
}

.eyebrow-line {
    width: 40px;
    height: 1px;
    background: var(--gold-500);
}

.hero-eyebrow span {
    font-size: 0.8125rem;
    font-weight: 400;
    color: var(--gold-400);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.hero-headline {
    margin-bottom: 28px;
}

.headline-line {
    display: block;
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 500;
    color: var(--text-light);
    line-height: 1.15;
}

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

.hero-subhead {
    font-size: 1.0625rem;
    line-height: 1.75;
    color: var(--text-muted-light);
    margin-bottom: 40px;
    max-width: 440px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: 0;
    transition: var(--transition);
}

.btn-primary {
    background: var(--gold-500);
    color: var(--navy-900);
}

.btn-primary:hover {
    background: var(--gold-400);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(201, 168, 76, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--text-light);
    border: 1px solid rgba(250, 248, 245, 0.25);
}

.btn-secondary:hover {
    border-color: var(--gold-500);
    color: var(--gold-500);
}

.btn-outline {
    background: transparent;
    color: var(--gold-500);
    border: 1px solid var(--gold-500);
}

.btn-outline:hover {
    background: var(--gold-500);
    color: var(--navy-900);
}

.btn-gold {
    background: var(--gold-500);
    color: var(--navy-900);
}

.btn-gold:hover {
    background: var(--gold-400);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(201, 168, 76, 0.3);
}

.btn-ghost {
    background: transparent;
    color: var(--text-light);
    border: 1px solid rgba(250, 248, 245, 0.3);
}

.btn-ghost:hover {
    border-color: var(--text-light);
    background: rgba(250, 248, 245, 0.05);
}

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

.hero-image-wrapper {
    position: relative;
}

.hero-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
    filter: brightness(0.85) contrast(1.05);
}

.hero-image-accent {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 200px;
    height: 200px;
    border: 1px solid var(--gold-500);
    z-index: -1;
}

.hero-stats {
    display: flex;
    gap: 32px;
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid rgba(250, 248, 245, 0.1);
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

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

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted-light);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 1;
}

.hero-scroll span {
    font-size: 0.6875rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted-light);
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--gold-500), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

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

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

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

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--text-dark);
    margin-bottom: 20px;
}

.section-title .text-accent {
    color: var(--gold-500);
    font-style: italic;
}

.section-subtitle {
    font-size: 1.0625rem;
    color: var(--text-muted);
    line-height: 1.75;
}

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

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

.service-card {
    background: white;
    padding: 40px 32px;
    border: 1px solid var(--cream-200);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gold-500);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(10, 22, 40, 0.08);
    border-color: transparent;
}

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

.service-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--cream-200);
    margin-bottom: 24px;
    color: var(--gold-500);
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--navy-900);
    border-color: var(--navy-900);
    color: var(--gold-500);
}

.service-title {
    font-size: 1.25rem;
    color: var(--text-dark);
    margin-bottom: 12px;
}

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

/* ---------- About Section ---------- */
.about {
    padding: 120px 0;
    background: var(--navy-900);
    position: relative;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: radial-gradient(ellipse at center right, rgba(201, 168, 76, 0.05) 0%, transparent 60%);
}

.about-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 1;
}

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

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

.about-image {
    width: 100%;
    height: 520px;
    object-fit: cover;
    filter: brightness(0.9);
}

.about-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 22, 40, 0.4) 0%, transparent 40%);
}

.about-accent-box {
    position: absolute;
    bottom: -30px;
    left: -30px;
    background: var(--gold-500);
    padding: 28px 32px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.accent-number {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--navy-900);
    line-height: 1;
}

.accent-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--navy-800);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

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

.about-content .section-title {
    color: var(--text-light);
    margin-bottom: 28px;
}

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

.about-features {
    margin-top: 36px;
    display: grid;
    gap: 16px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9375rem;
    color: var(--text-light);
}

.feature-item svg {
    color: var(--gold-500);
    flex-shrink: 0;
}

/* ---------- Location Section ---------- */
.location {
    padding: 120px 0;
    background: var(--cream-50);
}

.location-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: stretch;
}

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

.info-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 28px;
    background: white;
    border: 1px solid var(--cream-200);
    transition: var(--transition);
}

.info-card:hover {
    border-color: var(--gold-500);
    box-shadow: 0 8px 30px rgba(10, 22, 40, 0.06);
}

.info-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--cream-200);
    color: var(--gold-500);
    flex-shrink: 0;
}

.info-content h4 {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.info-content p,
.info-content a {
    font-size: 0.9375rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.info-content a:hover {
    color: var(--gold-500);
}

.location-map {
    min-height: 400px;
    border: 1px solid var(--cream-200);
    overflow: hidden;
}

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

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

.cta-bg {
    position: absolute;
    inset: 0;
}

.cta-pattern {
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(ellipse 60% 50% at 30% 50%, rgba(201, 168, 76, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse 40% 40% at 80% 30%, rgba(201, 168, 76, 0.05) 0%, transparent 50%);
}

.cta-pattern::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(201, 168, 76, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(201, 168, 76, 0.02) 1px, transparent 1px);
    background-size: 80px 80px;
}

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

.cta-content .section-title {
    color: var(--text-light);
    margin-bottom: 20px;
}

.cta-text {
    font-size: 1.0625rem;
    color: var(--text-muted-light);
    line-height: 1.75;
    margin-bottom: 40px;
}

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

/* ---------- Footer ---------- */
.footer {
    background: var(--navy-950);
    padding: 80px 0 0;
}

.footer-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 60px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(250, 248, 245, 0.08);
}

.footer-brand .logo-mark {
    margin-bottom: 16px;
    display: inline-block;
}

.footer-desc {
    font-size: 0.9375rem;
    color: var(--text-muted-light);
    line-height: 1.7;
    max-width: 280px;
}

.footer-links h4,
.footer-contact h4 {
    font-family: var(--font-serif);
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 20px;
}

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

.footer-links a {
    font-size: 0.9375rem;
    color: var(--text-muted-light);
}

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

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

.footer-contact p,
.footer-contact a {
    font-size: 0.9375rem;
    color: var(--text-muted-light);
    line-height: 1.6;
}

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

.footer-bottom {
    padding: 24px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

/* ---------- Reveal Animations ---------- */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal[data-reveal] {
    opacity: 0;
    transform: translateY(30px);
}

@media (prefers-reduced-motion: no-preference) {
    .reveal[data-reveal] {
        opacity: 0;
        transform: translateY(30px);
    }
    
    .reveal.visible {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .hero-visual {
        max-width: 480px;
    }
    
    .hero-image {
        height: 400px;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-layout {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .about-image-section {
        max-width: 480px;
    }
    
    .location-layout {
        grid-template-columns: 1fr;
    }
    
    .footer-layout {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--navy-950);
        flex-direction: column;
        justify-content: center;
        gap: 24px;
        transition: var(--transition-slow);
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-link {
        font-size: 1rem;
    }
    
    .hero-container {
        padding: 100px 24px 60px;
    }
    
    .hero-visual {
        display: none;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero-headline {
        font-size: clamp(2rem, 8vw, 3rem);
    }
    
    .hero-scroll {
        display: none;
    }
    
    .services {
        padding: 80px 0;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .about {
        padding: 80px 0;
    }
    
    .about-accent-box {
        position: relative;
        bottom: auto;
        left: auto;
        margin-top: 20px;
        display: inline-flex;
    }
    
    .location {
        padding: 80px 0;
    }
    
    .cta {
        padding: 80px 0;
    }
    
    .footer {
        padding: 60px 0 0;
    }
    
    .footer-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
    }
    
    .btn {
        justify-content: center;
        width: 100%;
    }
    
    .cta-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-actions .btn {
        width: 100%;
        max-width: 280px;
    }
}
