/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  color: #363535;
  background: #FFFDFA;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

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

ul {
  list-style: none;
}

/* ============================================================
   TYPOGRAPHY HELPERS
   ============================================================ */
h1, h2, h3 {
  font-weight: 700;
  line-height: 1.15;
}

h1 {
  font-size: clamp(2rem, 4vw, 3.25rem);
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  margin-bottom: 2.5rem;
}

h3 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

p {
  font-weight: 500;
  line-height: 1.7;
  font-size: 0.95rem;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary {
  display: inline-block;
  background: #E47125;
  color: #FFFDFA;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.75rem 1.75rem;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, opacity 0.2s ease;
  letter-spacing: 0.02em;
}

.btn-primary:hover {
  background: #c9611d;
}

/* ============================================================
   NAV
   ============================================================ */
#main-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background 0.3s ease;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 4%;
  max-width: 1400px;
  margin: 0 auto;
}

/* Logo handling */
.nav-logo {
  display: flex;
  align-items: center;
}

.nav-logo img {
  height: 1rem;
  width: auto;
}

.logo-black {
  display: none;
}

.logo-white {
  display: block;
}

/* Mobile logos – hidden on tablet/desktop, shown only in ≤768px breakpoint */
.logo-mobile-light {
  display: none !important;
}

.logo-mobile-dark {
  display: none !important;
}

/* Hamburger button – hidden on desktop */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  order: 1;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #FFFDFA;
  border-radius: 2px;
  transition: background 0.3s ease;
}

#main-nav.scrolled .nav-hamburger span {
  background: #363535;
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  color: #FFFDFA;
  font-weight: 500;
  font-size: 0.9rem;
  transition: opacity 0.2s ease;
}

.nav-links a:hover {
  opacity: 0.75;
}


/* SCROLLED STATE */
#main-nav.scrolled {
  background: #FFFDFA;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

#main-nav.scrolled .nav-links a {
  color: #363535;
}


#main-nav.scrolled .logo-white {
  display: none;
}

#main-nav.scrolled .logo-black {
  display: block;
}


/* ============================================================
   HERO
   ============================================================ */
#hero {
  position: sticky;
  top: 0;
  z-index: 0;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: flex-start;
  overflow: hidden;
}

/* Background image – covers the full hero */
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  display: block;
  pointer-events: none;
  z-index: 0;
}

/* Star watermark */
.hero-star {
  position: absolute;
  right: -5%;
  top: 50%;
  transform: translateY(-50%);
  width: 55%;
  opacity: 0.05;
  pointer-events: none;
  z-index: 2;
}

/* Mobile-only static logo inside hero – hidden on desktop/tablet */
.mobile-hero-logo {
  display: none;
}

/* Hero text – left edge mirrors nav-inner's max-width centering */
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
  padding: 18vh 0 0;
  margin-left: max(4%, calc((100vw - 1400px) / 2 + 56px));
  color: #FFFDFA;
}

.hero-content h1 {
  margin-bottom: 1.75rem;
  font-weight: 300;
}

.hero-content p {
  font-weight: 400;
  color: rgba(255, 253, 250, 0.88);
  margin-bottom: 1rem;
  font-size: 1rem;
}

.hero-question {
  font-weight: 400 !important;
  color: #FFFDFA !important;
  font-size: 1.05rem !important;
  margin-bottom: 2rem !important;
}

.hero-content .btn-primary {
  margin-top: 0.5rem;
}

/* ============================================================
   CONTENT WRAPPER (scrolls over hero)
   ============================================================ */
#content-wrapper {
  position: relative;
  z-index: 1;
  background: #FFFDFA;
}

/* ============================================================
   SECTION COMMON
   ============================================================ */
.section-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 5rem 4%;
}

/* ============================================================
   WALKING IN SUNSHINE
   ============================================================ */
#walking-in-sunshine {
  background: #FFFDFA;
}


.wis-inner {
  display: flex;
  align-items: center;
  gap: 4rem;
  position: relative;
}

.wis-inner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 4%;
  right: 4%;
  height: 2px;
  background: #E47125;
}

.wis-icon {
  flex: 0 0 auto;
}

.wis-icon img {
  width: 160px;
  height: 160px;
  object-fit: contain;
}

.wis-text {
  flex: 1;
}

.wis-heading {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #E47125;
  margin-bottom: 1.25rem;
}

.wis-text p {
  margin-bottom: 1rem;
  max-width: 680px;
}

