/* ============================================================
   EventPro — Submit Event page
   Child theme: EventPro-Web-Child-Checkout-Responsive
   Path: css/submit-event.css
   Loads only on the "EventPro Submit Event" page template.

   Every class is prefixed .epx- so nothing collides with the
   theme, Themify Builder, or WooCommerce (.row, .btn, .figure,
   .steps and .action all exist elsewhere in the stack).
   ============================================================ */

.page-template-page-submit-event {
  --epx-ink:#000000;
  --epx-red:#B21917;
  --epx-red-hot:#E02B22;
  --epx-paper:#FFFFFF;
  --epx-rule:#D8D6D1;
  --epx-slate:#55524D;
  --epx-wash:#F0EEEA;

  --epx-display:"Oswald","Arial Narrow",sans-serif;
  --epx-prose:"Crimson Text",Georgia,serif;
  --epx-ui:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;

  --epx-gutter:clamp(20px,5vw,72px);
}

/* --- Escape the theme's content container so sections go full bleed --- */
.page-template-page-submit-event #body,
.page-template-page-submit-event #layout,
.page-template-page-submit-event #content,
.page-template-page-submit-event .page-content {
  max-width:none !important;
  width:100% !important;
  margin:0 !important;
  padding:0 !important;
  float:none !important;
}
.page-template-page-submit-event #content { overflow:visible !important; }

.epx-wrap{max-width:1280px;margin:0 auto;padding:0 var(--epx-gutter);box-sizing:border-box}
/* Prose measure. Sits INSIDE .epx-wrap so long-form copy keeps the same
   left edge as every other section instead of centring itself. */
.epx-measure{max-width:64ch}

.page-template-page-submit-event .epx-stub *,
.page-template-page-submit-event section[class^="epx-"] *{box-sizing:border-box}

/* ============================================================
   HERO — the one bold move on the page.
   Black ticket body, torn along a perforated edge at the bottom.
   The tear is CSS (radial-gradient mask), not an image.
   ============================================================ */
.epx-stub{
  background:var(--epx-ink);
  color:var(--epx-paper);
  position:relative;
  padding:clamp(56px,9vw,120px) 0 clamp(96px,11vw,150px);
  margin:0;
  overflow:hidden;
}

/* Ticket tear line. A straight edge, a row of punched holes inset from it,
   and two semicircular notches bitten out of the sides at the same line —
   the shape of a stub, not a scalloped trim. The holes and notches are
   painted in the colour of the section below so they read as cut through. */
.epx-stub{--epx-tear-y:44px}

.epx-stub::after{
  content:"";
  position:absolute;
  left:34px; right:34px;
  bottom:calc(var(--epx-tear-y) - 4px);
  height:8px;
  background-image:radial-gradient(circle, var(--epx-paper) 3.2px, transparent 3.7px);
  background-size:18px 8px;
  background-repeat:repeat-x;
  background-position:center;
}
.epx-stub::before{
  content:"";
  position:absolute;
  left:0; right:0;
  bottom:calc(var(--epx-tear-y) - 22px);
  height:44px;
  background:
    radial-gradient(circle at 0 50%,   var(--epx-paper) 21.5px, transparent 22px) left  center / 44px 44px no-repeat,
    radial-gradient(circle at 100% 50%, var(--epx-paper) 21.5px, transparent 22px) right center / 44px 44px no-repeat;
  pointer-events:none;
}

.epx-stub-grid{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,250px);
  gap:clamp(28px,4vw,64px);
  align-items:end;
}

.epx-mark{
  font-family:var(--epx-display);
  font-weight:600;
  font-size:13px;
  letter-spacing:.26em;
  color:#8C8A86;
  margin:0 0 clamp(28px,4vw,44px);
}
.epx-mark b{color:var(--epx-paper);font-weight:600}

.page-template-page-submit-event h1.epx-h1{
  font-family:var(--epx-display);
  font-weight:600;
  font-size:clamp(38px,6.2vw,78px);
  line-height:.98;
  letter-spacing:-0.015em;
  color:var(--epx-paper);
  margin:0;
  padding:0;
  text-wrap:balance;
}
.epx-h1 .epx-rule{
  display:block;
  width:92px;
  height:5px;
  background:var(--epx-red);
  margin:0 0 26px;
}

