/* ============================================================
   Halalpoint.com — design system
   Palette pulled directly from the brand mark:
     orange #DE7800 · green #5FA80A · teal #058D81
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;0,9..144,700;0,9..144,900;1,9..144,500;1,9..144,600&family=Public+Sans:wght@400;500;600;700;800&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root {
  /* --- brand --- */
  --ink:        #201A10;
  --ink-soft:   #3A3021;
  --paper:      #FFFDF7;
  --sand:       #F6EEDC;
  --sand-deep:  #EDE1C6;
  --orange:     #DE7800;
  --orange-deep:#A85B00;
  --orange-tint:#FCE7C9;
  --green:      #5FA80A;
  --green-deep: #3D7A05;
  --green-tint: #E4F1D1;
  --teal:       #058D81;
  --teal-deep:  #036158;
  --teal-tint:  #D8F0EC;
  --line:       rgba(32, 26, 16, 0.12);

  /* --- type --- */
  --font-display: 'Fraunces', 'Iowan Old Style', serif;
  --font-body: 'Public Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;

  --radius: 14px;
  --shadow-stamp: 0 1px 0 rgba(32,26,16,0.05), 0 8px 24px -12px rgba(32,26,16,0.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  margin: 0 0 0.4em;
  letter-spacing: -0.01em;
}
h1 { font-weight: 700; }
p { margin: 0 0 1em; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--teal-deep);
}
.eyebrow::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--teal);
}

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}

:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* ============================== RESPONSIVE SPLIT LAYOUTS ============================== */
/* Used anywhere content needs a 2-up or 3-up layout that must stack on mobile
   instead of squeezing columns down to nothing. */
.split-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.split-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.scanner-layout { display: grid; grid-template-columns: 1fr 1.15fr; gap: 44px; align-items: flex-start; }

@media (max-width: 860px) {
  .split-2, .scanner-layout { grid-template-columns: 1fr; gap: 30px; }
  .split-3 { grid-template-columns: 1fr; gap: 16px; }
}
@media (min-width: 861px) and (max-width: 980px) {
  .split-3 { grid-template-columns: repeat(2, 1fr); }
}

/* ============================== NAV ============================== */
.site-nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 253, 247, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-nav .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 21px;
  color: var(--ink);
}
.brand img { width: 38px; height: 38px; }
.brand span.tld { color: var(--orange); }

.nav-links {
  display: flex; align-items: center; gap: 30px;
  list-style: none; margin: 0; padding: 0;
  font-weight: 600; font-size: 14.5px;
}
.nav-links a {
  text-decoration: none; color: var(--ink-soft);
  padding: 8px 2px; border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.nav-links a:hover, .nav-links a.active { color: var(--orange-deep); border-color: var(--orange); }

.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--ink); color: var(--paper) !important;
  font-weight: 700; font-size: 14px;
  padding: 10px 18px; border-radius: 999px;
  text-decoration: none;
  transition: background 0.15s, transform 0.15s;
}
.nav-cta:hover { background: var(--teal-deep); transform: translateY(-1px); }

.nav-toggle { display: none; }

@media (max-width: 860px) {
  .nav-links { position: fixed; inset: 72px 0 0 0; background: var(--paper); flex-direction: column; padding: 28px; gap: 4px; transform: translateX(100%); transition: transform 0.25s ease; }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { display: block; padding: 14px 4px; font-size: 17px; border-bottom: 1px solid var(--line); }
  .nav-toggle { display: block; background: none; border: none; font-size: 24px; cursor: pointer; color: var(--ink); }
}

