/* =====================================================
   INDEX PAGE — HOME CSS
   ===================================================== */

/* ── HERO ── */
.hero {
  min-height: 100vh; position: relative;
  display: flex; align-items: center; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(110deg, rgba(26,14,8,.90) 0%, rgba(26,14,8,.65) 55%, rgba(26,14,8,.3) 100%);
}
.hero-content {
  position: relative; z-index: 2;
  max-width: 1240px; margin: 0 auto;
  padding: 130px 28px 80px; width: 100%;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 9px;
  background: rgba(194,107,82,.18); border: 1px solid rgba(194,107,82,.38);
  color: var(--terra-lt); font-size: .72rem; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase;
  padding: 9px 20px; border-radius: 100px; margin-bottom: 28px;
  animation: fadeIn .8s ease forwards;
}
.hero-badge::before { content: '◆'; font-size: .45rem; }
.hero-title {
  font-family: var(--font-d); font-size: clamp(3rem, 9vw, 7rem);
  font-weight: 700; line-height: 1.03; color: #fff;
  margin-bottom: 24px; letter-spacing: -.01em;
  animation: slideUp .9s ease forwards;
}
.hero-title em { display: block; color: var(--terra-lt); }
.hero-sub {
  font-size: clamp(.95rem, 2vw, 1.15rem); color: rgba(250,246,240,.75);
  max-width: 520px; line-height: 1.75; margin-bottom: 44px;
  animation: slideUp .9s .15s ease both;
}
.hero-actions {
  display: flex; gap: 16px; flex-wrap: wrap;
  margin-bottom: 64px; animation: slideUp .9s .3s ease both;
}
.btn-outline-hero {
  display: inline-flex; align-items: center; gap: 9px;
  background: transparent; color: #fff;
  border: 2px solid rgba(255,255,255,.42);
  padding: 14px 32px; border-radius: 10px;
  font-family: var(--font-b); font-weight: 600; font-size: .88rem;
  letter-spacing: .06em; cursor: pointer; transition: all .3s var(--ease);
}
.btn-outline-hero:hover { background: rgba(255,255,255,.1); border-color: #fff; transform: translateY(-3px); }
.hero-stats { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; animation: fadeIn 1s .5s ease both; }
.stat-num { display: block; font-family: var(--font-d); font-size: 2.5rem; font-weight: 700; color: #fff; line-height: 1; }
.stat-label { font-size: .7rem; color: rgba(250,246,240,.5); text-transform: uppercase; letter-spacing: .1em; margin-top: 5px; display: block; }
.stat-divider { width: 1px; height: 44px; background: rgba(255,255,255,.18); flex-shrink: 0; }
.hero-scroll { position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%); z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.hero-scroll span { font-size: .65rem; letter-spacing: .25em; text-transform: uppercase; color: rgba(250,246,240,.35); }
.scroll-line { width: 1px; height: 44px; background: linear-gradient(to bottom, rgba(194,107,82,.8), transparent); animation: scrollPulse 2s ease-in-out infinite; }

@keyframes scrollPulse { 0%,100% { transform: scaleY(1); opacity: .5; } 50% { transform: scaleY(1.35); opacity: 1; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(32px); } to { opacity: 1; transform: translateY(0); } }

/* ── ABOUT SECTION ── */
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 72px; align-items: center;
}
.about-visual {
  position: relative;
  /* Contain the floating children so they never bleed outside */
  padding: 20px 40px 40px 30px;
}
.about-main-img {
  width: 100%; height: 460px;
  border-radius: var(--r-lg); object-fit: cover; box-shadow: var(--sh-lg);
  position: relative; z-index: 1;
}
.about-accent {
  position: absolute;
  bottom: 0; right: 0; /* sits inside the padding area */
  width: 190px; height: 140px;
  border-radius: var(--r); overflow: hidden;
  border: 4px solid #fff; box-shadow: var(--sh-md); z-index: 2;
}
.about-accent img { width: 100%; height: 100%; object-fit: cover; }
.about-badge {
  position: absolute;
  top: 0; left: 0;
  background: var(--terra); color: #fff;
  padding: 16px 20px; border-radius: var(--r);
  text-align: center; box-shadow: var(--sh-md); z-index: 2;
}
.about-badge .b-year { font-family: var(--font-d); font-size: 1.8rem; font-weight: 700; line-height: 1; display: block; }
.about-badge .b-text { font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; opacity: .85; }
.about-text > * + * { margin-top: 16px; }
.about-text p { color: var(--muted); line-height: 1.8; }
.about-checks { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 24px 0 32px; }
.check-item { display: flex; align-items: center; gap: 10px; font-size: .87rem; font-weight: 500; }
.check-icon {
  width: 24px; height: 24px; min-width: 24px;
  background: rgba(194,107,82,.12); color: var(--terra);
  border-radius: 50%; display: flex; align-items: center;
  justify-content: center; font-size: .65rem; font-weight: 900;
}

/* ── SERVICES ── */
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.s-card { border-radius: var(--r-lg); overflow: hidden; background: #fff; border: 1px solid var(--border); transition: all .4s var(--ease); position: relative; }
.s-card:hover { transform: translateY(-8px); box-shadow: var(--sh-lg); }
.s-card-img { height: 180px; overflow: hidden; position: relative; }
.s-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.s-card:hover .s-card-img img { transform: scale(1.07); }
.s-card-img-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(26,14,8,.5) 0%, transparent 60%); }
.s-badge { position: absolute; top: 14px; right: 14px; background: var(--terra); color: #fff; font-size: .65rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding: 5px 12px; border-radius: 100px; }
.s-card-body { padding: 24px 22px 26px; }
.s-icon { font-size: 2rem; margin-bottom: 12px; }
.s-card h3 { font-family: var(--font-d); font-size: 1.2rem; font-weight: 700; color: var(--brown); margin-bottom: 10px; }
.s-card p { font-size: .86rem; color: var(--muted); line-height: 1.7; margin-bottom: 16px; }
.s-card.dark-card { background: var(--brown); }
.s-card.dark-card h3 { color: #fff; }
.s-card.dark-card p { color: rgba(250,246,240,.65); }
.card-arrow { display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; font-weight: 700; color: var(--terra); letter-spacing: .04em; transition: gap .3s; }
.s-card:hover .card-arrow { gap: 10px; }
.dark-card .card-arrow { color: var(--terra-lt); }

/* ── PROJECTS ── */
.proj-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.proj-card { border-radius: var(--r-lg); overflow: hidden; background: #fff; box-shadow: var(--sh); border: 1px solid var(--border); transition: all .4s var(--ease); }
.proj-card:hover { transform: translateY(-8px); box-shadow: var(--sh-lg); }
.proj-thumb { height: 230px; position: relative; overflow: hidden; }
.proj-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.proj-card:hover .proj-thumb img { transform: scale(1.06); }
.proj-type-badge {
  position: absolute; top: 16px; left: 16px;
  background: rgba(255,255,255,.18); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.25); color: #fff;
  font-size: .72rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; padding: 6px 14px; border-radius: 100px;
}
.proj-info { padding: 22px 24px; }
.proj-info h3 { font-family: var(--font-d); font-size: 1.2rem; font-weight: 700; color: var(--brown); margin-bottom: 6px; }
.proj-loc { font-size: .82rem; color: var(--terra); font-weight: 600; margin-bottom: 14px; }
.proj-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.proj-tags span { font-size: .73rem; font-weight: 600; background: var(--cream-warm); color: var(--text); padding: 5px 12px; border-radius: 8px; }
.status-ongoing  { background: #FFF3E0 !important; color: #E65100 !important; }
.status-upcoming { background: #EDE7F6 !important; color: #512DA8 !important; }
.status-done     { background: #E8F5E9 !important; color: #2E7D32 !important; }
.view-all { text-align: center; margin-top: 48px; }

/* ── WHY US ── */
.why-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 68px; align-items: center; }
.why-left > * + * { margin-top: 20px; }
.why-left p { color: rgba(250,246,240,.65); line-height: 1.8; }
.why-img { width: 100%; height: 300px; border-radius: var(--r-lg); object-fit: cover; margin-top: 28px; opacity: .75; }
.why-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.w-card { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.09); border-radius: var(--r-lg); padding: 28px; transition: all .4s; }
.w-card:hover { background: rgba(255,255,255,.1); transform: translateY(-4px); }
.w-num { font-family: var(--font-d); font-size: 2.1rem; font-weight: 700; color: var(--terra); display: block; margin-bottom: 10px; line-height: 1; }
.w-card h4 { font-size: .93rem; font-weight: 700; color: #fff; margin-bottom: 9px; }
.w-card p { font-size: .84rem; color: rgba(250,246,240,.55); line-height: 1.65; }

/* ── SHOWCASE GRID ── */
.showcase-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  grid-template-rows: 240px 240px;
  gap: 14px;
}
.show-item { border-radius: var(--r-lg); overflow: hidden; position: relative; cursor: pointer; }
.show-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s var(--ease); }
.show-item:hover img { transform: scale(1.06); }
.show-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(26,14,8,.7) 0%, transparent 55%); opacity: 0; transition: opacity .35s; }
.show-item:hover .show-overlay { opacity: 1; }
.show-label { position: absolute; bottom: 18px; left: 20px; font-family: var(--font-d); font-size: 1.1rem; font-weight: 700; color: #fff; transform: translateY(8px); opacity: 0; transition: all .35s; }
.show-item:hover .show-label { transform: translateY(0); opacity: 1; }
.show-item.tall { grid-row: span 2; }

/* ── TESTIMONIALS ── */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.t-card { background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); padding: 34px 28px; transition: all .4s var(--ease); position: relative; overflow: hidden; }
.t-card::before { content: '"'; position: absolute; top: -10px; right: 18px; font-family: var(--font-d); font-size: 8rem; color: rgba(194,107,82,.07); line-height: 1; pointer-events: none; }
.t-card:hover { transform: translateY(-7px); box-shadow: var(--sh-lg); }
.t-card.accent { background: var(--brown); border-color: var(--brown); }
.t-card.accent p { color: rgba(250,246,240,.72); }
.t-card.accent strong { color: #fff; }
.t-card.accent small { color: rgba(250,246,240,.45); }
.t-stars { color: #F59E0B; font-size: .95rem; letter-spacing: 3px; margin-bottom: 16px; }
.t-card p { font-size: .89rem; color: var(--muted); line-height: 1.8; margin-bottom: 24px; }
.t-author { display: flex; align-items: center; gap: 13px; }
.t-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--terra), var(--olive));
  color: #fff; font-weight: 700; font-size: .84rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-family: var(--font-d);
}
.t-author strong { display: block; font-size: .88rem; color: var(--brown); }
.t-author small { font-size: .74rem; color: var(--muted); }

