/* ═══════════════════════════════════════════
   AXG TECHINVENT — STYLESHEET
   Executive · Minimalist · High-End Consultancy
═══════════════════════════════════════════ */

/* ── CUSTOM PROPERTIES ─────────────────── */
:root {
  --navy:        #1A2238;
  --navy-deep:   #0f1621;
  --navy-mid:    #243050;
  --charcoal:    #2D2D2D;
  --charcoal-lt: #4a4a4a;
  --gold:        #C5A059;
  --gold-light:  #d4b577;
  --gold-dark:   #a6843e;
  --white:       #FFFFFF;
  --off-white:   #F8F6F2;
  --cream:       #F2EDE4;
  --grey-200:    #e2ddd6;
  --grey-400:    #9a9590;
  --grey-600:    #6b6660;

  --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body:    'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  --container:   1180px;
  --gutter:      clamp(1.25rem, 4vw, 2.5rem);

  --radius-xs: 2px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-circle: 50%;

  /* Color refinements: Adding a lighter blue derived from the logo for validation hints */
  --blue-accent: #4A90D9; /* Derivable from logo AXG */
  --green-valid: #4CAF50;
  --red-invalid: #D32F2F;

  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);

  --transition:  0.35s var(--ease-out);
}

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

html { 
  scroll-behavior: smooth; 
  font-size: 16px; 
  -webkit-text-size-adjust: 100%; 
  scrollbar-gutter: stable;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--charcoal);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
ul, ol { list-style: none; }
input, textarea, select { font: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
em { font-style: italic; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Professional Focus States (Crucial for accessibility) */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  box-shadow: 0 0 0 4px rgba(197, 160, 89, 0.25);
}

/* ── BUTTONS ────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 2.2rem;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

.btn--gold {
  background: var(--gold);
  color: var(--navy-deep);
  border: 1.5px solid var(--gold);
}
.btn--gold:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(197,160,89,0.25);
}

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

.btn--full { width: 100%; }
.btn--small { padding: 0.6rem 1.5rem; font-size: 0.75rem; }

/* ── SECTION HEADERS ────────────────────── */
.section-header { text-align: center; margin-bottom: clamp(2.5rem, 5vw, 4rem); }

.section-label {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--navy);
  margin-bottom: 1.25rem;
}
.section-title--light { color: var(--white); }

.section-rule {
  width: 48px;
  height: 1.5px;
  background: var(--grey-200);
  margin-inline: auto;
}
.section-rule--gold { background: var(--gold); opacity: 0.6; }

/* ══════════════════════════════════════════
   NAVIGATION
══════════════════════════════════════════ */
.nav-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1.25rem var(--gutter);
  transition: all 0.4s ease;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 1px rgba(26,34,56,0.03);
}
.nav-header.scrolled {
  padding: 0.8rem var(--gutter);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 2px 8px rgba(26,34,56,0.06);
}
.nav-inner {
  max-width: var(--container);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
}
.nav-header.scrolled .nav-logo { color: var(--navy); }
.logo-axg { color: var(--gold); font-weight: 500; }
.logo-separator { display: inline-block; width: 0.5ch; }
.logo-tech { color: inherit; opacity: 0.9; }

.nav-header.scrolled .nav-logo { 
  /* Branded color in image handles the logic */
}

.nav-links { gap: 2.5rem; }

.nav-link {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--charcoal-lt);
  transition: color var(--transition);
  position: relative;
}
.nav-header.scrolled .nav-link { color: var(--charcoal); }
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.3s ease;
}
.nav-link:hover::after { width: 100%; }
.nav-link:hover { color: var(--navy); }
.nav-header.scrolled .nav-link:hover { color: var(--navy-deep); }

.nav-link:focus-visible {
  outline-offset: 1px;
}

.nav-link--cta {
  padding: 0.6rem 1.4rem;
  border: 1.5px solid var(--navy);
  border-radius: var(--radius-sm);
  color: var(--navy) !important;
  font-weight: 600;
}
.nav-header.scrolled .nav-link--cta { 
  border-color: var(--navy-deep); 
  color: var(--navy-deep) !important;
 }