/* ============================== BUTTONS ============================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-weight: 700; font-size: 15px;
  padding: 13px 24px; border-radius: 999px;
  border: none; cursor: pointer; text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-primary { background: var(--orange); color: #fff; box-shadow: 0 10px 24px -10px rgba(222,120,0,0.55); }
.btn-primary:hover { background: var(--orange-deep); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--paper); border: 1.5px solid rgba(255,253,247,0.55); }
.btn-outline:hover { background: rgba(255,253,247,0.12); }
.btn-ghost { background: var(--sand); color: var(--ink); }
.btn-ghost:hover { background: var(--sand-deep); }

/* ============================== HERO ============================== */
.hero {
  position: relative;
  background:
    radial-gradient(ellipse 900px 500px at 82% -10%, rgba(222,120,0,0.35), transparent 60%),
    radial-gradient(ellipse 700px 500px at 10% 110%, rgba(95,168,10,0.28), transparent 60%),
    linear-gradient(160deg, #1B231F 0%, #17211F 35%, var(--ink) 100%);
  color: var(--paper);
  overflow: hidden;
}
.hero::before {
  /* faint dotted world-map texture */
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,253,247,0.14) 1.4px, transparent 1.4px);
  background-size: 22px 22px;
  mask-image: radial-gradient(ellipse 80% 70% at 60% 30%, black 40%, transparent 78%);
  opacity: 0.55;
}
.hero .wrap {
  position: relative;
  padding: 74px 28px 88px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(38px, 5.2vw, 60px);
  color: #fff;
}
.hero h1 em { color: var(--orange); font-style: normal; }
.hero h1 .accent-underline { text-decoration: underline; text-decoration-color: var(--green); text-decoration-thickness: 4px; text-underline-offset: 6px; }
.hero p.lede {
  font-size: 18px; color: rgba(255,253,247,0.78);
  max-width: 48ch; margin-bottom: 30px;
}
.hero .cta-row { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 34px; }
.hero .trust-row { display: flex; gap: 26px; flex-wrap: wrap; font-family: var(--font-mono); font-size: 12.5px; color: rgba(255,253,247,0.6); }
.hero .trust-row b { color: #fff; font-size: 15px; display: block; font-family: var(--font-body); }

/* Hero stamp visual */
.hero-stamp-wrap { position: relative; display: flex; align-items: center; justify-content: center; }
.hero-stamp {
  width: min(320px, 80%);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 3px dashed rgba(255,253,247,0.35);
  display: flex; align-items: center; justify-content: center;
  animation: spin-slow 40s linear infinite;
}
.hero-stamp img { width: 62%; filter: drop-shadow(0 18px 30px rgba(0,0,0,0.45)); animation: spin-slow-reverse 40s linear infinite; }
@keyframes spin-slow { to { transform: rotate(360deg); } }
@keyframes spin-slow-reverse { to { transform: rotate(-360deg); } }
.hero-orbit-tag {
  position: absolute;
  background: var(--paper); color: var(--ink);
  font-family: var(--font-mono); font-size: 12px; font-weight: 600;
  padding: 7px 12px; border-radius: 999px;
  box-shadow: var(--shadow-stamp);
  display: flex; align-items: center; gap: 6px;
}
.hero-orbit-tag .dot { width: 7px; height: 7px; border-radius: 50%; }
.tag-1 { top: 4%; left: -2%; }
.tag-1 .dot { background: var(--green); }
.tag-2 { bottom: 10%; right: -4%; }
.tag-2 .dot { background: var(--orange); }
.tag-3 { bottom: -3%; left: 18%; }
.tag-3 .dot { background: var(--teal); }

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 44px; }
  .hero-stamp-wrap { order: -1; margin-bottom: 10px; }
  .hero-stamp { width: 220px; }
}
@media (max-width: 480px) {
  .hero .wrap { padding: 36px 20px 56px; }
  .hero-orbit-tag { font-size: 11px; padding: 6px 10px; }
  .tag-1 { top: 0; left: 0; }
  .tag-2 { bottom: 4%; right: 0; }
  .tag-3 { display: none; } /* avoid crowding three floating tags on very small screens */
}

/* ============================== SECTIONS ============================== */
section { padding: 84px 0; }
@media (max-width: 700px) { section { padding: 52px 0; } }
.section-head { max-width: 620px; margin-bottom: 46px; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 38px); }
.section-head p { color: var(--ink-soft); font-size: 16.5px; }

.section-sand { background: var(--sand); }

/* Entry cards (Directory / Travel Guide / Scanner) */
.entry-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.entry-card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px 26px;
  text-decoration: none; color: var(--ink);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.entry-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-stamp); border-color: transparent; }
.entry-card .icon-badge {
  width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 18px;
}
.entry-card h3 { font-size: 21px; margin-bottom: 8px; }
.entry-card p { color: var(--ink-soft); font-size: 14.5px; margin-bottom: 16px; }
.entry-card .go { font-family: var(--font-mono); font-size: 12.5px; font-weight: 600; letter-spacing: 0.03em; }
.card-orange .icon-badge { background: var(--orange-tint); color: var(--orange-deep); }
.card-green  .icon-badge { background: var(--green-tint); color: var(--green-deep); }
.card-teal   .icon-badge { background: var(--teal-tint); color: var(--teal-deep); }
.card-orange .go { color: var(--orange-deep); }
.card-green  .go { color: var(--green-deep); }
.card-teal   .go { color: var(--teal-deep); }

@media (max-width: 860px) { .entry-grid { grid-template-columns: 1fr; } }

/* Stats strip */
.stats-strip {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.stats-strip .wrap { display: grid; grid-template-columns: repeat(4, 1fr); padding: 0; }
.stat { padding: 26px 28px; text-align: center; border-left: 1px solid var(--line); }
.stat:first-child { border-left: none; }
.stat b { display: block; font-family: var(--font-display); font-size: 32px; color: var(--orange-deep); }
.stat span { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-soft); }
@media (max-width: 700px) { .stats-strip .wrap { grid-template-columns: repeat(2, 1fr); } .stat:nth-child(3) { border-left: none; } }

