/* styles.css
 *
 * Simple Kickstarter‑inspired landing page for the Server Breach print and play
 * card game. The design uses modern CSS features such as flexbox and CSS
 * variables to keep things responsive and easy to tweak. Sections are
 * separated by alternating background colours to give the page rhythm and
 * hierarchy. Images referenced in this CSS are placeholders – replace them
 * with your own art when ready to publish.
 */

/* Root variables for colours and spacing */
:root {
  --color-primary: #0072b2;
  --color-primary-dark: #084298;
  --color-secondary: #009e73;
  --color-light: #f8f9fa;
  --color-dark: #000000;
  --color-highlight: #f0e442;
  --color-orange: #d55e00;
  --color-gold: #ffd700;
  --color-silver: #c0c0c0;
  --color-bronze: #cd7f32;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 2rem;
  --max-width: 1024px;
  font-family: "Saira", sans-serif;
  line-height: 1.8;
  color: var(--color-dark);
}

.saira-light {
  font-family: "Saira", sans-serif;
  font-optical-sizing: auto;
  font-weight: 100;
  font-style: normal;
  font-variation-settings: "wdth" 100;
}

.saira-regular {
  font-family: "Saira", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-variation-settings: "wdth" 100;
}

.saira-italic {
  font-family: "Saira", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: italic;
  font-variation-settings: "wdth" 100;
}

.saira-semibold {
  font-family: "Saira", sans-serif;
  font-optical-sizing: auto;
  font-weight: 600;
  font-style: normal;
  font-variation-settings: "wdth" 100;
}

.saira-bold {
  font-family: "Saira", sans-serif;
  font-optical-sizing: auto;
  font-weight: 700;
  font-style: normal;
  font-variation-settings: "wdth" 100;
}

/* Global resets */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--color-light);
}

.site-header {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1200;
  background-color: var(--color-secondary);
  color: var(--color-light);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  height: 60px;
  display: flex;
  align-items: center;
}

.nav-container {
  display: flex;
  align-items: center;
  padding: var(--spacing-sm) 0;
  gap: var(--spacing-md);
  width: 100%;
}

.brand {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-light);
  text-decoration: none;
}

.primary-nav {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  position: static;
  height: auto;
  width: auto;
  background: transparent;
  box-shadow: none;
  padding: 0;
  transform: none;
}

.nav-menu {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--spacing-md);
}

.nav-item > a {
  color: var(--color-light);
  text-decoration: none;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  display: inline-flex;
}

.nav-item > a:hover,
.nav-item > a:focus {
  color: var(--color-highlight);
}

.has-dropdown {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-dropdown {
  list-style: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background-color: var(--color-secondary);
  border-radius: 0 0 8px 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  padding: var(--spacing-sm) 0;
  display: none;
}

.nav-dropdown li a {
  display: block;
  padding: 10px 16px;
  color: var(--color-light);
  text-decoration: none;
  font-weight: 500;
}

.nav-dropdown li a:hover,
.nav-dropdown li a:focus {
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--color-highlight);
}

.has-dropdown.open .nav-dropdown,
.has-dropdown:focus-within .nav-dropdown {
  display: block;
}

.nav-toggle {
  display: none;
  background-color: transparent;
  border: none;
  color: var(--color-light);
  padding: 0;
  border-radius: 4px;
  cursor: pointer;
}

.nav-toggle img {
  width: 32px;
  height: 32px;
}

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 1100;
  display: none;
}

.nav-overlay.active {
  display: block;
  opacity: 1;
  pointer-events: all;
}

body.nav-open {
  overflow: hidden;
}

@media (min-width: 769px) {
  .has-dropdown:hover .nav-dropdown {
    display: block;
  }
}

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

/* Utility classes */
.container {
  width: 90%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0;
}

.p-20 {
  padding: 20px !important;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.2s ease;
  font-family: "Saira", sans-serif;
}

.btn-primary {
  background-color: var(--color-primary);
  color: #fff;
}

.btn-primary:hover {
  background-color: var(--color-primary-dark);
}

.btn-secondary {
  background-color: var(--color-secondary);
  color: #fff;
}

.btn-secondary:hover {
  background-color: #009e73;
}

/* Hero Section */
.hero {
  position: relative;
  background-color: var(--color-dark);
  color: #fff;
  overflow: hidden;
}

