/* ============================================================
   GCR INTERNATIONAL — DESIGN SYSTEM v2
   Phase 3 Styling Refinement Pass
   Fonts: Cinzel / Montserrat / Source Serif 4
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700;900&family=Montserrat:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=Source+Serif+4:ital,opsz,wght@0,8..60,300;0,8..60,400;0,8..60,600;1,8..60,400&display=swap');

/* ── CSS Custom Properties ── */
:root {
  /* Brand Colours */
  --navy:          #0d1b2a;
  --navy-mid:      #1a2e45;
  --navy-light:    #243b55;
  --gold:          #c9a84c;
  --gold-light:    #e8c97a;
  --gold-dark:     #a07830;
  --gold-shine:    #f5e0a0;
  --white:         #ffffff;
  --off-white:     #f8f7f4;
  --light-grey:    #f2f1ee;
  --mid-grey:      #e0ddd8;
  --border:        #ddd9d3;
  --text-dark:     #1a1a1a;
  --text-mid:      #3a3a3a;
  --text-muted:    #6b6b6b;
  --text-light:    #9a9a9a;

  /* Gold Gradient — premium shiny */
  --gold-gradient: linear-gradient(135deg, #8a6520 0%, #c9a84c 25%, #f5e0a0 50%, #c9a84c 75%, #8a6520 100%);
  --gold-gradient-hover: linear-gradient(135deg, #7a5510 0%, #b8943a 25%, #ead090 50%, #b8943a 75%, #7a5510 100%);
  --gold-gradient-simple: linear-gradient(135deg, #a07830 0%, #e8c97a 50%, #a07830 100%);

  /* Shadows */
  --shadow-xs:     0 1px 4px rgba(13,27,42,0.06);
  --shadow-sm:     0 2px 12px rgba(13,27,42,0.08);
  --shadow-md:     0 6px 28px rgba(13,27,42,0.12);
  --shadow-lg:     0 12px 48px rgba(13,27,42,0.16);
  --shadow-xl:     0 24px 72px rgba(13,27,42,0.22);
  --shadow-gold:   0 4px 24px rgba(201,168,76,0.30);
  --shadow-float:  0 8px 40px rgba(13,27,42,0.14), 0 2px 8px rgba(13,27,42,0.08);

  /* Typography */
  --font-display:  'Cinzel', Georgia, serif;
  --font-ui:       'Montserrat', system-ui, sans-serif;
  --font-body:     'Source Serif 4', Georgia, serif;

  /* Spacing */
  --container:     1200px;
  --radius-sm:     6px;
  --radius-md:     12px;
  --radius-lg:     20px;
  --radius-xl:     28px;

  /* Transitions */
  --transition:    all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; overflow-x: hidden; }
body {
  overflow-x: hidden;
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

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

/* ============================================================
   TYPOGRAPHY
   ============================================================ */

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  color: var(--navy);
  letter-spacing: 0.03em;
}
h4, h5, h6 {
  font-family: var(--font-ui);
  font-weight: 600;
  line-height: 1.3;
  color: var(--navy);
}
p { font-family: var(--font-body); color: var(--text-mid); line-height: 1.85; }

.section-label {
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.5vw, 42px);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 14px;
  letter-spacing: 0.03em;
}

.section-subtitle {
  font-family: var(--font-body);
  font-size: 17px;
  color: var(--text-muted);
  max-width: 580px;
  line-height: 1.85;
}

/* Gold divider */
.gold-divider {
  width: 52px;
  height: 2px;
  background: var(--gold-gradient-simple);
  margin: 14px 0 24px;
  border-radius: 2px;
}
.gold-divider.center { margin-left: auto; margin-right: auto; }

/* ============================================================
   GOLD SWEEPING LINE ACCENT
   ============================================================ */

.gold-sweep-bottom {
  position: relative;
}
.gold-sweep-bottom::after {
  content: '';
  position: absolute;
  bottom: 0; left: -5%; width: 110%;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--gold-dark) 20%, var(--gold-light) 50%, var(--gold-dark) 80%, transparent 100%);
  opacity: 0.55;
}
.gold-sweep-top {
  position: relative;
}
.gold-sweep-top::before {
  content: '';
  position: absolute;
  top: 0; left: -5%; width: 110%;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--gold-dark) 20%, var(--gold-light) 50%, var(--gold-dark) 80%, transparent 100%);
  opacity: 0.5;
}

/* ============================================================
   ENTRANCE ANIMATIONS
   ============================================================ */

[data-animate] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.75s cubic-bezier(0.4,0,0.2,1), transform 0.75s cubic-bezier(0.4,0,0.2,1);
}
[data-animate].animated { opacity: 1; transform: translateY(0); }
[data-delay="100"] { transition-delay: 0.10s; }
[data-delay="150"] { transition-delay: 0.15s; }
[data-delay="200"] { transition-delay: 0.20s; }
[data-delay="300"] { transition-delay: 0.30s; }
[data-delay="400"] { transition-delay: 0.40s; }
[data-delay="500"] { transition-delay: 0.50s; }
[data-delay="600"] { transition-delay: 0.60s; }

