@import url('https://fonts.googleapis.com/css2?family=Syne:wght@600;800&family=Mulish:wght@400;500&display=swap');

:root {
  --font-family-heading: 'Syne', sans-serif;
  --font-family-body: 'Mulish', sans-serif;

  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-md: 1.125rem;
  --font-size-lg: 1.25rem;
  --font-size-xl: 1.5rem;
  --font-size-2xl: 2rem;
  --font-size-3xl: 2.75rem;
  --font-size-hero: 3.5rem;

  --line-height-tight: 1.2;
  --line-height-base: 1.6;

  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-bold: 700;

  --color-primary: #4A1A00;
  --color-secondary: #707070;
  --color-accent: #1EA7A8;

  --color-bg: #FFFFF0;
  --color-bg-alt: #F4EFE8;
  --color-bg-card: #F9F4EE;

  --color-text: #1A0800;
  --color-text-muted: #6A4030;
  --color-text-on-primary: #FFFFFF;

  --color-border: #D8C8BE;
  --color-shadow: #8A6A5C;

  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 18px;

  --container-max-width: 1140px;
  --section-padding: 4rem;
  --gap-sm: 0.5rem;
  --gap-md: 1rem;
  --gap-lg: 1.5rem;
  --gap-xl: 2rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family-body);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  color: var(--color-text);
  background: var(--color-bg);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

h1,
h2,
h3,
h4 {
  font-family: var(--font-family-heading);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  margin: 0 0 0.75rem;
  color: var(--color-text);
}

h1 {
  font-size: var(--font-size-3xl);
}

h2,
.section-title {
  font-size: var(--font-size-2xl);
}

h3 {
  font-size: var(--font-size-xl);
}

h4 {
  font-size: var(--font-size-lg);
}

p {
  margin: 0 0 1rem;
  color: var(--color-text);
}

a {
  color: var(--color-primary);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
  transition: color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

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

strong {
  font-weight: var(--font-weight-bold);
}

em {
  font-style: italic;
}

ul,
ol {
  margin: 0 0 1rem 1.25rem;
  padding: 0;
}

li {
  margin-bottom: 0.35rem;
}

.container {
  width: 100%;
  max-width: var(--container-max-width);
  padding: 0 1rem;
  margin: 0 auto;
  box-sizing: border-box;
}

.section,
.faq-section {
  padding: var(--section-padding) 0;
}

.section:nth-child(odd) {
  background: var(--color-bg);
}

.section:nth-child(even) {
  background: var(--color-bg-card);
  border-top: 2px solid var(--color-primary);
}

.section-title {
  margin-bottom: 1.5rem;
  word-break: break-word;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: 64px;
  overflow: visible;
  background: linear-gradient(135deg, var(--color-primary) 0%, #5A240B 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.site-header .container {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem 1rem;
  justify-content: space-between;
  overflow: visible;
}

.site-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  overflow: hidden;
  max-height: 52px;
  text-decoration: none;
}

.site-logo img {
  height: 44px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  display: block;
}

.nav-toggle-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}

.nav-toggle-label {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  margin-left: auto;
  padding: 0.4rem 0.6rem;
  z-index: 200;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.45);
  border: 1.5px solid rgba(255, 255, 255, 0.7);
}

.nav-toggle-label span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: #ffffff;
  border-radius: 2px;
  transition: 0.2s ease;
}

.site-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  z-index: 500;
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
  overflow: visible;
}

.nav-toggle-input:checked ~ .site-nav {
  display: block;
}

.nav-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0.5rem 0;
}

.nav-item {
  margin: 0;
}

.nav-dropdown {
  position: relative;
  overflow: visible;
}

.nav-link {
  display: block;
  font-size: var(--font-size-xs);
  color: var(--color-primary);
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--color-border);
  white-space: normal;
}

.site-header .nav-link,
.site-header a {
  color: #1A1A1A;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--color-accent);
  text-decoration: underline;
}

.nav-dropdown-toggle {
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}

.nav-dropdown-menu {
  display: none;
  position: static;
  list-style: none;
  margin: 0;
  padding: 0;
  background: var(--color-bg-card);
  border: none;
  border-radius: var(--radius);
  box-shadow: none;
  overflow: visible;
}

.nav-dropdown:hover > .nav-dropdown-menu,
.nav-dropdown:focus-within > .nav-dropdown-menu {
  display: block;
}

.nav-dropdown-menu .nav-link {
  display: block;
  padding: 0.5rem 1.25rem;
  width: 100%;
  border-bottom: none;
  color: var(--color-primary);
}

.nav-dropdown-menu .nav-link:hover,
.nav-dropdown-menu .nav-link:focus-visible {
  background: var(--color-bg-alt);
}

.hero {
  min-height: 50vh;
  padding: 2rem 1rem;
  background: linear-gradient(135deg, var(--color-primary) 0%, #6E2A0B 55%, var(--color-accent) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #1A1A1A;
}

.hero h1,
.hero h2,
.hero h3,
.hero p,
.hero a,
.hero li {
  color: inherit;
}

.hero-headline {
  text-align: center;
  margin-bottom: 1rem;
}

.hero-cta {
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
}

.hero-poster {
  position: relative;
  border-radius: var(--radius, 12px);
  overflow: hidden;
  max-height: 500px;
  margin: 1.5rem auto;
}

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

.hero-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  cursor: pointer;
}

.hero-play svg {
  width: 72px;
  height: 72px;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
}

.hero-info-card,
.hero-card,
.hero-text-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-text-card {
  color: var(--color-text);
}

