/* ==========================================================================
   Israel Trek 2027 · MIT Sloan MBA
   ========================================================================== */

:root {
  /* Color */
  --ink: #0b1b2b;
  --text: #334155;
  --muted: #5b6472;
  --line: #e3e8ee;
  --bg: #ffffff;
  --bg-alt: #f4f8fb;
  --brand: #00b4f4;        /* iTrek cyan: fills and accents only, too light for text on white */
  --brand-hover: #38c6f7;
  --brand-tint: #e5f7fe;
  --brand-ink: #00699e;    /* accessible cyan for text and icons on light backgrounds */
  --on-dark: #c9d3dd;

  /* Type */
  --font-display: "Poppins", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Layout */
  --container: 70rem;
  --gutter: clamp(1rem, 4vw, 2rem);
  --header-h: 4rem;
  --radius: 1rem;
  --radius-lg: 1.5rem;

  /* Icons used as CSS masks */
  --check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  --check-circle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='m8.5 12 2.5 2.5 4.5-5'/%3E%3C/svg%3E");
  --minus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 12h12'/%3E%3C/svg%3E");
}

/* Base
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.15;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

[role="list"] {
  list-style: none;
}

a {
  color: var(--brand-ink);
  text-underline-offset: 0.2em;
}

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}

/* Utilities
   ========================================================================== */

.container {
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 1.25em;
  height: 1.25em;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.skip-link {
  position: absolute;
  top: -4rem;
  left: 1rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  color: var(--brand-ink);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--brand);
}

.pill {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: var(--brand-tint);
  color: var(--brand-ink);
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
}

/* Buttons
   ========================================================================== */

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.75rem 1.375rem;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font: 600 1rem/1.2 var(--font-body);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.btn .icon {
  width: 1.125rem;
  height: 1.125rem;
}

.btn-primary {
  background: var(--brand);
  color: var(--ink);
}

.btn-primary:hover {
  background: var(--brand-hover);
}

.btn-secondary {
  border-color: #c5d0db;
  background: var(--bg);
  color: var(--ink);
}

.btn-secondary:hover {
  border-color: var(--ink);
}

.btn-sm {
  min-height: 2.75rem;
  padding: 0.5rem 1.125rem;
  font-size: 0.9375rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 3rem;
  padding: 0.5rem 1.25rem;
  border: 1.5px dashed #b8c4d0;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 600;
  white-space: nowrap;
}

