/* ============================================================
   AGS Homepage — Premium Corporate Redesign
   Section 1: Header  |  Section 2: Hero  |  Section 3: Trust Bar
   Palette: Deep Navy (#0B1F3A) + Construction Gold (#F4B400)
   Fonts: Montserrat (headings) + Inter (body)
   Scoped to these sections only — rest of the page keeps the
   existing Obsidian dark theme until it is redesigned in turn.
   ============================================================ */

:root {
  --pv-navy: #0B1F3A;
  --pv-navy-deep: #081626;
  --pv-navy-light: #123C69;
  --pv-gold: #F4B400;
  --pv-gold-hover: #FFD24A;
  --font-heading: 'Montserrat', 'Segoe UI', Tahoma, sans-serif;
  --font-body: 'Inter', 'Segoe UI', Tahoma, sans-serif;
}

@media (prefers-reduced-motion: reduce) {
  .brand,
  .site-header nav > ul,
  .hero-eyebrow, .hero-title, .hero-sub, .hero-cta-row, .hero-frame,
  .hero-glass-card, .hero-scroll-cue {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 80px;
  display: flex;
  align-items: center;
  background: var(--pv-navy);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.35s ease, box-shadow 0.35s ease, backdrop-filter 0.35s ease;
}
.site-header.scrolled {
  background: rgba(11, 31, 58, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px rgba(2, 6, 23, 0.35);
}
.site-header .header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  opacity: 0;
  animation: pvFadeIn 0.7s ease forwards 0.1s;
}
@keyframes pvFadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
.brand-mark {
  background: var(--pv-gold);
  color: var(--pv-navy);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1rem;
  padding: 8px 12px;
  border-radius: 6px;
  letter-spacing: 0.5px;
}
.brand-word {
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.02rem;
  white-space: nowrap;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.site-header nav > ul {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 2px;
  opacity: 0;
  transform: translateY(-10px);
  animation: pvNavDown 0.6s ease forwards 0.25s;
}
@keyframes pvNavDown {
  to { opacity: 1; transform: translateY(0); }
}
.site-header .nav-link {
  color: #fff;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.9rem;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 6px;
  transition: color 0.2s ease, background 0.2s ease;
}
.site-header .nav-link:hover,
.site-header .nav-link:focus-visible {
  color: var(--pv-gold);
  background: rgba(255, 255, 255, 0.06);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 12px;
}
.site-header .theme-toggle {
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}
.site-header .theme-toggle:hover { border-color: var(--pv-gold); }

.nav-admin-icon {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 1rem;
  padding: 6px 8px;
  border-radius: 6px;
  transition: color 0.2s ease, background 0.2s ease;
}
.nav-admin-icon:hover { color: var(--pv-gold); background: rgba(255, 255, 255, 0.06); }

.btn-quote {
  background: var(--pv-gold);
  color: var(--pv-navy);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.86rem;
  padding: 10px 22px;
  border-radius: 999px;
  text-decoration: none;
  display: inline-block;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.btn-quote:hover {
  background: var(--pv-gold-hover);
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(244, 180, 0, 0.35);
}

.site-header .mobile-menu {
  display: none;
  font-size: 1.5rem;
  color: #fff;
  cursor: pointer;
  background: none;
  border: none;
}

@media (max-width: 900px) {
  .site-header nav { display: none; }
  .site-header nav.open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background: var(--pv-navy-deep);
    padding: 20px;
    gap: 16px;
    box-shadow: 0 16px 30px rgba(2, 6, 23, 0.45);
  }
  .site-header nav.open > ul {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 4px;
    opacity: 1;
    transform: none;
    animation: none;
  }
  .site-header nav.open .nav-link { display: block; width: 100%; padding: 10px 8px; }
  .site-header .nav-actions { margin-left: 0; }
  .site-header .mobile-menu { display: block; }
}

/* ---------- Hero ---------- */
.hero-premium {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background: var(--pv-navy-deep);
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(100deg,
    var(--pv-navy-deep) 5%,
    rgba(8, 22, 38, 0.82) 45%,
    rgba(8, 22, 38, 0.35) 75%,
    rgba(8, 22, 38, 0.15) 100%);
}
.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  padding-top: 80px;
  padding-bottom: 60px;
}
.hero-eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 3px;
  color: var(--pv-gold);
  text-transform: uppercase;
  margin-bottom: 18px;
  opacity: 0;
  animation: pvFadeUp 0.8s ease forwards 0.15s;
}
.hero-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  line-height: 1.08;
  letter-spacing: -1px;
  margin-bottom: 22px;
  opacity: 0;
  animation: pvFadeUp 0.8s ease forwards 0.3s;
}
.hero-sub {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  line-height: 1.7;
  color: rgba(248, 250, 252, 0.85);
  max-width: 560px;
  margin-bottom: 34px;
  opacity: 0;
  animation: pvFadeUp 0.8s ease forwards 0.45s;
}
.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  opacity: 0;
  animation: pvFadeUp 0.8s ease forwards 0.6s;
}
@keyframes pvFadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.btn-hero-primary {
  background: var(--pv-gold);
  color: var(--pv-navy);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.98rem;
  padding: 15px 32px;
  border-radius: 8px;
  text-decoration: none;
  display: inline-block;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.btn-hero-primary:hover {
  background: var(--pv-gold-hover);
  transform: scale(1.05);
  box-shadow: 0 10px 26px rgba(244, 180, 0, 0.35);
}
.btn-hero-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 15px 28px;
  border-radius: 8px;
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.btn-hero-ghost:hover {
  transform: scale(1.05);
  border-color: var(--pv-gold);
  background: rgba(255, 255, 255, 0.1);
}
.play-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--pv-gold);
  color: var(--pv-navy);
  font-size: 0.6rem;
}

