/* ==========================================================================
   BUY TRAVEL INSURANCE AGENCY — Design System
   Signature: "Boarding Pass" — perforated ticket dividers + circular visa
   stamps as trust marks. Deep ink-teal + brass-gold, cool paper background.
   ========================================================================== */

:root {
  /* Color — deep cobalt ink, warm brass, a vivid coral for urgency/CTAs */
  --ink: #0B2D6B;
  --ink-2: #1447A6;
  --ink-deep: #071D45;
  --paper: #FFFFFF;
  --paper-2: #FFFFFF;
  --brass: #2E6FF2;
  --brass-light: #6FA0FF;
  --coral: #D62839;
  --coral-light: #E85D6A;
  --line: #E2E8F5;
  --text: #0B1A3A;
  --text-soft: #4E5B7E;
  --text-on-ink: #F2F6FF;
  --shadow-sm: 0 2px 8px rgba(11,45,107,0.08);
  --shadow-md: 0 12px 32px rgba(11,45,107,0.14);
  --shadow-lg: 0 24px 60px rgba(7,29,69,0.24);

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --radius: 3px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.12;
  margin: 0 0 0.5em;
  letter-spacing: -0.015em;
}
h1 { font-size: clamp(2.6rem, 5.8vw, 4.1rem); font-weight: 500; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.35rem); }
h3 { font-size: 1.32rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; color: var(--text-soft); }
strong { color: var(--text); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass);
  display: inline-block;
  margin-bottom: 0.7em;
  font-weight: 500;
}

