/* =====================================================================
   3D GeoInfo | SDSC 2027 – Rabat   –   main stylesheet
   Palette inspired by Rabat: Kasbah blue, whitewash, terracotta, sand.
   ===================================================================== */

:root {
  --blue: #1f4e79;
  --blue-dark: #12314d;
  --blue-light: #e8eef5;
  --terracotta: #b5532a;
  --terracotta-light: #f6e7df;
  --gold: #d4a017;
  --sand: #f6f1e7;
  --ink: #1e2430;
  --muted: #5d6673;
  --line: #e2e6ec;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 8px 28px rgba(18, 49, 77, 0.08);
  --font-head: "Raleway", "Segoe UI", system-ui, sans-serif;
  --font-body: "Roboto", "Segoe UI", system-ui, sans-serif;
}

html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
}
h1, h2, h3, h4, h5 { font-family: var(--font-head); font-weight: 700; color: var(--blue-dark); }
a { color: var(--blue); }
a:hover { color: var(--terracotta); }
img { max-width: 100%; }

/* ---------- Header / navigation ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 1030;
  background: rgba(18, 49, 77, 0.35);
  backdrop-filter: blur(8px);
  transition: background .25s, box-shadow .25s;
}
.site-header.scrolled { background: var(--blue-dark); box-shadow: 0 2px 16px rgba(0,0,0,.25); }
.site-header .navbar { padding: .55rem 0; }
.site-header .navbar-brand { display: flex; align-items: center; gap: .6rem; color: #fff; font-family: var(--font-head); font-weight: 800; letter-spacing: .02em; }
.site-logo { display: block; height: 84px; width: auto; }
.site-logo.footer-logo { height: 100px; }
@media (max-width: 575.98px) { .site-header .site-logo { height: 60px; } }
.site-header .nav-link { color: rgba(255,255,255,.88); font-weight: 600; font-family: var(--font-head); font-size: .95rem; padding: .5rem .8rem; }
.site-header .nav-link:hover, .site-header .nav-link.active { color: var(--gold); }
.site-header .dropdown-menu { border: 0; border-radius: 10px; box-shadow: var(--shadow); }
.site-header .dropdown-item { font-weight: 500; padding: .5rem 1.1rem; }
.site-header .dropdown-item:hover { background: var(--blue-light); color: var(--blue-dark); }
.site-header .btn-register { background: var(--terracotta); color: #fff; border: 0; font-weight: 700; border-radius: 999px; padding: .5rem 1.25rem; }
.site-header .btn-register:hover { background: #9a4321; color: #fff; }
.site-header .navbar-toggler { border-color: rgba(255,255,255,.5); }
.site-header .navbar-toggler-icon { filter: invert(1); }
@media (max-width: 1199.98px) {
  .site-header .navbar-collapse { background: var(--blue-dark); margin: .5rem -12px 0; padding: .5rem 12px 1rem; border-radius: 0 0 12px 12px; }
  .site-header .dropdown-menu { background: rgba(255,255,255,.06); }
  .site-header .dropdown-item { color: rgba(255,255,255,.9); }
  .site-header .dropdown-item:hover { background: rgba(255,255,255,.12); color: #fff; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; color: #fff; text-align: center;
  /* Photo: "Rabat, old and new" – Mausoleum of Mohammed V with the Mohammed VI Tower,
     Petar Milošević, CC BY-SA 4.0, Wikimedia Commons. Alternates: hero-alt-hassan-tower.jpg, hero-alt-kasbah.jpg */
  background:
    linear-gradient(180deg, rgba(18,49,77,.55) 0%, rgba(18,49,77,.35) 40%, rgba(18,49,77,.75) 100%),
    url("../img/hero-bg.jpg") center 35% / cover no-repeat;
  padding: 120px 0 80px;
  text-shadow: 0 2px 12px rgba(0,0,0,.45);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: url("../img/zellige.svg") center/220px repeat; opacity: .05;
}
.hero .photo-credit {
  position: absolute; right: 12px; bottom: 8px; z-index: 1;
  font-size: .7rem; color: rgba(255,255,255,.7); text-shadow: none;
}
.hero .photo-credit a { color: rgba(255,255,255,.85); }
.hero .container { position: relative; z-index: 1; }
.hero .kicker { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .25em; font-size: .85rem; color: var(--gold); font-weight: 700; }
.hero h1 { color: #fff; font-size: clamp(2.4rem, 6vw, 4.4rem); font-weight: 900; margin: .4rem 0 .6rem; }
.hero .subtitle { font-size: clamp(1rem, 2vw, 1.3rem); max-width: 860px; margin: 0 auto 1.6rem; color: rgba(255,255,255,.92); }
.hero .facts { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem 2rem; margin-bottom: 2rem; font-family: var(--font-head); font-weight: 600; }
.hero .facts span { display: inline-flex; align-items: center; gap: .5rem; }
.hero .facts i { color: var(--gold); font-size: 1.2rem; }
.hero .btn { border-radius: 999px; font-weight: 700; padding: .7rem 1.6rem; margin: .3rem; }
.btn-primary { background: var(--terracotta); border-color: var(--terracotta); }
.btn-primary:hover { background: #9a4321; border-color: #9a4321; }
.btn-outline-light:hover { color: var(--blue-dark); }
.hero .hosted { margin-top: 2.2rem; font-size: .9rem; color: rgba(255,255,255,.8); }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section.sand { background: var(--sand); }
.section.blue { background: var(--blue-light); }
.section-title { margin-bottom: 2.4rem; }
.section-title .label { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .2em; font-size: .78rem; font-weight: 700; color: var(--terracotta); }
.section-title h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin: .25rem 0 .6rem; position: relative; padding-bottom: .7rem; }
.section-title h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 56px; height: 4px; border-radius: 2px; background: var(--gold); }
.section-title.center { text-align: center; }
.section-title.center h2::after { left: 50%; transform: translateX(-50%); }
.section-title p { color: var(--muted); max-width: 760px; }
.section-title.center p { margin: 0 auto; }

