/* ============================================
   Right Steps Immigration Consultants
   Design tokens
   ============================================ */
:root {
  --ink:        #12213D;   /* passport-cover navy */
  --ink-soft:   #29406A;
  --paper:      #F7F3EA;   /* travel-document cream */
  --paper-dim:  #ECE5D5;
  --gold:       #B8923A;   /* foil-stamp brass */
  --gold-soft:  #DCC77F;
  --stamp-red:  #A63D2F;   /* visa ink-stamp red */
  --slate:      #4A5568;

  --font-display: "Fraunces", Georgia, serif;
  --font-body:    "Inter", -apple-system, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, monospace;

  --max-w: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

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

a { color: inherit; }

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

/* ============================================
   Header
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 6vw;
  background: rgba(247, 243, 234, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(18, 33, 61, 0.1);
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
}

.brand-text {
  display: flex;
  flex-direction: column;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  line-height: 1.15;
}

.brand-text em {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate);
  font-weight: 500;
}

.site-nav { display: flex; gap: 28px; }

.site-nav a {
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.site-nav a:hover::after { transform: scaleX(1); }

.header-cta {
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--paper);
  background: var(--ink);
  padding: 10px 18px;
  border-radius: 999px;
  white-space: nowrap;
  transition: background 0.2s ease;
}

.header-cta:hover { background: var(--stamp-red); }

@media (max-width: 760px) {
  .site-nav { display: none; }
  .header-cta { font-size: 11.5px; padding: 8px 14px; }
}

/* ============================================
   Hero
   ============================================ */
.hero {
  position: relative;
  padding: 84px 6vw 96px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(90deg, rgba(18,33,61,0.05) 0 1px, transparent 1px 84px);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: var(--max-w);
  margin: 0 auto;
}

.stamp-badge {
  position: absolute;
  top: 0;
  right: 0;
  width: 108px;
  height: 108px;
  transform: rotate(9deg);
  color: var(--stamp-red);
  opacity: 0.85;
}

.stamp-badge svg { width: 100%; height: 100%; }
.stamp-badge circle { fill: none; stroke: currentColor; stroke-width: 2; }

.stamp-badge-text {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-align: center;
  padding: 0 14px;
}

@media (max-width: 640px) {
  .stamp-badge { width: 76px; height: 76px; }
  .stamp-badge-text { font-size: 7.5px; }
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(38px, 6.2vw, 72px);
  line-height: 1.04;
  margin: 0 0 26px;
  max-width: 12ch;
}

.hero h1 span { color: var(--stamp-red); font-style: italic; }

.hero-lede {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--slate);
  max-width: 46ch;
  margin: 0 0 48px;
}

.hero-ticket {
  max-width: 460px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 14px;
  padding: 26px 28px;
}

.ticket-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
}

.ticket-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-soft);
}

.ticket-value {
  font-family: var(--font-mono);
  font-size: 14.5px;
  text-align: right;
}

.ticket-link { text-decoration: none; }
.ticket-link:hover { color: var(--gold-soft); }

.ticket-perf {
  height: 1px;
  background-image: linear-gradient(90deg, rgba(247,243,234,0.28) 50%, transparent 50%);
  background-size: 8px 1px;
}

/* ============================================
   Service sections (shared)
   ============================================ */
.service {
  padding: 88px 6vw;
  max-width: var(--max-w);
  margin: 0 auto;
}

.service-header { max-width: 640px; margin-bottom: 56px; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--stamp-red);
  margin-bottom: 18px;
}

.service-header h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(26px, 3.4vw, 38px);
  line-height: 1.2;
  margin: 0 0 18px;
}

.service-header p {
  color: var(--slate);
  font-size: 16.5px;
  margin: 0;
}

/* ============================================
   Study visa — route map (signature element)
   ============================================ */
.route-map {
  position: relative;
  width: 100%;
  aspect-ratio: 1000 / 420;
  min-height: 320px;
}

