/* ============================================================
   BRS Global Logistics — Israel site
   Colors and type pulled from brsgloballogistics.com so the
   two sites read as one company.
   Logical properties (inline-start/end) are used everywhere so
   the layout flips automatically when dir switches to LTR.
   ============================================================ */

:root {
  --bg: #F5F2EC;        /* warm off-white (cream) */
  --ink: #2A2A28;       /* charcoal */
  --orange: #E8611A;    /* primary accent — matched to the new US site */
  --orange-soft: #F9A05C; /* accent on navy backgrounds */
  --navy: #1B3A6B;      /* dark sections */
  --sand: #E4DED2;      /* borders and dividers */
  /* US site pairs Inter body text with Archivo headings */
  --font-body: "Inter", Arial, sans-serif;
  --font-heading: "Archivo", Arial, sans-serif;
  --font-hebrew: "Heebo", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.6;
  font-size: 1.0625rem;
}

/* Hebrew UI gets Heebo; its Latin glyphs cover embedded BRS/FedEx etc. */
html[lang="he"] body { font-family: var(--font-hebrew); }

img { max-width: 100%; }

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

h1, h2, h3 { line-height: 1.15; font-weight: 800; font-family: var(--font-heading); }
html[lang="he"] h1, html[lang="he"] h2, html[lang="he"] h3 { font-family: var(--font-hebrew); }

/* US site sets the hero headline in caps (no-op in Hebrew) */
h1 { text-transform: uppercase; letter-spacing: 0.01em; }

/* Skip link — hidden until keyboard focus */
.skip-link {
  position: fixed;
  inset-block-start: 0.5rem;
  inset-inline-start: 0.5rem;
  z-index: 100;
  background: var(--navy);
  color: var(--bg);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
  transform: translateY(-300%);
}
.skip-link:focus { transform: none; }

/* Visible keyboard focus everywhere */
:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
  border-radius: 2px;
}

.eyebrow {
  color: var(--orange);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  margin-block-end: 0.75rem;
}
html[lang="he"] .eyebrow { letter-spacing: 0.02em; }

.section-lead { max-width: 46rem; margin-block-start: 1rem; }

section { padding-block: 5rem; padding-inline: 1.5rem; }

section > .eyebrow, section > h2, section > .section-lead,
section > .btn, .plan-cards, .chain-steps {
  max-width: 72rem;
  margin-inline: auto;
}

/* ============ Header ============ */
.site-header {
  position: sticky;
  inset-block-start: 0;
  z-index: 50;
  background: rgba(245, 242, 236, 0.88);
  backdrop-filter: blur(8px);
  border-block-end: 1px solid var(--sand);
}

.header-inner {
  max-width: 72rem;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.6rem;
  padding-inline: 1.5rem;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.logo { height: 40px; width: 40px; display: block; }

.logo-word {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  color: var(--navy);
  text-transform: uppercase;
  white-space: nowrap;
}

.main-nav { display: flex; gap: 1.5rem; flex-wrap: wrap; }

.main-nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}
.main-nav a:hover { color: var(--orange); }

.header-tools { display: flex; align-items: center; gap: 1rem; }

.clocks {
  display: flex;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--ink);
}

.clock { display: flex; flex-direction: column; align-items: center; line-height: 1.3; }
.clock-city { font-size: 0.7rem; opacity: 0.7; }
.clock-time { font-weight: 700; font-variant-numeric: tabular-nums; direction: ltr; }

.lang-toggle {
  border: 1.5px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  cursor: pointer;
}
.lang-toggle:hover { background: var(--ink); color: var(--bg); }

/* Burger only appears on small screens where the inline nav is hidden */
.nav-burger {
  display: none;
  border: 1.5px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-size: 1.15rem;
  line-height: 1;
  padding: 0.35rem 0.6rem;
  border-radius: 8px;
  cursor: pointer;
}

/* ============ Hero ============ */
/* Port photo under a navy tint, matching the US site's homepage hero */
.hero {
  text-align: center;
  padding-block: 6.5rem 5.5rem;
  background:
    linear-gradient(rgba(27, 58, 107, 0.82), rgba(27, 58, 107, 0.82)),
    url("/assets/img/hero-port.jpg") center / cover no-repeat,
    var(--navy);
  color: var(--bg);
}

.hero .eyebrow { color: var(--orange-soft); }

.hero h1 {
  font-size: clamp(2.2rem, 6vw, 4rem);
  max-width: 60rem;
  margin-inline: auto;
}

