@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&display=swap');

:root{
  --font-family-base: 'Outfit', 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: #005060;
  --color-secondary: #0b7b8d;
  --color-accent: #c87800;

  --color-bg: #f0f8f8;
  --color-bg-alt: #dfecee;
  --color-bg-card: #eaf4f4;

  --color-text: #001820;
  --color-text-muted: #305060;
  --color-text-on-primary: #ffffff;

  --color-border: #b7cfd1;
  --color-shadow: #9ab7bb;

  --radius-sm: 0.4rem;
  --radius: 0.75rem;
  --radius-lg: 1.2rem;

  --container-max-width: 1100px;
  --section-padding: 3.5rem;
  --space-xxs: 0.25rem;
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.25rem;
  --space-xl: 1.5rem;
  --space-2xl: 2rem;
  --space-3xl: 3rem;
  --space-4xl: 4rem;
  --grid-gap: 1.5rem;
}

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

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

body{
  font-family: var(--font-family-base);
  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{
  margin: 0 0 var(--space-md);
  line-height: var(--line-height-tight);
  color: var(--color-text);
  font-weight: var(--font-weight-bold);
}

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 var(--space-md);
  color: var(--color-text);
}

a{
  color: var(--color-primary);
  text-decoration-thickness: 0.1em;
  text-underline-offset: 0.16em;
  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 var(--space-md);
  padding-left: 1.25rem;
  color: var(--color-text);
}

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: 2rem 0;
}

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

.section:not(.hero):nth-child(even){
  background: var(--color-bg-alt);
}

.section-title{
  margin-bottom: 1.25rem;
  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%, #004052 100%);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.site-header .container{
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 1rem;
  justify-content: flex-start;
}

.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: transform 0.2s ease, opacity 0.2s ease, background-color 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;
  padding: 0.5rem 0;
  margin: 0;
  list-style: none;
}

.nav-item{
  margin: 0;
}

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

.nav-link:hover,
.nav-link:focus-visible{
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

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

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

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

.nav-dropdown-menu{
  display: none;
  position: static;
  min-width: 200px;
  z-index: 9999;
  list-style: none;
  margin: 0;
  padding: 0.5rem 0;
  background: var(--color-bg-card);
  border: none;
  border-radius: var(--radius);
  box-shadow: none;
  white-space: nowrap;
  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;
}

.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;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 55%, var(--color-accent) 100%);
  color: #1A1A1A;
}

.hero .container{
  width: 100%;
}

.hero-inner,
.hero-content{
  width: 100%;
}

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

.hero h1{
  font-size: var(--font-size-2xl);
  word-break: break-word;
  color: inherit;
}

.hero p{
  font-size: var(--font-size-base);
  color: inherit;
}

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

.hero-poster{
  position: relative;
  border-radius: var(--radius);
  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));
}

.card-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--grid-gap);
}

.card{
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--color-border);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover{
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.12);
  border-color: var(--color-primary);
}

.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-left: 1.25rem;
  padding-right: 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{
  display: inline-block;
  max-width: 100%;
  padding: 0.8rem 1.25rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, filter 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  word-break: break-word;
  white-space: normal;
}

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

.btn-primary{
  background: var(--color-primary);
  color: var(--color-text-on-primary);
  border-color: var(--color-primary);
}

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

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

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

.site-footer{
  background: var(--color-primary);
  padding: 2.5rem 0;
  color: var(--color-text-on-primary);
}

.site-footer p,
.site-footer a,
.site-footer li,
.site-footer h1,
.site-footer h2,
.site-footer h3,
.site-footer h4{
  color: #1A1A1A;
}

.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-section{
  padding: 2rem 0;
}

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

.faq-item[open]{
  border-color: var(--color-primary);
  box-shadow: 0 2px 12px var(--color-shadow);
}

.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;
  padding-right: 2rem;
  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, button[type="submit"]{
  font: inherit;
}

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

input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="tel"],
input[type="url"],
input[type="number"],
textarea,
select{
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: var(--color-bg-card);
  color: var(--color-text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

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

input:focus,
textarea:focus,
select:focus{
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(0, 80, 96, 0.16);
}

textarea{
  min-height: 8rem;
  resize: vertical;
}

button[type="submit"]{
  border: none;
  background: var(--color-primary);
  color: var(--color-text-on-primary);
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: var(--font-weight-medium);
  transition: filter 0.2s ease, transform 0.2s ease;
}

button[type="submit"]:hover{
  filter: brightness(0.9);
  transform: translateY(-1px);
}

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;
}

th{
  background: var(--color-bg-alt);
  color: var(--color-text);
  font-weight: var(--font-weight-bold);
}

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

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: flex-start;
  }

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

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

  .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: center;
  }

  .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);
  }

  .hero{
    min-height: 60vh;
  }

  .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;
  }
}

@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;
  }
}
