/* ==========================================================================
   HOME PAGE — home.css
   Gibeon Builders Construction | Exhibit 2
   ========================================================================== */


/* --------------------------------------------------------------------------
   1. HERO
   -------------------------------------------------------------------------- */
.hero {
  display: flex;
  height: 100vh;
  min-height: 700px;
  overflow: hidden;
  position: relative;
  background-image: url('../../assets/images/background/hero-section-bg.jpg');
  background-size: cover;
  background-position: center;
}

/* Soft dark veil over background image — smooth, welcoming depth */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(14, 14, 13, 0.42);
  z-index: 0;
  pointer-events: none;
}


/* LEFT PANEL */
.hero-left {
  width: 50%;
  background: var(--color-ink);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 104px 72px 80px 80px;
  position: relative;
  z-index: 1;
}

/* Red gradient seam on right edge of left panel */
.hero-left::after {
  content: '';
  position: absolute;
  top: 10%;
  right: -1px;
  width: 2px;
  height: 80%;
  background: linear-gradient(to bottom, transparent, var(--color-red), transparent);
  z-index: 10;
}

/* Top label row */
.hero-label-row {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  margin-bottom: 56px;
  opacity: 0; /* JS reveals */
}

.hero-label-est,
.hero-label-country {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  white-space: nowrap;
  flex-shrink: 0;
}

.hero-label-line {
  flex: 1;
  min-width: 32px;
  height: 1px;
  background: rgba(255, 255, 255, 0.25);
}

/* Main heading */
.hero-heading {
  font-family: var(--font-display);
  font-size: clamp(48px, 5.5vw, 82px);
  font-weight: 700;
  line-height: 0.95;
  color: #ffffff;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
  opacity: 0; /* JS reveals */
}

.hero-heading em {
  font-style: italic;
  color: var(--color-red);
}

/* Body text */
.hero-body {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.65);
  max-width: 420px;
  margin-bottom: 52px;
  opacity: 0; /* JS reveals */
}

/* Button row */
.hero-buttons {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 64px;
}

.hero-btn-primary,
.hero-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.25s, transform 0.2s, box-shadow 0.2s,
              border-color 0.25s, color 0.25s;
  opacity: 0; /* JS reveals */
}

.hero-btn-primary {
  background: var(--color-red);
  color: #ffffff;
  padding: 15px 36px;
  border: none;
  font-weight: 600;
}

.hero-btn-primary:hover {
  background: var(--color-red-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(184, 19, 26, 0.4);
}

.hero-btn-ghost {
  background: transparent;
  color: rgba(255, 255, 255, 0.75);
  padding: 14px 36px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-weight: 500;
}

.hero-btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.6);
  color: #ffffff;
}

/* Stats row */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 32px;
}

.hero-stat {
  opacity: 0; /* JS reveals individually */
}

.hero-stat:not(:last-child) {
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  padding-right: 24px;
}

.hero-stat:not(:first-child) {
  padding-left: 24px;
}

.hero-stat-num {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1;
}

.hero-stat-label {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 6px;
}


/* RIGHT PANEL */
.hero-right {
  width: 50%;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

/* Dark gradient overlay — left edge fade for depth */
.hero-right::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to right,
    rgba(14, 14, 13, 0.35) 0%,
    rgba(14, 14, 13, 0.05) 40%,
    rgba(14, 14, 13, 0) 100%
  );
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.1) translate(2%, 1%);
  animation: heroKenBurns 14s ease-out forwards;
  opacity: 0.78;
}

@keyframes heroKenBurns {
  to { transform: scale(1) translate(0%, 0%); }
}