/* ============================================================
   BUTTONS — Premium Shiny Gold Gradient
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  text-decoration: none;
  line-height: 1;
}

.btn-gold {
  background: var(--gold-gradient);
  color: var(--navy);
  box-shadow: 0 3px 14px rgba(201,168,76,0.35), inset 0 1px 0 rgba(255,255,255,0.35);
}
.btn-gold:hover {
  background: var(--gold-gradient-hover);
  box-shadow: 0 6px 24px rgba(201,168,76,0.45), inset 0 1px 0 rgba(255,255,255,0.2);
  transform: translateY(-2px);
  color: var(--navy);
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.55);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
  transform: translateY(-2px);
  color: var(--white);
}

.btn-outline-gold {
  background: transparent;
  color: var(--gold-dark);
  border: 1.5px solid var(--gold);
}
.btn-outline-gold:hover {
  background: var(--gold-gradient);
  color: var(--navy);
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

.btn-outline-navy {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--navy);
}
.btn-outline-navy:hover {
  background: var(--navy);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-sm { padding: 10px 22px; font-size: 11px; }

/* ============================================================
   FLOATING CARD LANGUAGE
   ============================================================ */

.float-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-float);
  border: 1px solid rgba(201,168,76,0.13);
  padding: 40px;
}

.float-card-sm {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(201,168,76,0.10);
  padding: 28px;
}

/* ============================================================
   NAVIGATION
   ============================================================ */

.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(13,27,42,0.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(201,168,76,0.18);
  transition: var(--transition);
}
.site-nav.scrolled {
  background: rgba(13,27,42,1);
  box-shadow: 0 4px 28px rgba(0,0,0,0.35);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.nav-logo img {
  height: 46px;
  width: auto;
  object-fit: contain;
  mix-blend-mode: lighten;
  filter: drop-shadow(0 0 0 transparent);
}
.nav-logo-text { display: flex; flex-direction: column; }
.nav-logo-name {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.1em;
  line-height: 1.1;
}
.nav-logo-sub {
  font-family: var(--font-ui);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  transition: var(--transition);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.3s ease;
}
.nav-links a:hover { color: var(--gold); }
.nav-links a:hover::after { width: 100%; }

.nav-portal {
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.nav-portal:hover { color: var(--white); border-color: rgba(255,255,255,0.45); }

.nav-cta {
  background: var(--gold-gradient) !important;
  color: var(--navy) !important;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  box-shadow: 0 3px 14px rgba(201,168,76,0.32);
  transition: var(--transition);
}
.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 22px rgba(201,168,76,0.42);
}
.nav-cta::after { display: none !important; }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

/* ============================================================
   HERO — Centred, no world map, elegant & spacious
   ============================================================ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: url('assets/images/hero-bg.png') center center / cover no-repeat;
  overflow: hidden;
  padding-top: 72px;
}

/* Dark overlay over hero image for text readability */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(13,27,42,0.78) 0%, rgba(13,27,42,0.62) 50%, rgba(13,27,42,0.75) 100%);
  pointer-events: none;
}

/* Gold sweep at hero bottom */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: -5%; width: 110%;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--gold-dark) 20%, var(--gold-light) 50%, var(--gold-dark) 80%, transparent 100%);
  opacity: 0.65;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  padding: 80px 24px;
}

.hero-eyebrow {
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.hero-eyebrow::before,
.hero-eyebrow::after {
  content: '';
  display: block;
  width: 28px; height: 1px;
  background: var(--gold);
  opacity: 0.55;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4.5vw, 54px);
  font-weight: 700;
  color: var(--white);
  line-height: 1.08;
  letter-spacing: 0.03em;
  margin-bottom: 28px;
}
.hero h1 .gold-text { color: var(--gold-light); }

.hero-sub {
  font-family: var(--font-body);
  font-size: 18px;
  color: rgba(255,255,255,0.65);
  line-height: 1.8;
  margin-bottom: 44px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================
   FLOATING TRUST BLOCK — overlaps hero/section seam
   ============================================================ */

.trust-float-wrapper {
  position: relative;
  z-index: 10;
  margin-top: -56px;
  padding: 0 24px;
}

.trust-float-card {
  max-width: 980px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(201,168,76,0.16);
  padding: 32px 40px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 16px 20px;
  position: relative;
}
.trust-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0; top: 15%; height: 70%;
  width: 1px;
  background: var(--mid-grey);
}

.trust-icon {
  width: 46px; height: 46px;
  background: linear-gradient(135deg, rgba(201,168,76,0.13) 0%, rgba(201,168,76,0.05) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  border: 1px solid rgba(201,168,76,0.22);
  /* Hide emoji text, show SVG icon via background */
  font-size: 0;
  color: transparent;
}
.trust-icon svg {
  width: 20px; height: 20px;
  stroke: var(--gold);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.trust-label {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.03em;
  margin-bottom: 3px;
}
.trust-sub {
  font-family: var(--font-ui);
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ============================================================
   SECTION BASE
   ============================================================ */

.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.section-light { background: var(--off-white); }
.section-white { background: var(--white); }
.section-navy  { background: var(--navy); }

.section-header { margin-bottom: 56px; }
.section-header.center { text-align: center; }
.section-header.center .gold-divider,
.section-header.center .section-subtitle { margin-left: auto; margin-right: auto; }

/* World map texture — light sections only, very subtle */
.world-map-bg {
  position: relative;
  overflow: hidden;
}
.world-map-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('assets/images/world-map.png');
  background-size: 90% auto;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 0.07;
  pointer-events: none;
}

/* ============================================================
   ABOUT SECTION
   ============================================================ */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.about-image-placeholder {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--light-grey) 0%, var(--mid-grey) 100%);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed var(--mid-grey);
  position: relative;
  overflow: hidden;
}
.about-image-placeholder::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gold-gradient-simple);
  z-index: 1;
}
.about-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: var(--radius-lg);
}

