/* ==========================================================================
   RELIANT ENTERPRISE — Design System
   Theme: "Industrial Blueprint" — deep steel blue, silver accents,
   angled cut-edges echoing the grinding/pulverizing process.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&family=IBM+Plex+Sans:wght@400;500;600;700&family=IBM+Plex+Mono:wght@500&display=swap');

:root {
  /* Colors */
  --color-primary: #163C74;
  --color-primary-light: #2D5FA3;
  --color-primary-dark: #0C2547;
  --color-steel: #8FA4BD;
  --color-steel-light: #D6E0EC;
  --color-white: #FFFFFF;
  --color-bg: #F5F7FA;
  --color-bg-alt: #EBF0F6;
  --color-text: #1A2233;
  --color-text-muted: #59647A;
  --color-whatsapp: #22C35E;
  --color-whatsapp-dark: #1BA751;

  /* Typography */
  --font-display: 'Oswald', 'Arial Narrow', sans-serif;
  --font-body: 'IBM Plex Sans', -apple-system, sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  /* Layout */
  --max-width: 1200px;
  --radius: 6px;
  --shadow-card: 0 2px 8px rgba(12, 37, 71, 0.08), 0 1px 2px rgba(12, 37, 71, 0.06);
  --shadow-card-hover: 0 12px 28px rgba(12, 37, 71, 0.16), 0 2px 6px rgba(12, 37, 71, 0.08);
  --shadow-elevated: 0 20px 50px rgba(12, 37, 71, 0.22);
  --section-pad: 96px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--color-primary-dark);
  line-height: 1.15;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary-light);
  font-weight: 500;
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--color-primary-light);
  display: inline-block;
}

.section-head {
  max-width: 640px;
  margin-bottom: 48px;
}
.section-head h2 {
  font-size: clamp(28px, 4vw, 40px);
  margin-bottom: 12px;
}
.section-head p {
  color: var(--color-text-muted);
  font-size: 17px;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* Focus visibility (accessibility) */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--color-primary-light);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

/* ==========================================================================
   HEADER / NAVIGATION
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-bg-alt);
  transition: box-shadow 0.25s ease;
}
.site-header.is-scrolled { box-shadow: 0 4px 16px rgba(12, 37, 71, 0.10); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 86px;
}

.brand {
  display: flex;
  align-items: center;
  background: var(--color-primary-dark);
  padding: 10px 20px;
  border-radius: var(--radius);
}
.brand img { height: 34px; width: auto; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.main-nav a {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--color-text);
  padding: 10px 16px;
  border-radius: var(--radius);
  transition: background 0.2s ease, color 0.2s ease;
}
.main-nav a:hover { background: var(--color-bg-alt); color: var(--color-primary); }
.main-nav a.active { color: var(--color-primary); position: relative; }
.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 16px; right: 16px; bottom: 4px;
  height: 2px;
  background: var(--color-primary);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-call-header {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-primary);
  color: var(--color-white);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 11px 20px;
  border-radius: var(--radius);
  transition: background 0.2s ease, transform 0.15s ease;
}
.btn-call-header:hover { background: var(--color-primary-dark); transform: translateY(-1px); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 30px;
  padding: 6px;
}
.nav-toggle span { display: block; height: 2px; background: var(--color-primary-dark); border-radius: 2px; transition: transform 0.25s ease, opacity 0.25s ease; }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  background: var(--color-primary-dark);
  background-image:
    linear-gradient(135deg, rgba(12,37,71,0.94), rgba(22,60,116,0.90)),
    repeating-linear-gradient(0deg, rgba(143,164,189,0.10) 0, rgba(143,164,189,0.10) 1px, transparent 1px, transparent 48px),
    repeating-linear-gradient(90deg, rgba(143,164,189,0.10) 0, rgba(143,164,189,0.10) 1px, transparent 1px, transparent 48px);
  color: var(--color-white);
  padding: 100px 0 140px;
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 48px), 0 100%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero-copy .eyebrow { color: var(--color-steel-light); }
.hero-copy .eyebrow::before { background: var(--color-steel-light); }
.hero h1 {
  color: var(--color-white);
  font-size: clamp(34px, 5vw, 54px);
  margin-bottom: 20px;
}
.hero h1 span { color: #7FB8FF; }
.hero p.lead {
  font-size: 18px;
  color: #C9D6E8;
  max-width: 540px;
  margin-bottom: 32px;
}
.hero-cta-row { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }

.hero-stats {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}
.hero-stats .stat { border-left: 2px solid rgba(143,164,189,0.4); padding-left: 14px; }
.hero-stats .stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--color-white);
}
.hero-stats .stat span { font-size: 13px; color: #AFC1D9; font-family: var(--font-mono); }

.hero-art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-art-panel {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius);
  padding: 28px;
  width: 100%;
  backdrop-filter: blur(2px);
}
.hero-art-panel img { border-radius: 4px; width: 100%; height: 260px; object-fit: cover; }
.hero-art-tag {
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: #AFC1D9;
  display: flex;
  justify-content: space-between;
  letter-spacing: 0.06em;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 15px 28px;
  border-radius: var(--radius);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--color-white); color: var(--color-primary-dark); }
.btn-primary:hover { box-shadow: var(--shadow-elevated); }
.btn-outline { background: transparent; color: var(--color-white); border: 1.5px solid rgba(255,255,255,0.5); }
.btn-outline:hover { border-color: var(--color-white); background: rgba(255,255,255,0.08); }
.btn-whatsapp { background: var(--color-whatsapp); color: var(--color-white); }
.btn-whatsapp:hover { background: var(--color-whatsapp-dark); box-shadow: 0 10px 24px rgba(34,195,94,0.35); }
.btn-solid { background: var(--color-primary); color: var(--color-white); }
.btn-solid:hover { background: var(--color-primary-dark); }

/* ==========================================================================
   SECTION DIVIDERS (angled cut — echoes the grinding/shear theme)
   ========================================================================== */
