/* =====================================================================
   PIXACTLY WEBSITE — website-only styles
   Loaded after /brand/v1/pixactly.css, the shared brand stylesheet that
   the website and the apps all use. Only what exists on the website and
   nowhere else lives here: the header and its phone menu, the footer, the
   cookie banner, the home page, the photo pages' cards, the careers tiles
   and the long-text (company, legal, job) pages. Colours, fonts, buttons,
   cards, badges, form fields and the photo layouts come from the shared
   file; change those there, not here.
   ===================================================================== */


/* ── 1. PAGE ─────────────────────────────────────────────────────────── */
body { line-height: 1.5; }
img { max-width: 100%; }
a { color: var(--cyan); }
h4 { font-family: var(--px-font-display); }

.site-main { display: block; }

/* Inner pages: the water strip runs behind the floating header; content
   starts where the strip fades into the page. */
.site-page { padding-top: 116px; padding-bottom: 24px; }
@media (min-width: 1000px) { .site-page { padding-top: 132px; } }


/* ── 2. HEADER ──────────────────────────────────────────────────────────
   Floats over the top of every page: over the photo on the photo pages,
   over the water strip on inner pages, like the logo on the hub's sign-in
   page. A soft navy scrim behind it keeps the links readable on any
   photo. From 1000px: logo, the five links, Sign Up and Sign In. Below
   that: logo, Sign Up and a menu button holding the links and Sign In. */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: linear-gradient(180deg,
    rgba(11, 31, 58, 0.62) 0%,
    rgba(11, 31, 58, 0.30) 60%,
    rgba(11, 31, 58, 0) 100%);
}
.site-header .px-brand { margin-right: auto; text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35); }
/* Photo pages on phones and tablets: the photo's busiest part sits right
   behind the header, so the scrim is a little stronger there. */
@media (max-width: 899px) {
  .layout-photo .site-header {
    background: linear-gradient(180deg,
      rgba(11, 31, 58, 0.80) 0%,
      rgba(11, 31, 58, 0.45) 60%,
      rgba(11, 31, 58, 0) 100%);
  }
}

.site-nav { display: none; align-items: center; gap: 2px; }
.site-nav a {
  font-family: var(--px-font-display);
  font-size: 15px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.86);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 8px;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45);
  transition: color 0.15s ease, background-color 0.15s ease;
}
.site-nav a:hover { color: var(--cyan); background: rgba(0, 180, 216, 0.08); }
.site-nav a[aria-current="page"] { color: var(--cyan); }

.site-auth { display: flex; align-items: center; gap: 8px; }
.site-auth .px-btn-outline { display: none; }   /* in the menu on small screens */

/* Phone/tablet menu: a <details> element, so it works without JavaScript;
   a few lines of script in the page close it on an outside tap or Esc. */
.site-menu { position: relative; }
.site-menu > summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(11, 31, 58, 0.45);
  cursor: pointer;
}
.site-menu > summary::-webkit-details-marker { display: none; }
.site-menu > summary:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.site-menu-icon,
.site-menu-icon::before,
.site-menu-icon::after {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--white);
  transition: transform 0.2s ease, background-color 0.2s ease;
}
.site-menu-icon { position: relative; }
.site-menu-icon::before,
.site-menu-icon::after { content: ''; position: absolute; left: 0; }
.site-menu-icon::before { top: -6px; }
.site-menu-icon::after { top: 6px; }
.site-menu[open] .site-menu-icon { background: transparent; }
.site-menu[open] .site-menu-icon::before { transform: translateY(6px) rotate(45deg); }
.site-menu[open] .site-menu-icon::after { transform: translateY(-6px) rotate(-45deg); }