.img-placeholder-label {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-light);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  padding: 16px;
}

/* ============================================================
   CTA BAND — gold sweep top & bottom
   ============================================================ */

.cta-band {
  background: var(--navy);
  padding: 84px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* CTA1 specific background */
.cta-band.cta-1 {
  background: url('assets/images/cta1-bg.png') center center / cover no-repeat;
}
.cta-band.cta-1::before {
  background: linear-gradient(160deg, rgba(13,27,42,0.78) 0%, rgba(13,27,42,0.62) 50%, rgba(13,27,42,0.75) 100%) !important;
  z-index: 1;
}
.cta-band.cta-1::after {
  z-index: 2;
}
.cta-band.cta-1 .container { position: relative; z-index: 3; }

/* CTA2 specific background */
.cta-band.cta-2 {
  background: url('assets/images/cta2-bg.png') center center / cover no-repeat;
}
.cta-band.cta-2::before {
  background: linear-gradient(160deg, rgba(13,27,42,0.78) 0%, rgba(13,27,42,0.62) 50%, rgba(13,27,42,0.75) 100%) !important;
  z-index: 1;
}
.cta-band.cta-2::after {
  z-index: 2;
}
.cta-band.cta-2 .container { position: relative; z-index: 3; }
.cta-band::before {
  content: '';
  position: absolute;
  top: 0; left: -5%; width: 110%;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--gold-dark) 20%, var(--gold-light) 50%, var(--gold-dark) 80%, transparent 100%);
  opacity: 0.6;
}
.cta-band::after {
  content: '';
  position: absolute;
  bottom: 0; left: -5%; width: 110%;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--gold-dark) 20%, var(--gold-light) 50%, var(--gold-dark) 80%, transparent 100%);
  opacity: 0.6;
}
.cta-band h2 {
  color: var(--white);
  font-size: clamp(22px, 3.5vw, 40px);
  margin-bottom: 14px;
}
.cta-band p {
  color: rgba(255,255,255,0.65);
  font-size: 17px;
  margin-bottom: 36px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================================
   SERVICES — image placeholders above each card
   ============================================================ */

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

.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(201,168,76,0.10);
  overflow: hidden;
  transition: var(--transition);
}
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(201,168,76,0.28);
}

.service-img-placeholder {
  width: 100%;
  height: 185px;
  background: linear-gradient(135deg, #e8e6e1 0%, #d4d1ca 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.service-img-placeholder::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gold-gradient-simple);
}
.service-img-icon {
  font-size: 0;
  color: transparent;
  margin-bottom: 8px;
  opacity: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.service-img-icon svg {
  width: 32px; height: 32px;
  stroke: var(--gold-dark);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.6;
}
.service-img-label {
  font-family: var(--font-ui);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-light);
  text-align: center;
  padding: 0 12px;
}
.service-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.service-body { padding: 28px; }
.service-title {
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
  letter-spacing: 0.03em;
}
.service-desc {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 20px;
}
.service-link {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-dark);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}
.service-link:hover { color: var(--gold); gap: 10px; }

/* ============================================================
   INDUSTRIES — Option A: 3 image-based cards
   ============================================================ */

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

.industry-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  transition: var(--transition);
}
.industry-card:hover { transform: scale(1.025); }
.industry-card:hover .industry-overlay { background: rgba(13,27,42,0.5); }

.industry-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #1a2e45 0%, #0d1b2a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.industry-bg-label {
  font-family: var(--font-ui);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
  text-align: center;
}
.industry-overlay {
  position: absolute;
  inset: 0;
  background: rgba(13,27,42,0.62);
  transition: var(--transition);
}
.industry-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 32px;
  text-align: center;
}
.industry-icon { display: none; }
.industry-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}
.industry-desc {
  font-family: var(--font-ui);
  font-size: 12px;
  color: rgba(255,255,255,0.65);
  line-height: 1.5;
}
.industry-gold-bar {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gold-gradient-simple);
}

/* ============================================================
   WHY CHOOSE US
   ============================================================ */

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.why-item {
  text-align: center;
  padding: 36px 24px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(201,168,76,0.08);
  transition: var(--transition);
}
.why-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(201,168,76,0.22);
}
.why-icon {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, rgba(201,168,76,0.14) 0%, rgba(201,168,76,0.05) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0;
  color: transparent;
  margin: 0 auto 16px;
  border: 1px solid rgba(201,168,76,0.22);
}
.why-icon svg {
  width: 24px; height: 24px;
  stroke: var(--gold);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.why-title {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.why-desc {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.75;
}

/* ============================================================
   CAREERS — floating cards
   ============================================================ */

.careers-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  align-items: start;
}

.trades-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-float);
  border: 1px solid rgba(201,168,76,0.13);
  padding: 36px;
  position: sticky;
  top: 96px;
}
.trades-card-title {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--mid-grey);
}
.trades-list li {
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--text-mid);
  padding: 10px 0;
  border-bottom: 1px solid var(--light-grey);
  display: flex;
  align-items: center;
  gap: 10px;
}
.trades-list li::before {
  content: '';
  display: block;
  width: 6px; height: 6px;
  background: var(--gold);
  border-radius: 50%;
  flex-shrink: 0;
}
.trades-list li:last-child { border-bottom: none; }

.application-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-float);
  border: 1px solid rgba(201,168,76,0.13);
  padding: 48px;
}

/* ============================================================
   FORMS
   ============================================================ */

