/* =============================================
   VOLHR Technical — Design System v2
   Optimised for Cloudflare Pages
   ============================================= */

/* ── Google Fonts with preconnect handled in HTML ── */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Barlow+Condensed:wght@300;400;500;600;700&family=Source+Sans+3:ital,wght@0,300;0,400;0,500;0,600;1,300&display=swap');

/* ── CSS Custom Properties ─────────────────── */
:root {
  --orange:        #FF5500;
  --orange-dark:   #CC4400;
  --orange-light:  #FF7733;
  --orange-muted:  rgba(255, 85, 0, 0.15);
  --gunmetal:      #2C2F33;
  --gunmetal-deep: #1A1C1F;
  --slate:         #708090;
  --slate-light:   #A0AEC0;
  --white:         #FFFFFF;
  --off-white:     #F5F5F5;
  --black:         #0A0A0A;
  --carbon-bg:     #141618;

  --font-display:  'Bebas Neue', sans-serif;
  --font-heading:  'Barlow Condensed', sans-serif;
  --font-body:     'Source Sans 3', sans-serif;

  --nav-h:         72px;
  --transition:    0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --radius:        4px;
  --radius-lg:     8px;
  --shadow-card:   0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-orange: 0 4px 24px rgba(255, 85, 0, 0.3);

  /* Spacing scale */
  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  2rem;
  --space-lg:  4rem;
  --space-xl:  6rem;
}

/* ── Reset ──────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-body);
  background: var(--gunmetal-deep);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--orange);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover { color: var(--orange-light); }

ul { list-style: none; }

/* Focus visible — keyboard nav */
:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ── Carbon Fibre Texture ───────────────────── */
.carbon-bg {
  background-color: var(--carbon-bg);
  background-image:
    repeating-linear-gradient(45deg,  rgba(255,255,255,0.03) 0, rgba(255,255,255,0.03) 1px, transparent 1px, transparent 50%),
    repeating-linear-gradient(-45deg, rgba(255,255,255,0.03) 0, rgba(255,255,255,0.03) 1px, transparent 1px, transparent 50%);
  background-size: 8px 8px;
}

.carbon-accent {
  background-image:
    repeating-linear-gradient(45deg,  rgba(255,85,0,0.04) 0, rgba(255,85,0,0.04) 1px, transparent 1px, transparent 50%),
    repeating-linear-gradient(-45deg, rgba(255,85,0,0.04) 0, rgba(255,85,0,0.04) 1px, transparent 1px, transparent 50%);
  background-size: 8px 8px;
}

/* ── Typography ─────────────────────────────── */
h1, h2, h3, h4, h5 { line-height: 1.15; }

.display-xl {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 8vw, 7rem);
  letter-spacing: 0.02em;
  line-height: 0.95;
}

.display-lg {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  letter-spacing: 0.02em;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.section-subtitle {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange);
}

.body-lg {
  font-size: 1.125rem;
  font-weight: 300;
  color: var(--slate-light);
  line-height: 1.75;
}

.body-md {
  font-size: 1rem;
  color: var(--slate-light);
  line-height: 1.7;
}

/* ── Layout ─────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-pad    { padding: var(--space-xl) 0; }
.section-pad-sm { padding: var(--space-lg) 0; }

/* Orange accent bar */
.accent-bar {
  display: inline-block;
  width: 60px;
  height: 4px;
  background: var(--orange);
  margin-bottom: 1.5rem;
}

.accent-bar.center { display: block; margin: 0 auto 1.5rem; }

/* Responsive two-column grid */
.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.split-grid.align-center { align-items: center; }

/* Diagonal section divider */
.diagonal-top {
  clip-path: polygon(0 3%, 100% 0, 100% 100%, 0 100%);
  margin-top: -3vw;
  padding-top: 3vw;
}

.diagonal-bottom {
  clip-path: polygon(0 0, 100% 0, 100% 97%, 0 100%);
  padding-bottom: 3vw;
  margin-bottom: -3vw;
}

