/* ============================================================
   Trivam Global — "ledger and lotus"
   Ivory ground, maroon ink, rani/kesar accents used sparingly.
   ============================================================ */

:root {
  --ivory: #FAF6EF;
  --white: #FFFFFF;
  --maroon: #4A0E1E;
  --maroon-soft: #6E2438;
  --rani: #D63973;
  --kesar: #E8872B;
  --ink: #3A3436;
  --ink-muted: #6F6660;
  --line: #E9DFD0;
  --whatsapp: #25D366;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --w-content: 1100px;
  --radius: 7px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--maroon-soft); text-decoration: none; }
a:hover { color: var(--rani); }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--rani);
  outline-offset: 3px;
  border-radius: 2px;
}

.container {
  max-width: var(--w-content);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Type ---------- */

h1, h2, h3 { font-family: var(--font-display); color: var(--maroon); font-weight: 600; line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 2.75rem); font-weight: 400; }
h2 { font-size: clamp(1.5rem, 3.5vw, 1.9rem); }
h3 { font-size: 1.2rem; }

.eyebrow {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--kesar);
  display: block;
  margin-bottom: 10px;
}

.section-head { margin-bottom: 40px; }
.section-head .rule {
  width: 44px; height: 2px;
  background: var(--rani);
  margin-top: 16px;
  border: none;
}
.section-head p.lede { max-width: 640px; margin-top: 14px; color: var(--ink-muted); }

.small { font-size: 0.875rem; }
.muted { color: var(--ink-muted); }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 246, 239, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand img { height: 34px; width: auto; }
.brand .wordmark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.22em;
  color: var(--maroon);
  text-transform: uppercase;
  white-space: nowrap;
}

.site-nav { display: flex; gap: 28px; align-items: center; }
.site-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink);
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--maroon); }
.site-nav a[aria-current="page"] {
  color: var(--maroon);
  border-bottom-color: var(--rani);
}
.site-nav .nav-cta {
  background: var(--maroon);
  color: var(--ivory);
  padding: 9px 18px;
  border-radius: var(--radius);
  border-bottom: none;
  font-weight: 500;
}
.site-nav .nav-cta:hover { background: var(--maroon-soft); color: var(--ivory); }

/* Mobile nav */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--maroon);
  margin: 5px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute;
    top: 68px; left: 0; right: 0;
    background: var(--ivory);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    gap: 0;
    padding: 8px 0 16px;
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 24px; width: 100%; text-align: left; border-bottom: none; }
  .site-nav a[aria-current="page"] { border-left: 3px solid var(--rani); padding-left: 21px; }
  .site-nav .nav-cta { margin: 10px 24px 0; width: calc(100% - 48px); text-align: center; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 96px 0 84px;
  overflow: hidden;
}
.hero .watermark {
  position: absolute;
  right: -180px;
  top: -60px;
  width: 620px;
  opacity: 0.05;
  pointer-events: none;
  user-select: none;
}
.hero h1 { max-width: 720px; }
.hero .descriptor {
  font-size: 1.15rem;
  color: var(--ink-muted);
  max-width: 620px;
  margin-top: 20px;
}
.hero .cta-row { margin-top: 36px; display: flex; gap: 14px; flex-wrap: wrap; }

