/* ================================================================
   saopaulo.co.il — Global Stylesheet
   RTL Hebrew | Navy #1B3A6B | Gold #C9A84C
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Heebo:wght@300;400;500;600;700;900&display=swap');

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

/* ── Accessibility: focus rings ───────────────────────────────── */
:focus-visible {
  outline: 3px solid #C9A84C;
  outline-offset: 3px;
  border-radius: 3px;
}

/* ── Skip-to-content link ─────────────────────────────────────── */
.skip-to-content {
  position: absolute;
  top: -100px;
  right: 0;
  background: #1B3A6B;
  color: #fff;
  padding: 10px 20px;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 0 0 8px 8px;
  z-index: 9999;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-to-content:focus {
  top: 0;
  outline: 3px solid #C9A84C;
}

/* ── Accessibility declaration button ────────────────────────── */
.a11y-btn {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 8000;
  background: #1B3A6B;
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  box-shadow: 0 4px 16px rgba(27,58,107,0.35);
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}
.a11y-btn:hover { background: #C9A84C; transform: scale(1.08); color: #1B3A6B; }
.a11y-btn:focus-visible { outline: 3px solid #C9A84C; outline-offset: 3px; }

/* ── Cookie consent banner ────────────────────────────────────── */
#cookie-banner {
  position: fixed;
  bottom: 0;
  right: 0;
  left: 0;
  z-index: 9000;
  background: #1B3A6B;
  color: #fff;
  padding: 16px 24px;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.18);
  animation: cookieSlideUp 0.4s ease;
}
#cookie-banner.cookie-hide {
  animation: cookieSlideDown 0.4s ease forwards;
}
@keyframes cookieSlideUp {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}
@keyframes cookieSlideDown {
  from { transform: translateY(0); }
  to   { transform: translateY(100%); }
}
.cookie-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.cookie-text {
  flex: 1;
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
  color: #e0e8ff;
}
.cookie-btns {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
  flex-wrap: wrap;
}
.cookie-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
  white-space: nowrap;
}
.cookie-btn:hover { opacity: 0.88; transform: translateY(-1px); }
.cookie-btn-accept { background: #C9A84C; color: #1B3A6B; }
.cookie-btn-reject { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,0.5); }
.cookie-btn-reject:hover { border-color: #fff; }

:root {
  --navy:   #1B3A6B;
  --navy-d: #122850;
  --gold:   #C9A84C;
  --gold-l: #E8C76A;
  --light:  #EAF0FB;
  --mid:    #D9E2F3;
  --grey:   #F5F7FA;
  --text:   #1A1A2E;
  --muted:  #5A6480;
  --white:  #FFFFFF;
  --green:  #2D6A4F;
  --green-l:#D8F3DC;
  --amber:  #856404;
  --amber-l:#FFF3CD;
  --red:    #842029;
  --red-l:  #F8D7DA;
  --teal-l: #D1ECF1;
  --teal:   #0C5460;
  --radius: 10px;
  --shadow: 0 4px 20px rgba(27,58,107,0.10);
  --shadow-lg: 0 8px 40px rgba(27,58,107,0.15);
  --transition: 0.25s ease;
  --max-w: 1100px;
  --font: 'Heebo', Arial, sans-serif;
}

html { direction: rtl; scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.75;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 100%;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold); }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Typography ───────────────────────────────────────────────── */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.3; color: var(--navy); }
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.1rem; }
p  { margin-bottom: 1.1rem; }

/* ── Utility ──────────────────────────────────────────────────── */
.text-gold   { color: var(--gold); }
.text-navy   { color: var(--navy); }
.text-muted  { color: var(--muted); font-size: 0.9rem; }
.text-center { text-align: center; }
.bold        { font-weight: 700; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 2rem; }

/* ── Navbar ───────────────────────────────────────────────────── */
.navbar {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  max-width: 1400px;
  margin: 0 auto;
  height: 64px;
}

