/* Ember Mental Health & Wellness — matches brand banner */

:root {
  --cream: #FCF8ED;
  --cream-rgb: 252, 248, 237;
  --cream-warm: #FAF6EB;
  --orange: #E57C2C;
  --orange-rgb: 229, 124, 44;
  --orange-burnt: #BE6129;
  --orange-ring: #D67F3D;
  --gold: #FAAA47;
  --gold-rgb: 250, 170, 71;
  --green: #424031;
  --green-rgb: 66, 64, 49;
  --olive: #464534;
  --olive-rgb: 70, 72, 52;
  --white: #FFFFFF;
  --cream-page: #E0E6D9;
  --cream-page-warm: #D9E0D2;
  --cream-page-rgb: 224, 230, 217;
  --page-bg:
    radial-gradient(ellipse 88% 58% at 50% -8%, rgba(var(--olive-rgb), 0.14) 0%, transparent 52%),
    radial-gradient(ellipse 65% 48% at 88% 95%, rgba(var(--green-rgb), 0.1) 0%, transparent 48%),
    radial-gradient(ellipse 45% 38% at 8% 55%, rgba(var(--gold-rgb), 0.03) 0%, transparent 42%),
    linear-gradient(175deg, var(--cream-page-warm) 0%, var(--cream-page) 42%, #E5EBDF 100%);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  color-scheme: light;
  background-color: var(--cream-page);
}

body {
  font-family: 'Montserrat', sans-serif;
  background: var(--page-bg);
  background-attachment: fixed;
  color: var(--green);
  overflow-x: hidden;
  min-height: 100vh;
}

.landing {
  position: relative;
  min-height: 100vh;
}

/* ── Decorative foliage ── */
.leaf-decoration {
  position: absolute;
  pointer-events: none;
  z-index: 3;
}

.leaf-top {
  top: 0;
  left: 0;
  width: 220px;
}

.leaf-bottom {
  bottom: 5rem;
  left: 0;
  width: 280px;
  opacity: 0.85;
}

.leaf-decoration svg {
  width: 100%;
  height: auto;
}

/* ── Hero: brand left, photo right ── */
.hero {
  display: grid;
  grid-template-columns: 37% 63%;
  position: relative;
  min-height: 72vh;
  overflow: hidden;
  background: transparent;
}

.hero-brand {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 3rem 1.5rem;
  background: transparent;
  position: relative;
  z-index: 1;
  grid-column: 1;
  width: 100%;
}

.brand-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: 380px;
}

.sphere-scene {
  flex-shrink: 0;
  width: 140px;
  height: 140px;
  margin-bottom: 1rem;
  perspective: 1100px;
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  animation: sphere-float 5s ease-in-out infinite;
}

.sphere-scene.is-dragging {
  cursor: grabbing;
}

.sphere {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  will-change: transform;
  --coin-half-depth: 7px;
  --coin-rim: var(--orange-ring);
  --coin-rim-dark: var(--orange-burnt);
  --coin-rim-light: var(--orange);
  --coin-rim-gold: var(--gold);
}

.sphere-edge {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  pointer-events: none;
}

.sphere-segment {
  position: absolute;
  left: 50%;
  top: 50%;
  transform-origin: center center;
  backface-visibility: visible;
  border-radius: 1px;
  background: linear-gradient(
    to bottom,
    var(--coin-rim-gold) 0%,
    var(--coin-rim-light) 22%,
    var(--coin-rim) 50%,
    var(--coin-rim-dark) 78%,
    var(--coin-rim-gold) 100%
  );
  box-shadow:
    inset 1px 0 0 rgba(255, 255, 255, 0.22),
    inset -1px 0 0 rgba(45, 55, 46, 0.28);
}

.sphere-face {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  backface-visibility: hidden;
  overflow: hidden;
  background: var(--cream);
  box-shadow:
    inset -14px -14px 28px rgba(45, 55, 46, 0.14),
    inset 12px 12px 26px rgba(255, 255, 255, 0.88),
    0 10px 32px rgba(45, 55, 46, 0.22);
}

.sphere-face::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  z-index: 2;
  pointer-events: none;
  box-shadow:
    inset 0 0 0 2px rgba(184, 146, 42, 0.55),
    inset 0 0 0 5px rgba(192, 86, 33, 0.18),
    inset 0 0 0 8px rgba(107, 68, 35, 0.12);
}

.sphere-face::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  z-index: 3;
  pointer-events: none;
  background: conic-gradient(
    from 210deg,
    var(--coin-rim-dark),
    var(--coin-rim-gold),
    var(--coin-rim-light),
    var(--coin-rim),
    var(--coin-rim-dark),
    var(--coin-rim-gold),
    var(--coin-rim-light),
    var(--coin-rim-dark)
  );
  -webkit-mask: radial-gradient(
    farthest-side,
    transparent calc(100% - 5px),
    #000 calc(100% - 4px)
  );
  mask: radial-gradient(
    farthest-side,
    transparent calc(100% - 5px),
    #000 calc(100% - 4px)
  );
}

.sphere-front {
  transform: rotateY(0deg) translateZ(var(--coin-half-depth));
}

.sphere-back {
  transform: rotateY(180deg) translateZ(var(--coin-half-depth));
  display: flex;
  align-items: center;
  justify-content: center;
}

.sphere-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.sphere-yinyang {
  width: 78%;
  height: 78%;
}

.sphere-shine {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(
    circle at 32% 28%,
    rgba(255, 255, 255, 0.55) 0%,
    rgba(255, 255, 255, 0.1) 35%,
    transparent 60%
  );
  pointer-events: none;
  transform: translateZ(calc(var(--coin-half-depth) + 1px));
}