/* ── CTA BANNER ── */
.cta-section { position: relative; padding: 100px 24px; text-align: center; overflow: hidden; }
.cta-bg { position: absolute; inset: 0; }
.cta-bg img { width: 100%; height: 100%; object-fit: cover; }
.cta-bg-layer { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(26,14,8,.88) 0%, rgba(107,123,58,.75) 100%); }
.cta-inner { position: relative; z-index: 2; }
.cta-inner h2 { font-family: var(--font-d); font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 700; color: #fff; margin-bottom: 16px; }
.cta-inner h2 em { color: var(--terra-lt); }
.cta-inner p { font-size: 1.05rem; color: rgba(250,246,240,.72); max-width: 520px; margin: 0 auto 40px; }
.cta-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ===========================================
   RESPONSIVE — HOME PAGE
=========================================== */

/* ── 1024px ── */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .showcase-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
  }
  .show-item { height: 260px; }
  .show-item.tall { grid-row: span 1; }
  .why-grid { grid-template-columns: 1fr; gap: 48px; }
  .why-cards { grid-template-columns: repeat(2, 1fr); }
  .about-grid { gap: 48px; }
  .about-visual { padding: 20px 30px 36px 20px; }
}

/* ── 900px ── */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-visual { padding: 16px 32px 36px 16px; max-width: 560px; margin: 0 auto; }
  .about-main-img { height: 380px; }
}