.nav-brand {
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--white);
  letter-spacing: -0.5px;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-brand span { color: var(--gold); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  flex: 1;
  justify-content: center;
  padding-right: 8px;
  padding-left: 8px;
}

.nav-links > li > a {
  color: rgba(255,255,255,0.85);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: 6px;
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
  display: block;
}
.nav-links > li > a:hover,
.nav-links > li > a.active {
  background: rgba(255,255,255,0.12);
  color: var(--white);
}
/* eSIM CTA — standalone button outside nav-links (desktop) */
.nav-esim-cta {
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 6px 14px;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background var(--transition);
}
.nav-esim-cta:hover { background: var(--gold-l); color: var(--navy); }

/* Inside nav-links — mobile hamburger only */
.nav-links .nav-cta { display: none; }
.nav-links .nav-cta > a {
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 20px;
}

/* ── Mega Menu Dropdowns ──────────────────────────────────────── */
.nav-dropdown { position: relative; }

.nav-dropdown-toggle {
  background: none;
  border: none;
  color: rgba(255,255,255,0.85);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 6px 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  border-radius: 6px;
  transition: background var(--transition), color var(--transition);
  height: 40px;
}
.nav-dropdown-toggle:hover { background: rgba(255,255,255,0.12); color: var(--white); }
.nav-dropdown.open .nav-dropdown-toggle,
.nav-dropdown:focus-within .nav-dropdown-toggle { background: rgba(255,255,255,0.12); color: var(--white); }

.nav-arrow {
  font-size: 9px;
  opacity: 0.6;
  transition: transform 0.2s;
  display: inline-block;
  line-height: 1;
}
.nav-dropdown:hover .nav-arrow,
.nav-dropdown.open .nav-arrow { transform: rotate(180deg); opacity: 1; }

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: #0d2147;
  border-radius: 10px;
  padding: 6px 0;
  min-width: 190px;
  list-style: none;
  z-index: 1100;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 10px 28px rgba(0,0,0,0.4);
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu { display: block; }

.nav-dropdown-menu li { margin: 0; }
.nav-dropdown-menu a {
  display: block;
  padding: 9px 18px;
  color: rgba(255,255,255,0.78);
  font-size: 0.88rem;
  font-weight: 400;
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--transition), color var(--transition);
}
.nav-dropdown-menu a:hover { color: var(--white); background: rgba(255,255,255,0.08); }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--white);
  transition: transform var(--transition), opacity var(--transition);
  border-radius: 2px;
}
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ── Hero ─────────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--navy-d) 0%, var(--navy) 60%, #2a5298 100%);
  color: var(--white);
  padding: 80px 24px 90px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 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='%23ffffff' 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");
}
.hero-content { position: relative; z-index: 1; }
.hero-badge {
  display: inline-block;
  background: rgba(201,168,76,0.2);
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.hero h1 {
  color: var(--white);
  margin-bottom: 18px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.hero h1 span { color: var(--gold); }
.hero p {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.85);
  max-width: 620px;
  margin: 0 auto 32px;
  line-height: 1.7;
}
.hero-btns {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Buttons ──────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  font-family: var(--font);
  text-decoration: none;
}
.btn-primary {
  background: var(--gold);
  color: var(--navy-d);
  border-color: var(--gold);
}
.btn-primary:hover {
  background: var(--gold-l);
  color: var(--navy-d);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201,168,76,0.4);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  color: var(--white);
  border-color: var(--white);
}
.btn-navy {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn-navy:hover {
  background: var(--navy-d);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.btn-sm { padding: 8px 18px; font-size: 0.9rem; }

/* ── Section Base ─────────────────────────────────────────────── */
.section { padding: 72px 0; }
.section-alt { background: var(--grey); }
.section-dark { background: var(--navy); color: var(--white); }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark p { color: rgba(255,255,255,0.85); }

.section-header { text-align: center; margin-bottom: 48px; }
.section-header h2 { margin-bottom: 12px; }
.section-header p  { color: var(--muted); font-size: 1.05rem; max-width: 560px; margin: 0 auto; }
.section-header .divider-gold {
  width: 60px; height: 4px;
  background: var(--gold);
  border-radius: 2px;
  margin: 16px auto 0;
}

/* ── Cards ────────────────────────────────────────────────────── */
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.card-body { padding: 24px; }
.card-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: var(--light);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 16px;
}

/* Persona Cards */
.persona-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 24px;
}
.persona-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 24px;
  border: 1px solid var(--mid);
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  text-align: center;
}
.persona-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.persona-card .icon { font-size: 2.5rem; margin-bottom: 14px; }
.persona-card h3 { font-size: 1.1rem; margin-bottom: 8px; color: var(--navy); }
.persona-card p  { font-size: 0.9rem; color: var(--muted); margin: 0; }
.persona-card .tag {
  display: inline-block;
  margin-top: 14px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
}
.tag-blue  { background: var(--light); color: var(--navy); }
.tag-gold  { background: rgba(201,168,76,0.15); color: #7a5c00; }
.tag-green { background: var(--green-l); color: var(--green); }
.tag-purple{ background: #f0e6ff; color: #6b21a8; }

/* Pillar nav cards */
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 24px;
}
.pillar-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--navy);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex; flex-direction: column;
}
.pillar-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.pillar-card .p-icon { font-size: 2rem; margin-bottom: 14px; }
.pillar-card h3 { margin-bottom: 10px; font-size: 1.2rem; }
.pillar-card p  { color: var(--muted); font-size: 0.92rem; flex: 1; margin-bottom: 20px; }
.pillar-card .card-link {
  color: var(--navy); font-weight: 700;
  font-size: 0.9rem;
  display: flex; align-items: center; gap: 6px;
}
.pillar-card .card-link:hover { color: var(--gold); }

