/* ==========================================================================
   home.css — homepage + header/nav styling.

   THEME: cinematic outdoor morning — purple sky into a golden sunrise.
   Removed everything that read as "tech": the grid pattern, the scanline
   sweep, the HUD corner brackets, the monospace labels, the pulsing status
   dot. Nothing left animates except normal hover lifts.

   What's carrying the new "movie-poster morning" feeling — flagged
   "★ CINEMATIC" below:
     1. A real sunrise gradient in the hero: deep purple sky → warm pink →
        glowing gold sun low on the horizon (soft radial glow, no hard lines)
     2. Gradient "sunlit" text on the headline and on the stat numbers —
        the one signature effect, reused a few times instead of scattered
     3. Soft warm drop-shadows everywhere instead of sharp neon edges
     4. A single gradient accent ribbon on cards, replacing the old brackets
     5. A big soft quote mark on the testimonial, for an editorial/movie-
        tagline feel
   ========================================================================== */

html, body {
  margin: 0;
  padding: 0;
  background: #FFF8F0;
  min-height: 100%;
  width: 100%;
  overflow-x: hidden;
}
*, *::before, *::after {
  box-sizing: border-box;
}

:root {
  /* ---- surfaces: warm, bright, sunny daytime base ---- */
  --hp-bg: #FFF8F0;
  --hp-surface: #FFFFFF;
  --hp-surface-alt: #FFEFDD;

  /* ---- ink (used on the light sections) ---- */
  --hp-ink: #2A0E45;
  --hp-ink-muted: #6C5480;

  /* ---- ink used specifically over the dark hero sky ---- */
  --hero-ink: #FFF8F0;
  --hero-ink-muted: rgba(255, 248, 240, 0.82);

  /* ---- accents: purple = interactive color, gold = "sun" color ---- */
  --hp-accent: #9B3FE0;
  --hp-accent-soft: rgba(155, 63, 224, 0.25);
  --hp-accent-2: #FFC857;
  --hp-accent-2-soft: rgba(255, 200, 87, 0.35);
  --hp-sunset-pink: #FF8FB1;

  --hp-border: rgba(139, 47, 201, 0.14);
  --hp-border-strong: rgba(139, 47, 201, 0.3);

  --hp-radius: 14px;
  --font-display: 'Sora', sans-serif;
  --font-body: 'Inter', sans-serif;
}

/* ---------- header / nav ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 248, 240, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hp-border);
  padding: 16px 0;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1160px;
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left));
  padding-right: max(20px, env(safe-area-inset-right));
  width: 100%;
}
.logo h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--hp-ink);
  margin: 0;
  letter-spacing: 0.02em;
}
header nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}
header nav a {
  position: relative;
  display: inline-block;
  padding: 8px 14px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--hp-ink-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}
header nav a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 3px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--hp-accent), var(--hp-accent-2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
header nav a:hover { color: var(--hp-accent); }
header nav a:hover::after { transform: scaleX(1); }
header nav a:focus-visible {
  outline: 2px solid var(--hp-accent);
  outline-offset: 2px;
}
/* header nav li:last-child a {
  background: linear-gradient(120deg, var(--hp-accent), var(--hp-accent-2));
  color: var(--hp-ink);
  border-radius: 999px;
  padding: 8px 18px;
  margin-left: 8px;
  font-weight: 700;
  box-shadow: 0 8px 20px -8px var(--hp-accent-soft);
}
header nav li:last-child a::after { display: none; }
header nav li:last-child a:hover { filter: brightness(1.06); }

@media (max-width: 760px) {
  header .container { flex-direction: column; align-items: flex-start; gap: 12px; }
  header nav li:last-child a { margin-left: 0; }
}*/

/* ---------- base ---------- */
main {
  font-family: var(--font-body);
  color: var(--hp-ink);
  background: var(--hp-bg);
  overflow-x: hidden;
}
main .container { 
  max-width: 1160px; 
  margin: 0 auto; 
  padding-left: max(20px, env(safe-area-inset-left));
  padding-right: max(20px, env(safe-area-inset-right));
  width: 100%;
}
main h1, main h2, main h3 {
  font-family: var(--font-display);
  color: var(--hp-ink);
  line-height: 1.15;
  margin: 0;
  word-break: break-word;
}
main p { 
  color: var(--hp-ink-muted); 
  line-height: 1.6; 
  margin: 0; 
  font-size: clamp(0.95s, 2vw, 1.05rem);
  max-width: 100%;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 2.00rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--hp-accent);
  margin-bottom: 14px;
}