.nav-link--cta:hover { 
  background: var(--navy); 
  color: var(--white) !important;
}
.nav-header.scrolled .nav-link--cta:hover { 
  background: var(--navy-deep); 
  color: var(--white) !important;
 }
.nav-link--cta::after { display: none; }

.nav-hamburger { display: none; flex-direction: column; gap: 5px; padding: 4px; }
.nav-hamburger span { display: block; width: 22px; height: 1.5px; background: var(--navy); transition: var(--transition); }
.nav-header.scrolled .nav-hamburger span { background: var(--navy-deep); }

.nav-mobile-overlay {
  position: fixed; inset: 0; z-index: 999;
  background: var(--navy-deep);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.4s ease;
}
.nav-mobile-overlay.open { opacity: 1; pointer-events: all; }
.nav-mobile-links { display: flex; flex-direction: column; align-items: center; gap: 2.5rem; }
.nav-mobile-link {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--white);
  letter-spacing: 0.05em;
  transition: color 0.2s;
}
.nav-mobile-link:hover { color: var(--gold); }

/* ══════════════════════════════════════════
   HERO
══════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding-top: 5rem;
}
@media (min-width: 900px) {
  .hero { padding-top: 6rem; }
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-image-placeholder { width: 100%; height: 100%; position: relative; }
.hero-bg-pattern { width: 100%; height: 100%; object-fit: cover; }
.hero-image-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(26,34,56,0.85) 0%, rgba(15,22,33,0.7) 60%, rgba(26,34,56,0.6) 100%);
  z-index: 1;
}
.hero::before {
  content: '';
  position: absolute; inset: 0; z-index: 2;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  background-size: 200px;
  pointer-events: none; opacity: 0.5;
}
.hero-content {
  position: relative; z-index: 10;
  max-width: 680px;
  padding-inline: var(--gutter);
  text-align: center;
  animation: heroFadeIn 1.2s var(--ease-out) both;
}
@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-eyebrow {
  font-family: var(--font-body);
  font-size: 0.6875rem; font-weight: 400;
  letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1.5rem;
  animation: heroFadeIn 1.2s var(--ease-out) 0.15s both;
}
.hero-headline {
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 300; color: var(--white);
  line-height: 1.05; margin-bottom: 1.75rem;
  animation: heroFadeIn 1.2s var(--ease-out) 0.25s both;
}
.hero-headline em { color: var(--gold); font-style: italic; }
.hero-headline-sub {
  display: block;
  font-size: clamp(1.5rem, 3.5vw, 2.8rem);
  color: rgba(255,255,255,0.55);
  font-weight: 300; margin-top: 0.4rem;
}
.hero-subline {
  font-size: 1.0625rem; color: rgba(255,255,255,0.7);
  max-width: 520px; margin: 0 auto 2.5rem;
  line-height: 1.8;
  animation: heroFadeIn 1.2s var(--ease-out) 0.35s both;
}
.hero-actions {
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center;
  animation: heroFadeIn 1.2s var(--ease-out) 0.45s both;
}
.hero-actions .btn--ghost { color: var(--white); border-color: rgba(255,255,255,0.4); }
.hero-actions .btn--ghost:hover { background: rgba(255,255,255,0.1); border-color: var(--white); color: var(--white); }
.hero-actions .btn--ghost:active { background: rgba(255,255,255,0.15); }

.hero-scroll-indicator {
  position: absolute; bottom: 2.5rem; left: 50%; transform: translateX(-50%);
  z-index: 10; display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
  font-family: var(--font-body); font-size: 0.625rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: rgba(255,255,255,0.4);
  animation: heroFadeIn 1.2s var(--ease-out) 1s both;
}
.hero-scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, rgba(197,160,89,0.7), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%,100% { transform: scaleY(1); opacity: 1; }
  50%     { transform: scaleY(0.6); opacity: 0.4; }
}

/* ══════════════════════════════════════════
   ABOUT TEASER
══════════════════════════════════════════ */
.about-teaser {
  padding: clamp(4rem,10vw,8rem) 0;
  background: var(--off-white);
}
.about-teaser .container {
  display: grid; grid-template-columns: 1fr; gap: 4rem;
}
@media (min-width: 900px) {
  .about-teaser .container { grid-template-columns: 1.4fr 1fr; align-items: center; }
}
.about-teaser-label {
  font-family: var(--font-body); font-size: 0.6875rem;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1.25rem;
}
.about-teaser-headline {
  font-size: clamp(2rem,4vw,3rem); color: var(--navy);
  margin-bottom: 1.75rem; line-height: 1.2;
}
.about-teaser-body {
  font-size: 1rem; color: var(--charcoal-lt);
  margin-bottom: 1rem; max-width: 500px; line-height: 1.8;
}
.about-teaser-body + .btn { margin-top: 1rem; }
.about-teaser-visual {
  display: flex; flex-direction: column;
  border: 1px solid var(--grey-200); border-radius: var(--radius-md);
  overflow: hidden; background: var(--white);
}
.about-teaser-stat { padding: 1.75rem 2rem; display: flex; flex-direction: column; gap: 0.3rem; }
.stat-number {
  font-family: var(--font-display); font-size: 2.8rem;
  font-weight: 300; color: var(--navy); line-height: 1;
}
.stat-number em { color: var(--gold); font-style: normal; font-size: 2rem; }
.stat-label { font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--grey-600); }
.about-teaser-divider { height: 1px; background: var(--grey-200); margin-inline: 2rem; }