.wis-text p:last-child {
  margin-bottom: 0;
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
#testimonials {
  background: #FFFDFA;
  position: relative;
  display: flex;
  align-items: stretch;
  min-height: 420px;
}

/* Shared star spanning testimonials + walking-in-sunshine */
.testimonials-wis-wrapper {
  position: relative;
  overflow: hidden;
}

.section-star {
  position: absolute;
  right: -27.5%;
  top: 50%;
  transform: translateY(-50%);
  width: 55%;
  opacity: 0.07;
  pointer-events: none;
  z-index: 2;
}

.testimonials-content {
  position: relative;
  z-index: 1;
  max-width: 1400px;
  margin: 0 auto;
  padding: 5rem 4% 4rem;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* Carousel – uses native scroll-snap so mobile swiping works without JS */
.carousel {
  width: 72%;
  overflow-x: scroll;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
}

.carousel::-webkit-scrollbar {
  display: none; /* Chrome / Safari */
}

.carousel-track {
  display: flex;
}

.carousel-slide {
  flex: 0 0 100%;
  padding-right: 1rem;
  scroll-snap-align: start;
}

.carousel-slide blockquote {
  font-family: 'Vollkorn', Georgia, serif;
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
  line-height: 1.75;
  color: #363535;
  margin-bottom: 1.75rem;
  font-style: italic;
}

.carousel-slide cite {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-style: normal;
}

.cite-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: #363535;
}

.cite-role {
  font-size: 0.875rem;
  color: #363535;
  opacity: 0.75;
}

/* Dots */
.carousel-dots {
  display: flex;
  gap: 0.6rem;
  margin-top: 2rem;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid #E47125;
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s ease;
}

.dot.active {
  background: #E47125;
}

/* ============================================================
   WE HELP YOU WITH
   ============================================================ */
#we-help {
  background: #FFFDFA;
}

#we-help h2,
#how-we-work h2,
#about h2 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

#we-help h2::after,
#how-we-work h2::after,
#about h2::after {
  content: '';
  flex: 1;
  height: 2px;
  background: #E47125;
}

#we-help h2 {
  color: #E47125;
}

.we-help-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.help-card {
  background: #FFFDFA;
  padding: 2rem 1.5rem;
  box-shadow: 0 4px 24px rgba(54, 53, 53, 0.1);
}

.help-card .card-icon {
  width: 56px;
  height: 56px;
  object-fit: contain;
  margin-bottom: 1.25rem;
}

.help-card h3 {
  color: #363535;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.help-card p {
  font-size: 0.875rem;
}

/* ============================================================
   HOW WE WORK WITH YOU
   ============================================================ */
#how-we-work {
  background: #FFFDFA;
}

#how-we-work h2 {
  color: #E47125;
}

.how-we-work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.work-item .card-icon {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 1.25rem;
}

.work-item h3 {
  color: #363535;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.work-item p {
  font-size: 0.875rem;
}

/* ============================================================
   ABOUT US
   ============================================================ */
#about {
  background: #FFFDFA;
  position: relative;
}

#about h2 {
  color: #E47125;
  position: relative;
  z-index: 1;
}

/* Wrapper lets the star span both About and Constellation */
.about-constellation-wrapper {
  position: relative;
  overflow: hidden;
}

.about-bg-star {
  position: absolute;
  left: -20%;
  top: 50%;
  transform: translateY(-50%);
  width: 75%;
  opacity: 0.07;
  pointer-events: none;
  z-index: 2;
}

.about-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
  position: relative;
  z-index: 1;
}

.about-text {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.about-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* ============================================================
   DS30 CONSTELLATION
   ============================================================ */
#constellation {
  background: #FFFDFA;
  position: relative;
}

/* Tighten gap between About Us and Constellation */
#constellation .section-inner {
  padding-top: 0.5rem;
}

#constellation h2 {
  color: #363535;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.7;
  font-style: italic;
}

.constellation-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.constellation-card {
  background: #FFFDFA;
  padding: 2rem 1.5rem;
  box-shadow: 0 4px 24px rgba(54, 53, 53, 0.08);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  z-index: 3;
}

.constellation-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(54, 53, 53, 0.1);
  margin-bottom: 1.25rem;
  flex-shrink: 0;
}

.constellation-photo {
  object-fit: cover;
  object-position: center top;
}

.constellation-name {
  font-size: 1rem;
  font-weight: 700;
  color: #363535;
  margin-bottom: 0.75rem;
}