/* ---------- Header / Nav ---------- */
.site-header {
  background: linear-gradient(120deg, var(--ink), var(--ink-deep));
  color: var(--text-on-ink);
  position: sticky; top: 0; z-index: 50;
  border-bottom: 3px solid var(--brass);
  box-shadow: var(--shadow-md);
}
a:focus-visible, button:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }
.nav-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0;
  gap: 20px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-size: 1.25rem; font-weight: 600;
  color: var(--text-on-ink);
  text-decoration: none;
  white-space: nowrap;
}
.brand .stamp-mini {
  width: 30px; height: 30px; border-radius: 50%;
  border: 1.5px solid var(--brass-light);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 0.6rem; color: var(--brass-light);
}
.main-nav { display: flex; gap: 22px; flex-wrap: wrap; }
.main-nav a {
  text-decoration: none; color: var(--text-on-ink);
  font-size: 0.92rem; opacity: 0.85;
  border-bottom: 1px solid transparent;
  padding-bottom: 3px;
  transition: opacity .15s, border-color .15s;
}
.main-nav a:hover { opacity: 1; border-color: var(--brass); }
.main-nav a.nav-highlight {
  opacity: 1 !important; color: #fff; background: var(--brass);
  padding: 5px 12px; border-radius: 20px; font-weight: 700; border-bottom: none !important;
}
.main-nav a.nav-highlight:hover { background: #4D82F5; }
@media (max-width: 900px) {
  .main-nav a.nav-highlight { display: inline-block; width: auto; margin: 6px 0; }
}
.nav-actions { display: flex; align-items: center; gap: 14px; }
.lang-switch {
  font-family: var(--font-mono); font-size: 0.78rem;
  color: var(--text-on-ink); background: transparent;
  border: 1px solid rgba(234,242,241,0.35); border-radius: var(--radius);
  padding: 6px 10px; cursor: pointer;
}
.btn {
  display: inline-block; text-decoration: none;
  font-family: var(--font-body); font-weight: 700; font-size: 1.02rem;
  padding: 15px 28px; border-radius: var(--radius);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn-primary { background: linear-gradient(135deg, var(--brass-light), var(--brass)); color: var(--ink-deep); box-shadow: var(--shadow-sm); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(192,138,46,0.4); }
.btn-outline { border: 1.5px solid var(--ink); color: var(--ink); }
.section-ink .btn-outline, .site-header .btn-outline, .site-footer .btn-outline { border-color: var(--text-on-ink); color: var(--text-on-ink); }
.btn-outline:hover { background: rgba(234,242,241,0.1); transform: translateY(-2px); }
.hero .btn-outline { border-color: var(--ink); color: var(--ink); }
.hero .btn-outline:hover { background: rgba(10,36,114,0.06); }

/* ---------- Hero ---------- */
.hero {
  background: var(--paper);
  color: var(--text);
  padding: 56px 0 76px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 92% 8%, rgba(192,138,46,0.10), transparent 40%);
  pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; position: relative; }
.hero-trustline { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; font-size: 0.9rem; color: var(--text-soft); flex-wrap: wrap; }
.hero-trustline strong { color: var(--ink); }
.hero-trustline .stars { color: var(--brass); letter-spacing: 1px; }
.hero h1 { color: var(--ink); text-shadow: none; }
.hero h1 .accent { color: var(--coral); }
.hero p.lead { color: var(--text-soft); font-size: 1.25rem; max-width: 46ch; line-height: 1.5; }
.hero-badges { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.hero-badges .tag-pill { color: var(--text-soft); border-color: var(--line); background: var(--paper-2); }
.payment-row { display: flex; align-items: center; gap: 16px; margin-top: 30px; flex-wrap: wrap; opacity: 0.75; }
.payment-row span { font-family: var(--font-mono); font-size: 0.68rem; color: var(--text-soft); border: 1px solid var(--line); border-radius: 4px; padding: 4px 8px; background: var(--paper-2); }
.discount-ticket {
  background: var(--paper-2); color: var(--ink);
  border-radius: var(--radius);
  padding: 22px 24px;
  position: relative;
  font-family: var(--font-mono);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
}
.discount-ticket .tag { font-size: 0.68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-soft); }
.discount-ticket .code { font-size: 1.3rem; color: #fff; font-weight: 700; margin: 6px 0; display: inline-block; background: var(--ink); padding: 5px 14px; border-radius: 4px; letter-spacing: 0.03em; }
.discount-ticket .pct { font-family: var(--font-display); font-size: 2.3rem; color: var(--ink); background: linear-gradient(135deg, var(--ink), var(--ink-2)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* Perforated ticket divider — signature element */
.ticket-divider {
  height: 28px;
  background:
    radial-gradient(circle 8px at 0 50%, transparent 8px, var(--paper) 9px) repeat-y,
    var(--brass);
  background-size: 22px 22px;
  position: relative;
}
.ticket-divider::before, .ticket-divider::after {
  content: ""; position: absolute; top: 50%; width: 16px; height: 16px;
  background: var(--paper); border-radius: 50%; transform: translateY(-50%);
}
.ticket-divider::before { left: -8px; }
.ticket-divider::after { right: -8px; }

/* ---------- Sections ---------- */
section { padding: 48px 0; }
.section-alt { background: var(--paper-2); }
.section-ink { background: var(--ink); color: var(--text-on-ink); }
.section-ink h2, .section-ink h3 { color: var(--text-on-ink); }
.section-ink p { color: rgba(234,242,241,0.78); }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 700px) { .grid-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .grid-4 { grid-template-columns: 1fr; } }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }

/* Visa stamp card — signature trust element */
.stamp-card {
  border: 1px solid var(--line);
  background: var(--paper-2);
  padding: 20px 20px;
  border-radius: var(--radius);
  position: relative;
  transition: transform .18s ease, box-shadow .18s ease;
}
.stamp-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.stamp-circle {
  width: 42px; height: 42px; border-radius: 50%;
  border: 2px solid var(--brass);
  display: flex; align-items: center; justify-content: center;
  color: var(--brass); font-family: var(--font-mono); font-size: 1.1rem;
  margin-bottom: 10px;
  transform: rotate(-6deg);
  background: radial-gradient(circle, rgba(46,111,242,0.08), transparent 70%);
}

.card {
  border: 1px solid var(--line); background: var(--paper-2);
  padding: 18px; border-radius: var(--radius);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--brass); }
.card a.card-link { text-decoration: none; }
.card h3 { margin-bottom: 6px; }
.card .meta { font-family: var(--font-mono); font-size: 0.72rem; color: var(--brass); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 10px; display: block;}

.quote-embed {
  padding: 0;
}
.quote-embed iframe { display: none; }

table.compare { width: 100%; border-collapse: collapse; }
table.compare th, table.compare td {
  text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); font-size: 0.94rem;
}
table.compare th { font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-soft); }

.faq-item { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq-item summary { cursor: pointer; font-weight: 600; color: var(--ink); list-style: none; display:flex; justify-content:space-between; align-items:center; }
.faq-item summary::-webkit-details-marker { display:none; }
.faq-item summary::after { content: "+"; font-family: var(--font-mono); color: var(--brass); font-size: 1.2rem; }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { margin-top: 10px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink); color: rgba(234,242,241,0.75);
  padding: 56px 0 28px; font-size: 0.9rem;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; }