.form-section-title {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin: 28px 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--mid-grey);
}
.form-section-title:first-child { margin-top: 0; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}
.form-group label {
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
}
.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font-ui);
  font-size: 14px;
  color: var(--text-dark);
  background: var(--off-white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  transition: var(--transition);
  width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.13);
}
.form-group textarea { min-height: 120px; resize: vertical; }

.upload-zone {
  border: 2px dashed rgba(201,168,76,0.4);
  border-radius: var(--radius-md);
  padding: 32px;
  text-align: center;
  background: rgba(201,168,76,0.025);
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: 16px;
}
.upload-zone:hover {
  border-color: var(--gold);
  background: rgba(201,168,76,0.06);
}
.upload-zone.drag-over {
  border-color: var(--gold);
  border-style: solid;
  background: rgba(201,168,76,0.10);
  transform: scale(1.01);
}
.upload-zone.has-file {
  border-color: var(--gold);
  border-style: solid;
  background: rgba(201,168,76,0.05);
}
.upload-icon {
  font-size: 0;
  color: transparent;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.upload-label {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 4px;
}
.upload-hint {
  font-family: var(--font-ui);
  font-size: 11px;
  color: var(--text-muted);
}

.popia-box {
  background: rgba(13,27,42,0.03);
  border: 1px solid rgba(13,27,42,0.08);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  margin-bottom: 24px;
  /* Prevent box from exceeding its parent width on any screen size */
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}
.popia-box p {
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--text-mid);
  margin-bottom: 12px;
  line-height: 1.65;
  /* Allow long link text to wrap naturally */
  overflow-wrap: break-word;
  word-break: break-word;
}
.popia-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--text-mid);
  cursor: pointer;
  line-height: 1.55;
  /* Prevent flex row from overflowing its container */
  width: 100%;
  min-width: 0;
  overflow-wrap: break-word;
  word-break: break-word;
}
.popia-checkbox input[type="checkbox"] {
  margin-top: 2px;
  width: 16px; height: 16px;
  accent-color: var(--gold);
  flex-shrink: 0;
}
/* Text span inside checkbox label — single flex child that wraps correctly */
.popia-checkbox-text {
  flex: 1;
  min-width: 0;
  overflow-wrap: break-word;
  word-break: break-word;
  white-space: normal;
  display: block;
}
.form-note {
  font-family: var(--font-ui);
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 12px;
}

/* ============================================================
   CONTACT — floating form card
   ============================================================ */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  align-items: start;
}
.contact-info { padding-top: 8px; }
.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 28px;
}
.contact-detail-icon {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, rgba(201,168,76,0.13) 0%, rgba(201,168,76,0.05) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0;
  color: transparent;
  flex-shrink: 0;
  border: 1px solid rgba(201,168,76,0.22);
}
.contact-detail-icon svg {
  width: 18px; height: 18px;
  stroke: var(--gold);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.contact-detail-text strong {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
  display: block;
  margin-bottom: 4px;
}
.contact-detail-text span {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text-muted);
}
.map-placeholder {
  width: 100%;
  height: 220px;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-top: 24px;
}
.contact-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.contact-form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-float);
  border: 1px solid rgba(201,168,76,0.13);
  padding: 44px;
}

/* ============================================================
   FOOTER — gold sweep top
   ============================================================ */

.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.65);
  padding: 72px 0 0;
  position: relative;
}
.site-footer::before {
  content: '';
  position: absolute;
  top: 0; left: -5%; width: 110%;
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, var(--gold-dark) 20%, var(--gold-light) 50%, var(--gold-dark) 80%, transparent 100%);
  opacity: 0.7;
}

.footer-inner {
  width: 100%;
  max-width: 1800px;
  margin: 0 auto;
  padding: 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}
.footer-brand img {
  height: 54px;
  width: auto;
  object-fit: contain;
  margin-bottom: 16px;
  mix-blend-mode: lighten;
}
.footer-brand-name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}
.footer-brand-sub {
  font-family: var(--font-ui);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.footer-brand p {
  font-family: var(--font-body);
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  line-height: 1.75;
}
.footer-col-title {
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(201,168,76,0.22);
}
.footer-links li { margin-bottom: 10px; }
.footer-links a {
  font-family: var(--font-ui);
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  transition: var(--transition);
}
.footer-links a:hover { color: var(--gold-light); }

.footer-portal-btn {
  display: inline-block;
  margin-top: 8px;
  background: var(--gold-gradient);
  color: var(--navy);
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  box-shadow: 0 3px 14px rgba(201,168,76,0.28);
  transition: var(--transition);
}
.footer-portal-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 22px rgba(201,168,76,0.38);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.footer-bottom p {
  font-family: var(--font-ui);
  font-size: 11px;
  color: rgba(255,255,255,0.3);
}
.footer-policy-links { display: flex; gap: 24px; }
.footer-policy-links a {
  font-family: var(--font-ui);
  font-size: 11px;
  color: rgba(255,255,255,0.3);
  transition: var(--transition);
}
.footer-policy-links a:hover { color: var(--gold); }

/* ============================================================
   BACK TO TOP
   ============================================================ */

.back-to-top {
  position: fixed;
  bottom: 32px; right: 32px;
  width: 44px; height: 44px;
  background: var(--gold-gradient);
  color: var(--navy);
  border: none;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  box-shadow: var(--shadow-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(12px);
  transition: var(--transition);
  z-index: 999;
  text-decoration: none;
}
.back-to-top.visible { opacity: 1; transform: translateY(0); }
.back-to-top:hover { transform: translateY(-3px); box-shadow: 0 6px 24px rgba(201,168,76,0.45); }

/* ============================================================
   PORTAL SHELL — lighter, cleaner, Montserrat-dominant
   ============================================================ */

.portal-body {
  font-family: var(--font-ui);
  background: #f0f2f5;
  min-height: 100vh;
}

.portal-topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 64px;
  background: var(--white);
  border-bottom: 1px solid var(--mid-grey);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  z-index: 200;
  box-shadow: var(--shadow-xs);
}
.portal-topbar::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--gold-dark) 20%, var(--gold-light) 50%, var(--gold-dark) 80%, transparent 100%);
  opacity: 0.35;
}