/* ══════════════════════════════════════════
   SERVICES
══════════════════════════════════════════ */
.services { padding: clamp(4rem,10vw,8rem) 0; background: var(--white); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%,260px),1fr));
  gap: 1.5px; background: var(--grey-200);
  border: 1.5px solid var(--grey-200); border-radius: var(--radius-md); overflow: hidden;
}
.service-card {
  background: var(--white); padding: 2.5rem 2rem;
  transition: background 0.3s ease;
}
.service-card:hover { background: var(--navy); }
.service-card:hover .service-card-number,
.service-card:hover .service-card-title,
.service-card:hover .service-card-body { color: var(--white); }
.service-card:hover .service-card-icon { color: var(--gold); }

.service-card-number {
  font-family: var(--font-display); font-size: 0.875rem;
  color: var(--gold); letter-spacing: 0.1em; margin-bottom: 1.25rem;
  transition: color 0.3s ease;
}
.service-card-icon {
  width: 44px; height: 44px; margin-bottom: 1.25rem;
  color: var(--navy); transition: color 0.3s ease;
}
.service-card-icon svg { width: 100%; height: 100%; color: inherit; }
.service-card-title { font-size: 1.25rem; color: var(--navy); margin-bottom: 0.75rem; transition: color 0.3s ease; }
.service-card-body { font-size: 0.9rem; color: var(--charcoal-lt); line-height: 1.75; transition: color 0.3s ease; }

