:root {
  --orange: #f58220;
  --orange-dark: #d96d14;
  --dark: #111827;
  --navy: #0f172a;
  --muted: #64748b;
  --light: #f8fafc;
  --line: #e5e7eb;
  --white: #ffffff;
  --radius: 22px;
  --shadow: 0 20px 60px rgba(15, 23, 42, 0.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: min(1120px, calc(100% - 32px)); margin-inline: auto; }

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: rgba(15, 23, 42, 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.10);
}
.nav { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--white); font-weight: 800; }
.brand-mark { color: var(--orange); font-size: 1.55rem; letter-spacing: -0.04em; }
.brand-text { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; }
.nav-menu { display: flex; align-items: center; gap: 20px; color: rgba(255,255,255,0.86); font-size: 0.9rem; font-weight: 600; }
.nav-menu a:hover { color: var(--white); }
.nav-cta { padding: 10px 16px; border-radius: 999px; background: var(--orange); color: var(--white) !important; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 26px; height: 2px; background: var(--white); margin: 6px 0; }

.hero {
  position: relative;
  min-height: 100vh;
  padding: 150px 0 90px;
  display: grid;
  align-items: center;
  background:
    linear-gradient(135deg, rgba(15,23,42,0.92), rgba(15,23,42,0.55)),
    radial-gradient(circle at top right, rgba(245,130,32,0.42), transparent 34%),
    url("../img/hero-porto.jpg");
  background-size: cover;
  background-position: center;
  color: var(--white);
}
.hero-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; align-items: center; gap: 56px; }
.eyebrow, .section-kicker { color: var(--orange); text-transform: uppercase; letter-spacing: 0.15em; font-weight: 800; font-size: 0.78rem; margin: 0 0 12px; }
.hero h1 { font-size: clamp(2.6rem, 7vw, 5.8rem); line-height: 0.94; letter-spacing: -0.06em; margin: 0; max-width: 900px; }
.hero-subtitle { font-size: clamp(1.05rem, 2.4vw, 1.45rem); max-width: 720px; color: rgba(255,255,255,0.84); margin: 28px 0; }
.event-meta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 34px; }
.event-meta span { padding: 10px 14px; background: rgba(255,255,255,0.11); border: 1px solid rgba(255,255,255,0.18); border-radius: 999px; font-weight: 700; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.btn { display: inline-flex; justify-content: center; align-items: center; padding: 13px 20px; border-radius: 999px; font-weight: 800; border: 2px solid transparent; transition: transform .2s ease, background .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--orange); color: var(--white); }
.btn-primary:hover { background: var(--orange-dark); }
.btn-outline { border-color: rgba(255,255,255,0.55); color: var(--white); }
.btn-secondary { background: var(--navy); color: var(--white); margin-top: 20px; }
.btn-large { padding: 16px 24px; }
.hero-card { justify-self: end; width: min(360px, 100%); }
.badge-placeholder {
  aspect-ratio: 1;
  border-radius: 999px;
  background: var(--orange);
  color: var(--navy);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 42px;
  box-shadow: var(--shadow);
  border: 10px solid var(--navy);
  outline: 6px solid rgba(255,255,255,0.95);
}
.badge-placeholder span { font-size: 3rem; font-weight: 900; letter-spacing: -0.08em; }
.badge-placeholder strong { font-size: 1.3rem; text-transform: uppercase; line-height: 1.05; }
.badge-placeholder small { font-weight: 800; text-transform: uppercase; }

.quick-facts { background: var(--orange); color: var(--white); }
.facts-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.facts-grid div { padding: 24px 20px; border-left: 1px solid rgba(255,255,255,0.22); }
.facts-grid div:last-child { border-right: 1px solid rgba(255,255,255,0.22); }
.facts-grid strong { display: block; font-size: 1.3rem; line-height: 1.2; }
.facts-grid span { font-size: 0.9rem; opacity: 0.88; }

