/* SRB Industries Corporate — Institutional Design System
   Strict 2-Colour Logo Palette: Deep Navy (#1E2D4F) & Corporate Steel Blue (#4A669C)
   Paired with Pure White (#FFFFFF), Alabaster (#F6F7F9), and Hairline Borders (#D8DFE9)
   Zero border-radius (0px) throughout. Zero scroll-reveal opacity delays. */

:root {
  --navy: #1E2D4F;
  --navy-deep: #142038;
  --steel: #4A669C;
  --white: #FFFFFF;
  --alabaster: #F6F7F9;
  --alabaster-alt: #EEF1F6;
  --border: #D8DFE9;
  --text-body: #1E2D4F;
  --text-muted: #465470;
  --header-h: 80px;
  --header-h-scrolled: 64px;
  --font-serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --max-w: 1200px;
}

*, *::before, *::after {
  box-sizing: border-box;
  border-radius: 0 !important;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-body);
  background-color: var(--white);
  overflow-x: hidden;
}

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

a {
  color: var(--steel);
  text-decoration: none;
  transition: color 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

a:hover {
  color: var(--navy);
}

:focus-visible {
  outline: 2px solid var(--steel);
  outline-offset: 2px;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 2000;
  background: var(--navy);
  color: var(--white);
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
}

.skip-link:focus {
  top: 12px;
  color: var(--white);
}

/* Reading Progress Bar (3px brand accent layered cleanly at top: 0) */
#reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background-color: var(--steel);
  z-index: 1200;
  pointer-events: none;
  transition: width 0.08s linear;
}

/* Header — Frost-heavy glass from y=0, anchored at top: 0, scroll-shrink 80px -> 64px */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid rgba(216, 223, 233, 0.9);
  transition: background-color 0.22s ease, height 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.site-header.is-scrolled {
  height: var(--header-h-scrolled);
  background-color: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(20px) saturate(170%);
  -webkit-backdrop-filter: blur(20px) saturate(170%);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(20, 32, 56, 0.06);
}

.header-inner {
  max-width: var(--max-w);
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Transparent Original Logo (Inline SVG, full horizontal proportions, never changes colour) */
.brand-logo-link {
  display: inline-flex;
  align-items: center;
  background: transparent;
  border: none;
  padding: 4px 0;
  flex-shrink: 0;
  line-height: 0;
}

.brand-logo-svg {
  width: 268px;
  height: 48px;
  display: block;
  transition: width 0.22s ease, height 0.22s ease;
}

.site-header.is-scrolled .brand-logo-svg {
  width: 224px;
  height: 40px;
}

/* Desktop Navigation — Flush-right alignment on desktop, crisp dark navy on frosted bar */
.nav-desktop {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-left: auto;
}

.nav-desktop a {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--navy);
  padding: 6px 0;
  position: relative;
}

.nav-desktop a:hover {
  color: var(--steel);
}

.nav-desktop a[aria-current="page"] {
  font-weight: 600;
  color: var(--navy);
}

.nav-desktop a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background-color: var(--steel);
}

/* Mobile-only header action container (hidden on desktop so nav aligns flush-right) */
.header-actions {
  display: none;
  align-items: center;
}

/* Mobile Menu Button */
.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--navy);
  cursor: pointer;
  padding: 0;
}

/* Mobile Drawer */
.mobile-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(20, 32, 56, 0.56);
  z-index: 1090;
  display: none;
}

.mobile-drawer-backdrop.is-open {
  display: block;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(320px, 86vw);
  background: var(--white);
  border-left: 1px solid var(--border);
  z-index: 1100;
  padding: 24px;
  display: none;
  flex-direction: column;
  gap: 20px;
  overflow-y: auto;
}

.mobile-drawer.is-open {
  display: flex;
}

.mobile-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.mobile-drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-drawer-nav a {
  display: block;
  padding: 12px 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--navy);
  border-bottom: 1px solid var(--alabaster-alt);
}

.mobile-drawer-nav a[aria-current="page"] {
  color: var(--steel);
  font-weight: 600;
  border-bottom-color: var(--steel);
}

.mobile-drawer-legal {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-drawer-legal a {
  font-size: 14px;
  color: var(--text-muted);
}

/* Typography & Layout Primitives */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

.section-alabaster {
  background-color: var(--alabaster);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.eyebrow {
  display: block;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--steel);
  margin: 0 0 14px;
}

.hero .eyebrow {
  color: #D8DFE9;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--navy);
  font-weight: 500;
  margin-top: 0;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2.15rem, 4.2vw, 3.35rem);
  line-height: 1.15;
  margin-bottom: 20px;
}

h2 {
  font-size: clamp(1.65rem, 2.8vw, 2.35rem);
  line-height: 1.22;
  margin-bottom: 18px;
}

h3 {
  font-size: 1.35rem;
  line-height: 1.3;
  margin-bottom: 10px;
}

p {
  margin-top: 0;
  margin-bottom: 18px;
  color: var(--text-body);
}

.lead {
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 740px;
}

/* Hero Banner */
.hero {
  position: relative;
  background-color: var(--navy-deep);
  color: var(--white);
  padding: 140px 0 84px;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.hero-compact {
  padding: 136px 0 68px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.24;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.hero h1 {
  color: var(--white);
  max-width: 820px;
}

.hero p {
  color: #E6ECF5;
  max-width: 720px;
  font-size: 1.075rem;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background-color: var(--steel);
  color: var(--white);
  border-color: var(--steel);
}

.btn-primary:hover {
  background-color: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

.btn-outline-light {
  background-color: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.55);
}

.btn-outline-light:hover {
  background-color: var(--white);
  color: var(--navy);
  border-color: var(--white);
}

.btn-outline-dark {
  background-color: var(--white);
  color: var(--navy);
  border-color: var(--navy);
}

.btn-outline-dark:hover {
  background-color: var(--navy);
  color: var(--white);
}

/* ISO Credential Strip */
.credential-bar {
  background-color: var(--alabaster);
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
}

.credential-bar-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  font-size: 14px;
  color: var(--navy);
}

.credential-tag {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--steel);
}