/* ══════════════════════════════════════════
   PROCESS TIMELINE
══════════════════════════════════════════ */
.process {
  padding: clamp(4rem,10vw,8rem) 0;
  background: var(--navy); position: relative; overflow: hidden;
}
.process::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 80% 50%, rgba(197,160,89,0.04) 0%, transparent 60%);
  pointer-events: none;
}
.timeline { position: relative; display: grid; grid-template-columns: 1fr; gap: 3rem; }
@media (min-width: 800px) {
  .timeline { grid-template-columns: repeat(3,1fr); gap: 0; }
  .timeline-connector {
    position: absolute; top: 28px;
    left: calc(16.66% + 24px); right: calc(16.66% + 24px);
    height: 1px;
    background: linear-gradient(to right, var(--gold) 0%, rgba(197,160,89,0.3) 50%, var(--gold) 100%);
    opacity: 0.3; z-index: 0;
  }
}
.timeline-step {
  position: relative; z-index: 1;
  display: flex; flex-direction: column;
  align-items: flex-start; gap: 1.25rem;
  padding: 0 2rem;
}
@media (min-width: 800px) {
  .timeline-step { align-items: center; text-align: center; padding: 0 1.5rem; }
}
.timeline-node {
  width: 56px; height: 56px; border-radius: 50%;
  border: 1.5px solid rgba(197,160,89,0.4);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); background: rgba(197,160,89,0.05);
  flex-shrink: 0; transition: var(--transition);
}
.timeline-step:hover .timeline-node { background: rgba(197,160,89,0.12); border-color: var(--gold); }
.timeline-icon { width: 26px; height: 26px; }
.timeline-step-label {
  font-family: var(--font-body); font-size: 0.625rem;
  letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--gold); opacity: 0.8; margin-bottom: 0.25rem;
}
.timeline-title { font-size: 1.4rem; color: var(--white); margin-bottom: 0.75rem; }
.timeline-body { font-size: 0.9rem; color: rgba(255,255,255,0.5); line-height: 1.8; }

/* ══════════════════════════════════════════
   EXPERTISE GRID
══════════════════════════════════════════ */
.expertise { padding: clamp(4rem,10vw,8rem) 0; background: var(--off-white); }
.expertise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%,200px),1fr));
  gap: 1.25rem;
}
.expertise-card {
  background: var(--white); border: 1px solid var(--grey-200);
  border-radius: var(--radius-md); padding: 2rem 1.75rem;
  position: relative; overflow: hidden;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), border-color 0.3s ease;
}
.expertise-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(26,34,56,0.08);
  border-color: var(--gold);
}
.expertise-card--featured { background: var(--navy); border-color: var(--navy); }
.expertise-card--featured .expertise-title { color: var(--white); }
.expertise-card--featured .expertise-body { color: rgba(255,255,255,0.55); }
.expertise-card--featured .expertise-icon { color: var(--gold); }

.expertise-card-accent {
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(to right, var(--gold), transparent);
  opacity: 0; transition: opacity 0.3s ease;
}
.expertise-card:hover .expertise-card-accent { opacity: 1; }
.expertise-card--featured .expertise-card-accent { opacity: 0.5; }

.expertise-icon { width: 36px; height: 36px; color: var(--navy); margin-bottom: 1.25rem; }
.expertise-icon svg { width: 100%; height: 100%; color: inherit; }
.expertise-title { font-size: 1.1rem; color: var(--navy); margin-bottom: 0.6rem; }
.expertise-body { font-size: 0.85rem; color: var(--grey-600); line-height: 1.7; }

/* ══════════════════════════════════════════
   ABOUT FULL
══════════════════════════════════════════ */
.about-full {
  padding: clamp(4rem,10vw,8rem) 0;
  background: var(--navy-deep); position: relative;
}
.about-full::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 20% 80%, rgba(197,160,89,0.04) 0%, transparent 60%);
  pointer-events: none;
}
.about-grid { display: grid; grid-template-columns: 1fr; gap: 3.5rem; }
@media (min-width: 900px) {
  .about-grid { grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start; }
}
.about-text p { font-size: 1rem; color: rgba(255,255,255,0.6); line-height: 1.9; margin-bottom: 1.25rem; }
.about-text p:last-child { margin-bottom: 0; }
.about-values { display: flex; flex-direction: column; gap: 2rem; }
.value-item { display: flex; gap: 1.25rem; align-items: flex-start; }
.value-marker { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); margin-top: 0.45rem; flex-shrink: 0; opacity: 0.8; }
.value-title { font-size: 1rem; font-family: var(--font-display); color: var(--white); margin-bottom: 0.4rem; font-weight: 400; }
.value-body { font-size: 0.875rem; color: rgba(255,255,255,0.5); line-height: 1.75; }