/* ── Buttons ─────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  border-radius: var(--radius);
  text-decoration: none;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}

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

.btn-primary:hover {
  background: var(--orange-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-orange);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--black);
  transform: translateY(-2px);
}

.btn-outline-orange {
  background: transparent;
  color: var(--orange);
  border: 2px solid var(--orange);
}

.btn-outline-orange:hover {
  background: var(--orange);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-lg  { padding: 1.1rem 2.5rem; font-size: 1.1rem; }
.btn-sm  { padding: 0.55rem 1.2rem; font-size: 0.82rem; letter-spacing: 0.09em; }

.btn-arrow::after {
  content: '→';
  margin-left: 0.25rem;
  display: inline-block;
  transition: transform var(--transition);
}

.btn-arrow:hover::after { transform: translateX(4px); }

/* ── Navigation ──────────────────────────────── */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  z-index: 1000;
  transition: background var(--transition), box-shadow var(--transition);
}

#navbar.transparent { background: transparent; }

#navbar.scrolled {
  background: rgba(26, 28, 31, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo-img {
  height: 46px;
  width: auto;
  display: block;
  transition: opacity 0.2s;
}

.nav-logo-img:hover { opacity: 0.85; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate-light);
  text-decoration: none;
  transition: color var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--orange);
  transition: width var(--transition);
}

.nav-links a:hover,
.nav-links a.active { color: var(--white); }

.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.nav-cta { margin-left: 1rem; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
  -webkit-tap-highlight-color: transparent;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: all var(--transition);
  transform-origin: center;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Nav Drawer */
#mobile-nav {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gunmetal-deep);
  z-index: 999;
  padding: 2rem;
  flex-direction: column;
  gap: 1.5rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

#mobile-nav.open { display: flex; }

#mobile-nav a {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

#mobile-nav a:hover { color: var(--orange); }

/* ── Hero ────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-color: var(--carbon-bg);
  background-image:
    radial-gradient(ellipse at 70% 50%, rgba(255, 85, 0, 0.12) 0%, transparent 60%),
    repeating-linear-gradient(45deg,  rgba(255,255,255,0.025) 0, rgba(255,255,255,0.025) 1px, transparent 1px, transparent 50%),
    repeating-linear-gradient(-45deg, rgba(255,255,255,0.025) 0, rgba(255,255,255,0.025) 1px, transparent 1px, transparent 50%);
  background-size: auto, 8px 8px, 8px 8px;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,28,31,0.92) 0%, rgba(44,47,51,0.6) 50%, rgba(26,28,31,0.5) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 0 2rem;
  padding-top: var(--nav-h);
}

.hero-eyebrow {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hero-eyebrow::before {
  content: '';
  display: inline-block;
  width: 32px;
  height: 2px;
  background: var(--orange);
  flex-shrink: 0;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 9vw, 7.5rem);
  line-height: 0.92;
  letter-spacing: 0.02em;
  margin-bottom: 1.5rem;
  max-width: 850px;
}

.hero-title .highlight { color: var(--orange); }

.hero-desc {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: var(--slate-light);
  max-width: 540px;
  margin-bottom: 2.5rem;
  line-height: 1.75;
  font-weight: 300;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.hero-stats {
  position: absolute;
  bottom: 3rem;
  right: 2rem;
  display: flex;
  gap: 3rem;
  z-index: 2;
}

.stat-item { text-align: right; }

.stat-number {
  font-family: var(--font-display);
  font-size: 2.8rem;
  color: var(--orange);
  line-height: 1;
}

.stat-label {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--slate);
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  z-index: 2;
  opacity: 0.6;
  pointer-events: none;
}

.scroll-indicator span {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--slate);
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--orange), transparent);
  animation: scroll-pulse 2s ease-in-out infinite;
}

@keyframes scroll-pulse {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50%       { opacity: 0.4; transform: scaleY(0.7); }
}

/* Hero logo mark */
.hero-logo-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
  animation: fadeInDown 0.8s ease both;
}

.hero-logo-wrap img {
  width: 140px;
  height: auto;
  filter: drop-shadow(0 0 28px rgba(255, 85, 0, 0.4));
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Trust / Credential Bar ──────────────────── */
.trust-bar {
  background: var(--gunmetal-deep);
  border-top: 1px solid rgba(255, 85, 0, 0.25);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0.9rem 0;
  overflow: hidden;
}

.trust-bar-inner {
  display: flex;
  gap: 2rem;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate-light);
  white-space: nowrap;
}

.trust-badge .badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
  flex-shrink: 0;
}

.trust-divider {
  width: 1px;
  height: 18px;
  background: rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

/* ── Service Cards ───────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--gunmetal);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-top: 3px solid var(--orange);
  padding: 2rem;
  border-radius: var(--radius);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  position: relative;
  overflow: hidden;
  contain: layout style;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 85, 0, 0.05) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--transition);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card);
  border-color: var(--orange);
}

.service-card:hover::before { opacity: 1; }

.service-icon {
  width: 56px;
  height: 56px;
  background: rgba(255, 85, 0, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.service-icon svg { width: 28px; height: 28px; color: var(--orange); }

.service-card h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  color: var(--white);
}

.service-card p { font-size: 0.95rem; color: var(--slate-light); line-height: 1.6; }

.service-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
  transition: gap var(--transition);
}

.service-card-link:hover { gap: 0.75rem; color: var(--orange-light); }

.service-card-link::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
}

.service-card { cursor: pointer; }

.service-card-caps {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.service-card-caps li {
  font-size: 0.825rem;
  color: var(--slate-light);
  line-height: 1.5;
  padding-left: 1.25rem;
  position: relative;
}

.service-card-caps li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--orange);
  font-weight: 600;
}

/* ── Why Us / Features ───────────────────────── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.feature-item {
  display: flex;
  gap: 1.25rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  border-left: 3px solid var(--orange);
  border-radius: 0 var(--radius) var(--radius) 0;
  transition: background var(--transition);
  contain: layout style;
}

.feature-item:hover { background: rgba(255, 85, 0, 0.06); }

.feature-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--orange);
  line-height: 1;
  min-width: 60px;
  flex-shrink: 0;
}

.feature-item h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.feature-item p { font-size: 0.9rem; color: var(--slate-light); }

/* ── Stats Bar ───────────────────────────────── */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.stats-bar-item {
  text-align: center;
  padding: 2.5rem 1rem;
  border-right: 1px solid rgba(255, 255, 255, 0.07);
}

.stats-bar-item:last-child { border-right: none; }

.stats-bar-num {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4vw, 4rem);
  color: var(--orange);
  line-height: 1;
  display: block;
}

.stats-bar-label {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--slate);
  display: block;
  margin-top: 0.5rem;
}

/* ── Testimonials ────────────────────────────── */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.testimonial-card {
  background: var(--gunmetal);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 2rem;
  border-radius: var(--radius);
  position: relative;
  contain: layout style;
}

.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-family: var(--font-display);
  font-size: 5rem;
  color: var(--orange);
  opacity: 0.15;
  line-height: 1;
  pointer-events: none;
}

.testimonial-stars { color: var(--orange); font-size: 1.1rem; margin-bottom: 1rem; }

.testimonial-text {
  font-size: 0.97rem;
  color: var(--slate-light);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 1.5rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gunmetal-deep), var(--slate));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--orange);
  border: 2px solid var(--orange);
  flex-shrink: 0;
}

.author-name {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.author-title { font-size: 0.8rem; color: var(--slate); }

/* ── Forms ───────────────────────────────────── */
.form-card {
  background: var(--gunmetal-deep);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-top: 3px solid var(--orange);
  padding: 2.5rem;
  border-radius: var(--radius);
}

.form-card h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.form-card p { color: var(--slate-light); margin-bottom: 1.5rem; font-size: 0.95rem; }

.form-group   { margin-bottom: 1.25rem; }
.form-row     { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.forms-grid   { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }

label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate-light);
  margin-bottom: 0.4rem;
}

input,
select,
textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--white);
  padding: 0.8rem 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  border-radius: var(--radius);
  transition: border-color var(--transition), background var(--transition);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--orange);
  background: rgba(255, 85, 0, 0.04);
}

