@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&display=swap');

:root {
  /* Typography */
  --font-family-body: 'Lato', system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Noto Sans", sans-serif;
  --font-family-headings: 'Playfair Display', 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;

  /* Radius / Elevation */
  --radius: 12px;
  --shadow: 0 4px 6px rgba(0,0,0,0.25), 0 10px 15px rgba(0,0,0,0.35);

  /* Color palette (Volcanic Dark, EK333) */
  --color-bg:       #120808;  /* DARK BG */
  --color-bg-alt:   #1b0f0f;
  --color-bg-card:  #1c0f0f;
  --color-primary:  #FF1A1A;  /* fierce red */
  --color-secondary:#FF6A00;  /* blazing orange (accent) */
  --color-accent:   #FF6A00;

  --color-text:          #F8EDED; /* near-white on dark */
  --color-text-muted:    #A0A0A0;
  --color-text-on-primary:#111111; /* dark text on light primary (primary is light) */

  --color-border:  #2a2a2a;
  --color-shadow:  rgba(0,0,0,0.6);

  /* Layout / spacing tokens */
  --gap: 1.25rem;
  --section-padding: 2rem;
  --section-padding-lg: 4rem;
}

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

html, body {
  height: 100%;
}

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

body {
  margin: 0;
  color: var(--color-text);
  background: var(--color-bg);
  font-family: var(--font-family-body);
  line-height: var(--line-height-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  color: #fff;
  margin: 0 0 0.5rem;
}

h1 {
  font-family: var(--font-family-headings);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  font-size: var(--font-size-3xl);
}
h2 {
  font-family: var(--font-family-headings);
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-2xl);
}
h3 {
  font-family: var(--font-family-headings);
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-xl);
}
h4 {
  font-family: var(--font-family-headings);
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-lg);
}

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

/* Layout wrappers */
.container {
  width: 100%;
  margin: 0 auto; /* mandatory: centered at every breakpoint */
  padding: 0 1rem;
  max-width: 960px; /* mobile baseline; overridden at larger breakpoints */
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  overflow: visible;
  background: rgba(0,0,0,0.0);
  /* min-height is defined by content, not fixed height */
  min-height: 64px;
  width: 100%;
  display: block;
  backdrop-filter: saturate(1.0) blur(0px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.site-header .container {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem 1rem; /* mobile padding only; more on tablet/desktop via media queries */
  width: 100%;
}

.site-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  overflow: hidden;
  max-height: 52px;
}
.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;
}

/* Hamburger nav (mobile) */
.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; /* mandatory: white bars */
  border-radius: 2px;
  transition: 0.2s ease;
}

/* Mobile navigation panel (hidden by default) */
.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;
  padding: 0.5rem 0;
  margin: 0;
  list-style: none;
  flex-direction: column;
}
.nav-list > .nav-item { width: 100%; }

/* Reveal mobile nav when checkbox checked (sibling selector) */
.nav-toggle-input:checked ~ .site-nav {
  display: block;
}
.site-nav .nav-link {
  display: block;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--color-border);
  font-size: var(--font-size-base);
  color: var(--color-text);
}
.site-nav .nav-item:last-child .nav-link {
  border-bottom: none;
}

/* Desktop/tablet nav rules: shown horizontally, right-aligned on tablet+ */
@media (min-width: 768px) {
  /* NAV LAYOUT: logo-left nav-right */
  .site-header .container {
    justify-content: space-between;
  }
  .nav-toggle-label { display: none !important; } /* hide hamburger on tablet/desktop */

  .site-nav {
    display: flex !important;
    position: static;
    background: transparent;
    border-top: none;
    box-shadow: none;
  }

  .nav-list {
    display: flex !important;
    flex-direction: row !important; /* must be row on tablet/desktop */
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
    gap: 1.5rem;
    padding: 0;
    margin: 0;
  }

  .nav-link {
    font-size: var(--font-size-sm);
    padding: 0.4rem 0.75rem;
    border-bottom: none;
    color: var(--color-text);
    transition: color 0.2s ease, text-decoration 0.2s ease;
  }

  .nav-link:hover {
    color: var(--color-secondary);
    text-decoration: underline;
  }

  /* Tablet layout adjustments for header alignment */
  .container { margin: 0 auto; } /* ensure centering at tablet/desktop as well */

  /* Dropdowns on desktop/tablet */
  .nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    z-index: 9999;
    display: none;
    list-style: none;
    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,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);
  }

  /* Dropdown subtle adjustments for tablet/desktop */
  .nav-dropdown { position: relative; }
  .nav-dropdown-toggle { cursor: pointer; user-select: none; white-space: nowrap; }

  /* On desktop/tablet, keep dropdowns visible on hover/focus-within */
}

