/* Win With Nabs — base styles. Dark background + single accent color matched
   to the client logo (WWN_logo.JPG: navy shield, red glove, cream background)
   per PRD Sec. 8. */

:root {
  --accent: #8a1128; /* deep crimson from the boxing glove — decorative use (borders, badges) */
  --accent-text: #f5506a; /* vivid crimson — meets 4.5:1 contrast on --bg/--bg-alt for text/links (PRD Sec. 11) */
  --accent-button: #6f0e20; /* darkest crimson — meets 4.5:1 contrast with --text for button labels */
  --bg: #0c1a26; /* dark navy, sampled from the logo's shield/text color */
  --bg-alt: #142433;
  --text: #f5ede1; /* cream, sampled from the logo's background */
  --text-muted: #a9b7c2;
  --border: rgba(245, 237, 225, 0.16); /* cream hairline sampled from the logo background, used for all component borders */
  --font-display: "Bebas Neue", "Arial Narrow", sans-serif;
  --font-body: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --max-width: 1160px;
  --nav-height: 72px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: var(--font-display);
  letter-spacing: 0.03em;
  line-height: 1.05;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.75rem); }
h3 { font-size: 1.25rem; }

p { color: var(--text-muted); }

a {
  color: var(--text);
  text-decoration: none;
}

a:hover {
  color: var(--accent-text);
  text-decoration: underline;
}

img { max-width: 100%; display: block; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

section {
  scroll-margin-top: var(--nav-height);
  padding: 96px 0;
}

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  background: rgba(11, 11, 13, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.nav-links a:hover { color: var(--accent-text); }

.nav-logo {
  display: flex;
  align-items: center;
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 0.05em;
  color: var(--text);
  text-decoration: none;
}

.nav-logo img {
  height: 40px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.6rem;
  cursor: pointer;
}

@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--bg-alt);
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid var(--border);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    display: block;
    padding: 16px 24px;
    border-top: 1px solid var(--border);
  }
  .nav-toggle { display: block; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--nav-height) 24px 48px;
  background: linear-gradient(160deg, var(--bg-alt) 0%, var(--bg) 70%);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: hero-slide-cycle 12s infinite;
}

.hero-slide:nth-child(1) { animation-delay: 0s; }
.hero-slide:nth-child(2) { animation-delay: 3s; }
.hero-slide:nth-child(3) { animation-delay: 6s; }
.hero-slide:nth-child(4) { animation-delay: 9s; }

@keyframes hero-slide-cycle {
  0%, 24.9% { opacity: 1; }
  25%, 100% { opacity: 0; }
}

.hero-media-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0.75) 70%);
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide {
    animation: none;
    opacity: 0;
  }
  .hero-slide:first-child {
    opacity: 1;
  }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.hero-title-link {
  color: var(--text);
  text-decoration: none;
}

.hero-title-link:hover {
  color: var(--accent-text);
}

.hero-eyebrow {
  font-family: var(--font-display);
  color: var(--text);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 1rem;
}

.hero-tagline {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
}

.scroll-cue {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  z-index: 1;
  animation: bounce 2s infinite;
}

.scroll-cue svg { width: 28px; height: 28px; }

@keyframes bounce {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}

/* ---------- Two-column split sections ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.split.reverse .split-media { order: 2; }
.split.reverse .split-text { order: 1; }

@media (max-width: 768px) {
  .split {
    grid-template-columns: 1fr;
  }
  .split.reverse .split-media,
  .split.reverse .split-text {
    order: initial;
  }
  section { padding: 64px 0; }
}

.placeholder-box {
  border: 1px dashed var(--border);
  background: var(--bg-alt);
  color: var(--text-muted);
  font-style: italic;
  font-size: 0.9rem;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  min-height: 220px;
  border-radius: 4px;
}

.placeholder-box.small { min-height: 140px; }

.split-media-img {
  width: 100%;
  border-radius: 4px;
  display: block;
}

/* ---------- Consulting page rotating photo slideshow ---------- */
.consulting-slideshow {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 4px;
}

.consulting-slideshow img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: consulting-slide-cycle 12s infinite;
}

.consulting-slideshow img:nth-child(1) { animation-delay: 0s; }
.consulting-slideshow img:nth-child(2) { animation-delay: 4s; }
.consulting-slideshow img:nth-child(3) { animation-delay: 8s; }

@keyframes consulting-slide-cycle {
  0%, 32.9% { opacity: 1; }
  33%, 100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .consulting-slideshow img {
    animation: none;
    opacity: 0;
  }
  .consulting-slideshow img:first-child {
    opacity: 1;
  }
}

/* ---------- Credentials / stats ---------- */
.stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin: 24px 0;
}

.stat {
  min-width: 140px;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--text);
  display: block;
}

.stat-label {
  color: var(--text-muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.guest-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 16px 0;
  padding: 0;
  list-style: none;
}

.guest-list li {
  border: 1px solid var(--border);
  background: rgba(245, 237, 225, 0.05);
  color: var(--text);
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
}

.sponsor-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--border);
  background: rgba(245, 237, 225, 0.05);
  color: var(--text);
  padding: 10px 18px;
  border-radius: 6px;
  margin-top: 12px;
}

