/* ============================================================
   Social Robotics Mini-Conference
   ABC Robotics Initiative (green/teal) × Ben-Gurion University (orange)
   Palette blends the ABC logo greens with BGU's signature orange.
   ============================================================ */

:root {
  /* ABC greens/teal */
  --lime: #a8d000;
  --green: #00a800;
  --teal: #009899;
  --teal-deep: #017c7d;
  /* BGU orange */
  --orange: #ec6608;
  --orange-soft: #f59a4b;
  --orange-deep: #c85404;

  --paper: #ffffff;
  --surface: #ffffff;
  --ink: #1a1a1a;
  --ink-soft: #4a4f45;
  --muted: #8a8f85;
  --line: #e6e7dc;
  --wash: #f5f8ec;
  --wash-2: #eef6f0;
  --wash-warm: #fdf1e6;   /* faint orange wash */

  /* Fixed dark bands (welcome / register / footer) — dark in both themes */
  --band: #16180f;
  --band-soft: #cfd3c8;
  --band-line: #2b2f22;

  --shadow: 0 10px 30px -12px rgba(0, 92, 61, 0.22);
  --shadow-lg: 0 24px 60px -20px rgba(0, 92, 61, 0.30);
  --radius: 16px;
  --maxw: 1080px;

  /* Signature gradients */
  --grad: linear-gradient(100deg, var(--lime), var(--green) 46%, var(--teal));           /* ABC cool */
  --grad-warm: linear-gradient(90deg, var(--lime), var(--teal) 42%, var(--orange));       /* unifying cool→warm */
  --grad-orange: linear-gradient(100deg, var(--orange-soft), var(--orange));
}

:root:not([data-theme="light"]) {
  @media (prefers-color-scheme: dark) {
    --lime: #b6dd1f;
    --green: #2cc22c;
    --teal: #22b7b8;
    --teal-deep: #4fd0d1;
    --orange: #ff8a2b;
    --orange-soft: #ffb06a;
    --orange-deep: #e5700f;
    --paper: #0f110c;
    --surface: #181b12;
    --ink: #eef1e6;
    --ink-soft: #b9c0ad;
    --muted: #7f866f;
    --line: #2a2f21;
    --wash: #141810;
    --wash-2: #121810;
    --wash-warm: #1c1710;
    --band: #0a0b07;
    --band-soft: #c3c9b6;
    --band-line: #23271b;
    --shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 24px 60px -20px rgba(0, 0, 0, 0.7);
  }
}

:root[data-theme="dark"] {
  --lime: #b6dd1f;
  --green: #2cc22c;
  --teal: #22b7b8;
  --teal-deep: #4fd0d1;
  --orange: #ff8a2b;
  --orange-soft: #ffb06a;
  --orange-deep: #e5700f;
  --paper: #0f110c;
  --surface: #181b12;
  --ink: #eef1e6;
  --ink-soft: #b9c0ad;
  --muted: #7f866f;
  --line: #2a2f21;
  --wash: #141810;
  --wash-2: #121810;
  --wash-warm: #1c1710;
  --band: #0a0b07;
  --band-soft: #c3c9b6;
  --band-line: #23271b;
  --shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 24px 60px -20px rgba(0, 0, 0, 0.7);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: "Fraunces", Georgia, "Times New Roman", serif; line-height: 1.08; margin: 0; text-wrap: balance; }
a { color: var(--teal-deep); }
img { max-width: 100%; display: block; }
section { scroll-margin-top: 84px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .8rem 1.6rem; border-radius: 999px; font-weight: 600; font-size: 1rem; text-decoration: none; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease; border: 2px solid transparent; }
.btn-primary { background: var(--grad); color: #06210f; box-shadow: var(--shadow); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-ghost { background: transparent; color: var(--ink); border-color: color-mix(in srgb, var(--ink) 22%, transparent); }
.btn-ghost:hover { border-color: var(--orange); color: var(--orange-deep); }
.btn-lg { padding: 1rem 2.4rem; font-size: 1.1rem; }
.btn:focus-visible, a:focus-visible, button:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }

/* Nav */
.site-nav { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--paper) 86%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.nav-inner { max-width: var(--maxw); margin: 0 auto; padding: .6rem 1.25rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.nav-logo { height: 34px; width: auto; }
.nav-menu { display: flex; align-items: center; gap: 1.6rem; }
.nav-menu a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .96rem; }
.nav-menu a:not(.nav-cta):hover { color: var(--teal-deep); }
.nav-cta { background: var(--grad); color: #06210f !important; padding: .5rem 1.15rem; border-radius: 999px; font-weight: 700 !important; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(1000px 460px at 8% -12%, var(--wash), transparent 60%),
    radial-gradient(900px 440px at 96% -6%, var(--wash-2), transparent 58%),
    radial-gradient(760px 520px at 78% 116%, var(--wash-warm), transparent 60%),
    var(--paper);
  padding: clamp(3rem, 8vw, 6.5rem) 1.25rem clamp(2.5rem, 5vw, 4rem);
  text-align: center;
}
/* Themed line-art (robotics + robotic musicianship), sits behind content */
.hero-art { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; opacity: .62; }
.hero-inner { position: relative; max-width: 860px; margin: 0 auto; }
.hero-eyebrow { text-transform: uppercase; letter-spacing: .22em; font-size: .78rem; font-weight: 600; color: var(--teal-deep); margin: 0 0 1rem; }
.hero-title { font-size: clamp(2.6rem, 8vw, 5.2rem); font-weight: 600; letter-spacing: -.01em; }
.hero-title span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: .35rem .9rem; margin: 1.5rem 0 2rem; color: var(--ink-soft); font-weight: 500; font-size: 1.05rem; }
.hero-meta .dot { color: var(--orange); font-weight: 700; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .9rem; }
.hero-deadline { margin: 1.2rem 0 0; }
/* Extended registration deadline — shared pill */
.deadline-pill { display: inline-flex; flex-direction: column; align-items: center; gap: .3rem; padding: .7rem 1.6rem; border-radius: 18px; border: 2px solid var(--orange); font-weight: 500; line-height: 1.3; }
.deadline-badge { padding: .22rem .7rem; border-radius: 999px; background: var(--orange); color: #fff; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.deadline-old { opacity: .6; text-decoration-thickness: 2px; font-size: .95rem; }
.deadline-new { font-weight: 800; font-size: 1.15rem; }
.hero-deadline .deadline-pill { background: color-mix(in srgb, var(--orange) 8%, var(--paper)); color: var(--ink); }
.hero-deadline .deadline-new { color: var(--orange-deep); }
.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; }
.hero-note { margin: .7rem 0 0; font-size: .92rem; color: var(--muted); }
.hero-logos { position: relative; margin: clamp(2.5rem, 5vw, 3.5rem) auto 0; display: flex; align-items: center; justify-content: center; gap: 1.6rem; flex-wrap: wrap; }
.logo-chip { background: #fff; padding: 10px 16px; border-radius: 14px; box-shadow: var(--shadow); display: inline-flex; align-items: center; }
.logo-chip img { height: 58px; width: auto; }
.logo-chip.logo-chip-round img { height: 66px; border-radius: 50%; }
.logo-placeholder { display: grid; place-content: center; text-align: center; min-width: 150px; height: 80px; padding: 0 1rem; border: 2px dashed var(--orange); border-radius: 12px; color: var(--orange-deep); font-size: .82rem; font-weight: 600; line-height: 1.2; background: color-mix(in srgb, var(--orange) 7%, var(--paper)); }
.logo-placeholder small { color: var(--muted); font-weight: 500; }
.logo-placeholder-sm { min-width: 120px; height: 56px; font-size: .74rem; }

/* Welcome band */
.welcome { background: var(--band); color: #fff; text-align: center; padding: 1.4rem 1.25rem; border-top: 3px solid transparent; border-image: var(--grad-warm) 1; }
.welcome p { margin: 0; font-size: 1.05rem; color: var(--band-soft); }
.welcome-word { font-family: "Fraunces", serif; font-size: 1.3rem; font-weight: 600; background: var(--grad-warm); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Dual-logo lockup — repeated as a marker in every section */
.section-mark { display: flex; width: fit-content; align-items: center; gap: .7rem; margin: 0 auto 1.1rem; padding: .4rem .95rem; background: #fff; border: 1px solid rgba(0,0,0,.06); border-radius: 999px; box-shadow: var(--shadow); }
.section-mark img { display: block; width: auto; }
.section-mark .sm-abc { height: 24px; }
.section-mark .sm-bgu { height: 30px; border-radius: 50%; }
.section-mark .sm-div { width: 1px; height: 26px; background: rgba(0,0,0,.12); }
.section-mark.on-dark { background: #fff; }

/* Section heads */
.section-head { max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; text-align: center; }
.section-eyebrow { text-transform: uppercase; letter-spacing: .18em; font-size: .76rem; font-weight: 600; color: var(--teal-deep); margin: 0 0 .5rem; }
.section-head h2 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 600; }
.section-head h2::after { content: ""; display: block; width: 72px; height: 4px; margin: 1rem auto 0; border-radius: 4px; background: var(--grad-warm); }

/* Agenda */
.agenda { padding: clamp(3rem, 7vw, 5rem) 0; background: linear-gradient(180deg, var(--paper), var(--wash) 100%); }
.timeline { list-style: none; max-width: 760px; margin: 2.5rem auto 0; padding: 0 1.25rem; }
.slot { text-align: center; padding: 1.25rem 1rem; border-top: 1px solid var(--line); }
.slot:last-child { border-bottom: 1px solid var(--line); }
.slot-time { display: inline-block; font-variant-numeric: tabular-nums; font-weight: 600; color: var(--teal-deep); margin-bottom: .35rem; letter-spacing: .02em; }
.slot-body { min-width: 0; display: flex; flex-direction: column; align-items: center; }
.slot-body > .slot-title, .slot-body > .slot-meta, .slot-body > .abstract, .slot-body > .slot-links { align-self: stretch; }
.slot-links { order: 1; }  /* push the speaker-site link below the Abstract & Bio toggle */
.slot-title { margin: 0 auto; max-width: 54ch; font-weight: 600; font-size: 1.08rem; color: var(--ink); text-wrap: balance; }
.slot-meta { margin: .3rem auto 0; max-width: 56ch; color: var(--ink-soft); font-size: .96rem; }
.slot-name { font-weight: 600; color: var(--ink); }
.slot-footnote { font-size: .9rem; font-style: italic; }
.slot-footnote a { color: var(--orange-deep); font-weight: 600; font-style: normal; }
.slot-muted .slot-name { color: inherit; font-weight: 500; }
.slot-links { margin: .5rem 0 0; }
.slot-links a { font-size: .9rem; font-weight: 600; text-decoration: none; color: var(--orange-deep); }
.slot-links a:hover { text-decoration: underline; }

/* Expandable abstract + short bio */
.abstract { margin: .8rem 0 0; }
.abstract > summary { cursor: pointer; list-style: none; display: inline-block; font-weight: 600; font-size: .88rem; color: var(--orange-deep); padding: .35rem .95rem; border: 1px solid color-mix(in srgb, var(--orange) 42%, transparent); border-radius: 999px; transition: background .15s ease; }
.abstract > summary:hover { background: color-mix(in srgb, var(--orange) 10%, transparent); }
.abstract > summary::-webkit-details-marker { display: none; }
.abstract > summary::after { content: " ▾"; font-size: .78em; }
.abstract[open] > summary::after { content: " ▴"; }
.abstract-body { text-align: left; max-width: 60ch; margin: .85rem auto 0; padding: 1rem 1.15rem; background: color-mix(in srgb, var(--wash-2) 70%, var(--surface)); border: 1px solid var(--line); border-radius: 12px; color: var(--ink-soft); font-size: .95rem; line-height: 1.65; }
.abstract-body p { margin: 0 0 .7rem; }
.abstract-body p:last-child { margin-bottom: 0; }
.abstract-bio-label { display: block; font-weight: 700; color: var(--teal-deep); font-size: .74rem; text-transform: uppercase; letter-spacing: .09em; margin-bottom: .25rem; }

/* Speaker photo beside the bio */
.abstract-bio { overflow: hidden; }
.bio-photo { float: left; width: 108px; height: 108px; margin: .15rem 1rem .4rem 0; border-radius: 14px; object-fit: cover; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--wash); }
@media (max-width: 540px) {
  .bio-photo { float: none; display: block; margin: 0 auto .7rem; width: 128px; height: 128px; }
}
.tag { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #06210f; background: var(--grad); padding: .2rem .6rem; border-radius: 999px; margin-bottom: .5rem; }
.slot-keynote { border: 1px solid var(--line); border-top: 5px solid var(--teal); margin: 1rem 0; padding: 1.6rem; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.slot-keynote .slot-title { font-size: 1.2rem; }
.slot-keynote .slot-time { color: var(--green); }
.slot-feature { border: 1px solid var(--line); border-top: 5px solid var(--orange); border-radius: var(--radius); background: var(--wash-warm); margin: .6rem 0; padding: 1.3rem 1rem; }
.slot-feature .slot-title::before { content: "★ "; color: var(--orange); }
.slot-muted { color: var(--muted); }
.slot-muted .slot-time { color: var(--muted); }
.slot-muted .slot-title { color: var(--muted); font-weight: 500; }

/* Register band */
.register { padding: clamp(3rem, 7vw, 5rem) 1.25rem; background: var(--band); }
.register-card { max-width: 640px; margin: 0 auto; text-align: center; color: #fff; }
.register-card h2 { font-size: clamp(2rem, 5vw, 2.8rem); font-weight: 600; }
.register-card h2::after { content: ""; display: block; width: 72px; height: 4px; margin: 1rem auto 1.6rem; border-radius: 4px; background: var(--grad-warm); }
.register-lead { color: var(--band-soft); margin: 0 0 1.1rem; font-size: 1.08rem; }
.register-deadline { display: block; margin: 0 0 1.8rem; text-align: center; }
.register-deadline .deadline-pill { background: color-mix(in srgb, var(--orange) 14%, transparent); color: #fff; font-size: 1.02rem; }
.register-deadline .deadline-new { color: var(--orange-soft); }
.register-note { margin: 1.1rem 0 0; color: var(--orange-soft); font-size: 1rem; }

/* "Registration is compulsory." — must not be missed */
.compulsory { color: var(--orange-deep); font-weight: 800; letter-spacing: .01em; }
.hero-note.compulsory { font-size: 1rem; }
.register-note.compulsory {
  display: inline-block;
  color: var(--orange);
  font-size: 1.15rem;
  padding: .5rem 1.2rem;
  border: 2px solid var(--orange);
  border-radius: 999px;
  background: color-mix(in srgb, var(--orange) 14%, transparent);
}

/* Getting there */
.getting-there { padding: clamp(3rem, 7vw, 5rem) 0; background: var(--paper); }
.gt-grid { max-width: var(--maxw); margin: 2.5rem auto 0; padding: 0 1.25rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; }
.gt-card { display: flex; flex-direction: column; justify-content: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; box-shadow: 0 6px 20px -14px rgba(0, 92, 61, .25); text-align: center; }
.gt-card h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: .6rem; color: var(--teal-deep); }
.gt-card p { margin: 0 auto .4rem; max-width: 52ch; color: var(--ink-soft); }
.gt-card a { font-weight: 600; color: var(--orange-deep); }
.gt-map-card { grid-column: 1 / -1; border-left: 6px solid var(--orange); }
.gt-map-card h3 { color: var(--orange-deep); }
.gt-map-figure { margin: 1rem 0 0; }
.gt-map-figure img { width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); }
.gt-map-figure figcaption { font-size: .85rem; color: var(--muted); margin-top: .6rem; text-align: center; }

/* Contact */
.contact { padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(3rem, 7vw, 5rem); background: var(--wash); }
.contact-card { max-width: 560px; margin: 2rem auto 0; text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); border-top: 4px solid transparent; border-image: var(--grad-warm) 1; }
.contact-name { font-family: "Fraunces", serif; font-size: 1.5rem; font-weight: 600; margin: 0; color: var(--ink); }
.contact-role { color: var(--ink-soft); margin: .3rem 0 1rem; }
.contact-lines { margin: 0; font-weight: 500; }
.contact-lines a { text-decoration: none; }
.contact-lines a:hover { text-decoration: underline; }

/* Footer */
.site-footer { background: var(--band); color: var(--band-soft); text-align: center; padding: 2.5rem 1.25rem; border-top: 3px solid transparent; border-image: var(--grad-warm) 1; }
.footer-logos { display: flex; align-items: center; justify-content: center; gap: 1.6rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.footer-logos .logo-chip { padding: 8px 12px; }
.footer-logos .logo-chip img { height: 44px; }
.footer-logos .logo-chip.logo-chip-round img { height: 50px; }
.footer-org { font-weight: 600; color: #fff; margin: 0 0 .3rem; }
.footer-fine { font-size: .88rem; color: var(--muted); margin: 0; }
.dot { color: var(--orange); }

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .nav-menu { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: .5rem 1.25rem 1.25rem; box-shadow: var(--shadow); transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease; }
  .nav-menu.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .nav-menu a { padding: .8rem .25rem; border-bottom: 1px solid var(--line); }
  .nav-menu .nav-cta { text-align: center; margin-top: .8rem; border-bottom: 0; }
  .slot { padding: 1.1rem .5rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
