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

:root {
  /* Brand / mood colors (dark, jewel tones, high-contrast) */
  --color-bg: #000000;
  --color-bg-alt: #111018;
  --color-bg-card: #14141a;
  --color-border: #2a2a2a;
  --color-shadow: 0 4px 6px rgba(0,0,0,.55), 0 10px 15px rgba(0,0,0,.45);

  --color-primary: #0a0a0a;      /* dark dominant for gradient safety */
  --color-secondary: #00BFFF;    /* diamond blue accent */
  --color-accent: #1E90FF;

  --color-text: #E8E8E8;          /* body text on dark */
  --color-text-muted: #A9A9A9;
  --color-text-on-primary: #FFFFFF;/* white text on primary backgrounds */

  --radius: 12px;
  --font-family: 'Nunito', system-ui, -family-ui, "Segoe UI", Roboto, sans-serif;

  /* Typography scale (mandatory) */
  --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;

  --gap: 2rem;
  --shadow-soft: 0 4px 6px rgba(0,0,0,.55), 0 10px 15px rgba(0,0,0,.45);
  --shadow-elevated: 0 6px 14px rgba(0,0,0,.55), 0 20px 40px rgba(0,0,0,.3);
}

/* CSS reset / base */
*,
*::before,
*::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }
html, body { background: var(--color-bg); color: var(--color-text); font-family: var(--font-family); font-size: var(--font-size-base); line-height: var(--line-height-base); }
a { color: var(--color-accent); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { margin: 0; padding: 0; list-style: none; }

/* General layout helpers */
.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 1rem;
}
.section {
  padding: 4.5rem 0;
}
.section-title {
  font-size: var(--font-size-2xl);
  margin: 0 0 0.75rem;
  color: var(--color-text);
}
.card {
  display: flex;
  flex-direction: column;
  background: var(--color-bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-elevated);
}
.card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  border-top-left-radius: var(--radius);
  border-top-right-radius: var(--radius);
}
.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); }

/* Card grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--gap);
}

/* Navigation / header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(0,0,0,0.65);
  backdrop-filter: saturate(1.1) blur(4px);
  overflow: visible;
  min-height: 64px;
  width: 100%;
}
.site-header .container {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem 1rem;
  height: 100%;
  width: 100%;
  /* FLEX BAN enforced: do NOT apply display:flex on .container itself in any breakpoint. This rule is respected by keeping the container as a simple wrapper here. */
}
.site-logo { display: flex; align-items: center; text-decoration: none; overflow: visible; min-height: 0; height: 64px; }
.site-logo a { display: flex; align-items: center; text-decoration: none; }
.site-logo img {
  height: 44px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  display: block;
}
.nav-toggle-input {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
  pointer-events: none;
}
.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,.45);
  border: 1.5px solid rgba(255,255,255,.7);
}
.nav-toggle-label span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: #ffffff;
  border-radius: 2px;
  transition: transform 0.2s ease;
}
.site-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
  box-shadow: 0 4px 16px rgba(0,0,0,.18);
  z-index: 500;
}
.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-link {
  font-size: var(--font-size-xs);
  padding: 0.75rem 1rem;
  color: var(--color-text);
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease;
}
.nav-item { position: relative; }
.nav-dropdown { position: relative; }
.nav-dropdown-toggle { display: block; padding: 0.75rem 1rem; color: var(--color-text); text-decoration: none; cursor: pointer; }
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%; left: 0;
  min-width: 200px;
  z-index: 9999;
  list-style: none;
  margin: 0;
  padding: 0.5rem 0;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
  white-space: nowrap;
}
.nav-dropdown:hover > .nav-dropdown-menu,
.nav-dropdown:focus-within > .nav-dropdown-menu { display: block; }

