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

:root {
  /* Brand & mood palette */
  --color-bg: #FFF0F5;           /* Sakura light background for main sections */
  --color-bg-alt: #FFF7FC;        /* lighter alt section background for contrast */
  --color-bg-card: #FFFFFF;        /* card background (flat, minimal) */
  --color-text: #1A1A1A;            /* body text on light background (ensures WCAG contrast) */
  --color-text-muted: #5A5A5A;      /* muted text for secondary content */
  --color-text-on-primary: #FFFFFF;  /* text on dark primary */
  --color-border: #E5D7DD;           /* soft borders for cards/sections */
  --color-shadow: rgba(0,0,0,0.18);

  --color-primary: #5A0A28;          /* deep rose (dark enough to require white text on primary) */
  --color-secondary: #B8860B;        /* gold accent */
  --color-accent: #A36A0A;           

  /* Typography */
  --font-family-sans: 'Barlow Condensed', system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Helvetica Neue", 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;
  --radius: 12px;

  /* Spacing scale (used in multiple components) */
  --space-1: .25rem;
  --space-2: .5rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;

  --section-padding: 3.5rem 0;

  /* Demo content colors (for borders/shadows) */
  --shadow-soft: 0 2px 8px rgba(0,0,0,.12);
}

/* -------------- CSS Reset / Base -------------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

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

img, video, iframe { max-width: 100%; height: auto; display: block; }

/* -------------- Utilities / Layout -------------- */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
}

.section {
  padding: var(--section-padding);
  background: var(--color-bg);
}

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

/* -------------- Typography -------------- */
h1, h2, h3, h4 {
  margin: 0 0 .5rem 0;
  line-height: var(--line-height-tight);
  font-family: var(--font-family-sans);
  color: var(--color-text);
}

h1 { font-size: var(--font-size-3xl); font-weight: 800; }
h2 { font-size: var(--font-size-2xl); font-weight: 700; }
h3 { font-size: var(--font-size-xl); font-weight: 700; }
h4 { font-size: var(--font-size-lg); font-weight: 600; }

p { margin: 0 0 1rem 0; }

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

a:hover { text-decoration: underline; }

strong { font-weight: 700; }

em { font-style: italic; }

/* Lists */
ul, ol { margin: 0 0 1rem 1.125rem; padding: 0; }

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

/* -------------- Cards -------------- */
.card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-bg-card);
  min-height: 100%;
}

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

/* -------------- Hero -------------- */
.hero {
  width: 100%;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 50vh;
  padding: 3rem 1rem;
  background: linear-gradient(135deg, rgba(0,0,0,0.65), rgba(0,0,0,0.25)), var(--color-bg);
  /* dark overlay to ensure white text on hero targets the magenta/gold tones well */
  position: relative;
}

.hero-content { text-align: center; }

.hero h1 {
  font-size: var(--font-size-hero);
  line-height: 1.05;
  margin: 0 0 0.75rem;
  color: #fff;
}

.hero p {
  color: #fff;
  opacity: 0.95;
  margin: 0 0 1rem;
}

.hero .btn { /* ensure buttons scale well inside hero if used */
  display: inline-block;
}

/* Hero extra layout hooks (per instruction) */
.hero-content { text-align: center; }

.hero-cta {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,0.2);
  padding-top: 2rem;
  margin-top: 0.5rem;
}

.hero-stat { text-align: center; min-width: 80px; }

.hero-stat strong {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.1;
}

.hero-stat span {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

@media (max-width: 767px) {
  .hero-stats { gap: 1.5rem; }
  .hero-stat strong { font-size: 1.5rem; }
}

/* -------------- Navigation / Header -------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  min-height: 64px;
  overflow: visible;
  width: 100%;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}

.site-header .container {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem 1rem;
  width: 100%;
  margin: 0 auto; /* always centered per requirement */
  box-sizing: border-box;
  justify-content: flex-start;
}

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