.site-footer { color: rgba(234,242,241,0.75); }
.site-footer p { color: rgba(234,242,241,0.72); }
.site-footer h4 { color: var(--text-on-ink); font-size: 0.85rem; text-transform: uppercase; letter-spacing: .08em; font-family: var(--font-mono); }
.site-footer a { color: rgba(234,242,241,0.75); text-decoration: none; display:block; margin-bottom: 8px; }
.site-footer a:hover { color: var(--brass-light); }
.footer-bottom { border-top: 1px solid rgba(234,242,241,0.15); margin-top: 40px; padding-top: 20px; display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px; font-size:0.8rem; color: rgba(234,242,241,0.68); }
.social-row { display:flex; gap: 14px; margin-top: 6px; }
.social-row a { display:flex; align-items:center; justify-content:center; width:34px; height:34px; border:1px solid rgba(234,242,241,0.4); border-radius:50%; color: rgba(234,242,241,0.85); }

/* ---------- Live chat + countdown ---------- */
.chat-bubble {
  position: fixed; bottom: 22px; right: 22px; z-index: 60;
  background: var(--brass); color: var(--ink);
  width: 58px; height: 58px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 26px rgba(0,0,0,0.25);
  cursor: pointer; border: none; font-size: 1.4rem;
}
.countdown-bar {
  background: linear-gradient(270deg, var(--coral), var(--brass), var(--ink-2), var(--coral));
  background-size: 300% 300%;
  animation: bannerShift 6s ease infinite;
  color: #fff; text-align: center;
  font-family: var(--font-mono); font-size: 0.88rem; padding: 10px 12px;
}
@keyframes bannerShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.countdown-bar strong { font-variant-numeric: tabular-nums; }
.countdown-bar a.code-link {
  color: #fff; background: rgba(0,0,0,0.22); padding: 3px 10px; border-radius: 4px;
  font-weight: 800; text-decoration: none; letter-spacing: 0.03em;
  animation: codePulse 1.6s ease-in-out infinite;
  display: inline-block;
}
@keyframes codePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

/* ---------- Trust ribbon badge (dense-comparator style, like Auras' corner rating badge) ---------- */
.trust-ribbon {
  position: relative;
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--coral); color: #fff;
  padding: 10px 18px 10px 14px;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 8px 100%, 0 calc(100% - 8px));
  font-family: var(--font-mono);
}
.trust-ribbon .score { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; }
.trust-ribbon .stars { color: #ffe27a; letter-spacing: 1px; font-size: 0.85rem; }
.trust-ribbon .rcount { font-size: 0.7rem; opacity: 0.9; line-height: 1.2; }
.info-strip {
  display: flex; flex-wrap: wrap; gap: 0;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.info-strip > div {
  flex: 1; min-width: 140px; padding: 12px 16px; border-right: 1px solid var(--line);
  font-size: 0.82rem;
}
.info-strip > div:last-child { border-right: none; }
.info-strip strong { display: block; color: var(--ink); font-family: var(--font-mono); font-size: 0.78rem; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 2px; }


.testimonial-carousel { position: relative; max-width: 720px; margin: 0 auto; overflow: hidden; }
.testimonial-track { display: flex; transition: transform .4s ease; }
.testimonial-slide { flex: 0 0 100%; padding: 8px; }
.testimonial-card {
  background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px; text-align: center;
}
.testimonial-quote { font-family: var(--font-display); font-size: 1.15rem; color: var(--ink); line-height: 1.5; margin-bottom: 18px; }
.testimonial-meta { font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-soft); }
.testimonial-sample-badge {
  display: inline-block; font-family: var(--font-mono); font-size: 0.62rem; text-transform: uppercase;
  letter-spacing: .08em; color: var(--coral); border: 1px solid var(--coral); border-radius: 20px;
  padding: 2px 10px; margin-bottom: 14px;
}
.testimonial-dots { display: flex; justify-content: center; gap: 8px; margin-top: 18px; }
.testimonial-dots button {
  width: 8px; height: 8px; border-radius: 50%; border: none; background: var(--line); cursor: pointer; padding: 0;
}
.testimonial-dots button.active { background: var(--brass); }
.testimonial-nav {
  position: absolute; top: 50%; transform: translateY(-50%); background: var(--paper-2);
  border: 1px solid var(--line); border-radius: 50%; width: 36px; height: 36px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; font-size: 1rem; color: var(--ink);
}
.testimonial-nav.prev { left: -6px; }
.testimonial-nav.next { right: -6px; }
@media (max-width: 700px) { .testimonial-nav { display: none; } }


.center { text-align: center; }
.mt-0 { margin-top: 0; }
.tag-row { display:flex; gap:8px; flex-wrap:wrap; margin: 10px 0 18px; }
.tag-pill {
  font-family: var(--font-mono); font-size: 0.68rem; text-transform: uppercase;
  letter-spacing: .06em; border: 1px solid var(--line); padding: 4px 10px; border-radius: 20px;
  color: var(--text-soft);
}
.breadcrumb { font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-soft); margin-bottom: 18px; }
.breadcrumb a { color: var(--text-soft); text-decoration: none; }
.breadcrumb a:hover { color: var(--brass); }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .grid-3, .grid-2, .footer-grid { grid-template-columns: 1fr; }
  .nav-toggle { display: flex; }
  .main-nav {
    display: none; flex-direction: column; gap: 0; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: 10px 20px 18px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.08); z-index: 40;
  }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 12px 4px; border-bottom: 1px solid var(--line); width: 100%; }
  .site-header .nav-row { position: relative; flex-wrap: wrap; }
  .nav-actions { gap: 10px; }
  .lang-switch { display: none !important; }
}
@media (min-width: 901px) {
  .nav-toggle { display: none; }
}
.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 34px; height: 30px; background: none; border: none; cursor: pointer; padding: 0;
}
.nav-toggle span { display: block; width: 100%; height: 2px; background: var(--ink); transition: transform .2s, opacity .2s; }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
html[dir="rtl"] .main-nav a { text-align: right; }