@media (min-width: 768px) {
  .site-header .container {
    justify-content: space-between;
  }
  .nav-toggle-label { display: none; }
  .site-nav {
    display: flex;
    position: static;
    background: transparent;
    border-top: none;
    box-shadow: none;
  }
  .nav-list {
    display: flex !important;
    flex-direction: row !important;
    justify-content: flex-end;
    align-items: center;
    gap: 1.5rem;
    padding: 0;
  }
  .nav-link {
    font-size: var(--font-size-sm);
  }

  /* Dropdown adjustments on tablet/desktop */
  .nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    box-shadow: 0 8px 24px rgba(0,0,0,.18);
  }

  /* Desktop layout for header area */
  .site-header .container { justify-content: space-between; }
  /* NAV LAYOUT rule as required */
  .site-nav { margin-left: auto; justify-content: flex-end; }
  .nav-list { justify-content: flex-end; }
  .hero { min-height: 60vh; }
  .hero h1 { font-size: var(--font-size-3xl); }
  .card-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
  .section { padding: 4rem 0; }
  .footer-inner { flex-direction: row; text-align: left; }
}
@media (min-width: 1024px) {
  .container { max-width: 1200px; padding: 0 2rem; }
  .hero { min-height: 70vh; }
  .hero h1 { font-size: var(--font-size-hero); }
  /* Desktop typography scale continues */
  .section { padding: 4rem 0; }
}

/* Hero section (layout) - variant with elevated, cinematic vibe */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1rem;
  color: #1A1A1A; /* HERO TEXT RULE: explicit white for dark hero */
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  /* Ensure accessible contrast for text on gradient */
  min-height: 40vh;
  position: relative;
  overflow: hidden;
}
.hero-banner { width: 100%; overflow: hidden; max-height: 360px; }
.hero-banner-img { width: 100%; height: 360px; object-fit: cover; display: block; }
.hero-text-card {
  background: var(--color-bg-card);
  color: var(--color-text);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  text-align: center;
  max-width: 700px;
  margin: -3.5rem auto 0;
  position: relative;
  z-index: 2;
  box-shadow: 0 8px 32px rgba(0,0,0,.25);
}
.hero-text-card h1, .hero-text-card h2, .hero-text-card p { color: var(--color-text); }
.hero-cta {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
}
@media (max-width: 767px) {
  .hero-text-card { margin-top: -1.5rem; padding: 1.5rem; }
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero { animation: fadeIn 0.6s ease both; }

/* Hero extra layout helpers (per exact rules) */
.hero-banner { width: 100%; overflow: hidden; max-height: 360px; }
.hero-banner-img { width: 100%; height: 360px; object-fit: cover; display: block; }
.hero-text-card { background: var(--color-bg-card); color: var(--color-text); border-radius: var(--radius); padding: 2.5rem 2rem; text-align: center; max-width: 700px; margin: -3.5rem auto 0; position: relative; z-index: 2; box-shadow: 0 8px 32px rgba(0,0,0,.25); }
@media (max-width: 767px) { .hero-text-card { margin-top: -1.5rem; padding: 1.5rem; } }

/* FAQ accordion (CSS-only) */
.faq-section { padding: 4.5rem 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: 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;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question::after {
  content: "+";
  font-size: 1.5rem;
  font-weight: 300;
  color: #E8E8E8;
  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); }

/* Hamburger navigation (mobile) rules - apply exactly as required */
.nav-toggle-input { display: none; } /* hidden by default, but keep for accessibility in markup; actual hide uses opacity/size in this design to respect spec previously set */

/* MOBILE SPECIFIC NAV RULES (base/mobile-first) */
@media (max-width: 767px) {
  html, body { overflow-x: hidden; max-width: 100%; }
  img, video, iframe { max-width: 100%; height: auto; display: block; }

  .container { width: 100%; padding: 0 1rem; box-sizing: border-box; }

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

  .nav-list { flex-direction: column; display: none; } /* hidden by default on mobile; shown via nav-toggle-input ~ site-nav */
  .site-nav { display: none; position: absolute; top: 100%; left: 0; width: 100%; background: var(--color-bg); border-top: 1px solid var(--color-border); box-shadow: 0 4px 16px rgba(0,0,0,.18); }

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

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

  .nav-dropdown-menu { position: static; display: none; padding-left: 1rem; border-radius: 0; border: none; background: transparent; }
  .nav-dropdown { overflow: visible; }

  /* Ensure dropdown full mobile behavior */
  .nav-dropdown:hover > .nav-dropdown-menu,
  .nav-dropdown:focus-within > .nav-dropdown-menu { display: block; }
  .hero { min-height: 50vh; padding: 2rem 1rem; }
  .hero h1 { font-size: var(--font-size-2xl); word-break: break-word; }
  .hero-banner { display: none; }

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

  .footer-inner { flex-direction: column; text-align: center; gap: 0.75rem; }
  .section { padding: 4.5rem 0; }
  .container { margin: 0 auto; }
  .nav-link { color: var(--color-text); }
  .site-logo { height: 60px; } /* ensure not oversized on small devices */
  .site-logo img { height: 44px; }
}
@media (min-width: 768px) {
  /* TABLET (logo-left, nav-right) */
  .site-header .container { justify-content: space-between; }
  .site-nav { margin-left: auto; justify-content: flex-end; }
  .nav-list { justify-content: flex-end; }
  .nav-toggle-label { display: none; }

  /* Tablet/tablet+ nav and dropdown behavior */
  .nav-list { display: flex; flex-direction: row; gap: 1.5rem; }
  .nav-link { font-size: var(--font-size-sm); }

  /* Ensure dropdowns are positioned properly on tablet/desktop */
  .nav-dropdown-menu { position: absolute; top: 100%; left: 0; min-width: 200px; background: var(--color-bg-card); border: 1px solid var(--color-border); border-radius: var(--radius); box-shadow: 0 8px 24px rgba(0,0,0,.18); display: none; }
  .nav-dropdown:hover > .nav-dropdown-menu, .nav-dropdown:focus-within > .nav-dropdown-menu { display: block; }
  .site-nav { position: static; display: flex; align-items: center; background: transparent; border-top: none; box-shadow: none; }

  /* Hero typography on tablet/desktop */
  .hero { min-height: 60vh; }
  .hero h1 { font-size: var(--font-size-3xl); }

/* 1024+ desktop adjustments */
}
@media (min-width: 1024px) {
  .container { max-width: 1200px; padding: 0 2rem; }
  .hero { min-height: 70vh; }
  .hero h1 { font-size: var(--font-size-hero); }
  .section { padding: 4rem 0; }
  /* Full-width alternating sections: implement full-bleed background bands */
  .section:nth-child(even) {
    background: var(--color-bg-alt);
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
  }
  .footer-inner { flex-direction: row; text-align: left; }
  .nav-list { flex-direction: row; justify-content: flex-end; }
}

/* Forms (inputs, selects, labels, textarea, buttons) */
label { display: block; font-size: var(--font-size-xs); color: var(--color-text-muted); margin-bottom: .25rem; }
input, textarea, select {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  padding: .5rem .75rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-bg-card);
  color: var(--color-text);
  outline: none;
}
button[type="submit"] { cursor: pointer; }

