/* ── Variables ──────────────────────────────────────── */
:root {
  --gold:       #8E744A;
  --gold-light: #9e8540;
  --charcoal:   #3a3a3a;
  --white:      #ffffff;
  --text:       #333333;
  --border:     #d0c9b0;
}

/* ── Reset ──────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', Arial, sans-serif;
  color: var(--text);
  background: var(--white);
}

/* ── Top Header ─────────────────────────────────────── */
.site-header {
  background-color: var(--charcoal);
  padding: 10px 24px;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

/* Logo */
.logo {
  text-decoration: none;
  font-style: italic;
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1;
}

.logo-trans {
  color: var(--gold);
}

.logo-tec {
  color: var(--white);
}

.logo sup {
  font-size: 0.4em;
  vertical-align: super;
  font-style: normal;
}

/* App Store / Google Play badges */
.header-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.app-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border-radius: 6px;
  padding: 7px 14px 7px 10px;
  text-decoration: none;
  color: #111;
  min-width: 140px;
  border: 1px solid #ccc;
  transition: background 0.2s;
}

.app-badge:hover {
  background: #f0f0f0;
}

.badge-icon {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.badge-icon svg {
  width: 22px;
  height: 22px;
}

.app-badge--apple .badge-icon svg {
  color: #111;
}

.badge-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.badge-sub {
  font-size: 0.6rem;
  letter-spacing: 0.01em;
  color: #333;
}

.badge-main {
  font-size: 0.95rem;
  font-weight: 700;
  color: #111;
  white-space: nowrap;
}

/* ── Primary Navigation ─────────────────────────────── */
.primary-nav {
  background-color: var(--gold);
  padding: 0 24px;
}

.primary-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  flex-wrap: wrap;
}

.nav-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.nav-links li a {
  color: var(--white);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  padding: 16px 18px;
  text-transform: uppercase;
  transition: background 0.2s;
}

.nav-links li a:hover {
  background: rgba(0, 0, 0, 0.15);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
}

.btn-nav-action {
  display: inline-block;
  background: #2C2C2C;
  color: var(--white);
  border-radius: 8px;
  padding: 7px 18px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background 0.2s;
}

.btn-nav-action:hover {
  background: rgba(0, 0, 0, 0.55);
}

/* ── Hero / Search ──────────────────────────────────── */
.hero {
  position: relative;
  background-color: var(--charcoal);
  background-image: url('../images/header-background.png');
  background-size: cover;
  background-position: center;
  min-height: 220px;
  display: flex;
  align-items: flex-end;
}

.hero-overlay {
  width: 100%;
  background: rgba(30, 25, 15, 0.62);
  padding: 36px 24px 32px;
}

.hero-overlay > * {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.hero-title {
  font-family: 'Anton', sans-serif;
  color: var(--white);
  font-size: 52px;
  font-weight: 400;
  text-transform: uppercase;
  max-width: 1200px;
  margin-left: auto;
  line-height: 1.2;
  margin-right: auto;
  letter-spacing: 9%;
}

.hero-title.small-title{
  font-size: 32px;
}

.hero-title.small-title br{
  display: none;
}

.hero-title sup {
  font-size: 0.6em;
  vertical-align: top;
}

.hero-subtitle{
  color: #8E744A;
  font-size: 20px;
  margin-top: 10px;
}

/* Search form */
.search-form {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.search-form-wrapper{
  background-color: #D9D9D9;
  padding: 15px;
  margin-top: 30px;
}

.hidden{
  display: none;
}

.select-wrapper {
  flex: 1 1 160px;
  position: relative;
}

.select-wrapper::after {
  content: '';
  position: absolute;
  right: 21px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  width: 21px;
  height: 21px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333333' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
}

.select-wrapper select {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  border: none;
  background: transparent;
  padding: 18px 40px 18px 18px;
  text-transform: uppercase;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  outline: none;
  border-radius: 8px;
  background-color: white;
}

.btn-go {
  background: var(--gold);
  color: var(--white);
  border: none;
  padding: 16px 36px;
  font-size: 1.1rem;
  font-weight: 900;
  cursor: pointer;
  text-transform: uppercase;
  transition: background 0.2s;
  flex-shrink: 0;
  border-radius: 8px;
}

.btn-go:hover {
  background: var(--gold-light);
}

/* ── Results Section ────────────────────────────────── */
.results-section {
  padding: 32px 24px;
}

.results-wrapper{
  max-width: 1200px;
  margin: 0 auto;
}

.results-description {
  font-size: 0.85rem;
  color: var(--text);
  margin-bottom: 24px;
  line-height: 1.6;
}

.results-description a {
  color: var(--text);
  text-decoration: underline;
}

/* Table */
.table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  min-width: 560px;
}

thead tr {
  background-color: var(--gold);
}

thead th {
  color: var(--white);
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 12px 16px;
  text-align: center;
  border-right: 2px solid white;
}

thead th:last-child {
  border-right: none;
}

tbody tr {
  border-bottom: 1px solid black;
  background-color: #F5F5F5;
}

tbody tr:last-child {
  border-bottom: none;
}

tbody td {
  padding: 16px;
  text-align: center;
  color: var(--text);
  font-weight: 600;
  border-right: 2px solid white;
}

tbody td:last-child {
  border-right: none;
}

/* ── Hamburger toggle ───────────────────────────────── */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px 0;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

/* ── Mobile Responsive ──────────────────────────────── */
@media (max-width: 1000px) {
  .primary-nav {
    padding: 0 24px;
  }

  .primary-nav-inner {
    flex-wrap: wrap;
    position: relative;
  }

  .nav-toggle {
    display: flex;
    margin-left: auto;
  }

  .nav-links,
  .nav-actions {
    display: none;
    width: 100%;
  }

  .primary-nav.is-open .nav-links,
  .primary-nav.is-open .nav-actions {
    display: flex;
  }

  .primary-nav.is-open .nav-links {
    flex-direction: column;
  }

  .primary-nav.is-open .nav-actions {
    flex-direction: column;
    padding: 10px 0 14px;
    gap: 8px;
  }

  .primary-nav.is-open .btn-nav-action {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .site-header {
    padding: 10px 16px;
  }

  .logo {
    font-size: 1.6rem;
  }

  .app-badge {
    min-width: 120px;
    padding: 6px 10px 6px 8px;
  }

  .badge-main {
    font-size: 0.82rem;
  }

  .nav-links li a {
    padding: 12px 14px;
    font-size: 13px;
  }

  .hero-overlay {
    padding: 24px 16px;
  }

  .search-form {
    flex-direction: column;
    max-width: 100%;
  }

  .select-wrapper {
    flex: 1 1 auto;
    border-right: none;
  }

  .btn-go {
    width: 100%;
    padding: 16px;
  }

  .results-section {
    padding: 24px 16px 40px;
  }
}

@media (max-width: 540px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .header-badges {
    width: 100%;
  }

  .app-badge {
    flex: 1;
    justify-content: center;
  }

  .nav-links {
    flex-direction: column;
    width: 100%;
  }

  .nav-actions {
    flex-direction: column;
    width: 100%;
  }

  .btn-nav-action {
    width: 100%;
    text-align: center;
    padding: 10px 18px;
  }
}
