/* pages/home.css — Home page: hero, showroom window, metal band, about, earn cards, jewellery pieces, showrooms.
   Part of the split style.css. Keep the load order in includes/layout.php. */

.metal-pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(231, 197, 106, .7);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 13px;
  font-weight: 600;
  color: #f6e7c2;
  background: rgba(0, 0, 0, .15);
}

.hero {
  position: relative;
  min-height: 84vh;
  display: flex;
  align-items: flex-end;
  padding: 56px 0 64px;
  color: #f8f1e4;
  background: #310e14;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(224, 178, 74, .45);
  pointer-events: none;
  z-index: 2;
}

.hero-portrait {
  position: absolute;
  inset: 0;
  border-radius: 0;
  background: url("../../jewellery/hero-banner.jpg") center / cover no-repeat;
  pointer-events: none;
  transform: scale(1);
  transform-origin: 32% 48%;
  animation: hero-kenburns 18s ease-in-out infinite alternate;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(49, 14, 20, .08) 0%, rgba(49, 14, 20, .2) 34%, rgba(88, 24, 34, .58) 58%, rgba(31, 9, 13, .88) 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: flex-end;
  padding-bottom: 2vh;
}

.hero-copy { width: min(640px, 62%); }

.hero .eyebrow,
.auth-story .eyebrow { color: #e7c56a; }

.hero h1,
.hero-title {
  font-family: var(--display);
  font-size: clamp(36px, 4.6vw, 58px);
  font-weight: 700;
  letter-spacing: .04em;
  line-height: 1.12;
  margin: 0 0 16px;
  background: none;
  color: #3a160e;
}

.hero-title span {
  display: inline-block;
  min-width: min(620px, 100%);
  padding: 8px 40px 8px 16px;
  background: linear-gradient(90deg, #e8c56a 0%, #f8f1de 64%, rgba(248, 241, 222, .08) 100%);
}

.hero-actions, .inline-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

.hero .btn {
  border-radius: 6px;
  padding: 12px 20px;
  font-size: 16px;
  font-weight: 600;
}

.hero .btn-gold { background: #e4b53a; color: #3a160e; }

.hero .btn-ghost {
  border-color: rgba(248, 241, 228, .8);
  color: #f8f1e4;
  background: rgba(28, 8, 12, .22);
}

.showcase-intro { padding-top: 36px; background: #1a090c; color: #f8f1e4; }

.showcase-intro .kicker { color: #e7c56a; }

.showcase-intro .section-head h2 { color: #f8f1e4; }

.showcase-intro .section-head p { color: rgba(248, 241, 228, .86); }

.showcase-window {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  grid-template-rows: repeat(3, 210px);
  gap: 12px;
}

.showcase-window a {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(231, 197, 106, .55);
  background: #310e14;
  text-decoration: none;
  color: #fffdf8;
}

.showcase-window a:first-child { grid-row: 1 / span 3; }

.showcase-window img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.01);
  transition: transform .5s ease;
}

.showcase-window a:hover img { transform: scale(1.06); }

.showcase-window span,
.showcase-metals span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 2px;
  padding: 48px 18px 16px;
  background: linear-gradient(180deg, rgba(18, 6, 8, 0) 0%, rgba(18, 6, 8, .82) 100%);
}

.showcase-window small,
.showcase-metals small {
  color: #e7c56a;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: 13px;
}

.showcase-window strong,
.showcase-metals strong {
  color: #fffdf8;
  font-family: var(--display);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: .02em;
}

.metal-band { padding: 0; gap: 12px; }

.metal-band a {
  flex: 1;
  min-height: 104px;
  text-decoration: none;
  padding: 18px 22px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  box-shadow: 0 14px 28px rgba(48, 18, 12, .12);
  transition: transform .2s ease, box-shadow .2s ease;
}

.showcase-metals a {
  position: relative;
  min-height: 220px;
  padding: 0;
  overflow: hidden;
  color: #fffdf8;
  background: #1a090c;
  border: 1px solid rgba(231, 197, 106, .45);
}

.showcase-metals img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform .5s ease;
}

.showcase-metals a:hover img { transform: scale(1.06); }

.showcase-metals span { min-height: 220px; }

.metal-band a:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 32px rgba(48, 18, 12, .18);
}

.band-silver { background: linear-gradient(180deg, #f5f7f8, #b7c2cc); color: #1c2630; }

.band-gold { background: linear-gradient(180deg, #f3e2b8, #a97832); color: #2c160c; }

.band-diamond { background: linear-gradient(180deg, #271115, #0e171c); color: #f6f1e6; }

.metal-band small { letter-spacing: .12em; text-transform: uppercase; font-size: 13px; }

.metal-band strong { font-family: var(--sans); font-size: 22px; }

.showcase-metals strong { font-family: var(--display); font-size: 28px; color: #fffdf8; }

.home-block .metal-band { margin-bottom: 32px; }

.about-band {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 28px;
  align-items: start;
}

.about-card {
  background: var(--maroon-deep);
  color: var(--gold-3);
  padding: 28px;
  border-radius: 16px;
  min-height: 0;
  background-image:
    radial-gradient(circle at 80% 20%, rgba(231,211,163,.18), transparent 30%),
    linear-gradient(160deg, #310e14, #2f171b);
}

.about-card ol { margin: 0; padding-left: 18px; }

.about-card li { margin: 4px 0; }

.about-card h2 { font-size: 28px; }

.about-card .eyebrow { color: var(--gold-2); }

.earn-block { background: linear-gradient(180deg, #f1e6e8, #fbf7f8 42%, #e9d8db); }

.earn-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.earn-card {
  background: var(--paper);
  border: 1px solid rgba(103, 31, 43, .28);
  border-radius: 14px;
  padding: 20px 18px 18px;
  min-height: 100%;
  box-shadow: 0 8px 22px rgba(48, 18, 12, .06);
}

.earn-card h3 {
  font-size: 1.2rem;
  color: var(--maroon-deep);
  margin: 0 0 .4em;
}

.earn-card p { margin: 0; color: #3d2b22; }

.earn-card .eyebrow {
  margin-bottom: 6px;
  color: var(--maroon);
  letter-spacing: .1em;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 700;
}

.earn-gold { border-top: 4px solid #b8893a; }

.earn-silver { border-top: 4px solid #8a96a3; }

.earn-forex { border-top: 4px solid #441e25; }

.earn-market { border-top: 4px solid #671f2b; }

.earn-agri { border-top: 4px solid #3d5c28; grid-column: 1 / -1; }

.earn-note {
  margin: 18px 0 0;
  max-width: 820px;
  color: #5c4a40;
  font-size: 15px;
}

.treasury {
  background:
    linear-gradient(#671f2b, #671f2b) 0 0 / 100% 8px no-repeat,
    linear-gradient(180deg, #fff8ee, #f4ead8);
}

.treasury .section-head h2 { color: #3a160e; }

.piece-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

.piece {
  background: #fffaf2;
  border-radius: 16px;
  padding: 22px 22px 20px;
  border: 1px solid rgba(198, 161, 91, .55);
  box-shadow: 0 16px 32px rgba(48, 18, 12, .08);
  min-height: 0;
}

.treasury .piece {
  padding: 0 0 20px;
  overflow: hidden;
  animation: piece-rise 0.6s ease both;
  background: #fff;
}

.piece-grid .piece:nth-child(2) { animation-delay: 0.08s; }

.piece-grid .piece:nth-child(3) { animation-delay: 0.16s; }

.piece-grid .piece:nth-child(4) { animation-delay: 0.24s; }

.piece-grid .piece:nth-child(5) { animation-delay: 0.32s; }

.piece-grid .piece:nth-child(6) { animation-delay: 0.4s; }

.piece-grid .piece:nth-child(7) { animation-delay: 0.48s; }

.piece-photo {
  position: relative;
  height: 420px;
  overflow: hidden;
  border-radius: 16px 16px 0 0;
  background:
    radial-gradient(circle at 50% 42%, #671f2b 0%, #310e14 72%);
}

.piece-photo img {
  display: block;
  width: 100%;
  height: 420px;
  object-fit: contain;
  object-position: center;
  padding: 16px;
  transform: scale(1);
  transition: transform 0.45s ease;
}

@media (min-width: 981px) {
    .piece-grid .piece:first-child { grid-column: span 2; }
    .piece-grid .piece:first-child .piece-photo,
    .piece-grid .piece:first-child .piece-photo img { height: 480px; }
}

.piece-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 32%, rgba(255, 236, 190, 0.55) 50%, transparent 68%);
  transform: translateX(-130%);
  pointer-events: none;
}

.treasury .piece:hover .piece-photo img { transform: scale(1.04); }

.treasury .piece:hover .piece-photo::after {
  animation: gold-sheen 0.9s ease forwards;
}

.piece-copy { padding: 18px 22px 0; }

.piece .tamil {
  font-family: var(--tamil), var(--sans);
  color: var(--maroon);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.45;
  margin: 0 0 6px;
}

.piece h3 {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: .03em;
  line-height: 1.25;
  margin: 0 0 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #c6a15b;
}

.piece p {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  margin: 0;
}

.treasury .piece:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 40px rgba(48, 18, 12, .14);
}

.metal-gold { box-shadow: inset 0 4px 0 #c6a15b, var(--shadow); }

.metal-silver { box-shadow: inset 0 4px 0 #b7c2cc, var(--shadow); }

.metal-diamond, .metal-roi { box-shadow: inset 0 4px 0 #441e25, var(--shadow); }

.treasury .piece.metal-gold,
.treasury .piece.metal-silver,
.treasury .piece.metal-diamond {
  background: #fffaf2;
  border: 1px solid #c6a15b;
}

.treasury .piece {
  transition: transform .2s ease, box-shadow .2s ease;
}

.metal-plain { box-shadow: inset 0 4px 0 #e7d3a3, var(--shadow); }

.showroom-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

@media (max-width: 760px) {
    .hero::before { inset: 10px; }
    .earn-agri { grid-column: auto; }
    body.site .hero { min-height: 70vh; padding: 36px 0 40px; align-items: flex-end; }
    .showcase-window { grid-template-columns: 1fr; grid-template-rows: none; }
    .showcase-window a:first-child { grid-row: auto; }
    .showcase-window a img { height: 260px; }
    .showcase-window strong, .showcase-metals strong { font-size: 22px; }
    .piece-photo, .piece-photo img { height: 300px; }
    .hero-inner { justify-content: flex-start; }
    .hero-copy { width: 100%; }
    .hero-portrait {
      inset: 0;
      width: auto;
      height: auto;
      top: 0;
      bottom: 0;
      opacity: 1;
    }
    .hero::after {
      background:
        linear-gradient(180deg, rgba(28, 8, 12, .18) 0%, rgba(28, 8, 12, .38) 36%, rgba(21, 7, 9, .86) 100%);
    }
    .hero-title,
    .hero h1 { font-size: 32px; }
    .hero-title span { min-width: 0; width: 100%; padding-right: 16px; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-portrait { animation: none; transform: none; }
    .treasury .piece,
    .piece-grid .piece { animation: none; }
    .piece-photo img,
    .showcase-window img,
    .showcase-metals img { transition: none; }
    .treasury .piece:hover .piece-photo img,
    .showcase-window a:hover img,
    .showcase-metals a:hover img { transform: none; }
    .treasury .piece:hover .piece-photo::after { animation: none; }
}
