/* Terran Transmission India — design system
   Uses the existing brand palette only: maroon #7F1518, greens #004B47/#00743A,
   golds #F3C87E/#FFD008. Layout/spacing/type improved; brand colors unchanged. */

:root {
  /* Terran brand palette (from live site — do not alter):
     primary maroon #7F1518, greens #004B47 / #00743A, golds #F3C87E / #FFD008 */
  --brand: #7f1518;            /* primary maroon */
  --brand-dark: #5f0f12;
  --brand-light: #b0575a;      /* lighter maroon for text on dark */
  --brand-glow: rgba(127, 21, 24, .14);

  --green: #004b47;            /* deep teal-green (brand) */
  --green-2: #00743a;          /* brighter green (brand) */
  --gold: #f3c87e;             /* soft gold (brand) */
  --gold-bright: #ffd008;      /* highlight gold (brand) */

  --ink: #2b1112;          /* deep maroon-tinted near-black */
  --ink-2: #464342;        /* brand dark gray text */
  --muted: #7a7a7a;        /* brand secondary text */
  --line: #ece2df;
  --cream: #fbf7f5;        /* warm off-white page bg */
  --cream-2: #f5eeea;
  --card: #ffffff;
  --white: #ffffff;

  --ok: #00743a;
  --err: #d12128;          /* brand red */

  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 8px rgba(23,19,13,.06);
  --shadow: 0 12px 34px rgba(23,19,13,.10);
  --shadow-lg: 0 26px 60px rgba(23,19,13,.18);
  --container: 1180px;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-dark); text-decoration: none; }
a:hover { color: var(--brand); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 22px; }
.section { padding: 92px 0; }
.section.tight { padding: 64px 0; }
.section.cream { background: var(--cream-2); }
.section.ink { background: var(--ink); color: #efe7da; }
.section.ink h2, .section.ink h3 { color: #fff; }
.section.green { background: linear-gradient(150deg, var(--green), #003b38); color: #e6f3ef; }
.section.green h2, .section.green h3, .section.green h4 { color: #fff; }
.section.green .eyebrow { color: var(--gold); }
.section.green .eyebrow::before { background: var(--gold); }

/* Typography */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.12; color: var(--ink); margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.9rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
h4 { font-size: 1.12rem; }
p { margin: 0 0 1rem; color: var(--ink-2); }
.lead { font-size: 1.18rem; color: var(--ink-2); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--sans); font-weight: 700; font-size: .78rem;
  letter-spacing: .16em; text-transform: uppercase; color: var(--brand);
  margin-bottom: 16px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--brand); display: inline-block; }
.section-head { max-width: 760px; margin-bottom: 52px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow::before { display: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--sans); font-weight: 600; font-size: .98rem;
  padding: 14px 28px; border-radius: 999px; border: 1.6px solid transparent;
  cursor: pointer; transition: transform .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 10px 24px var(--brand-glow); }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand-dark); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--cream); color: var(--ink); }
.btn-lg { padding: 17px 36px; font-size: 1.04rem; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }

/* Top bar + header */
.topbar {
  background: var(--ink); color: #cdbfa9; font-size: .84rem;
  padding: 8px 0;
}
.topbar .inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.topbar a { color: #e4d6bf; }
.topbar .tb-links { display: flex; gap: 20px; align-items: center; }

.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(250,246,240,.82); backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 14px 0; }
.brand img { height: 46px; width: auto; }
.nav { display: flex; align-items: center; gap: 34px; }
.nav a { color: var(--ink); font-weight: 500; font-size: .96rem; position: relative; }
.nav a::after { content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0; background: var(--brand); transition: width .2s ease; }
.nav a:hover { color: var(--brand-dark); }
.nav a:hover::after { width: 100%; }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.hamburger { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: .2s; }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(120deg, #2b0c0d 0%, #4a1214 52%, var(--brand) 100%);
  color: #f6e9e6;
}
.hero .container { position: relative; z-index: 2; padding-top: 96px; padding-bottom: 104px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hero h1 { color: #fff; }
.hero h1 .accent { color: var(--gold); }
.hero p { color: #ecd8d5; font-size: 1.2rem; max-width: 520px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.hero-media { position: relative; }
.hero-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.hero-media .badge {
  position: absolute; left: -22px; bottom: -22px; background: var(--brand);
  color: #fff; padding: 18px 22px; border-radius: var(--radius); box-shadow: var(--shadow);
  font-family: var(--serif); line-height: 1.1;
}
.hero-media .badge b { font-size: 2rem; display: block; }
.hero-media .badge span { font-size: .82rem; opacity: .9; font-family: var(--sans); }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(60% 60% at 80% 20%, var(--brand-glow), transparent 70%);
}

/* Stats strip */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.stat { text-align: center; padding: 30px 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.stat b { font-family: var(--serif); font-size: clamp(2.2rem, 4vw, 3rem); color: var(--brand); display: block; line-height: 1; }
.stat span { color: var(--muted); font-weight: 500; font-size: .98rem; margin-top: 8px; display: block; }

/* Generic split (image + text) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split.reverse .split-media { order: 2; }
.split-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow); width: 100%; object-fit: cover; }
.split ul.checks { list-style: none; padding: 0; margin: 18px 0 0; }
.split ul.checks li, ul.checks li { position: relative; padding: 9px 0 9px 34px; color: var(--ink-2); border-bottom: 1px solid var(--line); }
ul.checks { list-style: none; padding: 0; margin: 0; }
ul.checks li::before {
  content: "✓"; position: absolute; left: 0; top: 8px; width: 22px; height: 22px;
  background: var(--brand-glow); color: var(--brand-dark); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: .72rem; font-weight: 700;
}

/* Cards grid */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 32px; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card .ic {
  width: 52px; height: 52px; border-radius: 13px; display: flex; align-items: center; justify-content: center;
  background: var(--brand-glow); color: var(--brand-dark); margin-bottom: 18px; font-size: 1.4rem;
}
.card h3, .card h4 { margin-bottom: 10px; }
.card p { color: var(--muted); margin: 0; font-size: .98rem; }

/* Product cards with image */
.product-card { padding: 0; overflow: hidden; }
.product-card .pc-img { aspect-ratio: 16/11; overflow: hidden; }
.product-card .pc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.product-card:hover .pc-img img { transform: scale(1.05); }
.product-card .pc-body { padding: 26px 28px 30px; }

/* Feature tiles (what sets us apart) */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.tile { text-align: center; padding: 30px 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.tile .ic { margin: 0 auto 16px; }

/* Ranges band */
.ranges { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.range { text-align: center; padding: 34px 20px; border-radius: var(--radius-lg); background: linear-gradient(160deg, var(--green), #003b38); color: #e6f3ef; border: 1px solid #0a5a54; }
.range b { display: block; font-family: var(--serif); font-size: 2rem; color: var(--gold); margin: 8px 0; }
.range span { color: #bfe0d9; font-size: .95rem; }

/* CTA band */
.cta-band { background: linear-gradient(120deg, var(--brand-dark), var(--brand)); color: #fff; border-radius: var(--radius-lg); padding: 56px; text-align: center; box-shadow: var(--shadow); }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.9); max-width: 560px; margin: 0 auto 26px; }

/* Quote */
.quote { text-align: center; max-width: 820px; margin: 0 auto; }
.quote blockquote { font-family: var(--serif); font-size: clamp(1.4rem, 3vw, 2.1rem); font-style: italic; color: var(--ink); margin: 0; line-height: 1.3; }
.quote cite { display: block; margin-top: 18px; color: var(--brand); font-style: normal; font-weight: 600; }

/* Footer */
.site-footer { background: var(--ink); color: #b7ab98; padding: 72px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; }
.site-footer h4 { color: #fff; font-family: var(--sans); font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 18px; }
.site-footer a { color: #cdbfa9; display: block; padding: 5px 0; }
.site-footer a:hover { color: var(--brand-light); }
.site-footer .about img { height: 44px; margin-bottom: 18px; }
.site-footer .about p { color: #a89b87; font-size: .94rem; }
.footer-contact p { color: #cdbfa9; font-size: .94rem; margin: 0 0 8px; }
.footer-bottom { border-top: 1px solid #2c2519; margin-top: 48px; padding-top: 22px; text-align: center; color: #8a7f6d; font-size: .86rem; }
.footer-bottom a { color: var(--brand-light); display: inline; }

/* ---------- Forms (contact + cashback) ---------- */
.form-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 38px; box-shadow: var(--shadow); }
.form-row { margin-bottom: 20px; }
.form-row label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 8px; color: var(--ink); }
.form-row label .req { color: var(--brand); }
.form-row input, .form-row textarea, .form-row select {
  width: 100%; padding: 13px 15px; font-size: 1rem; font-family: inherit; color: var(--ink);
  background: #fff; border: 1.5px solid var(--line); border-radius: 10px; outline: none;
  transition: border .15s ease, box-shadow .15s ease;
}
.form-row textarea { min-height: 120px; resize: vertical; }
.form-row input:focus, .form-row textarea:focus, .form-row select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-glow); }
.form-row input[readonly] { background: var(--cream-2); color: var(--muted); }
.form-row .hint { font-size: .82rem; color: var(--muted); margin-top: 6px; }
.form-row .err-msg { display: none; color: var(--err); font-size: .82rem; margin-top: 6px; }
.form-row.error input, .form-row.error textarea, .form-row.error select { border-color: var(--err); }
.form-row.error .err-msg { display: block; }
.form-status { margin-top: 14px; padding: 13px 15px; border-radius: 10px; font-size: .92rem; display: none; }
.form-status.show { display: block; }
.form-status.error { background: #fdecea; color: #a02417; border: 1px solid #f3b5ad; }
.form-status.ok { background: #e7f5ee; color: #1f6b45; border: 1px solid #a9dcc1; }

/* Cashback: language picker */
.lang-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; max-width: 380px; margin: 0 auto; }
.lang-btn {
  display: flex; align-items: center; justify-content: center; min-height: 62px; padding: 14px;
  border: 1.6px solid var(--line); border-radius: 14px; background: #fff; color: var(--brand-dark);
  font-family: var(--serif); font-weight: 600; font-size: 1.35rem; cursor: pointer;
  transition: transform .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
}
.lang-btn:hover { background: var(--brand); border-color: var(--brand); color: #fff; transform: translateY(-2px); text-decoration: none; }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; }
.faq-item { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; background: #fff; overflow: hidden; }
.faq-q { display: flex; align-items: center; gap: 12px; font-weight: 600; cursor: pointer; list-style: none; padding: 18px 20px; color: var(--ink); }
.faq-q::-webkit-details-marker { display: none; }
.faq-q::before { content: "+"; color: var(--brand); font-size: 1.4rem; width: 20px; }
.faq-item[open] .faq-q::before { content: "−"; }
.faq-a { padding: 0 20px 18px 52px; color: var(--muted); }

/* UPI tutorial */
.upi-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; max-width: 620px; margin: 0 auto; }
.upi-card { position: relative; border-radius: 16px; overflow: hidden; cursor: pointer; background: #241d13; box-shadow: var(--shadow-sm); }
.upi-card img { width: 100%; display: block; }
.upi-card .play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.06); transition: background .15s ease; }
.upi-card:hover .play { background: rgba(0,0,0,.2); }
.upi-card .play svg { width: 66px; height: 66px; fill: rgba(255,255,255,.95); filter: drop-shadow(0 4px 12px rgba(0,0,0,.35)); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.85); z-index: 1000; display: none; align-items: center; justify-content: center; padding: 20px; }
.lightbox.open { display: flex; }
.lightbox-inner { position: relative; width: min(420px, 100%); aspect-ratio: 9/16; background: #000; border-radius: 12px; overflow: hidden; }
.lightbox-inner iframe { width: 100%; height: 100%; border: 0; }
.lightbox-close { position: absolute; top: -42px; right: 0; background: transparent; border: 0; color: #fff; font-size: 30px; cursor: pointer; }

/* page hero (interior) */
.page-hero { background: linear-gradient(120deg, #17130d, #2c2013); color: #f2e9da; padding: 72px 0; text-align: center; }
.page-hero h1 { color: #fff; margin-bottom: 10px; }
.page-hero p { color: #d3c5ad; margin: 0; }
.breadcrumbs { font-size: .85rem; color: #c0b299; margin-bottom: 14px; }
.breadcrumbs a { color: var(--brand-light); }

/* legal / prose */
.prose { max-width: 820px; margin: 0 auto; }
.prose h2 { font-size: 1.35rem; margin-top: 2em; }
.prose h3 { font-size: 1.1rem; margin-top: 1.5em; }
.prose p, .prose li { color: var(--ink-2); }

/* thank you */
.thanks { text-align: center; max-width: 640px; margin: 0 auto; }
.thanks .ic { font-size: 68px; margin-bottom: 10px; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 940px) {
  .hero-grid, .split { grid-template-columns: 1fr; gap: 40px; }
  .split.reverse .split-media { order: 0; }
  .grid-3, .tiles, .ranges, .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-media { max-width: 460px; }
}
@media (max-width: 720px) {
  .section { padding: 64px 0; }
  .nav, .topbar .tb-links { display: none; }
  .hamburger { display: block; }
  .nav.open { display: flex; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; background: var(--cream); padding: 20px 22px; gap: 16px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .stats, .grid-3, .grid-2, .tiles, .ranges, .footer-grid { grid-template-columns: 1fr; }
  .lang-grid { gap: 12px; }
  .upi-grid { grid-template-columns: 1fr; max-width: 320px; }
  .cta-band, .form-card { padding: 30px 22px; }
}
