/* ============================================
   GLOBAL Automation Technologies
   a16z-inspired design system
   ============================================ */

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

:root {
  --color-bg-dark: #0a0a0a;
  --color-bg-darker: #050505;
  --color-bg-light: #f5f3ef;
  --color-bg-accent: #111111;
  --color-gold: #2E7D32;
  --color-gold-light: #43a047;
  --color-gold-dark: #1b5e20;
  --color-green: #4caf50;
  --color-text-light: #ffffff;
  --color-text-muted: #999999;
  --color-text-dark: #1a1a1a;
  --color-text-body: #555555;
  --color-border: rgba(255, 255, 255, 0.1);
  --color-border-dark: rgba(0, 0, 0, 0.1);
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--color-bg-dark);
  color: var(--color-text-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

/* --- Header --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2.5rem;
  transition: background var(--transition);
}

.site-header.scrolled {
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.menu-toggle {
  background: none;
  border: none;
  cursor: pointer;
  width: 28px;
  height: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-text-light);
  transition: var(--transition);
}

.site-logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-img {
  height: 40px;
  width: auto;
}

.footer-logo-img {
  height: 36px;
  width: auto;
}

.search-toggle {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text-light);
  padding: 4px;
}

/* --- Slide Navigation --- */
.slide-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 320px;
  height: 100vh;
  background: var(--color-bg-light);
  z-index: 200;
  transform: translateX(-100%);
  transition: transform var(--transition-slow);
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow-y: auto;
}

.slide-nav.open {
  transform: translateX(0);
}

.nav-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--color-text-dark);
  line-height: 1;
}

.nav-main {
  list-style: none;
  margin-top: 2rem;
}

.nav-main > li {
  margin-bottom: 0.25rem;
}

.nav-main > li > a,
.nav-expand {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--color-text-dark);
  display: block;
  padding: 0.5rem 0;
  background: none;
  border: none;
  cursor: pointer;
  width: 100%;
  text-align: left;
  transition: color var(--transition);
}

.nav-main > li > a:hover,
.nav-expand:hover {
  color: var(--color-gold-dark);
}

.nav-expand {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-expand .arrow {
  font-size: 1.2rem;
  transition: transform var(--transition);
}

.nav-expand.expanded .arrow {
  transform: rotate(90deg);
}

.nav-sub {
  list-style: none;
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow);
  padding-left: 1rem;
}

.nav-sub.open {
  max-height: 400px;
}

.nav-sub li a {
  display: block;
  padding: 0.4rem 0;
  font-size: 0.9rem;
  color: var(--color-text-body);
  transition: color var(--transition);
}

.nav-sub li a:hover {
  color: var(--color-gold-dark);
}

.nav-social {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.nav-social a {
  color: var(--color-text-body);
  transition: color var(--transition);
}

.nav-social a:hover {
  color: var(--color-gold-dark);
}

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 150;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-slow);
}

.nav-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* --- Hero --- */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  background: var(--color-bg-dark);
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero-logo-reveal {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-dark);
  opacity: 0;
  transition: opacity 1.5s ease;
  pointer-events: none;
}

.hero-logo-reveal.visible {
  opacity: 1;
}

.hero-logo-reveal img {
  max-width: 500px;
  width: 80%;
  height: auto;
}

/* Decorative grid overlay */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.hero-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2.5rem;
  z-index: 10;
  background: linear-gradient(transparent, rgba(10, 10, 10, 0.8));
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 400;
  font-style: italic;
  color: var(--color-gold);
  letter-spacing: 0.04em;
  line-height: 1.2;
  max-width: 800px;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
  transition: color var(--transition);
}

.hero-cta:hover {
  color: var(--color-text-light);
}

.cta-arrow {
  display: inline-block;
  transition: transform var(--transition);
}

.hero-cta:hover .cta-arrow {
  transform: translateX(4px);
}

/* --- Sections --- */
.section {
  padding: 6rem 0;
}

.section-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2.5rem;
}