.epx-standfirst{
  font-family:var(--epx-prose);
  font-size:clamp(20px,2.3vw,25px);
  line-height:1.5;
  color:#D6D3CE;
  max-width:54ch;
  margin:28px 0 0;
}
.epx-standfirst em{font-style:italic;color:var(--epx-paper)}

/* right-hand column of the stub: the part torn off at the gate */
.epx-tear{
  border-left:1px dashed #3A3833;
  padding-left:clamp(20px,3vw,34px);
}
.epx-tear dl{margin:0}
.epx-tear dt{
  font-family:var(--epx-display);
  font-size:11.5px;
  letter-spacing:.2em;
  color:#8C8A86;
  margin:0 0 4px;
}
.epx-tear dd{
  font-family:var(--epx-display);
  font-weight:500;
  font-size:26px;
  line-height:1.1;
  color:var(--epx-paper);
  margin:0 0 22px;
}
.epx-tear dd:last-child{margin-bottom:0}

/* ============================================================
   LEDGER — proof set like a box-office statement, not stat cards
   ============================================================ */
.epx-ledger{
  background:var(--epx-paper);
  border-bottom:1px solid var(--epx-rule);
  padding:clamp(44px,6vw,70px) 0;
}
.epx-ledger-rows{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(210px,1fr));
  gap:0;
}
.epx-row{
  padding:22px 26px 22px 0;
  border-top:1px solid var(--epx-rule);
}
.epx-row:first-child{border-top-color:var(--epx-ink);border-top-width:2px}
.epx-figure{
  font-family:var(--epx-display);
  font-weight:600;
  font-size:clamp(40px,5.4vw,58px);
  line-height:1;
  letter-spacing:-0.02em;
  color:var(--epx-ink);
  display:block;
}
.epx-figure .epx-unit{font-size:.42em;letter-spacing:.04em;margin-left:.25em;color:var(--epx-red)}
.epx-row p{
  font-family:var(--epx-ui);
  font-size:14.5px;
  line-height:1.45;
  color:var(--epx-slate);
  margin:10px 0 0;
  max-width:26ch;
}

/* ============================================================
   SHARED TYPE
   ============================================================ */
.page-template-page-submit-event h2.epx-h2{
  font-family:var(--epx-display);
  font-weight:600;
  font-size:clamp(30px,4.4vw,50px);
  line-height:1.06;
  letter-spacing:-0.01em;
  color:var(--epx-ink);
  margin:0 0 26px;
  padding:0;
  max-width:22ch;
  text-wrap:balance;
}
.page-template-page-submit-event h2.epx-h2-sm{font-size:clamp(24px,3vw,32px);margin-bottom:8px}

.epx-lede{
  font-family:var(--epx-ui);
  margin-top:-8px;
  font-size:16px;
  color:var(--epx-slate);
  margin:0;
  max-width:60ch;
}

/* ============================================================
   ARGUMENT
   ============================================================ */
.epx-argument{background:var(--epx-paper);padding:clamp(56px,8vw,96px) 0}
.epx-argument p{
  font-family:var(--epx-prose);
  font-size:19px;
  line-height:1.62;
  color:var(--epx-ink);
  margin:0 0 22px;
}
.epx-argument p:last-child{margin-bottom:0}
.epx-argument .epx-pull{
  font-family:var(--epx-display);
  font-weight:400;
  font-size:clamp(24px,3.3vw,36px);
  line-height:1.2;
  border-left:5px solid var(--epx-red);
  padding-left:26px;
  margin:38px 0;
  max-width:30ch;
}

/* ============================================================
   SPINE
   ============================================================ */
.epx-spine{background:var(--epx-wash);padding:clamp(56px,8vw,96px) 0}
.epx-spine-list{
  list-style:none;
  margin:40px 0 0;
  padding:0;
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:1px;
  background:var(--epx-rule);
  border:1px solid var(--epx-rule);
}
.epx-spine-list li{background:var(--epx-wash);padding:30px 28px;margin:0;list-style:none}
.page-template-page-submit-event .epx-spine-list h3{
  font-family:var(--epx-display);
  font-weight:500;
  font-size:21px;
  color:var(--epx-ink);
  margin:0 0 10px;
  padding:0;
}
.epx-spine-list p{
  font-family:var(--epx-ui);
  font-size:15px;
  line-height:1.55;
  color:var(--epx-slate);
  margin:0;
}