/* ══════════════════════════════════════════
   FAQ
══════════════════════════════════════════ */
.faq { padding: clamp(4rem,10vw,8rem) 0; background: var(--white); }
.faq-list { max-width: 780px; margin-inline: auto; border-top: 1px solid var(--grey-200); }
.faq-item { border-bottom: 1px solid var(--grey-200); }
.faq-question {
  width: 100%; display: flex; align-items: center;
  justify-content: space-between; padding: 1.5rem 0; gap: 1rem;
  text-align: left; cursor: pointer; transition: color 0.2s ease;
}
.faq-question span:first-child {
  font-family: var(--font-display); font-size: 1.1rem; font-weight: 400;
  color: var(--navy); transition: color 0.2s ease;
}
.faq-question:hover span:first-child { color: var(--gold-dark); }

.faq-icon {
  width: 20px; height: 20px; flex-shrink: 0;
  border: 1px solid var(--grey-400); border-radius: 50%; position: relative;
  transition: border-color 0.2s, background 0.2s, transform 0.4s var(--ease-out);
}
.faq-icon::before, .faq-icon::after {
  content: ''; position: absolute; top: 50%; left: 50%; background: var(--charcoal);
  transition: opacity 0.3s, transform 0.3s, background 0.2s;
}
.faq-icon::before { width: 8px; height: 1px; transform: translate(-50%,-50%); }
.faq-icon::after { width: 1px; height: 8px; transform: translate(-50%,-50%); }

.faq-question[aria-expanded="true"] .faq-icon {
  background: var(--navy); border-color: var(--navy); transform: rotate(45deg);
}
.faq-question[aria-expanded="true"] .faq-icon::before,
.faq-question[aria-expanded="true"] .faq-icon::after { background: var(--white); }

.faq-answer { overflow: hidden; max-height: 0; transition: max-height 0.45s var(--ease-out); }
.faq-answer.open { max-height: 400px; }
.faq-answer p { padding-bottom: 1.5rem; font-size: 0.9375rem; color: var(--charcoal-lt); line-height: 1.8; }

/* ══════════════════════════════════════════
   REFINEMENTS ACROSS ALL CARDS (Smooth borders)
══════════════════════════════════════════ */
.service-card, .timeline-node, .expertise-card, .faq-list, .contact-wrapper, .popup {
  border-color: var(--grey-200) !important; /* Soften all borders */
  transition: all 0.4s var(--ease-out);
}

.service-card:hover, .expertise-card:hover {
  border-color: var(--grey-400) !important;
  transform: translateY(-2px);
}

/* ══════════════════════════════════════════
   CONTACT FORM STYLING
══════════════════════════════════════════ */
.contact {
  padding: clamp(4rem, 10vw, 8rem) 0;
  background: var(--navy);
}

.contact-wrapper {
  max-width: 800px;
  margin: 0 auto;
  background: var(--off-white);
  padding: clamp(2rem, 5vw, 4rem);
  border-radius: var(--radius-md);
  border: 1px solid var(--grey-200);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 600px) {
  .form-grid { grid-template-columns: 1fr; }
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--navy-mid);
  margin-bottom: 0.6rem;
}

.form-input {
  width: 100%;
  padding: 1rem 1.25rem;
  background: var(--white);
  border: 1.5px solid var(--grey-200);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--charcoal);
  transition: all 0.3s var(--ease-out);
}

/* Adding validation hint logic */
.form-input:valid {
  border-color: var(--grey-200); /* Keep it soft by default, standard valid behavior */
}

.form-input:valid:focus {
  border-color: var(--gold); /* Still gold focus, not green. Keep valid state subtle. */
}

/* Pro Polish: Hinting at expected number format dynamically for specific fields */
.form-input:valid + label:not(.hidden) {
  /* You could use pseudo elements here but it's cleaner just to have consistent borders */
}