input::placeholder,
textarea::placeholder { color: rgba(255, 255, 255, 0.2); }

select option { background: var(--gunmetal-deep); }
textarea       { resize: vertical; min-height: 120px; }

.form-required { color: var(--orange); margin-left: 2px; }
.form-error    { color: #FF4444; font-size: 0.8rem; margin-top: 0.3rem; display: none; }

.field-error input,
.field-error select,
.field-error textarea { border-color: #FF4444; }

.field-error .form-error { display: block; }

.form-success {
  display: none;
  padding: 1rem 1.5rem;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: var(--radius);
  color: #4ADE80;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-align: center;
  margin-top: 1rem;
}

/* ── Portal ──────────────────────────────────── */
.portal-login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.portal-card {
  background: var(--gunmetal);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-top: 4px solid var(--orange);
  padding: 3rem;
  border-radius: var(--radius);
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow-card);
}

.portal-logo {
  text-align: center;
  margin-bottom: 2rem;
}

.portal-logo-img {
  width: 120px;
  height: auto;
  margin: 0 auto 0.5rem;
  display: block;
  filter: drop-shadow(0 0 16px rgba(255, 85, 0, 0.25));
}

.portal-logo p { font-size: 0.85rem; color: var(--slate); margin-top: 0.5rem; }

.portal-tabs {
  display: flex;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  margin-bottom: 2rem;
}

.portal-tab {
  flex: 1;
  padding: 0.75rem;
  background: none;
  border: none;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all var(--transition);
}

.portal-tab.active { color: var(--orange); border-bottom-color: var(--orange); }

.portal-panel { display: none; }
.portal-panel.active { display: block; }

/* ── About ───────────────────────────────────── */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }

.about-img-box {
  background: var(--gunmetal);
  border: 1px solid rgba(255, 255, 255, 0.07);
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate);
}

.about-img-wrap { position: relative; }

.about-badge {
  position: absolute;
  bottom: -1.5rem;
  right: -1.5rem;
  background: var(--orange);
  color: var(--white);
  width: 120px;
  height: 120px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1;
  box-shadow: var(--shadow-orange);
}

.about-badge span {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Certifications */
.cert-list { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }

.cert-badge {
  background: rgba(255, 85, 0, 0.1);
  border: 1px solid rgba(255, 85, 0, 0.3);
  color: var(--orange);
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.35rem 0.75rem;
  border-radius: 2px;
}

/* ── Industry Verticals ──────────────────────── */
.vertical-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.vertical-card {
  background: var(--gunmetal);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 1.75rem 1.25rem;
  border-radius: var(--radius);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: border-color var(--transition), transform var(--transition);
  contain: layout style;
}

.vertical-card:hover {
  border-color: var(--orange);
  transform: translateY(-4px);
}

.vertical-icon { font-size: 2.2rem; margin-bottom: 0.65rem; display: block; flex-shrink: 0; }

.vertical-card h4 {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.3;
}

.vertical-card p { font-size: 0.8rem; color: var(--slate-light); margin-top: 0.4rem; line-height: 1.55; }

/* ── CTA Band ────────────────────────────────── */
.cta-band {
  background: var(--orange);
  background-image:
    repeating-linear-gradient(45deg,  rgba(255,255,255,0.06) 0, rgba(255,255,255,0.06) 1px, transparent 1px, transparent 50%),
    repeating-linear-gradient(-45deg, rgba(255,255,255,0.06) 0, rgba(255,255,255,0.06) 1px, transparent 1px, transparent 50%);
  background-size: 8px 8px;
  padding: 4rem 0;
  text-align: center;
}

.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  color: var(--white);
  margin-bottom: 0.75rem;
}

.cta-band p { color: rgba(255, 255, 255, 0.85); margin-bottom: 2rem; font-size: 1.1rem; }