.section { padding: var(--section-pad) 0; position: relative; }
.section--alt { background: var(--color-bg); }
.section--cut-top { clip-path: polygon(0 40px, 100% 0, 100% 100%, 0 100%); margin-top: -40px; padding-top: calc(var(--section-pad) + 40px); }
.section--dark {
  background: var(--color-primary-dark);
  color: var(--color-white);
}
.section--dark h2 { color: var(--color-white); }
.section--dark .section-head p { color: #B7C6DC; }

/* ==========================================================================
   CARDS / GRIDS
   ========================================================================== */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.card {
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 30px 26px;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
  border-top: 3px solid var(--color-primary);
}
.card:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-4px); }
.card .icon-badge {
  width: 52px; height: 52px;
  border-radius: 10px;
  background: var(--color-bg-alt);
  color: var(--color-primary);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 20px;
  margin-bottom: 18px;
}
.card h3 { font-size: 19px; margin-bottom: 10px; }
.card p { color: var(--color-text-muted); font-size: 15px; }

.media-card {
  background: var(--color-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.media-card:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-4px); }
.media-card img { width: 100%; height: 210px; object-fit: cover; }
.media-card .media-card-body { padding: 20px 22px; }
.media-card h3 { font-size: 17px; margin-bottom: 6px; }
.media-card p { color: var(--color-text-muted); font-size: 14px; }

/* ==========================================================================
   PROCESS STEPS (real sequence — numbered deliberately)
   ========================================================================== */
.process-rail {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
  position: relative;
}
.process-rail::before {
  content: "";
  position: absolute;
  top: 26px; left: 4%; right: 4%;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--color-steel) 0 10px, transparent 10px 18px);
  z-index: 0;
}
.process-step { position: relative; z-index: 1; text-align: left; }
.process-step .num {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-white);
  font-family: var(--font-display);
  font-size: 20px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  box-shadow: 0 6px 14px rgba(22,60,116,0.35);
}
.process-step h4 { font-size: 15px; margin-bottom: 6px; }
.process-step p { font-size: 13.5px; color: var(--color-text-muted); }

/* ==========================================================================
   ABOUT / SPLIT LAYOUT
   ========================================================================== */
.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
}
.split.reverse { grid-template-columns: 1.1fr 0.9fr; }
.split.reverse .split-media { order: 2; }
.split-media img {
  border-radius: var(--radius);
  width: 100%;
  height: 380px;
  object-fit: cover;
  box-shadow: var(--shadow-card);
}
.split-copy ul.check-list { margin-top: 22px; }
.split-copy ul.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 15.5px;
}
.split-copy ul.check-list li::before {
  content: "";
  flex-shrink: 0;
  width: 20px; height: 20px;
  margin-top: 2px;
  border-radius: 5px;
  background: var(--color-primary);
  background-image: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
}

/* ==========================================================================
   CTA BAND (mandatory — every page, directly above footer)
   ========================================================================== */