.sponsor-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 32px;
  margin-top: 12px;
}

.sponsor-logos img {
  max-width: 140px;
  width: 100%;
  height: auto;
}

/* ---------- Section headers ---------- */
.section-alt { background: var(--bg-alt); }

.eyebrow {
  font-family: var(--font-display);
  color: var(--accent-text);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.95rem;
}

/* ---------- Page hero (interior pages, shorter than the homepage hero) ---------- */
.page-hero {
  position: relative;
  padding: calc(var(--nav-height) + 64px) 24px 64px;
  text-align: center;
  background: linear-gradient(160deg, var(--bg-alt) 0%, var(--bg) 70%);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.page-hero .eyebrow { display: block; margin-bottom: 8px; }

.page-hero-tagline {
  max-width: 620px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* ---------- Page hero with rotating photo slideshow (e.g. guests page) ---------- */
.page-hero-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.page-hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center calc(50% + 250px);
  opacity: 0;
  animation: page-hero-slide-cycle 15s infinite;
}

.page-hero-slide:nth-child(1) { animation-delay: 0s; }
.page-hero-slide:nth-child(2) { animation-delay: 3s; }
.page-hero-slide:nth-child(3) { animation-delay: 6s; }
.page-hero-slide:nth-child(4) { animation-delay: 9s; }
.page-hero-slide:nth-child(5) { animation-delay: 12s; }

@keyframes page-hero-slide-cycle {
  0%, 19.9% { opacity: 1; }
  20%, 100% { opacity: 0; }
}

.page-hero-media-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0.75) 70%);
}

@media (prefers-reduced-motion: reduce) {
  .page-hero-slide {
    animation: none;
    opacity: 0;
  }
  .page-hero-slide:first-child {
    opacity: 1;
  }
}

.page-hero-slideshow .page-hero-content {
  position: relative;
  z-index: 1;
}

/* ---------- Page hero with background image (dark overlay keeps text readable) ---------- */
.page-hero-bg-clip {
  background: url("cont_clip.webp") center/cover no-repeat;
}

.page-hero-bg-sponsor {
  background: url("Sponsor_nabs.webp") center/cover no-repeat;
}

.page-hero-bg-clip::before,
.page-hero-bg-sponsor::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(12, 26, 38, 0.82) 0%, rgba(12, 26, 38, 0.9) 70%);
}

.page-hero-bg-clip .eyebrow,
.page-hero-bg-clip h1,
.page-hero-bg-clip .page-hero-tagline,
.page-hero-bg-sponsor .eyebrow,
.page-hero-bg-sponsor h1,
.page-hero-bg-sponsor .page-hero-tagline {
  position: relative;
  z-index: 1;
}

/* ---------- Card grids (CSS Grid), e.g. guest cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 24px;
}

@media (max-width: 768px) {
  .card-grid { grid-template-columns: 1fr; }
}

.card {
  border: 1px solid var(--border);
  background: linear-gradient(160deg, var(--bg-alt) 0%, rgba(245, 237, 225, 0.04) 200%);
  border-radius: 6px;
  padding: 20px;
  text-align: center;
}

.card .placeholder-box {
  min-height: 160px;
  margin-bottom: 16px;
}

.card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 16px;
  display: block;
}

.card a {
  color: inherit;
  text-decoration: none;
}

.card a:hover h3 {
  text-decoration: underline;
}

.card h3 { margin-bottom: 4px; }

.card p { margin: 0; font-size: 0.9rem; }

/* ---------- Two-field form rows (CSS Grid), collapse to one column on mobile ---------- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 20px;
}

@media (max-width: 600px) {
  .form-grid { grid-template-columns: 1fr; }
}

/* ---------- CTA buttons ---------- */
.btn {
  display: inline-block;
  background: var(--accent-button);
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.15rem;
  padding: 14px 30px;
  border-radius: 4px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.btn:hover { opacity: 0.9; }

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--accent-button);
}

.cta-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 10px;
}

/* ---------- Forms ---------- */
form {
  max-width: 560px;
  margin-top: 32px;
}

.field {
  margin-bottom: 18px;
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 0.9rem;
}

input:not([type="checkbox"]), select, textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
}

input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--accent-text);
  outline-offset: 1px;
}

textarea { min-height: 120px; resize: vertical; }

/* Honeypot field — hidden from sighted users but not from bots/screen readers should skip it */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 4px;
  font-size: 0.9rem;
  display: none;
}

.form-status.success {
  display: block;
  background: rgba(46, 204, 113, 0.12);
  border: 1px solid #2ecc71;
  color: #2ecc71;
}

.form-status.error {
  display: block;
  background: rgba(245, 80, 106, 0.12);
  border: 1px solid var(--accent-text);
  color: var(--accent-text);
}

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

footer a { color: var(--text); }