/* ============================================================
   SEQUENCE — genuinely ordered, so it earns its numbers
   ============================================================ */
.epx-sequence{background:var(--epx-paper);padding:clamp(56px,8vw,96px) 0}
.epx-steps{list-style:none;margin:44px 0 0;padding:0;counter-reset:epxstep}
.epx-steps li{
  counter-increment:epxstep;
  display:grid;
  grid-template-columns:64px minmax(0,1fr);
  gap:clamp(16px,3vw,32px);
  padding:26px 0;
  margin:0;
  border-top:1px solid var(--epx-rule);
  align-items:start;
  list-style:none;
}
.epx-steps li:last-child{border-bottom:1px solid var(--epx-rule)}
.epx-steps li::before{
  content:counter(epxstep,decimal-leading-zero);
  font-family:var(--epx-display);
  font-weight:600;
  font-size:30px;
  line-height:1;
  color:var(--epx-red);
  padding-top:4px;
}
.page-template-page-submit-event .epx-steps h3{
  font-family:var(--epx-display);
  font-weight:500;
  font-size:23px;
  color:var(--epx-ink);
  margin:0 0 8px;
  padding:0;
}
.epx-steps p{
  font-family:var(--epx-ui);
  font-size:15.5px;
  line-height:1.6;
  color:var(--epx-slate);
  margin:0;
  max-width:58ch;
}

/* ============================================================
   CLIENTS
   ============================================================ */
.epx-clients{background:var(--epx-paper);border-top:1px solid var(--epx-rule);padding:clamp(44px,6vw,72px) 0}
.epx-note{
  font-family:var(--epx-ui);
  font-size:14.5px;
  color:var(--epx-slate);
  margin:0 0 34px;
  max-width:62ch;
}
.epx-logo-wall{
  display:grid;
  /* Fixed six across. auto-fit was adding a seventh column on wide screens,
     which broke the 6 x 3 grid and stretched every cell. */
  grid-template-columns:repeat(6,1fr);
  gap:28px 24px;
  align-items:center;
}
/* Logos are supplied on an identical square canvas, each mark already scaled
   to a consistent optical weight inside it. That normalisation lives in the
   asset, not here — so this needs no per-logo exceptions. */
.epx-logo-wall .epx-slot{
  /* Not square. The assets are square with padding baked in for optical
     balance, so a square cell doubles that padding and opens up the gaps. */
  height:104px;
  display:flex;
  align-items:center;
  justify-content:center;
  border:1px dashed var(--epx-rule);
  font-family:var(--epx-ui);
  font-size:12px;
  color:#A9A6A1;
  text-align:center;
  padding:8px;
}
.epx-logo-wall .epx-slot:has(img){border:0;padding:0}
.epx-logo-wall img{
  width:100%;
  height:100%;
  object-fit:contain;
  display:block;
}

/* ============================================================
   ACTION
   ============================================================ */