/* Static location badge */
.hero-badge {
  position: absolute;
  bottom: 32px;
  right: 32px;
  z-index: 2;
  background: rgba(14, 14, 13, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 100px;
  padding: 8px 20px;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}


/* --------------------------------------------------------------------------
   HERO RESPONSIVE
   -------------------------------------------------------------------------- */

/*
  On short desktop viewports (laptops ~768px tall, e.g. 1366×768),
  justify-content:center + overflow pushes the first child (label row)
  ABOVE the padding-top and behind the fixed nav. Switch to flex-start
  so the label row always anchors at padding-top (well below the 80px nav).
*/
@media (min-width: 1025px) and (max-height: 860px) {
  .hero-left {
    justify-content: flex-start;
    padding-top: 130px;
  }
}

@media (max-width: 1024px) {
  .hero-left {
    padding: 60px 48px 60px 48px;
  }

  .hero-heading {
    font-size: clamp(42px, 5vw, 68px);
  }
}

@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    height: auto;
    min-height: 100vh;
  }

  .hero-left {
    width: 100%;
    padding: 100px 28px 56px;
    order: 2;
  }

  .hero-right {
    width: 100%;
    height: 55vw;
    min-height: 280px;
    order: 1;
  }

  .hero-heading {
    font-size: clamp(40px, 9vw, 64px);
  }

  /* Hide seam on mobile */
  .hero-left::after {
    display: none;
  }

  .hero-stats {
    padding-top: 24px;
  }
}

@media (max-width: 480px) {
  .hero-left {
    padding: 80px 20px 48px;
  }

  .hero-heading {
    font-size: clamp(36px, 10vw, 52px);
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .hero-btn-primary,
  .hero-btn-ghost {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}


/* --------------------------------------------------------------------------
   2. ABOUT GLIMPSE (section 01)
   -------------------------------------------------------------------------- */
.section-about-glimpse {
  background: var(--color-white);
  padding: 140px 0;
  overflow: hidden;
}

.about-glimpse-inner {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-8);
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: var(--space-16);
  align-items: center;
}

.about-glimpse-text {
  padding-right: 64px;
  /* GSAP: slides from left */
}

.about-glimpse-text .section-counter {
  color: rgba(14, 14, 13, 0.04);
  font-size: 120px;
  line-height: 1;
  margin-bottom: -20px;
  display: block;
}

.about-glimpse-h2 {
  font-family: var(--font-display);
  font-size: clamp(38px, 4vw, 54px);
  font-weight: 700;
  color: var(--color-ink);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-4);
  margin-top: var(--space-3);
}

.about-glimpse-body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-muted);
  line-height: 1.8;
  margin-bottom: var(--space-6);
}

.about-glimpse-images {
  position: relative;
  height: 520px;
}

.about-img-1,
.about-img-2 {
  position: absolute;
  overflow: hidden;
  border-radius: 2px;
}

.about-img-1 {
  top: 0;
  left: 0;
  width: 75%;
  height: 380px;
  z-index: 1;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.about-img-2 {
  bottom: 0;
  right: 0;
  width: 62%;
  height: 300px;
  z-index: 2;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  border: 4px solid var(--color-white);
}

.about-img-1 img,
.about-img-2 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* --------------------------------------------------------------------------
   3. SERVICES GLIMPSE (section 02)
   -------------------------------------------------------------------------- */
.section-services-glimpse {
  background: var(--color-ink);
  padding: 130px 0;
}

.services-glimpse-inner {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-8);
}

.services-glimpse-header {
  margin-bottom: var(--space-16);
}

.services-glimpse-header .section-counter {
  color: rgba(250, 250, 247, 0.04);
}

.services-glimpse-h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-4);
  margin-top: var(--space-3);
  max-width: 540px;
}

.service-cards-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-1);
  margin-bottom: var(--space-10);
}

.service-card {
  background: #1a1a18;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 3px;
  padding: 48px 36px;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  position: relative;
  transition: transform 0.35s ease, border-color 0.3s ease,
              background 0.3s ease;
  overflow: hidden;
}

.service-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--color-red);
  transition: width 0.4s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(184, 19, 26, 0.5);
  background: #202020;
}

.service-card:hover::after {
  width: 100%;
}

.service-card-num {
  font-family: var(--font-display);
  font-size: 88px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.04);
  line-height: 1;
  letter-spacing: -0.04em;
  position: absolute;
  top: 16px;
  right: 24px;
  user-select: none;
  pointer-events: none;
}

.service-card-name {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.2;
  margin-bottom: 16px;
}

.service-card-desc {
  font-family: var(--font-body);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.85;
}

.services-glimpse-cta {
  text-align: center;
  margin-top: var(--space-8);
}


/* --------------------------------------------------------------------------
   4. PORTFOLIO GLIMPSE (section 03)
   -------------------------------------------------------------------------- */
.section-portfolio-glimpse {
  background: var(--color-white);
  padding: 120px 0;
}

.portfolio-glimpse-inner {
  max-width: var(--container-max);
  margin-inline: auto;
}

.portfolio-glimpse-header {
  padding-inline: var(--space-8);
  margin-bottom: var(--space-12);
}

.portfolio-glimpse-h2 {
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 700;
  color: var(--color-ink);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-top: var(--space-3);
  max-width: 600px;
}

/* Horizontal scrolling strip */
.portfolio-strip {
  display: flex;
  gap: 16px;
  padding-inline: var(--space-8);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 24px;
  cursor: grab;
}

.portfolio-strip::-webkit-scrollbar { display: none; }
.portfolio-strip.grabbing { cursor: grabbing; }

.portfolio-strip-card {
  min-width: 420px;
  width: 420px;
  height: 520px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  scroll-snap-align: start;
  border-radius: 3px;
}

.portfolio-strip-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  height: 4px;
  width: 0;
  background: var(--color-red);
  transition: width 0.4s ease;
  z-index: 3;
}

.portfolio-strip-card:hover::after {
  width: 100%;
}

.portfolio-strip-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-smooth);
}

.portfolio-strip-card:hover img {
  transform: scale(1.06);
}

.portfolio-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.88) 0%,
    rgba(0, 0, 0, 0.3) 40%,
    rgba(0, 0, 0, 0) 70%
  );
}

.portfolio-card-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 28px 28px 32px;
}

.portfolio-card-location {
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-red);
  margin-bottom: var(--space-2);
}

.portfolio-card-name {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.2;
}

.portfolio-card-year {
  position: absolute;
  bottom: var(--space-6);
  right: var(--space-6);
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: rgba(250, 250, 247, 0.4);
}

.portfolio-glimpse-cta {
  padding-inline: var(--space-8);
  margin-top: var(--space-8);
}


/* --------------------------------------------------------------------------
   5. GALLERY GLIMPSE (section 04)
   -------------------------------------------------------------------------- */
.section-gallery-glimpse {
  background: var(--color-stone);
  padding: 120px 0;
}

.gallery-glimpse-inner {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-8);
}

.gallery-glimpse-header {
  margin-bottom: var(--space-10);
}

.gallery-glimpse-h2 {
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 700;
  color: var(--color-ink);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-top: var(--space-3);
}

.gallery-grid-home {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 220px);
  gap: 6px;
  margin-bottom: var(--space-8);
  overflow: hidden;
}

.gallery-thumb {
  position: relative;
  overflow: hidden;
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-smooth), filter 0.5s ease;
}

.gallery-thumb:hover img {
  transform: scale(1.05);
  filter: brightness(1.1);
}

.gallery-glimpse-cta {
  text-align: center;
  margin-top: var(--space-6);
}


/* --------------------------------------------------------------------------
   6. TESTIMONIALS STRIP (section 05)
   -------------------------------------------------------------------------- */
.section-testimonials {
  background: var(--color-ink);
  padding: 140px 0;
  position: relative;
  overflow: hidden;
}

/* Faint giant quote mark */
.testimonials-bg-quote {
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-size: 400px;
  font-weight: 700;
  color: var(--color-red);
  opacity: 0.03;
  line-height: 1;
  user-select: none;
  pointer-events: none;
}

.testimonials-inner {
  max-width: 860px;
  margin-inline: auto;
  padding-inline: var(--space-8);
  text-align: center;
  position: relative;
  z-index: 1;
}

