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

:root {
  /* Brand color palette (Cherry blossom mood) */
  --color-bg: #10050C;              /* DARK bg */
  --color-bg-alt: #1A0F14;
  --color-bg-card: #1E0F18;
  --color-border: #2B151D;
  --color-shadow: rgba(0,0,0,0.4);

  --color-primary: #FF2D78;           /* vivid pink */
  --color-secondary: #FF7CB8;
  --color-accent: #FFB7C5;            /* sakura pale */

  --color-text: #ECE6EA;              /* near-white on dark bg (WCAG AA on dark) */
  --color-text-muted: #D0C5D0;         /* muted, still readable on dark */
  --color-text-on-primary: #111111;     /* dark text on light primary (primary is light) */

  /* Radius & shadows */
  --radius: 12px;
  --shadow: 0 6px 20px rgba(0,0,0,0.25);

  /* Typographic scale */
  --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;
}

/* 1. RESET / BASE */
*,
*::before,
*::after { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
  line-height: var(--line-height-base);
  background: var(--color-bg);
  color: var(--color-text);
  font-family: 'Lato', system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, video, iframe { max-width: 100%; height: auto; display: block; }

/* 2. TYPOGRAPHY SCALE & COLORS (variables already set in :root) */

/* 3. LAYOUT UTILITIES / BASICS */
.container {
  width: 100%;
  margin: 0 auto;          /* important: centers content at all breakpoints */
  padding: 0 1rem;
}
.section {
  padding: 2rem 0;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: var(--font-size-2xl);
  line-height: var(--line-height-tight);
  color: var(--color-text);
  margin-bottom: 0.75rem;
}
.heroes {}

/* 4. TYPOGRAPHY (headings + body) */
h1, h2, h3, h4 {
  color: var(--color-text);
  margin: 0.25rem 0;
}
h1 {
  font-family: 'Playfair Display', serif;
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-3xl);
  line-height: var(--line-height-tight);
}
h2 {
  font-family: 'Playfair Display', serif;
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-2xl);
}
h3 {
  font-family: 'Playfair Display', serif;
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-xl);
}
p {
  font-size: var(--font-size-base);
  color: var(--color-text);
  margin: 0 0 0.75rem;
}
a { color: var(--color-primary); text-decoration: none; transition: color 0.2s ease; }
a:hover { text-decoration: underline; color: #FF4A8A; }

strong { font-weight: var(--font-weight-bold); }
em { font-style: italic; color: var(--color-text-muted); }

/* Lists */
ul, ol { margin: 0 0 0.75rem 1.25rem; }

/* 5. COMPONENT STYLES (MUST-STYLE) */

/* Header / Logo / Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  min-height: 64px;
  overflow: visible;
  background: rgba(16,5,12,0.92);
  /* a subtle translucence to let hero show through a bit on scroll */
}
.site-header .container {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem 1rem;
}
.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;
  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,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 for hamburger */
  border-radius: 2px;
  transition: 0.2s ease;
}
.site-nav {
  display: none;             /* mobile hidden by default */
  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;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-link {
  display: block;
  font-size: var(--font-size-sm);
  padding: 0.75rem 1rem;
  color: var(--color-text);
  text-decoration: none;
  position: relative;
}
.nav-link:hover { color: #fff; }
.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: var(--color-accent);
  transition: width 0.2s ease;
}
.nav-link:hover::after { width: 100%; }

.nav-item { }

/* Dropdowns */
.nav-dropdown { position: relative; }
.nav-dropdown-toggle { cursor: pointer; display: inline-flex; align-items: center; padding: 0.75rem 1rem; color: var(--color-text); text-decoration: none; }
.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,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); }

/* Mobile adjustments for dropdown inside mobile nav */
@media (max-width: 767px) {
  .nav-dropdown-menu { position: static; box-shadow: none; border: none; padding-left: 1rem; display: none; }
  .nav-dropdown:focus-within > .nav-dropdown-menu { display: block; }
  .site-nav { border-top: 1px solid var(--color-border); }
}

