/* ==========================================================
   Trustway Exim — Stone Exports
   Palette taken from the logo: deep navy, polished gold, stone grey
   ========================================================== */

:root {
  --navy-900: #0a1a33;
  --navy-800: #0f2547;
  --navy-700: #16335f;
  --gold-500: #c9a24a;
  --gold-400: #dcbb6a;
  --gold-600: #a8822f;
  --stone-50: #f7f5f1;
  --stone-100: #efebe3;
  --stone-200: #e2dccf;
  --stone-500: #8a8478;
  --ink: #1b2230;
  --muted: #5d6573;
  --white: #ffffff;

  --font-sans: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Cormorant Garamond", Georgia, serif;

  --radius: 6px;
  --shadow: 0 18px 40px -18px rgba(10, 26, 51, 0.35);
  --container: 1200px;
  --header-h: 84px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--stone-50);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-600);
}
.eyebrow::before { content: ""; width: 36px; height: 2px; background: var(--gold-500); }
.on-dark .eyebrow { color: var(--gold-400); }

h1, h2, h3, h4 { font-weight: 800; line-height: 1.12; margin: 0 0 16px; color: var(--navy-800); letter-spacing: -0.01em; }
.on-dark h1, .on-dark h2, .on-dark h3, .on-dark h4 { color: var(--white); }
h2 { font-size: clamp(30px, 4vw, 46px); }
h3 { font-size: 22px; }
p { margin: 0 0 16px; color: var(--muted); }
.on-dark p { color: rgba(255, 255, 255, 0.75); }

em, .serif { font-family: var(--font-serif); font-style: italic; font-weight: 600; color: var(--gold-500); letter-spacing: 0; }

.section { padding: 110px 0; }
.section-head { max-width: 680px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow::after { content: ""; width: 36px; height: 2px; background: var(--gold-500); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .25s ease, background .25s ease, color .25s ease, box-shadow .25s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: linear-gradient(135deg, var(--gold-400), var(--gold-600)); color: var(--navy-900); box-shadow: 0 10px 24px -10px rgba(201, 162, 74, .8); }
.btn-outline { border-color: rgba(255,255,255,.5); color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--navy-800); }
.btn-navy { background: var(--navy-800); color: var(--white); }
.btn-navy:hover { background: var(--navy-700); }
.btn svg { width: 16px; height: 16px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 50;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s ease, border-color .3s ease;
}
.site-header.scrolled { box-shadow: 0 8px 30px -18px rgba(10,26,51,.4); border-color: var(--stone-200); }
.site-header .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand img { height: 64px; width: auto; }

.nav { display: flex; align-items: center; gap: 34px; }
.nav a {
  position: relative;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy-800);
  padding: 6px 0;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--gold-500);
  transition: width .3s ease;
}
.nav a:hover::after, .nav a.active::after { width: 100%; }
.nav .btn { padding: 11px 22px; color: var(--navy-900); }
.nav .btn::after { display: none; }

.menu-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.menu-toggle span { display: block; width: 26px; height: 2px; margin: 6px 0; background: var(--navy-800); transition: transform .3s, opacity .3s; }
.menu-open .menu-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Stone textures (SVG injected by main.js) ---------- */
.stone { position: relative; overflow: hidden; background: var(--stone-200); }
.stone > svg.tex { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(100vh, 920px);
  padding: calc(var(--header-h) + 60px) 0 80px;
  display: flex;
  align-items: center;
  background: radial-gradient(1200px 600px at 85% 20%, rgba(201,162,74,.16), transparent 60%),
              linear-gradient(160deg, var(--navy-900) 0%, var(--navy-800) 55%, var(--navy-700) 100%);
  color: var(--white);
  overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 60px; align-items: center; }
.hero-grid > * { min-width: 0; }
.hero h1 { font-size: clamp(40px, 5.6vw, 72px); margin: 22px 0 22px; }
.hero h1 em { display: block; font-size: 1.05em; }
.hero-lead { font-size: 18px; max-width: 540px; margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-index { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 54px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.14); }
.hero-index a { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,.7); transition: color .2s; }
.hero-index a span { color: var(--gold-400); font-weight: 700; margin-right: 8px; }
.hero-index a:hover { color: var(--white); }