/* ── Callout Boxes ────────────────────────────────────────────── */
.callout {
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 20px 0;
  border-right: 5px solid;
  font-size: 0.97rem;
}
.callout-tip   { background: var(--amber-l); border-color: var(--gold); color: var(--amber); }
.callout-warn  { background: var(--red-l);   border-color: #dc3545;     color: var(--red); }
.callout-info  { background: var(--teal-l);  border-color: #17a2b8;     color: var(--teal); }
.callout-green { background: var(--green-l); border-color: var(--green); color: var(--green); }
.callout .callout-icon { font-size: 1.2rem; margin-left: 8px; }

/* ── Data Tables ──────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; margin: 20px 0; border-radius: var(--radius); box-shadow: var(--shadow); }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.93rem;
  background: var(--white);
}
thead th {
  background: var(--navy);
  color: var(--white);
  font-weight: 600;
  padding: 13px 16px;
  text-align: right;
}
tbody tr:nth-child(even) { background: var(--light); }
tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--mid);
  color: var(--text);
  vertical-align: top;
}
tbody tr:last-child td { border-bottom: none; }

/* ── Affiliate CTA Banner ─────────────────────────────────────── */
.affiliate-banner {
  background: linear-gradient(135deg, var(--navy) 0%, #2a5298 100%);
  border-radius: var(--radius);
  padding: 32px 28px;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 40px 0;
  flex-wrap: wrap;
}
.affiliate-banner h3 { color: var(--gold); margin-bottom: 6px; }
.affiliate-banner p  { color: rgba(255,255,255,0.8); margin: 0; font-size: 0.95rem; }

/* ── Page Hero (inner pages) ──────────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--navy-d) 0%, var(--navy) 100%);
  padding: 56px 24px 64px;
  text-align: center;
  color: var(--white);
}
.page-hero .breadcrumb {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 16px;
}
.page-hero .breadcrumb a { color: rgba(255,255,255,0.7); }
.page-hero .breadcrumb a:hover { color: var(--gold); }
.page-hero h1 { color: var(--white); margin-bottom: 14px; }
.page-hero h1 span { color: var(--gold); }
.page-hero .subtitle { color: rgba(255,255,255,0.8); font-size: 1.1rem; max-width: 600px; margin: 0 auto 0; }
.page-hero .meta-tags { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }
.page-hero .meta-tag {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.9);
  font-size: 0.8rem;
  padding: 4px 12px;
  border-radius: 20px;
}

/* ── Content Layout ───────────────────────────────────────────── */
.content-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 56px 24px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  align-items: start;
}
.content-main > h2 {
  margin-top: 40px;
  margin-bottom: 16px;
  padding-top: 16px;
  border-top: 2px solid var(--light);
}
.content-main > h2:first-child { margin-top: 0; border-top: none; }
.content-main > h3 { margin-top: 28px; margin-bottom: 12px; color: var(--muted); font-size: 1.1rem; }
.content-main ul, .content-main ol {
  margin-right: 28px;
  margin-bottom: 1rem;
}
.content-main li { margin-bottom: 6px; }

/* Sidebar */
.sidebar { position: sticky; top: 80px; }
.sidebar-card {
  background: var(--grey);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
  border: 1px solid var(--mid);
}
.sidebar-card h4 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--muted);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--gold);
}
.toc-list { list-style: none; }
.toc-list li { margin-bottom: 8px; }
.toc-list a {
  font-size: 0.9rem;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 8px;
}
.toc-list a::before {
  content: '›';
  color: var(--gold);
  font-weight: 700;
}
.toc-list a:hover { color: var(--gold); }