/* 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;
  border-radius: 2px;
  transition: 0.2s ease;
}

/* Mobile nav 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-toggle-input:checked ~ .site-nav { display: block; }

/* Nav list (base mobile-first) */
.nav-list {
  display: flex;
  flex-direction: column; /* mobile default (as per spec) */
  gap: 0;
  padding: 0.5rem 0;
  margin: 0;
  list-style: none;
}
.nav-item { }

/* Nav links */
.nav-link {
  display: block;
  padding: 0.75rem 1rem;
  font-size: var(--font-size-sm);
  text-decoration: none;
  color: var(--color-text);
  transition: color 0.2s ease;
}
.nav-link:hover { text-decoration: underline; color: var(--color-text); }

/* Dropdown nav (grouped items) */
.nav-dropdown { position: relative; }

/* Toggle for dropdown (link that triggers) */
.nav-dropdown-toggle { cursor: pointer; white-space: nowrap; }

/* Dropdown panel */
.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-link:hover { background: var(--color-bg-alt); text-decoration: none; }

/* Dropdown behavior on mobile: indent */
@media (max-width: 767px) {
  .nav-dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    padding-left: 1rem;
  }
  .nav-list { flex-direction: column; }
  .site-nav { /* ensure nav remains usable when opened on mobile */ }
  .nav-toggle-label { display: flex; } 
  .nav-dropdown:focus-within > .nav-dropdown-menu { display: block; }
  .nav-link { padding: 0.75rem 1rem; }
}

/* NAV LAYOUT (tablet+): centered nav and horizontal items (per system rules) */
@media (min-width: 768px) {
  /* Center the header content and increase spacing between items */
  .site-header .container {
    justify-content: center;
    gap: 2rem;
  }

  /* Hide hamburger on tablet+ and show full nav inline */
  .nav-toggle-label { display: none !important; }

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

  .nav-list {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center;
    gap: 1.5rem;
  }

  /* Tablet/desktop typography for nav */
  .nav-link { font-size: var(--font-size-sm); padding: 0.4rem 0.75rem; border-bottom: none; white-space: nowrap; }

  /* Nav alignment guidance */
  .site-nav { align-items: center; justify-content: center; }

  /* hero tweaks for larger viewports */
  .hero { min-height: 60vh; }

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

  /* Card grid changes for wider layouts */
  .card-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

  .footer-inner { display: flex; flex-direction: row; justify-content: space-between; align-items: center; }
  .footer-inner { text-align: left; }

  /* Section padding for tablet */
  .section { padding: 3.5rem 0; }
  .container { margin: 0 auto; }
}

/* -------------- Responsive Desktop -------------- */
@media (min-width: 1024px) {
  .container { max-width: 1200px; padding: 0 2rem; }
  .site-header { /* keep sticky header, no extra height constraints */ }

  .hero { min-height: 70vh; }

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

  .section { padding: 4rem 0; }
}

/* -------------- Form Elements -------------- */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
textarea,
select {
  font: inherit;
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 0.6rem 0.75rem;
  background: #fff;
  width: 100%;
}

label { display: block; margin-bottom: 0.25rem; font-weight: 500; }

/* -------------- Buttons -------------- */
.btn {
  display: inline-block;
  padding: 0.65rem 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: 600;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus { outline: 2px solid var(--color-primary); outline-offset: 2px; }

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

/* -------------- Footer -------------- */
.site-footer {
  background: var(--color-bg-card);
  border-top: 1px solid var(--color-border);
  padding: 2rem 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  width: 100%;
}
@media (max-width: 767px) {
  .footer-inner { flex-direction: column; text-align: center; }
}

/* -------------- FAQ Accordion (CSS-Only) -------------- */
.faq-section {
  padding: var(--section-padding);
}
.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: "−";
}
.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); }

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

/* -------------- Misc Utilities -------------- */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }

.hidden { display: none !important; }

/* -------------- Accessibility helper rules -------------- */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; animation-delay: 0ms !important; transition-duration: 0.01ms !important; }
}