/* ==========================================================
   Design Impact – Pinkcity Design Confluence '26
   Sections: 1 Tokens · 2 Base · 3 Layout · 4 Hero · 5 Tracks
             6 Advisory · 7 Band (dates/abstract/partners)
             8 Gallery · 9 Footer · 10 Responsive
   ========================================================== */

/* ---------- 1. Design tokens ---------- */
:root {
  --blue: #123e8e;
  --blue-dark: #0e3277;
  --green-bg: #eaf2d9;
  --lime: #8cb92e;
  --red: #e3262b;
  --yellow: #f5c518;
  --pink: #f4a9a0;
  --grey-stripe: #8a8a8a;
  --text: #1c1c1c;
  --muted: #555;
  --white: #fff;
  --footer-bg: #f2f2f2;
  --border: #e6e6e6;

  /* Change this one line if your Figma uses another family */
  --font-head: "Poppins", system-ui, sans-serif;
  --font-body: "Poppins", system-ui, sans-serif;

  --container: 1140px;
 .container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
}
/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 16px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 200;
  background: var(--blue); color: #fff; padding: 8px 14px;
}
.skip-link:focus { left: 8px; }

.icon { width: 24px; height: 24px; flex: none; }

/* ---------- 3. Layout helpers ---------- */
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.center { text-align: center; }
.section { padding: 56px 0; }
.section__title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 32px;
  line-height: 1.2;
  text-align: center;
}
.section__sub { text-align: center; margin-top: 8px; font-size: 14px; font-weight: 400; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 500 14px/1 var(--font-body);
  padding: 14px 20px;
  border: 0; border-radius: var(--radius);
  cursor: pointer; text-decoration: none;
  transition: background .2s, transform .1s;
}
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-dark); }
.btn--primary:active { transform: translateY(1px); }
.btn--block { width: 100%; }
.btn__icon { width: 16px; height: 16px; }

/* Coloured stripe under the hero and the band section */
.stripe {  height: 4px; background: url("assets/stripe.png") no-repeat center / 100% 100%;}

/* ---------- Mobile menu (hidden on desktop) ---------- */
.menu-toggle {
  display: none;
  position: fixed; top: 12px; right: 12px; z-index: 100;
  width: 44px; height: 44px;
  background: var(--blue); border: 0; border-radius: var(--radius);
  cursor: pointer; padding: 12px;
  flex-direction: column; justify-content: space-between;
}

.menu-toggle span { display: block; height: 2px; background: #fff; transition: transform .2s, opacity .2s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.mobile-nav {
  position: fixed; top: 64px; right: 12px; z-index: 100;
  background: #fff; box-shadow: var(--shadow); border-radius: var(--radius);
  min-width: 200px; padding: 8px 0;
}
.mobile-nav[hidden] { display: none; }
.mobile-nav a { display: block; padding: 10px 20px; text-decoration: none; font-size: 15px; }
.mobile-nav a:hover { background: var(--green-bg); }