/* ── Footer ───────────────────────────────────────────────────── */
.footer {
  background: var(--navy-d);
  color: rgba(255,255,255,0.7);
  padding: 60px 24px 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  max-width: var(--max-w);
  margin: 0 auto 48px;
}
.footer-brand .nav-brand { font-size: 1.3rem; margin-bottom: 14px; display: block; }
.footer-brand p { font-size: 0.9rem; line-height: 1.7; }
.footer h4 {
  color: var(--gold);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 8px; }
.footer ul a { color: rgba(255,255,255,0.65); font-size: 0.9rem; }
.footer ul a:hover { color: var(--white); }
.footer-bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
  flex-wrap: wrap;
  gap: 12px;
}

/* ── Emergency Box ────────────────────────────────────────────── */
.emergency-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(160px, 100%), 1fr));
  gap: 12px;
  margin: 24px 0;
}
.emergency-card {
  background: var(--red-l);
  border: 1px solid #f5c2c7;
  border-radius: 8px;
  padding: 14px;
  text-align: center;
}
.emergency-card .num { font-size: 1.8rem; font-weight: 900; color: var(--red); }
.emergency-card .label { font-size: 0.8rem; color: var(--muted); margin-top: 4px; }

/* ── Stats bar ────────────────────────────────────────────────── */
.stats-bar {
  background: var(--light);
  padding: 28px;
  border-radius: var(--radius);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(140px, 100%), 1fr));
  gap: 20px;
  text-align: center;
  margin: 32px 0;
}
.stat-item .num { font-size: 2rem; font-weight: 900; color: var(--navy); }
.stat-item .lbl { font-size: 0.82rem; color: var(--muted); }

