/**
 * ============================================================
 * File      : home.css
 * Purpose   : Home page specific styles — hero layout, animated
 *             stamp scene, services grid, process steps, trust
 *             band. Loaded only on index_new.php.
 * ------------------------------------------------------------
 * Created   : 2026-05-31 13:00
 * Created By: Legalyatra Dev
 * ------------------------------------------------------------
 * Modified  : 2026-06-02 18:30
 * Modified By: Legalyatra Dev
 * ------------------------------------------------------------
 * Changelog :
 *   - 2026-05-31 [Legalyatra Dev] : Initial home page styles
 *   - 2026-06-02 [Legalyatra Dev] : Fix stamp-text-curve font 8.5→7px, tracking 1.5→1.2px
 *   - 2026-06-02 [Legalyatra Dev] : Fix stamp-text-center font 13→11px, tracking 1.5→1px
 *   - 2026-06-02 [Legalyatra Dev] : Reduce verified-bar font 11.5→10.5px for longer text
 * ============================================================
 */

/* ─── Hero ─── */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 80px 48px 60px;
  max-width: 1280px; margin: 0 auto;
  position: relative;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(15,61,46,0.06) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: radial-gradient(ellipse at 70% 50%, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 50%, black 0%, transparent 70%);
  pointer-events: none;
}
.hero-left { position: relative; z-index: 1; }
.hero .live-chip { margin-bottom: 28px; animation: chipIn 0.6s ease both; }

@keyframes chipIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero h1 {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 700;
  font-size: clamp(38px, 5.4vw, 68px);
  line-height: 1.02;
  letter-spacing: -2px;
  color: var(--ink);
  margin-bottom: 24px;
}
.hero h1 .word { display: inline-block; animation: wordUp 0.7s ease both; opacity: 0; }
.hero h1 .word:nth-child(1) { animation-delay: 0.05s; }
.hero h1 .word:nth-child(2) { animation-delay: 0.15s; }
.hero h1 .word:nth-child(3) { animation-delay: 0.25s; }
.hero h1 .word:nth-child(4) { animation-delay: 0.35s; }
.hero h1 .word:nth-child(5) { animation-delay: 0.45s; }
.hero h1 em {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 400;
  color: var(--green);
  letter-spacing: -1.5px;
}
@keyframes wordUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-sub {
  font-size: 17px;
  color: var(--ink-2);
  max-width: 470px;
  margin-bottom: 36px;
  animation: fadeUp 0.7s 0.6s ease both;
  line-height: 1.6;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero .cta-row {
  display: flex; gap: 12px; flex-wrap: wrap;
  margin-bottom: 36px;
  animation: fadeUp 0.7s 0.75s ease both;
}

.hero-stats {
  display: flex; gap: 32px;
  animation: fadeUp 0.7s 0.9s ease both;
}
.stat-item { display: flex; flex-direction: column; gap: 2px; }
.stat-num {
  font-family: 'Fraunces', serif;
  font-size: 26px; font-weight: 500;
  color: var(--green);
  letter-spacing: -0.5px;
  line-height: 1;
}
.stat-num sup { font-size: 14px; color: var(--gold); vertical-align: super; }
.stat-label {
  font-size: 11.5px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-weight: 500;
}

/* ─── Stamp Scene ─── */
.stamp-scene {
  position: relative;
  width: 100%;
  aspect-ratio: 1/1.05;
  max-width: 460px;
  margin-left: auto;
  animation: sceneIn 0.8s 0.4s ease both;
}
@keyframes sceneIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.document {
  position: absolute;
  inset: 6% 8% 6% 8%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 26px 22px;
  box-shadow:
    0 1px 2px rgba(0,0,0,0.04),
    0 10px 30px rgba(15,61,46,0.10),
    0 30px 60px rgba(15,61,46,0.06);
  transform: rotate(-2deg);
  transition: transform 0.4s;
}
.document:hover { transform: rotate(-1deg) translateY(-4px); }

.doc-header {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--border-2);
  margin-bottom: 16px;
}

/* Sub-Registrar stamp duty tag (top-left of document) */
.stamp-duty-tag {
  display: flex; flex-direction: column;
  font-size: 8px;
  color: var(--gold-2);
  background: var(--gold-bg);
  border: 1px solid rgba(176,141,63,0.3);
  padding: 4px 8px;
  border-radius: 4px;
  font-weight: 700;
  letter-spacing: 0.6px;
  line-height: 1.3;
}
.stamp-duty-tag .amount { font-size: 11px; }
.stamp-duty-tag .serial { font-size: 7px; opacity: 0.7; margin-top: 2px; font-weight: 500; }

