/*
 * Little Grins Child Theme — components.css
 * Component-level styles loaded here as we build each section.
 */

/* ============================================================
   HERO
   ============================================================ */

.lg-hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background-color: var(--cream-deep);
}

.lg-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  z-index: 0;
}

.lg-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(44, 24, 12, 0.72) 0%,
    rgba(44, 24, 12, 0.32) 50%,
    rgba(44, 24, 12, 0.08) 100%
  );
  z-index: 1;
}

.lg-hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: var(--space-16) var(--space-6) var(--space-12);
}

.lg-hero__eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #FFFFFF;
  opacity: 0.75;
  margin-bottom: var(--space-4);
}

.lg-hero__heading {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 400;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: var(--space-6);
  max-width: 14ch;
}

.lg-hero__heading em {
  font-style: italic;
  color: var(--gold);
}

.lg-hero__subhead {
  font-family: var(--font-body);
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.65;
  max-width: 42ch;
  margin-bottom: var(--space-8);
}

a.lg-hero__cta {
  display: inline-flex !important;
  align-items: center !important;
}

/* CTA button */
.lg-hero__cta {
  display: block !important;
  width: fit-content !important;
  max-width: 320px !important;
  text-decoration: none !important;
  background-color: var(--rose) !important;
  border: 2px solid var(--rose) !important;
  border-radius: var(--radius-full) !important;
  padding: var(--space-4) var(--space-8) !important;
  min-height: 48px !important;
  cursor: pointer;
  transition: background-color var(--transition-base),
              border-color var(--transition-base),
              box-shadow var(--transition-base) !important;
}

.lg-hero__cta:hover,
.lg-hero__cta:focus-visible {
  background-color: #724855 !important;
  border-color: #724855 !important;
  box-shadow: var(--shadow-lg) !important;
}

/* Inner span becomes the flex container — nothing can override a span's display */
.lg-hero__cta-inner {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: var(--space-3) !important;
  line-height: 1 !important;
}

.lg-hero__cta-text {
  display: inline-block !important;
  font-family: var(--font-body) !important;
  font-size: var(--text-base) !important;
  font-weight: 500 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  color: #FFFFFF !important;
  line-height: 1 !important;
}

.lg-hero__cta-arrow {
  display: inline-block !important;
  font-size: var(--text-base) !important;
  color: #FFFFFF !important;
  line-height: 1 !important;
  transition: transform var(--transition-base);
}

.lg-hero__cta:hover .lg-hero__cta-arrow {
  transform: translateX(3px);
}

/* Scroll indicator */
.lg-hero__scroll {
  position: absolute;
  bottom: var(--space-6);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  color: rgba(255, 255, 255, 0.5);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.lg-hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
  animation: lg-scroll-pulse 2s ease-in-out infinite;
}

@keyframes lg-scroll-pulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50%       { opacity: 1;   transform: scaleY(1.1); }
}

@media (min-width: 768px) {
  .lg-hero__content {
    padding: var(--space-20) var(--space-12) var(--space-16);
    max-width: 760px;
  }
}

@media (min-width: 1024px) {
  .lg-hero__content {
    padding: var(--space-24) var(--space-16) var(--space-20);
    max-width: 900px;
  }
}

/* ============================================================
   ABOUT SUE
   ============================================================ */

.lg-about {
  background-color: var(--cream-deep);
  padding-block: var(--space-16);
}

.lg-about__inner {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-6);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-10);
}

/* Photo */
.lg-about__photo-wrap {
  flex-shrink: 0;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--gold);
  box-shadow: var(--shadow-md);
}

.lg-about__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* Placeholder shown when no photo is set */
.lg-about__photo-placeholder {
  width: 100%;
  height: 100%;
  background-color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lg-about__photo-placeholder svg {
  width: 64px;
  height: 64px;
  stroke: var(--gold);
  fill: none;
  opacity: 0.5;
}

/* Text */
.lg-about__text {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.lg-about__eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-3);
}

.lg-about__heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 400;
  color: var(--brown);
  line-height: 1.15;
  margin-bottom: var(--space-6);
}

.lg-about__heading em {
  font-style: italic;
  color: var(--rose);
}

.lg-about__body {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: 300;
  color: var(--text);
  line-height: 1.75;
  max-width: 52ch;
  margin-bottom: 0;
}

/* Gold divider */
.lg-about__divider {
  width: 48px;
  height: 2px;
  background-color: var(--gold);
  margin-block: var(--space-6);
  border: none;
}

/* Desktop layout — two columns */
@media (min-width: 768px) {
  .lg-about {
    padding-block: var(--space-20);
  }

  .lg-about__inner {
    flex-direction: row;
    align-items: center;
    gap: var(--space-16);
    padding-inline: var(--space-8);
  }

  .lg-about__photo-wrap {
    width: 280px;
    height: 280px;
  }

  .lg-about__text {
    align-items: flex-start;
    text-align: left;
    flex: 1;
  }
}

@media (min-width: 1024px) {
  .lg-about__photo-wrap {
    width: 340px;
    height: 340px;
  }

  .lg-about__inner {
    padding-inline: var(--space-16);
  }
}