/* ==========================================================================
   ChefMaison Supper Club — styles
   Taken from the reference pages (reference/Option-*_reveal-after-yes_*.html).
   Desktop first; mobile overrides sit in the @media (max-width:760px) block
   at the end of each section.
   ========================================================================== */

/* ---------- Fonts (self-hosted, in assets/fonts) ---------- */
@font-face{font-family:'Inter';font-style:normal;font-weight:100 900;font-display:swap;src:url(assets/fonts/Inter-latin-variable.woff2) format('woff2')}
@font-face{font-family:'Gaegu';font-style:normal;font-weight:400;font-display:swap;src:url(assets/fonts/Gaegu-400.woff2) format('woff2')}
@font-face{font-family:'Gaegu';font-style:normal;font-weight:700;font-display:swap;src:url(assets/fonts/Gaegu-700.woff2) format('woff2')}
@font-face{font-family:'Fira Mono';font-style:normal;font-weight:400;font-display:swap;src:url(assets/fonts/FiraMono-400.woff2) format('woff2')}
@font-face{font-family:'Fira Mono';font-style:normal;font-weight:500;font-display:swap;src:url(assets/fonts/FiraMono-500.woff2) format('woff2')}

/* ---------- Design tokens ---------- */
:root{
  color-scheme:light;
  --navy:#0d0a30;
  --or:#e18a33;      /* orange: fills and highlights only */
  --or8:#9a581b;     /* dark orange: text on light backgrounds */
  --cream:#f6f1e8;
  --card:#fffdf9;
  --grey:#404040;    /* body text */
  --muted:#737373;
  --placeholder:#a6a6b0;
}

/* ---------- Base ---------- */
html{background:var(--navy);scroll-behavior:smooth}
body{margin:0;background:var(--navy)}
[hidden]{display:none!important}
.pg{font-family:Inter,system-ui,sans-serif;color:var(--navy);background:var(--cream);letter-spacing:.005em;overflow-x:clip}
.pg *{box-sizing:border-box}
.mono{font-family:'Fira Mono',ui-monospace,monospace;font-size:12px;letter-spacing:.08em;text-transform:uppercase;font-weight:500}
.lab{color:var(--or8)}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* Keyboard focus: navy ring, orange on dark backgrounds */
.pg :focus-visible{outline:3px solid var(--navy);outline-offset:3px}
.bar :focus-visible,.hero :focus-visible,.foot :focus-visible,.panel :focus-visible{outline-color:var(--or)}
#rsvp-title:focus{outline:none}

/* ---------- Top band (header + hero on one continuous blurred photo) ---------- */
.topband{position:relative;overflow:hidden;background:var(--navy);color:var(--cream)}
.topband::before{content:"";position:absolute;inset:0;background:url(assets/img/hero-background.jpg) center/cover no-repeat;filter:blur(4px);transform:scale(1.1);z-index:0}
.topband::after{content:"";position:absolute;inset:0;background:linear-gradient(rgba(13,10,48,.5),rgba(13,10,48,.72));z-index:0}
.topband>*{position:relative;z-index:1}

/* ---------- 1. Top bar ---------- */
.bar{background:transparent;display:flex;justify-content:space-between;align-items:center;padding:18px 64px;color:var(--cream)}
.bar img{height:30px;width:auto;display:block}
.barr{display:flex;align-items:center;gap:44px}
.lang{display:inline-flex;align-items:center;gap:6px;margin:-6px -4px} /* negative margin: bigger tap area, same layout */
.lang span{opacity:.5}
.lang button{background:none;border:0;margin:0;padding:8px 4px;color:inherit;font:inherit;letter-spacing:inherit;text-transform:inherit;cursor:pointer;opacity:.5}
.lang button[aria-pressed="true"]{opacity:1;text-decoration:underline;text-decoration-color:var(--or);text-decoration-thickness:2px;text-underline-offset:6px}
@media (hover:hover){.lang button:hover{opacity:1}}
@media (max-width:760px){
  .bar{padding:12px 20px}
  .bar img{height:24px}
  .barr{gap:0}
  .barr .ed{display:none}
}