@keyframes sphere-float {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -10px; }
}

@media (prefers-reduced-motion: reduce) {
  .sphere-scene {
    animation: none;
    cursor: default;
  }
}

.brand-text {
  text-align: center;
  width: 100%;
}

.brand-name {
  font-family: 'Cinzel', serif;
  font-size: clamp(2.2rem, 5vw, 3.25rem);
  font-weight: 500;
  letter-spacing: 0.28em;
  color: var(--orange);
  padding-left: 0.28em;
  line-height: 1;
}

.brand-subtitle {
  font-size: clamp(0.55rem, 1.2vw, 0.72rem);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--green);
  margin-top: 0.6rem;
}

.slogan-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.25rem 0 0.75rem;
  max-width: 340px;
  width: 100%;
}

.divider-line {
  flex: 1;
  height: 1px;
  background: var(--green);
  opacity: 0.35;
}

.divider-leaf {
  width: 24px;
  height: 12px;
  flex-shrink: 0;
}

.brand-slogan {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(1.3rem, 2.5vw, 1.6rem);
  color: var(--green);
  max-width: 340px;
  width: 100%;
  text-align: center;
}

.hero-photo {
  position: absolute;
  top: 0;
  right: 0;
  width: 63%;
  height: 100%;
  min-height: 72vh;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-photo-img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 72vh;
  object-fit: cover;
  object-position: 55% 42%;
  -webkit-mask-image:
    linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.35) 14%, rgba(0, 0, 0, 0.85) 32%, #000 48%),
    linear-gradient(to bottom, transparent 0%, #000 4%, #000 96%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.35) 14%, rgba(0, 0, 0, 0.85) 32%, #000 48%),
    linear-gradient(to bottom, transparent 0%, #000 4%, #000 96%, transparent 100%);
  mask-composite: intersect;
}

.hero-haze {
  display: none;
}

/* ── Services ── */
.services {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  padding: 2rem 3rem 7.5rem;
  background: transparent;
  margin-top: 0;
  padding-top: 2rem;
  border-top: none;
}

.service-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
}

.service-icon {
  width: 44px;
  height: 44px;
}

.service-item p {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  line-height: 1.55;
  color: var(--green);
}

/* ── Coming Soon ── */
.coming-soon {
  position: absolute;
  bottom: 6.5rem;
  right: 2rem;
  z-index: 5;
  max-width: 250px;
}

.coming-soon-box {
  background: var(--orange);
  color: var(--white);
  padding: 1.4rem 1.6rem;
  box-shadow: 0 6px 24px rgba(192, 86, 33, 0.3);
  clip-path: polygon(3% 6%, 8% 1%, 93% 0%, 98% 5%, 100% 93%, 94% 99%, 5% 100%, 0% 94%);
}

.coming-soon-box h2 {
  font-family: 'Great Vibes', cursive;
  font-size: 1.65rem;
  font-weight: 400;
  margin-bottom: 0.4rem;
}

.coming-soon-box p {
  font-size: 0.72rem;
  line-height: 1.55;
}

.coming-soon-box .heart {
  display: block;
  text-align: center;
  margin-top: 0.6rem;
  font-size: 0.9rem;
}

/* ── Bottom waves ── */
.waves {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100px;
  z-index: 1;
  pointer-events: none;
}

.wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
}

.wave-orange {
  bottom: 14px;
  height: 60px;
  opacity: 0.9;
}

.wave-green {
  bottom: 0;
  height: 80px;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-bottom: 42vh;
  }

  .hero-brand {
    padding: 2.5rem 1.5rem 2rem;
    grid-column: 1;
    align-items: center;
    max-width: none;
  }

  .hero-photo {
    top: auto;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 42vh;
    min-height: 0;
  }

  .hero-photo-img {
    min-height: 100%;
    object-position: center 45%;
    -webkit-mask-image:
      linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.5) 16%, #000 30%, #000 72%, rgba(0, 0, 0, 0.45) 88%, transparent 100%),
      linear-gradient(to right, transparent 0%, #000 6%, #000 94%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-image:
      linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.5) 16%, #000 30%, #000 72%, rgba(0, 0, 0, 0.45) 88%, transparent 100%),
      linear-gradient(to right, transparent 0%, #000 6%, #000 94%, transparent 100%);
    mask-composite: intersect;
  }

  .services {
    grid-template-columns: repeat(2, 1fr);
    padding: 1.5rem 1.5rem 7rem;
    margin-top: 0;
  }

  .coming-soon {
    bottom: 5.5rem;
    right: 50%;
    transform: translateX(50%);
  }
}

@media (max-width: 520px) {
  .sphere-scene {
    width: 120px;
    height: 120px;
    margin-bottom: 0.75rem;
  }

  .brand-name {
    letter-spacing: 0.2em;
    padding-left: 0.2em;
  }

  .services {
    gap: 1rem;
    padding-bottom: 8rem;
  }

  .service-item p {
    font-size: 0.6rem;
  }
}

@media (forced-colors: active) {
  html, body, .landing, .hero-brand, .services,
  .brand-name, .brand-subtitle, .brand-slogan {
    forced-color-adjust: none;
  }

  html, body, .landing, .hero-brand, .services {
    background: var(--page-bg);
    background-color: var(--cream-page);
  }

  .brand-name { color: var(--orange); }
  .brand-subtitle, .brand-slogan { color: var(--green); }
}
