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

:root {
  /* Typography scale */
  --font-family: 'Barlow Condensed', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, 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;

  /* Brand colors (dark luxury with emerald & gold accents) */
  --color-bg: #000000;            /* dark body background */
  --color-bg-alt: #0A0A0A;          /* dark alt sections for stripes */
  --color-bg-card: #111111;         /* dark card background */
  --color-text: #E8E8E8;            /* light text on dark bg (WCAG) */
  --color-text-muted: #A0A0A0;      /* muted text on dark bg */
  --color-text-on-primary: #1A1A1A;  /* text on dark primary (light text) */
  --color-primary: #00BFFF;          /* diamond blue accent */
  --color-secondary: #1EAF8E;        /* emerald accent */
  --color-accent: #1EAF8E;           /* alias for gradient stops if needed */
  --color-border: #1A1A1A;
  --color-shadow: rgba(0,0,0,0.6);

  /* Layout / radius / spacing */
  --radius: 10px;
  --space-1: 0.75rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --radius-sm: 8px;
}

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

html, body {
  height: 100%;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  color: var(--color-text);
  background: var(--color-bg);
}

/* Utility reset for images/media */
img,
video,
iframe {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Base container & sections */
.container {
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  padding: 0 1rem;
  box-sizing: border-box;
}

/* Layout blocks / sections */
.section {
  padding: 5rem 0;
  background: var(--color-bg);
}

.section-title {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: var(--font-weight-bold);
  margin-bottom: 1rem;
  color: var(--color-text);
}

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

.card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 22px var(--color-shadow);
}

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

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

.btn,
.btn:visited {
  display: inline-block;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  transition: all 0.2s ease;
  color: #000;
  background: transparent;
}

.btn + .btn { margin-left: 0.5rem; }

.btn-primary {
  background: var(--color-primary);
  color: var(--color-text-on-primary);
  border-color: rgba(0,0,0,0);
}
.btn-primary:hover {
  filter: brightness(0.92);
}

.btn-secondary {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.04);
  color: #1A1A1A;
}

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

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  text-align: center;
}
.footer-inner .btn-primary,
.footer-inner .btn-secondary {
  color: var(--color-text-on-primary) !important;
}

/* FAQ Accordion (CSS-only) */
.faq-section {
  padding: 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: border-color 0.2s ease, box-shadow 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: var(--color-primary);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.faq-item[open] > .faq-question::after {
  content: "−";
  transform: rotate(0.0deg);
}
.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);
}

/* Hamburger nav (mobile) */
.site-header {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 100;
  background: transparent;
  color: var(--color-text);
  min-height: 64px;
  overflow: visible;
}
.site-header .container {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem 1rem;
  margin: 0 auto;
  box-sizing: border-box;
  /* NOTE: Do not apply flex here; container must not be flex per spec */
}
.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;
}

/* Mobile nav toggle input (hidden but accessible) */
.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;
}
.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);
}
.nav-list {
  display: flex;
  gap: 0.75rem;
  margin: 0;
  padding: 0.5rem 0;
  list-style: none;
}
.nav-link {
  font-size: var(--font-size-sm);
  color: var(--color-text);
  text-decoration: none;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  transition: color 0.2s ease, text-decoration 0.2s ease;
}
.nav-item { }