/* Hero */
.hero {
  width: 100%;
  padding: 4rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  background: linear-gradient(135deg, rgba(255, 45, 120, 0.25), rgba(0,0,0,0.25)),
              linear-gradient(135deg, #170013 0%, #10050C 40%, #0A040C 100%);
}
.hero-inner { max-width: 1100px; padding: 0 1rem; }
.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: var(--font-size-hero);
  color: #fff;
  margin: 0 0 1rem;
}
.hero p { font-size: var(--font-size-md); color: #fff; opacity: 0.95; margin-bottom: 1.25rem; }
.btn {
  display: inline-block;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  transition: filter 0.2s ease, transform 0.2s ease;
}
.btn-primary {
  background: var(--color-primary);
  color: var(--color-text-on-primary);
}
.btn-primary:hover { filter: brightness(0.92); transform: translateY(-1px); }
.btn-secondary {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}
.btn-secondary:hover { background: rgba(255,255,255,0.04); }

/* Cards */
.card {
  display: flex;
  flex-direction: column;        /* mandatory: column layout */
  border-radius: var(--radius);    /* 10-14px as specified */
  overflow: hidden;
  background: var(--color-bg-card);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 26px rgba(0,0,0,0.32);
}
.card img {
  width: 100%;
  aspect-ratio: 16 / 9;            /* mandatory: rectangle image */
  object-fit: cover;
  display: block;
  border-top-left-radius: var(--radius);
  border-top-right-radius: var(--radius);
}
.card-content { padding: 1rem; }
.card-title { font-size: var(--font-size-lg); margin: 0 0 0.25rem; color: var(--color-text); }
.card-desc { font-size: var(--font-size-base); color: var(--color-text-muted); }

/* Card grid */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 768px) {
  .card-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
}

/* 6. NON-HEADER UTILITIES & FOOTER */
.site-footer {
  background: #0D0A10;
  color: var(--color-text);
  padding: 2rem 0;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}
@media (min-width: 768px) {
  .footer-inner { flex-direction: row; justify-content: space-between; align-items: center; }
}
.footer-copy { font-size: var(--font-size-xs); color: var(--color-text-muted); }

/* FAQ Accordion (CSS-only) */
.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: 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.25turn); }
.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); }

/* Inputs & Forms */
label { display: block; margin-bottom: 0.25rem; font-weight: var(--font-weight-bold); color: var(--color-text); }
input,
textarea,
select {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: #ffffff;
  color: #111;
  font-family: inherit;
  font-size: var(--font-size-base);
  outline: none;
}
input:focus,
textarea:focus,
select:focus { border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(255,45,120,.15); }

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

/* 9. UTILITIES */
.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; }

/* 10. RESPONSIVE BREAKPOINTS */

/* Base mobile-first (≤767px) styles already applied above */

/* Tablet: ≥768px (nav always visible, horizontal, hamburger hidden) */
@media (min-width: 768px) {
  /* container centers content with a larger max width and padding */
  .container {
    max-width: 960px;
    padding: 0 1.5rem;
    margin: 0 auto; /* crucial: keep centered at tablet */
  }

  /* Hamburger hidden on tablet+ */
  .nav-toggle-label { display: none; }

  /* Desktop-like header nav behavior */
  .site-nav {
    display: flex !important;
    position: static;
    width: auto;
    background: transparent;
    border-top: none;
    box-shadow: none;
  }

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

  /* Nav link typography on tablet/desktop */
  .nav-link { font-size: var(--font-size-sm); }

  /* Dropdown menus on desktop/tablet: show on hover/focus */
  .nav-dropdown-menu { min-width: 200px; }

  /* Card grid becomes multi-column on tablet */
  .card-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

  /* Hero adjustments for larger viewports */
  .hero { padding: 6rem 1rem; }
  .hero h1 { font-size: var(--font-size-3xl); }

  /* Sections */
  .section { padding: 4rem 0; }

  /* Footer alignment */
  .footer-inner { justify-content: space-between; text-align: left; }
}

/* Large Desktop: ≥1280px */
@media (min-width: 1280px) {
  .container {
    max-width: 1280px;
    padding: 0 2rem;
  }

  .hero {
    min-height: 70vh;
  }

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

  .section { padding: 4rem 0; }

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

  .footer-inner { flex-direction: row; }
}