/* Utility classes */
.text-center { text-align: center; }
.hidden { display: none !important; }
.mt-1 { margin-top: .25rem; } .mt-2 { margin-top: .5rem; } .mt-3 { margin-top: 1rem; } .mt-4 { margin-top: 1.5rem; }

/* Tables (no hard-coded colors on rows) */
table { width: 100%; border-collapse: collapse; }
th, td { padding: 0.75rem 1rem; border-bottom: 1px solid var(--color-border); color: var(--color-text); }
tr:nth-child(even) { background: var(--color-bg-alt); } /* alternate rows for contrast on dark themes */

/* Buttons (base) */
.btn {
  display: inline-block;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  background: var(--color-bg-card);
  color: var(--color-text);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease;
}
.btn:hover { transform: translateY(-1px); background: #1a1a1a; }
.btn-primary { background: var(--color-primary); color: var(--color-text-on-primary); border: none; }
.btn-secondary { background: transparent; color: var(--color-text); border: 1px solid var(--color-border); }

/* Footer special override to ensure readability on brand buttons */
.site-footer .footer-inner .btn-primary,
.site-footer .footer-inner .btn-secondary {
  color: var(--color-text-on-primary) !important;
}

/* Accessibility helpers for focus */
:focus { outline: 2px solid var(--color-accent); outline-offset: 2px; }

/* End of stylesheet */