.hero-text-card h1,
.hero-text-card h2,
.hero-text-card h3,
.hero-text-card p {
  color: var(--color-text);
}

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.card {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(112, 112, 112, 0.18);
  box-shadow: 0 12px 30px rgba(138, 106, 92, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(138, 106, 92, 0.18);
}

.card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  border-radius: var(--radius) var(--radius) 0 0;
}

.card-body {
  padding: 1rem 1.25rem;
}

.card > :not(img):not(.card-body) {
  padding: 1rem 1.25rem;
}

.card h3,
.card h4 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.card p {
  margin: 0;
  line-height: var(--line-height-base);
  color: var(--color-text-muted);
}

.btn,
button[type="submit"] {
  display: inline-block;
  max-width: 100%;
  word-break: break-word;
  white-space: normal;
  border: 0;
  border-radius: var(--radius-sm);
  padding: 0.85rem 1.3rem;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  text-decoration: none;
  cursor: pointer;
  transition: 0.2s ease;
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-text-on-primary);
  box-shadow: 0 10px 22px rgba(74, 26, 0, 0.2);
}

.btn-primary:hover {
  filter: brightness(0.9);
}

.btn-secondary {
  background: transparent;
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
}

.btn-secondary:hover {
  background: var(--color-bg-alt);
}

.site-footer {
  background: var(--color-bg-card);
  padding: 2.5rem 0;
  border-top: 1px solid var(--color-border);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  text-align: center;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.footer-inner .btn-primary {
  color: var(--color-text-on-primary) !important;
}

.footer-inner .btn-secondary {
  color: var(--color-primary) !important;
}

.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  background: var(--color-bg-card);
  overflow: hidden;
  transition: 0.2s ease;
}

.faq-item[open] {
  border-color: var(--color-primary);
  box-shadow: 0 2px 12px rgba(138, 106, 92, 0.18);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  cursor: pointer;
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-md);
  list-style: none;
  user-select: none;
  position: relative;
  color: var(--color-text);
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "+";
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--color-primary);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.faq-item[open] > .faq-question::after {
  content: "−";
}

.faq-answer {
  padding: 0 1.25rem 1.25rem;
  border-top: 1px solid var(--color-border);
}

.faq-answer p {
  margin: 0.75rem 0 0;
  color: var(--color-text-muted);
  line-height: var(--line-height-base);
}

input,
textarea,
select,
label {
  font: inherit;
}

label {
  display: inline-block;
  margin-bottom: 0.4rem;
  color: var(--color-text);
  font-weight: var(--font-weight-medium);
}

input,
textarea,
select {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-bg-card);
  color: var(--color-text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input::placeholder,
textarea::placeholder {
  color: var(--color-text-muted);
}

input:focus,
textarea:focus,
select:focus,
button[type="submit"]:focus,
.btn:focus-visible,
.nav-link:focus-visible,
.faq-question:focus-visible {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(74, 26, 0, 0.16);
}

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

table {
  width: 100%;
  border-collapse: collapse;
  color: var(--color-text);
}

th,
td {
  padding: 0.85rem 1rem;
  border: 1px solid var(--color-border);
  text-align: left;
}

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

tbody tr:nth-child(odd) {
  background: var(--color-bg);
}

tbody tr:nth-child(even) {
  background: var(--color-bg-alt);
}

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

.mt-1 {
  margin-top: 0.5rem;
}

.mt-2 {
  margin-top: 1rem;
}

.mt-3 {
  margin-top: 1.5rem;
}

.mt-4 {
  margin-top: 2rem;
}

.hidden {
  display: none !important;
}

@media (min-width: 768px) {
  .container {
    max-width: 960px;
    padding: 0 1.5rem;
    margin: 0 auto;
  }

  .site-header .container {
    justify-content: space-between;
  }

  .nav-toggle-label {
    display: none !important;
  }

  .site-nav {
    display: flex !important;
    align-items: center;
    position: static;
    background: transparent;
    border-top: none;
    box-shadow: none;
    margin-left: auto;
    justify-content: flex-end;
    width: auto;
  }

  .nav-list {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center;
    gap: 1.5rem;
    padding: 0;
    margin: 0;
    list-style: none;
    justify-content: flex-end;
  }

  .nav-link {
    display: inline-block;
    font-size: var(--font-size-sm);
    padding: 0.4rem 0.75rem;
    border-bottom: none;
    white-space: nowrap;
  }

  .nav-dropdown-menu {
    position: absolute !important;
    top: 100%;
    left: 0;
    z-index: 9999;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    border: 1px solid var(--color-border);
    min-width: 200px;
    padding: 0.5rem 0;
    border-radius: var(--radius);
    background: var(--color-bg-card);
  }

  .hero {
    min-height: 60vh;
    padding: 3rem 1.5rem;
  }

  .hero h1 {
    font-size: var(--font-size-3xl);
  }

  .card-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }

  .footer-inner {
    flex-direction: row;
    text-align: left;
    align-items: center;
  }
}

@media (min-width: 1024px) {
  .container {
    max-width: 1200px;
    padding: 0 2rem;
    margin: 0 auto;
  }

  .hero {
    min-height: 70vh;
  }

  .hero h1 {
    font-size: var(--font-size-hero);
  }

  .section,
  .faq-section {
    padding: 4rem 0;
  }
}
/* Phase 7 nav-link contrast fix (desktop only) */
@media (min-width: 768px) {
  .site-header .nav-list > li > .nav-link,
  .site-header .nav-list > li > .nav-dropdown-toggle {
    color: #F2F2F2 !important;
  }
}