/* slab composition — echoes the split "E" of the logo */
.hero-visual { position: relative; aspect-ratio: 1 / 1; max-width: 560px; justify-self: end; width: 100%; }
.hero-visual .orbit {
  position: absolute;
  inset: 4% -6% 8% -10%;
  border: 3px solid var(--gold-500);
  border-radius: 50%;
  border-left-color: transparent;
  border-top-color: transparent;
  transform: rotate(-18deg);
  opacity: .9;
  animation: orbit 14s linear infinite;
}
@keyframes orbit { to { transform: rotate(342deg); } }
.slab-stack { position: absolute; inset: 10% 8% 10% 12%; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr 1fr; gap: 12px; }
.slab-stack .stone { border-radius: 4px; box-shadow: var(--shadow); transform: skewX(-8deg); }
.slab-stack .s1 { grid-row: 1 / span 3; }
.slab-label {
  position: absolute;
  left: 0; bottom: 0;
  padding: 6px 12px;
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  background: rgba(10,26,51,.75);
  color: var(--white);
  transform: skewX(8deg);
  transform-origin: left bottom;
}

.scroll-cue { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); width: 24px; height: 40px; border: 2px solid rgba(255,255,255,.4); border-radius: 14px; }
.scroll-cue::after { content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; background: var(--gold-400); border-radius: 2px; animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Marquee strip ---------- */
.strip { background: var(--gold-500); color: var(--navy-900); overflow: hidden; padding: 16px 0; }
.strip-track { display: flex; gap: 48px; width: max-content; animation: marquee 32s linear infinite; }
.strip-track span { font-weight: 700; font-size: 14px; letter-spacing: .24em; text-transform: uppercase; white-space: nowrap; }
.strip-track span::after { content: "◆"; margin-left: 48px; font-size: 10px; vertical-align: middle; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Process ---------- */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
.process-grid::before { content: ""; position: absolute; top: 34px; left: 12%; right: 12%; height: 2px; background: repeating-linear-gradient(90deg, var(--gold-500) 0 10px, transparent 10px 18px); }
.step { position: relative; padding: 0 22px; text-align: center; }
.step-num {
  position: relative;
  width: 70px; height: 70px;
  margin: 0 auto 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--navy-800);
  color: var(--gold-400);
  font-weight: 800;
  font-size: 20px;
  box-shadow: 0 0 0 8px var(--stone-50), 0 0 0 9px var(--stone-200);
}
.step h3 { margin-bottom: 10px; }
.step p { font-size: 15px; }

/* ---------- Stone index (categories) ---------- */
.stones-section { background: var(--white); }
.stone-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stone-card { display: flex; flex-direction: column; background: var(--stone-50); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--stone-200); transition: transform .35s ease, box-shadow .35s ease; }
.stone-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.stone-card .stone { aspect-ratio: 4 / 3.4; }
.stone-card .stone > svg.tex { transition: transform .8s ease; }
.stone-card:hover .stone > svg.tex { transform: scale(1.08); }
.card-num { position: absolute; top: 14px; left: 16px; z-index: 1; font-weight: 800; font-size: 13px; letter-spacing: .14em; color: var(--white); background: rgba(10,26,51,.7); padding: 4px 10px; border-radius: 2px; }
.stone-card-body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.stone-card-body p { font-size: 15px; flex: 1; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--navy-800); }
.link-arrow::after { content: "→"; color: var(--gold-500); transition: transform .25s; }
.link-arrow:hover::after { transform: translateX(5px); }