.hero-image img {
  width: 100%;
  height: auto;
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  max-width: 80%;
}

.runmode-hero {
  background-color: var(--color-dark);
}

.runmode-hero .container {
  display: flex;
  justify-content: center;
  overflow: hidden;
}

.runmode-hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 420px;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: var(--spacing-sm);
}

.hero .tagline {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-md);
  font-weight: 300;
}

.bg-yellow {
  background-color: var(--color-highlight) !important;
}

.bg-blue {
  background-color: var(--color-primary) !important;
}

.bg-green {
  background-color: var(--color-secondary) !important;
}

.bg-pink {
  background-color: #cc79a7 !important;
}

.bg-orange {
  background-color: var(--color-orange) !important;
}

/* Sections */
.section {
  padding: 0;
}

.section-alt {
  background-color: #eff2f7;
}

.feature-split {
  padding: 60px 0;
}

.testimonials {
  padding: 60px 0;
}

.testimonial-intro {
  margin-bottom: 30px !important;
}

.testimonial-footer {
  margin: 60px 0 !important;
}

.testimonial-grid {
  display: grid;
  gap: 75px 50px;
  margin-top: 75px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.testimonial-card {
  background-color: var(--color-light);
  border-radius: 12px;
  padding: 24px;
  padding-top: 40px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
  height: 100%;
  outline: 1px solid var(--color-primary);
  position: relative;
}

.testimonial-quote {
  font-size: 1rem;
  font-style: italic;
}

.section h2 {
  font-size: 2rem;
  margin-bottom: var(--spacing-md);
}

.section p {
  margin-bottom: var(--spacing-md);
}

/* About */
.about-layout {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-lg);
  align-items: flex-start;
  padding: 20px 0;
}

.about-content {
  flex: 2 1 400px;
}

.about-sidebar {
  flex: 1 1 280px;
  background-color: var(--color-light);
  border-radius: 0.5rem;
  padding: 20px 35px;
}

.about-sidebar h2 {
  margin-top: 0;
}

/* Features */
.feature-split .feature-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--spacing-lg);
}

.feature-row.reverse {
  flex-direction: row-reverse;
}

.feature-image,
.feature-content {
  flex: 1 1 320px;
}

.feature-content {
  text-align: left;
}

.feature-image img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* FOR MOBILE */
@media (max-width: 768px) {
  .feature-image {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-height: 200px;
  }
  .feature-image img {
    max-width: 50%;
  }
}

/* Details */
.details {
  text-align: left;
}

.details-list {
  list-style-type: none;
  padding-left: 0;
}

.details-list li {
  margin-bottom: var(--spacing-sm);
}

.credits {
  font-size: 0.85rem;
  color: var(--color-secondary);
}

/* Expansion */
.expansion {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-lg);
  align-items: flex-start;
}

.expansion-image {
  flex: 1 1 300px;
}

.expansion-content {
  flex: 2 1 400px;
}

.expansion-content ul {
  list-style-type: disc;
  margin-left: var(--spacing-md);
  margin-bottom: var(--spacing-md);
}

.expansion-content li {
  margin-bottom: var(--spacing-sm);
}

/* Resources */
.resources p {
  margin-bottom: var(--spacing-md);
}

.resource-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  padding-left: 0;
  text-align: center;
  justify-content: center;
  margin-top: 0;
}

.resource-list li {
  margin-bottom: var(--spacing-sm);
}

/* Footer */
.footer {
  background-color: var(--color-dark);
  color: #fff;
  text-align: center;
  padding: var(--spacing-md) 0;
  font-size: 0.85rem;
  .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
}

.text-center {
  text-align: center;
}

.footer .note {
  margin-top: var(--spacing-sm);
  color: #ced4da;
}