/* Connected Stepper Container */
.step-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 0; /* No gap because steps are connected by lines */
    padding: 60px 20px;
    align-items: center;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;

    margin: 0 auto;       /* Centers the container horizontally */
    max-width: 900px;     /* Prevents it from getting too wide on large screens */
    justify-content: flex-start; /* UPDATED: Changed from center to flex-start so horizontal scrolling allows viewing the first item (No. 1) properly on mobile */
}

.step-container::-webkit-scrollbar { display: none; }

/* Individual Step */
.step-card {
    flex: 0 0 240px;
    scroll-snap-align: center;
    position: relative;
    text-align: center;
    padding: 20px;
    z-index: 1;
}

/* Connecting Line */
.step-card::after {
    content: '';
    position: absolute;
    top: 38%;
    right: -50%;
    width: 100%;
    height: 2px;
    background: #e0e0e0;
    z-index: -1;
}

/* Remove line from last item */
.step-card:last-child::after { display: none; }

/* Step Circle */
.step-number {
    width: 50px;
    height: 50px;
    background: #2c3e50;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-weight: bold;
    border: 4px solid #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Highlight Effect */
.step-card:hover .step-number, 
.step-card:focus-within .step-number {
    background: #3498db;
    transform: scale(1.1);
}

/* FAQ Accordion Styling */
.faq-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
}

.faq-item {
    border-bottom: 1px solid #ddd;
    padding: 20px 0;
}

.faq-question {
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    color: #2c3e50;
}

.faq-answer {
    padding-top: 15px;
    color: #555;
    line-height: 1.6;
}

.faq-answer ul { margin-left: 20px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 13px 28px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(120deg, var(--hp-accent), var(--hp-accent-2));
  color: #2A0E45;
  box-shadow: 0 14px 34px -14px var(--hp-accent-soft), 0 8px 24px -10px var(--hp-accent-2-soft);
}
.btn-primary:hover {
  filter: brightness(1.05);
  box-shadow: 0 18px 40px -12px var(--hp-accent-soft), 0 10px 28px -8px var(--hp-accent-2-soft);
}
/* used on the dark hero sky */
.btn-ghost {
  background: transparent;
  color: var(--hero-ink);
  border-color: rgba(255, 248, 240, 0.5);
}
.btn-ghost:hover { border-color: var(--hp-accent-2); color: var(--hp-accent-2); }
.btn-outline {
  background: transparent;
  color: var(--hp-accent);
  border-color: var(--hp-accent);
}
.btn-outline:hover { background: var(--hp-accent); color: #fff; }
.btn-lg { padding: 16px 34px; font-size: 1rem; white-space: nowrap; }

.text-link { color: var(--hp-accent); font-weight: 700; text-decoration: none; font-size: 0.9rem; }
.text-link:hover { text-decoration: underline; }

/* ---------- image placeholder ---------- */
/* Plain soft gradient wash now — no dot-grid, no scanline animation */
.img-placeholder {
  position: relative;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--hp-radius);
  border: 1px dashed var(--hp-border-strong);
  background: linear-gradient(135deg, #FFF1DC, #FDE3EE);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.img-placeholder::after {
  content: attr(data-label);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--hp-accent);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--hp-border);
  border-radius: 999px;
  padding: 6px 14px;
  white-space: nowrap;
}
.img-placeholder.placeholder-sm { aspect-ratio: 16 / 11; }
.img-placeholder.placeholder-avatar {
  width: 80px; height: 80px; aspect-ratio: 1 / 1;
  border-radius: 50%; flex-shrink: 0;
}
.img-placeholder.placeholder-avatar::after { display: none; }
/* the hero shot floats against the dark sky with a soft warm glow */
.hero-media .img-placeholder {
  border-color: rgba(255, 248, 240, 0.4);
  box-shadow: 0 30px 70px -25px rgba(0,0,0,0.5), 0 0 90px -15px var(--hp-accent-2-soft);
}

.responsive-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 8px; /* Matches your design radius */
}

/* Ensure the parent containers have a defined height */
.hero-media, .service-card, .about-grid .img-placeholder {
    overflow: hidden;
}

/* ---------- hero ---------- */
/* ★ CINEMATIC: the sunrise itself — deep purple night sky at the top,
   softening through warm pink, into a glowing gold sun low on one side.
   Everything here is static gradients, nothing animated. */
