/* site.css: shared by every page of the Beyond Medicine film site.
   Colours, the top menu, the footer, the sign-up form, the cookie notice.
   Phone layout below 810px wide (same breakpoint as the Framer site). */

:root {
  --black: #000;
  --white: #fff;
  --gold: #efb023;          /* the yellow in headlines and buttons */
  --cyan: #00e5ff;          /* menu hover, "no going back", form outlines */
  --teal: #00bdd0;          /* ticked consent box */
  --grey-text: #666;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --sans: "Poppins", system-ui, sans-serif;
  --ui: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(0.44, 0, 0.56, 1);   /* Framer's default 200ms tween, measured on the live site */
  --menu-ease: cubic-bezier(0.3, 0.5, 0.1, 1);   /* phone menu opening, 400ms, fitted to the live site frame by frame */
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { background: var(--white); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
p, h1, h2 { margin: 0; }
img { display: block; }
a { color: inherit; text-decoration: none; }
b { font-weight: 700; }
.y { color: var(--gold); }
.c { color: var(--cyan); }
.page { position: relative; overflow-x: clip; }

/* Show-on-one-layout helpers (the phone design differs from the desktop one in places) */
@media (max-width: 809.98px) { .desktop-only { display: none !important; } }
@media (min-width: 810px) { .phone-only { display: none !important; } }

/* ---------- Top menu ---------- */
.site-nav { position: relative; z-index: 5; background: var(--black); height: 64px; }
.site-nav::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: rgba(255, 255, 255, 0.08); }
.site-nav .logo { position: absolute; left: 40.5px; top: 3.5px; width: 129px; height: 57px; }
.site-nav .logo img { width: 100%; height: 100%; object-fit: contain; }
.site-nav .links { position: absolute; right: 55px; top: 17px; display: flex; gap: 20px; list-style: none; margin: 0; padding: 0; }
.site-nav .links a { display: block; font: 500 15px/30px var(--mono); letter-spacing: -0.2px; color: var(--white); }
.site-nav .links li:first-child a { letter-spacing: -0.15px; }
.site-nav .links a:hover { color: var(--cyan); }
.site-nav .menu-button { display: none; }

/* Phone AND tablet (below 1200px) use the menu button, as live. */
@media (max-width: 1199.98px) {
  .site-nav .logo { left: 13px; top: 6px; width: 117px; height: 54px; }
  .site-nav .links { display: none; }
  .site-nav .menu-button { display: block; z-index: 2; position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; overflow: hidden; }
  .menu-button span { position: absolute; left: 12px; width: 20px; height: 2px; border-radius: 10px; background: #999; }
  .site-nav.open .menu-button span { transition: transform .4s var(--menu-ease), top .4s var(--menu-ease); }
  .menu-button span:first-child { top: 16px; }
  .menu-button span:last-child { top: 27px; }
  /* open menu: bar grows downwards and pushes the page down, as on the live site */
  .site-nav.open { height: auto; min-height: 520px; max-height: 100vh; overflow: auto; }
  /* deliberate fix: live hides the logo while the phone menu is open; here it stays */
  .site-nav.open .menu-button { top: 9px; }
  .site-nav.open .menu-button span { top: 21px; }
  .site-nav.open .menu-button span:first-child { transform: rotate(45deg); }
  .site-nav.open .menu-button span:last-child { transform: rotate(-45deg); }
  .site-nav.open .links { display: flex; position: relative; top: auto; right: auto; flex-direction: column; gap: 0; padding: 65px 20px 20px; }
  .site-nav.open .links a { font: 600 32px/1.5 var(--mono); letter-spacing: 0; }
  .site-nav.open .links li:last-child a { font-weight: 500; line-height: 2; letter-spacing: -0.2px; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--black); height: 369px; padding-top: 64px; text-align: center; }
.site-footer { position: relative; }
.site-footer::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: #191919; pointer-events: none; }
.site-footer ul { list-style: none; margin: 0 auto; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 40px; }
.site-footer .links { font: 400 15px/15px var(--mono); letter-spacing: -0.15px; }
.site-footer .links a { color: var(--white); }
.site-footer .links-screenings { margin-top: 24px; }   /* own row (added 11 Nov 2026): footer 39px taller, 330 -> 369; on phones 40px like the rows above, 385 -> 440 */
.site-footer .legal { margin-top: 28px; gap: 24px; }
.site-footer .legal { font: 400 14px/16.8px var(--mono); }
.site-footer .legal a { color: var(--white); }
.site-footer a:hover { color: var(--cyan); }
.site-footer .institute { width: 166px; height: 35px; margin: 28px auto 0; object-fit: cover; }
.site-footer .copyright { width: 278px; margin: 28px auto 0; white-space: pre-wrap; font: 400 16px/25.6px var(--ui); letter-spacing: -0.32px; color: var(--grey-text); }
.cookie-settings { display: block; width: 100%; height: 18px; border: 0; padding: 0; background: var(--white); color: #333; font: 16px sans-serif; line-height: normal; cursor: pointer; }
@media (max-width: 809.98px) {
  .site-footer { height: 440px; }
  .site-footer .links-screenings { margin-top: 40px; }
  .site-footer .links { max-width: 310px; column-gap: 28px; }   /* 28 (live 40) so Shop fits and the links stay on two rows, as live */
}

/* ---------- Sign-up form ---------- */
.signup-form { display: flex; flex-direction: column; gap: 20px; padding: 20px; }
.signup-form label, .signup-form .field-label { display: flex; flex-direction: column; gap: 10px; font: 500 12px/14.4px var(--ui); color: var(--white); }
.signup-form .input { position: relative; height: 40px; padding: 12px; border-radius: 10px; background: rgba(187, 187, 187, 0.15); }
.signup-form .input::after { content: ""; position: absolute; inset: 0; border: 1px solid var(--cyan); border-radius: 10px; pointer-events: none; }
.signup-form input[type=text], .signup-form input[type=email] { width: 100%; height: 16px; padding: 0; border: 0; outline: 0; background: none; font: 400 14px/16.8px var(--ui); color: #999; }
.signup-form input::placeholder { color: #999; }
.signup-form .choices { display: flex; gap: 20px; }
.signup-form .choice { display: flex; flex-direction: row; gap: 8px; align-items: flex-start; font: 400 14px/16.8px var(--ui); color: var(--white); }
.signup-form .consent { display: flex; flex-direction: row; gap: 8px; font: 400 12px/14.4px var(--mono); color: var(--white); text-align: left; }
.signup-form input[type=radio], .signup-form input[type=checkbox] { appearance: none; position: relative; flex: none; width: 16px; height: 16px; margin: 0; border-radius: 4px; background: rgba(187, 187, 187, 0.15); cursor: pointer; }
.signup-form input[type=radio]::after, .signup-form input[type=checkbox]::after { content: ""; position: absolute; inset: 0; border: 1px solid var(--cyan); border-radius: inherit; }
.signup-form input:checked { background: var(--teal); }
.signup-form input[type=checkbox] { border-radius: 3px; }
.signup-form input[type=checkbox]:checked::after { border-color: var(--teal); }
.signup-form input:checked::before { content: ""; position: absolute; inset: 0; background: #000;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16'%3E%3Cpath d='M 4 8 L 6.5 10.5 L 11.5 5.5' fill='transparent' stroke-width='2' stroke='white' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16'%3E%3Cpath d='M 4 8 L 6.5 10.5 L 11.5 5.5' fill='transparent' stroke-width='2' stroke='white' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.signup-form button { height: 40px; border: 0; border-radius: 10px; background: var(--gold); color: var(--white); font: 600 14px/16.8px var(--mono); cursor: pointer; }
.signup-form button { transition: background-color .2s var(--ease); }
body form.signup-form button[type=submit]:hover, body form.signup-form > button:hover { background-color: rgba(223, 171, 56, 0.85); }   /* as live */
.signup-form .consent a { transition: color .2s var(--ease); }
body .signup-form .consent a:hover, body .consent a:hover { color: var(--cyan); }                        /* as live */
.signup-form .spacer { height: 16px; }
.signup-form .thanks { display: none; font: 400 14px/1.4 var(--mono); color: var(--white); text-align: center; }
.signup-form.sent > *:not(.thanks) { display: none; }
.signup-form .form-note { margin: 0; font: 400 12px/1.4 var(--mono); color: var(--white); text-align: center; }
.signup-form .form-note[hidden] { display: none; }
.signup-form.sent .thanks { display: block; }

/* ---------- Yellow button ---------- */
.button-gold { display: flex; align-items: center; justify-content: center; padding: 10px 18px; border-radius: 10px; background: var(--gold); color: var(--white);
  font: 600 14px/16.8px var(--mono); white-space: nowrap; transition: scale .2s var(--ease), background-color .2s var(--ease); }
.button-gold:hover { scale: 1.1; background-color: rgba(223, 171, 56, 0.85); }

/* ---------- Cookie notice (bottom right card, as on the live site) ---------- */
#cookie-banner { position: fixed; right: 0; bottom: 0; z-index: 10; padding: 20px; display: flex; justify-content: flex-end; pointer-events: none; width: 100%; }
#cookie-banner .cookie-card { pointer-events: auto; display: flex; gap: 20px; padding: 20px; width: 100%; max-width: 360px; border-radius: 14px; background: #fff;
  box-shadow: rgba(0, 0, 0, 0.05) 0 0 0 1px inset; opacity: 0; transform: translateY(10px); transition: opacity .3s var(--ease), transform .3s var(--ease); }
#cookie-banner.on .cookie-card { opacity: 1; transform: none; }
#cookie-banner p { flex: 1 1 0%; margin: 0; font: 14px/1.5 var(--ui); color: #444; }
#cookie-banner button { transition: color .2s var(--ease); align-self: center; padding: 10px; border: 0; border-radius: 8px; background: #eee; color: #444; font: 14px/1 var(--ui); cursor: pointer; }
#cookie-banner button:hover { color: #999; }   /* as live */