.section-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-gold);
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.section-intro {
  max-width: 600px;
  color: var(--color-text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 3rem;
}

.section-dark {
  background: var(--color-bg-dark);
  color: var(--color-text-light);
}

.section-light {
  background: var(--color-bg-light);
  color: var(--color-text-dark);
}

.section-light .section-title {
  color: var(--color-text-dark);
}

.section-light .section-intro {
  color: var(--color-text-body);
}

.section-accent {
  background: var(--color-bg-accent);
  color: var(--color-text-light);
}

/* --- Card Grid (Solutions) --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.card {
  display: block;
  padding: 2.5rem 2rem;
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(46, 125, 50, 0.2);
  border-radius: 4px;
  transition: border-color var(--transition), transform var(--transition), background var(--transition), box-shadow var(--transition);
  text-decoration: none;
  opacity: 0;
  transform: translateY(30px);
}

.card.visible {
  opacity: 1;
  transform: translateY(0);
}

.card:hover {
  border-color: var(--color-gold);
  transform: translateY(-4px);
  background: rgba(46, 125, 50, 0.04);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.card-icon {
  color: var(--color-gold);
  margin-bottom: 1.5rem;
}

.card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  margin-bottom: 0.75rem;
}

.card p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* Cards on light background */
.section-light .card h3 {
  color: var(--color-text-dark);
}

.section-light .card p {
  color: var(--color-text-body);
}

/* --- Services Grid --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 4rem;
  padding-top: 4rem;
  border-top: 1px solid var(--color-border);
}

.service-item {
  padding: 2.5rem 2rem;
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(46, 125, 50, 0.2);
  border-radius: 4px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--transition-slow), transform var(--transition-slow), border-color var(--transition), background var(--transition), box-shadow var(--transition);
}

.service-item:hover {
  border-color: var(--color-gold);
  transform: translateY(-4px);
  background: rgba(46, 125, 50, 0.04);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.service-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.service-icon {
  color: var(--color-gold);
  margin-bottom: 1.5rem;
}

.service-item h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 400;
  margin-bottom: 0.75rem;
}

.service-item p {
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Service items inherit section text color */
.section-dark .service-item h3 { color: var(--color-text-light); }
.section-dark .service-item p { color: var(--color-text-muted); }
.section-light .service-item h3 { color: var(--color-text-dark); }
.section-light .service-item p { color: var(--color-text-body); }

/* Services grid on light bg */
.section-light .services-grid {
  border-top-color: rgba(46, 125, 50, 0.15);
}

/* --- Staffing & Careers Combined Section --- */
.sc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.sc-column-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--color-gold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--color-border);
}

.sc-text {
  font-size: 1rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: 1rem;
}

/* Value cards in accent section */
.section-accent .value-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(46, 125, 50, 0.2);
  border-radius: 4px;
  transition: border-color var(--transition), transform var(--transition), background var(--transition);
  opacity: 0;
  transform: translateY(30px);
}

.section-accent .value-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.section-accent .value-card:hover {
  border-color: var(--color-gold);
  transform: translateY(-4px);
  background: rgba(46, 125, 50, 0.06);
}

.section-accent .value-card h4 { color: var(--color-text-light); }
.section-accent .value-card p { color: var(--color-text-muted); }

/* Careers closing in accent section */
.section-accent .careers-closing { color: var(--color-text-muted); }

/* --- Staffing Section (legacy) --- */
.staffing-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.staffing-roles {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.5rem 0 2rem;
}

.role-tag {
  padding: 0.4rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: 100px;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  transition: border-color var(--transition), color var(--transition);
}

.role-tag:hover {
  border-color: var(--color-gold);
  color: var(--color-gold);
}

.staffing-text p {
  color: var(--color-text-muted);
  font-size: 1rem;
  line-height: 1.7;
}

.staffing-stats {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  padding-left: 3rem;
  border-left: 1px solid var(--color-border);
}

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

.stat-plus {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--color-gold);
}

.stat-label {
  display: block;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-top: 0.25rem;
  letter-spacing: 0.05em;
}

/* --- Button --- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.8rem;
  background: var(--color-gold);
  color: var(--color-text-light);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  text-decoration: none;
}

.btn-primary:hover {
  background: var(--color-gold-light);
  transform: translateY(-1px);
}

.btn-light {
  background: var(--color-text-light);
  color: var(--color-bg-dark);
}

.btn-light:hover {
  background: #eeeeee;
}

/* --- Offices Grid --- */
.offices-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.office-card {
  padding: 2rem;
  border: 1px solid var(--color-border);
  border-radius: 2px;
  transition: border-color var(--transition);
}

.office-card:hover {
  border-color: var(--color-gold-dark);
}