.nav-dropdown {
  position: relative;
}
.nav-dropdown-toggle {
  cursor: pointer;
  text-decoration: none;
  color: var(--color-text);
  padding: 0.5rem 0.75rem;
  display: inline-flex;
  align-items: center;
}
.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, 6px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
  white-space: nowrap;
}
.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 {
  background: var(--color-bg-alt);
}
@media (min-width: 768px) {
  /* Tablet/desktop layout: logo left, nav right */
  .site-header .container {
    justify-content: space-between;
  }
  .nav-toggle-label {
    display: none;
  }
  .site-nav {
    display: flex !important;
    align-items: center;
    position: static;
    background: transparent;
    border-top: none;
    box-shadow: none;
  }
  .nav-list {
    justify-content: flex-end;
    padding: 0;
  }
  .nav-link {
    font-size: var(--font-size-sm);
  }
  /* Tablet+ nav adjustments */
  .nav-dropdown-menu {
    position: absolute;
  }
  .nav-list { flex-direction: row !important; }
}
@media (min-width: 768px) {
  /* Tablet specifics for nav layout (tablets visible on header) */
  .container {
    max-width: 960px;
    padding: 0 1.5rem;
  }
  .site-header .container { justify-content: space-between; }
  .nav-list { justify-content: flex-end; }
  .hero h1 { text-wrap: balance; }
}
@media (min-width: 1024px) {
  .container {
    max-width: 1200px;
    padding: 0 2rem;
  }
  .hero {
    min-height: 70vh;
  }
  .section { padding: 5rem 0; }
  .hero-headline { text-align: center; margin-bottom: 2.5rem; }
  .hero-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 0.5rem; }
  .hero-card {
    background: rgba(255,255,255,0.07);
    color: rgba(255,255,255,0.92);
    border-radius: var(--radius);
    padding: 1.25rem;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.13);
  }
  .hero-card h3, .hero-card p { color: rgba(255,255,255,0.92); }
  .hero-card img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: calc(var(--radius) - 3px);
    margin-bottom: 0.9rem;
    display: block;
  }
}
@media (max-width: 767px) {
  /* Mobile adjustments for hero cards stack */
  .hero-cards { grid-template-columns: 1fr; }
  .nav-list { flex-direction: column; padding: 0.5rem 0; }
}
@media (min-width: 768px) {
  /* Tablet: navigation horizontal, hero typography tweak for tablet scale on header text size */
  .nav-link { font-size: var(--font-size-sm); }
}
@media (min-width: 1024px) {
  /* Desktop header nav adjustments and section density */
  .site-nav { margin-left: auto; justify-content: flex-end; }
  .nav-list { gap: 1.5rem; }
  .section { padding: 5rem 0; }
}

/* Hero section (brand-led, heavy, dark gradient) */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #FFFFFF; /* HERO TEXT RULE: explicit white for dark hero background */
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  min-height: 50vh;
  padding: 2rem 1rem;
  position: relative;
}
.hero-headline {
  text-align: center;
  margin-bottom: 2.5rem;
}
.hero h1 {
  margin: 0;
  font-size: var(--font-size-hero);
  line-height: var(--line-height-tight);
  font-weight: 800;
}
.hero p {
  font-size: var(--font-size-lg);
  margin: 0;
  color: rgba(255,255,255,0.92);
}
.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.hero-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 0.5rem;
}
.hero-card {
  background: rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.92);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.13);
}
.hero-card h3, .hero-card p { color: rgba(255,255,255,0.92); }
.hero-card img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: calc(var(--radius) - 3px);
  margin-bottom: 0.9rem;
  display: block;
}
@media (max-width: 767px) {
  .hero-cards { grid-template-columns: 1fr; }
}

/* Layout - header, navigation details for desktop/tablet vs mobile */
.site-header { position: sticky; top: 0; width: 100%; z-index: 1000; background: transparent; }
.site-header { min-height: 64px; overflow: visible; }

/* Inline color overrides for text on certain sections to comply with contrast rules */
.hero { color: #FFFFFF; }

/* Forms */
input,
textarea,
select {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  background: rgba(255,255,255,0.04);
  color: #1A1A1A;
  outline: none;
}
input:focus,
textarea:focus,
select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(0,191,255,0.15);
}
label {
  display: block;
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  margin-bottom: 0.25rem;
}
button[type="submit"] {
  cursor: pointer;
}
.form-row { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }

/* Tables - no hard-coded light backgrounds on rows; use vars */
table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
}
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); }
tr:nth-child(odd)  { background: var(--color-bg); }

/* Text utilities */
.text-center { text-align: center; }
.hidden { display: none; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }