/* =============================================================================
   HOMEPAGE.CSS — CR8TIF Homepage Specific Styles
   Hero, pillars (editorial), process teaser, services, quote, dividers
   ============================================================================= */

/* ---------------------------------------------------------------------------
   Hero — Full-width image with text overlay
   --------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg-dark);
}

.hero__container {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__image {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero__image-wrapper {
  width: 100%;
  height: 100%;
}

.hero__image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

/* Dark overlay for text readability — warm luxury gradient */
.hero__image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(45, 38, 32, 0.5) 0%,
    rgba(45, 38, 32, 0.55) 40%,
    rgba(45, 38, 32, 0.65) 100%
  );
  pointer-events: none;
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 8rem var(--side-pad) 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 800px;
}

/* Remove the vertical decorative line */
.hero__content::before {
  display: none;
}

.hero__title {
  font-family: var(--font-display);
  letter-spacing: -0.04em;
  font-size: clamp(4rem, 7vw, 7rem);
  font-weight: 600;
  line-height: 1.0;
  color: #fff;
  margin-bottom: 2rem;
  text-shadow: 0 4px 40px rgba(0, 0, 0, 0.5);
}

.hero__subtitle {
  font-family: var(--font-body);
  font-size: clamp(1.15rem, 1.6vw, 1.4rem);
  font-weight: 300;
  line-height: 1.6;
  color: #fff;
  margin-bottom: 1.5rem;
  max-width: 560px;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--gold-dim);
}

.hero__body {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.8);
  max-width: 520px;
  margin-bottom: 2.5rem;
}

/* Override button colors for dark hero */
.hero .btn--primary {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--bg-dark);
}
.hero .btn--primary:hover {
  background: #fff;
  border-color: #fff;
  color: var(--bg-dark);
}

/* Override section-label for legibility on hero image */
.hero .section-label {
  color: #fff;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.32em;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.7), 0 1px 3px rgba(0, 0, 0, 0.55);
}

/* Hero scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-dark-muted);
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  z-index: 2;
}

.hero__scroll-line {
  width: 1px;
  height: 36px;
  background: var(--gold);
  animation: float 2s ease-in-out infinite;
}

/* ---------------------------------------------------------------------------
   Section Dividers — Decorative diamond with extending lines
   --------------------------------------------------------------------------- */
.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 0;
  position: relative;
}

.section-divider::before,
.section-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  max-width: 200px;
}

.section-divider::before {
  background: linear-gradient(to right, transparent, var(--gold));
  margin-right: 1.5rem;
}

.section-divider::after {
  background: linear-gradient(to left, transparent, var(--gold));
  margin-left: 1.5rem;
}

.section-divider__diamond {
  color: var(--gold);
  font-size: 0.65rem;
  line-height: 1;
  opacity: 0.7;
}

/* Divider on dark backgrounds */
.section-divider.bg-dark-alt {
  background: var(--bg-dark-alt);
}

.section-divider.bg-dark-alt .section-divider__diamond {
  color: var(--gold);
}

/* ---------------------------------------------------------------------------
   Section Headers — Centered variant
   --------------------------------------------------------------------------- */
.section-header--centered {
  text-align: center;
}

.section-header--centered .section-label {
  justify-content: center;
}

.section-header--centered .section-label::before {
  display: none;
}

/* Gold underline decoration on section titles */
.section-title {
  position: relative;
  display: inline-block;
}

.section-header--centered .section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 2px;
  background: var(--gold);
  margin: 1.25rem auto 0;
}

/* ---------------------------------------------------------------------------
   Pillars Section — Full-width alternating editorial layout
   --------------------------------------------------------------------------- */
.pillars {
  padding: var(--section-pad) var(--side-pad);
  position: relative;
  overflow: hidden;
}

/* Subtle depth gradient on light-alt background */
.pillars::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at 50% 30%,
    rgba(196, 162, 101, 0.04) 0%,
    transparent 60%
  );
  pointer-events: none;
}

.pillars .section-header {
  text-align: center;
  margin-bottom: clamp(4rem, 6vw, 6rem);
}

.pillars .section-header .section-label {
  justify-content: center;
}

.pillars .section-header .section-label::before {
  display: none;
}

/* Pillar Row — Full-width horizontal band */
.pillar__row {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 0;
  max-width: var(--max-w);
  margin: 0 auto;
  min-height: 500px;
  position: relative;
}

.pillar__row + .pillar__row {
  margin-top: clamp(3rem, 5vw, 5rem);
}

/* Right variant: flip the layout */
.pillar__row--right {
  grid-template-columns: 0.8fr 1.2fr;
}

/* Image side */
.pillar__image-side {
  position: relative;
  overflow: hidden;
}

.pillar__image-wrapper {
  overflow: hidden;
  position: relative;
  height: 100%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

.pillar__image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.pillar__row:hover .pillar__image-wrapper img {
  transform: scale(1.04);
}

/* Gold frame accent on image */
.pillar__image-wrapper::before {
  content: '';
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  bottom: 12px;
  border: 1px solid rgba(196, 162, 101, 0.2);
  z-index: 2;
  pointer-events: none;
  transition: border-color 0.4s ease;
}

.pillar__row:hover .pillar__image-wrapper::before {
  border-color: rgba(196, 162, 101, 0.4);
}

/* Text side */
.pillar__text-side {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(3rem, 6vw, 5rem) clamp(3rem, 6vw, 5rem);
  border-left: 3px solid var(--gold);
  position: relative;
}

/* For right-aligned image, border goes on the right side of text */
.pillar__row--right .pillar__text-side {
  border-left: none;
  border-right: 3px solid var(--gold);
}

.pillar__number {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 5vw, 5rem);
  font-weight: 600;
  color: var(--gold-dim);
  line-height: 1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
  display: block;
}

