/* ============================================================
   home.css — Homepage-specific styles
   ============================================================ */

/* ===== HERO ===== */
/* ===== HERO ===== */
#hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: var(--black);
  padding: 120px 0 80px;
}

/* ===== Background ===== */
.hero__bg {
  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      135deg,
      rgba(0,0,0,0.82) 0%,
      rgba(0,0,0,0.45) 55%,
      rgba(0,0,0,0.78) 100%
    ),
    url("../images/hero1.jpeg") center center / cover no-repeat;

  animation: heroBgZoom 22s ease-in-out infinite alternate;
}

@keyframes heroBgZoom {
  from { transform: scale(1); }
  to { transform: scale(1.06); }
}

/* ===== Decorative Lines ===== */
.hero__lines {
  position: absolute;
  top: 0;
  left: 5%;
  width: 1px;
  height: 100%;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(201,168,76,0.4),
    transparent
  );
  z-index: 1;
}

.hero__lines::after {
  content: '';
  position: absolute;
  top: 0;
  left: 64px;
  width: 1px;
  height: 100%;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(201,168,76,0.12),
    transparent
  );
}

/* ===== Content ===== */
.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 820px;
  padding: 0 5%;
  margin-top: 40px;
}

.hero__label {
  margin-bottom: 1rem;
  opacity: 0;
  animation: fadeUp 0.8s 0.3s forwards;
}

.hero__headline {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.4rem, 7vw, 6rem);
  line-height: 1.08;
  color: var(--white);
  margin-bottom: 1.2rem;
  opacity: 0;
  animation: fadeUp 0.9s 0.5s forwards;
}

.hero__headline em {
  font-style: italic;
  color: var(--gold);
  display: block;
}

.hero__sub {
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  font-weight: 300;
  color: rgba(255,255,255,0.72);
  max-width: 560px;
  line-height: 1.8;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUp 0.9s 0.7s forwards;
}

/* ===== Buttons ===== */
.hero__btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;

  opacity: 0;
  animation: fadeUp 0.9s 0.9s forwards;
}

/* ===== Stats ===== */
.hero__stats {
  position: absolute;
  bottom: 0;
  right: 0;
  z-index: 2;

  display: flex;
  flex-wrap: wrap;

  border-top: 1px solid rgba(201,168,76,0.2);
  border-left: 1px solid rgba(201,168,76,0.2);

  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(10px);

  max-width: 100%;
}

.hero__stat {
  padding: 18px 30px;
  text-align: center;
  border-left: 1px solid rgba(201,168,76,0.1);
}

.hero__stat:first-child {
  border-left: none;
}

.hero__stat-num {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
}

.hero__stat-label {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-top: 6px;
}

/* ===== Scroll ===== */
.hero__scroll {
  position: absolute;
  bottom: 30px;
  left: 5%;
  z-index: 2;

  display: flex;
  align-items: center;
  gap: 12px;

  color: rgba(255,255,255,0.35);
  font-size: 0.63rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;

  animation: fadeIn 1.5s 1.6s both;
}

.hero__scroll-line {
  width: 40px;
  height: 1px;
  background: var(--gold);
  animation: growLine 1s 2s both;
}

/* ===== Animations ===== */
@keyframes growLine {
  from { width: 0; }
  to { width: 40px; }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* =========================================================
   TABLET
========================================================= */
@media (max-width: 992px) {

  #hero {
    padding: 120px 0 140px;
  }

  .hero__headline {
    line-height: 1.12;
  }

  .hero__stats {
    width: 100%;
    justify-content: center;
  }

  .hero__stat {
    flex: 1 1 33%;
    min-width: 180px;
  }
}

/* =========================================================
   MOBILE
========================================================= */
@media (max-width: 768px) {

  #hero {
    padding: 110px 0 180px;
    align-items: flex-start;
  }

  .hero__content {
    margin-top: 20px;
  }

  .hero__headline {
    font-size: clamp(2rem, 10vw, 4rem);
  }

  .hero__sub {
    line-height: 1.7;
  }

  .hero__btns {
    flex-direction: column;
    align-items: stretch;
  }

  .hero__btns .btn {
    width: 100%;
    text-align: center;
  }

  .hero__stats {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;

    display: grid;
    grid-template-columns: 1fr;
  }

  .hero__stat {
    border-left: none;
    border-top: 1px solid rgba(201,168,76,0.1);
  }

  .hero__scroll {
    display: none;
  }

  .hero__lines::after {
    left: 34px;
  }
}

/* =========================================================
   SMALL MOBILE
========================================================= */
@media (max-width: 480px) {

  #hero {
    padding-bottom: 220px;
  }

  .hero__headline {
    line-height: 1.15;
  }

  .hero__stat {
    padding: 16px 20px;
  }

  .hero__stat-num {
    font-size: 1.5rem;
  }

  .hero__stat-label {
    font-size: 0.58rem;
  }
}

