/* Sira Visa Assistance — brand: terracotta / cream / charcoal, Georgia headings, system sans body */

:root {
  --terracotta: #B5502E;
  --terracotta-dark: #8A3D22;
  --cream: #FBF4EF;
  --charcoal: #2B241F;
  --charcoal-soft: #5A5049;
  --border: #E8DDD3;
  --max-width: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--charcoal);
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .wordmark {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.5em;
}

p { margin: 0 0 1em; }

a { color: var(--terracotta); }

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

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

/* Language toggle: French shown by default, English hidden until <html> gets .lang-en.
   Only the INACTIVE language is ever forced to display:none — the active one keeps
   whatever display value its element/component classes would normally give it
   (block, inline-block, flex item, etc). !important wins over same-specificity
   component rules like .btn { display: inline-block }. */
html:not(.lang-en) .lang-en { display: none !important; }
html.lang-en .lang-fr { display: none !important; }

/* ---------- Header ---------- */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--cream);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--charcoal);
}

.brand svg { width: 30px; height: 30px; flex-shrink: 0; }

.brand-text { font-family: Georgia, serif; font-weight: 700; font-size: 1.25rem; letter-spacing: 0.03em; }
.brand-text small { display: block; font-family: -apple-system, sans-serif; font-weight: 400; font-size: 0.6rem; letter-spacing: 0.15em; color: var(--charcoal-soft); text-transform: uppercase; }

nav.main-nav { display: flex; align-items: center; gap: 24px; }
nav.main-nav a { color: var(--charcoal); text-decoration: none; font-size: 0.95rem; }
nav.main-nav a:hover { color: var(--terracotta); }

.lang-switch {
  border: 1px solid var(--terracotta);
  background: none;
  color: var(--terracotta);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 0.85rem;
  cursor: pointer;
  font-family: inherit;
}
.lang-switch:hover { background: var(--terracotta); color: var(--cream); }

.nav-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--charcoal); }