.portal-topbar-brand { display: flex; align-items: center; gap: 12px; }
.portal-topbar-brand img { height: 36px; width: auto; object-fit: contain; }
.portal-topbar-name {
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.04em;
}
.portal-topbar-sub {
  font-family: var(--font-ui);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-dark);
}

.portal-topbar-right { display: flex; align-items: center; gap: 16px; }

.portal-bell {
  width: 36px; height: 36px;
  background: var(--off-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  border: 1px solid var(--mid-grey);
  color: var(--text-mid);
  transition: var(--transition);
}
.portal-bell:hover { background: var(--light-grey); }

.portal-user-badge { display: flex; align-items: center; gap: 10px; }
.portal-avatar {
  width: 36px; height: 36px;
  background: var(--gold-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 700;
  color: var(--navy);
}
.portal-user-name {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
}
.portal-user-role {
  font-family: var(--font-ui);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-dark);
}

.portal-logout {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--off-white);
  border: 1px solid var(--mid-grey);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}
.portal-logout:hover { background: #fee2e2; border-color: #fca5a5; color: #dc2626; }

.portal-layout { display: flex; padding-top: 64px; min-height: 100vh; }

.portal-sidebar {
  width: 240px;
  background: var(--white);
  border-right: 1px solid var(--mid-grey);
  position: fixed;
  top: 64px; bottom: 0; left: 0;
  overflow-y: auto;
  padding: 20px 0;
  box-shadow: var(--shadow-xs);
}

.sidebar-section-label {
  font-family: var(--font-ui);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-light);
  padding: 16px 20px 8px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-mid);
  text-decoration: none;
  transition: var(--transition);
  border-left: 3px solid transparent;
}
.sidebar-link:hover { background: var(--off-white); color: var(--navy); border-left-color: var(--gold); }
.sidebar-link.active { background: rgba(201,168,76,0.07); color: var(--navy); font-weight: 600; border-left-color: var(--gold); }
.sidebar-link .sidebar-icon { font-size: 15px; width: 20px; text-align: center; }

.sidebar-role-tag {
  font-family: var(--font-ui);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 3px;
  margin-left: auto;
}
.tag-boss     { background: rgba(201,168,76,0.14); color: var(--gold-dark); }
.tag-acc      { background: rgba(59,130,246,0.10); color: #2563eb; }
.tag-boss-acc { background: rgba(201,168,76,0.12); color: var(--gold-dark); }

.portal-main { margin-left: 240px; flex: 1; padding: 32px; min-height: calc(100vh - 64px); }

.portal-page-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 12px;
}
.portal-page-title {
  font-family: var(--font-ui);
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}
.portal-breadcrumb {
  font-family: var(--font-ui);
  font-size: 12px;
  color: var(--text-muted);
}
.portal-role-badge {
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(201,168,76,0.10);
  color: var(--gold-dark);
  border: 1px solid rgba(201,168,76,0.22);
}

/* Portal stat cards */
.portal-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}
.stat-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--mid-grey);
  transition: var(--transition);
}
.stat-card:hover { box-shadow: var(--shadow-md); }
.stat-icon {
  width: 40px; height: 40px;
  background: rgba(201,168,76,0.10);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin-bottom: 12px;
}
.stat-value {
  font-family: var(--font-ui);
  font-size: 28px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 4px;
}
.stat-label {
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.stat-sub { font-family: var(--font-ui); font-size: 11px; color: var(--text-light); }

/* Portal data cards */
.portal-card {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--mid-grey);
  overflow: hidden;
  margin-bottom: 24px;
}
.portal-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid var(--mid-grey);
}
.portal-card-title {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
}
.portal-card-body { padding: 24px; }

/* Portal tables */
.portal-table { width: 100%; border-collapse: collapse; }
.portal-table th {
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 12px 16px;
  text-align: left;
  background: var(--off-white);
  border-bottom: 1px solid var(--mid-grey);
}
.portal-table td {
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--text-mid);
  padding: 13px 16px;
  border-bottom: 1px solid var(--light-grey);
}
.portal-table tr:last-child td { border-bottom: none; }
.portal-table tr:hover td { background: var(--off-white); }