.cta-band {
  background: var(--color-primary);
  background-image: linear-gradient(120deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  color: var(--color-white);
  padding: 64px 0;
  text-align: center;
}
.cta-band h2 { color: var(--color-white); font-size: clamp(26px, 3.6vw, 36px); margin-bottom: 10px; }
.cta-band p { color: #D6E3F5; font-size: 16px; margin-bottom: 30px; }
.cta-band .hero-cta-row { justify-content: center; margin-bottom: 0; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer { background: var(--color-primary-dark); color: #B7C6DC; padding: 64px 0 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand img { height: 40px; margin-bottom: 16px; }
.footer-brand p { font-size: 14px; line-height: 1.7; max-width: 280px; }
.footer-col h4 {
  color: var(--color-white);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 18px;
}
.footer-col a, .footer-col p, .footer-col li { font-size: 14.5px; margin-bottom: 12px; display: block; color: #AFC1D9; }
.footer-col a:hover { color: var(--color-white); }
.footer-social { display: flex; gap: 12px; margin-top: 4px; }
.footer-social a {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s ease;
}
.footer-social a:hover { background: var(--color-primary-light); }
.footer-bottom {
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
  color: #7E92AC;
  font-family: var(--font-mono);
}

/* ==========================================================================
   STICKY MOBILE CALL BAR
   ========================================================================== */
.mobile-cta-bar {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 600;
  background: var(--color-white);
  box-shadow: 0 -6px 20px rgba(12,37,71,0.18);
}
.mobile-cta-bar { grid-template-columns: 1fr 1fr; display: none; }
.mobile-cta-bar a {
  display: flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 16px 0;
  font-family: var(--font-display);
  font-weight: 500;
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 0.03em;
}
.mobile-cta-bar a.call { background: var(--color-primary); color: var(--color-white); }
.mobile-cta-bar a.whatsapp { background: var(--color-whatsapp); color: var(--color-white); }

/* ==========================================================================
   PAGE HEADER (inner pages)
   ========================================================================== */
.page-banner {
  background: var(--color-primary-dark);
  background-image: linear-gradient(135deg, rgba(12,37,71,0.95), rgba(22,60,116,0.9)),
    repeating-linear-gradient(45deg, rgba(143,164,189,0.08) 0 2px, transparent 2px 22px);
  color: var(--color-white);
  padding: 64px 0 88px;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 32px), 0 100%);
}
.page-banner .eyebrow { color: var(--color-steel-light); }
.page-banner .eyebrow::before { background: var(--color-steel-light); }
.page-banner h1 { color: var(--color-white); font-size: clamp(30px, 4.4vw, 44px); }
.breadcrumb { font-family: var(--font-mono); font-size: 13px; color: #AFC1D9; margin-top: 14px; }
.breadcrumb a { color: #AFC1D9; }
.breadcrumb a:hover { color: var(--color-white); }

/* ==========================================================================
   CONTACT PAGE
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
}
.contact-info-card {
  background: var(--color-bg);
  border-radius: var(--radius);
  padding: 34px;
}
.contact-info-card .info-row {
  display: flex;
  gap: 16px;
  margin-bottom: 26px;
  align-items: flex-start;
}
.contact-info-card .info-row .ic {
  width: 44px; height: 44px;
  border-radius: 8px;
  background: var(--color-primary);
  color: var(--color-white);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-info-card .info-row h4 { font-size: 15px; margin-bottom: 4px; }
.contact-info-card .info-row p, .contact-info-card .info-row a { color: var(--color-text-muted); font-size: 14.5px; }
.map-frame { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-card); border: none; width: 100%; height: 100%; min-height: 420px; }

/* ==========================================================================
   ANIMATION — reveal on scroll
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   RESPONSIVE — Tablet
   ========================================================================== */
@media (max-width: 1024px) {
  :root { --section-pad: 72px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .process-rail { grid-template-columns: repeat(3, 1fr); row-gap: 36px; }
  .process-rail::before { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .split, .split.reverse { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   RESPONSIVE — Mobile
   ========================================================================== */
@media (max-width: 720px) {
  .main-nav { display: none; }
  .header-cta .btn-call-header span.txt { display: none; }
  .nav-toggle { display: flex; }

  .main-nav.mobile-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 86px; left: 0; right: 0;
    background: var(--color-white);
    padding: 12px 24px 24px;
    box-shadow: 0 12px 24px rgba(12,37,71,0.12);
    gap: 2px;
  }
  .main-nav.mobile-open a { padding: 14px 8px; border-bottom: 1px solid var(--color-bg-alt); }

  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .process-rail { grid-template-columns: 1fr 1fr; }
  .hero { padding: 56px 0 90px; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 24px), 0 100%); }
  .hero-stats { gap: 20px; }
  .hero-cta-row .btn { flex: 1 1 auto; justify-content: center; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  body { padding-bottom: 62px; }
  .mobile-cta-bar { display: grid; }
  .section { padding: 56px 0; }
}
