/* ═══════════════════════════════════════════════════════
   NomadSIM Theme — assets/css/nomadsim.css  v2.0
═══════════════════════════════════════════════════════ */

:root {
  --ink:        #1c1410;
  --paper:      #f2ece4;
  --cream:      #faf6f0;
  --fire:       #e8421a;
  --fire-dark:  #c23410;
  --fire-glow:  rgba(232,66,26,0.10);
  --amber:      #f4a035;
  --sand:       #c9a882;
  --muted:      #8a7a6a;
  --border:     rgba(28,20,16,0.09);
  --card-bg:    #ffffff;
  --radius:     14px;
  --shadow:     0 2px 20px rgba(28,20,16,0.06);
  --shadow-hover:0 8px 40px rgba(28,20,16,0.12);
  --nav-h:      72px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Nunito', sans-serif;
  background: var(--cream);
  color: var(--ink);
  overflow-x: hidden;
  font-size: 16px;
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* ── NAV ─────────────────────────────────────────── */
nav {
  position: sticky !important;; top: 0; left: 0; right: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 60px;
  height: var(--nav-h);
  background: rgba(250,246,240,0.94);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .3s;
}
body.admin-bar nav             { top: 32px; }
@media (max-width:782px) {
  body.admin-bar nav           { top: 46px; }
}

.logo {
  font-family: 'Playfair Display', serif;
  font-weight: 800; font-size: 22px; letter-spacing: -0.5px;
  color: var(--ink);
  display: flex; align-items: center;
  flex-shrink: 0;
}
.logo img    { height: 34px; width: auto; }
.logo span   { color: var(--fire); }

.nav-right { display: flex; align-items: center; gap: 12px; }

/* Cart icon */
.nav-cart-btn {
  position: relative;
  display: flex; align-items: center;
  color: var(--ink); padding: 6px;
  transition: color .2s;
}
.nav-cart-btn:hover { color: var(--fire); }
.cart-count {
  position: absolute; top: -2px; right: -4px;
  background: var(--fire); color: #fff;
  font-size: 10px; font-weight: 700;
  width: 18px; height: 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  line-height: 1;
}
.cart-count:empty, .cart-count[data-count="0"] { display: none; }

.nav-links { display: flex; gap: 32px; list-style: none; align-items: center; }
.nav-links a { font-size: 14px; font-weight: 500; color: var(--muted); transition: color .2s; }
.nav-links a:hover { color: var(--ink); }
.nav-cta {
  background: var(--ink); color: #fff !important;
  padding: 10px 22px; border-radius: 50px;
  font-weight: 500; font-size: 14px;
  transition: background .2s, transform .2s !important;
}
.nav-cta:hover { background: var(--fire) !important; transform: translateY(-1px); }

/* Hamburger */
.nav-hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.nav-hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--ink); border-radius: 2px; transition: all .3s;
}
.nav-hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.active span:nth-child(2) { opacity: 0; }
.nav-hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── BUTTONS ─────────────────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--ink); color: #fff;
  padding: 15px 34px; border-radius: 50px;
  font-size: 15px; font-weight: 500; font-family: 'Nunito', sans-serif;
  border: none; cursor: pointer;
  transition: background .25s, transform .25s, box-shadow .25s;
}
.btn-primary:hover { background: var(--fire); transform: translateY(-2px); box-shadow: 0 8px 30px rgba(232,66,26,.30); color: #fff; }

.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--ink);
  padding: 15px 34px; border-radius: 50px;
  font-size: 15px; font-weight: 500; font-family: 'Nunito', sans-serif;
  border: 1.5px solid var(--border); cursor: pointer;
  transition: border-color .25s, color .25s;
}
.btn-secondary:hover { border-color: var(--ink); color: var(--ink); }