/* ---------- 2. Hero (background comes from .topband) ---------- */
.hero{position:relative;color:var(--cream);display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;padding:80px 64px 88px;min-height:700px}
.hero h1{margin:0;font-weight:400}
.hero h1 span{display:block}
.pre{font:600 22px Inter,sans-serif;letter-spacing:.34em;text-transform:uppercase;padding-left:.34em}
.hw{font-family:Gaegu,cursive;font-weight:700;font-size:200px;line-height:.95;letter-spacing:.01em;margin-top:8px;transform:rotate(-2deg)}
.hw i{font-style:normal;display:inline-block}
.ctaw2{margin:44px 0 0}
.cta{display:inline;padding:12px 0;font:700 18px Inter,sans-serif;letter-spacing:.06em;text-transform:uppercase;color:var(--cream);text-decoration:underline;text-decoration-color:var(--or);text-decoration-thickness:3px;text-underline-offset:9px}
.cta:hover{color:var(--or)}
@media (max-width:760px){
  .hero{min-height:640px;padding:44px 20px 52px}
  .pre{font-size:13px;letter-spacing:.3em}
  .hw{font-size:112px;line-height:.9}
  .hw i{display:block}
  .ctaw2{margin-top:30px}
  .cta{font-size:15px}
}

/* ---------- 3. Main partners (logos) ---------- */
.pw{background:var(--cream);padding:48px 32px 40px;text-align:center}
.pwi{display:flex;justify-content:center;align-items:flex-start;gap:72px;max-width:900px;margin:0 auto}
.pwsep{width:1px;height:72px;background:rgba(13,10,48,.25);align-self:center}
.pwlogo{display:flex;align-items:center;justify-content:center;height:84px;margin-top:16px}
.pwlogo img{display:block}
.pwlogo.ad img{width:210px;height:auto}
.pwlogo.im img{height:84px;width:auto}
.pw+.info{border-top:1px solid rgba(13,10,48,.12)}
@media (max-width:760px){
  .pw{padding:32px 20px 28px}
  .pwi{gap:20px}
  .pwsep{height:56px}
  .pwlogo{height:60px;margin-top:12px}
  .pwlogo.ad img{width:128px}
  .pwlogo.im img{height:60px}
}

/* ---------- 4. Info bar ---------- */
.info{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));background:var(--cream);color:var(--navy);padding:26px 0 28px}
.ic{padding:0 28px;border-left:1.5px solid rgba(13,10,48,.16)}
.ic:first-child{padding-left:64px;border-left:0}
.ic p{margin:6px 0 0;font-size:18px;line-height:1.3;font-weight:600}
@media (max-width:760px){
  .info{grid-template-columns:1fr 1fr;row-gap:14px;column-gap:16px;padding:20px}
  .ic,.ic:first-child{padding:0;border:0}
  .ic p{font-size:16px}
  .ic:nth-child(3){grid-column:1/3}
}

/* ---------- 5. RSVP (orange band + white card) ---------- */
#rsvp{background:var(--or);padding:80px 64px;scroll-margin-top:12px}
.panel{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));column-gap:24px;align-items:start;color:var(--navy)}
.pl{grid-column:1/6}
.pr{grid-column:6/13;background:var(--card);border:1px solid transparent;border-radius:16px;padding:36px}
.eyebrow{color:var(--navy);opacity:.75}
.h2{font-weight:400;font-size:44px;line-height:1.08;letter-spacing:-.025em;margin:12px 0 0;max-width:400px}