/* Status badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: 0.04em;
}
.status-badge::before {
  content: '';
  display: block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.status-approved  { background: #d1fae5; color: #059669; }
.status-submitted { background: #dbeafe; color: #2563eb; }
.status-pending   { background: #fef3c7; color: #d97706; }
.status-rejected  { background: #fee2e2; color: #dc2626; }
.status-active    { background: #d1fae5; color: #059669; }
.status-inactive  { background: #f3f4f6; color: #6b7280; }

/* Portal alert */
.portal-alert {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-left: 3px solid #f59e0b;
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin-bottom: 24px;
  font-family: var(--font-ui);
  font-size: 13px;
  color: #92400e;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Quick actions */
.quick-actions {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--mid-grey);
  padding: 24px;
  margin-bottom: 24px;
}
.quick-actions-title {
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.quick-actions-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.qa-btn {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  color: var(--navy);
  background: var(--off-white);
  border: 1px solid var(--mid-grey);
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.qa-btn:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }
.qa-btn.qa-gold {
  background: var(--gold-gradient);
  color: var(--navy);
  border-color: transparent;
  box-shadow: 0 2px 8px rgba(201,168,76,0.25);
}
.qa-btn.qa-gold:hover { box-shadow: 0 4px 16px rgba(201,168,76,0.38); transform: translateY(-1px); }

/* Report cards */
.report-card {
  background: var(--white);
  border: 1px solid var(--mid-grey);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.report-card-title {
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
}
.report-card-desc {
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--text-mid);
  margin-bottom: 4px;
}

/* ============================================================
   PORTAL UTILITY CLASSES
   (buttons, inputs, alerts used throughout portal views)
   ============================================================ */

/* Portal buttons */
.portal-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
  background: linear-gradient(135deg, #c9a227, #a07c1e);
  color: #fff;
}
.portal-btn:hover {
  background: linear-gradient(135deg, #b8931e, #8a6c18);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(160,124,30,0.35);
}
.portal-btn-secondary {
  background: var(--white);
  color: var(--navy);
  border-color: var(--mid-grey);
}
.portal-btn-secondary:hover {
  background: var(--off-white);
  border-color: var(--border);
  color: var(--navy);
  transform: none;
  box-shadow: none;
}
.portal-btn-sm {
  font-size: 11px;
  padding: 6px 14px;
}
.portal-btn-danger {
  background: #ef4444;
  color: #fff;
  border-color: transparent;
}
.portal-btn-danger:hover {
  background: #dc2626;
  color: #fff;
  transform: translateY(-1px);
}

/* Additional btn variants used in portal user views */
.btn-secondary {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--mid-grey);
  cursor: pointer;
  transition: var(--transition);
  background: var(--white);
  color: var(--navy);
  text-decoration: none;
}
.btn-secondary:hover { background: var(--off-white); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  background: transparent;
  color: var(--text-muted);
  text-decoration: none;
}
.btn-ghost:hover { background: var(--off-white); color: var(--navy); }

.btn-danger {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 700;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  background: #ef4444;
  color: #fff;
  text-decoration: none;
}
.btn-danger:hover { background: #dc2626; }

.btn-success {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 700;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  background: #22c55e;
  color: #fff;
  text-decoration: none;
}
.btn-success:hover { background: #16a34a; }

.btn-sm { padding: 6px 14px; font-size: 11px; }

/* Badge component (used in user management views) */
.badge {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: 0.04em;
}
.badge-secondary { background: #f3f4f6; color: #374151; }
.badge-success   { background: #d1fae5; color: #059669; }
.badge-danger    { background: #fee2e2; color: #dc2626; }
.badge-warning   { background: #fef3c7; color: #d97706; }
.badge-info      { background: #dbeafe; color: #2563eb; }
.badge-default   { background: #f3f4f6; color: #6b7280; }

/* Alert variants (Bootstrap-style — used in older portal views) */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  margin-bottom: 20px;
  font-family: var(--font-ui);
  font-size: 13px;
}
.alert-success { background: #f0fdf4; border-color: #bbf7d0; color: #166534; }
.alert-danger  { background: #fef2f2; border-color: #fecaca; color: #991b1b; }

/* Portal content header (alternate header style in user views) */
.portal-content-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 12px;
}
.portal-page-subtitle {
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Portal filter bar */
.portal-filter-bar {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

/* Form error message */
.form-error {
  color: #ef4444;
  font-family: var(--font-ui);
  font-size: 12px;
  margin-top: 4px;
}

/* Input error state */
.input-error {
  border-color: #ef4444 !important;
}

/* Pagination */
.pagination-nav { margin-top: 16px; }
.pagination {
  display: flex;
  gap: 4px;
  list-style: none;
  flex-wrap: wrap;
}
.page-item .page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  color: var(--navy);
  background: var(--white);
  border: 1.5px solid var(--mid-grey);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: var(--transition);
}
.page-item .page-link:hover {
  background: var(--off-white);
  border-color: var(--border);
}
.page-item.active .page-link {
  background: linear-gradient(135deg, #c9a227, #a07c1e);
  color: #fff;
  border-color: transparent;
}

/* btn-primary alias (used in settings page) */
.btn-primary {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  background: linear-gradient(135deg, #c9a227, #a07c1e);
  color: #fff;
  text-decoration: none;
}
.btn-primary:hover {
  background: linear-gradient(135deg, #b8931e, #8a6c18);
  color: #fff;
}

/* Portal form inputs */
.portal-input,
.form-input {
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--text-dark);
  background: var(--white);
  border: 1.5px solid var(--mid-grey);
  border-radius: var(--radius-sm);
  padding: 9px 14px;
  outline: none;
  transition: border-color 0.15s;
  width: 100%;
  box-sizing: border-box;
}
.portal-input:focus,
.form-input:focus {
  border-color: #c9a227;
  box-shadow: 0 0 0 3px rgba(201,168,76,0.15);
}
.form-input.is-invalid {
  border-color: #ef4444;
}

/* Form labels */
.form-label {
  display: block;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}

/* Form group spacing */
.form-group { margin-bottom: 18px; }

/* Portal label/error helpers */
.portal-label {
  display: block;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.portal-field-error {
  color: #ef4444;
  font-family: var(--font-ui);
  font-size: 12px;
  margin-top: 4px;
}

/* Portal alert variants */
.portal-alert-success {
  background: #f0fdf4;
  border-color: #bbf7d0;
  border-left-color: #22c55e;
  color: #166534;
}
.portal-alert-error {
  background: #fef2f2;
  border-color: #fecaca;
  border-left-color: #ef4444;
  color: #991b1b;
}

/* ============================================================
   PORTAL LOGIN — gold sweep accent
   ============================================================ */

.login-page {
  min-height: 100vh;
  background: linear-gradient(160deg, var(--off-white) 0%, #ece9e0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  position: relative;
  overflow: hidden;
}
.login-page::after {
  content: '';
  position: absolute;
  bottom: 0; left: -5%; width: 110%;
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, var(--gold-dark) 20%, var(--gold-light) 50%, var(--gold-dark) 80%, transparent 100%);
  opacity: 0.5;
}

.login-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(201,168,76,0.16);
  padding: 52px 48px;
  width: 100%;
  max-width: 440px;
  text-align: center;
}
.login-logo { height: 88px; width: auto; object-fit: contain; margin: 0 auto 20px; }
.login-brand-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}
.login-brand-sub {
  font-family: var(--font-ui);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 32px;
}
.login-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}
.login-sub {
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 32px;
}
.login-divider {
  width: 40px; height: 2px;
  background: var(--gold-gradient-simple);
  margin: 0 auto 28px;
  border-radius: 2px;
}
.login-form .form-group { text-align: left; }
.login-forgot {
  font-family: var(--font-ui);
  font-size: 12px;
  color: var(--gold-dark);
  text-align: right;
  display: block;
  margin-top: -8px;
  margin-bottom: 24px;
  transition: var(--transition);
}
.login-forgot:hover { color: var(--gold); }
.login-security {
  background: var(--off-white);
  border: 1px solid var(--mid-grey);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin-top: 24px;
  font-family: var(--font-ui);
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.55;
}
.login-back {
  display: block;
  margin-top: 20px;
  font-family: var(--font-ui);
  font-size: 12px;
  color: var(--text-muted);
  transition: var(--transition);
}
.login-back:hover { color: var(--gold-dark); }

/* ============================================================
   POLICY PAGES — gold sweep accents
   ============================================================ */

.policy-hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-mid) 100%);
  padding: 120px 0 72px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.policy-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: -5%; width: 110%;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--gold-dark) 20%, var(--gold-light) 50%, var(--gold-dark) 80%, transparent 100%);
  opacity: 0.65;
}
.policy-hero h1 { color: var(--white); font-size: clamp(26px, 4vw, 46px); margin-bottom: 12px; }
.policy-hero p { color: rgba(255,255,255,0.55); font-size: 15px; }
.policy-breadcrumb {
  font-family: var(--font-ui);
  font-size: 11px;
  color: rgba(255,255,255,0.38);
  margin-bottom: 20px;
}

.policy-content { padding: 80px 0; background: var(--white); }
.policy-container { max-width: 860px; margin: 0 auto; padding: 0 24px; }
.policy-meta {
  font-family: var(--font-ui);
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 48px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--mid-grey);
}
.policy-section { margin-bottom: 48px; }
.policy-section-num {
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 8px;
}
.policy-section h3 {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--navy);
  margin-bottom: 16px;
}
.policy-section p {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text-mid);
  line-height: 1.9;
  margin-bottom: 12px;
}
.policy-section ul { list-style: disc; padding-left: 24px; margin-bottom: 12px; }
.policy-section ul li {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text-mid);
  line-height: 1.8;
  margin-bottom: 6px;
}
.policy-divider { border: none; border-top: 1px solid var(--mid-grey); margin: 48px 0; }

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .portal-stats { grid-template-columns: repeat(2, 1fr); }
  .about-grid { gap: 40px; }
}

@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }

  .trust-float-card {
    grid-template-columns: repeat(2, 1fr);
    padding: 24px;
  }
  .trust-item:nth-child(2)::after { display: none; }

  .about-grid,
  .careers-grid,
  .contact-grid { grid-template-columns: 1fr; }

  .services-grid,
  .industries-grid,
  .why-grid { grid-template-columns: 1fr; }

  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }

  .portal-main { margin-left: 0; padding: 20px; }
  .portal-stats { grid-template-columns: 1fr 1fr; }

  .hero h1 { font-size: clamp(28px, 8vw, 48px); }
  .application-card { padding: 28px; }
  .contact-form-card { padding: 28px; }
  .login-card { padding: 36px 28px; }

  /* ── POPIA consent block mobile fix ── */
  /* Reduce card padding so inner content has more room */
  .application-card { padding: 20px 16px; }

  /* Tighten popia-box internal padding on mobile */
  .popia-box { padding: 14px 14px; }

  /* Ensure popia text and links wrap cleanly */
  .popia-box p,
  .popia-checkbox {
    font-size: 12px;
    overflow-wrap: break-word;
    word-break: break-word;
  }

  /* Prevent any inline link from stretching the row */
  .popia-box a,
  .popia-checkbox a {
    display: inline;
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: normal;
  }

  /* Full-width safety net for all form elements */
  .form-group input,
  .form-group select,
  .form-group textarea {
    width: 100%;
    box-sizing: border-box;
    max-width: 100%;
  }

  /* Upload zones must not overflow on mobile */
  .upload-zone {
    padding: 20px 12px;
    box-sizing: border-box;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .trust-float-card { grid-template-columns: 1fr 1fr; }
  .portal-stats { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: center; }

  /* Extra-small screens: further tighten application card */
  .application-card { padding: 16px 12px; }
  .popia-box { padding: 12px 10px; }

  /* Stack checkbox and label text cleanly on very small screens */
  .popia-checkbox {
    gap: 10px;
    align-items: flex-start;
  }
}