.office-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--color-gold);
  color: var(--color-bg-dark);
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 50%;
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
}

.office-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 400;
  margin-bottom: 0.75rem;
}

.hq-badge {
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 700;
  background: var(--color-gold);
  color: var(--color-bg-dark);
  padding: 0.15rem 0.5rem;
  border-radius: 100px;
  vertical-align: middle;
  margin-left: 0.5rem;
  letter-spacing: 0.1em;
}

.office-card p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.office-tel {
  color: var(--color-gold) !important;
  font-weight: 500;
}

.office-locations {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
}

.office-locations span {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  padding: 0.25rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: 100px;
}

/* --- About Section --- */
.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.about-text p {
  color: var(--color-text-body);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.about-values {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding-left: 3rem;
  border-left: 1px solid var(--color-border-dark);
}

.value h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 400;
  margin-bottom: 0.4rem;
  color: var(--color-text-dark);
}

.value p {
  font-size: 0.9rem;
  color: var(--color-text-body);
  line-height: 1.5;
}

/* --- CTA Section --- */
.section-cta {
  background: var(--color-gold);
  color: var(--color-text-light);
  text-align: center;
  padding: 5rem 0;
}

.cta-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  margin-bottom: 1rem;
}

.cta-text {
  font-size: 1.05rem;
  max-width: 500px;
  margin: 0 auto 2rem;
  opacity: 0.8;
}

/* --- Contact --- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-item {
  margin-bottom: 2rem;
}

.contact-item h4 {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-gold);
  margin-bottom: 0.5rem;
}

.contact-item a,
.contact-item p {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

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

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  padding: 0.9rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--color-border);
  border-radius: 2px;
  color: var(--color-text-light);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: border-color var(--transition);
  outline: none;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--color-text-muted);
}

.contact-form select {
  appearance: none;
  cursor: pointer;
}

.contact-form select option {
  background: var(--color-bg-dark);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--color-gold);
}

.contact-form textarea {
  resize: vertical;
}

.contact-status {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.5;
  padding: 0.75rem 1rem;
  border-radius: 4px;
}

.contact-status.success {
  color: #81c784;
  background: rgba(46, 125, 50, 0.12);
  border: 1px solid rgba(46, 125, 50, 0.3);
}

.contact-status.error {
  color: #ef9a9a;
  background: rgba(183, 28, 28, 0.12);
  border: 1px solid rgba(183, 28, 28, 0.3);
}

/* --- Footer --- */
.site-footer {
  border-top: 1px solid var(--color-border);
  background: var(--color-bg-darker);
}

.footer-top {
  padding: 3rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-tagline {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--color-text-muted);
  font-style: italic;
}

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

.footer-legal {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.footer-legal a {
  color: var(--color-text-muted);
  transition: color var(--transition);
}

.footer-legal a:hover {
  color: var(--color-text-light);
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  color: var(--color-text-muted);
  transition: border-color var(--transition), color var(--transition);
}

.footer-social a:hover {
  border-color: var(--color-gold);
  color: var(--color-gold);
}

/* --- AI + Engineering Section --- */
.section-ai {
  background: linear-gradient(180deg, #0d1a0f 0%, #0a0a0a 50%, #0d1a0f 100%);
  color: var(--color-text-light);
  padding: 7rem 0;
  position: relative;
  overflow: hidden;
}

.section-ai::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
}

.section-ai::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
}

.ai-header {
  max-width: 700px;
  margin-bottom: 4rem;
}

.ai-headline {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  color: var(--color-text-light);
}

.ai-headline em {
  color: var(--color-gold);
  font-style: italic;
}

.ai-intro {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  max-width: 560px;
}

.ai-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 4rem;
}

.ai-card {
  padding: 2.5rem 2rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(46, 125, 50, 0.2);
  border-radius: 4px;
  transition: border-color var(--transition), transform var(--transition), background var(--transition);
  opacity: 0;
  transform: translateY(30px);
}

.ai-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.ai-card:hover {
  border-color: var(--color-gold);
  transform: translateY(-4px);
  background: rgba(46, 125, 50, 0.06);
}

.ai-card-icon {
  color: var(--color-gold);
  margin-bottom: 1.5rem;
}