.hero-visual { position: relative; }
.hero-frame {
  position: relative;
  border-radius: 16px;
  opacity: 0;
  animation: pvFadeUp 0.9s ease forwards 0.5s;
}
.hero-frame img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 24px 60px rgba(2, 6, 23, 0.5);
}
.hero-glass-card {
  position: absolute;
  left: -28px;
  bottom: -28px;
  width: 220px;
  background: rgba(11, 31, 58, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 14px;
  padding: 18px 20px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 16px 40px rgba(2, 6, 23, 0.45);
  animation: pvFloat 4s ease-in-out infinite;
}
@keyframes pvFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.glass-label {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
  margin-bottom: 12px;
}
.glass-stats { display: flex; gap: 22px; }
.glass-stats > div { display: flex; flex-direction: column; }
.stat-num {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--pv-gold);
  line-height: 1;
}
.stat-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 4px;
}

.hero-scroll-cue {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 1.2rem;
  animation: pvBounce 2s ease-in-out infinite;
}
@keyframes pvBounce {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    padding-top: 40px;
  }
  .hero-overlay {
    background: linear-gradient(180deg,
      rgba(8, 22, 38, 0.55) 0%,
      rgba(8, 22, 38, 0.92) 60%,
      var(--pv-navy-deep) 100%);
  }
  .hero-visual { order: -1; margin-bottom: 12px; }
  .hero-frame img { height: 280px; }
  .hero-glass-card { left: 16px; bottom: -20px; width: 190px; }
  .hero-premium { min-height: auto; padding: 40px 0 60px; }
}

/* ---------- Trust Bar ---------- */
.trust-bar { background: var(--pv-gold); padding: 22px 0; }
.trust-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 48px;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--pv-navy);
}
.trust-ico { font-size: 1.1rem; }

/* ============================================================
   Section 4: Our Divisions
   ============================================================ */

/* Shared premium section utilities */
.section-eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 3px;
  color: var(--pv-gold);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.gold-line {
  display: block;
  width: 70px;
  height: 3px;
  background: var(--pv-gold);
  border-radius: 2px;
  margin: 18px auto 0;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in-view { opacity: 1; transform: translateY(0); }
.division-grid .division-card.reveal:nth-child(2) { transition-delay: 0.1s; }
.division-grid .division-card.reveal:nth-child(3) { transition-delay: 0.2s; }
.division-grid .division-card.reveal:nth-child(4) { transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* Divisions wrapper */
.divisions { background: var(--bg); padding: 0 0 90px; }

.divisions-header {
  background:
    radial-gradient(60% 100% at 80% 0%, rgba(244, 180, 0, 0.14), transparent 60%),
    linear-gradient(180deg, var(--pv-navy) 0%, var(--pv-navy-deep) 100%);
  padding: 90px 0 70px;
  text-align: center;
  color: #fff;
}
.divisions-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  letter-spacing: -0.5px;
  max-width: 760px;
  margin: 0 auto;
}
.divisions-sub {
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.78);
  max-width: 640px;
  margin: 22px auto 0;
  line-height: 1.7;
}