.section { padding: 100px 0; }
.section-muted { background: var(--light); }
.section-dark { background: var(--navy); color: var(--white); }
.section h2, .contact-card h2 { font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1; letter-spacing: -0.05em; margin: 0 0 22px; }
.split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: start; }
.lead-copy p, .lead, .section-intro { font-size: 1.08rem; color: var(--muted); }
.section-dark .section-intro { color: rgba(255,255,255,0.75); max-width: 760px; }
.cards-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 38px; }
.info-card, .day-card, .venue-panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: 0 10px 30px rgba(15,23,42,0.06); }
.info-card h3, .day-card h3 { margin: 12px 0 10px; line-height: 1.15; }
.info-card p { color: var(--muted); margin: 0; }
.icon { color: var(--orange); font-weight: 900; }
.programme-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 34px; }
.day-card { position: relative; overflow: hidden; }
.day-card.highlight { border-color: var(--orange); transform: translateY(-10px); }
.day-date { color: var(--orange); font-weight: 900; text-transform: uppercase; font-size: 0.9rem; }
ul { padding-left: 18px; margin-bottom: 0; }
li { margin: 8px 0; }
.workshop-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 34px; }
.workshop-grid article { padding: 22px; border: 1px solid rgba(255,255,255,0.16); border-radius: 18px; background: rgba(255,255,255,0.06); font-weight: 800; }
.venue-panel { background: var(--orange); color: var(--white); display: flex; flex-direction: column; justify-content: center; min-height: 260px; }
.venue-panel strong { font-size: 2rem; line-height: 1.1; }
.venue-panel span { margin-top: 10px; font-weight: 700; }
.partner-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 32px; }
.partner-grid div { min-height: 120px; border-radius: 18px; background: var(--white); border: 1px solid var(--line); display: grid; place-items: center; text-align: center; font-weight: 900; color: var(--muted); padding: 18px; }
.faq-wrap { max-width: 840px; }
details { border: 1px solid var(--line); border-radius: 16px; padding: 18px 22px; margin: 12px 0; background: var(--white); }
summary { cursor: pointer; font-weight: 800; }
details p { margin: 14px 0 0; color: var(--muted); }
.contact-section { padding: 80px 0; background: var(--orange); }
.contact-card { display: flex; align-items: center; justify-content: space-between; gap: 28px; color: var(--white); }
.contact-card .section-kicker { color: var(--navy); }
.contact-card p { margin: 0; font-weight: 600; }
.site-footer { background: var(--navy); color: rgba(255,255,255,0.72); padding: 28px 0; }
.footer-grid { display: flex; justify-content: space-between; gap: 20px; font-size: 0.9rem; }

@media (max-width: 980px) {
  .nav-toggle { display: block; }
  .nav-menu { position: absolute; top: 74px; left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; background: rgba(15, 23, 42, 0.98); padding: 14px 24px 24px; }
  .nav-menu.is-open { display: flex; }
  .nav-menu a { padding: 13px 0; }
  .nav-cta { text-align: center; margin-top: 10px; }
  .hero-grid, .split { grid-template-columns: 1fr; gap: 36px; }
  .hero-card { justify-self: start; width: min(300px, 100%); }
  .facts-grid, .cards-grid, .programme-grid, .workshop-grid, .partner-grid { grid-template-columns: repeat(2, 1fr); }
  .day-card.highlight { transform: none; }
}

@media (max-width: 640px) {
  .container { width: min(100% - 24px, 1120px); }
  .brand-text { display: none; }
  .hero { min-height: auto; padding: 122px 0 62px; }
  .hero h1 { font-size: clamp(2.45rem, 15vw, 4rem); }
  .hero-subtitle { margin: 20px 0; }
  .event-meta { flex-direction: column; align-items: flex-start; }
  .hero-actions, .contact-card { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; }
  .badge-placeholder { display: none; }
  .facts-grid, .cards-grid, .programme-grid, .workshop-grid, .partner-grid { grid-template-columns: 1fr; }
  .facts-grid div { border-left: 0; border-bottom: 1px solid rgba(255,255,255,0.22); }
  .facts-grid div:last-child { border-right: 0; border-bottom: 0; }
  .section { padding: 68px 0; }
  .info-card, .day-card, .venue-panel { padding: 22px; }
  .footer-grid { flex-direction: column; }
}