/* Form fields */
.fg{margin-bottom:18px}
.two{display:grid;grid-template-columns:1fr 1fr;column-gap:16px}
.q{display:block;margin:0 0 6px;font:500 13px/1.4 Inter,sans-serif;color:var(--grey)}
.opt{color:var(--muted);font-weight:400}
.in{width:100%;border:1px solid rgba(13,10,48,.25);background:#fff;border-radius:8px;padding:12px 14px;font:400 16px Inter,sans-serif;color:var(--navy)}
.in::placeholder{color:var(--placeholder);opacity:1}
.in:focus{border-color:var(--navy)}
textarea.in{min-height:84px;resize:vertical;line-height:1.45}
.er{margin:6px 0 0;font-size:13px;line-height:1.4;color:var(--or8)}
.in.err,.rad.err .rd{border-color:var(--or8)}

/* Yes / No radios */
.rad{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.rd{display:flex;align-items:center;gap:10px;min-height:46px;padding:0 14px;border:1px solid rgba(13,10,48,.25);border-radius:8px;cursor:pointer;font:500 15px Inter,sans-serif;color:var(--navy);background:#fff}
.rd:has(input:checked){border-color:var(--navy)}
.rd input{appearance:none;-webkit-appearance:none;flex:none;margin:0;width:16px;height:16px;border-radius:50%;background:transparent;border:1.5px solid rgba(13,10,48,.55)}
.rd input:checked{border-color:var(--navy);background:var(--or);box-shadow:inset 0 0 0 3px #fff}

/* Honeypot: kept off-screen */
.hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}

/* Buttons */
.send{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:48px;padding:0 24px;border:0;border-radius:8px;font:600 15px Inter,sans-serif;text-decoration:none;cursor:pointer;background:var(--navy);color:var(--cream)}
.send:hover{filter:brightness(1.08)}
.send:disabled{cursor:wait;opacity:.7;filter:none}
.priv{margin:14px 0 0;font-size:12px;line-height:1.5;max-width:520px;color:var(--muted)}

/* Sending error (same style as the confirmation info block) */
.ferr{border-left:4px solid var(--or);padding:2px 0 2px 16px;margin:0 0 18px;color:var(--or8);font-size:15px;line-height:1.5;font-weight:500}
.ferr p{margin:0}
.ferr a{color:var(--or8);text-decoration:underline;text-underline-offset:3px}

/* Confirmation cards */
.conf{text-align:left}
.confh{font-family:Gaegu,cursive;font-weight:700;font-size:46px;line-height:1;margin:0 0 12px;color:var(--navy)}
.confh em{font-style:normal;background:linear-gradient(transparent 60%,var(--or) 60%)}
.body{font-size:16px;line-height:1.5;margin:0 0 18px;max-width:440px;color:var(--navy)}
.confinfo{border-left:4px solid var(--or);padding:2px 0 2px 16px;margin:0 0 22px}
.cd1{margin:0 0 4px;font:700 24px/1.2 Inter,sans-serif;letter-spacing:-.02em;color:var(--navy)}
.cd2{margin:0;font-size:16px;line-height:1.5;color:var(--grey)}
.conf a{color:var(--navy);text-decoration:underline;text-decoration-color:var(--or);text-decoration-thickness:2px;text-underline-offset:3px}
.confcta{margin:22px 0 0}
.ctabtn{display:flex;width:100%}

@media (max-width:760px){
  #rsvp{padding:48px 20px}
  .panel{display:block}
  .h2{font-size:32px}
  .pr{margin-top:28px;padding:22px 18px}
  .two,.rad{grid-template-columns:1fr}
  .send{width:100%}
  .confh{font-size:38px}
  .cd1{font-size:21px}
}

/* ---------- 6. Explanatory sections — shown in a celebratory overlay ---------- */
/* The overlay (.ov) is fixed over the whole viewport; .ov-scroll scrolls its
   content when the two sections are taller than the screen. */
.ov{position:fixed;inset:0;z-index:1000}
.ov-back{position:absolute;inset:0;background:rgba(13,10,48,.9);backdrop-filter:blur(2px);-webkit-backdrop-filter:blur(2px)}
/* The flex layer centres the modal and catches clicks on the gap around it. */
.ov-scroll{position:absolute;inset:0;z-index:1;display:flex;align-items:center;justify-content:center;padding:clamp(16px,4vh,56px) 24px;overflow:hidden}
/* Frame = the modal's outer box; it holds the panel + the close button so the
   close can sit on the panel's corner without scrolling with its content. */
.ov-frame{position:relative;display:flex;flex-direction:column;width:min(1080px,100%);max-height:100%}
/* The panel itself scrolls when its content is taller than the screen. */
.ov-panel{flex:1 1 auto;min-height:0;width:100%;overflow-y:auto;overflow-x:hidden;-webkit-overflow-scrolling:touch;background:var(--cream);border-radius:22px;box-shadow:0 30px 90px rgba(0,0,0,.45);padding:8px 8px 64px}
.ov-panel:focus{outline:none}
.ov-confetti{position:absolute;inset:0;width:100%;height:100%;z-index:10;pointer-events:none}

/* Close sits over the modal's top-right corner (dark chip on the cream panel),
   so it stays visible even on mobile where the panel fills the screen. */
.ov-close{position:absolute;top:12px;right:12px;z-index:30;display:flex;align-items:center;justify-content:center;width:44px;height:44px;border:0;border-radius:50%;cursor:pointer;background:rgba(0,0,0,0.15);color:var(--navy);font-size:26px;line-height:1;transition:background .2s ease}
.ov-close span{margin-top:-3px}
@media (hover:hover){.ov-close:hover{background:var(--navy);color:#fff}}
.ov :focus-visible{outline:3px solid var(--or);outline-offset:3px}

/* "Add to calendar" button inside the date widget */
.cal-btn{display:inline-flex;align-items:center;gap:8px;margin-top:14px;padding:9px 16px;border:1.5px solid var(--navy);border-radius:8px;background:transparent;color:var(--navy);font:600 13px Inter,sans-serif;cursor:pointer;transition:background .2s ease,color .2s ease}
.cal-btn::before{content:"";width:15px;height:15px;flex:none;background:currentColor;-webkit-mask:var(--cal-ico) center/contain no-repeat;mask:var(--cal-ico) center/contain no-repeat;--cal-ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E")}
@media (hover:hover){.cal-btn:hover{background:var(--navy);color:var(--cream)}}

.sec{padding:80px 64px 0}
.ov-sec{padding:56px 56px 0}

/* Celebratory header at the top of the modal */
.ov-head{text-align:center;padding:56px 56px 8px}
.ov-h{font-family:Gaegu,cursive;font-weight:700;font-size:64px;line-height:1;margin:0;color:var(--navy)}
.ov-sub{margin:14px auto 0;max-width:460px;font-size:18px;line-height:1.5;color:var(--grey)}
.ov-info{display:inline-block;text-align:left;border-left:4px solid var(--or);padding:2px 0 2px 18px;margin:28px 0 2px}
.xr{display:grid;grid-template-columns:1fr 1fr;column-gap:72px;align-items:center;margin-top:36px}
.xr.rev .xi{order:-1}
.h3{margin:0 0 24px;font-weight:500;font-size:44px;line-height:1.1;letter-spacing:-.025em;max-width:560px}
.p2{margin:0;font-size:18px;line-height:1.6;color:var(--grey);max-width:520px}
.xt .p2+.p2{margin-top:16px}
.photo{display:block;width:100%;height:auto;aspect-ratio:5/4;object-fit:cover;background:#e9e1d3}
@media (max-width:760px){
  .sec{padding:48px 20px 0}
  .ov-scroll{padding:12px}
  .ov-panel{border-radius:16px;padding:4px 4px 40px}
  .ov-head{padding:48px 22px 4px}
  .ov-info{margin-top:22px}
  .ov-h{font-size:46px}
  .ov-sub{font-size:16px}
  .ov-sec{padding:40px 22px 0}
  .ov-close{top:14px;right:14px;width:42px;height:42px;font-size:26px}
  /* Mobile order: title, image, then text */
  .xr{display:flex;flex-direction:column;align-items:stretch;row-gap:18px;margin-top:20px}
  .xt{display:contents}
  .xt .h3{order:1;margin:0}
  .xi{order:2;width:100%}
  .xt .p2{order:3}
  .xt .p2+.p2{margin-top:0}
  .h3{font-size:30px}
  .p2{font-size:16px}
  .photo{aspect-ratio:4/3}
}

/* ---------- 7. Sponsors ---------- */
.sec.sp{padding-bottom:0}
#brands .h3{margin:16px 0 14px;max-width:none}
.spg{display:grid;row-gap:52px;margin-top:40px}
.sprow{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));column-gap:32px;margin-top:16px}
.bcard{display:block;color:var(--navy);text-decoration:none;border-top:1px solid rgba(13,10,48,.28);padding-top:20px}
.blogo{aspect-ratio:16/7;background:#ece3d2;display:flex;align-items:center;justify-content:center;margin-bottom:20px;text-align:center;padding:16px;transition:background .3s ease}
/* Sponsor logos: one width each, so they look about the same size */
.blogo img{display:block;height:auto;max-height:70%;width:50%;object-fit:contain}
.blogo .lg-sole{width:38%}
.blogo .lg-rotaliana{width:50%}
.blogo .lg-lefries{width:56%}
.blogo .lg-lightbites{width:56%}
.blogo .lg-klubhunts{width:38%}
.blogo .lg-maestri{width:62%;max-height:80%}
.bd{margin:0 0 14px;font-size:17px;line-height:1.5;color:var(--grey);max-width:380px}
.bcard .go{border-bottom:1.5px solid var(--navy)}
.bcard:focus-visible{outline-offset:6px}
@media (hover:hover){
  .bcard:hover .blogo{background:#e2d7c1}
  .bcard:hover .go{border-bottom-color:var(--or)}
}
@media (max-width:760px){
  .sec#brands{padding-bottom:64px}
  #brands .h3{margin:12px 0 10px}
  .spg{row-gap:36px;margin-top:24px}
  .sprow{grid-template-columns:1fr;row-gap:24px}
  .bd{font-size:16px}
}

/* ---------- 8. Footer ---------- */
.foot{background:var(--navy);color:var(--cream);margin-top:80px;padding:64px 64px 44px;display:grid;grid-template-columns:repeat(12,minmax(0,1fr));column-gap:24px;row-gap:32px}
.foot img{height:40px;width:auto;display:block}
.fc{grid-column:span 4}
.fc-logo{grid-column:1/13}
.fc p{margin:8px 0 0;font-size:18px;line-height:1.4;font-weight:500}
.fc .mono{color:var(--or)}
.fa{grid-column:1/13;border-top:1px solid #1b1842;padding-top:18px;display:flex;justify-content:space-between;gap:24px;color:#b9b9c8}
@media (max-width:760px){
  .foot{display:block;padding:40px 20px 32px;margin-top:48px}
  .fc{margin-top:20px}
  .fc p{font-size:16px}
  .fa{margin-top:24px;flex-direction:column;gap:6px}
}

/* ---------- Overlay scroll lock ---------- */
/* Added to <html> while the overlay is open, so the page behind can't scroll. */
.ov-lock,.ov-lock body{overflow:hidden}

/* ---------- Motion (only if the user has not asked for reduced motion) ---------- */
@media (prefers-reduced-motion:no-preference){
  .rv{animation:rv .25s ease-out}
  @keyframes rv{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:none}}
  .rd,.send{transition:background .2s ease,color .2s ease}

  /* Overlay entrance: the dark backdrop fades in, then the whole modal fades in
     while rising from the bottom. Close button fades in last. */
  .ov-back{opacity:0;animation:ovBack .4s ease forwards}
  .ov-frame{opacity:0;animation:ovRise .55s cubic-bezier(.16,.84,.44,1) .08s forwards}
  @keyframes ovBack{to{opacity:1}}
  @keyframes ovRise{from{opacity:0;transform:translateY(64px)}to{opacity:1;transform:none}}
}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
}