.site-menu-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(260px, calc(100vw - 32px));
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px;
  background: var(--card);
  border: 1px solid rgba(0, 180, 216, 0.35);
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}
.menu-link {
  font-family: var(--px-font-display);
  font-size: 16px;
  font-weight: 500;
  color: var(--white);
  text-decoration: none;
  padding: 12px 14px;
  border-radius: 10px;
}
.menu-link:hover,
.menu-link[aria-current="page"] { color: var(--cyan); background: rgba(0, 180, 216, 0.08); }
.site-menu-panel .px-btn { margin: 8px 6px 6px; }

@media (min-width: 1000px) {
  .site-header { padding: 22px 40px; gap: 24px; }
  .site-nav { display: flex; }
  .site-auth .px-btn-outline { display: inline-flex; }
  .site-menu { display: none; }
}
@media (max-width: 360px) {
  .site-header { padding: 14px 14px; gap: 8px; }
  .site-header .px-brand { font-size: 17px; gap: 8px; }
  .site-header .px-brand img { height: 32px; }
}


/* ── 3. PHOTO PAGES (Swimming, Table Tennis) ────────────────────────────
   The layout itself is the shared .px-split. These only add the website's
   card contents and keep the card clear of the floating header. */
@media (min-width: 900px) {
  .site-main .px-split-main { padding-top: 112px; }
}
.split-card .px-badge { margin-bottom: 14px; }
.split-title { font-size: 30px; line-height: 1.1; margin-bottom: 12px; }
.split-copy { color: rgba(255, 255, 255, 0.78); font-size: 15.5px; line-height: 1.7; margin-bottom: 22px; }
.split-card .px-divider { margin: 14px 0; }

/* The table tennis photo (website only for now), framed on the player. */
.site-photo-tt {
  background-image: url(../assets/hero-tabletennis.jpg);
  --px-photo-pos: 54% 0%;
  --px-photo-pos-wide: 54% 30%;
  --px-photo-pos-card: center 32%;
}


/* ── 4. HOME ─────────────────────────────────────────────────────────── */
.home-hero {
  padding: 150px 20px 36px;
  text-align: center;
  background: radial-gradient(ellipse 60% 55% at 50% 38%, rgba(0, 180, 216, 0.09), transparent 70%);
}
.home-hero h1 {
  font-size: clamp(34px, 6.2vw, 60px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  max-width: 900px;
  margin: 0 auto 20px;
}
.home-hero h1 em { font-style: normal; color: var(--cyan); }
.home-hero p {
  font-size: clamp(16px, 2.1vw, 18px);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.78);
  max-width: 640px;
  margin: 0 auto 30px;
}
.home-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.home-section { padding: 56px 20px 8px; scroll-margin-top: 24px; }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 32px; }
.section-head h2 { font-size: clamp(24px, 3.4vw, 32px); line-height: 1.15; margin-bottom: 10px; }
.section-head p { color: var(--gray); line-height: 1.6; }

.lob-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 24px;
  max-width: 1080px;
  margin: 0 auto;
}
.lob-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
  color: var(--white);
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.lob-card:hover { transform: translateY(-3px); border-color: var(--cyan); }
.lob-card:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.lob-photo {
  position: relative;
  aspect-ratio: 16 / 7;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: var(--px-photo-pos-card, center);
}
.lob-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(22, 45, 74, 0) 45%, var(--card) 100%);
}
.lob-body { position: relative; padding: 0 24px 26px; margin-top: -12px; }
.lob-body h3 { font-size: 26px; line-height: 1.1; margin: 12px 0 4px; }
.lob-sport { font-family: var(--px-font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gray); margin-bottom: 12px; }
.lob-body p { color: rgba(255, 255, 255, 0.74); font-size: 15px; line-height: 1.6; margin-bottom: 16px; }
.lob-more { font-family: var(--px-font-display); font-weight: 700; font-size: 15px; color: var(--cyan); }


/* ── 5. LONG-TEXT PAGES (company, contact, careers, jobs, legal) ─────────
   A comfortable reading column: 480px on small screens, 760px from 700px
   wide. */