.ai-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 400;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.ai-card p {
  font-size: 0.92rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

.ai-closing {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.ai-closing-text {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--color-border);
}

.ai-cta-headline {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
}

.ai-cta-sub {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}

/* --- About Section --- */
.about-hero {
  text-align: center;
  padding: 5rem 0 4rem;
  margin-bottom: 4rem;
}

.section-dark .about-hero { border-bottom: 1px solid var(--color-border); }
.section-light .about-hero { border-bottom: 1px solid var(--color-border-dark); }

.about-hero-headline {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 400;
  line-height: 1.3;
  max-width: 700px;
  margin: 0 auto 1rem;
}

.section-dark .about-hero-headline { color: var(--color-text-light); }
.section-light .about-hero-headline { color: var(--color-text-dark); }

.about-hero-sub {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-style: italic;
  color: var(--color-gold);
}

.about-body {
  max-width: 900px;
  margin-bottom: 4rem;
}

.about-body-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 400;
  margin-bottom: 1.5rem;
}

.section-dark .about-body-title { color: var(--color-text-light); }
.section-light .about-body-title { color: var(--color-text-dark); }

.section-dark .about-body p { color: var(--color-text-muted); }
.section-light .about-body p { color: var(--color-text-body); }

.about-body p {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

/* Capability Cards */
.capability-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.capability-card-full {
  grid-column: 1 / -1;
}

.capability-card {
  padding: 1.5rem 1.5rem 1.5rem 2rem;
  border-left: 3px solid var(--color-gold);
}

.section-dark .capability-card {
  background: rgba(255, 255, 255, 0.03);
}

.section-light .capability-card {
  background: rgba(0, 0, 0, 0.03);
}

.capability-card h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
}

.section-dark .capability-card h4 { color: var(--color-text-light); }
.section-light .capability-card h4 { color: var(--color-text-dark); }

.capability-card p {
  font-size: 0.9rem;
  line-height: 1.6;
}

.section-dark .capability-card p { color: var(--color-text-muted); }
.section-light .capability-card p { color: var(--color-text-body); }

/* --- Careers Section --- */
.careers-body {
  max-width: 800px;
  margin-bottom: 3rem;
}

.careers-body p {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

/* Careers text adapts to section background */
.section-dark .careers-body p { color: var(--color-text-muted); }
.section-light .careers-body p { color: var(--color-text-body); }

/* Value Cards */
.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.value-card {
  padding: 2rem;
  border-radius: 4px;
}

/* Value cards on light background */
.section-light .value-card {
  background: #ffffff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.section-light .value-card h4 { color: var(--color-text-dark); }
.section-light .value-card p { color: var(--color-text-body); }

/* Value cards on dark background */
.section-dark .value-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--color-border);
}

.section-dark .value-card h4 { color: var(--color-text-light); }
.section-dark .value-card p { color: var(--color-text-muted); }

.value-card h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 400;
  margin-bottom: 0.75rem;
}

.value-card p {
  font-size: 0.9rem;
  line-height: 1.6;
}

.careers-closing {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-style: italic;
  margin-bottom: 2rem;
  max-width: 100%;
}

.section-dark .careers-closing { color: var(--color-text-muted); }
.section-light .careers-closing { color: var(--color-text-body); }

/* --- Presence Section --- */
.presence-stats {
  display: flex;
  justify-content: center;
  gap: 5rem;
  padding: 3rem 0;
  margin-top: 3rem;
  margin-bottom: 3rem;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.section-light .presence-stats {
  border-top-color: var(--color-border-dark);
  border-bottom-color: var(--color-border-dark);
}

.presence-stat {
  text-align: center;
}

.presence-stat-number {
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--color-gold);
  display: block;
  line-height: 1;
}

.presence-stat-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-top: 0.5rem;
  display: block;
}

.section-dark .presence-stat-label { color: var(--color-text-muted); }
.section-light .presence-stat-label { color: var(--color-text-body); }

.presence-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.presence-card {
  padding: 2.5rem 2rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(46, 125, 50, 0.2);
  border-radius: 4px;
  transition: border-color var(--transition), transform var(--transition), background var(--transition);
  opacity: 0;
  transform: translateY(30px);
}

.presence-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.presence-card:hover {
  border-color: var(--color-gold);
  transform: translateY(-4px);
  background: rgba(46, 125, 50, 0.06);
}

.presence-card h4 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 400;
  margin-bottom: 0.75rem;
  color: var(--color-text-light);
}

.presence-card p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.presence-closing {
  font-size: 1rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  max-width: 800px;
  font-style: italic;
}