.card-soft { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); height: 100%; }
.card-soft .card-body { padding: 1.6rem; }
.card-soft .icon { width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center; background: var(--blue-light); color: var(--blue); font-size: 1.5rem; margin-bottom: 1rem; }
.card-soft.accent .icon { background: var(--terracotta-light); color: var(--terracotta); }
.badge-tbc { background: var(--terracotta-light); color: var(--terracotta); font-weight: 700; font-size: .7rem; letter-spacing: .06em; border-radius: 6px; padding: .2rem .45rem; vertical-align: middle; }
.notice { border-left: 4px solid var(--gold); background: #fff8e6; padding: .9rem 1.1rem; border-radius: 8px; color: #6b5300; }

/* ---------- Lists ---------- */
.topic-list { list-style: none; padding: 0; margin: 0; }
.topic-list li { padding: .45rem 0 .45rem 1.7rem; position: relative; border-bottom: 1px dashed var(--line); }
.topic-list li::before { content: ""; position: absolute; left: .3rem; top: 1rem; width: 8px; height: 8px; border-radius: 50%; background: var(--terracotta); }
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { padding: .3rem 0 .3rem 1.7rem; position: relative; }
.check-list li::before { content: "\F26E"; font-family: "bootstrap-icons"; position: absolute; left: 0; color: var(--blue); }

/* ---------- Tables ---------- */
.table-clean { --bs-table-bg: transparent; margin: 0; }
.table-clean th { font-family: var(--font-head); color: var(--blue-dark); border-bottom: 2px solid var(--blue) !important; }
.table-clean td, .table-clean th { padding: .8rem .9rem; vertical-align: middle; }
.table-clean .date { font-weight: 700; color: var(--terracotta); white-space: nowrap; }
.table-wrap { overflow-x: auto; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); padding: .5rem; }