@media (max-width: 720px) {
  nav.main-nav { position: fixed; inset: 60px 0 0 0; background: var(--cream); flex-direction: column; padding: 24px; gap: 20px; transform: translateX(100%); transition: transform 0.25s ease; }
  nav.main-nav.open { transform: translateX(0); }
  .nav-toggle { display: block; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  font-family: inherit;
  transition: background 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              color 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(43, 36, 31, 0.14); }
.btn:active { transform: translateY(0) scale(0.97); box-shadow: none; }
.btn-primary { background: var(--terracotta); color: #fff; }
.btn-primary:hover { background: var(--terracotta-dark); }
.btn-outline { background: transparent; color: var(--terracotta); border-color: var(--terracotta); }
.btn-outline:hover { background: var(--terracotta); color: #fff; }
@media (prefers-reduced-motion: reduce) {
  .btn { transition: background 0.25s ease, color 0.25s ease; }
  .btn:hover, .btn:active { transform: none; box-shadow: none; }
}

/* ---------- Hero: scroll-scrubbed cinematic video ----------
   .scrollvid-wrap is tall (see JS) so there's scroll distance to scrub across;
   .scrollvid-sticky pins to the viewport while its parent scrolls past, then
   releases naturally into the rest of the page. */
.scrollvid-wrap { position: relative; height: 300vh; background: var(--charcoal); }
.scrollvid-sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; align-items: center; }
.scrollvid {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  background: var(--charcoal);
}
.scrollvid-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(43,36,31,0.55) 0%, rgba(43,36,31,0.35) 45%, rgba(43,36,31,0.65) 100%);
}
.scrollvid-sticky .hero-inner { position: relative; z-index: 2; display: block; max-width: 640px; }
.scrollvid-sticky .hero-inner h1 { color: #fff; font-size: 2.6rem; text-shadow: 0 2px 18px rgba(0,0,0,0.35); }
.scrollvid-sticky .hero-inner .lede { color: #F1E9E1; font-size: 1.1rem; max-width: 46ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
/* Reliable contrast against any video frame, unlike the plain outline button. */
.scrollvid-sticky .btn-outline { background: rgba(251,244,239,0.92); color: var(--terracotta-dark); border-color: transparent; }
.scrollvid-sticky .btn-outline:hover { background: #fff; }
.scrollvid-hint {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  z-index: 2; color: #F1E9E1; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase;
  opacity: 0.85;
}

@media (max-width: 860px) {
  .scrollvid-wrap { height: 220vh; }
  .scrollvid-sticky .hero-inner h1 { font-size: 1.9rem; }
}

/* ---------- Disclaimer banner ---------- */
.disclaimer-banner {
  background: #fff;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}
.disclaimer-banner .container { display: flex; gap: 14px; align-items: flex-start; }
.disclaimer-banner .badge {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--terracotta);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin-top: 2px;
}
.disclaimer-banner p { margin: 0; font-size: 0.9rem; color: var(--charcoal-soft); }

/* ---------- Section shell ---------- */
section { padding: 64px 0; }
section.alt { background: #fff; }
.section-head { max-width: 640px; margin: 0 auto 40px; text-align: center; }
.section-head h2 { font-size: 1.9rem; }
.section-head p { color: var(--charcoal-soft); }

/* ---------- Brand story ---------- */
.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.story-grid.story-grid-single { grid-template-columns: 1fr; max-width: 720px; margin: 0 auto; text-align: center; }
@media (max-width: 780px) { .story-grid { grid-template-columns: 1fr; } }

/* ---------- Services ---------- */
.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 26px 22px;
}
section.alt .card { background: var(--cream); }
.card .num { font-family: Georgia, serif; font-size: 1.6rem; color: var(--terracotta); font-weight: 700; }
.card h3 { font-size: 1.05rem; margin: 8px 0 8px; }
.card p { font-size: 0.92rem; color: var(--charcoal-soft); margin: 0; }
@media (max-width: 960px) { .card-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .card-grid { grid-template-columns: 1fr; } }

/* ---------- Process ---------- */
.process-list { display: flex; flex-direction: column; gap: 0; max-width: 720px; margin: 0 auto; }
.process-step { display: flex; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--border); }
.process-step:last-child { border-bottom: none; }
.process-step .step-num {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--terracotta);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: Georgia, serif; font-weight: 700;
}
.process-step h3 { font-size: 1.05rem; margin: 4px 0 4px; }
.process-step p { margin: 0; color: var(--charcoal-soft); font-size: 0.92rem; }

/* ---------- Countries ---------- */
.countries-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.countries-grid.countries-grid-single { grid-template-columns: 1fr; max-width: 640px; margin: 0 auto; }
.countries-grid h3 { font-size: 1.1rem; color: var(--terracotta-dark); text-transform: uppercase; letter-spacing: 0.06em; font-family: -apple-system, sans-serif; }
.country-item { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 0.95rem; }
.country-item span.tag { color: var(--charcoal-soft); font-size: 0.85rem; }
@media (max-width: 700px) { .countries-grid { grid-template-columns: 1fr; } }

/* ---------- Visa guide (tabs by destination country) ---------- */
.visa-tabs {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
  margin-bottom: 32px;
}
.visa-tab {
  font-family: inherit; font-size: 0.92rem; font-weight: 600;
  padding: 10px 22px; border-radius: 20px;
  border: 1px solid var(--border); background: #fff; color: var(--charcoal-soft);
  cursor: pointer;
}
.visa-tab:hover { border-color: var(--terracotta); color: var(--terracotta); }
.visa-tab.active { background: var(--terracotta); border-color: var(--terracotta); color: #fff; }

.visa-panel { display: none; max-width: 880px; margin: 0 auto; }
.visa-panel.active { display: block; }

.visa-category { margin-bottom: 32px; }
.visa-category:last-child { margin-bottom: 0; }
.visa-category h4 {
  font-family: -apple-system, sans-serif; font-size: 0.85rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em; color: var(--terracotta-dark);
  margin: 0 0 14px; padding-bottom: 8px; border-bottom: 1px solid var(--border);
}
.visa-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.visa-list li { font-size: 0.92rem; color: var(--charcoal-soft); line-height: 1.55; }
.visa-list li strong { color: var(--charcoal); }

@media (max-width: 700px) {
  .visa-tabs { gap: 8px; }
  .visa-tab { padding: 8px 16px; font-size: 0.85rem; }
}

/* ---------- Testimonials ---------- */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.testi-card { background: #fff; border: 1px dashed var(--border); border-radius: 12px; padding: 24px; text-align: center; color: var(--charcoal-soft); }
.testi-card .avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--border); margin: 0 auto 14px; }
@media (max-width: 860px) { .testi-grid { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.contact-info h3 { font-size: 1.1rem; }
.contact-info .info-row { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 18px; }
.contact-info .info-row .icon { color: var(--terracotta); flex-shrink: 0; }

form.lead-form { display: flex; flex-direction: column; gap: 14px; }
form.lead-form label { font-size: 0.85rem; font-weight: 600; color: var(--charcoal); display: block; margin-bottom: 4px; }
form.lead-form input, form.lead-form select, form.lead-form textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.95rem;
  background: #fff;
  color: var(--charcoal);
}
form.lead-form input:focus, form.lead-form select:focus, form.lead-form textarea:focus { outline: 2px solid var(--terracotta); outline-offset: 1px; }
.form-note { font-size: 0.8rem; color: var(--charcoal-soft); margin-top: 4px; }
.form-success { display: none; background: #f2ece6; border: 1px solid var(--border); border-radius: 8px; padding: 16px; font-size: 0.9rem; }
.form-success.show { display: block; }

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

/* ---------- Footer ---------- */
footer.site-footer { background: var(--charcoal); color: #E9E2DA; padding: 48px 0 28px; }
footer.site-footer .footer-top { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; margin-bottom: 28px; }
footer.site-footer .footer-brand { display: flex; align-items: center; gap: 10px; }
footer.site-footer .footer-brand svg { width: 26px; height: 26px; }
footer.site-footer .footer-brand span { font-family: Georgia, serif; font-weight: 700; font-size: 1.1rem; color: #fff; }
footer.site-footer .disclaimer-text { font-size: 0.82rem; color: #C9BEB3; max-width: 640px; }
footer.site-footer .footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
footer.site-footer .footer-links a { color: #E9E2DA; text-decoration: none; font-size: 0.9rem; }
footer.site-footer .footer-links a:hover { color: var(--terracotta); }
footer.site-footer .copyright { border-top: 1px solid #46392f; padding-top: 20px; font-size: 0.8rem; color: #9C9086; }

/* ---------- WhatsApp floating button ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 60;
  background: #25D366;
  color: #fff;
  width: 56px; height: 56px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
}
.whatsapp-float svg { width: 28px; height: 28px; }

/* ---------- Placeholder marker ---------- */
.placeholder-flag {
  display: inline-block;
  background: #FCEFC7;
  color: #7A5B00;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 8px;
  vertical-align: middle;
}

/* ---------- Scroll reveal (progressive enhancement) ----------
   The hero video is the site's one signature motion moment; everything
   below stays quiet — a restrained fade/rise on scroll, not a second
   spectacle. Degrades invisibly without JS, and is skipped entirely
   for prefers-reduced-motion. */
.reveal { opacity: 0; transform: translateY(26px); }
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
/* Gentle stagger for items that sit side-by-side in a grid/list */
.reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal:nth-child(4) { transition-delay: 0.24s; }
.reveal:nth-child(5) { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Card lift on hover/focus (subtle, warm-toned shadow) ---------- */
.card, .testi-card {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.card:hover, .card:focus-within, .testi-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 16px 36px rgba(43, 36, 31, 0.12);
}
.card:active { transform: translateY(-2px) scale(0.99); }
@media (prefers-reduced-motion: reduce) {
  .card:hover, .card:focus-within, .testi-card:hover, .card:active { transform: none; }
}

/* ---------- Destinations gallery (photo cards, clickable to the matching visa tab) ---------- */
.destinations-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.destination-card {
  position: relative;
  height: 240px;
  border-radius: 14px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: flex-end;
  font-family: inherit;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.destination-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(43,36,31,0) 38%, rgba(43,36,31,0.78) 100%);
  transition: background 0.35s ease;
}
.destination-card:hover, .destination-card:focus-visible {
  transform: translateY(-6px) scale(1.015);
  box-shadow: 0 20px 40px rgba(43, 36, 31, 0.22);
}
.destination-card:hover::after { background: linear-gradient(180deg, rgba(181,80,46,0) 30%, rgba(181,80,46,0.55) 100%); }
.destination-card__label {
  position: relative;
  z-index: 2;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  font-size: 1.1rem;
  padding: 18px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.45);
}
@media (max-width: 860px) { .destinations-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .destinations-grid { grid-template-columns: 1fr; } .destination-card { height: 180px; } }

/* ---------- About section photo ---------- */
.story-photo { border-radius: 14px; overflow: hidden; min-height: 280px; }
.story-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 780px) { .story-photo { min-height: 220px; } }

/* ---------- Founder note (text-only, no photo on file yet) ---------- */
.founder-note {
  max-width: 720px;
  margin: 48px auto 0;
  padding: 28px clamp(20px, 4vw, 36px);
  background: #fff;
  border: 1px solid var(--border);
  border-left: 3px solid var(--terracotta);
  border-radius: 12px;
}
.founder-note h3 {
  font-size: 1.05rem;
  color: var(--terracotta-dark);
  margin-bottom: 0.6em;
}
.founder-note p {
  color: var(--charcoal-soft);
  margin: 0;
  font-size: 0.96rem;
}

/* ============================================================
   MULTI-PAGE STRUCTURE (index / services / visas / about / contact)
   ============================================================ */

/* ---------- Page-to-page transitions ----------
   Native browser cross-fade on same-origin navigation (Chrome/Edge 111+).
   Progressive enhancement: unsupported browsers just navigate normally,
   no error, no missing functionality — only the fade is skipped.
   Note: on file:// this may not fire in every browser (some treat each
   file:// URL as its own origin); works reliably once hosted on a domain. */
@view-transition {
  navigation: auto;
}
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.5s;
  animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Plain fade-in on load — works everywhere, no origin restrictions,
   so every page gets at least this much polish regardless of browser. */
body { animation: pageFadeIn 0.4s ease; }
@keyframes pageFadeIn { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  body { animation: none; }
}

/* ---------- Active nav link ---------- */
.main-nav a.active,
.footer-links a.active {
  color: var(--terracotta);
  font-weight: 600;
}

/* ---------- Page hero (banner) for non-home pages ---------- */
.page-hero {
  position: relative;
  padding: 150px 0 64px;
  overflow: hidden;
}
.page-hero-bg {
  position: absolute;
  inset: -15% 0;
  background-size: cover;
  background-position: center;
  will-change: transform;
}
.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(43,36,31,0.55) 0%, rgba(43,36,31,0.72) 100%);
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero .eyebrow {
  display: block;
  color: rgba(255,255,255,0.85);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.6em;
}
.page-hero h1 {
  color: #fff;
  font-size: clamp(2rem, 4.4vw, 2.9rem);
  margin: 0 0 0.4em;
  text-shadow: 0 2px 16px rgba(0,0,0,0.35);
}
.page-hero p {
  color: rgba(255,255,255,0.92);
  max-width: 56ch;
  margin: 0;
  font-size: 1.02rem;
}

/* ---------- Visa category legend (Visas page, above the tabs) ---------- */
.visa-legend { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 48px; }
.visa-legend-card { border-radius: 14px; overflow: hidden; position: relative; height: 180px; background-size: cover; background-position: center; }
.visa-legend-card::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(43,36,31,0) 40%, rgba(43,36,31,0.75) 100%);
}
.visa-legend-card span {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 14px 16px;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  font-size: 0.95rem;
  text-shadow: 0 2px 10px rgba(0,0,0,0.4);
}
@media (max-width: 780px) { .visa-legend { grid-template-columns: 1fr; } }

/* ---------- Process page photos (Home) ---------- */
.process-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 480px; margin: 40px auto 0; }
.process-photos img { width: 100%; height: 220px; object-fit: cover; border-radius: 14px; }
.process-photos figure { margin: 0; }
.process-photos figcaption { text-align: center; font-size: 0.82rem; color: var(--charcoal-soft); margin-top: 8px; }
@media (max-width: 560px) { .process-photos { grid-template-columns: 1fr; } }

/* ---------- About page: "Our approach" photo cards ---------- */
.approach-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 32px; }
.approach-card .approach-photo { border-radius: 14px; overflow: hidden; margin-bottom: 18px; }
.approach-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.approach-card:hover img { transform: scale(1.06); }
.approach-card h3 { font-size: 1.1rem; }
.approach-card p { color: var(--charcoal-soft); margin: 0; font-size: 0.92rem; }
@media (max-width: 700px) { .approach-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .approach-card:hover img { transform: none; } }