.testimonials-label {
  display: block;
  margin-bottom: var(--space-12);
}

.testimonial-item {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  /* GSAP handles all transitions — no CSS transition here */
}

.testimonial-item.active {
  pointer-events: auto;
}

.testimonials-wrap {
  position: relative;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.testimonial-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(26px, 3.5vw, 44px);
  font-weight: 400;
  color: var(--color-white);
  line-height: 1.4;
  max-width: 820px;
  margin-inline: auto;
  margin-bottom: var(--space-8);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.testimonial-author-name {
  color: var(--color-white);
  font-weight: 600;
}

.testimonial-author-sep {
  display: inline-block;
  width: 20px;
  height: 1px;
  background: var(--color-red);
}

.testimonial-author-city {
  color: var(--color-muted);
}

/* Dot nav */
.testimonials-dots {
  display: flex;
  gap: var(--space-3);
  justify-content: center;
  margin-top: var(--space-10);
}

.testimonial-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(138, 135, 128, 0.4);
  transition: background var(--dur-fast) ease, transform var(--dur-fast) ease;
  cursor: pointer;
}

.testimonial-dot.active {
  background: var(--color-red);
  transform: scale(1.3);
}


/* --------------------------------------------------------------------------
   7. CONTACT GLIMPSE (section 06)
   -------------------------------------------------------------------------- */
.section-contact-glimpse {
  background: var(--color-stone);
  padding: var(--space-32) 0;
}

.contact-glimpse-inner {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-8);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: start;
}

.contact-glimpse-h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  color: var(--color-ink);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-top: var(--space-3);
  margin-bottom: var(--space-8);
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
}

.contact-info-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-red);
  flex-shrink: 0;
  margin-top: 7px;
}

.contact-info-content .contact-info-label {
  font-size: var(--text-xs);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(138, 135, 128, 0.7);
  margin-bottom: var(--space-1);
}

.contact-info-content .contact-info-value {
  font-size: var(--text-base);
  color: var(--color-ink-2);
}

/* Quick form */
.quick-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.form-field {
  position: relative;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: var(--space-4) 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-ink);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--color-border);
  outline: none;
  transition: border-color var(--dur-fast) ease;
  resize: none;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--color-muted);
  font-size: var(--text-sm);
  letter-spacing: 0.06em;
}

.form-field::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-red);
  transition: width var(--dur-med) var(--ease-smooth);
}

.form-field:focus-within::after {
  width: 100%;
}

.form-field textarea {
  min-height: 100px;
}

.quick-form .btn {
  width: 100%;
  justify-content: center;
}


/* --------------------------------------------------------------------------
   8. HOME RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero-heading { font-size: clamp(2.5rem, 5vw, 3.8rem); }

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

  .gallery-grid-home { grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(4, 200px); }
}

@media (max-width: 768px) {
  .testimonials-wrap { min-height: 360px; }

  .hero {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 100vh;
  }

  .hero-left {
    padding: calc(var(--nav-height) + var(--space-12)) var(--space-6) var(--space-8);
    order: 1;
  }

  .hero-right {
    height: 50vw;
    min-height: 260px;
    order: 2;
  }

  .hero-heading { font-size: clamp(2.2rem, 8vw, 3rem); }
  .hero-actions { flex-wrap: wrap; }

  .about-glimpse-inner {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .about-glimpse-images { height: 320px; }
  .about-img-1 { width: 60%; height: 260px; }
  .about-img-2 { width: 55%; height: 240px; }

  .service-cards-row { grid-template-columns: 1fr; }

  .portfolio-strip-card { flex: 0 0 85vw; height: 420px; }

  .gallery-grid-home { grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(4, 180px); }

  .contact-glimpse-inner { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero-left { padding-inline: var(--space-4); }
  .gallery-grid-home { grid-template-columns: repeat(2, 1fr); }
  .testimonials-wrap { min-height: 400px; }
}