/* Uniform Card Grids — Strictly uniform white cards with crisp hairline borders */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.card {
  background-color: var(--white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--steel);
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card p:last-child {
  margin-bottom: 0;
}

.card-meta {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 10px;
}

/* Split Editorial Feature */
.editorial-split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.editorial-media {
  border: 1px solid var(--border);
  background: var(--alabaster);
  padding: 10px;
}

.editorial-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.editorial-caption {
  font-size: 13px;
  color: var(--text-muted);
  padding: 10px 4px 2px;
  letter-spacing: 0.02em;
}

/* Definition / Specification Table */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border: 1px solid var(--border);
}

.spec-table th,
.spec-table td {
  text-align: left;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.spec-table th {
  width: 32%;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--steel);
  background-color: var(--alabaster);
  border-right: 1px solid var(--border);
}

.spec-table tr:last-child th,
.spec-table tr:last-child td {
  border-bottom: none;
}

/* Legal Prose Container */
.legal-prose {
  max-width: 860px;
}

.legal-prose h2 {
  margin-top: 36px;
  font-size: 1.5rem;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.legal-prose ul {
  padding-left: 22px;
  margin-bottom: 20px;
}

.legal-prose li {
  margin-bottom: 8px;
}

/* Global Footer — Option A: Institutional Alabaster surface for seamless transparent logo */
.site-footer {
  background-color: var(--alabaster);
  color: var(--text-body);
  border-top: 3px solid var(--steel);
  padding: 64px 0 36px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.25fr;
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid var(--border);
}

.footer-logo-wrap {
  margin-bottom: 18px;
}

.footer-logo-wrap .brand-logo-svg {
  width: 268px;
  height: 48px;
}

.footer-desc {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.footer-iso {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--navy);
  border-left: 2px solid var(--steel);
  padding-left: 12px;
  margin: 0;
}

.footer-heading {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--steel);
  margin: 0 0 16px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 14.5px;
  color: var(--navy);
}

.footer-links a:hover {
  color: var(--steel);
  text-decoration: underline;
}

.footer-contact-item {
  font-size: 14.5px;
  color: var(--text-muted);
  margin-bottom: 10px;
  line-height: 1.55;
}

.footer-contact-item strong {
  color: var(--navy);
}

.footer-contact-item a {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-contact-item a:hover {
  color: var(--steel);
}

.footer-bottom {
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  font-size: 13.5px;
  color: var(--text-muted);
}

/* Floating Controls — Strictly Non-Clashing (Single WhatsApp + Spaced Back-to-Top) */
.floating-whatsapp {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 900;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding: 0 16px;
  background-color: var(--navy);
  color: var(--white);
  border: 1px solid var(--steel);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 4px 16px rgba(20, 32, 56, 0.2);
}

.floating-whatsapp:hover {
  background-color: var(--steel);
  color: var(--white);
}

.floating-top {
  position: fixed;
  bottom: 84px;
  right: 20px;
  z-index: 900;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--white);
  color: var(--navy);
  border: 1px solid var(--navy);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease, background-color 0.2s ease;
}

.floating-top.is-visible {
  opacity: 1;
  visibility: visible;
}

.floating-top:hover {
  background-color: var(--navy);
  color: var(--white);
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .editorial-split {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 820px) {
  .nav-desktop {
    display: none;
  }
  .header-actions {
    display: flex;
  }
  .brand-logo-svg,
  .site-header.is-scrolled .brand-logo-svg {
    width: 214px;
    height: 39px;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 56px 0;
  }
  .hero {
    padding: 118px 0 60px;
  }
  .grid-2,
  .grid-3,
  .grid-4,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .spec-table th,
  .spec-table td {
    display: block;
    width: 100%;
    border-right: none;
  }
  .floating-whatsapp span {
    display: none;
  }
  .floating-whatsapp {
    width: 48px;
    padding: 0;
    justify-content: center;
  }
}

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

/* A4 Print / PDF Stylesheet (active via browser Ctrl+P / Cmd+P) */
@media print {
  @page {
    size: A4;
    margin: 16mm;
  }
  #reading-progress,
  .nav-desktop,
  .header-actions,
  .menu-toggle,
  .mobile-drawer,
  .mobile-drawer-backdrop,
  .floating-whatsapp,
  .floating-top,
  .hero-bg,
  .hero-cta-row {
    display: none !important;
  }
  .site-header {
    position: static !important;
    height: auto !important;
    background: #FFFFFF !important;
    border-bottom: 1px solid #1E2D4F !important;
    box-shadow: none !important;
    padding: 8px 0;
  }
  .hero {
    background: #FFFFFF !important;
    color: #1E2D4F !important;
    padding: 24px 0 16px !important;
    border-bottom: 1px solid #1E2D4F !important;
  }
  .hero h1,
  .hero p,
  .hero .eyebrow {
    color: #1E2D4F !important;
  }
  .section {
    padding: 20px 0 !important;
    page-break-inside: avoid;
  }
  .card {
    break-inside: avoid;
    border: 1px solid #1E2D4F !important;
  }
  .site-footer {
    background: #FFFFFF !important;
    color: #1E2D4F !important;
    border-top: 2px solid #1E2D4F !important;
    padding: 20px 0 !important;
  }
  .site-footer a,
  .footer-heading,
  .footer-desc,
  .footer-iso,
  .footer-contact-item,
  .footer-bottom {
    color: #1E2D4F !important;
  }
}