/* Extra large desktop tweaks (1280px+) */
@media (min-width: 1280px) {
  .container {
    max-width: 1200px;
    padding: 0 2rem;
  }
  .hero { min-height: 70vh; }

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

  .section { padding: var(--section-padding-lg) 0; }
  .section-title { font-size: var(--font-size-2xl); }

  /* Maintain horizontal nav at large widths */
  .nav-list { justify-content: flex-end; }
}

/* HERO (variant: EK333) — extra layout rules per user spec */
.hero {
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(255,26,26,0.95) 0%, rgba(18,8,8,0.95) 100%), #120808;
  color: #fff;
  padding: 2rem 0;
}

.hero-inner {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 3rem;
}
.hero-text { flex: 1 1 55%; }
.hero-media { flex: 1 1 40%; }

.hero-img {
  width: 100%;
  border-radius: var(--radius, 12px);
  object-fit: cover;
  max-height: 460px;
  display: block;
}

@media (max-width: 767px) {
  .hero-inner { flex-direction: column; }
  .hero-media { width: 100%; }
}

/* Additional hero text styling for EK333 */
.hero h1 {
  font-family: var(--font-family-headings);
  font-weight: var(--font-weight-bold);
  color: #fff;
  font-size: var(--font-size-hero);
  line-height: 1.05;
  text-shadow: 0 2px 10px rgba(0,0,0,0.6);
  margin: 0 0 1rem;
}
.hero p {
  color: #F9F9F9;
  opacity: 0.95;
  margin-bottom: 1rem;
}
.hero .btn {
  font-family: var(--font-family-body);
  font-size: var(--font-size-sm);
  padding: 0.6rem 1rem;
  border-radius: 8px;
  transition: filter 0.2s ease;
}
.hero .btn-primary {
  background: var(--color-primary);
  color: var(--color-text-on-primary);
  border: none;
}
.hero .btn-primary:hover { filter: brightness(0.9); }

/* Cards */
.card {
  display: flex;
  flex-direction: column; /* MANDATORY */
  border-radius: var(--radius);
  background: var(--color-bg-card);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.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-content {
  padding: 1rem;
}
.card h3 {
  font-size: var(--font-size-lg);
  margin: 0 0 0.25rem;
}
.card p {
  color: var(--color-text-muted);
  margin: 0;
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--gap);
}

/* Forms */
input,
textarea,
select {
  font-family: var(--font-family-body);
  background: #1a0f0f;
  color: var(--color-text);
  border: 1px solid var(--color-border);
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
}
label { color: var(--color-text); display: block; margin-bottom: 0.25rem; }
button[type="submit"],
.btn {
  display: inline-block;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-family: var(--font-family-body);
  font-size: var(--font-size-sm);
  transition: transform 0.2s ease, filter 0.2s ease;
}
.btn { background: transparent; color: var(--color-text); border: 1px solid var(--color-border); }
.btn:hover { transform: translateY(-1px); filter: brightness(1.05); }
.btn-primary {
  background: var(--color-primary);
  color: var(--color-text-on-primary);
  border: none;
  box-shadow: 0 4px 8px rgba(0,0,0,0.4);
}
.btn-primary:hover { filter: brightness(0.9); }

/* Tables */
table { width: 100%; border-collapse: collapse; }
th, td { padding: 0.5rem 0.75rem; border-bottom: 1px solid var(--color-border); text-align: left; }
th { font-weight: 700; }

/* FAQ Accordion (CSS-only) */
.faq-section {
  padding: var(--section-padding);
}
.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius, 8px);
  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: 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);
}

/* DROPDOWN NAV (desktop/mobile interplay) */
.nav-dropdown { position: relative; }
.nav-dropdown-toggle { cursor: pointer; user-select: none; white-space: nowrap; }
.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; }
.dropdown-menu .nav-link { display: block; }

/* Mobile adjustments for dropdown inside vertical nav */
@media (max-width: 767px) {
  .nav-dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    padding-left: 1rem;
  }
  .nav-dropdown:focus-within > .nav-dropdown-menu { display: block; }
  .nav-list { flex-direction: column !important; }
}
.arrow { transition: transform 0.2s ease; }

/* Hero specific: base typography tweaks within hero text blocks on dark bg */
.hero p { color: #F9F9F9; }

/* Utility helpers */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.hidden { display: none !important; }

/* Responsive adjustments (375px, 768px, 1280px) implemented via media queries above; ensure container margins remain centered by breakpoint */
@media (min-width: 768px) {
  /* Tablet adjustments: keep content centered, nav visible, horizontal layout */
  .container { max-width: 860px; padding: 0 1.5rem; margin: 0 auto; }
  .hero { padding: 2rem 0; }
  .section { padding: var(--section-padding); }
  .hero-inner { gap: 2.5rem; }
  .hero-text { font-size: var(--font-size-base); }
}
@media (min-width: 1280px) {
  .container { max-width: 1120px; padding: 0 2rem; }
  .hero { padding: 3rem 0; }
  .section { padding: var(--section-padding-lg); }
}