/* ========================================
   LibertyX Bitcoin ATM — Stylesheet
   ======================================== */

/* --- Reset & Base --- */
*, *::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;
  --cream-50: #faf8f4;
  --cream-100: #f5f0e8;
  --cream-200: #e8dfcf;
  --cream-300: #d4c4a8;
  --gold: #d4a574;
  --gold-light: #e8c49a;
  --gold-dark: #b8874e;
  --text-dark: #1a1a1a;
  --text-muted: #4a4a4a;
  --text-light: #f5f0e8;
  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --shadow-sm: 0 1px 3px rgba(6, 78, 59, 0.08);
  --shadow-md: 0 4px 20px rgba(6, 78, 59, 0.12);
  --shadow-lg: 0 8px 40px rgba(6, 78, 59, 0.16);
  --shadow-xl: 0 16px 60px rgba(6, 78, 59, 0.20);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--cream-50);
  color: var(--text-dark);
  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;
}

ul {
  list-style: none;
}

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

.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  background: var(--emerald-900);
  color: var(--cream-50);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  z-index: 1000;
  font-weight: 500;
}
.skip-link:focus {
  top: 16px;
}

.accent {
  color: var(--gold);
}

/* --- Section Shared --- */
.section-label {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--emerald-900);
  margin-bottom: 48px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 14px 28px;
  border-radius: var(--radius-xl);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn--primary {
  background: var(--emerald-900);
  color: var(--cream-50);
  border-color: var(--emerald-900);
}
.btn--primary:hover {
  background: var(--emerald-800);
  border-color: var(--emerald-800);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn--ghost {
  background: transparent;
  color: var(--cream-50);
  border-color: rgba(245, 240, 232, 0.5);
}
.btn--ghost:hover {
  background: rgba(245, 240, 232, 0.1);
  border-color: var(--cream-50);
}

.btn--ghost-light {
  background: transparent;
  color: var(--emerald-900);
  border-color: var(--emerald-900);
}
.btn--ghost-light:hover {
  background: var(--emerald-900);
  color: var(--cream-50);
  transform: translateY(-2px);
}

.btn--small {
  padding: 10px 20px;
  font-size: 0.875rem;
}

.btn--lg {
  padding: 18px 36px;
  font-size: 1.0625rem;
}

.btn--full {
  width: 100%;
  justify-content: center;
  margin-top: 8px;
}

/* --- Header --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(250, 248, 244, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(6, 78, 59, 0.08);
  transition: all var(--transition);
}
.site-header.scrolled {
  background: rgba(250, 248, 244, 0.95);
  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: 10px;
  font-family: var(--font-serif);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--emerald-900);
}
.logo .accent {
  color: var(--gold);
}

.logo-text {
  letter-spacing: -0.02em;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-list a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition);
  position: relative;
}
.nav-list a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width var(--transition);
}
.nav-list a:hover {
  color: var(--emerald-900);
}
.nav-list a:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 101;
}

.hamburger {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--emerald-900);
  position: relative;
  transition: all var(--transition);
}
.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 2px;
  background: var(--emerald-900);
  left: 0;
  transition: all var(--transition);
}
.hamburger::before { top: -7px; }
.hamburger::after { top: 7px; }

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

/* --- Hero --- */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: var(--emerald-950);
  padding: 120px 0 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(6, 95, 70, 0.6) 0%, transparent 70%),
    radial-gradient(circle at 20% 80%, rgba(212, 165, 116, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 90% 10%, rgba(6, 78, 59, 0.4) 0%, transparent 40%);
}

.hero-pattern::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23d4a574' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-card {
  background: rgba(250, 248, 244, 0.06);
  border: 1px solid rgba(212, 165, 116, 0.2);
  border-radius: var(--radius-lg);
  padding: 48px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--gold-light);
  background: rgba(212, 165, 116, 0.12);
  border: 1px solid rgba(212, 165, 116, 0.25);
  padding: 8px 16px;
  border-radius: 100px;
  margin-bottom: 28px;
}

.hero-headline {
  font-family: var(--font-serif);
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--cream-50);
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

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

.hero-sub {
  font-size: 1.125rem;
  line-height: 1.7;
  color: rgba(245, 240, 232, 0.75);
  margin-bottom: 36px;
  max-width: 480px;
}

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

/* Floating Stats */
.hero-stats {
  position: relative;
  height: 420px;
  display: none;
}

.stat-card {
  position: absolute;
  background: rgba(250, 248, 244, 0.08);
  border: 1px solid rgba(212, 165, 116, 0.2);
  border-radius: var(--radius-md);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: transform var(--transition);
}
.stat-card:hover {
  transform: translateY(-4px) !important;
}

.stat-card--1 {
  top: 0;
  right: 20%;
}
.stat-card--2 {
  top: 35%;
  right: 0;
}
.stat-card--3 {
  bottom: 25%;
  right: 25%;
}
.stat-card--4 {
  bottom: 0;
  right: 5%;
}

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

.stat-value {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--cream-50);
  line-height: 1;
}

.stat-label {
  font-size: 0.8125rem;
  color: rgba(245, 240, 232, 0.65);
  line-height: 1.3;
}

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

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

.service-card {
  background: var(--cream-100);
  border-radius: var(--radius-lg);
  padding: 40px;
  border: 1px solid transparent;
  transition: all var(--transition);
}
.service-card:hover {
  border-color: rgba(212, 165, 116, 0.3);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

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

.service-title {
  font-family: var(--font-serif);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--emerald-900);
  margin-bottom: 12px;
  line-height: 1.3;
}

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

/* --- How It Works --- */
.how-it-works {
  padding: 120px 0;
  background: var(--emerald-900);
  position: relative;
  overflow: hidden;
}
.how-it-works::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23d4a574' fill-opacity='0.04' fill-rule='evenodd'%3E%3Cpath d='M0 40L40 0H20L0 20M40 40V20L20 40'/%3E%3C/g%3E%3C/svg%3E");
}

.how-it-works .section-label { color: var(--gold-light); }
.how-it-works .section-title { color: var(--cream-50); }

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

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

.step-number {
  font-family: var(--font-serif);
  font-size: 4rem;
  font-weight: 800;
  color: rgba(212, 165, 116, 0.2);
  line-height: 1;
  margin-bottom: 16px;
}

.step-title {
  font-family: var(--font-serif);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--cream-50);
  margin-bottom: 12px;
}

.step-desc {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: rgba(245, 240, 232, 0.7);
}

.step-connector {
  position: absolute;
  top: 32px;
  right: -12px;
  width: 24px;
  height: 2px;
  background: rgba(212, 165, 116, 0.3);
}
.step-connector::after {
  content: '';
  position: absolute;
  right: -4px;
  top: -3px;
  width: 8px;
  height: 8px;
  border-right: 2px solid rgba(212, 165, 116, 0.5);
  border-top: 2px solid rgba(212, 165, 116, 0.5);
  transform: rotate(45deg);
}

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

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

.about-image {
  position: relative;
}

.about-image img {
  border-radius: var(--radius-lg);
  width: 100%;
  height: 100%;
  object-fit: cover;
  box-shadow: var(--shadow-lg);
}

.about-image-accent {
  position: absolute;
  top: -20px;
  left: -20px;
  width: 120px;
  height: 120px;
  background: var(--emerald-900);
  border-radius: var(--radius-md);
  z-index: -1;
  opacity: 0.15;
}

.about-content .section-title {
  margin-bottom: 24px;
}

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

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

.about-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--emerald-900);
}

/* --- Testimonials --- */
.testimonials {
  padding: 120px 0;
  background: var(--cream-100);
}

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

.testimonial-card {
  background: var(--cream-50);
  border-radius: var(--radius-lg);
  padding: 40px;
  border: 1px solid rgba(6, 78, 59, 0.08);
  transition: all var(--transition);
  position: relative;
}
.testimonial-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.testimonial-quote {
  font-family: var(--font-serif);
  font-size: 4rem;
  line-height: 1;
  color: var(--gold);
  position: absolute;
  top: 20px;
  left: 32px;
  opacity: 0.5;
}

.testimonial-text {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 24px;
  margin-top: 24px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 20px;
  border-top: 1px solid var(--cream-200);
}

.author-name {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--emerald-900);
}

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

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

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

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

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

.detail-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  background: var(--emerald-900);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.detail-value {
  font-family: var(--font-serif);
  font-size: 1.1875rem;
  font-weight: 600;
  color: var(--emerald-900);
  line-height: 1.5;
}
.detail-value a {
  color: var(--emerald-900);
  transition: color var(--transition);
}
.detail-value a:hover {
  color: var(--gold-dark);
}

.location-map {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.location-map img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 400px;
}
.map-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  background: var(--emerald-900);
  border-radius: 50% 50% 50% 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
}

/* --- CTA --- */
.cta {
  padding: 120px 0;
  background: var(--emerald-950);
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 80% 50%, rgba(6, 95, 70, 0.5) 0%, transparent 70%);
}

.cta-card {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 60px;
  align-items: center;
}

.cta-content .section-label { color: var(--gold-light); }
.cta-content .section-title { color: var(--cream-50); margin-bottom: 20px; }
.cta-text {
  font-size: 1.125rem;
  line-height: 1.7;
  color: rgba(245, 240, 232, 0.7);
  max-width: 480px;
}

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

/* --- Footer --- */
.site-footer {
  background: var(--emerald-950);
  border-top: 1px solid rgba(212, 165, 116, 0.15);
  padding: 64px 0 32px;
}

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

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

.footer-tagline {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: rgba(245, 240, 232, 0.6);
  max-width: 300px;
}

.footer-heading {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-links a {
  font-size: 0.9375rem;
  color: rgba(245, 240, 232, 0.65);
  transition: color var(--transition);
}
.footer-links a:hover {
  color: var(--cream-50);
}

.footer-contact address {
  font-style: normal;
  font-size: 0.9375rem;
  line-height: 1.8;
  color: rgba(245, 240, 232, 0.65);
}
.footer-contact a {
  color: var(--gold-light);
  transition: color var(--transition);
}
.footer-contact a:hover {
  color: var(--cream-50);
}

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid rgba(212, 165, 116, 0.12);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-bottom p {
  font-size: 0.8125rem;
  color: rgba(245, 240, 232, 0.45);
}
.footer-disclaimer {
  font-size: 0.75rem !important;
  color: rgba(245, 240, 232, 0.35) !important;
  max-width: 400px;
  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 (min-width: 768px) {
  .hero-stats {
    display: block;
  }
}

@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .hero-stats {
    height: 200px;
  }
  .about-grid {
    gap: 48px;
  }
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }
  .step-connector {
    display: none;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }
  .nav-list {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    height: 100dvh;
    background: var(--cream-50);
    flex-direction: column;
    justify-content: center;
    gap: 24px;
    padding: 40px;
    box-shadow: var(--shadow-xl);
    transition: right var(--transition);
  }
  .nav-list.open {
    right: 0;
  }
  .nav-list a {
    font-size: 1.125rem;
    color: var(--emerald-900);
  }
  .nav-list a::after {
    background: var(--emerald-900);
  }
  .nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 99;
  }
  .nav-overlay.active {
    display: block;
  }

  .hero {
    padding: 100px 0 60px;
    min-height: auto;
  }
  .hero-card {
    padding: 32px;
  }
  .hero-headline {
    font-size: clamp(1.75rem, 6vw, 2.5rem);
  }
  .hero-actions {
    flex-direction: column;
  }
  .hero-actions .btn {
    justify-content: center;
  }

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

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

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

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

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

  .cta-card {
    grid-template-columns: 1fr;
    gap: 36px;
    text-align: center;
  }
  .cta-text {
    margin: 0 auto;
  }
  .cta-actions {
    justify-content: center;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  .footer-disclaimer {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }
  .hero-card {
    padding: 24px;
  }
  .service-card {
    padding: 28px;
  }
  .testimonial-card {
    padding: 28px;
  }
}