/* ---------- Finishes ---------- */
.finishes { background: var(--navy-900); }
.finish-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 220px; gap: 14px; }
.finish { border-radius: 4px; }
.finish.wide { grid-column: span 2; }
.finish.tall { grid-row: span 2; }
.finish figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 1;
  padding: 40px 20px 16px;
  background: linear-gradient(transparent, rgba(10,26,51,.85));
  color: var(--white);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.finish figcaption small { display: block; font-weight: 500; letter-spacing: .04em; text-transform: none; font-size: 13px; color: rgba(255,255,255,.75); }
figure { margin: 0; }

/* ---------- Why us ---------- */
.why-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 80px; align-items: start; }
.why-intro { position: sticky; top: calc(var(--header-h) + 40px); }
.why-intro .logo-card { margin-top: 34px; background: var(--white); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); max-width: 360px; }
.why-list { list-style: none; margin: 0; padding: 0; counter-reset: why; }
.why-list li { counter-increment: why; display: grid; grid-template-columns: 70px 1fr; gap: 20px; padding: 30px 0; border-bottom: 1px solid var(--stone-200); }
.why-list li:first-child { padding-top: 0; }
.why-list li::before { content: counter(why, decimal-leading-zero); font-family: var(--font-serif); font-style: italic; font-weight: 600; font-size: 46px; line-height: 1; color: var(--gold-500); }
.why-list h3 { font-size: 20px; margin-bottom: 8px; }
.why-list p { margin: 0; font-size: 15px; }

/* ---------- Markets band ---------- */
.markets { background: linear-gradient(135deg, var(--navy-800), var(--navy-700)); color: var(--white); padding: 80px 0; position: relative; overflow: hidden; }
.markets::after { content: ""; position: absolute; right: -180px; top: -180px; width: 520px; height: 520px; border-radius: 50%; border: 3px solid rgba(201,162,74,.35); }
.markets-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 50px; align-items: center; position: relative; z-index: 1; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips span { padding: 9px 18px; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; font-size: 13px; font-weight: 600; letter-spacing: .06em; color: rgba(255,255,255,.88); }
.chips span:hover { border-color: var(--gold-400); color: var(--gold-400); }

/* ---------- Enquiry ---------- */
.enquire-grid { display: grid; grid-template-columns: 1fr 1.35fr; gap: 70px; }
.contact-lines { list-style: none; padding: 0; margin: 30px 0 0; }
.contact-lines li { display: flex; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--stone-200); font-weight: 600; color: var(--navy-800); }
.contact-lines svg { width: 20px; height: 20px; flex: none; color: var(--gold-600); }
.form { background: var(--white); padding: 40px; border-radius: var(--radius); box-shadow: var(--shadow); border-top: 4px solid var(--gold-500); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; margin-bottom: 7px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--navy-800); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 15px;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  background: var(--stone-50);
  border: 1px solid var(--stone-200);
  border-radius: 4px;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold-500); background: var(--white); box-shadow: 0 0 0 3px rgba(201,162,74,.18); }
.field textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 13px; margin: 14px 0 0; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: calc(var(--header-h) + 90px) 0 90px; background: linear-gradient(160deg, var(--navy-900), var(--navy-700)); color: var(--white); position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; left: 55%; top: -40%; width: 700px; height: 700px; border-radius: 50%; border: 3px solid var(--gold-500); border-left-color: transparent; border-bottom-color: transparent; opacity: .5; transform: rotate(20deg); }
.page-hero h1 { font-size: clamp(38px, 5vw, 62px); margin-top: 18px; }
.page-hero p { max-width: 620px; font-size: 18px; }
.crumbs { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.6); }
.crumbs a:hover { color: var(--gold-400); }

/* ---------- Product detail (products page) ---------- */
.product { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; padding: 90px 0; border-bottom: 1px solid var(--stone-200); }
.product:last-child { border-bottom: 0; }
.product.flip .product-media { order: 2; }
.product-media { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 12px; aspect-ratio: 5 / 4; }
.product-media .stone { border-radius: 4px; }
.product-media .stone:first-child { grid-row: span 2; }
.spec { display: grid; grid-template-columns: 140px 1fr; margin: 26px 0 30px; border-top: 1px solid var(--stone-200); }
.spec dt, .spec dd { margin: 0; padding: 12px 0; border-bottom: 1px solid var(--stone-200); font-size: 14px; }
.spec dt { font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: 12px; color: var(--navy-800); padding-top: 14px; }
.spec dd { color: var(--muted); }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.tag-list span { background: var(--stone-100); padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--navy-800); }