/* ===== INTRO ===== */
.intro__grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: center;
}
.intro__text .label { margin-bottom: 1rem; }
.intro__text h2 { font-family: var(--font-display); font-size: clamp(2rem,3.5vw,3rem); font-weight: 300; line-height: 1.15; margin-bottom: 1.4rem; }
.intro__text p { font-size: 0.92rem; color: var(--warm-gray); margin-bottom: 0.8rem; }
.intro__image { position: relative; }
.intro__image img { width: 100%; height: 480px; object-fit: cover; }
.intro__badge {
  position: absolute; bottom: -18px; left: -18px;
  width: 128px; height: 128px;
  background: var(--gold);
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 14px;
}
.intro__badge-num { font-family: var(--font-display); font-size: 2.6rem; font-weight: 300; color: var(--black); line-height: 1; }
.intro__badge-txt { font-size: 0.57rem; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(0,0,0,0.6); margin-top: 5px; }

/* ===== FEATURED SERVICES ===== */
.feat-services { background: var(--charcoal); }
.feat-services__header { margin-bottom: 50px; }
.feat-services__header .label { margin-bottom: 0.8rem; }
.feat-services__header .section-title { color: var(--white); }
.feat-services__header .section-title em { color: var(--gold); }
.feat-services__grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: rgba(255,255,255,0.05);
}
.feat-card {
  background: var(--charcoal); padding: 40px 32px;
  border: 1px solid rgba(255,255,255,0.05);
  position: relative; overflow: hidden;
  transition: background var(--t-med) var(--ease);
}
.feat-card::after {
  content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 2px;
  background: var(--gold); transform: scaleX(0); transform-origin: left;
  transition: transform var(--t-med) var(--ease);
}
.feat-card:hover { background: var(--mid); }
.feat-card:hover::after { transform: scaleX(1); }
.feat-card__icon { font-size: 2rem; margin-bottom: 1rem; display: block; }
.feat-card h3 { font-family: var(--font-display); font-size: 1.4rem; font-weight: 400; color: var(--white); margin-bottom: 0.7rem; }
.feat-card p  { font-size: 0.83rem; color: var(--warm-gray); line-height: 1.75; margin-bottom: 1.2rem; }
.feat-card__link { font-size: 0.72rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); transition: color var(--t-fast); }
.feat-card__link:hover { color: var(--gold-light); }
.feat-services__cta { text-align: center; margin-top: 50px; }

/* ===== GALLERY PREVIEW ===== */
.gallery-preview { background: var(--cream); }
.gallery-preview__header { margin-bottom: 50px; }
.gallery-preview__header .label { margin-bottom: 0.8rem; }
.gallery-preview__header p { font-size: 0.9rem; color: var(--warm-gray); max-width: 500px; margin-top: 0.8rem; }
.gallery-preview__grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 300px 280px;
  gap: 10px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 5%;
}
.gp-item { position: relative; overflow: hidden; }
.gp-item img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-slow) var(--ease); }
.gp-item:hover img { transform: scale(1.06); }
.gp-item__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, transparent 55%);
  opacity: 0; transition: opacity var(--t-med) var(--ease);
  display: flex; align-items: flex-end; padding: 18px;
}
.gp-item:hover .gp-item__overlay { opacity: 1; }
.gp-item__overlay span { font-family: var(--font-display); font-size: 1rem; color: var(--white); }
.gp-item--tall { grid-row: 1 / 3; }
.gp-item--wide { grid-column: 2 / 4; }

/* ===== WHY ===== */
.why { background: var(--white); }
.why__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.why__left .label { margin-bottom: 1rem; }
.why__left .section-title { margin-bottom: 1.2rem; }
.why__left > p { font-size: 0.9rem; color: var(--warm-gray); margin-bottom: 2rem; }
.why__items { display: flex; flex-direction: column; gap: 24px; }
.why__item { display: flex; gap: 18px; align-items: flex-start; }
.why__icon { width: 42px; height: 42px; background: var(--gold); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }
.why__item h4 { font-family: var(--font-display); font-size: 1rem; font-weight: 600; color: var(--charcoal); margin-bottom: 4px; }
.why__item p  { font-size: 0.82rem; color: var(--warm-gray); line-height: 1.72; }
.why__images { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 240px 200px; gap: 10px; }
.why__img-main { grid-column: 1 / 3; width: 100%; height: 100%; object-fit: cover; }
.why__img-sm1, .why__img-sm2 { width: 100%; height: 100%; object-fit: cover; }

/* ===== RESPONSIVE HOME ===== */
@media (max-width: 1024px) {
  .feat-services__grid { grid-template-columns: 1fr 1fr; }
  .gallery-preview__grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .gp-item--tall, .gp-item--wide { grid-column: auto; grid-row: auto; }
}
@media (max-width: 768px) {
  .hero__stats { display: none; }
  .intro__grid { grid-template-columns: 1fr; gap: 50px; }
  .intro__image img { height: 340px; }
  .intro__badge { bottom: 0; left: 0; }
  .feat-services__grid { grid-template-columns: 1fr; }
  .gallery-preview__grid { grid-template-columns: 1fr; grid-template-rows: auto; padding: 0 5%; }
  .gp-item img { height: 260px; }
  .why__grid { grid-template-columns: 1fr; }
  .why__images { display: none; }
}