/* ============================================================
   PORTAL — Mobile hamburger burger button (always hidden on desktop)
   ============================================================ */

.portal-mobile-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
  flex-shrink: 0;
}
.portal-mobile-burger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: var(--transition);
}
.portal-mobile-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.portal-mobile-burger.open span:nth-child(2) { opacity: 0; }
.portal-mobile-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Overlay behind mobile drawer */
.portal-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 198;
}
.portal-nav-overlay.open { display: block; }

/* ============================================================
   PUBLIC NAV — Mobile open state
   ============================================================ */

@media (max-width: 768px) {
  /* Public nav open drawer */
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--navy);
    padding: 12px 24px 24px;
    gap: 0;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    z-index: 998;
  }
  .nav-links.open a {
    padding: 13px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    font-size: 13px;
  }
  .nav-links.open a:last-child { border-bottom: none; }

  /* Hamburger → X animation */
  .nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-hamburger.open span:nth-child(2) { opacity: 0; }
  .nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* Portal sidebar becomes a slide-in drawer on mobile */
  .portal-sidebar {
    display: block !important;
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: 260px;
    padding-top: 64px;
    z-index: 199;
    transform: translateX(-100%);
    transition: transform 0.28s cubic-bezier(0.4,0,0.2,1);
    overflow-y: auto;
  }
  .portal-sidebar.open {
    transform: translateX(0);
    box-shadow: 4px 0 24px rgba(0,0,0,0.18);
  }

  /* Show hamburger button in portal topbar */
  .portal-mobile-burger { display: flex; }

  /* Topbar: hide elements that crowd small screens — keep logo, avatar, logout only */
  .portal-topbar-name,
  .portal-topbar-sub,
  .portal-user-name,
  .portal-user-role,
  .portal-bell { display: none; }

  /* Smaller logout button on mobile */
  .portal-logout { padding: 6px 10px; font-size: 10px; letter-spacing: 0.04em; }

  /* ── Scroll hint: wrap tables in a relative container showing a right-fade + label ── */

  /* Wrap every portal-table in a scroll-hint container via JS (see portal.php script) */
  .table-scroll-wrap {
    position: relative;
    overflow-x: scroll;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius-md);
    /* Always-visible scrollbar (Android Chrome) */
    scrollbar-width: thin;
    scrollbar-color: var(--gold-dark) var(--off-white);
  }
  .table-scroll-wrap::-webkit-scrollbar { height: 5px; }
  .table-scroll-wrap::-webkit-scrollbar-track { background: var(--off-white); }
  .table-scroll-wrap::-webkit-scrollbar-thumb { background: var(--gold-dark); border-radius: 4px; }

  /* Right-edge fade gradient — fades away once user has scrolled to the end */
  .table-scroll-wrap::after {
    content: '';
    position: sticky;
    right: 0;
    top: 0;
    display: block;
    width: 48px;
    min-height: 100%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.92));
    pointer-events: none;
    float: right;
    margin-left: -48px;
  }

  /* "scroll →" hint label shown below scrollable tables */
  .table-scroll-hint {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    color: var(--gold-dark);
    font-family: var(--font-ui);
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: 6px 4px 2px;
    user-select: none;
  }
  .table-scroll-hint::before {
    content: '';
    display: inline-block;
    width: 16px; height: 2px;
    background: var(--gold-dark);
    border-radius: 2px;
  }
  .table-scroll-hint::after {
    content: '→';
    font-size: 13px;
  }

  /* ── Core fix: constrain portal-main so nothing can push it wider than the screen ── */
  .portal-main {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    box-sizing: border-box;
    padding: 16px;
  }

  /* Every direct child of portal-main must stay within the container */
  .portal-main > * {
    max-width: 100%;
    box-sizing: border-box;
  }

  /* Tables: scroll inside their card, not the whole page */
  .portal-card,
  .portal-card-body {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
    box-sizing: border-box;
  }
  .portal-table { min-width: 540px; }

  /* Quick actions: single column stack */
  .quick-actions-grid { flex-direction: column; }
  .qa-btn { width: 100%; box-sizing: border-box; justify-content: flex-start; }

  /* Inline 2-col grids: force single column on mobile */
  [style*="grid-template-columns:1fr 1fr"],
  [style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }

  /* Portal content header: stack on mobile */
  .portal-content-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  /* Filter bars: wrap + override any fixed pixel widths on inputs */
  .portal-filter-bar,
  form[style*="display:flex"] {
    flex-wrap: wrap;
  }
  .portal-filter-bar input,
  .portal-filter-bar select,
  form[style*="display:flex"] input[class*="portal-input"],
  form[style*="display:flex"] select[class*="portal-input"],
  form[style*="display:flex"] .form-input {
    width: 100% !important;
    min-width: 0 !important;
    flex: 1 1 100% !important;
    box-sizing: border-box;
  }

  /* Ensure all inputs/selects in portal stay inside their container */
  .portal-main input,
  .portal-main select,
  .portal-main textarea {
    max-width: 100%;
    box-sizing: border-box;
  }
}