.doc-title-tag {
  font-size: 9px; font-weight: 600; color: var(--green);
  background: var(--green-bg);
  padding: 3px 9px; border-radius: 100px;
  letter-spacing: 0.5px; text-transform: uppercase;
}

.doc-title {
  font-family: 'Fraunces', serif;
  font-size: 16px; font-weight: 500;
  color: var(--ink); margin-bottom: 14px;
  letter-spacing: -0.2px;
}
.doc-lines { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.doc-line {
  height: 6px; border-radius: 3px;
  background: var(--bg-soft);
  animation: lineIn 0.5s ease both;
}
.doc-line:nth-child(1) { animation-delay: 0.6s; width: 95%; }
.doc-line:nth-child(2) { animation-delay: 0.7s; width: 88%; }
.doc-line:nth-child(3) { animation-delay: 0.8s; width: 75%; }
.doc-line:nth-child(4) { animation-delay: 0.9s; width: 92%; }
.doc-line:nth-child(5) { animation-delay: 1.0s; width: 50%; }
@keyframes lineIn {
  from { opacity: 0; transform: scaleX(0); transform-origin: left; }
  to { opacity: 1; transform: scaleX(1); }
}

.doc-signature {
  border-top: 1px dashed var(--border-2);
  padding-top: 12px;
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 12px;
}
.sig-block { flex: 1; }
.sig-line {
  height: 1.5px; background: var(--ink); width: 80%;
  margin-bottom: 4px;
}
.sig-label { font-size: 9px; color: var(--muted); letter-spacing: 0.5px; text-transform: uppercase; }

/* ─── The Notary Stamp (animated) ─── */
.stamp {
  position: absolute;
  width: 110px; height: 110px;
  top: 40%; right: -6%;
  transform-origin: center;
  animation: stampDrop 1.6s 1.4s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  z-index: 2;
}
@keyframes stampDrop {
  0%   { transform: translateY(-280px) rotate(-30deg) scale(2.2); opacity: 0; }
  50%  { transform: translateY(-20px)  rotate(-15deg) scale(1.3); opacity: 1; }
  70%  { transform: translateY(8px)    rotate(-10deg) scale(0.92); }
  85%  { transform: translateY(-2px)   rotate(-13deg) scale(1.02); }
  100% { transform: translateY(0)      rotate(-12deg) scale(1);    opacity: 1; }
}
.stamp svg {
  width: 100%; height: 100%;
  filter: drop-shadow(0 4px 12px rgba(176,141,63,0.35));
}
.stamp-circle-outer, .stamp-circle-inner {
  fill: none;
  stroke: var(--gold);
  stroke-width: 2;
}
.stamp-circle-inner { stroke-width: 1.4; }
.stamp-text-curve {
  fill: var(--gold-2);
  font-size: 7px; font-weight: 700;
  letter-spacing: 1.2px;
  font-family: 'Inter Tight', sans-serif;
}
.stamp-text-center {
  fill: var(--gold-2);
  font-size: 11px; font-weight: 700;
  letter-spacing: 1px;
  font-family: 'Inter Tight', sans-serif;
}
.stamp-text-sub {
  fill: var(--gold-2);
  font-size: 6.5px; font-weight: 600;
  letter-spacing: 0.8px;
  font-family: 'Inter Tight', sans-serif;
}

/* Ink ripple on stamp impact */
.ink-splash {
  position: absolute;
  top: 40%; right: -6%;
  width: 110px; height: 110px;
}
.ink-splash::before, .ink-splash::after {
  content: '';
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 2px solid var(--gold);
  opacity: 0;
  animation: inkRipple 1.2s 2.4s ease forwards;
}
.ink-splash::after { animation-delay: 2.55s; }
@keyframes inkRipple {
  0%   { transform: scale(0.6); opacity: 0.5; }
  100% { transform: scale(1.8); opacity: 0; }
}

/* "Delivered to your doorstep" bar (Legalyatra's role — facilitation) */
.verified-bar {
  position: absolute;
  bottom: 16%; left: 50%;
  transform: translateX(-50%);
  background: var(--green);
  color: #fff;
  font-size: 10.5px; font-weight: 600;
  padding: 8px 16px;
  border-radius: 100px;
  display: flex; align-items: center; gap: 7px;
  box-shadow: 0 6px 18px rgba(15,61,46,0.30);
  opacity: 0; transform: translate(-50%, 12px);
  animation: verifyIn 0.5s 2.8s ease forwards;
  z-index: 3;
  white-space: nowrap;
}
@keyframes verifyIn { to { opacity: 1; transform: translate(-50%, 0); } }
.verified-bar .check {
  width: 16px; height: 16px;
  background: var(--gold);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px;
  color: var(--green);
  font-weight: 900;
}

/* Floating chips around the document */
.float-chip {
  position: absolute;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 9px 14px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  display: flex; align-items: center; gap: 7px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.06);
  opacity: 0;
}
.float-chip-1 {
  top: 8%; left: -4%;
  animation: chipFly 0.6s 3.2s ease forwards, floatChip 4s 3.8s ease-in-out infinite;
}
.float-chip-2 {
  bottom: 4%; right: -2%;
  animation: chipFly 0.6s 3.4s ease forwards, floatChip 4s 4.0s ease-in-out infinite;
}
@keyframes chipFly {
  from { opacity: 0; transform: scale(0.8) translateY(10px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes floatChip {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}
.float-chip .dot {
  width: 7px; height: 7px;
  background: var(--gold); border-radius: 50%;
}
.float-chip-2 .dot { background: var(--green); }

/* ─── Services grid ─── */
.services {
  padding: 100px 48px 70px;
  max-width: 1280px; margin: 0 auto;
}
.svc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.svc-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px 22px 22px;
  text-decoration: none;
  color: var(--ink);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 230px;
}
.svc-card::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--green-bg), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s;
}
.svc-card:hover {
  transform: translateY(-6px);
  border-color: var(--green);
  box-shadow: 0 18px 40px rgba(15,61,46,0.10);
}
.svc-card:hover::before { opacity: 1; }
.svc-card > * { position: relative; z-index: 1; }

