/* IQ-SITE 2026 — Elegant conference microsite
   External CSS (FINAL) — Mobile & Tablet Friendly
   -------------------------------------------------- */

:root{
  /* Light & bright palette (confirmed) */
  --bg0:#F7FAFF;
  --bg1:#EEF4FF;

  --card: rgba(255,255,255,.78);
  --card2: rgba(255,255,255,.90);
  --stroke: rgba(12,18,32,.12);

  --text: rgba(11,18,32,.92);
  --muted: rgba(11,18,32,.70);
  --muted2: rgba(11,18,32,.55);

  /* Core brand */
  --brand:#1D4ED8;   /* IQ blue */
  --brand2:#06B6D4;  /* cyan */
  --good:#16A34A;    /* sustainability green */

  /* EDIC accents */
  --warn:#F97316;    /* orange */
  --accent:#7C3AED;  /* purple */
  --bad:#EF4444;     /* red */

  --shadow: 0 18px 60px rgba(14,20,40,.14);
  --radius: 18px;
  --radius2: 26px;

  --max: 1160px;
  --pad: clamp(16px, 3vw, 28px);
  --h1: clamp(30px, 4vw, 54px);
  --h2: clamp(22px, 2.6vw, 34px);
  --h3: clamp(16px, 1.8vw, 22px);
  --body: clamp(14px, 1.25vw, 16px);
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; overflow-x:hidden; } /* IMPORTANT: stop mobile horizontal scroll */
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial, "Apple Color Emoji","Segoe UI Emoji";
  font-size: var(--body);
  line-height:1.55;
  color:var(--text);
  background: radial-gradient(900px 700px at 10% 10%, rgba(29,78,216,.16), transparent 60%),
              radial-gradient(900px 700px at 85% 15%, rgba(6,182,212,.14), transparent 58%),
              radial-gradient(900px 700px at 70% 95%, rgba(22,163,74,.10), transparent 58%),
              linear-gradient(180deg, var(--bg0), var(--bg1));
  overflow-x:hidden; /* IMPORTANT: stop mobile horizontal scroll */
}

a{ color:inherit; text-decoration:none; }
a:hover{ text-decoration:underline; }
img{ max-width:100%; display:block; }

.container{
  width: min(var(--max), calc(100% - 2*var(--pad)));
  margin: 0 auto;
}

/* Buttons */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:.55rem;
  padding: .85rem 1.05rem;
  border-radius: 999px;
  border:1px solid var(--stroke);
  background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.72));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(14,20,40,.10);
  transition: transform .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease;
  font-weight: 650;
}
.btn:hover{
  transform: translateY(-2px);
  text-decoration:none;
  border-color: rgba(12,18,32,.20);
  box-shadow: 0 14px 44px rgba(14,20,40,.12);
}
.btn:active{ transform: translateY(0px); }
.btn.primary{
  border-color: rgba(29,78,216,.35);
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  color: #ffffff;
}
.btn.ghost{
  background: transparent;
  border-color: var(--stroke);
  box-shadow: none;
}
.badge{
  display:inline-flex; align-items:center; gap:.4rem;
  padding:.35rem .6rem;
  border-radius: 999px;
  font-size: .82rem;
  color: var(--muted);
  border:1px solid var(--stroke);
  background: rgba(255,255,255,.65);
}
.muted{ color: var(--muted); }

/* Top nav */
header{
  position: sticky; top:0; z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(255,255,255,.72);
  box-shadow: 0 10px 34px rgba(14,20,40,.08);
  border-bottom: 1px solid var(--stroke);
}
.nav{
  display:flex; align-items:center; justify-content:space-between;
  padding: .8rem 0;
}
.brand{ display:flex; align-items:center; gap:.75rem; }

.brand-logo{
  height: 42px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,.80);
}

.navlinks{ display:flex; gap:.8rem; align-items:center; }
.navlinks a{
  padding:.55rem .7rem;
  border-radius: 999px;
  color: var(--muted);
  transition: background .2s ease, color .2s ease;
}
.navlinks a:hover{
  background: rgba(11,18,32,.04);
  color: var(--text);
  text-decoration:none;
}
.navlinks .btn.small{
  padding: .55rem .85rem;
  font-size: .9rem;
  line-height: 1;
}
.navlinks .nav-cta{ margin-left: .1rem; }

