/* JubalBoard Landing Website */
@font-face {
  font-family: "Poppins";
  src: url("../fonts/Poppins-Regular.ttf") format("truetype");
}

@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-Regular.ttf") format("truetype");
}

:root {
  --navy: #1c1c3a;
  --navy-deep: #161632;
  --coral: #e2554f;
  --gold: #fbc02d;
  --text: #1c1c3a;
  --muted: #626277;
  --line: #e7e7ee;
  --surface: #f7f7fa;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(28, 28, 58, 0.12);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--white);
  overscroll-behavior: none;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--white);
  font-family: "Inter", Arial, sans-serif;
  line-height: 1.6;
  overscroll-behavior: none;
}

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

a,
button {
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, opacity 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(226, 85, 79, 0.42);
  outline-offset: 3px;
}

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

[id] {
  scroll-margin-top: 96px;
}

.container {
  width: calc(100% - 10%);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #f0f0f1;
  border-bottom: 1px solid rgba(28, 28, 58, 0.06);
  transition: opacity 180ms ease, transform 180ms ease;
}

.site-header.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-100%);
}

.nav {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: "Poppins", Arial, sans-serif;
  font-size: 1.55rem;
  font-weight: 900;
  letter-spacing: 0;
  color: var(--navy);
}

.brand:hover {
  opacity: 0.82;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: contain;
}

.brand-copy {
  display: grid;
  line-height: 1.08;
}

.brand-slogan {
  color: var(--coral);
  font-family: "Inter", Arial, sans-serif;
  font-size: 0.48rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  text-transform: uppercase;
  transform: translateY(-5px);
  transition: max-height 180ms ease, opacity 180ms ease, transform 180ms ease;
}

.site-header.show-brand-slogan .brand-slogan {
  max-height: 1rem;
  opacity: 1;
  transform: translateY(0);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--navy);
  font-size: 0.95rem;
  font-weight: 700;
}

.nav-links a {
  opacity: 0.88;
}

.nav-links a:hover {
  color: var(--coral);
  opacity: 1;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: var(--radius);
  font-weight: 800;
  border: 0;
  cursor: pointer;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  background: var(--coral);
  color: var(--white);
  box-shadow: 0 12px 24px rgba(226, 85, 79, 0.24);
}

.button.secondary {
  background: var(--white);
  color: var(--navy);
  box-shadow: 0 8px 20px rgba(28, 28, 58, 0.08);
}

main {
  min-height: 60vh;
}

.hero {
  padding: 64px 0 58px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 0.95fr;
  align-items: center;
  gap: 58px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--coral);
  font-weight: 900;
  letter-spacing: 0;
  margin-bottom: 18px;
}

.eyebrow::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--coral);
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--navy);
  font-family: "Poppins", Arial, sans-serif;
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(2.4rem, 5vw, 4.85rem);
  max-width: 720px;
}

h1 span,
.accent {
  color: var(--coral);
}

.hero p {
  max-width: 630px;
  color: var(--muted);
  font-size: 1.1rem;
  margin: 22px 0 30px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.hero-card {
  min-height: 330px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
  padding: 36px;
  display: grid;
  align-items: stretch;
  background:
    linear-gradient(135deg, rgba(28, 28, 58, 0.84), rgba(226, 85, 79, 0.38)),
    radial-gradient(circle at 20% 20%, rgba(251, 192, 45, 0.52), transparent 28%),
    radial-gradient(circle at 82% 16%, rgba(97, 85, 245, 0.55), transparent 30%),
    radial-gradient(circle at 70% 76%, rgba(46, 204, 113, 0.38), transparent 30%),
    #d9d9df;
}

.creative-scene {
  display: grid;
  align-content: space-between;
}

.scene-panel {
  min-height: 126px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.12);
  padding: 18px;
  display: grid;
  align-content: space-between;
  text-transform: uppercase;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.scene-panel:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 34px rgba(0, 0, 0, 0.14);
}

.scene-panel strong {
  font-size: 1rem;
  overflow-wrap: anywhere;
}

.scene-panel.dark {
  background: rgba(28, 28, 58, 0.88);
  color: var(--white);
}

.slogan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.countdown {
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.12);
  margin-top: 36px;
  padding: 18px;
}