.constellation-card p {
  font-size: 0.8rem;
  color: #363535;
}

/* ============================================================
   FOOTER CTA
   ============================================================ */
.footer-cta {
  background: #150034;
  color: #FFFDFA;
}

.footer-cta-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2rem;
}

.footer-cta-tagline {
  color: #FFFDFA !important;
  font-size: 1.6rem !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  margin-bottom: 1.5rem !important;
}

.footer-cta p {
  color: rgba(255, 253, 250, 0.88);
  font-size: 1.3rem;
  font-weight: 400;
  max-width: 640px;
  line-height: 1.7;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: #150034;
  border-top: 1px solid #D9C5FF;
}

.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2.5rem 4%;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-logo {
  height: 14px;
  width: auto;
}

.footer-copy {
  color: rgba(255, 253, 250, 0.7);
  font-size: 0.9rem;
  font-weight: 400;
  margin-left: auto;
}

/* Footer email link */
.footer-email {
  color: #D9C5FF;
  text-decoration: underline;
  font-size: 1rem;
  font-weight: 500;
}

.footer-email:hover {
  opacity: 0.8;
}


/* ============================================================
   MAILTO FALLBACK TOAST
   ============================================================ */
.mailto-toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(calc(100% + 3rem));
  background: #363535;
  color: #FFFDFA;
  padding: 0.9rem 1.25rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
  z-index: 200;
  transition: transform 0.35s ease;
  max-width: 90vw;
  flex-wrap: wrap;
}

.mailto-toast.visible {
  transform: translateX(-50%) translateY(0);
}

.mailto-toast-msg {
  color: rgba(255, 253, 250, 0.85);
}

.mailto-toast-copy {
  background: #E47125;
  color: #FFFDFA;
  border: none;
  padding: 0.35rem 0.85rem;
  border-radius: 4px;
  font-size: 0.825rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease;
  white-space: nowrap;
}

.mailto-toast-copy:hover {
  background: #c9611d;
}

.mailto-toast-copy.copied {
  background: #2e7d32;
}

.mailto-toast-close {
  background: none;
  border: none;
  color: rgba(255, 253, 250, 0.5);
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
  padding: 0;
  margin-left: 0.25rem;
  transition: color 0.2s ease;
}

.mailto-toast-close:hover {
  color: #FFFDFA;
}

/* ============================================================
   RESPONSIVE – TABLET (≤ 1024px)
   ============================================================ */
@media (max-width: 1024px) {
  .we-help-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .constellation-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .carousel {
    width: 85%;
  }

  .wis-inner {
    gap: 2.5rem;
  }

  .wis-icon img {
    width: 120px;
    height: 120px;
  }
}

/* ============================================================
   RESPONSIVE – MOBILE (≤ 768px)
   ============================================================ */
@media (max-width: 768px) {
  /* Walking in Sunshine */
  .wis-inner {
    flex-direction: column;
    gap: 2rem;
    align-items: flex-start;
  }

  .wis-icon img {
    width: 100px;
    height: 100px;
  }

  /* Hide entire nav on mobile – replaced by static logo in hero */
  #main-nav {
    display: none !important;
  }

  /* Compact icon logo inside hero – visible only on mobile, matches h1 size */
  .mobile-hero-logo {
    display: block;
    position: absolute;
    top: max(1rem, calc(env(safe-area-inset-top) + 0.75rem));
    left: 5%;
    height: 1.5rem;
    width: auto;
    z-index: 3;
    pointer-events: none;
  }

  /* Hero – top padding clears the logo and adds breathing room */
  .hero-content {
    margin-left: 0;
    padding: max(7rem, calc(env(safe-area-inset-top) + 6.5rem)) 5% 0;
  }

  .hero-star {
    width: 90%;
    right: -20%;
    opacity: 0.04;
  }

  /* Testimonials */
  .testimonials-content {
    align-items: flex-start;
  }

  .carousel {
    width: 100%;
  }

  .section-star {
    width: 90%;
    right: -35%;
  }

  .about-bg-star {
    width: 90%;
    left: -25%;
  }

  .about-body {
    grid-template-columns: 1fr;
  }

  .about-photo {
    order: -1;
  }

  /* Constellation – horizontal scroll on mobile */
  .constellation-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 1rem;
    padding-bottom: 1rem;
  }

  .constellation-card {
    flex: 0 0 70vw;
    scroll-snap-align: start;
  }

  /* Tighten gap between About Us and Constellation on mobile */
  #constellation .section-inner {
    padding-top: 0.25rem;
  }

  /* We help you with – horizontal scroll */
  .we-help-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 1rem;
    padding-bottom: 1rem;
  }

  .we-help-grid::-webkit-scrollbar {
    height: 4px;
  }

  .we-help-grid::-webkit-scrollbar-track {
    background: rgba(54,53,53,0.08);
  }

  .we-help-grid::-webkit-scrollbar-thumb {
    background: #E47125;
    border-radius: 2px;
  }

  .help-card {
    flex: 0 0 67vw;
    scroll-snap-align: start;
  }

  /* How we work with you – horizontal scroll */
  .how-we-work-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 1rem;
    padding-bottom: 1rem;
  }

  .how-we-work-grid::-webkit-scrollbar {
    height: 4px;
  }

  .how-we-work-grid::-webkit-scrollbar-track {
    background: rgba(54,53,53,0.08);
  }

  .how-we-work-grid::-webkit-scrollbar-thumb {
    background: #E47125;
    border-radius: 2px;
  }

  .work-item {
    flex: 0 0 75vw;
    scroll-snap-align: start;
  }

  /* Sections */
  .section-inner {
    padding: 3.5rem 5%;
  }

  .footer-cta-inner {
    gap: 1.5rem;
  }

  .footer-copy {
    margin-left: 0;
    width: 100%;
  }
}

