/* ===== Rotary Haifa Business Conference – landing page ===== */
:root {
  --navy: #13284b;
  --blue: #17458f;        /* Rotary azure */
  --orange: #f7a81b;      /* Rotary gold */
  --grey-bg: #f4f4f4;
  --grey-band: #e3e3e4;
  --line: #dcdcdc;
  --text: #13284b;
  --radius: 14px;
  --maxw: 1040px;
  --font: "Assistant", "Heebo", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 70px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.5;
  color: var(--text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 16px; }
.narrow { max-width: 1040px; }
.center { text-align: center; }

.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;
}
.skip-link {
  position: absolute; inset-inline-start: 8px; top: -60px; z-index: 100;
  background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 6px;
}
.skip-link:focus { top: 8px; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

/* ===== Header ===== */
.site-header { background: #fff; position: sticky; top: 0; z-index: 50; box-shadow: 0 1px 0 rgba(0,0,0,.04); }
.header-top { display: flex; align-items: center; justify-content: space-between; padding-block: 10px 6px; }
.logo img { width: 190px; height: auto; }
.nav-toggle { display: none; }

.main-nav ul {
  list-style: none; margin: 0 auto; padding-block: 4px 10px;
  display: flex; justify-content: space-between;
}
.main-nav li { flex: 1; text-align: center; border-inline-start: 1px solid #7c8698; }
.main-nav li:last-child { border-inline-end: 1px solid #7c8698; }
.main-nav a {
  display: block; padding: 2px 8px; text-decoration: none; font-size: 19px; font-weight: 600;
  transition: color .15s;
}
.main-nav a:hover { color: var(--blue); }

/* Shrink header on scroll */
.site-header.scrolled .header-top { display: none; }
.site-header.scrolled .main-nav ul { padding-block: 12px; }

/* ===== Hero ===== */
.hero {
  position: relative; background: var(--navy); color: #fff;
  display: grid; grid-template-columns: 1fr 1fr; min-height: 380px; overflow: hidden;
}
.hero-photo {
  grid-column: 2; grid-row: 1;
  background: url("../img/hero-haifa.jpg") center / cover no-repeat;
  -webkit-mask-image: linear-gradient(to right, #000 70%, transparent 100%);
          mask-image: linear-gradient(to right, #000 70%, transparent 100%);
}
.hero-text {
  grid-column: 1; grid-row: 1;
  display: flex; flex-direction: column; justify-content: center;
  padding-block: 40px 36px; padding-inline: max(16px, calc((100vw - var(--maxw)) / 2 + 16px)) 32px;
}
/* in RTL grid column 1 is on the right */
.hero h1 { display: flex; flex-direction: column; line-height: .95; font-weight: 800; }
.h1-small { font-size: clamp(30px, 4vw, 44px); }
.h1-big { font-size: clamp(56px, 8.4vw, 100px); letter-spacing: -1px; }
.h1-accent { font-size: clamp(56px, 8.4vw, 100px); color: var(--orange); }
.hero-tagline {
  margin-top: 18px; padding-top: 14px; border-top: 2px solid var(--orange);
  font-size: clamp(22px, 2.9vw, 36px); font-weight: 700;
}

/* ===== Event bar ===== */
.event-bar { background: var(--grey-band); }
.event-bar-inner { display: flex; gap: 0; padding-block: 24px; }
.event-bar-inner > div { flex: 1; font-size: clamp(22px, 3.2vw, 38px); line-height: 1.45; }
.event-when { font-weight: 800; padding-inline-end: 40px; border-inline-end: 2px solid var(--navy); }
.event-when strong { font-weight: 800; }
.event-where { padding-inline-start: 40px; font-weight: 600; }
.event-where strong { font-weight: 800; }
.num { direction: ltr; text-align: right; }

/* ===== Countdown ===== */
.countdown { padding-block: 44px 34px; }
.countdown-inner { display: flex; align-items: center; gap: 40px; }
.countdown-label { font-size: clamp(26px, 3.4vw, 38px); font-weight: 600; color: var(--blue); white-space: nowrap; }
.countdown-units { display: flex; flex: 1; justify-content: space-around; }
.unit { display: flex; flex-direction: column; align-items: center; flex: 1; border-inline-end: 1px solid var(--line); }
.unit:last-child { border-inline-end: 0; }
.val { font-size: clamp(42px, 6vw, 68px); font-weight: 800; color: var(--blue); line-height: 1; font-variant-numeric: tabular-nums; }
.lbl { font-size: clamp(20px, 2.4vw, 28px); font-weight: 600; color: var(--blue); }
.countdown-done { font-size: 32px; font-weight: 800; color: var(--blue); }

/* ===== CTA divider ===== */
.cta-line {
  position: relative; text-align: center; padding-block: 8px;
  background: linear-gradient(to bottom, #fff 50%, var(--grey-bg) 50%);
}
.cta-line--to-grey { background: linear-gradient(to bottom, #fff 50%, var(--grey-bg) 50%); }
.cta-line--from-grey { background: linear-gradient(to bottom, var(--grey-band) 50%, #fff 50%); }
.cta-line::before {
  content: ""; position: absolute; top: 50%; inset-inline: max(16px, calc((100% - var(--maxw)) / 2 + 16px));
  height: 6px; transform: translateY(-50%); background: var(--orange);
}
.btn-cta {
  position: relative; display: inline-block;
  background: var(--orange); color: var(--navy); text-decoration: none;
  font-size: clamp(28px, 3.6vw, 44px); font-weight: 800; line-height: 1;
  padding: 18px 38px 20px; border-radius: 999px;
  transition: transform .15s, box-shadow .15s;
}
.btn-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(247,168,27,.45); }

.cta-price {
  background: var(--grey-bg); text-align: center; margin: 0;
  padding-top: 14px; font-size: clamp(22px, 2.6vw, 28px); font-weight: 600;
}
.cta-price strong { font-weight: 800; }

/* ===== About ===== */
.about { background: var(--grey-bg); padding-block: 34px 70px; }
.about p { font-size: 18px; margin-bottom: 14px; }
.lead-title { font-size: 22px; font-weight: 800; margin-bottom: 18px; }
.sub-title { font-size: 26px; font-weight: 800; margin-block: 24px 14px; }

/* ===== Bands / titles ===== */
.band { padding: 14px 32px; font-size: clamp(26px, 3.2vw, 36px); font-weight: 800; }
.band-orange { background: var(--orange); color: var(--navy); }
.band-navy { background: var(--navy); color: #fff; }
.section-title { font-size: clamp(30px, 3.6vw, 40px); font-weight: 800; margin-bottom: 10px; }
.section-intro { margin-bottom: 26px; }

/* ===== Speakers ===== */
.speakers { padding-bottom: 50px; background: linear-gradient(to bottom, var(--grey-bg) 0, var(--grey-bg) 38px, #fff 38px); }
.speakers .band { margin-bottom: 30px; }
.speaker {
  display: grid; grid-template-columns: 192px 1fr; gap: 40px; align-items: start;
  padding: 22px 0 18px; border-bottom: 2px solid #e6e6e6;
  padding-inline-start: 0;
}
.speaker:last-child { border-bottom: 0; }
.speaker-photo {
  width: 192px; height: 192px; object-fit: cover; object-position: center top;
  border-radius: 22px; border: 2px solid var(--blue); padding: 5px; background: #fff;
  margin-inline-start: 22px;
}
.speaker-body { max-width: 740px; }
.speaker h3 { font-size: 28px; font-weight: 800; margin-bottom: 2px; }
.speaker .role { font-size: 19px; margin-bottom: 12px; }
.speaker .topic { font-weight: 800; margin-bottom: 12px; }
.speaker .talk { font-size: 18px; margin-bottom: 12px; }
.speaker p:last-child { font-size: 18px; }

/* ===== Sponsors ===== */
.sponsors { background: var(--grey-bg); padding-block: 26px 40px; }
.sponsor-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 42px; }
.sponsor-card {
  background: #fff; border-radius: var(--radius); padding: 18px 16px 10px;
  display: flex; flex-direction: column; gap: 10px; min-height: 166px;
  transition: box-shadow .2s, transform .2s;
}
.sponsor-card:hover { box-shadow: 0 8px 22px rgba(19,40,75,.12); transform: translateY(-2px); }
.sponsor-card img { height: 100px; width: 100%; object-fit: contain; }
.sponsor-card a { font-size: 17px; text-decoration: none; align-self: flex-start; }
.sponsor-card a:hover { color: var(--blue); text-decoration: underline; }
.sponsor-card--logo { justify-content: center; }

/* ===== Directions ===== */
.directions { background: var(--grey-band); padding-block: 40px 50px; }
.directions-inner { display: grid; grid-template-columns: 1fr 1.55fr; gap: 36px; align-items: start; }
.directions address { font-style: normal; font-size: 20px; line-height: 1.7; margin-block: 24px 20px; }
.directions address a { font-weight: 700; }
.waze-link { display: inline-flex; align-items: center; gap: 14px; font-size: 20px; text-decoration: none; }
.waze-link img { width: 50px; height: 50px; border-radius: 10px; }
.waze-link:hover span { text-decoration: underline; }
.map-wrap { border-top: 4px solid #8b6bb1; background: #fff; }
.map-wrap iframe { display: block; width: 100%; aspect-ratio: 684 / 440; border: 0; }

/* ===== Contact ===== */
.contact { padding-block: 70px 32px; }
.contact p { font-size: 20px; }
.contact a[href^="tel"] { text-decoration: none; white-space: nowrap; }
.price { font-size: 25px !important; font-weight: 800; margin-block: 30px 0; }

/* ===== Footer ===== */
.site-footer {
  background: var(--navy); color: #fff; text-align: center;
  padding-block: 18px 22px; border-bottom: 6px solid var(--orange);
  margin-top: 20px;
}
.site-footer p { font-size: clamp(24px, 3.4vw, 40px); font-weight: 800; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .sponsor-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .countdown-inner { flex-direction: column; gap: 16px; }
  .countdown-units { width: 100%; }
  .directions-inner { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  body { font-size: 17px; }
  .header-top { padding-block: 8px; }
  .logo img { width: 140px; }
  .nav-toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; padding: 10px; background: none; border: 0; cursor: pointer;
  }
  .nav-toggle span { display: block; height: 3px; background: var(--navy); border-radius: 2px; transition: transform .2s, opacity .2s; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .main-nav { display: none; }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; padding-block: 0 10px; }
  .main-nav li, .main-nav li:last-child { border: 0; border-top: 1px solid #e5e5e5; text-align: start; }
  .main-nav a { padding: 12px 4px; }
  .site-header.scrolled .header-top { display: flex; }
  .site-header.scrolled .main-nav ul { padding-block: 0 10px; }

  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-photo {
    grid-column: 1; grid-row: 1; opacity: .35;
    -webkit-mask-image: none; mask-image: none;
  }
  .hero-text { grid-column: 1; grid-row: 1; padding: 44px 20px; position: relative; justify-self: stretch; }

  .event-bar-inner { flex-direction: column; gap: 14px; }
  .event-when { border-inline-end: 0; border-bottom: 2px solid var(--navy); padding: 0 0 14px; }
  .event-where { padding: 0; }
  .event-bar-inner > div { font-size: 24px; }

  .btn-cta { padding: 14px 26px 16px; }

  .speaker { grid-template-columns: 1fr; gap: 14px; justify-items: center; text-align: center; }
  .speaker-photo { width: 160px; height: 160px; margin: 0; }
  .speaker-body { text-align: start; }
  .speaker h3, .speaker .role { text-align: center; }

  .band { padding: 12px 18px; }
}

@media (max-width: 420px) {
  .sponsor-grid { gap: 12px; }
  .sponsor-card img { height: 70px; }
  .unit .lbl { font-size: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