/* ── Footer ──────────────────────────────────── */
footer {
  background: var(--black);
  padding: 5rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-logo-img {
  width: 180px;
  height: auto;
  margin-bottom: 1rem;
  display: block;
}

.footer-brand p {
  color: var(--slate);
  font-size: 0.9rem;
  margin: 1rem 0 1.5rem;
  line-height: 1.7;
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1.25rem;
}

.footer-col ul { display: flex; flex-direction: column; gap: 0.6rem; }

.footer-col ul a {
  font-size: 0.9rem;
  color: var(--slate);
  transition: color var(--transition), padding-left var(--transition);
}

.footer-col ul a:hover { color: var(--orange); padding-left: 4px; }

.footer-contact-item {
  display: flex;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--slate);
  margin-bottom: 0.75rem;
  align-items: flex-start;
}

.footer-contact-item svg { width: 16px; height: 16px; color: var(--orange); flex-shrink: 0; margin-top: 2px; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p { font-size: 0.82rem; color: rgba(255, 255, 255, 0.25); }

.footer-bottom a { color: rgba(255, 255, 255, 0.3); font-size: 0.82rem; }
.footer-bottom a:hover { color: var(--orange); }

.social-links { display: flex; gap: 0.75rem; }

.social-link {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  font-size: 0.85rem;
  color: var(--slate-light);
}

.social-link:hover { border-color: var(--orange); background: var(--orange); color: var(--white); }

/* ── Page Hero (inner pages) ─────────────────── */
.page-hero {
  padding-top: calc(var(--nav-h) + 5rem);
  padding-bottom: 5rem;
  background: var(--carbon-bg);
  background-image:
    linear-gradient(135deg, rgba(255, 85, 0, 0.08) 0%, transparent 50%),
    repeating-linear-gradient(45deg,  rgba(255,255,255,0.025) 0, rgba(255,255,255,0.025) 1px, transparent 1px, transparent 50%),
    repeating-linear-gradient(-45deg, rgba(255,255,255,0.025) 0, rgba(255,255,255,0.025) 1px, transparent 1px, transparent 50%);
  background-size: auto, 8px 8px, 8px 8px;
  position: relative;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--orange);
}

.page-hero-eyebrow {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.75rem;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate);
  margin-top: 1.5rem;
}

.breadcrumb a        { color: var(--slate); }
.breadcrumb a:hover  { color: var(--orange); }
.breadcrumb span     { color: var(--orange); }

/* ── Animations ──────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  will-change: opacity, transform;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
  will-change: auto;
}

.fade-up-delay-1 { transition-delay: 0.1s; }
.fade-up-delay-2 { transition-delay: 0.2s; }
.fade-up-delay-3 { transition-delay: 0.3s; }

/* ── Responsive ──────────────────────────────── */
@media (max-width: 1024px) {
  .feature-grid          { grid-template-columns: 1fr; }
  .footer-grid           { grid-template-columns: 1fr 1fr; }
  .stats-bar             { grid-template-columns: repeat(2, 1fr); }
  .stats-bar-item:nth-child(2n) { border-right: none; }
  .about-grid            { grid-template-columns: 1fr; gap: 3rem; }
}