.hero {
  position: relative;
  padding: 130px 0 100px;
  background:
    radial-gradient(circle 560px at 82% 96%, #FFEFC2 0%, var(--hp-accent-2) 26%, var(--hp-sunset-pink) 50%, transparent 74%),
    radial-gradient(ellipse 700px 480px at 8% 6%, rgba(255, 143, 177, 0.22), transparent 62%),
    linear-gradient(180deg, #2A0E45 0%, #6C2A82 42%, #C24E96 72%, #FFB35C 100%);
  overflow: hidden;
}
.hero .container { position: relative; z-index: 1; }
.hero-grid { 
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
  gap: 56px; 
  align-items: center; 
  width: 100%; 
}
/* ★ CINEMATIC: gradient "sunlit" title text, like a warm-lit movie logo */
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem); 
  margin-bottom: 18px;
  background: linear-gradient(100deg, #FFF6E0 0%, var(--hp-accent-2) 45%, var(--hp-sunset-pink) 85%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 26px rgba(255, 200, 87, 0.35));
}
.hero .lead { font-size: 1.05rem; max-width: 46ch; margin-bottom: 30px; color: var(--hero-ink-muted); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.hero-trust { font-size: 0.85rem; color: var(--hero-ink-muted); }
.hero .eyebrow { color: var(--hp-accent-2); }

/* ---------- stats ---------- */
.stats-bar {
  background: var(--hp-surface);
  border-top: 1px solid var(--hp-border);
  border-bottom: 1px solid var(--hp-border);
  padding: 44px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); 
  gap: 24px; 
  justify-content: center; 
  text-align: center;
  width: 100%; 
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center; 
  gap: 4px;
  border-left: 1px solid var(--hp-border);
  padding-left: 24px;
}

/* Remove the border from the first item so it looks truly centered */
.stat:first-child {
  border-left: none;
  padding-left: 0;
}
/* ★ CINEMATIC: same gradient-text treatment as the headline, reused here
   so the numbers feel like part of the same sunlit palette */
.stat strong {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 700;
  background: linear-gradient(120deg, var(--hp-accent), var(--hp-accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat span { font-size: 0.82rem; letter-spacing: 0.02em; color: var(--hp-ink-muted); }

/* ---------- services ---------- */
.services { padding: 100px 0; }
.section-head { max-width: 56ch; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); }
.services-grid { 
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); 
  gap: 32px; 
  width: 100%; 
}
.service-card {
  position: relative;
  background: var(--hp-surface);
  border: 1px solid var(--hp-border);
  border-radius: var(--hp-radius);
  padding: 32px 24px 24px;
  overflow: hidden;
  box-shadow: 0 20px 45px -28px rgba(139, 47, 201, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  width: 100%; 
  max-width: 100%; 
}
.service-card:hover { transform: translateY(-4px); box-shadow: 0 26px 55px -24px rgba(139, 47, 201, 0.4); }
/* single gradient ribbon replaces the old HUD corner brackets */
.service-card::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--hp-accent), var(--hp-accent-2));
}
.service-card h3 { font-size: 1.15rem; margin: 20px 0 10px; }
.service-card p { font-size: 0.92rem; margin-bottom: 14px; }

/* ---------- about ---------- */
.about { padding: 100px 0; background: var(--hp-surface-alt); }
.about-grid {
    display: block; /* Removes the grid column restriction entirely */
    width: 100%;    /* Ensures the container takes full width */
}

.about-copy {
    width: 100%;    /* Makes the text block fill the section */
    max-width: 1200px; /* Adjust this to control how wide the text block gets */
    margin: 0 auto;    /* Centers it */
}
.check-list { list-style: none; padding: 0; margin: 0 0 28px; display: flex; flex-direction: column; gap: 12px; }
.check-list li { position: relative; padding-left: 32px; color: var(--hp-ink); font-size: 0.96rem; }
.check-list li::before {
  content: "✓";
  position: absolute; left: 0; top: -2px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: linear-gradient(120deg, var(--hp-accent), var(--hp-accent-2));
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

/* ---------- testimonial ---------- */
.testimonial { padding: 96px 0; }
.testimonial-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: 760px;
  margin: 0 auto;
  background: var(--hp-surface);
  border: 1px solid var(--hp-border);
  border-radius: 22px;
  padding: 44px 40px 36px;
  box-shadow: 0 24px 55px -30px rgba(139, 47, 201, 0.38);
  width: 100%; 
  box-sizing: border-box; 
}
/* ★ CINEMATIC: an oversized soft gradient quote mark — a small editorial,
   "movie tagline" touch instead of a HUD panel frame */