/* --- Careers Page --- */
.careers-hero {
  background: var(--color-bg-dark);
  padding: 8rem 0 4rem;
  text-align: center;
}

.careers-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  color: var(--color-text-light);
  margin-bottom: 0.5rem;
}

.careers-hero p {
  color: var(--color-text-muted);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}

.careers-filter {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 1rem;
}

.careers-filter label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  white-space: nowrap;
}

.careers-filter select,
.careers-filter input[type="text"] {
  padding: 0.6rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--color-border);
  border-radius: 2px;
  color: var(--color-text-light);
  font-family: var(--font-body);
  font-size: 0.85rem;
  min-width: 180px;
}

.careers-filter input[type="text"]::placeholder {
  color: var(--color-text-muted);
}

.careers-filter select {
  appearance: none;
  cursor: pointer;
}

.careers-filter select option {
  background: var(--color-bg-dark);
}

.careers-filter select:focus,
.careers-filter input[type="text"]:focus {
  border-color: var(--color-gold);
  outline: none;
}

.job-table {
  width: 100%;
  border-collapse: collapse;
}

.job-table thead th {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-text-muted);
  text-align: left;
  padding: 1rem 1rem 1rem 0;
  border-bottom: 1px solid var(--color-border);
}

.job-table tbody tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background var(--transition);
  cursor: pointer;
}

.job-table tbody tr:hover {
  background: rgba(46, 125, 50, 0.06);
}

.job-table td {
  padding: 1.2rem 1rem 1.2rem 0;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.job-table td:first-child {
  color: var(--color-text-light);
  font-weight: 500;
}

.job-table .view-details {
  color: var(--color-gold);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  cursor: pointer;
  background: none;
  border: none;
  font-family: var(--font-body);
  transition: color var(--transition);
}

.job-table .view-details:hover {
  color: var(--color-gold-light);
}

.hire-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: 100px;
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.job-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.job-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.job-modal {
  background: var(--color-bg-accent);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  max-width: 640px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  padding: 2.5rem;
  position: relative;
  transform: translateY(20px);
  transition: transform var(--transition);
}

.job-modal-overlay.active .job-modal {
  transform: translateY(0);
}

.job-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--color-text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  transition: color var(--transition);
}

.job-modal-close:hover {
  color: var(--color-text-light);
}

.job-modal h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 1rem;
  color: var(--color-text-light);
  padding-right: 2rem;
}

.job-modal-meta {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.job-modal-body {
  color: var(--color-text-muted);
  font-size: 0.92rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.job-modal-body h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--color-text-light);
  margin: 1.5rem 0 0.75rem;
}

.job-modal-body h3:first-child {
  margin-top: 0;
}

.job-modal-body ul {
  padding-left: 1.2rem;
  margin-bottom: 1rem;
}

.job-modal-body li {
  margin-bottom: 0.4rem;
}

.no-jobs {
  text-align: center;
  padding: 3rem 0;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .sc-grid,
  .staffing-layout,
  .about-layout,
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .staffing-stats {
    flex-direction: row;
    padding-left: 0;
    border-left: none;
    border-top: 1px solid var(--color-border);
    padding-top: 2rem;
  }

  .capability-grid {
    grid-template-columns: 1fr;
  }

  .value-grid {
    grid-template-columns: 1fr;
  }

  .presence-grid {
    grid-template-columns: 1fr;
  }

  .presence-stats {
    gap: 2.5rem;
  }

  .ai-grid {
    grid-template-columns: 1fr;
  }

  .footer-top {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

@media (max-width: 600px) {
  .site-header {
    padding: 1rem 1.5rem;
  }

  .section {
    padding: 4rem 0;
  }

  .section-container {
    padding: 0 1.5rem;
  }

  .hero-video {
    object-fit: cover;
    object-position: center center;
  }

  .hero-bottom {
    padding: 1.5rem;
  }

  .hero-headline {
    font-size: 1.8rem;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .offices-grid {
    grid-template-columns: 1fr;
  }

  .staffing-stats {
    flex-direction: column;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .footer-legal {
    justify-content: center;
  }

  .footer-social {
    justify-content: center;
  }

  .careers-filter {
    flex-direction: column;
    align-items: flex-start;
  }

  .job-table thead {
    display: none;
  }

  .job-table tbody tr {
    display: flex;
    flex-direction: column;
    padding: 1rem 0;
  }

  .job-table td {
    padding: 0.3rem 0;
  }
}

/* --- Animations --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-headline {
  animation: fadeInUp 1s ease 0.3s both;
}

.hero-cta {
  animation: fadeInUp 1s ease 0.6s both;
}

/* Smooth section entry */
.section-label,
.section-title,
.section-intro,
.ai-headline,
.ai-intro {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.section.in-view .section-label,
.section.in-view .section-title,
.section.in-view .section-intro,
.section.in-view .ai-headline,
.section.in-view .ai-intro {
  opacity: 1;
  transform: translateY(0);
}

.section.in-view .section-label { transition-delay: 0.1s; }
.section.in-view .section-title { transition-delay: 0.2s; }
.section.in-view .section-intro { transition-delay: 0.3s; }

/* --- Legal / Policy Pages --- */
.legal-hero {
  background: var(--color-bg-dark);
  padding: 8rem 0 4rem;
  text-align: center;
}

.legal-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  color: var(--color-text-light);
  margin-bottom: 0.5rem;
}

.legal-hero p {
  color: var(--color-text-muted);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}

.legal-content {
  max-width: 800px;
  margin: 0 auto;
}

.legal-content h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--color-text-light);
  margin: 2.5rem 0 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--color-border);
}

.legal-content h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--color-text-light);
  margin: 2rem 0 0.75rem;
}