.menu-btn{
  display:none;
  border:1px solid var(--stroke);
  background: rgba(255,255,255,.65);
  color: var(--text);
  border-radius: 12px;
  padding:.55rem .7rem;
}

/* Mobile menu panel (JS toggle) */
.menu-panel{
  display:none;
  padding: 0 0 1rem 0;
}
.menu-panel a{
  display:block;
  padding:.75rem .5rem;
  color: var(--muted);
  border-radius: 12px;
}
.menu-panel a:hover{
  background: rgba(11,18,32,.04);
  color: var(--text);
  text-decoration:none;
}
.menu-cta{ margin-top: .75rem; }
.menu-cta .btn{ width: 100%; }

/* EDIC logo placeholder styles */
.edic-logo-wrap{
  display:flex;
  align-items:center;
  gap: 1rem;
  flex-wrap:wrap;
  margin-top: .9rem;
}
.edic-logo{
  height: 72px;
  width: auto;
  max-width: 320px;
  object-fit: contain;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,.85);
  padding: .35rem .55rem;
}

/* Keynote mini avatar (square) */
.avatar{
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  border-radius: 16px;
  object-fit: cover;
  object-position: center;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,.85);
  margin-bottom: .85rem;
}

/* Keynote detail row (small photo left) */
.keynote-row{
  display:flex;
  gap: 1rem;
  align-items:center;
  flex-wrap:wrap;
}
.keynote-photo{
  width: 96px;
  height: 96px;
  border-radius: 18px;
  object-fit: cover;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,.85);
}

hr.soft{
  border: 0;
  border-top: 1px solid var(--stroke);
  margin: 1rem 0;
}

/* Hero */
.hero{
  position: relative;
  padding: clamp(46px, 6vw, 76px) 0 clamp(30px, 4vw, 50px);
  overflow:hidden; /* IMPORTANT: prevent pseudo-element causing horizontal scroll on iOS */
}
.hero::before{
  content:"";
  position:absolute;
  inset: -240px -80px auto -80px;
  height: 520px;
  background: radial-gradient(closest-side at 20% 40%, rgba(124,92,255,.32), transparent 70%),
              radial-gradient(closest-side at 72% 25%, rgba(0,215,255,.22), transparent 70%);
  pointer-events:none;
}
.hero-grid{
  display:grid;
  grid-template-columns: 1.35fr .65fr;
  gap: clamp(18px, 3vw, 30px);
  align-items: start;
}

.kicker{ color: var(--muted); font-weight:650; letter-spacing: .4px; }
h1{ margin:.55rem 0 1rem; font-size: var(--h1); line-height:1.03; letter-spacing:-.5px; }
.lead{ color: var(--muted); max-width: 62ch; }
.hero-actions{ display:flex; gap:.75rem; flex-wrap:wrap; margin-top: 1.25rem; }

.hero-card{
  border-radius: var(--radius2);
  border: 1px solid var(--stroke);
  background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.72));
  box-shadow: var(--shadow);
  overflow:hidden;
  position: relative;
}
.hero-card .img{
  height: 170px;
  background: url("../img/pwcc.jpg") center/cover no-repeat;
  filter: saturate(1.05) contrast(1.04);
}
.hero-card .body{ padding: 1rem 1rem 1.1rem; }
.hero-card .meta{
  display:grid; gap:.55rem;
  margin-top:.75rem;
}
.meta .row{
  display:flex; justify-content:space-between; gap:.75rem;
  color: var(--muted);
}
.meta .row strong{ color: var(--text); font-weight: 650; }

/* Countdown */
.countdown{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap:.6rem;
  margin-top: .8rem;
}
.pill{
  text-align:center;
  padding:.65rem .4rem;
  border-radius: 16px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,.85);
}
.pill .num{ font-size: 1.2rem; font-weight: 800; letter-spacing:.2px; }
.pill .lbl{ font-size: .78rem; color: var(--muted2); }