/* Validation styling on form submission if using native validation */
.form-input:invalid:not(:placeholder-shown) {
  border-color: var(--red-invalid);
}

.form-input::placeholder {
  color: var(--grey-400);
}

.form-input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(197, 160, 89, 0.1);

  /* Custom placeholder for file input hint */
.file-upload-wrapper::after {
  content: 'Attach resume in standard formats.';
  position: absolute;
  top: calc(100% + 5px);
  left: 0.75rem;
  font-family: var(--font-body);
  font-size: 0.65rem;
  color: var(--grey-400);
  opacity: 0.8;
}
}

/* Role Selector (Toggle Style) */
.role-selector {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.role-option {
  flex: 1;
  cursor: pointer;
}

.role-option input {
  display: none;
}

.role-option span {
  display: block;
  padding: 0.85rem;
  text-align: center;
  background: var(--white);
  border: 1.5px solid var(--grey-200);
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
  color: var(--grey-600);
}

.role-option input:checked + span {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
  font-weight: 500;
}

/* File Input Styling */
.file-upload-wrapper {
  position: relative;
}

.file-input {
  padding: 0.8rem;
  font-size: 0.85rem;
  background: var(--white);
  border: 1.5px dashed var(--grey-200);
  width: 100%;
  cursor: pointer;
}

.file-input:hover {
  border-color: var(--gold);
}

.form-actions {
  margin-top: 2.5rem;
}

#cv-upload-group.hidden {
  display: none;
}

/* ══════════════════════════════════════════
   FOOTER
══════════════════════════════════════════ */
.footer {
  background: var(--navy-deep);
  border-top-color: rgba(255,255,255,0.03);
  padding: 3rem var(--gutter);
}
.footer-logo {
  display: block;
}
.footer-inner {
  max-width: var(--container); margin-inline: auto;
  display: flex; flex-direction: column; align-items: center; gap: 1.5rem; text-align: center;
}
@media (min-width: 700px) {
  .footer-inner { flex-direction: row; justify-content: space-between; text-align: left; }
}
.footer-brand .logo-axg { color: var(--gold); }
.footer-brand .logo-tech { color: rgba(255,255,255,0.6); }
.footer-tagline { color: rgba(255,255,255,0.2); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; justify-content: center; }
.footer-link { color: rgba(255,255,255,0.4); }
.footer-link:hover { color: var(--gold); }
.footer-copy { color: rgba(255,255,255,0.2); }