.epx-action{background:var(--epx-ink);color:var(--epx-paper);padding:clamp(56px,8vw,100px) 0}
.page-template-page-submit-event .epx-action h2.epx-h2{color:var(--epx-paper);margin-bottom:18px}
.epx-action .epx-standfirst{color:#CFCCC7;margin:0 0 40px}
.epx-buttons{display:flex;flex-wrap:wrap;gap:14px}

.page-template-page-submit-event a.epx-btn{
  font-family:var(--epx-display);
  font-weight:500;
  font-size:16px;
  letter-spacing:.04em;
  text-decoration:none;
  padding:17px 30px;
  display:inline-block;
  border:2px solid var(--epx-red);
  background:var(--epx-red);
  color:var(--epx-paper);
  border-radius:0;
  box-shadow:none;
  text-shadow:none;
  transition:background .14s ease,border-color .14s ease;
}
.page-template-page-submit-event a.epx-btn:hover{background:var(--epx-red-hot);border-color:var(--epx-red-hot);color:var(--epx-paper)}
.page-template-page-submit-event a.epx-btn.epx-ghost{background:transparent;border-color:#4A4843;color:var(--epx-paper)}
.page-template-page-submit-event a.epx-btn.epx-ghost:hover{border-color:var(--epx-paper);background:transparent}

.epx-assurance{
  font-family:var(--epx-ui);
  font-size:14px;
  color:#918E89;
  margin:26px 0 0;
  max-width:54ch;
}
.epx-assurance a{color:#CFCCC7}

.page-template-page-submit-event :focus-visible{outline:3px solid var(--epx-red);outline-offset:3px}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width:860px){
  .epx-stub-grid{grid-template-columns:1fr;align-items:start}
  .epx-tear{
    border-left:0;
    border-top:1px dashed #3A3833;
    padding-left:0;
    padding-top:26px;
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(130px,1fr));
    gap:18px;
  }
  .epx-tear dl{display:contents}
  .epx-tear dd{font-size:22px;margin-bottom:0}
  .epx-row{padding-right:0}
  .epx-argument p{font-size:18px}
  .epx-steps li{grid-template-columns:44px minmax(0,1fr)}
  .epx-steps li::before{font-size:24px}
}

@media (prefers-reduced-motion:reduce){
  .page-template-page-submit-event *{transition:none !important;animation:none !important}
}


/* ============================================================
   HERO ADDITIONS
   ============================================================ */
.epx-standfirst-sm{
  font-size:clamp(17px,1.7vw,19px);
  line-height:1.55;
  color:#BDB9B3;
  margin-top:20px;
  max-width:58ch;
}
.epx-strapline{
  font-family:var(--epx-display);
  font-weight:500;
  font-size:clamp(17px,1.9vw,22px);
  letter-spacing:.01em;
  color:var(--epx-paper);
  margin:30px 0 0;
  padding-top:22px;
  border-top:3px solid var(--epx-red);
  display:inline-block;
}

/* Word-based figure (e.g. "Thousands") needs a smaller size than a numeral */
.epx-figure-word{font-size:clamp(28px,3.4vw,38px);letter-spacing:0}

/* ============================================================
   TECHNOLOGY
   ============================================================ */
.epx-tech{background:var(--epx-paper);padding:clamp(56px,8vw,96px) 0;border-top:1px solid var(--epx-rule)}
.epx-tech-grid{
  list-style:none;
  margin:44px 0 0;
  padding:0;
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
  gap:clamp(24px,3vw,40px) clamp(28px,4vw,56px);
}
.epx-tech-grid li{margin:0;padding:24px 0 0;list-style:none;border-top:2px solid var(--epx-ink)}
.page-template-page-submit-event .epx-tech-grid h3{
  font-family:var(--epx-display);
  font-weight:500;
  font-size:20px;
  color:var(--epx-ink);
  margin:0 0 9px;
  padding:0;
}
.epx-tech-grid p{
  font-family:var(--epx-ui);
  font-size:15px;
  line-height:1.55;
  color:var(--epx-slate);
  margin:0;
}

/* ============================================================
   NETWORK
   ============================================================ */
.epx-network{background:var(--epx-ink);color:var(--epx-paper);padding:clamp(56px,8vw,96px) 0}
.page-template-page-submit-event .epx-network h2.epx-h2{color:var(--epx-paper)}
.epx-network p{
  font-family:var(--epx-prose);
  font-size:19px;
  line-height:1.62;
  color:#D6D3CE;
  margin:0 0 22px;
}
.epx-network .epx-pull{
  font-family:var(--epx-display);
  font-weight:400;
  font-size:clamp(24px,3.3vw,36px);
  line-height:1.2;
  color:var(--epx-paper);
  border-left:5px solid var(--epx-red);
  padding-left:26px;
  margin:38px 0 0;
  max-width:30ch;
}

/* ============================================================
   COMPARISON TABLE
   ============================================================ */
.epx-compare{background:var(--epx-wash);padding:clamp(56px,8vw,96px) 0}
.page-template-page-submit-event table.epx-table{
  width:100%;
  margin:40px 0 0;
  border-collapse:collapse;
  background:none;
  border:1px solid var(--epx-rule);
  font-size:inherit;
}
.page-template-page-submit-event .epx-table th,
.page-template-page-submit-event .epx-table td{
  text-align:left;
  vertical-align:top;
  padding:18px 22px;
  border:1px solid var(--epx-rule);
  background:none;
}
.page-template-page-submit-event .epx-table thead th{
  font-family:var(--epx-display);
  font-weight:600;
  font-size:16px;
  letter-spacing:.02em;
  color:var(--epx-ink);
  background:var(--epx-paper);
  border-bottom:2px solid var(--epx-ink);
  width:50%;
}
.page-template-page-submit-event .epx-table thead th:last-child{color:var(--epx-red)}
.page-template-page-submit-event .epx-table td{
  font-family:var(--epx-ui);
  font-size:15px;
  line-height:1.5;
  color:var(--epx-slate);
}
.page-template-page-submit-event .epx-table td:last-child{color:var(--epx-ink);background:var(--epx-paper)}

/* ============================================================
   RESPONSIVE — new sections
   ============================================================ */
@media (max-width:700px){
  .page-template-page-submit-event .epx-table,
  .page-template-page-submit-event .epx-table tbody,
  .page-template-page-submit-event .epx-table tr,
  .page-template-page-submit-event .epx-table td{display:block;width:100%}
  .page-template-page-submit-event .epx-table thead{display:none}
  .page-template-page-submit-event .epx-table{border:0}
  .page-template-page-submit-event .epx-table tr{
    border:1px solid var(--epx-rule);
    margin:0 0 14px;
    background:var(--epx-paper);
  }
  .page-template-page-submit-event .epx-table td{border:0;border-top:1px solid var(--epx-rule);padding:14px 18px}
  .page-template-page-submit-event .epx-table tr td:first-child{border-top:0}
  .page-template-page-submit-event .epx-table td::before{
    content:attr(data-epx-label);
    display:block;
    font-family:var(--epx-display);
    font-size:11.5px;
    letter-spacing:.18em;
    text-transform:uppercase;
    color:#A9A6A1;
    margin-bottom:6px;
  }
  .page-template-page-submit-event .epx-table td:last-child::before{color:var(--epx-red)}
  .epx-strapline{display:block}
}


/* ============================================================
   HERO CTA — same buttons as the closing section, on black
   ============================================================ */
.epx-buttons-hero{margin-top:34px}
.epx-buttons-hero .epx-btn{font-size:15px;padding:15px 26px}

/* ============================================================
   CLIENT WALL — link out to live events
   ============================================================ */
.epx-wall-more{
  font-family:var(--epx-ui);
  font-size:15px;
  color:var(--epx-slate);
  margin:34px 0 0;
}
.page-template-page-submit-event .epx-wall-more a{
  color:var(--epx-ink);
  text-decoration:underline;
  text-underline-offset:3px;
  text-decoration-thickness:2px;
  text-decoration-color:var(--epx-red);
}
.page-template-page-submit-event .epx-wall-more a:hover{color:var(--epx-red)}

@media (max-width:560px){
  /* Stack the hero pair rather than letting two long labels wrap mid-word */
  .epx-buttons-hero{display:block}
  .epx-buttons-hero .epx-btn{display:block;text-align:center}
  .epx-buttons-hero .epx-btn + .epx-btn{margin-top:12px}
}


/* ============================================================
   LOGO WALL — column counts
   ============================================================ */
@media (max-width:1024px){
  .epx-logo-wall{grid-template-columns:repeat(4,1fr)}
}
@media (max-width:700px){
  .epx-logo-wall{grid-template-columns:repeat(3,1fr);gap:22px 18px}
  .epx-logo-wall .epx-slot{height:84px}
}
@media (max-width:420px){
  .epx-logo-wall{grid-template-columns:repeat(2,1fr)}
}


/* ============================================================
   COMPARISON — stacked lede paragraphs
   ============================================================ */
.epx-compare .epx-measure .epx-lede{margin:0 0 16px}
.epx-compare .epx-measure .epx-lede:last-child{margin-bottom:0}

/* ============================================================
   COMMERCIAL — full bleed, 16:9, no letterbox
   ============================================================ */
.epx-film{background:var(--epx-ink);margin:0;padding:0;line-height:0}
.epx-film-frame{
  position:relative;
  width:100%;
  aspect-ratio:16 / 9;
  /* Cap the height on very wide screens so the film doesn't swallow the fold;
     the frame crops top and bottom rather than letterboxing. */
  max-height:78vh;
  overflow:hidden;
}
.epx-film-frame iframe{
  position:absolute;
  top:50%; left:50%;
  width:100%;
  height:100%;
  min-height:calc(100vw * 9 / 16);
  transform:translate(-50%,-50%);
  border:0;
  display:block;
}

@media (max-width:700px){
  .epx-stub{--epx-tear-y:34px}
  .epx-stub::after{left:26px;right:26px}
}