/* ---------- 4. Hero ---------- */
.hero {
  background: var(--green-bg);
  position: relative;
}
.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 56px;
  padding-top: 64px;
  padding-bottom: 48px;
  align-items: start;
}
.hero__logo { width: 100%; max-width: 360px; height: auto; }
.hero__lead { margin-top: 12px; font-size: 14px; line-height: 1.75; font-weight: 400; max-width: 592px; }
.hero__rule { border: 0; border-top: 1px solid #cfd7bd; margin: 24px 0; max-width: 592px; }
.hero__meta { display: flex; gap: 64px; flex-wrap: wrap; }
.hero__meta h2 { font-family: var(--font-head); font-weight: 600; font-size: 18px; line-height: 1.3; margin-bottom: 10px; }
.hero__meta p { font-size: 14px; line-height: 1.8; }

.hero__side { display: flex; flex-direction: column; gap: 20px; }
.hero__logos { display: flex; align-items: center; gap: 24px; justify-content: center; }
.hero__logos img { height: 44px; width: auto; }

/* Registration form */
.reg-form {
  background: #fff;
  padding: 24px;
  border-radius: 2px;
  box-shadow: var(--shadow);
}
.reg-form h2 { font-family: var(--font-head); font-weight: 600; font-size: 17px; margin-bottom: 16px; }
.field { margin-bottom: 14px; }
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"] {
  width: 100%; height: 44px;
  padding: 0 14px;
  font: 400 12px var(--font-body);
  border: 1px solid #d4d4d4; border-radius: 3px;
  background: #fff;
}
.field input::placeholder { color: #777; }
.field input:focus { border-color: var(--blue); outline: 2px solid rgba(18, 62, 142, .25); }
.field.invalid input { border-color: var(--red); }
.field__error { display: block; color: var(--red); font-size: 11px; margin-top: 4px; min-height: 0; }
.field--check { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 18px; }
.field--check label { font-size: 9px; }
.field--check a { color: var(--blue); }
.field--check .field__error { flex-basis: 100%; margin-top: 0; }
.form-status { margin-top: 10px; font-size: 13px; text-align: center; }
.form-status.ok { color: #2a7a2a; }

/* ---------- 5. Tracks ---------- */
.tracks { padding-top: 64px; }
.tracks__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.track-card {
  position: relative;
  background: #fff;
  border: 1px solid #f2d9c8;
  border-radius: 4px;
  padding: 22px 24px 28px;
  box-shadow: 0 1px 8px rgba(0, 0, 0, .04);
}
.track-card h3 { font-family: var(--font-head); font-weight: 600; font-size: 19px; line-height: 1.3; color: var(--blue); letter-spacing: .5px; }
/* Only the title + intro sit beside the colored mark; the list uses the full card width */
.track-card h3, .track-card p { margin-left: 30px; }
.track-card p { font-weight: 400; font-size: 14px; line-height: 1.75; color: #333; margin-top: 8px; }
.track-card h4 { font-family: var(--font-head); font-weight: 600; font-size: 14px; color: var(--blue); margin: 18px 0 8px; }
.track-card li { font-weight: 400; font-size: 14px; line-height: 1.9; }
.track-card li::before { content: "· "; }
.track-card__mark { position: absolute; left: 24px; top: 22px; width: 22px; height: 52px; }
.track-card__mark--green { background: var(--lime); width: 18px; height: 52px; }
.track-card__mark--pink { background: var(--pink); width: 24px; height: 40px; border-radius: 12px 12px 2px 2px; }
.track-card__mark--red { background: var(--red); width: 14px; height: 36px; }
.track-card__mark--red::after {
  content: ""; position: absolute; left: 0; top: 40px;
  width: 14px; height: 14px; border-radius: 50%; background: var(--yellow);
}
.track-card {
  border-radius: 8px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, .10);
}

/* ---------- 6. Advisory committee ---------- */
.advisory { padding-top: 24px; }
.advisory__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 28px 14px;
  max-width: 1010px;
  margin: 32px auto 0;
}
.person { background: #fff; box-shadow: var(--shadow); text-align: center; }
.person img { width: 100%; aspect-ratio: 240 / 260; object-fit: cover; background: var(--blue); }
.person span { display: block; padding: 8px 6px; font: 500 15px/1.3 var(--font-body); }
.section__title, .band__title { letter-spacing: -.2px; }
.person { background: transparent; box-shadow: none; }
.person img { border-radius: 6px 6px 0 0; }
.person span { background: #fff; border-radius: 0 0 8px 8px; padding: 14px 8px; font-weight: 600; box-shadow: 0 6px 14px rgba(0, 0, 0, .10);}

/* ---------- 7. Dates / abstract / partners band ---------- */
.band { background: var(--green-bg); padding-top: 48px; }
.band .container { padding-bottom: 40px; }
.band__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.band__title { font-family: var(--font-head); font-weight: 600; font-size: 32px; line-height: 1.2; }
.band__title--center { text-align: center; }
.band__title--sm { font-size: 26px; margin-bottom: 20px; }
.band__sub { font-size: 16px; margin-top: 4px; }

.dates__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 20px; }
.date-card {
  display: flex; align-items: center; gap: 14px;
  background: #fff; padding: 14px 16px; border-radius: 3px; box-shadow: var(--shadow);
  min-height: 62px;
}
.date-card .icon { color: var(--blue); }
.date-card strong { display: block; font: 500 14px/1.4 var(--font-body); }
.date-card span { font-size: 14px; }
.date-card--center { grid-column: 1 / -1; width: calc(50% - 7px); margin: 6px auto 0; }

.abstract__box { display: grid; grid-template-columns: 1fr 190px; gap: 14px; margin-top: 20px; }
.contrib { background: #fff; padding: 18px 20px; box-shadow: var(--shadow); }
.contrib h3 { font-family: var(--font-head); font-weight: 500; font-size: 16px; color: var(--blue); margin-bottom: 10px; }
.contrib li { font-size: 14px; line-height: 2; }
.contrib li::before { content: "· "; }
.qr { background: #fff; padding: 12px; text-align: center; box-shadow: var(--shadow); }
.qr img { width: 130px; margin: 0 auto 4px; }
.qr p { font-size: 10px; line-height: 1.4; color: var(--muted); }
.qr a { color: var(--blue); text-decoration: none; }
.abstract__note { font-size: 11px; color: var(--muted); margin-top: 12px; max-width: 280px; }

.band__rule { border: 0; border-top: 1px solid #cfd7bd; margin: 40px 0 28px; }

/* Shared carousel */
.carousel { position: relative; }
.carousel__track { display: grid; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track > li { scroll-snap-align: start; }
.carousel__btn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 28px; height: 28px; padding: 5px;
  background: #fff; border: 1px solid var(--border); border-radius: 50%;
  box-shadow: var(--shadow); cursor: pointer; color: #333;
}
.carousel__btn svg { width: 100%; height: 100%; }
.carousel__btn--prev { left: -14px; }
.carousel__btn--prev svg { transform: rotate(180deg); }
.carousel__btn--next { right: -14px; }
.carousel__btn:disabled { opacity: .4; cursor: default; }

.carousel--partners .carousel__track { grid-auto-flow: column; grid-auto-columns: calc((100% - 5 * 16px) / 6); gap: 16px; }
.carousel--partners li { background: #fff; height: 56px; display: grid; place-items: center; padding: 8px 12px; box-shadow: var(--shadow); }
.carousel--partners img { max-height: 40px; width: auto; max-width: 100%; object-fit: contain; }
.band .center { margin-top: 24px; }

/* ---------- 8. Gallery ---------- */
.gallery { padding-bottom: 72px; }
.carousel--gallery { margin-top: 32px; }
.carousel--gallery .carousel__btn--prev { left: -28px; }
.carousel--gallery .carousel__btn--next { right: -28px; }
.carousel--gallery .carousel__btn { width: 40px; height: 40px; padding: 10px; }
.carousel--gallery .carousel__track {
  grid-template-rows: repeat(2, auto);
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 2 * 24px) / 3);
  gap: 24px;
}
.gcard { background: #fff; border: 1px solid var(--border); padding: 14px; box-shadow: var(--shadow); }
.gcard img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #ddd; }
.gcard p { font: 500 14px/1.3 var(--font-body); margin-top: 14px; }

/* ---------- 9. Footer ---------- */
.footer { background: var(--footer-bg); padding-top: 40px; }
.footer__grid { display: grid; grid-template-columns: 1.3fr .8fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer__about img { width: 190px; margin-bottom: 14px; }
.footer__about p { font-size: 14px; line-height: 1.75; max-width: 380px; }
.footer h2 { font-family: var(--font-head); font-weight: 600; font-size: 18px; margin-bottom: 14px; }
.footer__links li { margin-bottom: 8px; }
.footer__links a { font-size: 14px; text-decoration: none; }
.footer__links a:hover, .footer__contact a:hover { text-decoration: underline; }
.footer__contact li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; margin-bottom: 12px; }
.footer__contact .icon { width: 18px; height: 18px; margin-top: 2px; }
.footer__contact a { text-decoration: none; }
.footer__contact address { font-style: normal; line-height: 1.6; }
.social { display: flex; gap: 14px; margin-top: 16px; }
.social a { display: block; width: 24px; height: 24px; color: var(--blue); }
.social svg { width: 100%; height: 100%; }
.footer__copy { text-align: center; font-size: 14px; padding: 36px 16px 20px; }

/* ---------- 10. Responsive ---------- */
@media (max-width: 1100px) {
  .hero__inner { grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; }
  .carousel--partners .carousel__track { grid-auto-columns: calc((100% - 3 * 16px) / 4); }
}

@media (max-width: 900px) {
  .band__cols { grid-template-columns: 1fr; gap: 40px; }
  .menu-toggle { display: flex; }
  .hero__inner { grid-template-columns: 1fr; padding-top: 80px; }
  .hero__logos { justify-content: flex-start; }
  .reg-form { max-width: 480px; }
  .tracks__grid { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .advisory__grid { grid-template-columns: repeat(3, 1fr); }
  .carousel--gallery .carousel__track { grid-auto-columns: calc((100% - 24px) / 2); }
  .carousel--gallery .carousel__btn--prev { left: -8px; }
  .carousel--gallery .carousel__btn--next { right: -8px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__about { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  :root { --gutter: 16px; }
  .section { padding: 40px 0; }
  .section__title, .band__title { font-size: 26px; }
  .hero__meta { gap: 28px; }
  .dates__grid { grid-template-columns: 1fr; }
  .date-card--center { width: 100%; }
  .abstract__box { grid-template-columns: 1fr; }
  .advisory__grid { grid-template-columns: repeat(2, 1fr); gap: 20px 12px; }
  .carousel--partners .carousel__track { grid-auto-columns: calc((100% - 16px) / 2); }
  .carousel--gallery .carousel__track { grid-auto-columns: 100%; grid-template-rows: auto; }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .carousel__btn--prev, .carousel--gallery .carousel__btn--prev { left: -4px; }
  .carousel__btn--next, .carousel--gallery .carousel__btn--next { right: -4px; }
}

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

/* ---------- Watermark: one Co-Life icon behind Hero + Three Tracks + Advisory Committee ---------- */
.watermark-wrap { position: relative; overflow: hidden; isolation: isolate; }
.watermark-wrap .hero { background: transparent; }
.watermark-wrap .hero::before {                            /* hero green sits BELOW the watermark */
  content: "";
  position: absolute; inset: 0;
  background: var(--green-bg);
  z-index: -2;
}
.watermark-wrap::before {
  content: "";
  position: absolute;
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1340px, 130vw);
  aspect-ratio: 1920 / 2236;
  background: url("assets/bg-swirl.png") no-repeat center / contain;
  opacity: .60;                 /* higher = darker watermark */
  pointer-events: none;
  z-index: -1;                  /* above hero green (-2), below all page content */
}

/* ---------- Hero: Submit Your Abstract card ---------- */
.abs-card {
  background: #fff;
  padding: 22px 24px 24px;
  border-radius: 4px;
  box-shadow: var(--shadow);
  text-align: center;
}
.abs-card h2 { font-family: var(--font-head); font-weight: 600; font-size: 18px; line-height: 1.3; color: var(--blue); }
.abs-card__sub { font-size: 10px; line-height: 1.5; color: var(--muted); margin: 6px auto 16px; max-width: 280px; }
.abs-card__qr {
  position: relative;
  width: 170px; margin: 0 auto 16px;
  padding: 10px;
  border: 1px solid #e3e9f4; border-radius: 10px;
  box-shadow: 0 2px 10px rgba(18, 62, 142, .08);
}
.abs-card__qr img { width: 100%; height: auto; }
/* little "scan" ticks either side of the QR */
.abs-card__qr::before, .abs-card__qr::after {
  content: ""; position: absolute; top: 50%; width: 16px; height: 28px; transform: translateY(-50%);
  background:
    linear-gradient(var(--blue), var(--blue)) center / 16px 2px no-repeat,
    linear-gradient(var(--blue), var(--blue)) center top / 12px 2px no-repeat,
    linear-gradient(var(--blue), var(--blue)) center bottom / 12px 2px no-repeat;
}
.abs-card__qr::before { left: -28px; }
.abs-card__qr::after  { right: -28px; }
.abs-card__link {
  display: flex; align-items: flex-start; gap: 8px; text-align: left;
  background: #e8f0fc; color: var(--blue);
  border-radius: 6px; padding: 8px 10px; margin-bottom: 16px;
  font-size: 9px; line-height: 1.5; text-decoration: none; word-break: break-all;
}
.abs-card__link svg { width: 12px; height: 12px; flex: none; margin-top: 2px; }
.abs-card .btn { font-size: 12px; padding: 13px 16px; }

/* ---------- Hero order on tablet/mobile: logo+intro → Co-LIFE/EU logos → abstract card → dates & venue ---------- */
@media (max-width: 900px) {
  .hero__content, .hero__side { display: contents; }
  .hero__intro { grid-area: intro; }
  .hero__logos { grid-area: logos; }
  .abs-card    { grid-area: card; }
  .hero__meta  { grid-area: meta; }
  .hero__inner {
    grid-template-columns: 1fr;
    grid-template-areas: "intro" "logos" "card" "meta";
    gap: 24px;
  }
  .abs-card { max-width: 420px; width: 100%; margin-inline: auto; }
}

/* ---------- Submit Your Abstract card: match Figma details ---------- */
.abs-card { padding: 26px 28px 28px; border-radius: 8px; box-shadow: 0 4px 18px rgba(0, 0, 0, .08); }
.abs-card h2 { font-size: 22px; font-weight: 600; }
.abs-card__sub { font-size: 13px; line-height: 1.55; color: #2a2f55; margin: 8px auto 18px; max-width: 340px; }
.abs-card__qr {
  width: 190px; margin-bottom: 18px; padding: 12px;
  border: 1px solid #e3eaf7; border-radius: 12px;
  box-shadow: 0 4px 14px rgba(18, 62, 142, .14);
}
/* radiating "scan" rays beside the QR */
.abs-card__qr::before, .abs-card__qr::after {
  width: 26px; height: 40px; top: 50%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 40' fill='none' stroke='%23123e8e' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M4 5l11 7M2 20h12M4 35l11-7'/%3E%3C/svg%3E") center / contain no-repeat;
}
.abs-card__qr::before { left: -40px; }
.abs-card__qr::after  { right: -40px; transform: translateY(-50%) scaleX(-1); }
.abs-card__link {
  gap: 12px; align-items: center;
  background: #e4effc; border-radius: 6px; padding: 12px 14px; margin-bottom: 20px;
  font-size: 11.5px; font-weight: 600; line-height: 1.6;
}
.abs-card__link svg { width: 18px; height: 18px; margin-top: 0; }
.abs-card .btn { font-size: 16px; font-weight: 500; padding: 15px 16px; border-radius: 6px; }

/* ---------- Rounded corners: Academic Partners + Co-Life Gallery ---------- */
.carousel--partners li { border-radius: 8px; }
.gcard { border-radius: 8px; }
.gcard img { border-radius: 6px; }

/* ---------- Button radius (Request For FPD Program + Abstract Submission Form) ---------- */
.btn { border-radius: 12px; }

/* ---------- Advisory Committee: more space between member cards ---------- */
.advisory__grid { gap: 44px 28px; max-width: 1100px; }
@media (max-width: 900px) { .advisory__grid { gap: 32px 20px; } }
@media (max-width: 600px) { .advisory__grid { gap: 28px 16px; } }


/* ---------- Welcome + Conference Highlights (after the hero) ---------- */
.welcome { padding: 56px 0 8px; }
.welcome__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  gap: 48px;
  align-items: start;
}
.welcome__title {
  font-family: var(--font-head);
  font-weight: 600; font-size: 32px; line-height: 1.2;
  color: #111;
  margin-bottom: 18px;
}
.welcome__text p { font-size: 15px; line-height: 1.9; margin-bottom: 14px; max-width: 700px; }

.highlights {
  position: relative;
  background: #fff;
  border: 1px solid #f1e4e6;
  border-radius: 12px;
  padding: 26px 26px 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .08);
  overflow: hidden;
}
.highlights::before {                       /* coloured top bar */
  content: "";
  position: absolute; left: 0; right: 0; top: 0; height: 5px;
  background: linear-gradient(90deg, var(--red), var(--yellow), var(--lime));
}
.highlights h3 { font-family: var(--font-head); font-weight: 500; font-size: 19px; margin-bottom: 12px; }
.highlights ul { list-style: disc; padding-left: 22px; }
.highlights li { font-size: 14px; line-height: 1.85; margin-bottom: 4px; }
.highlights li::marker { color: var(--blue); }

@media (max-width: 900px) {
  .welcome { padding-top: 40px; }
  .welcome__inner { grid-template-columns: 1fr; gap: 28px; }
  .welcome__title { font-size: 26px; }
}

/* ---------- Welcome section: call-to-action button ---------- */
.welcome__cta { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 14px; }
.welcome__cta .btn { font-size: 15px; padding: 14px 26px; }
@media (max-width: 600px) { .welcome__cta .btn { width: 100%; } }