.boardlemur-games-logo {
  max-width: 100px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .nav-toggle {
    display: inline-flex;
  }
  .primary-nav {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: min(320px, 80vw);
    background-color: var(--color-secondary);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    box-shadow: 4px 0 15px rgba(0, 0, 0, 0.35);
    padding: 80px 24px 40px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: var(--spacing-md);
    overflow-y: auto;
  }
  .primary-nav.open {
    transform: translateX(0);
  }
  .nav-menu {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-md);
    width: 100%;
  }
  .has-dropdown {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }
  .nav-dropdown {
    position: static;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.08);
    border-radius: 6px;
    box-shadow: none;
    display: block;
  }
  .nav-overlay {
    display: block;
  }
  .hero h1 {
    font-size: 2.25rem;
  }
  .hero .tagline {
    font-size: 1rem;
  }
  .hero-image img {
    max-height: 320px;
    object-fit: cover;
  }
  .expansion {
    flex-direction: column;
  }
  .expansion-image,
  .expansion-content {
    flex: 1 1 100%;
  }
  .about-layout {
    flex-direction: column;
    gap: var(--spacing-md);
  }
  .about-sidebar {
    padding: 20px;
  }
  .feature-row,
  .feature-row.reverse {
    flex-direction: column;
    gap: var(--spacing-md);
  }
  .feature-image,
  .feature-content {
    flex: 1 1 100%;
    text-align: center;
  }
  .feature-content h3 {
    margin-top: var(--spacing-sm);
  }
  .features {
    flex-direction: column;
    align-items: center;
  }
  .resource-list {
    flex-direction: column;
    gap: var(--spacing-md);
  }
  .resource-list li {
    width: 100%;
  }
  .resource-list iframe {
    height: 220px;
  }
  .join-the-conversation .container {
    padding: 60px 0;
    flex-direction: column;
    gap: var(--spacing-lg);
    align-items: center;
    text-align: center;
  }
  .join-visual,
  .join-content {
    max-width: 100%;
    width: 100%;
    justify-content: center;
    text-align: center;
  }
  .join-content {
    text-align: center !important;
  }
  .feature-split {
    padding: 40px 0;
  }
}

.heading-1 {
  font-size: 2rem;
}

.heading-2 {
  font-size: 1.5rem;
}

.btn-tertiary {
  background-color: var(--color-highlight);
  color: black;

  &:hover {
    color: var(--color-orange) !important;
    text-decoration: none !important;
  }
}

/* MOBILE HEADINGS */
@media (max-width: 768px) {
  .heading-1 {
    font-size: 1.5rem !important;
  }
  .heading-2 {
    font-size: 1rem !important;
  }
}

.underline {
  text-decoration: underline;
}

.join-the-conversation {
  margin-top: 0;
}

.join-the-conversation .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  padding: 100px 0;
}

.join-content {
  text-align: left;
}

.join-the-conversation p {
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.join-the-conversation a {
  font-size: 1.2rem;
}

a.resource-button,
div.resource-button,
button.resource-button {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  width: 100%;
  font-size: 1.5rem;
  font-weight: bold;
  text-align: center;
  color: var(--color-light);
  text-decoration: none;
  line-height: 1.2;
  padding: 20px;
  border-radius: 4px;
  border: none;
  cursor: pointer;

  &:hover {
    color: var(--color-highlight);
    text-decoration: none;
    outline: 1px solid var(--color-dark) !important;
  }

  &:active {
    color: var(--color-highlight);
    text-decoration: none;
  }

  &:focus {
    color: var(--color-highlight);
    text-decoration: none;
  }

  &:visited {
    color: var(--color-highlight);
    text-decoration: none;
  }
}

.modal {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.3s ease;
  padding: 20px;
  z-index: 1300;
}

.modal.open {
  opacity: 1;
  pointer-events: all;
  visibility: visible;
}

.modal-dialog {
  background-color: #fff;
  border-radius: 12px;
  padding: 30px;
  max-width: 768px;
  width: 100%;
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
}

.modal-dialog h3 {
  margin-bottom: 12px;
  font-size: 1.75rem;
}

.modal-dialog p {
  margin-bottom: 16px;
}

.modal-body img,
.modal-zoom-image {
  width: 100%;
  border-radius: 8px;
  margin: 10px 0 20px;
  cursor: zoom-in;
}

.modal-image-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.2s ease;
  z-index: 1400;
}

.modal-image-overlay.open {
  opacity: 1;
  pointer-events: all;
  visibility: visible;
}

.modal-image-overlay img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 12px;
  cursor: zoom-out;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.modal-actions .btn {
  flex: 1 1 calc(50% - 12px);
  display: flex;
  justify-content: center;
  align-items: center;
  width: auto;
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: transparent;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
}

body.modal-open {
  overflow: hidden;
}