/* ── HERO ────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: grid; place-items: center;
  padding: calc(var(--nav-h) + 60px) 60px 80px;
  position: relative; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(232,66,26,.08) 0%, transparent 65%),
    radial-gradient(ellipse 40% 40% at 10% 90%, rgba(244,160,53,.06) 0%, transparent 60%),
    var(--cream);
}
.hero-inner {
  position: relative; z-index: 1;
  max-width: 1200px; width: 100%;
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
}
.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--fire-glow); border: 1px solid rgba(232,66,26,.25);
  color: var(--fire-dark); padding: 6px 16px; border-radius: 50px;
  font-size: 13px; font-weight: 500; margin-bottom: 28px;
}
.hero-tag::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--fire); animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.5;transform:scale(1.4)}
}
h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(40px, 5vw, 68px);
  font-weight: 900; line-height: 1.05;
  letter-spacing: -1.5px; color: var(--ink);
  margin-bottom: 22px;
}
h1 em { font-style: normal; color: var(--fire); }
.hero-sub {
  font-size: 18px; color: var(--muted); line-height: 1.7;
  max-width: 440px; margin-bottom: 40px; font-weight: 300;
}
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }

/* Phone mockup */
.hero-visual { display: flex; justify-content: center; align-items: center; position: relative; }
.phone-mockup {
  width: 260px; height: 480px;
  background: var(--ink); border-radius: 44px;
  position: relative; z-index: 2;
  box-shadow: 0 24px 60px rgba(28,20,16,.20), inset 0 0 0 1px rgba(255,255,255,.06);
  overflow: hidden; display: flex; flex-direction: column;
  animation: floatPhone 6s ease-in-out infinite;
}
@keyframes floatPhone {
  0%,100%{transform:translateY(0) rotate(-2deg)} 50%{transform:translateY(-16px) rotate(-2deg)}
}
.phone-notch { width: 100px; height: 28px; background: var(--ink); border-radius: 0 0 20px 20px; margin: 0 auto; }
.phone-screen { flex:1; padding:16px; background:linear-gradient(135deg,#1e100a,#281408); display:flex; flex-direction:column; gap:12px; }
.phone-header { color:rgba(255,255,255,.5); font-size:11px; text-align:center; letter-spacing:1px; }
.phone-esim-card { background:linear-gradient(135deg,var(--fire),#d43a18); border-radius:14px; padding:16px; color:#fff; }
.phone-esim-card .label { font-size:10px; opacity:.7; margin-bottom:4px; }
.phone-esim-card .country { font-family:'Playfair Display',serif; font-size:16px; font-weight:700; }
.phone-esim-card .signal { display:flex; gap:4px; margin-top:10px; }
.signal-bar { height:12px; width:4px; border-radius:2px; background:rgba(255,255,255,.3); }
.signal-bar:nth-child(1){height:5px;background:rgba(255,255,255,.9)}
.signal-bar:nth-child(2){height:8px;background:rgba(255,255,255,.9)}
.signal-bar:nth-child(3){height:11px;background:rgba(255,255,255,.9)}
.signal-bar:nth-child(4){height:12px;background:rgba(255,255,255,.4)}
.phone-data-row { display:flex; gap:8px; }
.phone-data-item { flex:1; background:rgba(255,255,255,.05); border-radius:10px; padding:10px; border:1px solid rgba(255,255,255,.06); color:rgba(255,255,255,.8); font-size:10px; }
.phone-data-item .val { font-family:'Playfair Display',serif; font-size:15px; font-weight:700; color:#fff; margin-top:2px; }
.phone-map { flex:1; border-radius:12px; overflow:hidden; position:relative; background:linear-gradient(135deg,#1e120a,#2e1a0e); }
.map-dot { position:absolute; width:10px; height:10px; border-radius:50%; background:var(--fire); box-shadow:0 0 0 4px rgba(232,66,26,.3); top:50%; left:55%; transform:translate(-50%,-50%); animation:mapPulse 2s infinite; }
@keyframes mapPulse { 0%{box-shadow:0 0 0 0 rgba(232,66,26,.5)} 100%{box-shadow:0 0 0 16px rgba(232,66,26,0)} }
.map-grid-lines { position:absolute; inset:0; opacity:.15; background:linear-gradient(rgba(232,66,26,.3) 1px,transparent 1px),linear-gradient(90deg,rgba(232,66,26,.3) 1px,transparent 1px); background-size:24px 24px; }
.floating-badge { position:absolute; background:#fff; border-radius:14px; padding:10px 16px; box-shadow:0 8px 30px rgba(0,0,0,.12); font-size:12px; font-weight:500; white-space:nowrap; display:flex; align-items:center; gap:8px; animation:floatBadge 5s ease-in-out infinite; }
.badge-1 { top:10%; right:-20px; animation-delay:0s; }
.badge-2 { bottom:20%; left:-30px; animation-delay:2.5s; }
@keyframes floatBadge { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-8px)} }

/* ── STATS BAR ───────────────────────────────────── */
.stats-bar {
  background: var(--ink); padding: 28px 60px;
  display: flex; justify-content: center;
}
.stat-item {
  flex: 1; max-width: 200px; text-align: center;
  padding: 0 36px; border-right: 1px solid rgba(255,255,255,.08);
}
.stat-item:last-child { border-right: none; }
.stat-num { font-family:'Playfair Display',serif; font-size:32px; font-weight:800; color:var(--fire); line-height:1; }
.stat-label { font-size:12px; color:rgba(255,255,255,.38); margin-top:5px; letter-spacing:.3px; }

/* ── SECTIONS ────────────────────────────────────── */
section { padding: 80px 60px; }
.section-label { font-size:11px; font-weight:600; letter-spacing:2.5px; text-transform:uppercase; color:var(--fire); margin-bottom:14px; display:block; }
.section-title { font-family:'Playfair Display',serif; font-size:clamp(28px,3vw,44px); font-weight:800; letter-spacing:-1px; line-height:1.08; color:var(--ink); max-width:560px; }
.section-sub { margin-top:14px; font-size:16px; color:var(--muted); max-width:480px; font-weight:300; line-height:1.7; }
.section-header { margin-bottom:52px; }

#destinations  { background: var(--cream); }
#how           { background: var(--paper); }
#testimonials  { background: var(--cream); }
#faq           { background: var(--paper); padding-top: 0; }

/* Search bar */
.search-bar { max-width:1200px; margin:0 auto 60px; display:flex; gap:12px; align-items:center; flex-wrap:wrap; }
.search-input-wrap { flex:1; min-width:180px; position:relative; }
.search-input-wrap input { width:100%; padding:15px 20px 15px 48px; border:1.5px solid var(--border); border-radius:14px; font-family:'Nunito',sans-serif; font-size:15px; color:var(--ink); background:#fff; outline:none; transition:border-color .2s; }
.search-input-wrap input:focus { border-color:var(--fire); }
.search-input-wrap::before { content:'🔍'; position:absolute; left:16px; top:50%; transform:translateY(-50%); font-size:16px; pointer-events:none; }
.search-filter { padding:15px 22px; border:1.5px solid var(--border); border-radius:14px; font-family:'Nunito',sans-serif; font-size:15px; color:var(--ink); background:#fff; outline:none; cursor:pointer; transition:border-color .2s; }
.search-filter:focus { border-color:var(--fire); }

/* ── DESTINATION CARDS ───────────────────────────── */
.dest-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(280px,1fr)); gap:24px; max-width:1200px; margin:0 auto; }
.dest-card { background:var(--card-bg); border-radius:var(--radius); overflow:hidden; box-shadow:var(--shadow); border:1px solid var(--border); transition:transform .25s,box-shadow .25s; cursor:pointer; text-decoration:none; color:inherit; display:block; }
.dest-card:hover { transform:translateY(-4px); box-shadow:var(--shadow-hover); border-color:transparent; }
.dest-card:focus-visible { outline:2px solid var(--fire); outline-offset:3px; }
.dest-img { height:180px; position:relative; overflow:hidden; display:flex; align-items:flex-end; padding:20px; }
.dest-bg { position:absolute; inset:0; background-size:cover; background-position:center; transition:transform .4s; }
.dest-card:hover .dest-bg { transform:scale(1.05); }
.dest-bg-overlay { position:absolute; inset:0; background:linear-gradient(to top,rgba(0,0,0,.6) 0%,transparent 60%); }
.dest-flag { font-size:32px; position:relative; z-index:1; }
.dest-body { padding:20px 24px 24px; }
.dest-country { font-family:'Playfair Display',serif; font-size:18px; font-weight:700; margin-bottom:4px; }
.dest-region { font-size:13px; color:var(--muted); margin-bottom:16px; }
.dest-meta { display:flex; justify-content:space-between; align-items:center; }
.dest-price { font-family:'Playfair Display',serif; font-size:22px; font-weight:800; color:var(--ink); }
.dest-price span { font-size:13px; font-weight:400; color:var(--muted); font-family:'Nunito',sans-serif; }
.dest-add { width:34px; height:34px; border-radius:8px; background:var(--paper); color:var(--ink); display:flex; align-items:center; justify-content:center; font-size:18px; font-weight:300; transition:all .2s; border:1px solid var(--border); cursor:pointer; flex-shrink:0; }
.dest-add:hover { background:var(--fire); color:#fff; border-color:var(--fire); }
.dest-badge { display:inline-flex; align-items:center; gap:6px; background:#fff8f0; color:var(--sand); padding:4px 10px; border-radius:20px; font-size:12px; font-weight:500; margin-bottom:8px; }
.badge-popular { background:#fff4ee; color:var(--fire-dark); }

/* ── HOW IT WORKS ────────────────────────────────── */
.steps-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:32px; max-width:1100px; margin:0 auto; position:relative; }
.steps-grid::before { content:''; position:absolute; top:32px; left:60px; right:60px; height:1px; background:repeating-linear-gradient(90deg,var(--fire) 0,var(--fire) 8px,transparent 8px,transparent 16px); opacity:.25; z-index:0; }
.step-card { position:relative; z-index:1; text-align:center; }
.step-num { width:56px; height:56px; border-radius:50%; background:var(--cream); border:1.5px solid var(--fire); display:flex; align-items:center; justify-content:center; font-size:20px; margin:0 auto 20px; }
.step-title { font-family:'Playfair Display',serif; font-size:18px; font-weight:700; margin-bottom:10px; }
.step-desc { font-size:14px; color:var(--muted); line-height:1.6; }

/* ── TESTIMONIALS ────────────────────────────────── */
.reviews-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:24px; max-width:1100px; margin:0 auto; }
.review-card { background:var(--card-bg); border-radius:var(--radius); padding:28px; box-shadow:var(--shadow); border:1px solid var(--border); transition:transform .25s; }
.review-card:hover { transform:translateY(-3px); }
.review-stars { color:#fbbf24; font-size:14px; margin-bottom:16px; letter-spacing:2px; }
.review-text { font-size:15px; color:var(--ink); line-height:1.7; margin-bottom:20px; font-weight:300; }
.reviewer { display:flex; align-items:center; gap:12px; }
.reviewer-avatar { width:42px; height:42px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:18px; font-weight:700; color:#fff; font-family:'Playfair Display',serif; flex-shrink:0; }
.reviewer-name { font-weight:600; font-size:14px; }
.reviewer-info { font-size:12px; color:var(--muted); }

/* ── FAQ ─────────────────────────────────────────── */
.faq-list { max-width:720px; margin:0 auto; display:flex; flex-direction:column; }
.faq-item { border-bottom:1px solid var(--border); }
.faq-item:first-child { border-top:1px solid var(--border); }
.faq-q { padding:20px 4px; display:flex; justify-content:space-between; align-items:center; font-weight:500; font-size:15px; cursor:pointer; color:var(--ink); user-select:none; transition:color .2s; }
.faq-q:hover { color:var(--fire); }
.faq-q:focus-visible { outline:2px solid var(--fire); outline-offset:2px; border-radius:4px; }
.faq-icon { font-size:18px; color:var(--muted); transition:transform .3s; flex-shrink:0; margin-left:20px; }
.faq-item.open .faq-icon { transform:rotate(45deg); color:var(--fire); }
.faq-a { padding:0 4px 20px; font-size:14px; color:var(--muted); line-height:1.75; }
.faq-a[hidden] { display:none; }

/* ── CTA BAND ────────────────────────────────────── */
.cta-band { margin:0 60px 80px; background:var(--ink); border-radius:20px; padding:64px 72px; display:flex; align-items:center; justify-content:space-between; gap:40px; position:relative; overflow:hidden; }
.cta-band::before { content:''; position:absolute; top:-80px; right:-80px; width:260px; height:260px; border-radius:50%; background:rgba(232,66,26,.10); pointer-events:none; }
.cta-title { font-family:'Playfair Display',serif; font-size:clamp(28px,3vw,44px); font-weight:800; color:#fff; letter-spacing:-1px; line-height:1.1; max-width:500px; }
.cta-title em { font-style:normal; color:var(--fire); }
.cta-actions { display:flex; gap:16px; align-items:center; flex-shrink:0; }

/* ── FOOTER ──────────────────────────────────────── */
footer { background:var(--ink); color:rgba(255,255,255,.4); padding:60px 60px 40px; }
.footer-top { display:grid; grid-template-columns:2fr 1fr 1fr 1fr; gap:60px; margin-bottom:60px; }
.footer-brand .logo { display:block; margin-bottom:16px; color:#fff; }
.footer-brand p { font-size:14px; line-height:1.7; max-width:260px; }
.footer-col h4 { font-family:'Playfair Display',serif; font-size:14px; font-weight:700; color:#fff; margin-bottom:20px; letter-spacing:.5px; }
.footer-col ul { list-style:none; display:flex; flex-direction:column; gap:10px; }
.footer-col a { color:rgba(255,255,255,.4); font-size:14px; transition:color .2s; }
.footer-col a:hover { color:rgba(255,255,255,.8); }
.footer-bottom { border-top:1px solid rgba(255,255,255,.08); padding-top:28px; display:flex; justify-content:space-between; align-items:center; font-size:13px; }
.footer-socials { display:flex; gap:16px; }
.social-btn { width:36px; height:36px; border-radius:50%; background:rgba(255,255,255,.07); display:flex; align-items:center; justify-content:center; color:rgba(255,255,255,.5); font-size:12px; transition:all .2s; font-style:normal; }
.social-btn:hover { background:var(--fire); color:#fff; }

/* ── ANIMATIONS ──────────────────────────────────── */
.reveal { opacity:0; transform:translateY(24px); transition:opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity:1; transform:translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { transition:none; opacity:1; transform:none; }
  .phone-mockup, .floating-badge, .map-dot, .hero-tag::before { animation:none; }
}

/* ── RESPONSIVE — TABLET (≤1024px) ──────────────── */
@media (max-width:1024px) {
  nav { padding: 0 32px; }
  .hero { padding: calc(var(--nav-h) + 40px) 32px 60px; }
  .hero-inner { grid-template-columns:1fr; gap:0; text-align:center; }
  .hero-visual { display:none; }
  .hero-sub { max-width:100%; }
  .hero-btns { justify-content:center; }
  section { padding:80px 32px; }
  .stats-bar { padding:32px; flex-wrap:wrap; justify-content:center; }
  .stat-item { border-right:none; border-bottom:1px solid rgba(255,255,255,.08); padding:16px 24px; max-width:none; }
  .stat-item:last-child { border-bottom:none; }
  .steps-grid { grid-template-columns:repeat(2,1fr); }
  .steps-grid::before { display:none; }
  .reviews-grid { grid-template-columns:1fr 1fr; }
  .footer-top { grid-template-columns:1fr 1fr; gap:40px; }
  .cta-band { margin:0 32px 80px; padding:48px; flex-direction:column; text-align:center; }
  .cta-actions { justify-content:center; flex-wrap:wrap; }
}

/* ── RESPONSIVE — MOBILE (≤640px) ───────────────── */
@media (max-width:640px) {
  :root { --nav-h: 64px; }
  nav { padding: 0 20px; }
  .nav-hamburger { display:flex; }
  .nav-links {
    display:none; flex-direction:column; gap:0;
    position:absolute; top:100%; left:0; right:0;
    background:rgba(250,246,240,.97); backdrop-filter:blur(20px);
    border-bottom:1px solid var(--border); padding:8px 0;
    box-shadow:0 8px 30px rgba(0,0,0,.08);
  }
  .nav-links.open { display:flex; }
  .nav-links li { width:100%; }
  .nav-links a { display:block; padding:14px 24px; font-size:15px; }
  .nav-cta { margin:8px 20px 12px; text-align:center; border-radius:12px; background:var(--ink); color:#fff !important; }

  .hero { padding: calc(var(--nav-h) + 24px) 20px 48px; }
  .hero-btns { flex-direction:column; }
  .btn-primary, .btn-secondary { justify-content:center; width:100%; }

  section { padding:56px 20px; }
  .stats-bar { padding:20px; }
  .stat-item { padding:12px 16px; }
  .dest-grid { grid-template-columns:1fr; }
  .steps-grid { grid-template-columns:1fr; gap:24px; }
  .reviews-grid { grid-template-columns:1fr; }
  .footer-top { grid-template-columns:1fr; gap:28px; }
  .footer-bottom { flex-direction:column; gap:20px; text-align:center; }
  .cta-band { margin:0 16px 56px; padding:32px 24px; }
  .cta-actions { flex-direction:column; width:100%; }
  .cta-actions a { text-align:center; justify-content:center; width:100%; }
  .search-bar { flex-direction:column; }
  .search-filter, .search-input-wrap { width:100%; }
}