/* ══════════════════════════════════════════
   POPUP
══════════════════════════════════════════ */
.popup-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(10,14,22,0.8); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center; padding: var(--gutter);
  animation: fadeIn 0.3s ease both;
}
.popup-overlay:focus {
  outline: none;
}
.popup-overlay[hidden] { display: none; }
.popup {
  background: var(--white); border-radius: var(--radius-md);
  padding: 3rem 2.5rem; max-width: 420px; width: 100%; text-align: center;
  animation: popupIn 0.5s var(--ease-out) both;
}
@keyframes popupIn {
  from { opacity: 0; transform: scale(0.92) translateY(20px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.popup-icon {
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--gold); color: var(--white); font-size: 1.5rem;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 1.5rem;
}
.popup-title { font-size: 1.8rem; color: var(--navy); margin-bottom: 0.75rem; }
.popup-body { font-size: 0.9375rem; color: var(--charcoal-lt); line-height: 1.7; margin-bottom: 2rem; }

/* ══════════════════════════════════════════
   SCROLL ANIMATIONS
══════════════════════════════════════════ */
[data-reveal] {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
[data-reveal].revealed { opacity: 1; transform: translateY(0); }
[data-reveal-delay="1"] { transition-delay: 0.1s; }
[data-reveal-delay="2"] { transition-delay: 0.2s; }
[data-reveal-delay="3"] { transition-delay: 0.3s; }
[data-reveal-delay="4"] { transition-delay: 0.4s; }

/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */
@media (max-width: 700px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .services-grid { grid-template-columns: 1fr; gap: 0; }
  .service-card { padding: 2rem 1.5rem; }
  .timeline-step { padding: 0; flex-direction: row; gap: 1.5rem; }
  .timeline-content { text-align: left; }
  .expertise-grid { grid-template-columns: 1fr 1fr; }
  .about-teaser-visual { display: none; }
}
@media (max-width: 420px) {
  .expertise-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: center; }
}

/* ══════════════════════════════════════════
   ACCESSIBILITY: PREFERS REDUCED MOTION
══════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ── COOKIE BANNER ──────────────────────── */
.cookie-banner {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(150%); /* Start off-screen */
  width: 90%;
  max-width: 650px;
  background: #1a2238; /* Matches your hero gradient */
  border: 1px solid #C5A059; /* Your gold accent */
  padding: 2rem;
  z-index: 10000;
  transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  border-radius: 4px;
}

.cookie-banner.show {
  transform: translateX(-50%) translateY(0);
}

.cookie-content p {
  color: #fff;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  font-family: "DM Sans", sans-serif;
}

.cookie-content strong {
  color: #C5A059;
}

.cookie-content a {
  color: #C5A059;
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  gap: 1rem;
}

/* Ensure buttons look consistent inside the banner */
.cookie-actions .btn--small {
  padding: 0.6rem 1.2rem;
  font-size: 0.85rem;
}

/* ── COOKIE PREFERENCE BOX ──────────────── */
.cookie-preferences-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(197, 160, 89, 0.2);
  padding: 2rem;
  margin: 2rem 0;
  border-radius: 4px;
}

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

.pref-item:last-of-type {
  border-bottom: none;
}

.pref-info strong {
  display: block;
  color: #C5A059;
  margin-bottom: 0.25rem;
}

.pref-info span {
  font-size: 0.85rem;
  opacity: 0.7;
}

/* ── CUSTOM TOGGLE SWITCH ────────────────── */
.switch {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 24px;
}

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

.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #333;
  transition: .4s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #C5A059;
}

input:checked + .slider:before {
  transform: translateX(22px);
}

input:disabled + .slider {
  background-color: #555;
  cursor: not-allowed;
}




/* LEGAL
*/
.legal-container {
  padding-top: 120px;
  padding-bottom: 80px;
  background: var(--white);
}

.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.legal-content h1 {
  font-size: 2.5rem;
  color: var(--navy);
  margin: 1rem 0;
}

.last-updated {
  font-size: 0.85rem;
  color: var(--grey-400);
  margin-bottom: 3rem;
  font-style: italic;
}

.legal-text h3 {
  color: var(--navy-mid);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.legal-text p, .legal-text li {
  color: var(--charcoal);
  line-height: 1.8;
  margin-bottom: 1rem;
}

/* --- Global Logo Sizing --- */
.nav-logo img {
  height: 50px; /* Adjust this number (e.g., 40px or 45px) to make it even smaller */
  width: auto;
  transition: transform var(--transition);
}


/* ══════════════════════════════════════════
   EFFECTS — effects.js companion styles
══════════════════════════════════════════ */

/* ── 1. CUSTOM CURSOR ─────────────────── */
.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  border-radius: 50%;
  will-change: transform;
  transition: opacity 0.3s ease;
}

.cursor-dot {
  width: 6px;
  height: 6px;
  background: var(--gold);
}

.cursor-ring {
  width: 36px;
  height: 36px;
  border: 1.5px solid rgba(197,160,89,0.55);
  background: transparent;
}

.cursor-dot.cursor-hover {
  width: 10px;
  height: 10px;
  background: var(--gold);
}

.cursor-ring.cursor-hover {
  width: 52px;
  height: 52px;
  border-color: rgba(197,160,89,0.35);
  background: rgba(197,160,89,0.04);
}

@media (hover: none) {
  .cursor-dot, .cursor-ring { display: none; }
}

