/* =========================================
   Florabase Frontpage — Custom Styles
   ========================================= */

/* Fonts loaded via fontsource (self-hosted) in Layout.astro */

:root {
  --base-100: #f6f3ee;
  --base-200: #ede9e2;
  --base-300: #e4dfd6;
  --base-content: #1e2a1c;
  --primary: #3d5438;
  --primary-content: #ffffff;
  --secondary: #ffc8dc;
  --secondary-content: #1e2a1c;
  --accent: #5a7a52;
  --neon: #7ec44a;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Nunito', system-ui, sans-serif;
  background: var(--base-100);
  color: var(--base-content);
}

a { color: inherit; text-decoration: none; }

/* ── Navbar ─────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--base-100);
  border-bottom: 1px solid var(--base-300);
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-logo { height: 3.5rem; width: auto; }

.nav-links { display: flex; align-items: center; gap: 1.5rem; }

.nav-links a {
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--base-content);
  transition: color 0.15s;
}

.nav-links a:hover, .nav-links a.active { color: var(--primary); }

.nav-login {
  font-weight: 800;
  font-size: 0.875rem;
  color: var(--base-content) !important;
}

.lang-toggle { display: flex; gap: 0.25rem; }

.lang-btn {
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 800;
  border: none;
  cursor: pointer;
  background: transparent;
  color: var(--base-content);
  opacity: 0.5;
}

.lang-btn.active {
  background: var(--primary);
  color: var(--primary-content);
  opacity: 1;
}

.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; }

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: var(--base-100);
  border-bottom: 1px solid var(--base-300);
}

.mobile-menu.open { display: flex; }
.mobile-menu a { font-weight: 700; font-size: 1rem; }


/* ── Badges ──────────────────────────────── */
.badge-neon {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  border: 1.5px solid var(--primary);
  color: var(--neon);
  box-shadow: 0 0 8px rgba(74,124,46,0.6), 0 0 20px rgba(74,124,46,0.25);
  border-radius: 9999px;
  padding: 0.25rem 0.875rem;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ── Buttons ─────────────────────────────── */
.btn-primary {
  background: var(--primary);
  color: var(--primary-content);
  border: none;
  border-radius: 9999px;
  padding: 0.75rem 1.75rem;
  font-weight: 800;
  font-size: 0.9rem;
  cursor: pointer;
  transition: opacity 0.15s;
  display: inline-block;
  font-family: inherit;
}

.btn-primary:hover { opacity: 0.85; }

.btn-ghost {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
  border-radius: 9999px;
  padding: 0.75rem 1.75rem;
  font-weight: 800;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.15s;
  display: inline-block;
  font-family: inherit;
}

.btn-ghost:hover { background: var(--primary); color: var(--primary-content); }

/* ── Hero ────────────────────────────────── */
.hero {
  position: relative;
  background: var(--primary);
  color: var(--primary-content);
  padding: 6rem 1.5rem 10rem;
  text-align: center;
  overflow: hidden;
}

.hero-content { position: relative; z-index: 10; max-width: 56rem; margin: 0 auto; }

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 900;
  line-height: 1.1;
  margin: 1.5rem 0 1rem;
}

.hero h1 span { color: var(--secondary); }

.hero p { font-size: 1.1rem; opacity: 0.85; max-width: 40rem; margin: 0 auto 2rem; line-height: 1.7; }

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

.hero-stats { display: flex; gap: 2rem; justify-content: center; flex-wrap: wrap; }

.hero-stat { text-align: center; }
.hero-stat-value { font-size: 2rem; font-weight: 900; }
.hero-stat-label { font-size: 0.75rem; font-weight: 700; opacity: 0.7; text-transform: uppercase; letter-spacing: 0.08em; }

/* ── Sections ────────────────────────────── */
.section { padding: 5rem 1.5rem; }
.section-sm { padding: 3rem 1.5rem; }
.container { max-width: 72rem; margin: 0 auto; }

.section-eyebrow {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.section-heading {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 900;
  line-height: 1.2;
  margin: 0 0 1rem;
}

.section-subtext { color: var(--base-content); opacity: 0.6; font-size: 1rem; line-height: 1.7; max-width: 40rem; }

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

.card {
  background: var(--base-200);
  border: 1px solid var(--base-300);
  border-radius: 1rem;
  padding: 1.75rem;
}

.card-icon {
  width: 2.5rem; height: 2.5rem;
  background: var(--primary);
  color: var(--primary-content);
  border-radius: 0.625rem;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.card h3 { font-size: 1.05rem; font-weight: 800; margin: 0 0 0.5rem; }
.card p { font-size: 0.875rem; opacity: 0.65; line-height: 1.65; margin: 0; }

/* ── Tags ────────────────────────────────── */
.tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.75rem; }

.tag {
  background: var(--primary);
  color: var(--primary-content);
  border-radius: 9999px;
  padding: 0.2rem 0.7rem;
  font-size: 0.7rem;
  font-weight: 800;
}

/* ── CTA Section ─────────────────────────── */
.cta-section {
  background: var(--primary);
  color: var(--primary-content);
  padding: 5rem 1.5rem;
  text-align: center;
}

.cta-section h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 900; margin: 0 0 1rem; }
.cta-section p { opacity: 0.8; font-size: 1rem; margin-bottom: 2rem; }

/* ── Footer ──────────────────────────────── */
.footer {
  background: var(--base-300);
  border-top: 1px solid var(--base-300);
  padding: 3rem 1.5rem;
}

.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }

.footer-logo { height: 3rem; width: auto; margin-bottom: 0.75rem; opacity: 0.9; }
.footer-desc { font-size: 0.875rem; opacity: 0.5; line-height: 1.7; max-width: 20rem; }

.footer-col h4 { font-size: 0.7rem; font-weight: 900; letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 1rem; }
.footer-col a { display: block; font-size: 0.875rem; font-weight: 700; opacity: 0.6; margin-bottom: 0.5rem; transition: opacity 0.15s; }
.footer-col a:hover { opacity: 1; }

.footer-bottom { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--base-300); font-size: 0.8rem; opacity: 0.4; font-weight: 700; }

/* ── Floral Background ───────────────────── */
.floral-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

@keyframes bloom {
  0% { transform: scale(0) rotate(-30deg); opacity: 0; }
  60% { transform: scale(1.1) rotate(5deg); opacity: 0.15; }
  100% { transform: scale(1) rotate(0deg); opacity: 0.12; }
}

.floral-flower {
  transform-box: fill-box;
  transform-origin: center center;
  animation: bloom 1.5s ease-out forwards;
  opacity: 0;
}

/* ── Accordion (FAQ) ─────────────────────── */
.accordion-item { border-bottom: 1px solid var(--base-300); }

.accordion-btn {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 1.25rem 0;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--base-content);
}

.accordion-icon { font-size: 1.2rem; transition: transform 0.2s; flex-shrink: 0; }
.accordion-btn.open .accordion-icon { transform: rotate(45deg); }
.accordion-body { display: none; padding-bottom: 1.25rem; font-size: 0.9rem; opacity: 0.7; line-height: 1.7; }
.accordion-body.open { display: block; }

/* ── Responsive ──────────────────────────── */
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
  .hamburger { display: none !important; }
}

@media (max-width: 767px) {
  .nav-links { display: none; }
  .hamburger { display: block; }
}