@media (max-width: 760px) {
  .hero { padding: 64px 0 56px; }
  .hero .watermark { width: 420px; right: -160px; top: -20px; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 13px 26px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-primary { background: var(--maroon); color: var(--ivory); }
.btn-primary:hover { background: var(--maroon-soft); color: var(--ivory); }
.btn-secondary { border-color: var(--maroon); color: var(--maroon); background: transparent; }
.btn-secondary:hover { border-color: var(--rani); color: var(--rani); }
.btn-whatsapp {
  background: var(--whatsapp);
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.btn-whatsapp:hover { background: #1fb959; color: #fff; }
.btn-whatsapp svg { width: 18px; height: 18px; }

/* ---------- Sections ---------- */

.section { padding: 72px 0; }
.section.alt { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
@media (max-width: 760px) { .section { padding: 52px 0; } }

/* What we do */
.pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.pillar {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
}
.section.alt .pillar { background: var(--ivory); }
.pillar h3 { font-size: 1.05rem; margin-bottom: 8px; }
.pillar p { font-size: 0.9rem; color: var(--ink-muted); }
.pillar .dot {
  width: 8px; height: 8px;
  background: var(--kesar);
  border-radius: 2px;
  transform: rotate(45deg);
  margin-bottom: 16px;
}
.pillar:nth-child(even) .dot { background: var(--rani); }

@media (max-width: 900px) { .pillars { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .pillars { grid-template-columns: 1fr; } }

/* Brand cards (home) */
.brand-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.brand-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.15s ease;
  display: flex;
  flex-direction: column;
}
.brand-card:hover { border-color: var(--maroon-soft); }
.brand-card img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.brand-card .body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.brand-card h3 { margin-bottom: 6px; }
.brand-card p { font-size: 0.9rem; color: var(--ink-muted); flex: 1; }
.brand-card .link {
  margin-top: 14px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--maroon);
}
.brand-card:hover .link { color: var(--rani); }

@media (max-width: 760px) { .brand-cards { grid-template-columns: 1fr; } }

/* Leadership block (home) */
.leader {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  align-items: center;
}
.leader img {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  width: 100%;
  height: 275px;
  object-fit: cover;
  object-position: center 20%;
}
.leader blockquote {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--maroon-soft);
  line-height: 1.5;
  margin-bottom: 14px;
}
@media (max-width: 700px) {
  .leader { grid-template-columns: 1fr; }
  .leader img { max-width: 260px; height: 325px; }
}

/* Business information block */
.info-table {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.info-row {
  display: grid;
  grid-template-columns: 260px 1fr;
  border-bottom: 1px solid var(--line);
}
.info-row:last-child { border-bottom: none; }
.info-row dt {
  padding: 16px 22px;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  background: var(--ivory);
  border-right: 1px solid var(--line);
}
.info-row dd {
  padding: 16px 22px;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}
@media (max-width: 640px) {
  .info-row { grid-template-columns: 1fr; }
  .info-row dt { border-right: none; padding-bottom: 4px; }
  .info-row dd { padding-top: 4px; }
}

/* ---------- Catalogue ---------- */

.brand-section { padding: 64px 0; }
.brand-section + .brand-section { border-top: 1px solid var(--line); }
.brand-section .brand-intro { max-width: 680px; margin-bottom: 12px; color: var(--ink-muted); }
.price-line {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--maroon-soft);
  margin-bottom: 36px;
}
.price-line .sep { color: var(--kesar); margin: 0 8px; }

.section-banner {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
  margin-bottom: 36px;
}
.section-banner img { width: 100%; max-height: 360px; object-fit: cover; object-position: center 30%; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.product-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.product-card button.zoom {
  display: block;
  width: 100%;
  border: none;
  padding: 0;
  cursor: zoom-in;
  background: none;
}
.product-card img {
  aspect-ratio: 4 / 5;
  height: auto;
  object-fit: cover;
  width: 100%;
  transition: opacity 0.15s ease;
}
.product-card button.zoom:hover img { opacity: 0.92; }
.product-card .body { padding: 18px 20px 20px; }
.product-card h3 { font-size: 1.02rem; margin-bottom: 4px; }
.product-card p { font-size: 0.85rem; color: var(--ink-muted); }
.product-card .price {
  margin-top: 10px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--maroon-soft);
}

@media (max-width: 900px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .product-grid { grid-template-columns: 1fr; } }

.brand-cta { margin-top: 36px; }

/* Enquiry band */
.enquiry-band {
  background: var(--white);
  border-top: 1px solid var(--line);
  padding: 64px 0;
  text-align: center;
}
.enquiry-band h2 { margin-bottom: 10px; }
.enquiry-band p { color: var(--ink-muted); max-width: 560px; margin: 0 auto 28px; }

/* ---------- About page ---------- */

.about-founder {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 48px;
  align-items: start;
}
.about-founder img {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  width: 100%;
  height: 375px;
  object-fit: cover;
  object-position: center 20%;
}
.about-founder .role {
  font-size: 0.85rem;
  color: var(--ink-muted);
  margin-top: 2px;
  margin-bottom: 18px;
}
.about-founder p + p { margin-top: 14px; }

.cred-list { margin-top: 22px; display: grid; gap: 10px; }
.cred-list li {
  list-style: none;
  padding-left: 22px;
  position: relative;
  font-size: 0.95rem;
}
.cred-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 7px; height: 7px;
  background: var(--kesar);
  border-radius: 2px;
  transform: rotate(45deg);
}
.cred-list li:nth-child(even)::before { background: var(--rani); }

@media (max-width: 760px) {
  .about-founder { grid-template-columns: 1fr; }
  .about-founder img { max-width: 300px; height: 375px; }
}

/* ---------- Contact page ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.contact-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.contact-card h3 { margin-bottom: 6px; }
.contact-card p { font-size: 0.95rem; color: var(--ink-muted); }
.contact-card .value {
  margin-top: 10px;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--maroon);
  word-break: break-word;
}
.contact-card .value a { color: var(--maroon); }
.contact-card .value a:hover { color: var(--rani); }
@media (max-width: 640px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--maroon);
  color: rgba(250, 246, 239, 0.85);
  padding: 56px 0 32px;
  margin-top: 0;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(250, 246, 239, 0.18);
}
.site-footer .f-brand img { height: 56px; width: auto; margin-bottom: 14px; }
.site-footer .f-brand p { font-size: 0.9rem; max-width: 320px; }
.site-footer h4 {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--kesar);
  margin-bottom: 14px;
}
.site-footer ul { list-style: none; }
.site-footer ul li { margin-bottom: 9px; font-size: 0.9rem; }
.site-footer a { color: rgba(250, 246, 239, 0.85); }
.site-footer a:hover { color: #fff; }

.verification-strip {
  padding-top: 28px;
  font-size: 0.82rem;
  line-height: 1.8;
  color: rgba(250, 246, 239, 0.7);
  letter-spacing: 0.02em;
}
.verification-strip strong { color: rgba(250, 246, 239, 0.95); font-weight: 500; }
.verification-strip .vsep { color: var(--kesar); margin: 0 7px; }

@media (max-width: 760px) {
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
}

/* ---------- WhatsApp float ---------- */

.wa-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--whatsapp);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
  transition: transform 0.15s ease;
}
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }

/* ---------- Lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(30, 6, 13, 0.88);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 32px;
  cursor: zoom-out;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: min(92vw, 900px);
  max-height: 88vh;
  border-radius: var(--radius);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}
.lightbox .lb-close {
  position: absolute;
  top: 18px; right: 22px;
  background: none;
  border: none;
  color: rgba(255,255,255,0.85);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

/* ---------- Reveal on scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}