.legal-content p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.legal-content ul {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.legal-content li {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: 0.4rem;
}

.legal-content a {
  color: var(--color-gold);
  transition: color var(--transition);
}

.legal-content a:hover {
  color: var(--color-gold-light);
}

.legal-note {
  margin-top: 3rem;
  padding: 1.5rem 2rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(46, 125, 50, 0.2);
  border-radius: 4px;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ============================================
   Cookie Consent Banner
   ============================================ */

.cookie-banner {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  max-width: 340px;
  background: #1a1a1a;
  border: 1px solid rgba(46, 125, 50, 0.4);
  border-radius: 6px;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translateY(1rem);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.cookie-banner.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.cookie-banner-content p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin: 0 0 1rem;
}

.cookie-banner-content p a {
  color: var(--color-gold);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-actions {
  display: flex;
  gap: 0.5rem;
  width: 100%;
  align-items: stretch;
}

.cookie-accept,
.cookie-reject {
  flex: 1;
  padding: 0.6rem 1rem;
  border: none;
  border-radius: 4px;
  font-size: 0.85rem;
  font-family: var(--font-body);
  font-weight: 500;
  cursor: pointer;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: background var(--transition), color var(--transition);
}

.cookie-accept {
  background: var(--color-green);
  color: #fff;
}

.cookie-accept:hover {
  background: #1b5e20;
}

.cookie-reject {
  background: transparent;
  color: var(--color-text-muted);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.cookie-reject:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

@media (max-width: 480px) {
  .cookie-banner {
    bottom: 0;
    right: 0;
    left: 0;
    max-width: 100%;
    border-radius: 6px 6px 0 0;
    border-left: none;
    border-right: none;
    border-bottom: none;
  }
}

/* ============================================
   Cookie Preferences Panel (cookie.html)
   ============================================ */

.cookie-prefs {
  max-width: 680px;
}

.cookie-prefs > h2 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--color-text);
  margin-bottom: 0.75rem;
}

.cookie-prefs > p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.cookie-pref-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.cookie-pref-info h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.35rem;
}

.cookie-pref-info p {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin: 0;
}

.always-on-label {
  font-size: 0.75rem;
  color: var(--color-green);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
  padding-top: 0.2rem;
}

/* Toggle switch */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: #555;
  border-radius: 24px;
  transition: background 0.25s ease;
}

.toggle-slider::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.25s ease;
}

.toggle-switch input:checked + .toggle-slider {
  background: var(--color-green);
}

.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(20px);
}

.pref-save-btn {
  margin-top: 2rem;
  padding: 0.75rem 2rem;
  background: var(--color-green);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 0.9rem;
  font-family: var(--font-body);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--transition);
}

.pref-save-btn:hover {
  background: #1b5e20;
}

.pref-saved-msg {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--color-green);
}

@media (max-width: 600px) {
  .cookie-pref-item {
    flex-direction: column;
    gap: 1rem;
  }
}
