/*
 * Global styles for the Luma landing page.
 *
 * This stylesheet defines the layout and typography for the page while
 * respecting the custom Material 3 color scheme defined in index.html.
 * The design intentionally leaves generous white space between elements
 * to evoke a sense of calm and simplicity.  Media queries ensure the
 * layout adapts gracefully to smaller screens.
 */

/* Base typography and reset */
/* Material color scheme variables moved from index.html */
:root {
  /* Primary brand color */
  --md-sys-color-primary: #8eaecf;
  --md-sys-color-on-primary: #ffffff;
  --md-sys-color-primary-container: #dae6f5;
  --md-sys-color-on-primary-container: #1a2a3d;
  /* Secondary accent */
  --md-sys-color-secondary: #f5c6aa;
  --md-sys-color-on-secondary: #3f2d21;
  --md-sys-color-secondary-container: #fdf1e6;
  --md-sys-color-on-secondary-container: #3f2d21;
  /* Neutral surfaces */
  --md-sys-color-background: #f6f6f4;
  --md-sys-color-on-background: #1a1a1a;
  --md-sys-color-surface: #ffffff;
  --md-sys-color-on-surface: #1a1a1a;
  --md-sys-color-surface-variant: #f0f0ee;
  --md-sys-color-outline: #c7c7c7;
  /* Error color */
  --md-sys-color-error: #b00020;
}

/* Smooth scrolling for internal links */
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', 'Roboto', sans-serif;
  background: var(--md-sys-color-background);
  color: var(--md-sys-color-on-background);
  line-height: 1.6;
}

md-icon {
  font-family: 'Material Symbols Rounded';
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

h1,
h2,
h3,
h4 {
  margin-top: 0;
  color: var(--md-sys-color-on-background);
}

p {
  margin-top: 0;
  margin-bottom: 1rem;
}

/* Container utility class */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  box-sizing: border-box;
}

/* Navigation bar styles */
.navbar {
  background-color: white;
  border-bottom: 1px solid #eee;
  padding: 0.75rem 1rem;
  position: sticky;
  top: 0;
  z-index: 1000;
}
.navbar .navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.navbar .navbar-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #1a1a1a;
}
.navbar .navbar-logo img {
  height: 42px;
  width: 42px;
  border-radius: 6px;
  margin-right: 0.5rem;
}
.navbar .navbar-logo span {
  font-weight: 600;
}
.navbar .nav-links {
  display: flex;
  gap: 1rem;
}
.navbar .nav-links a {
  text-decoration: none;
  color: #1a1a1a;
}
/* Space out the main sections a bit more */
.anchor-offset {
  scroll-margin-top: 75px;
}
section {
  padding: 1rem 0;
}

section + section {
  margin-top: 1rem;
}

/* Hero section */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-height: 90vh;
}

.hero-title {
  font-size: 2.8rem;
  max-width: 700px;
  margin: 0 auto 1rem auto;
  line-height: 1.4;
  text-align: center;
  font-weight: 600;
  animation: fadeIn 2s ease-out;
}