.pillar__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
  line-height: 1.2;
  position: relative;
  padding-bottom: 1.25rem;
}

/* Gold underline under pillar title */
.pillar__title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--gold);
}

.pillar__desc {
  font-size: 1rem;
  line-height: 1.9;
  color: var(--text-dark-muted);
  max-width: 440px;
}

/* ---------------------------------------------------------------------------
   Process Teaser — Step Cards with Gold Circles
   --------------------------------------------------------------------------- */
.process-teaser {
  padding: var(--section-pad) var(--side-pad);
  position: relative;
}

/* Subtle depth gradient */
.process-teaser::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at 50% 50%,
    rgba(196, 162, 101, 0.03) 0%,
    transparent 60%
  );
  pointer-events: none;
}

.process-teaser .section-header {
  margin-bottom: clamp(3.5rem, 5vw, 5rem);
}

.process-teaser__steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.5rem, 2.5vw, 2.5rem);
  position: relative;
  max-width: var(--max-w);
  margin: 0 auto;
}

/* Hide old line elements */
.process-teaser__line {
  display: none;
}

.process-teaser__steps::before {
  display: none;
}

.process-teaser__step {
  text-align: center;
  position: relative;
  z-index: 1;
  transition: transform 0.4s ease;
}

.process-teaser__step:hover {
  transform: translateY(-4px);
}

/* Image wrapper — dominant element of the quadriptych */
.process-teaser__image {
  position: relative;
  overflow: hidden;
  /* Landscape ratio matches the room/sofa photos (4:3) so furniture isn't
     cropped at the sides — earlier 4:5 portrait cut the sofas off. */
  aspect-ratio: 4 / 3;
  margin-bottom: 1.5rem;
  background: rgba(42, 37, 32, 0.04);
}

.process-teaser__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.process-teaser__step:hover .process-teaser__image img {
  transform: scale(1.04);
}

/* Subtle bottom gradient over image so circle is legible */
.process-teaser__image::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 40%;
  background: linear-gradient(to top, rgba(42, 37, 32, 0.45), transparent);
  pointer-events: none;
}

/* Step number circle — overlay on image bottom-left */
.process-teaser__circle {
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.05em;
  z-index: 2;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.process-teaser__step:hover .process-teaser__circle {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--bg-dark);
}

/* Hide old number element */
.process-teaser__number {
  display: none;
}

.process-teaser__title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.process-teaser__desc {
  font-size: 0.88rem;
  line-height: 1.8;
  color: var(--text-dark-muted);
}

/* Link to full process page */
.process-teaser__cta {
  text-align: center;
  margin-top: clamp(3rem, 5vw, 4rem);
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
}

/* ---------------------------------------------------------------------------
   Services Section — Dark Background with Visual Depth
   --------------------------------------------------------------------------- */
.services {
  padding: var(--section-pad) var(--side-pad);
  position: relative;
  overflow: hidden;
}

/* Diagonal decorative pattern in background */
.services::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 80px,
      rgba(196, 162, 101, 0.02) 80px,
      rgba(196, 162, 101, 0.02) 81px
    );
  pointer-events: none;
}

/* Warm gradient depth */
.services::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at 50% 0%,
    rgba(196, 162, 101, 0.06) 0%,
    transparent 50%
  );
  pointer-events: none;
}

.services .section-header {
  margin-bottom: clamp(3.5rem, 5vw, 5rem);
  position: relative;
  z-index: 1;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 2.5vw, 2.5rem);
  max-width: var(--max-w);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.service-card {
  padding: clamp(3rem, 5vw, 4.5rem);
  border: 1px solid var(--border-light);
  position: relative;
  transition: background 0.4s ease, transform 0.4s ease, box-shadow 0.4s ease;
  background: rgba(255, 255, 255, 0.03);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.06);
}

.service-card:hover {
  background: rgba(196, 162, 101, 0.07);
  transform: translateY(-4px);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.12);
}

/* Gold accent on LEFT side instead of top */
.service-card__accent {
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 0;
  background: var(--gold);
  transition: height 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover .service-card__accent {
  height: 100%;
}

.service-card__number {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--gold-dim);
  line-height: 1;
  margin-bottom: 2.5rem;
  display: block;
}

.service-card__title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.service-card__desc {
  font-size: 0.9rem;
  line-height: 1.85;
  color: var(--text-muted);
}

/* ---------------------------------------------------------------------------
   Quote Section — Dark Background with Image Backdrop
   --------------------------------------------------------------------------- */
.quote {
  padding: clamp(8rem, 16vh, 14rem) var(--side-pad);
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Background image — very subtle, blurred */
.quote__bg-image {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.quote__bg-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.06;
  filter: blur(8px);
}

.quote__wrapper {
  max-width: 1000px;
  position: relative;
  margin: 0 auto;
  z-index: 1;
}

.quote__line-top {
  width: 80px;
  height: 1px;
  background: var(--gold);
  margin: 0 auto 3.5rem;
}

.quote__text {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.25;
  color: var(--text);
  position: relative;
}

.quote__text p {
  color: var(--text);
}

.quote__line-bottom {
  width: 80px;
  height: 1px;
  background: var(--gold);
  margin: 3.5rem auto 0;
}

/* Large decorative quotation mark — more visible */
.quote__mark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -55%);
  font-family: var(--font-display);
  font-size: 36rem;
  line-height: 1;
  color: rgba(196, 162, 101, 0.08);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