/* ---------- About page ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.value { background: var(--white); padding: 34px 30px; border-radius: var(--radius); border: 1px solid var(--stone-200); transition: border-color .3s, transform .3s; }
.value:hover { border-color: var(--gold-500); transform: translateY(-4px); }
.value .icon { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--navy-800); color: var(--gold-400); margin-bottom: 20px; }
.value .icon svg { width: 24px; height: 24px; }
.logo-showcase { background: var(--white); border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--gold-500); padding: 70px 0; }
.cta-band .container { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cta-band h2 { margin: 0; color: var(--navy-900); font-size: clamp(26px, 3.2vw, 38px); }
.cta-band p { margin: 8px 0 0; color: var(--navy-800); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: rgba(255,255,255,.7); padding: 90px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 50px; padding-bottom: 60px; }
.footer-logo { background: var(--white); border-radius: var(--radius); padding: 14px 18px; display: inline-block; margin-bottom: 22px; }
.footer-logo img { height: 92px; width: auto; }
.site-footer h4 { color: var(--white); font-size: 13px; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 22px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 12px; font-size: 15px; }
.site-footer a:hover { color: var(--gold-400); }
.site-footer p { color: rgba(255,255,255,.65); font-size: 15px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 24px 0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 13px; }
.footer-bottom span:last-child { letter-spacing: .2em; text-transform: uppercase; color: var(--gold-400); }

/* ---------- WhatsApp / back-to-top ---------- */
.to-top { position: fixed; right: 22px; bottom: 22px; z-index: 40; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--gold-500); color: var(--navy-900); font-size: 20px; cursor: pointer; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transform: translateY(10px); transition: opacity .3s, transform .3s; }
.to-top.show { opacity: 1; pointer-events: auto; transform: none; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .1s; }
.reveal.d2 { transition-delay: .2s; }
.reveal.d3 { transition-delay: .3s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .stone-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .why-grid, .enquire-grid, .markets-grid, .split { grid-template-columns: 1fr; gap: 50px; }
  .why-intro { position: static; }
  .values { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  :root { --header-h: 72px; }
  .brand img { height: 54px; }
  .menu-toggle { display: block; }
  .nav {
    position: fixed;
    top: var(--header-h); left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 24px 26px;
    background: var(--white);
    box-shadow: 0 20px 30px -20px rgba(10,26,51,.4);
    transform: translateY(-120%);
    transition: transform .35s ease;
    z-index: -1;
  }
  .menu-open .nav { transform: none; }
  .nav a { padding: 16px 0; border-bottom: 1px solid var(--stone-100); }
  .nav .btn { margin-top: 18px; justify-content: center; border-bottom: 0; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { justify-self: center; max-width: 440px; }
  .process-grid { grid-template-columns: 1fr 1fr; gap: 50px 0; }
  .process-grid::before { display: none; }
  .finish-grid { grid-template-columns: 1fr 1fr; }
  .product { grid-template-columns: 1fr; gap: 40px; padding: 70px 0; }
  .product.flip .product-media { order: 0; }
}

@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .section { padding: 80px 0; }
  .stone-grid, .process-grid, .values, .footer-grid { grid-template-columns: 1fr; }
  .finish-grid { grid-template-columns: 1fr; grid-auto-rows: 200px; }
  .finish.wide { grid-column: auto; }
  .finish.tall { grid-row: auto; }
  .form { padding: 28px 22px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .why-list li { grid-template-columns: 54px 1fr; }
  .why-list li::before { font-size: 36px; }
  .spec { grid-template-columns: 110px 1fr; }
  .hero-actions .btn { flex: 1; justify-content: center; padding: 14px 16px; white-space: nowrap; }
}