/* ── Hostel / Hotel Cards ─────────────────────────────────────── */
.venue-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 20px;
  margin: 24px 0;
}
.venue-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--mid);
  padding: 20px;
  box-shadow: var(--shadow);
}
.venue-card .rating {
  display: inline-block;
  background: var(--navy);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 6px;
  margin-bottom: 10px;
}
.venue-card h4 { font-size: 1rem; margin-bottom: 6px; }
.venue-card .venue-loc { font-size: 0.82rem; color: var(--muted); margin-bottom: 8px; }
.venue-card p { font-size: 0.88rem; color: var(--muted); margin: 0; }

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 900px) {
  .content-wrap { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 899px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 64px; right: 0; left: 0;
    background: var(--navy-d);
    padding: 8px 0 16px;
    gap: 0;
    z-index: 999;
    flex: unset;
    justify-content: flex-start;
    max-height: calc(100vh - 64px);
    overflow-y: auto;
  }
  .nav-links.open { display: flex; }
  .nav-links > li { width: 100%; }
  .nav-links > li > a {
    display: block;
    padding: 12px 20px;
    border-radius: 0;
    font-size: 0.95rem;
  }
  .nav-toggle { display: flex; }
  .nav-esim-cta { display: none; }
  .nav-links .nav-cta { display: block; }
  .nav-links .nav-cta > a { display: block; border-radius: 0; padding: 12px 20px; }

  /* Mobile dropdowns — accordion style */
  .nav-dropdown-toggle {
    width: 100%;
    justify-content: space-between;
    padding: 12px 20px;
    font-size: 0.95rem;
    border-radius: 0;
    height: auto;
  }
  .nav-dropdown:hover .nav-dropdown-menu { display: none; }
  .nav-dropdown.open .nav-dropdown-menu { display: block; }
  .nav-dropdown-menu {
    position: static;
    background: rgba(0,0,0,0.25);
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    border: none;
    border-top: 1px solid rgba(255,255,255,0.07);
    min-width: unset;
  }
  .nav-dropdown-menu a {
    padding: 10px 32px;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255,255,255,0.04);
  }
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .affiliate-banner { flex-direction: column; text-align: center; }
  .hero { padding: 56px 24px 64px; }
  /* Prevent any element from breaking out of the viewport */
  .section { padding: 48px 0; }
  .content-wrap { padding: 40px 16px; }
}

@media (max-width: 680px) {
  /* Prevent auto-fit grids from creating too many narrow columns on small tablets */
  .emergency-grid { grid-template-columns: repeat(2, 1fr); }
  .pillar-grid    { grid-template-columns: 1fr 1fr; }
  .persona-grid   { grid-template-columns: 1fr 1fr; }
  .venue-grid     { grid-template-columns: 1fr 1fr !important; }
}

@media (max-width: 540px) {
  .pillar-grid    { grid-template-columns: 1fr; }
  .venue-grid     { grid-template-columns: 1fr !important; }
  .emergency-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  /* Layout */
  .persona-grid { grid-template-columns: 1fr 1fr; }
  .pillar-grid  { grid-template-columns: 1fr; }
  .venue-grid   { grid-template-columns: 1fr !important; }
  .emergency-grid { grid-template-columns: 1fr 1fr; }

  /* Spacing */
  .container { padding: 0 16px; }
  .content-wrap { padding: 32px 16px; }
  .hero, .page-hero { padding-left: 16px; padding-right: 16px; }
  .affiliate-banner { padding: 24px 16px; }
  .card-body { padding: 18px; }
  .section { padding: 40px 0; }

  /* Typography */
  body { font-size: 15px; }
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.4rem; }
  h3 { font-size: 1.15rem; }

  /* Text overflow protection */
  p, li, td, th { word-break: break-word; overflow-wrap: break-word; }

  /* Tables — ensure scroll wrapper works on mobile */
  .table-wrap { -webkit-overflow-scrolling: touch; border-radius: 6px; }
  table { font-size: 0.82rem; }
  td, th { padding: 8px 10px; }
}

@media (max-width: 360px) {
  .persona-grid { grid-template-columns: 1fr; }
  .emergency-grid { grid-template-columns: 1fr; }
  h1 { font-size: 1.55rem; }
  h2 { font-size: 1.25rem; }
  body { font-size: 14px; }
}

/* ── Animations ───────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.5s ease forwards; }

/* ── Print ────────────────────────────────────────────────────── */
@media print {
  .navbar, .sidebar, .footer { display: none; }
  .content-wrap { grid-template-columns: 1fr; padding: 0; }
}