.prose { max-width: 480px; margin: 0 auto; padding: 0 20px 24px; }
@media (min-width: 700px) { .prose { max-width: 800px; padding: 0 20px 24px; } }
.prose h1 { font-size: clamp(30px, 4.6vw, 40px); line-height: 1.1; letter-spacing: -0.01em; margin-bottom: 18px; }
.prose h2 { font-size: 20px; line-height: 1.25; color: var(--cyan); margin: 36px 0 12px; }
.prose p { color: rgba(255, 255, 255, 0.78); font-size: 15.5px; line-height: 1.75; margin-bottom: 16px; }
.prose ul,
.prose ol { color: rgba(255, 255, 255, 0.78); font-size: 15.5px; line-height: 1.75; margin: 0 0 16px 22px; }
.prose li { margin-bottom: 6px; }
.prose li > ul,
.prose li > ol { margin-top: 6px; margin-bottom: 0; }
.prose strong { color: var(--white); }
.prose .px-card { margin: 8px 0 20px; }
.prose .lead { font-size: 17px; color: rgba(255, 255, 255, 0.82); }
.prose-actions { margin-top: 28px; }
.meta-text { color: var(--gray); font-size: 14px; }
.btn-text { color: var(--cyan); font-weight: 600; text-decoration: none; }
.btn-text:hover { text-decoration: underline; }

/* Careers: open positions as tiles. */
.job-list { display: grid; gap: 18px; margin-top: 28px; }
.job-tile { display: block; color: var(--white); text-decoration: none; transition: border-color 0.2s ease, transform 0.2s ease; }
.job-tile:hover { border-color: var(--cyan); transform: translateY(-2px); }
.job-tile:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.job-tile h2 { font-size: 21px; line-height: 1.25; color: var(--white); margin: 14px 0 8px; }
.job-tile p { color: rgba(255, 255, 255, 0.74); font-size: 15px; line-height: 1.6; margin-bottom: 14px; }

/* Job pages that keep their own headings: "The role at a glance" (label and
   value side by side; one under the other on phones) and small
   sub-headings such as "Must have". */