.countdown-title {
  display: block;
  margin-bottom: 14px;
  color: var(--navy);
  font-family: "Poppins", Arial, sans-serif;
  font-size: 1.5rem;
  text-align: left;
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.countdown-card {
  min-height: 82px;
  border-radius: var(--radius);
  background: rgba(28, 28, 58, 0.9);
  color: var(--white);
  display: grid;
  place-items: center;
  padding: 10px;
  text-align: center;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.countdown-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 24px rgba(0, 0, 0, 0.14);
}

.countdown-value {
  font-family: "Poppins", Arial, sans-serif;
  font-size: 1.65rem;
  font-weight: 900;
  line-height: 1;
}

.countdown-label {
  color: #d7d7e2;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.countdown-fallback {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.section {
  padding: 58px 0;
}

.section.soft {
  background: var(--surface);
}

.section-title {
  max-width: 760px;
  margin-bottom: 28px;
}

.section-title p {
  color: var(--muted);
  margin: 12px 0 0;
  font-size: 1.02rem;
}

.grid {
  display: grid;
  gap: 18px;
}

.grid.three {
  grid-template-columns: repeat(3, 1fr);
}

.grid.six {
  grid-template-columns: repeat(3, 1fr);
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 8px 24px rgba(28, 28, 58, 0.06);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(226, 85, 79, 0.28);
  box-shadow: 0 16px 32px rgba(28, 28, 58, 0.1);
}

.card.highlight {
  background: var(--coral);
  color: var(--white);
  border-color: var(--coral);
}

.card.highlight h3,
.card.highlight p {
  color: var(--white);
}

.icon-box {
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  color: var(--coral);
  background: rgba(226, 85, 79, 0.1);
  margin-bottom: 18px;
  font-size: 1.75rem;
  font-weight: 900;
}

.card.highlight .icon-box {
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
}

.card h3 {
  font-size: 1.05rem;
  margin-bottom: 10px;
}

.card p {
  color: var(--muted);
  margin: 0;
  font-size: 0.95rem;
}

.category-card {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 96px;
}

.contact-band {
  display: grid;
  grid-template-columns: 1fr 0.65fr;
  gap: 24px;
  align-items: stretch;
  background: var(--navy);
  color: var(--white);
  border-radius: 18px;
  padding: 34px;
  overflow: hidden;
}

.contact-band h2 {
  color: var(--white);
}

.contact-band p {
  color: #d7d7e2;
  margin: 14px 0 24px;
}

.contact-list {
  display: grid;
  gap: 14px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #efeff7;
}

.contact-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: var(--coral);
  font-weight: 900;
}

.document-page {
  padding: 58px 0 76px;
  background: var(--surface);
}

.error-page-main {
  min-height: calc(100vh - 220px);
}

.document {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: clamp(24px, 5vw, 56px);
}

.document h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin-bottom: 8px;
}

.document .updated {
  color: var(--muted);
  margin: 0 0 30px;
}

.document h2 {
  font-size: 1.25rem;
  margin-top: 0;
  margin-bottom: 8px;
}

.document p,
.document li {
  color: #434357;
}

.document ul {
  padding-left: 20px;
}

.document-section {
  border: 1px solid transparent;
  border-radius: var(--radius);
  margin: 10px -16px;
  padding: 16px;
  transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.document-section:hover {
  background: rgba(226, 85, 79, 0.06);
  border-color: rgba(226, 85, 79, 0.18);
  box-shadow: 0 12px 26px rgba(28, 28, 58, 0.08);
  transform: translateY(-1px);
}

.site-footer {
  background: var(--navy-deep);
  color: var(--white);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

.footer-bottom {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--gold);
}

.footer-bottom .brand {
  color: var(--white);
  font-size: 1.35rem;
}

.footer-bottom .brand-slogan {
  color: var(--line);
  font-size: 0.43rem;
  max-height: 1rem;
  opacity: 1;
  transform: translateY(0);
}

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

@media (max-width: 900px) {
  .nav-links {
    flex-wrap: wrap;
  }

  .hero-grid,
  .contact-band {
    grid-template-columns: 1fr;
  }

  .grid.six {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid.three {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 620px) {
  .container {
    width: min(100% - 28px, 1120px);
  }

  .nav-links {
    gap: 14px;
  }

  .hero {
    padding-top: 42px;
  }

  .hero-grid {
    gap: 32px;
  }

  .grid.three,
  .grid.six {
    grid-template-columns: 1fr;
  }

  .slogan-grid {
    grid-template-columns: 1fr;
  }

  .countdown-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-card {
    min-height: 0;
    padding: 20px;
  }

  .creative-scene {
    gap: 16px;
  }

  .scene-panel {
    min-height: 86px;
  }

  .icon-box {
    margin-bottom: 8px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    padding: 22px 0;
  }
}
