/* ============================================================
   Purushottam Mines Pvt. Ltd. — Front-end stylesheet
   Restrained corporate palette: neutrals carry the layout,
   photography carries the colour, with restrained accents drawn
   from the logo's blue, gold, red and green brand marks.
   ============================================================ */

:root {
  --charcoal: #1f2429;     /* headings, dark UI — matches the logo wordmark */
  --ink: #2c3237;          /* body text */
  --muted: #69727b;
  --line: #e4e7ea;
  --bg: #ffffff;
  --bg-soft: #f5f6f7;
  --dark: #15191d;         /* dark sections */

  --accent: #4a7a28;       /* the one brand accent (AA contrast on white) */
  --accent-hover: #3b6320;
  --accent-soft: #eef3e8;
  --accent-light: #9cc46c; /* thin details on dark backgrounds only */

  --shadow-sm: 0 1px 3px rgba(16,24,32,.07);
  --shadow: 0 8px 24px rgba(16,24,32,.08);
  --shadow-lg: 0 18px 44px rgba(16,24,32,.13);
  --radius: 10px;
  --radius-sm: 6px;
  --container: 1200px;
  /* Segoe UI first, with graceful native fallbacks on macOS / others */
  --font: "Segoe UI", "Segoe UI Web (West European)", -apple-system, BlinkMacSystemFont, system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Segoe UI Semibold", "Segoe UI", -apple-system, BlinkMacSystemFont, system-ui, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  letter-spacing: .01em;
  font-feature-settings: "kern" 1, "liga" 1;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--charcoal);
  line-height: 1.12;
  margin: 0 0 .5em;
  font-weight: 700;
  letter-spacing: -0.021em;
  text-wrap: balance;
}
p { margin: 0 0 1em; text-wrap: pretty; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  padding: 13px 26px; border-radius: var(--radius-sm); font-weight: 600; font-size: .95rem;
  cursor: pointer; border: 1.5px solid transparent;
  transition: background-color .2s, border-color .2s, color .2s;
  letter-spacing: .012em;
}
.btn svg { transition: transform .2s; }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn-ghost:hover { background: #fff; color: var(--charcoal); border-color: #fff; }
.btn-outline { background: transparent; color: var(--charcoal); border-color: #cfd4d9; }
.btn-outline:hover { border-color: var(--charcoal); }
.btn-outline.active { background: var(--charcoal); color: #fff; border-color: var(--charcoal); }

/* ---------- Top bar ---------- */
.topbar { background: var(--charcoal); color: #c7cdd2; font-size: .82rem; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; min-height: 42px; flex-wrap: wrap; gap: 6px; }
.topbar a { color: #c7cdd2; transition: .2s; }
.topbar a:hover { color: #fff; }
.topbar .tb-left span, .topbar .tb-right a { display: inline-flex; align-items: center; gap: 6px; margin-right: 18px; }
.topbar .tb-right { display: flex; align-items: center; }
.topbar .tb-social a { margin-right: 0; margin-left: 12px; opacity: .85; }
.topbar .tb-social a:hover { opacity: 1; }
.topbar svg { width: 15px; height: 15px; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.97);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
  transition: box-shadow .3s;
}
.site-header.scrolled { box-shadow: var(--shadow); }
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 52px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links > li > a {
  display: block; padding: 10px 16px; font-weight: 600; font-size: .95rem; color: var(--charcoal);
  position: relative; transition: color .2s; white-space: nowrap;
}
.nav-links > li > a::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: 4px; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.nav-links > li > a:hover, .nav-links > li > a.active { color: var(--accent); }
.nav-links > li > a:hover::after, .nav-links > li > a.active::after { transform: scaleX(1); }
.nav-cta { margin-left: 10px; }
/* the header CTA is a real button — keep nav link colours/underline off it */
.nav-links > li > a.btn-primary, .nav-links > li > a.btn-primary:hover { color: #fff; padding: 11px 20px; }
.nav-links > li > a.btn::after { display: none; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 26px; height: 2px; background: var(--charcoal); margin: 6px 0; transition: .3s; }

/* ---------- Dropdown menus ---------- */
.has-sub { position: relative; }
.nav-links > li.has-sub > a { padding-right: 32px; }
.nav-links > li.has-sub > a::after { right: 32px; }
.sub-toggle {
  position: absolute; right: 9px; top: 50%; transform: translateY(-50%);
  width: 22px; height: 22px; padding: 0; display: grid; place-items: center;
  background: none; border: 0; border-radius: 4px; color: var(--muted); cursor: pointer; transition: color .2s;
}
.sub-toggle svg { transition: transform .25s ease; }
.has-sub:hover > .sub-toggle, .has-sub.open > .sub-toggle { color: var(--accent); }
.has-sub:hover > .sub-toggle svg, .has-sub.open > .sub-toggle svg { transform: rotate(180deg); }
.sub-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* panel drops from the bottom edge of the header */
.sub-menu {
  position: absolute; top: calc(100% + 15px); left: 50%; z-index: 110;
  min-width: 310px; padding: 10px; background: #fff;
  border: 1px solid var(--line); border-top: 2px solid var(--accent); border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translate(-50%, 10px);
  transition: opacity .22s ease, transform .22s ease, visibility 0s linear .22s;
}
/* invisible bridge so the pointer can travel from the link down to the panel */
.sub-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -17px; height: 17px; }
.has-sub:hover > .sub-menu, .has-sub.open > .sub-menu {
  opacity: 1; visibility: visible; transform: translate(-50%, 0); transition-delay: 0s;
}
.sub-narrow { min-width: 230px; }

.sub-item {
  display: flex; align-items: center; gap: 14px; padding: 11px 12px; border-radius: var(--radius-sm);
  color: var(--charcoal); transition: background-color .18s ease;
}
.sub-item:hover, .sub-item:focus-visible { background: var(--bg-soft); outline: none; }
.sub-icon {
  width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: var(--radius-sm);
  background: var(--bg-soft); color: var(--charcoal); transition: background-color .18s, color .18s;
}
.sub-item:hover .sub-icon, .sub-item:focus-visible .sub-icon { background: var(--accent-soft); color: var(--accent); }
.sub-text { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.sub-text strong { font-size: .92rem; font-weight: 600; color: var(--charcoal); transition: color .18s; }
.sub-text small { font-size: .78rem; color: var(--muted); margin-top: 3px; }
.sub-item:hover .sub-text strong, .sub-item:focus-visible .sub-text strong { color: var(--accent); }
.sub-compact { padding: 9px 12px; }
.sub-count {
  margin-left: auto; min-width: 26px; padding: 2px 9px; border-radius: 20px; text-align: center;
  font-size: .72rem; font-weight: 700; color: var(--muted); background: var(--bg-soft); transition: .18s;
}
.sub-item:hover .sub-count { background: #fff; color: var(--accent); }

/* Minerals mega panel */
.sub-mega { width: 610px; padding: 0; }
.mega-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 22px 8px; }
.mega-eyebrow { font-size: .7rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); }
.mega-all, .mega-foot a { display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; font-weight: 700; }
.mega-all { color: var(--accent); }
.mega-all svg, .mega-foot a svg { transition: transform .2s; }
.mega-all:hover svg, .mega-foot a:hover svg { transform: translateX(3px); }
.mega-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px 12px 12px; }
.mega-item { display: flex; align-items: center; gap: 14px; padding: 10px; border-radius: var(--radius-sm); transition: background-color .18s; }
.mega-item:hover, .mega-item:focus-visible, .mega-item.current { background: var(--bg-soft); outline: none; }
.mega-thumb { width: 64px; height: 64px; flex: none; border-radius: var(--radius-sm); overflow: hidden; background: var(--bg-soft); }
.mega-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.mega-item:hover .mega-thumb img { transform: scale(1.08); }
.mega-item:hover .sub-text strong, .mega-item:focus-visible .sub-text strong, .mega-item.current .sub-text strong { color: var(--accent); }
.mega-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 22px;
  background: var(--bg-soft); border-top: 1px solid var(--line); border-radius: 0 0 9px 9px;
  font-size: .84rem; color: var(--muted);
}
.mega-foot a { color: var(--charcoal); }
.mega-foot a:hover { color: var(--accent); }

/* in-page targets from the About dropdown clear the sticky header */
section[id] { scroll-margin-top: 90px; }

/* ---------- Hero slider (cinematic) ---------- */
.hero { position: relative; overflow: hidden; background: #0d1013; }
.slides { position: relative; height: 92vh; min-height: 620px; max-height: 940px; }
.slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity 1.1s ease;
  display: flex; align-items: center;
}
.slide-bg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  transform: scale(1.04); will-change: transform;
}
.slide.active .slide-bg { animation: kenburns 13s ease-out both; }
@keyframes kenburns { from { transform: scale(1.04); } to { transform: scale(1.16); } }
/* neutral legibility grade — no colour tint */
.slide::before { content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(95deg, rgba(10,12,14,.88) 0%, rgba(10,12,14,.6) 42%, rgba(10,12,14,.15) 78%, rgba(10,12,14,.05) 100%); }
.slide::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 42%; z-index: 1;
  background: linear-gradient(to top, #0d1013 2%, rgba(13,16,19,.5) 45%, transparent); }
.slide.active { opacity: 1; z-index: 2; }
.slide .container { position: relative; z-index: 3; width: 100%; }
.slide-inner { max-width: 720px; color: #fff; }
.slide .eyebrow {
  display: inline-flex; align-items: center; gap: 12px; letter-spacing: 3px; font-size: .74rem; font-weight: 700; text-transform: uppercase;
  color: rgba(255,255,255,.85); margin-bottom: 24px;
  transform: translateY(20px); opacity: 0; transition: .7s .1s;
}
.slide .eyebrow::before { content: ""; width: 32px; height: 2px; background: var(--accent-light); display: inline-block; }
.slide h1 {
  color: #fff; font-size: clamp(2.4rem, 5.4vw, 4.4rem); line-height: 1.04; margin-bottom: 22px;
  letter-spacing: -0.03em; font-weight: 700; text-shadow: 0 2px 40px rgba(0,0,0,.35);
  transform: translateY(26px); opacity: 0; transition: .7s .2s;
}
.slide p {
  font-size: clamp(1.02rem, 1.4vw, 1.24rem); color: #dde2e6; max-width: 580px; margin-bottom: 34px; line-height: 1.65;
  transform: translateY(26px); opacity: 0; transition: .7s .3s;
}
.slide .slide-cta { display: flex; gap: 14px; flex-wrap: wrap; transform: translateY(26px); opacity: 0; transition: .7s .4s; }
.slide.active .eyebrow, .slide.active h1, .slide.active p, .slide.active .slide-cta { transform: translateY(0); opacity: 1; }

.slider-dots { position: absolute; bottom: 92px; left: 0; right: 0; z-index: 6; display: flex; justify-content: center; gap: 10px; }
.slider-dots button { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.6); background: transparent; cursor: pointer; padding: 0; transition: .3s; }
.slider-dots button:hover { border-color: #fff; }
.slider-dots button.active { background: #fff; border-color: #fff; width: 32px; border-radius: 6px; }
.slider-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 6;
  width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); cursor: pointer;
  background: rgba(255,255,255,.06); color: #fff; backdrop-filter: blur(8px); transition: .25s;
  display: grid; place-items: center;
}
.slider-arrow:hover { background: #fff; color: var(--charcoal); border-color: #fff; }
.slider-arrow.prev { left: 26px; } .slider-arrow.next { right: 26px; }
/* scroll cue */
.scroll-cue { position: absolute; bottom: 88px; right: 40px; z-index: 6; color: rgba(255,255,255,.75);
  display: flex; align-items: center; gap: 10px; font-size: .72rem; letter-spacing: 2px; text-transform: uppercase; }
.scroll-cue .mouse { width: 24px; height: 38px; border: 1.5px solid rgba(255,255,255,.6); border-radius: 14px; position: relative; }
.scroll-cue .mouse::after { content: ""; position: absolute; left: 50%; top: 7px; width: 4px; height: 7px; border-radius: 3px; background: #fff; transform: translateX(-50%); animation: scrolldot 1.6s ease-in-out infinite; }
@keyframes scrolldot { 0%,100% { opacity: 0; transform: translate(-50%,0); } 50% { opacity: 1; transform: translate(-50%,8px); } }
@media (max-width: 768px) { .scroll-cue { display: none; } }

/* ---------- Section basics ---------- */
.section { padding: 110px 0; }
.section.soft { background: var(--bg-soft); }
.section-head { max-width: 740px; margin: 0 auto 62px; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.eyebrow-tag {
  display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
}
.section-title { font-size: clamp(2rem, 4vw, 3.1rem); letter-spacing: -0.025em; line-height: 1.08; font-weight: 700; }
.section-sub { color: var(--muted); font-size: 1.1rem; margin-top: 6px; }

/* ---------- Feature cards ---------- */
.features { margin-top: -64px; position: relative; z-index: 20; }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: feature-card; }
.feature-card {
  background: #fff; border-radius: var(--radius); padding: 32px 28px 30px; box-shadow: var(--shadow);
  border: 1px solid var(--line); position: relative; overflow: hidden; transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
  counter-increment: feature-card;
}
.feature-card:nth-child(1) { --feature-color: #2e6f9e; --feature-light: #8cb8d6; --feature-tint: #edf4f9; --feature-shadow: rgba(46,111,158,.22); }
.feature-card:nth-child(2) { --feature-color: #c88924; --feature-light: #efc16b; --feature-tint: #fbf4e5; --feature-shadow: rgba(200,137,36,.22); }
.feature-card:nth-child(3) { --feature-color: #b95542; --feature-light: #e49a8a; --feature-tint: #fbefed; --feature-shadow: rgba(185,85,66,.22); }
.feature-card:nth-child(4) { --feature-color: #4a7a28; --feature-light: #9cc46c; --feature-tint: #eef3e8; --feature-shadow: rgba(74,122,40,.22); }
.feature-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--feature-color, var(--accent)); transform: scaleX(0); transform-origin: left; transition: transform .35s; }
.feature-card::after { content: counter(feature-card, decimal-leading-zero); position: absolute; top: 26px; right: 24px; color: var(--feature-color, var(--accent)); opacity: .22; font-size: .72rem; font-weight: 800; letter-spacing: 1.5px; }
.feature-card:hover::before { transform: scaleX(1); }
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: #cbd8c2; }
.feature-icon {
  width: 66px; height: 66px; border-radius: 18px; display: grid; place-items: center;
  color: #fff; background: var(--feature-color, var(--accent)); margin-bottom: 24px; position: relative; isolation: isolate;
  box-shadow: 0 10px 18px var(--feature-shadow, rgba(74,122,40,.18)); transition: transform .3s ease, box-shadow .3s ease;
}
.feature-icon::before { content: ""; position: absolute; inset: 6px; border: 1px solid rgba(255,255,255,.48); border-radius: 13px; z-index: -1; }
.feature-icon::after { content: ""; position: absolute; width: 8px; height: 8px; right: -4px; top: -4px; border-radius: 50%; background: var(--feature-light, var(--accent-light)); border: 3px solid #fff; }
.feature-icon svg { width: 31px; height: 31px; stroke-width: 1.65; }
.feature-card:hover .feature-icon { transform: translateY(-3px) rotate(-3deg); box-shadow: 0 14px 24px var(--feature-shadow, rgba(74,122,40,.25)); }
.feature-card h3 { font-size: 1.18rem; margin-bottom: 11px; }
.feature-card p { color: var(--muted); font-size: .94rem; margin: 0; }

/* ---------- Welcome / about split ---------- */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.split .media { position: relative; }
.split .media .img-main { border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 100%; height: 460px; object-fit: cover; }
.split .media .badge {
  position: absolute; right: -16px; bottom: -16px; background: var(--charcoal); color: #fff;
  padding: 20px 24px; border-radius: var(--radius); box-shadow: var(--shadow); text-align: center;
  border-top: 3px solid var(--accent);
}
.split .media .badge .num { font-size: 2rem; font-weight: 700; line-height: 1; }
.split .media .badge .lbl { font-size: .78rem; letter-spacing: .5px; color: #b8bfc5; margin-top: 4px; }
.prose p { color: #4a5259; }
.prose ul { padding-left: 0; list-style: none; margin: 0 0 1.2em; }
.prose li { position: relative; padding-left: 22px; margin-bottom: 10px; color: #4a5259; }
.prose li::before { content: ""; position: absolute; left: 2px; top: .72em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.checklist { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; margin: 22px 0 26px; }
.checklist .ci { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--charcoal); }
.checklist .ci svg { color: var(--accent); flex: none; }

/* ---------- Minerals / products ---------- */
.mineral-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.mineral-card {
  background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
  border: 1px solid var(--line); transition: transform .3s ease, box-shadow .3s ease; display: flex; flex-direction: column;
}
.mineral-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.mineral-thumb { position: relative; height: 230px; overflow: hidden; display: block; }
.mineral-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.mineral-card:hover .mineral-thumb img { transform: scale(1.06); }
.mineral-thumb .tag {
  position: absolute; top: 14px; left: 14px; z-index: 2; background: rgba(255,255,255,.94); color: var(--charcoal);
  font-size: .66rem; font-weight: 700; letter-spacing: .8px; padding: 6px 11px; border-radius: 4px; text-transform: uppercase;
}
.mineral-body { padding: 24px 24px 28px; display: flex; flex-direction: column; flex: 1; }
.mineral-body h3 { font-size: 1.28rem; margin-bottom: 6px; }
.mineral-body .m-tagline { color: var(--muted); font-weight: 600; font-size: .78rem; letter-spacing: .8px; text-transform: uppercase; margin-bottom: 12px; }
.mineral-body p { color: var(--muted); font-size: .93rem; }
.mineral-link { margin-top: auto; display: inline-flex; align-items: center; gap: 9px; font-weight: 700; color: var(--accent); font-size: .88rem; }
.mineral-link svg { transition: transform .25s; }
.mineral-card:hover .mineral-link svg { transform: translateX(5px); }

/* ---------- Stats band ---------- */
.stats-band { background: var(--dark); position: relative; overflow: hidden; }
.stats-band::before { content: ""; position: absolute; inset: 0;
  background: url('../images/stats-parallax.webp') center/cover no-repeat; background-attachment: fixed; opacity: .5; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; position: relative; z-index: 2; }
.stat { text-align: center; color: #fff; position: relative; }
.stat:not(:last-child)::after { content: ""; position: absolute; right: -15px; top: 12%; bottom: 12%; width: 1px; background: rgba(255,255,255,.14); }
.stat .stat-num { font-size: clamp(2.6rem, 4vw, 3.4rem); font-weight: 700; color: #fff; letter-spacing: -0.02em; }
.stat .stat-num .suffix { color: var(--accent-light); }
.stat .stat-label { color: #b3bbc2; font-size: .8rem; letter-spacing: 1.5px; text-transform: uppercase; margin-top: 8px; font-weight: 600; }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gallery-item { position: relative; border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 4/3; cursor: pointer; box-shadow: var(--shadow-sm); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item .g-overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 18px;
  background: linear-gradient(to top, rgba(13,16,19,.82), transparent 60%); opacity: 0; transition: .3s;
}
.gallery-item:hover .g-overlay { opacity: 1; }
.gallery-item .g-cat { color: rgba(255,255,255,.72); font-size: .72rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.gallery-item .g-title { color: #fff; font-weight: 600; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; background: var(--dark); overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: url('../images/cta-export.webp') center/cover no-repeat; opacity: .5; }
.cta-band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(13,16,19,.75) 0%, rgba(13,16,19,.3) 100%); }
.cta-inner { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 34px; flex-wrap: wrap; }
.cta-inner h2 { color: #fff; font-size: clamp(1.8rem, 3.4vw, 2.7rem); margin: 0; letter-spacing: -0.025em; }
.cta-inner p { color: #c3c9ce; margin: 12px 0 0; font-size: 1.05rem; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; background: var(--dark); color: #fff; padding: 104px 0 88px; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: url('../images/inner-page-hero.webp') center/cover no-repeat; opacity: .55; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(13,16,19,.7) 0%, rgba(13,16,19,.2) 100%); }
.page-hero .container { position: relative; z-index: 2; }
.page-hero .eyebrow-tag { color: rgba(255,255,255,.8); }
.page-hero h1 { color: #fff; font-size: clamp(2.3rem, 4.6vw, 3.6rem); letter-spacing: -0.03em; }
.breadcrumb { color: #b3bbc2; font-size: .9rem; margin-top: 14px; letter-spacing: .3px; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb .sep { margin: 0 8px; opacity: .6; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 44px; align-items: start; }
.info-card { display: flex; gap: 16px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 16px; transition: box-shadow .25s; background: #fff; }
.info-card:hover { box-shadow: var(--shadow); }
.info-card .ic { width: 50px; height: 50px; border-radius: var(--radius-sm); display: grid; place-items: center; color: var(--accent); background: var(--accent-soft); flex: none; }
.info-card h4 { margin: 0 0 4px; font-size: 1rem; }
.info-card p { margin: 0; color: var(--muted); font-size: .94rem; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 7px; color: var(--charcoal); }
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); font-family: inherit;
  font-size: .95rem; transition: .2s; background: #fbfbfc;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); background: #fff; box-shadow: 0 0 0 3px rgba(74,122,40,.15); }
.field textarea { resize: vertical; min-height: 130px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.map-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--line); line-height: 0; }
.map-wrap iframe { width: 100%; height: 340px; border: 0; }

/* ---------- Alerts ---------- */
.alert { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 20px; font-weight: 500; }
.alert-success { background: #edf5ee; color: #25643a; border: 1px solid #c5e0cc; }
.alert-error { background: #fbeeed; color: #a93226; border: 1px solid #f0cbc7; }

/* ---------- Product detail ---------- */
.product-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; align-items: center; }
.product-hero .p-media img { border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 100%; height: 420px; object-fit: cover; }
.spec-table { width: 100%; border-collapse: collapse; margin: 8px 0 24px; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.spec-table tr { border-bottom: 1px solid var(--line); }
.spec-table tr:last-child { border-bottom: 0; }
.spec-table tr:nth-child(even) { background: var(--bg-soft); }
.spec-table td { padding: 13px 18px; }
.spec-table td:first-child { font-weight: 600; color: var(--charcoal); width: 45%; }
.spec-table td:last-child { color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: #121518; color: #a9b0b6; padding-top: 76px; position: relative; overflow: hidden; }
.site-footer::before { content: ""; position: absolute; inset: 0; background: url('../images/topo.svg') center/cover no-repeat; opacity: .22; pointer-events: none; }
.site-footer .container { position: relative; z-index: 2; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.4fr; gap: 40px; padding-bottom: 44px; }
.footer-brand img { height: 52px; margin-bottom: 18px; filter: brightness(0) invert(1); }
.footer-brand p { font-size: .92rem; line-height: 1.8; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 20px; position: relative; padding-bottom: 10px; }
.site-footer h4::after { content: ""; position: absolute; left: 0; bottom: 0; width: 28px; height: 2px; background: var(--accent-light); }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 11px; }
.footer-links a { transition: color .2s; display: inline-flex; align-items: center; gap: 8px; font-size: .93rem; }
.footer-links a:hover { color: #fff; }
.footer-links a svg { color: #6f7880; }
.footer-contact li { display: flex; gap: 12px; margin-bottom: 15px; font-size: .93rem; align-items: flex-start; }
.footer-contact svg { color: #8a939a; flex: none; margin-top: 3px; }
.footer-social { display: flex; gap: 10px; margin-top: 8px; }
.footer-social a { width: 38px; height: 38px; border-radius: var(--radius-sm); background: rgba(255,255,255,.07); display: grid; place-items: center; transition: background-color .25s; }
.footer-social a:hover { background: var(--accent); color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.09); padding: 22px 0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .86rem; }
.footer-bottom a:hover { color: #fff; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Respect reduced-motion preference ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .slide.active .slide-bg { animation: none; transform: scale(1.04); }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; background: rgba(13,16,19,.94); z-index: 999; display: none; align-items: center; justify-content: center; padding: 30px; border: 0; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 86vh; border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); }
.lightbox .lb-close { position: absolute; top: 24px; right: 30px; background: none; border: 0; color: #fff; font-size: 2.4rem; cursor: pointer; line-height: 1; }

/* ---------- Typographic details ---------- */
.stat .stat-num,
.split .media .badge .num,
.spec-table td,
.breadcrumb,
.topbar .tb-left span { font-variant-numeric: tabular-nums; }
.prose a { color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.prose a:hover { color: var(--accent-hover); }

/* ---------- Responsive ---------- */
/* off-canvas navigation below 1024px — the full menu with dropdown chevrons needs more width */
@media (max-width: 1024px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; top: 0; right: -100%; width: 78%; max-width: 340px; height: 100vh; background: #fff;
    flex-direction: column; align-items: stretch; padding: 90px 22px 30px; gap: 4px; box-shadow: var(--shadow-lg);
    transition: right .35s ease; z-index: 90; overflow-y: auto;
  }
  .nav-links.open { right: 0; }
  .nav-links > li > a { padding: 14px 16px; border-radius: var(--radius-sm); }
  .nav-links > li > a::after { display: none; }
  .nav-links > li > a:not(.btn):hover, .nav-links > li > a.active { background: var(--bg-soft); }
  .nav-cta { margin: 12px 0 0; }
  .nav-cta a { justify-content: center; }
  /* dropdowns become an accordion inside the off-canvas menu */
  .has-sub { display: grid; grid-template-columns: 1fr auto; align-items: center; }
  .nav-links > li.has-sub > a { padding-right: 16px; }
  .sub-toggle { position: static; transform: none; width: 44px; height: 44px; }
  .has-sub:hover > .sub-toggle svg { transform: none; }
  .has-sub.open > .sub-toggle svg { transform: rotate(180deg); }
  .sub-menu, .sub-mega {
    grid-column: 1 / -1; position: static; display: none; width: auto; min-width: 0;
    margin: 2px 0 8px 16px; padding: 2px 0 2px 10px; border: 0; border-left: 2px solid var(--line); border-radius: 0;
    box-shadow: none; opacity: 1; visibility: visible; transform: none; transition: none;
  }
  .sub-menu::before, .mega-head, .mega-foot { display: none; }
  .has-sub:hover > .sub-menu { display: none; }
  .has-sub.open > .sub-menu { display: block; transform: none; }
  .mega-grid { grid-template-columns: 1fr; gap: 0; padding: 0; }
  .sub-item, .mega-item { padding: 8px 10px; gap: 12px; }
  .sub-icon { width: 34px; height: 34px; }
  .mega-thumb { width: 40px; height: 40px; }
  .sub-text small { display: none; }
  .nav-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 80; opacity: 0; visibility: hidden; transition: .3s; }
  .nav-backdrop.open { opacity: 1; visibility: visible; }
}
@media (max-width: 992px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .mineral-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 34px; }
  .stat:nth-child(2n)::after { display: none; }
  .split, .contact-grid, .product-hero { grid-template-columns: 1fr; gap: 34px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .split .media .img-main { height: 360px; }
}
@media (max-width: 768px) {
  .slides { height: 88vh; min-height: 540px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .checklist, .grid-2 { grid-template-columns: 1fr; }
  .slider-arrow { display: none; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .features { margin-top: -44px; }
  .section { padding: 72px 0; }
  .section-head { margin-bottom: 42px; }
  .stats-band::before { background-attachment: scroll; }
}
@media (max-width: 520px) {
  .feature-grid, .mineral-grid, .footer-grid, .stats-grid, .gallery-grid { grid-template-columns: 1fr; }
  .stat::after { display: none; }
  .topbar .tb-left { display: none; }
  .topbar .container { justify-content: center; }
  .slides { height: 600px; }
}
