/* ---------- Fonts ---------- */
@font-face {
  font-family: 'DIN Round Pro';
  src: url('../fonts/dinroundpro_light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'DIN Round Pro';
  src: url('../fonts/dinroundpro.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'DIN Round Pro';
  src: url('../fonts/dinroundpro_medi.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'DIN Round Pro';
  src: url('../fonts/dinroundpro_bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'DIN Round Pro';
  src: url('../fonts/dinroundpro_black.otf') format('opentype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Variables ---------- */
:root {
  --color-bg: #ffffff;
  --color-text: #000000;
  --font-heading: 'Exo 2', sans-serif;
  --font-body: 'DIN Round Pro', 'Quicksand', sans-serif;
  --navbar-height: 80px;
  --radius-pill: 12px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text);
  font-weight: 300;
  line-height: 1.5;
}

section {
  scroll-margin-top: var(--navbar-height);
}

/* ---------- Shared button & input styles ---------- */
.btn {
  display: inline-block;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-text);
  padding: 0.75em 2em;
  font-family: var(--font-heading);
  font-weight: 100;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  background-color: transparent;
  color: var(--color-text);
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: background-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.btn-filled {
  background-color: var(--color-text);
  color: var(--color-bg);
}

.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.pill-input {
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-text);
  padding: 0.75em 1.5em;
  font-family: var(--font-body);
  font-size: 1rem;
  background-color: var(--color-bg);
  color: var(--color-text);
}

.pill-input:focus {
  outline: none;
}

/* ---------- Navbar ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--navbar-height);
  padding: 0 2rem;
  background-color: var(--color-bg);
  border-bottom: 1px solid transparent;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  display: block;
  height: 40px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.nav-links a:not(.cta-button) {
  font-family: var(--font-heading);
  color: var(--color-text);
  text-decoration: none;
  font-weight: 100;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  white-space: nowrap;
}

.nav-links .cta-button {
  padding: 0.6em 1.75em;
  font-size: 0.85rem;
  white-space: nowrap;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--color-text);
}

@media (max-width: 768px) {
  .logo img {
    height: 32px;
  }

  .hamburger {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: var(--navbar-height);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem 2rem;
    background-color: var(--color-bg);
    border-bottom: 1px solid var(--color-text);
    display: none;
    flex-wrap: nowrap;
  }

  .nav-links.open {
    display: flex;
  }
}

/* ---------- Hero ---------- */
.hero {
  width: 100%;
  aspect-ratio: 3838 / 1810;
  background-color: #000;
  overflow: hidden;
}

@media (max-width: 768px) {
  .hero {
    aspect-ratio: 1 / 1;
  }
}

.hero-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Text sections (About Us) ---------- */
.text-section {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  padding: 4rem 2rem;
}

.text-section p {
  font-size: 1.125rem;
  line-height: 1.7;
  text-align: justify;
  text-align-last: justify;
}

/* ---------- Collection ---------- */
.collection {
  padding: 4rem 2rem;
}

.collection h2 {
  font-family: var(--font-heading);
  font-weight: 100;
  font-size: 2rem;
  text-align: center;
  margin-bottom: 2.5rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--color-text);
  border-radius: 1.5rem;
  overflow: hidden;
  transition: transform 0.2s ease;
}

.card:hover {
  transform: scale(1.05);
  z-index: 2;
}

.card-photo {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background-color: #e5e5e5;
}

.card-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem;
  text-align: center;
}

.card-info h3 {
  font-family: var(--font-heading);
  font-weight: 100;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
}

.card-info p {
  font-size: 0.8rem;
}

.card-info .vote-toggle {
  margin-top: auto;
}

.vote-toggle {
  padding: 0.4em 1.25em;
  font-size: 0.7rem;
  border-radius: 8px;
}

.vote-toggle.voted {
  background-color: var(--color-text);
  color: var(--color-bg);
}

@media (max-width: 1024px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1024px) and (min-width: 601px) {
  .card[data-model-id="model-1"] {
    order: 1;
  }

  .card[data-model-id="model-2"] {
    order: 2;
  }

  .card[data-model-id="model-4"] {
    order: 3;
  }

  .card[data-model-id="model-5"] {
    order: 4;
  }

  .card[data-model-id="model-3"] {
    order: 5;
    grid-column: 1 / -1;
    transform-origin: top;
  }

  .card[data-model-id="model-3"] .card-photo {
    aspect-ratio: 4 / 5;
  }
}

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

/* ---------- Stay in Touch ---------- */
.stay-in-touch {
  display: flex;
  justify-content: center;
  padding: 4rem 2rem 6rem;
}

.stay-in-touch-content {
  max-width: 480px;
  width: 100%;
  text-align: center;
}

.stay-in-touch-content h2 {
  font-family: var(--font-heading);
  font-weight: 100;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
}

.stay-in-touch-content > p {
  font-size: 1.125rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.vote-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  margin-bottom: 2rem;
}

.vote-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--color-text);
  text-align: left;
  vertical-align: middle;
}

.vote-table td:first-child {
  width: 120px;
  padding-left: 0;
}

.vote-table td:nth-child(2) {
  text-align: center;
}

.vote-table td:last-child {
  width: 120px;
  padding-right: 0;
  text-align: center;
}

.vote-thumbnail {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-pill);
  overflow: hidden;
  background-color: #e5e5e5;
}

.vote-thumbnail img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#signup-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: stretch;
}

#signup-form .pill-input,
#signup-form .btn {
  height: 52px;
}

#signup-form .pill-input {
  width: 100%;
}

#signup-form .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 600px) {
  #signup-form {
    flex-direction: row;
    align-items: center;
  }

  #signup-form .pill-input {
    flex: 1;
  }
}

.signup-error {
  font-size: 0.9rem;
  margin-top: 0.75rem;
}

.confirmation-message {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  margin-top: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
}