/* Sections */
section{ padding: clamp(36px, 5vw, 70px) 0; }
.section-head{
  display:flex; align-items:flex-end; justify-content:space-between;
  gap: 1rem;
  margin-bottom: 1.4rem;
}
.section-head h2{ margin:0; font-size: var(--h2); letter-spacing:-.2px; }
.section-head p{ margin:0; color: var(--muted); max-width: 60ch; }

.grid3{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.grid2{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.card{
  border-radius: var(--radius);
  border: 1px solid var(--stroke);
  background: linear-gradient(180deg, rgba(255,255,255,.88), rgba(255,255,255,.68));
  padding: 1.1rem 1.1rem 1.0rem;
  box-shadow: 0 16px 44px rgba(14,20,40,.12);
  position: relative;
  overflow:hidden;
}
.card::after{
  content:"";
  position:absolute; inset:-40% -40%;
  background: radial-gradient(circle at 20% 20%, rgba(29,78,216,.10), transparent 45%),
              radial-gradient(circle at 80% 30%, rgba(6,182,212,.10), transparent 50%);
  opacity:.85;
  pointer-events:none;
}
.card > *{ position: relative; }
.card h3{ margin:.2rem 0 .35rem; font-size: var(--h3); }
.card p{ margin:.2rem 0 0; color: var(--muted); }

.icon{
  width: 40px; height: 40px;
  border-radius: 14px;
  display:grid; place-items:center;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,.70);
}

.list{
  display:grid;
  gap:.55rem;
  margin:.85rem 0 0;
  padding:0;
  list-style:none;
}
.list li{
  display:flex;
  gap:.6rem;
  align-items:flex-start;
  color: var(--muted);
}
.list li::before{
  content:"";
  width: 10px; height: 10px;
  border-radius: 999px;
  margin-top: .4rem;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  flex: 0 0 10px;
}

/* Tables */
.table{
  width:100%;
  border-collapse: collapse;
  overflow:hidden;
  border-radius: var(--radius);
  border: 1px solid var(--stroke);
}
.table th, .table td{
  padding: .85rem .9rem;
  text-align:left;
  border-bottom: 1px solid rgba(12,18,32,.08);
}
.table th{ color: var(--muted); font-weight: 700; background: rgba(11,18,32,.03); }
.table tr:last-child td{ border-bottom:none; }
.table td{ color: var(--text); }
.table small{ color: var(--muted2); }

/* Footer */
footer{
  border-top: 1px solid var(--stroke);
  background: rgba(255,255,255,.72);
  box-shadow: 0 10px 34px rgba(14,20,40,.08);
  padding: 28px 0;
}
.footer-grid{
  display:flex; justify-content:space-between; gap: 1.5rem; flex-wrap:wrap;
}
.footer-grid .muted{ color: var(--muted); }
.footer-grid .links{ display:flex; gap:.8rem; flex-wrap:wrap; }
.footer-grid .links a{ color: var(--muted); }
.footer-grid .links a:hover{ color: var(--text); }

/* Scroll reveal */
.reveal{
  opacity:0; transform: translateY(14px);
  transition: opacity .8s ease, transform .8s ease;
}
.reveal.in-view{ opacity:1; transform: translateY(0px); }

/* Decorative blobs — FIXED to avoid expanding page width on iOS */
.blob{
  position: fixed; /* IMPORTANT: fixed prevents scroll-width issues */
  width: 520px; height: 520px;
  border-radius: 999px;
  filter: blur(40px);
  opacity: .22;
  pointer-events:none;
  mix-blend-mode: multiply;
  animation: floaty 12s ease-in-out infinite;
  z-index: 0;
}
.blob.b1{ background: rgba(29,78,216,.22); top:-220px; left:-220px; }
.blob.b2{ background: rgba(6,182,212,.18); top:-200px; right:-220px; animation-delay:-4s; }
.blob.b3{ background: rgba(22,163,74,.14); bottom:-260px; left: 30%; animation-delay:-7s; }
@keyframes floaty{
  0%, 100%{ transform: translate(0,0) scale(1); }
  50%{ transform: translate(18px, 22px) scale(1.05); }
}

/* Page header */
.pagehead{ padding: 28px 0 10px; }
.breadcrumb{ color: var(--muted2); font-size:.88rem; }
.pagehead h2{ margin:.35rem 0 .35rem; font-size: var(--h2); }
.pagehead p{ margin:0; color: var(--muted); max-width: 72ch; }

/* Award cards - color by tier */
.award-card{
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(12,18,32,.12);
}
.award-card::before{
  content:"";
  position:absolute;
  left:0; top:0;
  width:6px; height:100%;
  background: var(--award-accent, #1D4ED8);
}
.award-card::after{
  content:"";
  position:absolute;
  inset:-40%;
  background: radial-gradient(circle at 20% 10%, rgba(0,0,0,.10), transparent 60%);
  opacity: .18;
  transform: rotate(12deg);
  pointer-events:none;
}
.award-card .badge{
  background: rgba(255,255,255,.75);
  border: 1px solid rgba(12,18,32,.12);
  color: rgba(12,18,32,.72);
}
.award-card:hover{
  box-shadow: 0 16px 40px rgba(12,18,32,.10);
  transform: translateY(-2px);
}
.award-card.gold   { --award-accent: #D4AF37; } /* Gold */
.award-card.silver { --award-accent: #9CA3AF; } /* Silver */
.award-card.bronze { --award-accent: #CD7F32; } /* Bronze */

/* Theme banner (for long theme text) */
.theme-banner{
  margin-top: 1.2rem;
  display: flex;
  gap: .9rem;
  align-items: flex-start;
  padding: 1.05rem 1.1rem;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(29,78,216,.08), rgba(22,163,74,.07));
  border: 1px solid rgba(12,18,32,.12);
  box-shadow: 0 14px 34px rgba(12,18,32,.08);
}
.theme-icon{
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--brand);
  background: rgba(255,255,255,.85);
  border: 1px solid rgba(12,18,32,.10);
}
.theme-content{ min-width: 0; }
.theme-banner .theme-label{
  font-size: .85rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(12,18,32,.65);
  margin-bottom: .25rem;
}
.theme-title{
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.35;
  color: rgba(12,18,32,.92);
  word-break: break-word;
}

/* Justify keynote long bio (if used) */
p.muted-keynote{
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

/* ---------------------------
   RESPONSIVE (Tablet & Phone)
   --------------------------- */

/* Tablet & down */
@media (max-width: 980px){
  .hero-grid{ grid-template-columns: 1fr; }

  /* Better grids for tablet: 2 columns instead of 1 huge column */
  .grid3{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid2{ grid-template-columns: 1fr; }

  .navlinks{ display:none; }
  .menu-btn{ display:inline-flex; }

  .section-head{
    flex-direction: column;
    align-items: flex-start;
    gap: .75rem;
  }
}

/* Phone */
@media (max-width: 720px){
  .grid3{ grid-template-columns: 1fr; } /* phone = 1 column */

  .brand-logo{ max-width: 170px; height: 38px; }

  /* Make hero buttons stack nicely */
  .hero-actions .btn{ width: 100%; justify-content: center; }

  /* Reduce heavy glow to avoid iOS layout jitter */
  .hero::before{
    inset: -160px -40px auto -40px;
    height: 420px;
  }

  /* Make blobs lighter/smaller on phones */
  .blob{
    width: 420px;
    height: 420px;
    opacity: .16;
    filter: blur(36px);
  }
}

/* Small phone */
@media (max-width: 520px){
  .container{ width: calc(100% - 2*var(--pad)); }

  /* Countdown becomes 2x2 */
  .countdown{ grid-template-columns: repeat(2, 1fr); }

  /* Hero card buttons full width */
  .hero-card .body > div[style*="display:flex"] .btn{
    flex: 1 1 100%;
  }

  /* Theme banner tighten */
  .theme-banner{
    padding: .95rem 1rem;
    gap: .75rem;
  }
  .theme-icon{ width: 40px; height: 40px; border-radius: 12px; }

  /* Prevent very long words breaking layout */
  h1, .theme-title, .lead{ overflow-wrap: anywhere; }
}