/* ── 768px ── */
@media (max-width: 768px) {
  .hero-content { padding: 110px 20px 64px; }
  .hero-stats { gap: 20px; }
  .stat-divider { display: none; }
  .hero-scroll { display: none; }

  .about-visual { padding: 14px 28px 32px 14px; }
  .about-main-img { height: 340px; }
  .about-accent { width: 150px; height: 110px; border-width: 3px; }
  .about-badge { padding: 12px 16px; }
  .about-badge .b-year { font-size: 1.5rem; }

  .proj-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .testi-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .why-cards { grid-template-columns: 1fr 1fr; }

  .showcase-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .show-item { height: 200px; }

  .cta-section { padding: 72px 20px; }
}

/* ── 600px ── */
@media (max-width: 600px) {
  .proj-grid { grid-template-columns: 1fr; gap: 16px; }
  .testi-grid { grid-template-columns: 1fr; }
  .why-cards { grid-template-columns: 1fr; gap: 14px; }
  .services-grid { grid-template-columns: 1fr; gap: 18px; }
}

/* ── 480px ── */
@media (max-width: 480px) {
  .hero-content { padding: 100px 16px 56px; }
  .hero-badge { font-size: .65rem; padding: 7px 14px; }
  .hero-title { font-size: clamp(2.4rem, 11vw, 3.2rem); margin-bottom: 18px; }
  .hero-sub { font-size: .95rem; margin-bottom: 36px; }
  .hero-actions {
    flex-direction: column; width: 100%;
    align-items: stretch; margin-bottom: 44px; gap: 12px;
  }
  .hero-actions > * { justify-content: center; text-align: center; }
  .hero-stats { justify-content: flex-start; gap: 24px 32px; }
  .stat-num { font-size: 2rem; }

  .about-visual { padding: 14px 20px 32px 8px; }
  .about-main-img { height: 280px; }
  .about-accent { width: 120px; height: 90px; }
  .about-badge .b-year { font-size: 1.3rem; }
  .about-checks { grid-template-columns: 1fr; gap: 10px; }

  .showcase-grid { grid-template-columns: 1fr; gap: 10px; }
  .show-item { height: 220px; }

  .t-card { padding: 26px 22px; }

  .cta-section { padding: 56px 16px; }
  .cta-inner h2 { font-size: clamp(1.8rem, 8vw, 2.4rem); }
  .cta-btns { flex-direction: column; align-items: center; }
  .cta-btns > * { width: 100%; max-width: 320px; justify-content: center; text-align: center; }
}

/* ── 360px (very small phones) ── */
@media (max-width: 360px) {
  .hero-title { font-size: 2.2rem; }
  .about-visual { padding: 10px 16px 28px 6px; }
  .about-accent { width: 100px; height: 76px; }
}