/* ---------- People ---------- */
.person { text-align: center; }
.person img, .person .avatar { width: 128px; height: 128px; border-radius: 50%; object-fit: cover; margin: 0 auto .9rem; display: block; border: 4px solid var(--white); box-shadow: var(--shadow); background: var(--blue-light); }
.person .role { font-size: .75rem; letter-spacing: .15em; text-transform: uppercase; color: var(--terracotta); font-weight: 700; }
.person h5 { margin: .35rem 0 .2rem; }
.person p { color: var(--muted); margin: 0; font-size: .95rem; }
.member-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: .6rem 1.4rem; }
.member-grid div { padding: .45rem 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.member-grid strong { display: block; color: var(--blue-dark); }
.member-grid span { color: var(--muted); font-size: .88rem; }

/* ---------- Keynotes ---------- */
.keynote { display: flex; gap: 1.2rem; align-items: flex-start; }
.keynote img, .keynote .avatar { width: 96px; height: 96px; border-radius: 16px; object-fit: cover; flex: 0 0 96px; background: var(--blue-light); }
.keynote h5 { margin: 0 0 .15rem; }
.keynote .aff { color: var(--muted); font-size: .9rem; }
.keynote .talk { margin-top: .5rem; font-style: italic; color: var(--blue-dark); }

/* ---------- Schedule ---------- */
.schedule .nav-pills { gap: .4rem; justify-content: center; margin-bottom: 1.6rem; }
.schedule .nav-pills .nav-link { border-radius: 999px; font-family: var(--font-head); font-weight: 700; color: var(--blue-dark); background: #fff; border: 1px solid var(--line); }
.schedule .nav-pills .nav-link.active { background: var(--blue); color: #fff; border-color: var(--blue); }
.schedule .nav-pills small { display: block; font-weight: 500; font-size: .72rem; opacity: .8; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 150px 1fr; gap: 1rem; padding: .85rem 0; border-bottom: 1px solid var(--line); }
.timeline .time { font-family: var(--font-head); font-weight: 700; color: var(--terracotta); }
.timeline .where { color: var(--muted); font-size: .88rem; }
@media (max-width: 575.98px) { .timeline li { grid-template-columns: 1fr; gap: .2rem; } }

/* ---------- Venue ---------- */
.map-frame { width: 100%; aspect-ratio: 16 / 10; max-width: 100%; border: 0; border-radius: var(--radius); box-shadow: var(--shadow); }
.stars { color: var(--gold); letter-spacing: .05em; }

/* ---------- Logos ---------- */
.logo-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }
.logo-tile { min-width: 180px; max-width: 240px; flex: 1 1 180px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem; text-align: center; text-decoration: none; color: var(--blue-dark); box-shadow: var(--shadow); }
.logo-tile img { max-height: 64px; width: auto; }
.logo-tile .name { font-family: var(--font-head); font-weight: 800; font-size: 1.3rem; }
.logo-tile .full { font-size: .8rem; color: var(--muted); }
.logo-tile.placeholder { border-style: dashed; color: var(--muted); }

/* ---------- Sponsor tiers & fees ---------- */
.tier { border-top: 6px solid var(--blue); }
.tier .price { font-family: var(--font-head); font-size: 1.9rem; font-weight: 900; color: var(--blue-dark); }
.tier .price small { font-size: .8rem; font-weight: 500; color: var(--muted); }
.fee-card .head { background: var(--blue); color: #fff; border-radius: var(--radius) var(--radius) 0 0; padding: 1rem 1.4rem; }
.fee-card .head h5 { color: #fff; margin: 0; }
.fee-card .head small { opacity: .85; }
.fee-card table td:last-child, .fee-card table td:nth-child(2) { text-align: right; font-weight: 700; }

/* ---------- Contact / footer ---------- */
.contact-box i { font-size: 1.6rem; color: var(--terracotta); }
.site-footer { background: var(--blue-dark); color: rgba(255,255,255,.8); padding: 56px 0 24px; }
.site-footer h5 { color: #fff; font-size: 1rem; text-transform: uppercase; letter-spacing: .12em; }
.site-footer a { color: rgba(255,255,255,.8); text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { padding: .2rem 0; }
.site-footer .bottom { border-top: 1px solid rgba(255,255,255,.15); margin-top: 2rem; padding-top: 1.2rem; font-size: .85rem; }

#scroll-top { position: fixed; right: 18px; bottom: 18px; width: 44px; height: 44px; border-radius: 50%; background: var(--terracotta); color: #fff; display: none; place-items: center; z-index: 1020; box-shadow: var(--shadow); }
#scroll-top.show { display: grid; }