.svc-icon-wrap {
  width: 42px; height: 42px;
  background: var(--green-bg);
  border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.3s;
}
.svc-card:hover .svc-icon-wrap {
  background: var(--green);
  transform: scale(1.08) rotate(-4deg);
}
.svc-icon-wrap svg {
  width: 22px; height: 22px;
  stroke: var(--green);
  transition: stroke 0.3s;
}
.svc-card:hover .svc-icon-wrap svg { stroke: var(--gold-light); }

.svc-title { font-size: 16.5px; font-weight: 600; color: var(--ink); letter-spacing: -0.3px; }
.svc-desc { font-size: 13.5px; color: var(--muted); line-height: 1.55; flex: 1; }
.svc-link {
  font-size: 12.5px; font-weight: 600; color: var(--green);
  display: inline-flex; align-items: center; gap: 5px;
  transition: gap 0.2s;
}
.svc-card:hover .svc-link { gap: 10px; color: var(--gold-2); }

/* ─── Process Steps ─── */
.process {
  background: var(--bg-soft);
  padding: 90px 48px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.process-inner { max-width: 1280px; margin: 0 auto; }
.pstep-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.pstep {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px 28px;
  position: relative;
  transition: all 0.3s;
}
.pstep:hover {
  transform: translateY(-4px);
  border-color: var(--green);
  box-shadow: 0 14px 32px rgba(15,61,46,0.10);
}
.pstep-num {
  font-family: 'Fraunces', serif;
  font-size: 56px;
  font-style: italic;
  font-weight: 400;
  line-height: 1;
  color: var(--gold);
  margin-bottom: 18px;
  display: inline-block;
}
.pstep-title { font-size: 18px; font-weight: 600; margin-bottom: 10px; letter-spacing: -0.3px; }
.pstep-desc { font-size: 14px; color: var(--muted); line-height: 1.65; }

/* ─── Trust band ─── */
.trust-band {
  padding: 70px 48px;
  max-width: 1280px; margin: 0 auto;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
  padding: 36px;
  background: var(--green);
  border-radius: var(--radius-lg);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.trust-grid::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(176,141,63,0.18), transparent 70%);
  pointer-events: none;
}
.trust-item { position: relative; z-index: 1; }
.trust-num {
  font-family: 'Fraunces', serif;
  font-size: 44px;
  font-weight: 500;
  color: #fff;
  letter-spacing: -1px;
  line-height: 1;
  margin-bottom: 6px;
}
.trust-num span { color: var(--gold-light); }
.trust-label {
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-weight: 500;
}

/* ─── Responsive ─── */
@media (max-width: 880px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 48px 20px 40px;
    gap: 40px;
  }
  .hero h1 { font-size: 40px; letter-spacing: -1.2px; }
  .stamp-scene { max-width: 360px; margin: 0 auto; }
  .services { padding: 64px 20px 40px; }
  .svc-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .svc-card { min-height: 200px; padding: 22px 18px 18px; }
  .process { padding: 64px 20px; }
  .pstep-grid { grid-template-columns: 1fr; gap: 14px; }
  .trust-band { padding: 40px 20px; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); padding: 28px 20px; gap: 24px; }
  .trust-num { font-size: 32px; }
  .hero-stats { gap: 22px; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 34px; }
  .stamp-scene { max-width: 300px; }
  .svc-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
}
