/* Little Light Studios 2.0 — matches the Figma home design */

@font-face {
  font-family: "Sofia Pro";
  src: url("/fonts/sofia-pro-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Sofia Pro";
  src: url("/fonts/sofia-pro-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Sofia Pro";
  src: url("/fonts/sofia-pro-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --orange: #ff9100;
  --ink: #000;
  --paper: #fff;
  --muted: rgba(0, 0, 0, 0.5);
  --field: #efefef;
  --radius: 8px;
  --container: 1024px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Sofia Pro", "Sofia Sans", system-ui, -apple-system, sans-serif;
  font-size: 14px;
  line-height: 16px;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 12px;
  border: 0;
  border-radius: var(--radius);
  font: inherit;
  font-size: 14px;
  line-height: 14px;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.btn:hover { transform: translateY(-1px); opacity: 0.9; }
.btn:active { transform: translateY(0); }
.btn:focus-visible { box-shadow: inset 0 0 0 2px var(--orange); outline: none; }
.btn--dark { background: var(--ink); color: #fff; }
.btn--light { background: #fff; color: var(--ink); }
.btn--orange { background: var(--orange); color: #fff; }
.btn svg { flex: none; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 20px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { width: 31px; height: 46.8px; }
/* Design shows the bulb mark alone in the header — wordmark kept for screen readers */
.brand-name {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.site-nav { display: flex; align-items: center; }
.site-nav a { padding: 12px; font-size: 14px; opacity: 0.85; border-bottom: 1px solid transparent; transition: opacity 0.15s ease; }
.site-nav a:hover, .site-nav a[aria-current="page"] { opacity: 1; }
.site-nav a[aria-current="page"] { border-bottom-color: #000; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; }

/* Hero carousel */
.hero {
  position: relative;
  height: min(51.77vw, 994px);
  min-height: 520px;
  overflow: hidden;
  background: #000;
}
.hero-slide {
  position: absolute;
  inset: 0;
  transform: translateX(100%);
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}
.hero-slide.is-active { transform: translateX(0); pointer-events: auto; }
.hero-slide.no-anim { transition: none; }
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.15) 40%, rgba(0, 0, 0, 0.72) 100%);
}
.hero-content {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 89px;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}
.hero-content { z-index: 4; transition: opacity 0.25s ease; }
.hero-content.is-swapping { opacity: 0; }
.hero-content h2 { font-size: 28px; font-weight: 500; line-height: 32px; }
.hero-content p { font-size: 14px; line-height: 16px; }

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  background: none;
  border: 0;
  color: rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition: color 0.15s ease;
}
.hero-arrow:hover { color: #fff; }
.hero-arrow--prev { left: 16px; }
.hero-arrow--next { right: 16px; }

.hero-dots {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 57px;
  z-index: 6;
  display: flex;
  flex-direction: row;
  gap: 12px;
  padding: 12px;
  background: #fff;
  border-radius: 999px;
}
.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: rgba(0, 0, 0, 0.25);
  cursor: pointer;
  transition: background 0.2s ease;
}
.hero-dot.is-active { background: #000; }

/* Feature rows */
main > .feature { margin-block: 40px; }
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.feature--flip .feature-media { order: 2; }
.feature--flip .feature-text { order: 1; }
.feature-media {
  border-radius: var(--radius);
  overflow: hidden;
  background: #efefef;
  aspect-ratio: 492 / 320;
}
.feature-media img { width: 100%; height: 100%; object-fit: cover; }
.feature-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}
.feature-text h2 { font-size: 28px; font-weight: 500; line-height: 32px; }
.feature-text p { font-size: 14px; line-height: 16px; }

/* Newsletter */
.newsletter { display: flex; flex-direction: column; gap: 20px; width: 100%; }
.newsletter input {
  width: 100%;
  padding: 9px 12px;
  border: 0;
  border-radius: var(--radius);
  background: var(--field);
  font: inherit;
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
}
.newsletter input::placeholder { color: var(--muted); font-weight: 700; }
.newsletter input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--orange); }
.newsletter button { align-self: flex-start; font-weight: 700; padding: 14px 12px; }
.newsletter-msg { min-height: 1em; font-size: 13px; color: var(--muted); }
.newsletter-msg.is-ok { color: #1a7f37; }
.newsletter-msg.is-err { color: #c0392b; }

/* Footer */
.site-footer { padding-block: 40px 80px; }
.footer-inner {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: space-between;
  gap: 40px;
}
.footer-col h3 { font-size: 20px; font-weight: 700; line-height: 23px; margin-bottom: 40px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 20px; }
.footer-col a { opacity: 0.85; transition: opacity 0.15s ease; }
.footer-col a:hover { opacity: 1; }
.footer-meta { margin-top: 56px; font-size: 12px; color: var(--muted); }

/* Bold section headings (Seminars / Contact / Blog per Figma) */
.h--bold { font-weight: 700 !important; }

/* Contact & seminar forms */
.contact-form { display: flex; flex-direction: column; gap: 20px; width: 100%; }
.contact-form input,
.contact-form select {
  width: 100%;
  padding: 9px 12px;
  border: 0;
  border-radius: var(--radius);
  background: var(--field);
  font: inherit;
  font-size: 14px;
  color: var(--ink);
  appearance: none;
  -webkit-appearance: none;
}
.contact-form input::placeholder { color: var(--muted); }
.contact-form select:invalid { color: var(--muted); }
.contact-form input:focus, .contact-form select:focus { outline: none; box-shadow: inset 0 0 0 2px var(--orange); }
.contact-form button { align-self: flex-start; }
.select-wrap { position: relative; width: 100%; }
.select-wrap svg { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); pointer-events: none; }

/* FAQ accordion */
.feature-text--top { justify-content: flex-start; align-self: stretch; }
.faq { display: flex; flex-direction: column; gap: 20px; width: 100%; }
.faq-item { background: var(--field); border-radius: var(--radius); padding: 12px; }
.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  width: 100%;
  border: 0;
  background: none;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  padding: 0;
}
.faq-q svg { flex: none; transition: transform 0.2s ease; transform: rotate(-90deg); }
.faq-item.is-open .faq-q svg { transform: rotate(0deg); }
.faq-a { display: none; padding-top: 20px; }
.faq-item.is-open .faq-a { display: block; }

/* Blog */
.blog { margin-block: 40px; display: flex; flex-direction: column; gap: 40px; }
.blog-head { display: flex; flex-direction: column; gap: 20px; }
.blog-search {
  width: 100%;
  padding: 9px 12px;
  border: 0;
  border-radius: var(--radius);
  background: var(--field);
  font: inherit;
  font-size: 14px;
}
.blog-search::placeholder { color: var(--muted); }
.blog-search:focus { outline: none; box-shadow: inset 0 0 0 2px var(--orange); }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.post-card { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.post-media {
  width: 100%;
  aspect-ratio: 314 / 315;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--field);
}
.post-media img { width: 100%; height: 100%; object-fit: cover; }
.post-title { font-size: 20px; font-weight: 700; line-height: 23px; text-align: center; }
.post-excerpt { font-size: 16px; line-height: 19px; align-self: stretch; }
.info-block strong { font-weight: 700; }
.info-block a { text-decoration: underline; }

.notfound { padding-block: 120px; text-align: center; }
.notfound h1 { font-size: 28px; font-weight: 500; margin-bottom: 12px; }
.notfound a { text-decoration: underline; }

/* Responsive */
@media (max-width: 800px) {
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: #fff;
    border-top: 1px solid #eee;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { width: 100%; padding: 14px 24px; }
  .nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 40px;
    height: 40px;
    padding: 10px;
    background: none;
    border: 0;
    cursor: pointer;
  }
  .nav-toggle span { display: block; height: 2px; width: 100%; background: #000; border-radius: 2px; }

  .feature { grid-template-columns: 1fr; gap: 20px; }
  .feature--flip .feature-media { order: 0; }
  .feature--flip .feature-text { order: 1; }
  .hero { height: 70vh; min-height: 460px; }
  .hero-content { bottom: 110px; }
  .hero-dots { bottom: 18px; }
  .hero-arrow { display: none; }
  .footer-inner { grid-template-columns: 1fr; }
}