.hero-lead {
  max-width: 44rem;
  margin-inline: auto;
  margin-block-start: 1.25rem;
  font-size: 1.15rem;
  opacity: 0.9;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-block-start: 2.25rem;
}

.btn {
  display: inline-block;
  padding: 0.85rem 1.8rem;
  border-radius: 6px;
  font-weight: 600;
  font-family: var(--font-heading);
  text-decoration: none;
  font-size: 1rem;
}
html[lang="he"] .btn { font-family: var(--font-hebrew); font-weight: 700; }

.btn-primary { background: var(--orange); color: var(--bg); }
.btn-primary:hover { background: #c9520f; }

/* secondary sits on the navy hero, so its outline is cream */
.btn-secondary {
  color: var(--bg);
  border: 2px solid var(--bg);
}
.btn-secondary:hover { background: var(--bg); color: var(--navy); }

/* ============ The chain ============ */
.chain { text-align: center; }

.chain .section-lead { margin-inline: auto; }

.chain-steps {
  list-style: none;
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-block-start: 3.5rem;
}

/* connecting line sits behind the step numbers */
.chain-line {
  position: absolute;
  inset-block-start: 27px;
  inset-inline: 40px;
  height: 3px;
  background: var(--sand);
  border-radius: 2px;
}

.chain-line-fill {
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  width: 0;
  background: var(--orange);
  border-radius: 2px;
  transition: width 2.4s ease-out;
}

.chain.in-view .chain-line-fill { width: 100%; }

.chain-step {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

/* steps reveal one after another as the line reaches them */
.chain.in-view .chain-step { opacity: 1; transform: none; }
.chain.in-view .chain-step:nth-child(2) { transition-delay: 0.1s; }
.chain.in-view .chain-step:nth-child(3) { transition-delay: 0.45s; }
.chain.in-view .chain-step:nth-child(4) { transition-delay: 0.8s; }
.chain.in-view .chain-step:nth-child(5) { transition-delay: 1.15s; }
.chain.in-view .chain-step:nth-child(6) { transition-delay: 1.5s; }
.chain.in-view .chain-step:nth-child(7) { transition-delay: 1.85s; }
.chain.in-view .chain-step:nth-child(8) { transition-delay: 2.2s; }

.step-num {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--bg);
  border: 3px solid var(--orange);
  color: var(--orange);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
}

.step-label { font-weight: 500; font-size: 0.92rem; max-width: 9rem; }

/* ============ The problem ============ */
.problem {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  max-width: 72rem;
  margin-inline: auto;
  align-items: start;
}

.problem h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-block-end: 1rem; }

.problem-list { list-style: none; display: grid; gap: 1rem; }

.problem-list li {
  border: 1px solid var(--sand);
  background: #fff;
  border-radius: 10px;
  padding: 1rem 1.25rem;
  padding-inline-start: 2.6rem;
  position: relative;
  font-weight: 500;
}

.problem-list li::before {
  content: "";
  position: absolute;
  inset-inline-start: 1.1rem;
  inset-block-start: 1.45rem;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--orange);
}

/* ============ Why BRS ============ */
.why { background: var(--navy); color: #F5F2EC; }

.why-inner { max-width: 72rem; margin-inline: auto; }

.why .eyebrow { color: var(--orange-soft); }

.why h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }

.why-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-block-start: 3rem;
}

.why-num {
  color: var(--orange-soft);
  font-weight: 800;
  font-size: 0.9rem;
  display: block;
  margin-block-end: 0.5rem;
}

.why-col h3 { font-size: 1.2rem; margin-block-end: 0.5rem; }
.why-col p { opacity: 0.85; font-size: 0.98rem; }

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-block-start: 3.5rem;
  border-block-start: 1px solid rgba(245, 242, 236, 0.25);
  padding-block-start: 2.5rem;
  text-align: center;
}

.stat-num {
  display: block;
  font-size: clamp(2.6rem, 6vw, 4rem);
  font-weight: 800;
  color: var(--orange-soft);
  line-height: 1;
}

.stat-label { display: block; margin-block-start: 0.4rem; opacity: 0.85; }

/* ============ Plans ============ */
.plans { text-align: center; }

.plan-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-block-start: 3rem;
  text-align: start;
}

