/*
Theme Name: EPM 2027
Theme URI: https://epm2027.pl/
Update URI: false
Author: SOWA Marketing
Author URI: https://sowamarketing.com/
Description: Lightweight, Git-managed theme for European Presidents Meeting 2027.
Version: 1.0.1
Requires at least: 6.6
Requires PHP: 8.1
Text Domain: epm-2027
*/

:root {
  --navy: #092f5f;
  --navy-deep: #062549;
  --blue: #0b90c7;
  --teal: #55c8bd;
  --ink: #18324a;
  --muted: #5f6f7f;
  --line: rgba(9, 47, 95, 0.12);
  --surface: #fff;
  --mist: #f1fbfc;
  --radius: 24px;
  --shadow: 0 18px 45px rgba(16, 54, 83, 0.11);
  --content: 1180px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 94px; }
body { margin: 0; color: var(--ink); background: #fff; font: 400 16px/1.65 var(--font); }
body.nav-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, textarea { font: inherit; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link:focus { position: fixed; z-index: 9999; top: 8px; left: 8px; width: auto; height: auto; clip: auto; padding: 10px 14px; color: #fff; background: var(--navy); }
.wrap { width: min(calc(100% - 40px), var(--content)); margin-inline: auto; }
.section { padding: 96px 0; }
.section--mist { background: linear-gradient(125deg, #eef9fc 0%, #fff 52%, #effbf8 100%); }
.eyebrow { margin: 0 0 14px; color: var(--navy); font-size: .76rem; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; }
h1, h2, h3, h4 { margin-top: 0; color: var(--navy-deep); line-height: 1.06; letter-spacing: -.035em; }
h1 { max-width: 710px; margin-bottom: 22px; font-size: clamp(2.65rem, 5.7vw, 5.25rem); }
h2 { margin-bottom: 22px; font-size: clamp(2.15rem, 4vw, 3.65rem); }
h3 { margin-bottom: 10px; font-size: clamp(1.25rem, 2vw, 1.65rem); }
p { margin-top: 0; }
.lead { max-width: 760px; color: var(--muted); font-size: clamp(1.05rem, 1.8vw, 1.25rem); }
.section-head { max-width: 780px; margin: 0 auto 48px; text-align: center; }
.section-head p { color: var(--muted); }
.btn { display: inline-flex; min-height: 52px; align-items: center; justify-content: center; gap: 9px; padding: 13px 25px; border: 0; border-radius: 14px; color: #fff; background: linear-gradient(100deg, var(--blue), var(--teal)); box-shadow: 0 12px 28px rgba(11, 144, 199, .2); font-weight: 800; line-height: 1; text-decoration: none; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease; }
.btn:hover, .btn:focus-visible { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(11, 144, 199, .28); }
.btn--secondary { color: var(--navy); background: #fff; border: 1px solid var(--line); box-shadow: none; }
.btn--wide { width: 100%; }

.site-header { position: sticky; z-index: 1000; top: 0; background: rgba(255,255,255,.94); border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); }
.site-header__inner { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 86px; max-height: 66px; object-fit: contain; }
.site-nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 34px); }
.site-nav a:not(.btn) { color: var(--navy-deep); font-size: .95rem; font-weight: 750; text-decoration: none; }
.site-nav a:hover, .site-nav a:focus-visible { color: var(--blue); }
.nav-toggle { display: none; width: 46px; height: 46px; padding: 0; border: 1px solid var(--line); border-radius: 12px; color: var(--navy); background: #fff; }
.nav-toggle span { display: block; width: 22px; height: 2px; margin: 5px auto; background: currentColor; }

.hero { position: relative; min-height: 760px; display: grid; align-items: center; overflow: hidden; background: linear-gradient(118deg, #e9f7fc 0%, #fff 52%, #e8fbf7 100%); }
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 999px; filter: blur(4px); pointer-events: none; }
.hero::before { width: 420px; height: 420px; top: -150px; left: -150px; background: rgba(11,144,199,.08); }
.hero::after { width: 480px; height: 480px; right: -190px; bottom: -220px; background: rgba(85,200,189,.13); }
.hero__grid { position: relative; z-index: 1; min-height: 670px; display: grid; grid-template-columns: 1.04fr .96fr; align-items: center; gap: 24px; }
.hero__copy { padding: 72px 0 210px; }
.hero__copy .lead { max-width: 620px; }
.hero__art { align-self: stretch; display: flex; align-items: flex-end; justify-content: center; }
.hero__art img { width: min(100%, 680px); max-height: 700px; object-fit: contain; object-position: center bottom; }
.facts { position: absolute; z-index: 2; right: 0; bottom: 34px; left: 0; display: grid; grid-template-columns: 172px 172px 172px minmax(320px, 1fr); gap: 18px; }
.card { border: 1px solid rgba(9,47,95,.1); border-radius: var(--radius); background: rgba(255,255,255,.9); box-shadow: var(--shadow); }
.fact { min-height: 188px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px 18px; text-align: center; }
.fact__icon { display: grid; width: 50px; height: 50px; place-items: center; margin-bottom: 12px; border-radius: 50%; color: var(--navy); background: #e9f8fb; font-size: 1.5rem; }
.fact strong { display: block; margin-top: 6px; color: var(--navy-deep); line-height: 1.35; }
.about-card { padding: 30px 34px; }
.about-card .btn { margin-top: 12px; }

.split { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: 72px; }
.feature-list { display: grid; gap: 12px; margin: 25px 0 0; padding: 0; list-style: none; }
.feature-list li { position: relative; padding-left: 31px; color: var(--ink); }
.feature-list li::before { content: "✓"; position: absolute; left: 0; top: -1px; color: var(--teal); font-weight: 900; }
.focus-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.focus-card { padding: 28px; }
.focus-card p { margin-bottom: 0; color: var(--muted); }

.venue-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.venue-card { padding: 34px; }
.venue-card .feature-list { margin-bottom: 26px; }
.map { min-height: 390px; overflow: hidden; }
.map iframe { width: 100%; height: 100%; min-height: 390px; border: 0; }
.accommodation-art { min-height: 580px; display: grid; place-items: center; overflow: hidden; background: linear-gradient(145deg, #eaf7fb, #fff); }
.accommodation-art img { width: 100%; max-height: 580px; object-fit: contain; object-position: center bottom; }

.city-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.city-card { overflow: hidden; }
.city-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.city-card__body { padding: 25px; }
.city-card__body p { margin-bottom: 0; color: var(--muted); }
.practical { margin-top: 24px; padding: 32px; }
.practical__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

.included-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.included-card { padding: 26px; }
.included-card p { margin-bottom: 0; color: var(--muted); }
.included-card__num { display: grid; width: 43px; height: 43px; place-items: center; margin-bottom: 21px; border-radius: 50%; color: #fff; background: var(--navy); font-weight: 900; }

.pricing-card { max-width: 880px; margin-inline: auto; padding: 38px; }
.pricing-intro { display: flex; align-items: end; justify-content: space-between; gap: 24px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.pricing-intro p { margin: 0; color: var(--muted); }
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
.tier { padding: 24px; border: 1px solid var(--line); border-radius: 18px; }
.tier--featured { border-color: rgba(11,144,199,.55); background: #f0fbfc; }
.tier__label { color: var(--navy); font-weight: 900; }
.tier__date { min-height: 44px; color: var(--muted); font-size: .9rem; }
.tier__price { margin: 15px 0 19px; color: var(--navy-deep); font-size: 2.35rem; font-weight: 900; line-height: 1; }
.tier__status { min-height: 52px; display: flex; align-items: center; justify-content: center; border-radius: 14px; background: #edf1f4; color: #7b8793; font-weight: 800; }

.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.person { overflow: hidden; }
.person img { width: 100%; aspect-ratio: 1/1; object-fit: cover; filter: saturate(.9); }
.person__body { padding: 24px; }
.person__role { min-height: 48px; color: var(--blue); font-weight: 800; }
.person__body p { color: var(--muted); font-size: .94rem; }
.person__body a { color: var(--navy); font-weight: 800; }

.partner-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.partner { min-height: 245px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 28px; text-align: center; }
.partner img { width: auto; height: 66px; max-width: 200px; margin-bottom: 22px; object-fit: contain; }
.partner p { margin-bottom: 0; color: var(--muted); font-size: .92rem; }

.faq-list { max-width: 900px; margin-inline: auto; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-question { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 4px; border: 0; color: var(--navy-deep); background: transparent; text-align: left; font-weight: 850; cursor: pointer; }
.faq-question::after { content: "+"; color: var(--blue); font-size: 1.7rem; font-weight: 400; }
.faq-question[aria-expanded="true"]::after { content: "−"; }
.faq-answer { padding: 0 40px 22px 4px; color: var(--muted); }
.faq-answer[hidden] { display: none; }
.faq-cta { margin-top: 35px; text-align: center; }

.countdown { padding: 78px 0; color: #fff; background: var(--navy-deep); }
.countdown__inner { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 44px; }
.countdown h2, .countdown .eyebrow { color: #fff; }
.countdown p { color: rgba(255,255,255,.72); }
.timer { display: grid; grid-template-columns: repeat(4, minmax(92px, 1fr)); gap: 12px; }
.timer__cell { min-width: 100px; padding: 18px; border: 1px solid rgba(255,255,255,.17); border-radius: 18px; background: rgba(255,255,255,.08); text-align: center; }
.timer__value { display: block; font-size: 2rem; font-weight: 900; line-height: 1; }
.timer__label { display: block; margin-top: 7px; color: rgba(255,255,255,.65); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; }

.contact-grid { display: grid; grid-template-columns: .86fr 1.14fr; gap: 22px; }
.contact-card { padding: 34px; }
.contact-list { display: grid; gap: 18px; margin: 30px 0; }
.contact-list strong { display: block; color: var(--navy); }
.contact-list a { color: var(--blue); font-weight: 800; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.field { display: grid; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label { color: var(--navy); font-size: .9rem; font-weight: 800; }
.field input, .field textarea { width: 100%; border: 1px solid rgba(9,47,95,.18); border-radius: 12px; padding: 13px 15px; color: var(--ink); background: rgba(255,255,255,.95); outline: none; }
.field input:focus, .field textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(11,144,199,.1); }
.field textarea { min-height: 126px; resize: vertical; }
.hp { position: absolute !important; left: -10000px !important; }
.form-note { margin: 15px 0 0; color: var(--muted); font-size: .84rem; }
.form-alert { margin-bottom: 18px; padding: 13px 16px; border-radius: 12px; background: #e8f8ef; color: #17663a; }
.form-alert--error { background: #fff0ef; color: #912f2a; }
.newsletter { display: grid; grid-template-columns: 1fr 1.3fr; align-items: center; gap: 44px; margin-top: 24px; padding: 34px; }
.newsletter h3 { margin-bottom: 5px; }
.newsletter p { margin-bottom: 0; color: var(--muted); }
.newsletter form { display: flex; gap: 10px; }
.newsletter input { min-width: 0; flex: 1; border: 1px solid rgba(9,47,95,.18); border-radius: 12px; padding: 13px 15px; }

.site-footer { padding: 58px 0 24px; color: rgba(255,255,255,.75); background: #051f3c; }
.footer-grid { display: grid; grid-template-columns: 1.5fr .65fr .65fr; gap: 58px; }
.site-footer h4 { color: #fff; letter-spacing: 0; }
.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-links { display: grid; gap: 9px; padding: 0; list-style: none; }
.socials { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 22px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 38px; padding-top: 23px; border-top: 1px solid rgba(255,255,255,.13); font-size: .85rem; }

.cookie-banner { position: fixed; z-index: 2000; right: 18px; bottom: 18px; width: min(450px, calc(100% - 36px)); padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 22px 60px rgba(5,31,60,.2); }
.cookie-banner p { margin-bottom: 16px; color: var(--muted); font-size: .9rem; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-banner[hidden] { display: none; }

.legal { min-height: 65vh; padding: 86px 0; }
.legal__content { max-width: 820px; }
.legal__content h2 { margin-top: 45px; font-size: 2rem; }

@media (max-width: 1020px) {
  .nav-toggle { display: block; }
  .site-nav { position: fixed; inset: 89px 0 auto; display: none; align-items: stretch; padding: 28px 20px 35px; background: #fff; box-shadow: 0 30px 45px rgba(5,31,60,.13); }
  .site-nav.is-open { display: grid; }
  .site-nav a { padding: 8px 0; }
  .hero { min-height: auto; }
  .hero__grid { min-height: 960px; grid-template-columns: 1fr; }
  .hero__copy { align-self: start; padding: 80px 0 0; }
  .hero__art { position: absolute; right: 0; bottom: 190px; width: 55%; height: 560px; }
  .facts { grid-template-columns: repeat(3, 1fr); }
  .about-card { grid-column: 1 / -1; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .included-grid, .team-grid { grid-template-columns: repeat(2, 1fr); }
  .partner-grid { grid-template-columns: repeat(2, 1fr); }
  .countdown__inner { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .wrap { width: min(calc(100% - 28px), var(--content)); }
  .section { padding: 70px 0; }
  .site-header__inner { min-height: 74px; }
  .brand img { width: 70px; max-height: 54px; }
  .site-nav { top: 75px; }
  .hero__grid { min-height: auto; display: block; padding-bottom: 28px; }
  .hero__copy { padding: 65px 0 20px; }
  .hero__art { position: static; width: 100%; height: 390px; }
  .hero__art img { max-height: 420px; }
  .facts { position: static; grid-template-columns: 1fr; padding-bottom: 18px; }
  .fact { min-height: 128px; }
  .about-card { grid-column: auto; }
  .focus-grid, .venue-grid, .city-grid, .tiers, .contact-grid, .newsletter { grid-template-columns: 1fr; }
  .map, .map iframe { min-height: 320px; }
  .included-grid, .team-grid, .partner-grid { grid-template-columns: 1fr; }
  .pricing-card, .contact-card { padding: 26px 20px; }
  .pricing-intro { display: block; }
  .timer { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: 1fr; }
  .field--full { grid-column: auto; }
  .newsletter form { display: grid; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { display: grid; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