@media (max-width: 768px) {
  :root { --nav-h: 64px; }

  .nav-links, .nav-cta   { display: none; }
  .nav-toggle            { display: flex; }
  .hero-stats            { display: none; }
  .form-row              { grid-template-columns: 1fr; }
  .forms-grid            { grid-template-columns: 1fr; }
  .footer-grid           { grid-template-columns: 1fr; gap: 2rem; }
  .stats-bar             { grid-template-columns: 1fr 1fr; }
  .split-grid            { grid-template-columns: 1fr; gap: 2.5rem; }
  .cta-band              { padding: 3rem 1.5rem; }
  .footer-bottom         { flex-direction: column; text-align: center; }
  .about-badge           { width: 90px; height: 90px; font-size: 1.5rem; bottom: -1rem; right: -0.5rem; }
  .trust-bar-inner       { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; }
  .trust-divider         { display: none; }
  .why-us-inner          { grid-template-columns: 1fr !important; gap: 2rem !important; }

  /* Disable diagonal cuts on mobile — clip-path can clip content */
  .diagonal-top  { clip-path: none; margin-top: 0; padding-top: var(--space-xl); }
  .diagonal-bottom { clip-path: none; margin-bottom: 0; padding-bottom: var(--space-xl); }

  /* Vertical grid: exactly 2 columns on mobile → 7 rows of 2 = 14 cards, no orphan */
  .vertical-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .section-pad           { padding: 4rem 0; }
  .stats-bar             { grid-template-columns: 1fr; }
  .stats-bar-item        { border-right: none; border-bottom: 1px solid rgba(255, 255, 255, 0.07); }
  .hero-logo-wrap img    { width: 100px; }
  .vertical-grid         { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
  .vertical-card         { padding: 1.25rem 0.85rem; }
}

/* ── Reduced motion ──────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html { scroll-behavior: auto; }

  .fade-up {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .scroll-line { animation: none; }
}

/* ── Utilities ───────────────────────────────── */
.text-orange  { color: var(--orange); }
.text-slate   { color: var(--slate-light); }
.text-center  { text-align: center; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mt-2 { margin-top: 1rem; }
.mt-4 { margin-top: 2rem; }
.w-full { width: 100%; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── Success Modal ───────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none; /* controlled entirely by JS style.display */
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(10, 10, 10, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal-overlay.modal-visible {
  animation: modalFadeIn 0.3s ease forwards;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.modal-card {
  background: var(--gunmetal-deep);
  border: 1px solid rgba(255, 85, 0, 0.25);
  border-top: 4px solid var(--orange);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  max-width: 480px;
  width: 100%;
  text-align: center;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 85, 0, 0.08);
  background-image:
    repeating-linear-gradient(45deg,  rgba(255,255,255,0.015) 0, rgba(255,255,255,0.015) 1px, transparent 1px, transparent 50%),
    repeating-linear-gradient(-45deg, rgba(255,255,255,0.015) 0, rgba(255,255,255,0.015) 1px, transparent 1px, transparent 50%);
  background-size: 8px 8px;
  animation: modalSlideUp 0.35s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes modalSlideUp {
  from { transform: translateY(24px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.modal-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 1.5rem;
  color: var(--orange);
  filter: drop-shadow(0 0 16px rgba(255, 85, 0, 0.4));
}

.modal-icon svg { width: 100%; height: 100%; }

.modal-icon-circle {
  stroke-dasharray: 160;
  stroke-dashoffset: 160;
  animation: drawCircle 0.5s ease 0.2s forwards;
}

.modal-icon-check {
  stroke-dasharray: 36;
  stroke-dashoffset: 36;
  animation: drawCheck 0.4s ease 0.65s forwards;
}

@keyframes drawCircle { to { stroke-dashoffset: 0; } }
@keyframes drawCheck  { to { stroke-dashoffset: 0; } }

.modal-eyebrow {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.5rem;
}

.modal-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1rem;
}

.modal-desc {
  font-size: 1rem;
  color: var(--slate-light);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.modal-desc strong { color: var(--white); font-weight: 600; }

.modal-contact {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  padding: 1.25rem;
  background: rgba(255, 85, 0, 0.06);
  border: 1px solid rgba(255, 85, 0, 0.15);
  border-radius: var(--radius);
}

.modal-contact-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--slate-light);
  transition: color var(--transition);
  text-decoration: none;
}

.modal-contact-link svg { width: 15px; height: 15px; color: var(--orange); flex-shrink: 0; }
.modal-contact-link:hover { color: var(--white); }

.modal-close-btn { min-width: 180px; }

@media (max-width: 480px) {
  .modal-card    { padding: 2rem 1.5rem; }
  .modal-contact { flex-direction: column; align-items: center; }
}

/* ── Print ───────────────────────────────────── */
@media print {
  #navbar, #mobile-nav, .scroll-indicator, .cta-band, .hero-stats { display: none !important; }
  body  { background: #fff; color: #000; }
  a     { color: #000; text-decoration: underline; }
  .hero { min-height: auto; padding: 2rem 0; }
}