.plan-card {
  background: #fff;
  border: 1px solid var(--sand);
  border-radius: 16px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.plan-card-highlight { border: 3px solid var(--orange); }

.plan-tag {
  align-self: flex-start;
  background: var(--bg);
  border: 1px solid var(--sand);
  border-radius: 999px;
  padding: 0.2rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
}

.plan-card-highlight .plan-tag {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}

.plan-card h3 { font-size: 1.35rem; }

.plan-card ul { list-style: none; display: grid; gap: 0.5rem; margin-block-start: auto; }

.plan-card li {
  padding-inline-start: 1.4rem;
  position: relative;
  font-size: 0.95rem;
}

.plan-card li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  inset-block-start: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
}

/* ============ Testimonials ============ */
.testimonials { text-align: center; }

.testimonial-cards {
  max-width: 60rem;
  margin-inline: auto;
  margin-block-start: 3rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  text-align: start;
}

.testimonial {
  background: #fff;
  border: 1px solid var(--sand);
  border-radius: 16px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.testimonial blockquote {
  font-size: 1.02rem;
  line-height: 1.65;
}

/* an oversized quote mark above each card */
.testimonial blockquote::before {
  content: "\201C";
  display: block;
  font-family: var(--font-heading);
  font-size: 3rem;
  line-height: 1;
  color: var(--orange);
  margin-block-end: 0.25rem;
}
html[dir="rtl"] .testimonial blockquote::before { content: "\201D"; }

.testimonial figcaption {
  margin-block-start: auto;
  border-block-start: 1px solid var(--sand);
  padding-block-start: 1rem;
}

.t-name { display: block; font-weight: 700; color: var(--navy); }
.t-role { display: block; font-size: 0.88rem; opacity: 0.75; }

/* date line on blog posts */
.post-date {
  font-size: 0.85rem;
  opacity: 0.7;
  font-variant-numeric: tabular-nums;
  margin-block-end: 1.5rem;
}

/* ============ Contact ============ */
.contact { text-align: center; }

.contact .section-lead { margin-inline: auto; margin-block-end: 2rem; }

.offices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 20rem));
  justify-content: center;
  gap: 1.5rem;
  margin-block-start: 3rem;
}

.office {
  background: #fff;
  border: 1px solid var(--sand);
  border-radius: 16px;
  padding: 1.5rem;
}

.office h3 { font-size: 1.05rem; margin-block-end: 0.5rem; color: var(--navy); }
.office p { font-size: 0.95rem; }

/* ============ Footer ============ */
.site-footer {
  border-block-start: 1px solid var(--sand);
  padding-block: 3rem 2rem;
  padding-inline: 1.5rem;
  font-size: 0.9rem;
}

.footer-cols {
  max-width: 72rem;
  margin-inline: auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
}

.footer-brand p { margin-block-start: 1rem; opacity: 0.75; max-width: 22rem; }

.footer-col h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--navy);
  margin-block-end: 0.9rem;
}

.footer-col a {
  display: block;
  color: var(--ink);
  text-decoration: none;
  padding-block: 0.3rem;
  opacity: 0.85;
}
.footer-col a:hover { color: var(--orange); opacity: 1; }

.footer-legal {
  max-width: 72rem;
  margin-inline: auto;
  margin-block-start: 2.5rem;
  padding-block-start: 1.5rem;
  border-block-start: 1px solid var(--sand);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
  opacity: 0.8;
}

/* ============ Content pages (services, locations, guides…) ============ */
.page-hero {
  background: var(--navy);
  color: var(--bg);
  padding-block: 3.5rem;
  padding-inline: 1.5rem;
}

/* photo page-heroes: real photography under the same navy tint */
.page-hero.ph-containers {
  background:
    linear-gradient(rgba(27, 58, 107, 0.84), rgba(27, 58, 107, 0.84)),
    url("/assets/img/containers.jpg") center / cover no-repeat, var(--navy);
}
.page-hero.ph-ship {
  background:
    linear-gradient(rgba(27, 58, 107, 0.84), rgba(27, 58, 107, 0.84)),
    url("/assets/img/ship.jpg") center / cover no-repeat, var(--navy);
}
.page-hero.ph-warehouse {
  background:
    linear-gradient(rgba(27, 58, 107, 0.84), rgba(27, 58, 107, 0.84)),
    url("/assets/img/warehouse.jpg") center 30% / cover no-repeat, var(--navy);
}
.page-hero.ph-port {
  background:
    linear-gradient(rgba(27, 58, 107, 0.84), rgba(27, 58, 107, 0.84)),
    url("/assets/img/hero-port.jpg") center / cover no-repeat, var(--navy);
}