.testimonial-card::before {
  content: "\201C";
  position: absolute; top: -4px; left: 28px;
  font-family: var(--font-display);
  font-size: 4.5rem;
  line-height: 1;
  background: linear-gradient(120deg, var(--hp-accent), var(--hp-accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0.55;
}
.testimonial blockquote { margin: 0; }
.testimonial blockquote p { font-family: var(--font-display); font-size: 1.15rem; color: var(--hp-ink); margin-bottom: 12px; }
.testimonial cite { font-style: normal; font-size: 0.85rem; color: var(--hp-ink-muted); }

/* ---------- CTA banner ---------- */
.cta-banner {
  position: relative;
  background: linear-gradient(135deg, #3B1550 0%, #7A2E86 55%, #C24E96 100%);
  padding: 76px 0;
  overflow: hidden;
}
/* a single soft glowing blob standing in for the "sun," echoing the hero */
.cta-banner::before {
  content: "";
  position: absolute;
  width: 520px; height: 520px;
  right: -140px; bottom: -200px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--hp-accent-2) 0%, transparent 70%);
  opacity: 0.35;
  filter: blur(10px);
  pointer-events: none;
}
.cta-grid {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.cta-banner h2 { color: #FFF8F0; font-size: clamp(1.5rem, 2.4vw, 2rem); margin-bottom: 8px; }
.cta-banner p { color: rgba(255, 248, 240, 0.82); max-width: 46ch; }

/* ---------- footer ---------- */
.site-footer {
  position: relative;
  background: #2A0E45;
  padding: 56px 0 24px;
  font-family: var(--font-body);
}
.site-footer::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--hp-accent), var(--hp-accent-2), transparent);
  opacity: 0.7;
}
.footer-grid {
  padding-left: max(20px, env(safe-area-inset-left)); 
  padding-right: max(20px, env(safe-area-inset-right)); 
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); 
  gap: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  width: 100%; 
  max-width: 1160px; 
  margin: 0 auto; 
}
.footer-brand h3 { color: #FFF8F0; font-family: var(--font-display); margin-bottom: 10px; }
.footer-brand p { color: rgba(255, 248, 240, 0.6); font-size: 0.9rem; max-width: 32ch; }
.site-footer h4 { color: #FFF8F0; font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.site-footer li { color: rgba(255, 248, 240, 0.65); font-size: 0.92rem; }
.site-footer a { color: rgba(255, 248, 240, 0.65); text-decoration: none; }
.site-footer a:hover { color: var(--hp-accent-2); }
.footer-bottom { 
  padding-top: 20px; 
  font-size: 0.8rem; 
  color: rgba(255, 248, 240, 0.4); 
  max-width: 1160px;
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left));
  padding-right: max(20px, env(safe-area-inset-right));
}

/* ---------- focus & motion ---------- */
main a:focus-visible, .btn:focus-visible {
  outline: 2px solid var(--hp-accent);
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  .btn, .service-card { transition: none; }
}

/* ==========================================================================
   Mobile Navigation Menu (Added for flexible mobile views)
   ========================================================================== */

.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 60;
}

.menu-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--hp-ink);
  margin: 5px 0;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ---------- responsive ---------- */
@media (max-width: 768px) {
  /* Show the toggle button */
  .menu-toggle {
    display: block;
  }

  /* Hide and restructure the nav list for mobile */
  header nav ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--hp-surface);
    border-bottom: 1px solid var(--hp-border);
    flex-direction: column;
    padding: 20px;
    box-shadow: 0 16px 30px -10px rgba(42, 14, 69, 0.15);
  }

  header nav ul.is-open {
    display: flex;
  }

  header nav a {
    display: block;
    width: 100%;
    text-align: center;
    padding: 12px 24px;
    font-size: 1.1rem;
  }

  header nav a::after {
    display: none; 
  }
  
  .menu-toggle.is-active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .menu-toggle.is-active span:nth-child(2) {
    opacity: 0;
  }
  .menu-toggle.is-active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
  
  .hero {
    padding: 80px 0 60px;
  }
  
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
    text-align: center;
  }

  .about-grid .img-placeholder { order: -1; }
  .cta-grid { flex-direction: column; align-items: flex-start; }
  .testimonial-card { flex-direction: column; text-align: center; padding: 32px 24px; }
  
  /* UPDATED: Allows horizontal scrollable steps/flowcharts to correctly anchor to the left side on mobile, so step no. 1 is fully visible and scrollable */
  .step-container {
    justify-content: flex-start;
    padding: 40px 15px;
  }
}