.hero-subtitle {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  max-width: 32rem;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
/* Center hero container horizontally */
.container.hero {
  display: flex;
  justify-content: center;
}

.signup-form {
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 32rem;
}

.legal-text {
  font-size: 0.75rem;
  color: var(--md-sys-color-on-surface);
  opacity: 0.7;
  margin-top: 0.5rem;
}

.hero-image {
  max-width: 420px;
  width: 100%;
  border-radius: 1rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.carousel {
  position: relative;
  max-width: 420px;
  width: 100%;
}

  .carousel-inner {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    height: auto;
  }

.carousel-item img {
  display: block;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.carousel-item {
  display: none;
  width: 100%;
}

.carousel-item.active {
  display: block;
}

.carousel-prev,
.carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.carousel-prev {
  left: 0.25rem;
}

.carousel-next {
  right: 0.25rem;
}

/* Intro section */
.intro h2 {
  font-size: 2rem;
  margin-top: 0;
  margin-bottom: 0.25rem;
  text-align: center;
}

.intro p {
  font-size: 1rem;
  margin-bottom: 1.5rem;
  max-width: 45rem;
}

.intro-blocks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.text-block {
  background: #f7f3e9;
  padding: 1.5rem;
  border-radius: 0.75rem;
}

.bullets {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 45rem;
}

.bullet-item {
  display: flex;
  gap: 0.75rem;
}

.bullet-marker {
  height: 0.5rem;
  width: 0.5rem;
  background: var(--md-sys-color-primary);
  border-radius: 50%;
  margin-top: 0.4rem;
}

.bullet-item h3 {
  font-size: 1.2rem;
  margin: 0;
  font-weight: 500;
}

.bullet-item p {
  margin: 0;
}

.intro-list {
  padding-left: 1.25rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.intro-list li {
  margin-bottom: 0.5rem;
}

/* How it works section */
.how-it-works h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.step-item {
  text-align: left;
}

.step-number {
  width: 3rem;
  height: 3rem;
  border-radius: 1.5rem;
  background: var(--md-sys-color-primary);
  color: var(--md-sys-color-on-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.step-item h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.step-item p {
  font-size: 1rem;
  margin-bottom: 0;
}

/* Features section */
.features h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.feature-item {
  background: var(--md-sys-color-surface-variant);
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  transition: background 0.3s ease, transform 0.3s ease;
}

.feature-item:hover {
  background: var(--md-sys-color-primary-container);
  transform: translateY(-4px);
}

.feature-item svg {
  width: 2rem;
  height: 2rem;
  stroke: var(--md-sys-color-primary);
}

.feature-item h3 {
  font-size: 1.25rem;
  margin: 0;
  font-weight: 600;
}

.feature-item p {
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.4;
}

/* Principles cards used in the intro section to replace the first bullet list. */
.principles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.principles-card {
  background: var(--md-sys-color-surface-variant);
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
}

.principles-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.principles-card-content {
  padding: 1rem 1rem 1.5rem 1rem;
}

.principles-card h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--md-sys-color-on-surface);
}

.principles-card p {
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.4;
  color: var(--md-sys-color-on-surface);
}

/* Audience grid styling for the "Why Luma?" list */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem 1.5rem;
  margin-top: 1.5rem;
}

.audience-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.audience-item md-icon {
  font-size: 1.8rem;
  color: var(--md-sys-color-primary);
  margin-top: 0.1rem;
}

.audience-item span {
  font-size: 0.95rem;
  line-height: 1.4;
  color: var(--md-sys-color-on-surface);
}

/* Feature list within intro flows into two columns for better readability. */
.feature-list {
  columns: 2;
  column-gap: 2rem;
  margin-bottom: 1.5rem;
}
.feature-list li {
  break-inside: avoid;
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

/* Tinted highlight section using the colour palette from the tinted Luma logo */
.tinted-highlight {
  background: linear-gradient(135deg, #213a4d, #4c2a31);
  color: #ffffff;
  padding: 4rem 1rem;
  text-align: center;
  margin-top: 0; /* remove white gap above "Moments over metrics." */
}

.tinted-highlight--spaced { margin-top: 2rem; }

.tinted-highlight .tinted-logo {
  width: 96px;
  height: 96px;
  margin-bottom: 1rem;
  border-radius: 16px;
}

.tinted-highlight .tinted-title {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.tinted-highlight .tinted-subtitle {
  font-size: 1.1rem;
  max-width: 42rem;
  margin: 0 auto;
  line-height: 1.6;
  opacity: 0.9;
}

/* Beta CTA section */
.beta-cta {
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: var(--md-sys-color-on-secondary-container);
  border-radius: 1rem;
  padding: 3rem 1rem;
}

.beta-cta .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.beta-cta h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.beta-cta p {
  font-size: 1rem;
  margin-bottom: 2rem;
  max-width: 40rem;
  text-align: center;
}

.beta-cta .signup-form {
  width: 100%;
  justify-content: center;
  flex-wrap: wrap;
}

.beta-cta .legal-text {
  color: var(--md-sys-color-on-secondary-container);
  opacity: 0.8;
  text-align: center;
  font-size: 0.75rem;
  margin-top: 0.75rem;
}

/* Footer */
footer {
  padding: 2rem 0;
  background: var(--md-sys-color-surface);
  color: var(--md-sys-color-on-surface);
  text-align: center;
  font-size: 0.8rem;
  border-top: 1px solid var(--md-sys-color-outline);
}

footer a {
  color: var(--md-sys-color-primary);
  text-decoration: none;
  margin: 0 0.5rem;
}

footer a:hover {
  text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    text-align: center;
    min-height: auto;
    padding: 3rem 0;
  }
  .hero-image {
    margin-bottom: 2rem;
    max-width: 300px;
  }
  .carousel-prev,
  .carousel-next {
    top: 45%;
  }
  .signup-form {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .hero-subtitle {
    text-align: center;
    margin: 0 auto 2rem auto;
  }
  .intro-blocks {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  .hero-title {
    text-align: center;
  }
  /* Center Mood Rooms image on mobile */
  #mood-rooms .media-card,
  #mood-rooms img,
  .mood-rooms-highlight .media-card,
  .mood-rooms-highlight img {
    display: block;
    margin-left: auto;
    margin-right: auto;
    float: none;
  }
}
/* Hero input wrapper: ensures full-width input up to 400px */
.hero-input-wrapper {
  width: 100%;
  max-width: 400px;
}
.hero-input-wrapper md-outlined-text-field {
  width: 100%;
}
/* Parallax background support */
.parallax {
  position: relative;
  background-image: url('public/images/OwnMoment.png');
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  overflow: hidden;
}

.parallax::before {
  content: '';
  position: absolute;
  inset: 0;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 0; /* moved behind hero video */
}

.parallax > * {
  position: relative;
  z-index: 2;
}
/* Overlay modal styles */
#overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 2000;
  justify-content: center;
  align-items: center;
}
#overlay .overlay-content {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  text-align: center;
  position: relative;
}
#close-overlay {
  position: absolute;
  top: 0.5rem;
  right: 0.75rem;
  background: none;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
}
#overlay .legal-text {
  margin-top: 1rem;
}
/* Custom style for email input field */
md-outlined-text-field {
  background-color: white !important;
  border-radius: 8px;
}
/* section[id] {
  scroll-margin-top: 180px;
} */

section[id]::before {
  content: '';
  display: block;
  height: 0;
  margin-top: 0;
  visibility: hidden;
}

.beta-cta.parallax {
  background-color: transparent !important;
}
.tagline-text {
  text-align: justify;
}

/* Burger menu styling */
.burger {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 25px;
  height: 21px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

.burger span {
  display: block;
  width: 100%;
  height: 3px;
  background: #000;
  border-radius: 2px;
}

/* Burger menu responsive behavior */
@media (max-width: 768px) {
  .navbar .nav-links {
    display: none;
    flex-direction: column;
    align-items: center;
    background: #fff;
    position: absolute;
    top: 60px;
    right: 0;
    width: 100%;
    padding: 1rem 0;
  }

  .navbar .nav-links.active {
    display: flex;
  }

  .burger {
    display: flex;
  }
}
.gradient-text {
  background: linear-gradient(90deg, #7f5a83, #0d324d);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  font-weight: 600;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Animate hero text word by word */
.animated-text span {
  opacity: 0;
  display: inline-block;
  animation: wordFadeIn 0.5s ease forwards;
}

@keyframes wordFadeIn {
  from {
    opacity: 0;
    transform: translateY(0.5em);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== Luma Landing: structural styles for video-led layout (2025-08-10) ===== */

/* Anchor offset fix for sections we jump to via nav */
section.anchor-offset::before { height: 88px; margin-top: -88px; }
@media (max-width: 768px){ section.anchor-offset::before { height: 72px; margin-top: -72px; } }

/* Utility paddings for new sections */
.section-pad { padding: 2rem 0; }
.section-pad-alt { padding: 2rem 0; background: #f7f3e9; }

/* Reusable media shells */
.hero-media { display:inline-flex; flex-direction:column; align-items:center; margin:0 auto; max-width:420px; width:100%; }
.hero-image { max-width:100%; height:auto; border-radius:1rem; box-shadow:0 4px 16px rgba(0,0,0,0.1); }
.media-card { border-radius:1rem; overflow:hidden; box-shadow:0 4px 16px rgba(0,0,0,0.1); }
.soft-shadow { box-shadow:0 4px 16px rgba(0,0,0,0.1); }

/* Moments + Mood Rooms blocks */
.moments-highlight .examples { list-style:none; padding:0; margin:1rem 0 0 0; line-height:1.7; }
.mood-rooms-highlight .overlay-badge { position:absolute; left:1rem; bottom:1rem; background:rgba(255,255,255,0.85); padding:0.5rem 0.75rem; border-radius:0.5rem; font-size:0.9rem; box-shadow:0 2px 8px rgba(0,0,0,0.08); }

/* Videos: better defaults */
video { display:block; max-width:100%; height:auto; }

/* Respect reduced motion to be kind to users & batteries */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  video { animation: none !important; transition: none !important; }
}

/* ===== Hero: full-bleed background video (applied 2025-08-10) ===== */
.parallax .hero-section {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0; /* sits above .parallax::before but below overlay/content */
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(0,0,0,0.25), rgba(0,0,0,0.35));
}
.container.hero { position: relative; z-index: 2; }
.hero .hero-content { max-width: none; width: 100%; text-align: center; }
.hero-title { color: #fff; }
.hero-subtitle { color: #fff; opacity: 0.9; }
.hero .signup-form { margin: 0 auto; justify-content: center; flex-wrap: wrap; }
.hero .legal-text { color: #fff; opacity: 0.75; }

/* Improve Material textfield/button visibility on dark overlay */
.hero .signup-form md-outlined-text-field {
  --md-outlined-text-field-container-color: rgba(255,255,255,0.08);
  --md-outlined-text-field-input-text-color: #ffffff;
  --md-outlined-text-field-label-text-color: rgba(255,255,255,0.85);
  --md-sys-color-on-surface: #ffffff;
  --md-outlined-text-field-input-text-placeholder-color: rgba(255,255,255,0.8);
}
.hero .signup-form md-filled-button { --md-sys-color-on-primary: #1a1a1a; }

@media (max-width: 768px){
  .parallax .hero-section { min-height: 60vh; }
  .hero-title { font-size: 1.6rem; line-height: 1.3; }
  .hero-subtitle { font-size: 1rem; }
}
/* ===== Section background video overlay (aligned like hero) – applied 2025-08-10 ===== */
.video-backed-section {
  position: relative;
  overflow: hidden;
  min-height: 60vh;          /* similar presence to hero */
  display: flex;
  align-items: center;       /* vertically center text */
}
.section-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.section-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(0,0,0,0.32), rgba(0,0,0,0.55)); /* stronger for readability */
}
.video-backed-section .container {
  position: relative;
  z-index: 2;                /* above video + overlay */
  width: 100%;
}
.video-backed-inner {
  color: #fff;
  text-align: center;
  max-width: 980px;
  margin: 0 auto;
  padding: 2.5rem 1rem;      /* horizontal padding for mobile */
}
.video-backed-inner p {
  max-width: 900px;
  margin: 0.75rem auto;
  font-size: 1.1rem;
  line-height: 1.75;
}

@media (max-width: 768px){
  .video-backed-section { min-height: 50vh; }
  .video-backed-inner { padding: 2rem 1rem; }
  .video-backed-inner p { font-size: 1.02rem; line-height: 1.6; }
}