/* ============================================================
   TRUSTED BY
   ============================================================ */
#trusted-by {
  margin-top: 3rem;
  width: 100%;
  align-self: stretch;
}

.trusted-by-inner {
  text-align: center;
}

.trusted-by-label {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #363535;
  opacity: 0.45;
  margin-bottom: 2.5rem;
}

.trusted-by-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 3rem 5rem;
  width: 100%;
}

.trusted-logo {
  height: 64px;
  width: auto;
  object-fit: contain;
  filter: grayscale(100%) opacity(0.4);
  transition: filter 0.2s ease;
}

.trusted-logo:hover {
  filter: grayscale(100%) opacity(0.65);
}

.trusted-logo--sm {
  height: 44px;
}

@media (max-width: 768px) {
  .trusted-by-logos {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 0 2.5rem;
    padding-bottom: 0.75rem;
  }

  .trusted-by-logos::-webkit-scrollbar {
    height: 4px;
  }

  .trusted-by-logos::-webkit-scrollbar-track {
    background: rgba(54,53,53,0.08);
  }

  .trusted-by-logos::-webkit-scrollbar-thumb {
    background: #E47125;
    border-radius: 2px;
  }

  .trusted-logo {
    flex: 0 0 auto;
    width: 32vw;
    height: 44px;
    object-fit: contain;
    scroll-snap-align: start;
  }

  .trusted-logo--sm {
    height: 32px;
  }
}

/* ============================================================
   SHORT VIEWPORT (landscape phone etc.)
   ============================================================ */
@media (max-height: 600px) {
  .hero-content {
    padding-top: 5rem;
  }
}

/* ============================================================
   RESPONSIVE – SMALL MOBILE (≤ 480px)
   ============================================================ */
@media (max-width: 480px) {
  h2 {
    margin-bottom: 1.75rem;
  }

  .help-card {
    flex: 0 0 72vw;
  }

  .work-item,
  .constellation-card {
    flex: 0 0 78vw;
  }
}

/* ============================================================
   KEYBOARD FOCUS INDICATORS
   ============================================================ */
a:focus-visible,
button:focus-visible {
  outline: 2px solid #E47125;
  outline-offset: 2px;
  border-radius: 2px;
}

/* ============================================================
   CARD HOVER STATES (desktop)
   ============================================================ */
.help-card:hover {
  box-shadow: 0 8px 32px rgba(54, 53, 53, 0.15);
  transform: translateY(-2px);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

/* ============================================================
   HORIZONTAL SCROLL GRADIENT HINTS (mobile)
   Overlays a right-edge fade on the sections that contain
   horizontal-scroll card rows, hinting there are more cards.
   ============================================================ */
@media (max-width: 768px) {
  #we-help,
  #how-we-work,
  #constellation {
    position: relative;
  }

  #we-help::after,
  #how-we-work::after,
  #constellation::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 3rem;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 253, 250, 0.85));
    pointer-events: none;
    z-index: 5;
  }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .mailto-toast {
    transition: none;
  }

  .help-card:hover {
    transform: none;
  }
}