/* ---------- RTL support (Arabic) ---------- */
html[dir="rtl"] body { text-align: right; }
html[dir="rtl"] .nav-row { flex-direction: row-reverse; }
html[dir="rtl"] .main-nav { flex-direction: row-reverse; }
html[dir="rtl"] .nav-actions { flex-direction: row-reverse; }
html[dir="rtl"] .hero-grid { direction: rtl; }
html[dir="rtl"] .hero-badges { flex-direction: row-reverse; }
html[dir="rtl"] .footer-grid { direction: rtl; text-align: right; }
html[dir="rtl"] .social-row { flex-direction: row-reverse; }
html[dir="rtl"] .footer-bottom { flex-direction: row-reverse; }
html[dir="rtl"] .grid-3, html[dir="rtl"] .grid-2 { direction: rtl; }
html[dir="rtl"] .stamp-card, html[dir="rtl"] .card { text-align: right; }
html[dir="rtl"] .breadcrumb { direction: rtl; }
html[dir="rtl"] .tag-row { flex-direction: row-reverse; justify-content: flex-end; }
html[dir="rtl"] table.compare { direction: rtl; }
html[dir="rtl"] .btn { direction: rtl; }
html[dir="rtl"] ul, html[dir="rtl"] ol { padding-right: 1.2em; padding-left: 0; }

/* ---------- CJK typography (Chinese / Japanese) ---------- */
html[lang="zh"] body, html[lang="zh"] h1, html[lang="zh"] h2, html[lang="zh"] h3, html[lang="zh"] h4 {
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", var(--font-body), sans-serif;
}
html[lang="ja"] body, html[lang="ja"] h1, html[lang="ja"] h2, html[lang="ja"] h3, html[lang="ja"] h4 {
  font-family: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", var(--font-body), sans-serif;
}
html[lang="ar"] body, html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3, html[lang="ar"] h4 {
  font-family: "Noto Sans Arabic", "Tahoma", var(--font-body), sans-serif;
}

/* ---------- Country directory (collapsible, by continent) ---------- */
.country-directory { display: grid; gap: 10px; }
.country-continent {
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-2);
  padding: 4px 0;
}
.country-continent summary {
  cursor: pointer; list-style: none; padding: 14px 18px;
  font-family: var(--font-display); font-size: 1.1rem; color: var(--ink);
  display: flex; justify-content: space-between; align-items: center;
}
.country-continent summary::-webkit-details-marker { display: none; }
.country-continent summary::after { content: "+"; font-family: var(--font-mono); color: var(--brass); font-size: 1.3rem; }
.country-continent[open] summary::after { content: "–"; }
.country-continent .ccount { font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-soft); margin-right: auto; margin-left: 10px; }
.country-continent > div.tag-row { padding: 0 18px 16px; }