/* ============================== STAMP BADGE (signature) ============================== */
.stamp {
  --stamp-color: var(--orange);
  display: inline-flex; align-items: center; justify-content: center;
  width: 64px; height: 64px; border-radius: 50%;
  border: 2.5px solid var(--stamp-color);
  color: var(--stamp-color);
  position: relative;
  flex-shrink: 0;
  transform: rotate(-6deg);
}
.stamp::before {
  content: ""; position: absolute; inset: 5px;
  border: 1px dashed var(--stamp-color); border-radius: 50%; opacity: 0.55;
}
.stamp .stamp-icon { font-size: 22px; }
.stamp-pop { animation: stamp-in 0.5s cubic-bezier(.2,1.4,.4,1) both; }
@keyframes stamp-in {
  0% { opacity: 0; transform: scale(1.6) rotate(-16deg); }
  60% { opacity: 1; }
  100% { opacity: 1; transform: scale(1) rotate(-6deg); }
}

/* ============================== LISTING CARDS ============================== */
.listing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.listing-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; display: flex; gap: 16px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.listing-card:hover { box-shadow: var(--shadow-stamp); transform: translateY(-3px); }
.listing-card .stamp { width: 52px; height: 52px; }
.listing-card .stamp .stamp-icon { font-size: 18px; }
.listing-body h4 { font-size: 16.5px; margin-bottom: 4px; }
.listing-meta { display: flex; flex-wrap: wrap; gap: 6px 10px; font-family: var(--font-mono); font-size: 12px; color: var(--ink-soft); margin-bottom: 8px; }
.listing-meta .flag { font-size: 14px; }
.listing-body p.desc { font-size: 13.5px; color: var(--ink-soft); margin: 0 0 10px; }
.pill {
  display: inline-block; font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  padding: 3px 9px; border-radius: 999px; letter-spacing: 0.02em;
}
.pill-green { background: var(--green-tint); color: var(--green-deep); }
.pill-orange { background: var(--orange-tint); color: var(--orange-deep); }
.pill-teal { background: var(--teal-tint); color: var(--teal-deep); }

@media (max-width: 980px) { .listing-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .listing-grid { grid-template-columns: 1fr; } }

/* ============================== FILTER BAR ============================== */
.filter-bar {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
  background: var(--paper); border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 8px 8px 20px; margin-bottom: 30px;
}
.filter-bar input[type="search"] {
  flex: 1; min-width: 160px; border: none; outline: none; background: transparent;
  font-family: var(--font-body); font-size: 15px; padding: 10px 0;
}
.chip-group { display: flex; gap: 8px; flex-wrap: wrap; padding: 6px 0; }
.chip {
  font-family: var(--font-mono); font-size: 12.5px; font-weight: 600;
  padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--sand); cursor: pointer; user-select: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.chip.active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.results-empty { text-align: center; padding: 60px 20px; color: var(--ink-soft); font-family: var(--font-mono); font-size: 13.5px; }

/* ============================== COUNTRY / TRAVEL CARDS ============================== */
.country-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.country-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden;
}
.country-banner {
  height: 96px;
  display: flex; align-items: flex-end; padding: 14px 18px;
  font-size: 34px;
  color: #fff;
}
.country-card h3 { font-size: 19px; margin: 16px 18px 4px; }
.country-card .sub { font-family: var(--font-mono); font-size: 12px; color: var(--ink-soft); margin: 0 18px 12px; }
.country-card p { padding: 0 18px; font-size: 14px; color: var(--ink-soft); }
.country-card .country-footer {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 18px; border-top: 1px solid var(--line); margin-top: 14px;
  font-family: var(--font-mono); font-size: 12.5px; font-weight: 600;
}
@media (max-width: 980px) { .country-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .country-grid { grid-template-columns: 1fr; } }

/* ============================== FOOTER ============================== */
.site-footer { background: var(--ink); color: rgba(255,253,247,0.7); padding: 60px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 30px; margin-bottom: 40px; }
.footer-grid h5 { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,253,247,0.45); margin-bottom: 14px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-grid a { text-decoration: none; color: rgba(255,253,247,0.78); font-size: 14.5px; }
.footer-grid a:hover { color: var(--orange); }
.footer-brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 19px; color: #fff; margin-bottom: 10px; }
.footer-brand img { width: 32px; height: 32px; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-top: 24px; border-top: 1px solid rgba(255,253,247,0.12); font-size: 13px; color: rgba(255,253,247,0.45); }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; gap: 26px; } .footer-bottom { flex-direction: column; } }