/* Header
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgb(255 255 255 / 0.88);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.875rem;
  margin-right: auto;
  color: var(--ink);
  font: 600 1rem/1 var(--font-display);
  text-decoration: none;
  white-space: nowrap;
}

.brand-logo {
  width: auto;
  height: 1.75rem;
}

.brand-divider {
  width: 1px;
  height: 1.5rem;
  background: #cfd8e1;
}

.brand-kicker {
  color: var(--muted);
}

.site-nav ul {
  display: flex;
  gap: 2rem;
}

.site-nav a {
  color: var(--text);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--brand);
  text-decoration-thickness: 2px;
}

@media (max-width: 960px) {
  .site-nav {
    display: none;
  }
}

@media (max-width: 640px) {
  .brand-kicker {
    display: none;
  }
}

/* Logo only on small phones; the site name stays available to screen readers */
@media (max-width: 480px) {
  .brand-divider {
    display: none;
  }

  .brand-name {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}

/* Hero
   ========================================================================== */

.hero {
  padding-block: clamp(2.5rem, 7vw, 5.5rem) clamp(3rem, 6vw, 4.5rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: clamp(2.5rem, 6vw, 5rem);
}

.hero h1 {
  font-size: clamp(2.75rem, 7.5vw, 5.25rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
}

.lead {
  max-width: 34rem;
  margin-top: 1.5rem;
  font-size: clamp(1.125rem, 1.8vw, 1.3125rem);
  line-height: 1.55;
}

.hero .actions {
  margin-top: 2.25rem;
}

.hero-note {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.9375rem;
}

.hero-media {
  position: relative;
  isolation: isolate;
  margin: 0;
}

/* Brand dot peeking out behind the photo */
.hero-media::before {
  content: "";
  position: absolute;
  z-index: -1;
  bottom: -1.75rem;
  left: -1.75rem;
  width: clamp(5rem, 11vw, 8rem);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--brand);
}

.hero-media img {
  width: 100%;
  border-radius: var(--radius-lg);
}

.facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: clamp(3rem, 6vw, 4.5rem) 0 0;
  border-block: 1px solid var(--line);
}

.fact {
  padding: 1.5rem 1.5rem 1.5rem 0;
}

.fact + .fact {
  padding-left: 1.5rem;
  border-left: 1px solid var(--line);
}

.fact dt {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.fact dt .icon {
  width: 1.125rem;
  height: 1.125rem;
  color: var(--brand-ink);
}

.fact dd {
  margin: 0.5rem 0 0;
  color: var(--ink);
  font-weight: 500;
  line-height: 1.45;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-media img {
    aspect-ratio: 4 / 3;
    object-fit: cover;
  }

  .hero-media::before {
    right: -0.5rem;
    bottom: -0.75rem;
    left: auto;
    width: 4.5rem;
  }

  .facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fact:nth-child(odd) {
    padding-left: 0;
    border-left: 0;
  }

  .fact:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 520px) {
  .facts {
    grid-template-columns: minmax(0, 1fr);
  }

  .fact,
  .fact + .fact {
    display: grid;
    grid-template-columns: 6.5rem minmax(0, 1fr);
    align-items: baseline;
    padding: 1rem 0;
    border-left: 0;
  }

  .fact + .fact {
    border-top: 1px solid var(--line);
  }

  .fact dd {
    margin: 0;
  }
}

/* Sections
   ========================================================================== */

.section {
  padding-block: clamp(4rem, 9vw, 6.5rem);
}

.section-alt {
  background: var(--bg-alt);
}

.section-head {
  max-width: 46rem;
  margin-bottom: clamp(2.25rem, 4vw, 3.25rem);
}

.section-head h2,
.safety h2,
.footer-cta h2 {
  font-size: clamp(2rem, 4.2vw, 2.875rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.section-lead {
  margin-top: 1rem;
  font-size: 1.125rem;
}

/* Checklists */
.checklist {
  display: grid;
  gap: 0.625rem;
  margin-top: 1.25rem;
}

.checklist li {
  position: relative;
  padding-left: 1.75rem;
  color: var(--ink);
  font-size: 0.975rem;
  line-height: 1.5;
}

.checklist li::before {
  content: "";
  position: absolute;
  top: 0.18em;
  left: 0;
  width: 1.125rem;
  height: 1.125rem;
  background-color: var(--brand-ink);
  -webkit-mask: var(--check) center / contain no-repeat;
  mask: var(--check) center / contain no-repeat;
}

.checklist-2col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 2rem;
}

.checklist-minus li {
  color: var(--text);
}

.checklist-minus li::before {
  background-color: var(--muted);
  -webkit-mask-image: var(--minus);
  mask-image: var(--minus);
}

@media (max-width: 640px) {
  .checklist-2col {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Experience
   ========================================================================== */

.pillars {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.pillar-img {
  width: clamp(6.5rem, 11vw, 9rem);
  aspect-ratio: 1;
  margin-bottom: 1.5rem;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 5px var(--bg);
}

.pillar h3 {
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.3;
}

.pillar p {
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 1rem;
}

@media (max-width: 900px) {
  .pillars {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .pillars {
    grid-template-columns: minmax(0, 1fr);
  }

  .pillar {
    display: grid;
    grid-template-columns: 5.5rem minmax(0, 1fr);
    align-items: center;
    gap: 1.25rem;
  }

  .pillar-img {
    width: 5.5rem;
    margin: 0;
  }
}

/* Itinerary
   ========================================================================== */

.regions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2.5vw, 1.75rem);
}

.region {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg);
}

.region > img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.region-body {
  padding: 1.5rem 1.5rem 1.75rem;
}

.region-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
}

.region h3 {
  font-size: 1.375rem;
  font-weight: 600;
}

.region-body > p {
  margin-top: 0.75rem;
  font-size: 1rem;
}

@media (max-width: 900px) {
  .regions {
    grid-template-columns: minmax(0, 1fr);
  }

  .region {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  }

  .region > img {
    height: 100%;
    aspect-ratio: auto;
  }
}

@media (max-width: 600px) {
  .region {
    display: flex;
  }

  .region > img {
    height: auto;
    aspect-ratio: 16 / 10;
  }
}

/* Cost
   ========================================================================== */

.tiers {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.tier {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
}

.tier-best {
  border-color: var(--brand);
  background: var(--brand-tint);
  box-shadow: inset 0 0 0 1px var(--brand);
}

.tier-label {
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 500;
}

.tier-best .tier-label {
  color: var(--text);
}

.tier-price {
  margin-top: 0.25rem;
  color: var(--ink);
  font: 600 clamp(2rem, 3.6vw, 2.625rem)/1.1 var(--font-display);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.tier-tag {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: var(--brand);
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 600;
}

.fineprint {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-top: 1.25rem;
  color: var(--muted);
  font-size: 0.9375rem;
}

.fineprint .icon {
  width: 1.125rem;
  height: 1.125rem;
  margin-top: 0.15em;
  color: var(--brand-ink);
}

.coverage {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 2.5rem clamp(2rem, 5vw, 4rem);
  margin-top: clamp(3rem, 6vw, 4rem);
  padding-top: clamp(2.5rem, 5vw, 3.5rem);
  border-top: 1px solid var(--line);
}

.coverage h3 {
  font-size: 1.125rem;
  font-weight: 600;
}

@media (max-width: 900px) {
  .tiers {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .coverage {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 400px) {
  .tier {
    padding: 1.25rem 1rem;
  }
}

/* Safety
   ========================================================================== */

.safety {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  padding: clamp(2rem, 6vw, 4rem);
  border-radius: var(--radius-lg);
  background: var(--ink);
  color: var(--on-dark);
}

.safety h2 {
  color: #fff;
}

.eyebrow-on-dark {
  color: var(--brand);
}

.safety-lead {
  margin-top: 1rem;
  font-size: 1.125rem;
}

.safety-list {
  display: grid;
  align-content: center;
  gap: 1.5rem;
}

.safety-list li {
  position: relative;
  padding-left: 2.25rem;
}

.safety-list li::before {
  content: "";
  position: absolute;
  top: 0.05rem;
  left: 0;
  width: 1.375rem;
  height: 1.375rem;
  background-color: var(--brand);
  -webkit-mask: var(--check-circle) center / contain no-repeat;
  mask: var(--check-circle) center / contain no-repeat;
}

.safety-list h3 {
  color: #fff;
  font: 600 1.0625rem/1.4 var(--font-body);
}

.safety-list p {
  margin-top: 0.25rem;
}

@media (max-width: 860px) {
  .safety {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Next steps
   ========================================================================== */

.steps {
  display: grid;
  gap: 0.75rem;
}

.step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem 1.5rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
}

.step-num {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--brand);
  color: var(--ink);
  font: 600 1.0625rem/1 var(--font-display);
}

.step h3 {
  font-size: 1.125rem;
  font-weight: 600;
}

.step p {
  max-width: 44rem;
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.975rem;
}

@media (max-width: 720px) {
  .step {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    padding: 1.25rem;
  }

  .step > .btn,
  .step > .badge {
    grid-column: 2;
    justify-self: start;
  }
}

/* Footer
   ========================================================================== */

.site-footer {
  padding-block: clamp(4rem, 9vw, 6rem) 2.5rem;
}

.footer-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 2rem;
  padding-bottom: clamp(2.5rem, 5vw, 3.5rem);
  border-bottom: 1px solid var(--line);
}

.footer-cta p {
  margin-top: 0.5rem;
  font-size: 1.125rem;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding-top: 1.75rem;
  color: var(--muted);
  font-size: 0.875rem;
}

.supported {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--muted);
  text-decoration: none;
}

.supported:hover span {
  color: var(--ink);
}

.supported img {
  width: auto;
  height: 1.75rem;
}