/* Division cards */
.division-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: -50px;
  position: relative;
  z-index: 2;
}
.division-card {
  position: relative;
  display: block;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  border: 1px solid transparent;
  background: var(--bg-card);
  box-shadow: 0 16px 40px var(--shadow);
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
.division-card:hover {
  transform: translateY(-10px);
  border-color: var(--pv-gold);
  box-shadow: 0 24px 50px rgba(2, 6, 23, 0.4);
}
.division-media {
  height: 220px;
  overflow: hidden;
  background: var(--bg-card-alt);
}
.division-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.division-card:hover .division-media img { transform: scale(1.05); }
.division-body { padding: 22px 26px 26px; }
.division-body h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--heading);
  margin-bottom: 8px;
}
.division-body p {
  font-family: var(--font-body);
  color: var(--text);
  font-size: 0.95rem;
  margin-bottom: 4px;
}
.division-link {
  display: inline-block;
  margin-top: 10px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--pv-gold);
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.division-card:hover .division-link { opacity: 1; transform: translateX(0); }

@media (max-width: 760px) {
  .division-grid { grid-template-columns: 1fr; margin-top: -30px; }
}

/* Civil Engineering & Digital Services — bento grid */
.bento-section { margin-top: 90px; }
.bento-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--heading);
  text-align: center;
  margin-bottom: 36px;
}
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 22px;
}
.bento-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 30px;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.bento-item:hover { transform: translateY(-6px); border-color: var(--pv-gold); }
.bento-large {
  grid-column: span 2;
  grid-row: span 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.bento-icon { font-size: 2rem; margin-bottom: 16px; display: block; }
.bento-item h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 8px;
  font-size: 1.1rem;
}
.bento-item p { color: var(--text); font-size: 0.92rem; line-height: 1.6; }

@media (max-width: 760px) {
  .bento-grid { grid-template-columns: 1fr; }
  .bento-large { grid-column: span 1; grid-row: span 1; }
}

/* Partnership */
.partnership {
  position: relative;
  background: linear-gradient(180deg, var(--pv-navy-deep) 0%, var(--pv-navy) 60%, var(--pv-navy) 100%);
  padding: 100px 0 160px;
  text-align: center;
  color: #fff;
  margin-top: 90px;
}
.partnership-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
  max-width: 760px;
  margin: 0 auto;
  letter-spacing: -0.4px;
}
.partnership-sub {
  font-family: var(--font-body);
  color: rgba(255, 255, 255, 0.78);
  max-width: 640px;
  margin: 20px auto 44px;
  line-height: 1.7;
}
.partner-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 22px;
  margin-bottom: 44px;
}
.partner-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  padding: 26px 34px;
  min-width: 160px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.partner-card:hover { transform: translateY(-6px); border-color: var(--pv-gold); }
.partner-ico { font-size: 1.8rem; display: block; margin-bottom: 10px; }
.partner-card h4 { font-family: var(--font-heading); font-weight: 700; font-size: 1rem; }

.partnership-cta { display: inline-block; }

/* Floating statistics card */
.floating-stats {
  position: absolute;
  left: 50%;
  bottom: -70px;
  transform: translateX(-50%);
  z-index: 3;
  width: min(920px, 90%);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #F8FAFC;
  border-radius: 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  padding: 34px 20px;
}
.stat-block {
  text-align: center;
  border-right: 1px solid rgba(11, 31, 58, 0.1);
}
.stat-block:last-child { border-right: none; }
.fstat-num {
  display: block;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 2.1rem;
  color: var(--pv-navy);
}
.fstat-label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: #4B5563;
  margin-top: 6px;
}

@media (max-width: 760px) {
  .floating-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 0;
    bottom: -110px;
    padding: 26px 16px;
  }
  .stat-block:nth-child(1),
  .stat-block:nth-child(2) {
    border-bottom: 1px solid rgba(11, 31, 58, 0.1);
    padding-bottom: 16px;
    margin-bottom: 6px;
  }
  .stat-block:nth-child(2) { border-right: none; }
  .partnership { padding-bottom: 200px; }
}