.bgg-container {
  display: flex;
  flex-direction: row;
  justify-content: start;
  align-items: center;
  gap: 0;
  margin-bottom: 30px;
}

.bgg-logo {
  max-width: 250px;
  max-height: 250px;
}

.bgg-content {
  text-align: left;
}

@media (max-width: 768px) {
  .resource-button {
    font-size: 1rem !important;
  }

  .bgg-logo {
    margin-bottom: 20px;
  }

  .bgg-container {
    flex-direction: column;
  }

  .bgg-container .bgg-content {
    text-align: center;
  }

  .contest-list li {
    font-size: 0.9rem !important;
  }

  .contest-list {
    padding: 0 20px 20px 20px !important;
  }

  .bgg-button {
    width: calc(100% - 40px) !important;
    margin: 0 20px !important;
  }
}

.bg-black-white {
  background-color: #ffffff !important;
  color: #000000 !important;

  &:hover {
    background-color: var(--color-highlight) !important;
    outline: 1px solid var(--color-dark) !important;
  }
}

.bg-black-white-alt {
  background-color: #ffffff !important;
  color: #000000 !important;

  &:hover {
    background-color: var(--color-highlight) !important;

    outline: 1px solid var(--color-dark) !important;
  }
}

.top-resource-button {
  width: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem !important;

  &:hover {
    color: var(--color-highlight);
    text-decoration: none;
    outline: 1px solid var(--color-dark) !important;
  }
}

@media (max-width: 768px) {
  .top-resource-button {
    font-size: 1rem !important;
  }
}

.bgg-button {
  text-align: center;

  &:hover {
    color: var(--color-highlight) !important;
    text-decoration: none;
    outline: 1px solid var(--color-dark) !important;
  }
}

@media (max-width: 768px) {
  .bgg-button {
    font-size: 1rem !important;
  }
}

.avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 4px solid var(--color-orange);
}

.features-list {
  list-style-type: circle;
  padding-left: 20px;
}

.contest-list {
  padding: 0 60px 20px 60px;
  list-style-type: none;
  text-align: left;
}

.contest-list li {
  background: var(--color-dark);
  padding: 8px;
  border-radius: 4px;
  margin-bottom: 20px;
  padding-left: 44px;
  position: relative;
  font-weight: bold;
  color: var(--color-light);
}

.contest-list li span:first-of-type {
  display: inline-block;
}

.contest-list li span:last-of-type {
  display: inline-block;
  color: var(--color-highlight);
}

.row-emoji {
  margin: 0 4px;
  font-size: 2rem;
  position: absolute;
  left: -14px;
  top: -4px;
  border-radius: 50%;
  width: 52px;
  height: 52px;
  text-align: center;
  background-color: var(--color-dark);
}

.silver {
  background-color: var(--color-silver) !important;
  color: var(--color-dark);
}

.contest-list li.silver,
.contest-list li.gold,
.contest-list li.bronze {
  color: var(--color-dark);
}

.contest-list li.silver span:last-of-type {
  display: inline-block;
  color: var(--color-primary-dark);
}

.contest-list li.silver .row-emoji {
  background-color: var(--color-silver);
}

.gold {
  background-color: var(--color-gold) !important;
  color: var(--color-dark);
}

.contest-list li.gold span:last-of-type {
  display: inline-block;
  color: var(--color-secondary);
}

.contest-list li.gold .row-emoji {
  background-color: var(--color-gold);
}

.bronze {
  background-color: var(--color-bronze) !important;
  color: var(--color-dark);
}

.contest-list li.bronze span:last-of-type {
  display: inline-block;
  color: var(--color-secondary);
}

.contest-list li.bronze .row-emoji {
  background-color: var(--color-bronze);
}

.paragraph {
  line-height: 1.5;
}

.dropdown-caret {
  font-size: 0.65rem;
  margin-top: 4.5px;
  margin-left: 6px;
}

.mb-0 {
  margin-bottom: 0 !important;
}

.play-now {
  padding-top: 20px;
}

.modal-confirm img {
  width: 20px;
  margin-left: 8px;
}

.li-reset-button {
  cursor: pointer;
}

.yellow-text {
  color: var(--color-highlight);
}

.bg-white {
  background-color: var(--color-white) !important;
}

.modal-cancel {
  background-color: var(--color-silver) !important;
}