.route-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.route-path {
  fill: none;
  stroke: var(--gold);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 6 10;
  stroke-dashoffset: 1400;
  opacity: 0.7;
  transition: stroke-dashoffset 2.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.route-map.in-view .route-path { stroke-dashoffset: 0; }

.stamp {
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -50%) rotate(-6deg) scale(0.6);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  border: 1.5px solid var(--stamp-red);
  color: var(--stamp-red);
  background: rgba(247, 243, 234, 0.9);
  opacity: 0;
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--d, 0s);
}

.route-map.in-view .stamp {
  opacity: 1;
  transform: translate(-50%, -50%) rotate(-6deg) scale(1);
}

.route-map .stamp:nth-child(2) { --d: 0.05s; }
.route-map .stamp:nth-child(3) { --d: 0.25s; }
.route-map .stamp:nth-child(4) { --d: 0.45s; }
.route-map .stamp:nth-child(5) { --d: 0.65s; }
.route-map .stamp:nth-child(6) { --d: 0.85s; }
.route-map .stamp:nth-child(7) { --d: 1.05s; }
.route-map .stamp:nth-child(8) { --d: 1.25s; }
.route-map .stamp:nth-child(9) { --d: 1.45s; }

.stamp:hover { transform: translate(-50%, -50%) rotate(0deg) scale(1.08); }

.stamp-code {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 17px;
  letter-spacing: 0.03em;
}

.stamp-name {
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: 2px;
  text-align: center;
  padding: 0 6px;
}

@media (max-width: 720px) {
  .route-map { aspect-ratio: auto; height: auto; min-height: 0; }
  .route-svg { display: none; }
  .route-map {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  .stamp {
    position: static;
    transform: none !important;
    width: auto;
    height: auto;
    aspect-ratio: 1;
    opacity: 1;
  }
}

/* ============================================
   Tourist visa
   ============================================ */
.tourist-visa { background: var(--paper-dim); border-radius: 28px; }

.tourist-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.tourist-card {
  background: var(--paper);
  border-radius: 16px;
  padding: 32px 28px;
  border: 1px solid rgba(18, 33, 61, 0.08);
}

.tourist-index {
  display: block;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--gold);
  margin-bottom: 18px;
}

.tourist-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  margin: 0 0 10px;
}

.tourist-card p {
  color: var(--slate);
  font-size: 15px;
  margin: 0;
}

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

/* ============================================
   Contact — boarding pass
   ============================================ */
.contact { padding: 88px 6vw 110px; }

.boarding-pass {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  background: var(--ink);
  color: var(--paper);
  border-radius: 22px;
  overflow: hidden;
}

.bp-main {
  padding: 56px;
}

.bp-main .eyebrow { color: var(--gold-soft); }

.bp-main h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(26px, 3.2vw, 36px);
  margin: 0 0 16px;
  max-width: 14ch;
}

.bp-main p {
  color: rgba(247, 243, 234, 0.72);
  max-width: 40ch;
  margin: 0 0 32px;
}

.bp-call {
  display: inline-block;
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  background: var(--gold-soft);
  padding: 14px 26px;
  border-radius: 999px;
  transition: background 0.2s ease;
}

.bp-call:hover { background: var(--paper); }

.bp-stub {
  position: relative;
  padding: 56px 40px;
  background: rgba(247, 243, 234, 0.06);
  border-left: 1px dashed rgba(247, 243, 234, 0.28);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.stub-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stub-row span {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-soft);
}

.stub-row strong {
  font-weight: 500;
  font-size: 15px;
}

.stub-barcode {
  margin-top: auto;
  height: 40px;
  background-image: repeating-linear-gradient(
    90deg,
    rgba(247,243,234,0.9) 0 2px,
    transparent 2px 5px,
    rgba(247,243,234,0.9) 5px 6px,
    transparent 6px 11px
  );
  opacity: 0.7;
}

@media (max-width: 760px) {
  .boarding-pass { grid-template-columns: 1fr; }
  .bp-stub { border-left: none; border-top: 1px dashed rgba(247, 243, 234, 0.28); }
  .bp-main, .bp-stub { padding: 40px 28px; }
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 28px 6vw 40px;
  max-width: var(--max-w);
  margin: 0 auto;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--slate);
}

@media (max-width: 500px) {
  .site-footer { flex-direction: column; gap: 6px; }
}