/* full-width photo band between sections */
.photo-band { padding: 0; }
.photo-band img {
  display: block;
  width: 100%;
  height: clamp(220px, 38vw, 420px);
  object-fit: cover;
}

/* an inline photo inside article pages */
.prose-img {
  display: block;
  width: 100%;
  border-radius: 16px;
  margin-block: 1.5rem;
}

.page-hero-inner { max-width: 72rem; margin-inline: auto; }

.page-hero .eyebrow { color: var(--orange-soft); }

.page-hero h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); max-width: 50rem; }

.page-hero .lead { max-width: 46rem; margin-block-start: 1rem; opacity: 0.9; font-size: 1.1rem; }

.breadcrumb {
  max-width: 72rem;
  margin-inline: auto;
  padding-block: 1rem 0;
  padding-inline: 1.5rem;
  font-size: 0.85rem;
  opacity: 0.8;
}
.breadcrumb a { color: var(--ink); text-decoration: none; }
.breadcrumb a:hover { color: var(--orange); }
.breadcrumb span[aria-hidden] { margin-inline: 0.4rem; }

.prose {
  max-width: 46rem;
  margin-inline: auto;
  padding-block: 3rem;
  padding-inline: 1.5rem;
}

.prose h2 { font-size: 1.5rem; margin-block: 2rem 0.75rem; }
.prose p { margin-block-end: 1rem; }

.prose ul { margin-block: 1rem 1.5rem; padding-inline-start: 0; list-style: none; display: grid; gap: 0.5rem; }
.prose ul li { padding-inline-start: 1.5rem; position: relative; }
.prose ul li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  inset-block-start: 0.55em;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--orange);
}

/* grid of link cards on hub pages */
.card-grid {
  max-width: 72rem;
  margin-inline: auto;
  padding-block: 1rem 3rem;
  padding-inline: 1.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.card-grid h2 { grid-column: 1 / -1; font-size: 1.4rem; margin-block-start: 1.5rem; }

.link-card {
  display: block;
  background: #fff;
  border: 1px solid var(--sand);
  border-radius: 16px;
  padding: 1.4rem;
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.link-card:hover { border-color: var(--orange); transform: translateY(-2px); }
.link-card h3 { font-size: 1.1rem; margin-block-end: 0.4rem; color: var(--navy); }
.link-card p { font-size: 0.92rem; opacity: 0.8; }

/* call-to-action band at the bottom of content pages */
.cta-band {
  background: var(--navy);
  color: var(--bg);
  text-align: center;
  padding-block: 3.5rem;
  padding-inline: 1.5rem;
}
.cta-band h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); }
.cta-band p { max-width: 40rem; margin-inline: auto; margin-block: 0.75rem 1.5rem; opacity: 0.9; }

/* ============ Responsive ============ */
@media (max-width: 900px) {
  /* nav collapses into a dropdown panel under the sticky header */
  .main-nav {
    display: none;
    position: absolute;
    inset-block-start: 100%;
    inset-inline: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg);
    border-block-end: 1px solid var(--sand);
    box-shadow: 0 12px 24px rgba(42, 42, 40, 0.08);
  }
  .main-nav.open { display: flex; }
  .main-nav a {
    padding: 0.9rem 1.5rem;
    border-block-start: 1px solid var(--sand);
    font-size: 1.05rem;
  }
  .nav-burger { display: block; }
  .why-cols { grid-template-columns: 1fr; gap: 2rem; }
  .plan-cards { grid-template-columns: 1fr; }
  .problem { grid-template-columns: 1fr; gap: 2rem; }
  .testimonial-cards { grid-template-columns: 1fr; }
}

@media (max-width: 900px) and (min-width: 721px) {
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .card-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  section { padding-block: 3.5rem; }
  .footer-cols { grid-template-columns: 1fr; gap: 2rem; }
  .footer-legal { justify-content: center; text-align: center; }
  .card-grid { grid-template-columns: 1fr; }

  /* chain collapses to a 2-column grid, no connecting line */
  .chain-steps {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.75rem 1rem;
  }
  .chain-line { display: none; }

  .offices { grid-template-columns: 1fr; }
  .clocks { display: none; }
  .logo { height: 44px; }
}

/* ============ Reduced motion ============ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
  .chain-step { opacity: 1; transform: none; }
  .chain-line-fill { width: 100%; }
}