/* ── 2. HERO PARTICLE CANVAS ──────────── */
.hero-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 3; /* above overlay, below content */
  pointer-events: none;
}

/* ── 3. SECTION RULE DRAW-IN ──────────── */
.section-rule {
  width: 0;
  transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.section-rule.rule-drawn {
  width: 48px;
}

/* ── 4. HEADING SHIMMER ───────────────── */
.section-title,
.hero-headline,
.about-teaser-headline {
  background-image: linear-gradient(
    105deg,
    currentColor 0%,
    currentColor 40%,
    rgba(197,160,89,0.85) 50%,
    currentColor 60%,
    currentColor 100%
  );
  background-size: 250% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-fill-color: transparent;
}

/* Hero headline and about teaser use white text — keep those colors */
.hero-headline {
  background-image: linear-gradient(
    105deg,
    rgba(255,255,255,1) 0%,
    rgba(255,255,255,1) 38%,
    rgba(197,160,89,0.95) 50%,
    rgba(255,255,255,1) 62%,
    rgba(255,255,255,1) 100%
  );
}

.hero-headline em {
  background-image: none;
  -webkit-text-fill-color: var(--gold);
  text-fill-color: var(--gold);
}

.hero-headline-sub {
  background-image: none;
  -webkit-text-fill-color: rgba(255,255,255,0.55);
  text-fill-color: rgba(255,255,255,0.55);
}

.shimmer-active {
  background-position: 0% 0;
  transition: background-position 0.9s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Ensure section titles on dark bg stay readable */
.section-title--light {
  background-image: linear-gradient(
    105deg,
    rgba(255,255,255,1) 0%,
    rgba(255,255,255,1) 38%,
    rgba(197,160,89,0.9) 50%,
    rgba(255,255,255,1) 62%,
    rgba(255,255,255,1) 100%
  );
}

/* ── 5. TILT CARD ─────────────────────── */
.tilt-card {
  transform-style: preserve-3d;
  will-change: transform;
}

.tilt-shine {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 2;
  transition: background 0.1s ease;
}

/* ── 6. SERVICE CARD SPOTLIGHT ────────── */
.service-card {
  --mouse-x: 50%;
  --mouse-y: 50%;
}

.service-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    200px circle at var(--mouse-x) var(--mouse-y),
    rgba(197,160,89,0.07),
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  border-radius: inherit;
  z-index: 0;
}

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

.service-card > * {
  position: relative;
  z-index: 1;
}

/* ── 7. TIMELINE STEP REVEAL ──────────── */
.timeline-step {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.timeline-step.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ── 8. FAQ ITEM STAGGER ──────────────── */
.faq-item {
  opacity: 0;
  transform: translateX(-12px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}

.faq-item.faq-revealed {
  opacity: 1;
  transform: translateX(0);
}

/* ── 9. MAGNETIC BUTTON — preserve original hover states ── */
.magnetic-btn {
  will-change: transform;
}

/* Ensure gold btn hover still works */
.btn--gold.magnetic-btn:hover {
  box-shadow: 0 8px 28px rgba(197,160,89,0.3);
}

/* ── 10. COUNTER NUMBER PULSE ─────────── */
.stat-number .count-val {
  display: inline;
}

@keyframes countPop {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.08); }
  100% { transform: scale(1); }
}

.stat-number[data-count] {
  display: inline-flex;
  align-items: baseline;
}

/* ── REDUCED MOTION OVERRIDES ─────────── */
@media (prefers-reduced-motion: reduce) {
  .cursor-dot, .cursor-ring { display: none !important; }
  .section-rule { width: 48px; transition: none; }
  .shimmer-active { transition: none; }
  .tilt-card { transform: none !important; }
  .timeline-step { opacity: 1; transform: none; }
  .faq-item { opacity: 1; transform: none; }
  .section-title, .hero-headline, .about-teaser-headline, .section-title--light {
    background-image: none;
    -webkit-text-fill-color: unset;
    text-fill-color: unset;
  }
}