.job-glance {
  margin: 0 0 8px;
  background: var(--card);
  border: 1px solid rgba(0, 180, 216, 0.35);
  border-radius: 14px;
  font-size: 15.5px;
  line-height: 1.55;
}
.job-glance > div {
  display: grid;
  grid-template-columns: 36% 1fr;
  gap: 2px 16px;
  padding: 11px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.job-glance > div:first-child { border-top: 0; }
.job-glance dt { font-weight: 600; color: var(--white); }
.job-glance dd { color: rgba(255, 255, 255, 0.78); }
@media (max-width: 480px) {
  .job-glance > div { grid-template-columns: 1fr; padding: 10px 14px; }
  .job-glance dt { font-size: 14px; }
}
.prose h3 { font-size: 16.5px; line-height: 1.3; color: var(--white); margin: 22px 0 8px; }
.nowrap { white-space: nowrap; }

/* Contact form: forms stay 440–460px wide, as in the hub. */
.contact-card { margin-top: 24px; max-width: 460px; }


/* ── 6. FOOTER ───────────────────────────────────────────────────────── */
.site-footer {
  margin-top: 72px;
  background: rgba(30, 58, 95, 0.5);
  border-top: 1px solid rgba(0, 180, 216, 0.25);
}
.site-footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 44px 24px 28px;
  display: grid;
  grid-template-columns: 1.3fr repeat(3, 1fr);
  gap: 32px;
}
.footer-col h4 {
  font-family: var(--px-font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 14px;
}
.footer-col a,
.footer-cookie-btn {
  display: block;
  color: var(--gray);
  font-size: 14px;
  text-decoration: none;
  margin-bottom: 9px;
}
.footer-col a:hover,
.footer-cookie-btn:hover { color: var(--cyan); }
.footer-cookie-btn { background: none; border: none; padding: 0; cursor: pointer; font-family: inherit; text-align: left; }
.site-footer-bottom {
  text-align: center;
  padding: 16px 24px;
  border-top: 1px solid rgba(0, 180, 216, 0.15);
  color: var(--gray);
  font-size: 12px;
}
@media (max-width: 760px) {
  .site-footer-inner { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .site-footer-brand { grid-column: 1 / -1; }
}


/* ── 7. COOKIE CONSENT BANNER ──────────────────────────────────────────
   Shown on first visit (categories as in /legal/cookie-policy.html). The
   choice is kept in localStorage; the footer's "Cookie Preferences"
   reopens the preferences at any time. Purely presentational until
   analytics/ad scripts exist; at that point, gate their loading on
   window.pixactlyCookieConsent.getConsent(). */
.cookie-banner {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 500;
  max-width: 1100px;
  margin: 0 auto;
  background: rgba(22, 45, 74, 0.97);
  border: 1px solid rgba(0, 180, 216, 0.35);
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  padding: 18px 20px;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.cookie-banner-text { color: rgba(255, 255, 255, 0.78); font-size: 14px; line-height: 1.6; flex: 1 1 380px; }
.cookie-banner-text a { color: var(--cyan); text-decoration: none; font-weight: 600; }
.cookie-banner-text a:hover { text-decoration: underline; }
.cookie-banner-actions { display: flex; gap: 8px; flex-wrap: wrap; flex: 0 0 auto; }

/* Preferences window */
.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 600;
  background: rgba(4, 12, 26, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.cookie-modal-overlay[hidden] { display: none; }
.cookie-modal { width: 100%; max-width: 560px; max-height: 85vh; overflow-y: auto; padding: 28px; }
.cookie-modal h2 { font-size: 21px; margin-bottom: 8px; }
.cookie-modal > p { color: rgba(255, 255, 255, 0.74); font-size: 14px; line-height: 1.6; margin-bottom: 18px; }
.cookie-modal > p a { color: var(--cyan); text-decoration: none; }
.cookie-modal > p a:hover { text-decoration: underline; }
.cookie-toggle-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.cookie-toggle-row:first-of-type { border-top: none; }
.cookie-toggle-copy h3 { font-size: 15px; margin-bottom: 4px; }
.cookie-toggle-copy p { font-size: 13px; color: var(--gray); line-height: 1.5; }
.cookie-switch { position: relative; display: inline-block; width: 42px; height: 24px; flex: 0 0 auto; }
.cookie-switch input { opacity: 0; width: 0; height: 0; }
.cookie-switch-track {
  position: absolute;
  inset: 0;
  background: rgba(11, 31, 58, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.cookie-switch-track::before {
  content: "";
  position: absolute;
  height: 16px;
  width: 16px;
  left: 3px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--gray);
  border-radius: 50%;
  transition: transform 0.15s ease, background-color 0.15s ease;
}
.cookie-switch input:checked + .cookie-switch-track { background: rgba(0, 180, 216, 0.25); border-color: var(--cyan); }
.cookie-switch input:checked + .cookie-switch-track::before { transform: translate(18px, -50%); background: var(--cyan); }
.cookie-switch input:focus-visible + .cookie-switch-track { outline: 2px solid var(--cyan); outline-offset: 2px; }
.cookie-switch input:disabled + .cookie-switch-track { cursor: not-allowed; opacity: 0.6; }
.cookie-modal-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }

@media (max-width: 640px) {
  .cookie-banner { padding: 16px; }
  .cookie-banner-inner { flex-direction: column; align-items: stretch; gap: 14px; }
  /* "flex: 1 1 380px" above is a *width* basis for the side-by-side
     layout; in this stacked layout it would apply to height and balloon
     the text block to 380px. Size it to its content instead. */
  .cookie-banner-text { flex: 0 1 auto; }
  .cookie-banner-actions .px-btn { flex: 1 1 auto; }
}
