/* ============================================================
   POWERMIND INNOVATIVE SOLUTIONS — styles.css
   Foundation stylesheet for pmisolutions.co
   ============================================================ */

/* ── Google Fonts ── */
/* Fonts served locally — no external dependencies */

/* ── CSS Variables ── */
:root {
  /* Colors */
  --navy:    #07152a;
  --navy2:   #0e2040;
  --navy3:   #162d52;
  --blue:    #2563eb;
  --blue2:   #1d4ed8;
  --blue3:   #60a5fa;
  --gold:    #c9a84c;
  --gold2:   #e8c96e;
  --gold3:   #f5e199;
  --off:     #f6f8fb;
  --border:  #e3e8f0;
  --text:    #0f1e35;
  --muted:   #6f809d;
  --white:   #ffffff;

  /* Typography */
  --font-display: Georgia, 'Times New Roman', serif;
  --font-body:    Arial, 'Helvetica Neue', Helvetica, sans-serif;

  /* Spacing */
  --section-pad: 80px;
  --section-pad-sm: 48px;

  /* Shape */
  --r:  8px;
  --r2: 14px;

  /* Shadow */
  --shadow-sm: 0 2px 8px rgba(7, 21, 42, .06);
  --shadow:    0 8px 28px rgba(7, 21, 42, .09);
  --shadow-lg: 0 20px 56px rgba(7, 21, 42, .14);
}

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

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

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ── Container ── */
.container {
  width: min(1180px, 92vw);
  margin: 0 auto;
}

/* ============================================================
   GOLD SHIMMER ANIMATION
   Used sparingly: hero headline, nav CTA, tagline
   ============================================================ */
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position:  200% center; }
}

.shimmer {
  background: linear-gradient(
    90deg,
    var(--gold)  0%,
    var(--gold2) 30%,
    var(--gold3) 50%,
    var(--gold2) 70%,
    var(--gold)  100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: shimmer 3.6s linear infinite;
  display: inline;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  line-height: 1.12;
  font-weight: 700;
  color: var(--text);
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); margin-bottom: .75rem; }
h2 { font-size: clamp(1.9rem, 3vw, 2.75rem); margin-bottom: .75rem; }
h3 { font-size: 1.35rem; margin-bottom: .5rem; }
h4 { font-size: 1.05rem; margin-bottom: .4rem; }
h5 { font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; font-family: var(--font-body); font-weight: 700; }

/* Light headings (on dark backgrounds) */
.text-light h1,
.text-light h2,
.text-light h3,
.text-light h4 { color: var(--white); }

.text-light p,
.text-light .lead { color: rgba(255, 255, 255, .78); }

.text-light .eyebrow { color: var(--gold2); }

/* Eyebrow labels */
.eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: .6rem;
}

.eyebrow-gold { color: var(--gold); }
.eyebrow-light { color: rgba(255, 255, 255, .55); }

.lead {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 680px;
  margin-bottom: 1.25rem;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 11px 22px;
  border-radius: var(--r);
  font-family: var(--font-body);
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .01em;
  border: 2px solid transparent;
  transition: all .22s ease;
  white-space: nowrap;
  cursor: pointer;
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}
.btn-primary:hover {
  background: var(--blue2);
  border-color: var(--blue2);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, .35);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, .4);
}
.btn-outline:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, .08);
}

.btn-gold {
  background: transparent;
  color: var(--gold2);
  border-color: var(--gold);
}
.btn-gold:hover {
  background: rgba(201, 168, 76, .1);
  border-color: var(--gold2);
}

/* Nav CTA — shimmer gold button */
.btn-nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 9px 18px;
  border-radius: var(--r);
  font-size: .84rem;
  font-weight: 700;
  letter-spacing: .02em;
  border: 1.5px solid var(--gold);
  background: transparent;
  color: var(--gold2);
  transition: background .22s, border-color .22s, box-shadow .22s, color .22s;
}
.btn-nav-cta:hover {
  background: rgba(201, 168, 76, .12);
  border-color: var(--gold2);
  color: var(--gold3);
  box-shadow: 0 0 18px rgba(201, 168, 76, .3);
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(7, 21, 42, .96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  transition: box-shadow .3s;
}

.site-header.scrolled {
  box-shadow: 0 4px 24px rgba(0, 0, 0, .24);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
}

/* Brand / Logo */
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
  color: var(--white);
}
.brand img {
  height: 52px;
  width: auto;
}
.brand-title {
  font-family: var(--font-body);
  font-size: .9rem;
  font-weight: 700;
  color: var(--white);
  white-space: nowrap;
}
/* Tagline with shimmer */
.brand-sub {
  font-family: var(--font-body);
  font-size: .58rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  /* Shimmer */
  background: linear-gradient(
    90deg,
    var(--gold)  0%,
    var(--gold2) 30%,
    var(--gold3) 50%,
    var(--gold2) 70%,
    var(--gold)  100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 4s linear infinite;
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: nowrap;
}
.nav-links li a {
  display: block;
  padding: 6px 10px;
  font-size: .84rem;
  color: rgba(255, 255, 255, .72);
  border-radius: 5px;
  transition: color .18s, background .18s;
  white-space: nowrap;
}
.nav-links li a:hover,
.nav-links li a.active {
  color: var(--white);
  background: rgba(255, 255, 255, .07);
}

/* Mobile toggle */
.mobile-toggle {
  display: none;
  color: var(--white);
  font-size: 1.5rem;
  padding: 4px;
  line-height: 1;
}

/* Mobile menu */
.mobile-menu {
  display: none;
  padding-bottom: 16px;
  border-top: 1px solid rgba(255, 255, 255, .07);
}
.mobile-menu.open { display: block; }
.mobile-menu a {
  display: block;
  padding: 11px 0;
  color: rgba(255, 255, 255, .82);
  font-size: .9rem;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  transition: color .15s;
}
.mobile-menu a:hover { color: var(--white); }

/* ============================================================
   SECTIONS
   ============================================================ */
.section {
  padding: var(--section-pad) 0;
}

.section-light  { background: var(--white); }
.section-off    { background: var(--off); }
.section-dark   { background: var(--navy); color: var(--white); }
.section-dark2  { background: var(--navy2); color: var(--white); }
.section-sm     { padding: var(--section-pad-sm) 0; }

/* ============================================================
   PAGE HERO
   ============================================================ */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy2) 60%, var(--navy3) 100%);
  padding: 96px 0 64px;
  position: relative;
  overflow: hidden;
}

/* Subtle dot grid pattern for hero depth */
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  z-index: 0;
}
.page-hero .container { position: relative; z-index: 1; }

/* Subtle decorative glow */
.page-hero::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -120px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(37, 99, 235, .15) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.page-hero .eyebrow { color: var(--gold2); margin-bottom: .75rem; }
.page-hero h1 { color: var(--white); max-width: 760px; }
.page-hero .hero-sub {
  color: rgba(255, 255, 255, .76);
  max-width: 620px;
  font-size: 1.05rem;
  margin: .75rem 0 1.75rem;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ============================================================
   GRIDS
   ============================================================ */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}
.grid-2-asym {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 40px;
  align-items: center;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r2);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .22s, transform .22s;
}
.card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.card-dark {
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: none;
  color: var(--white);
}
.card-dark h3, .card-dark h4 { color: var(--white); }
.card-dark p { color: rgba(255, 255, 255, .74); }

.card-off {
  background: var(--off);
  border: 1px solid var(--border);
  border-radius: var(--r2);
  padding: 28px;
}

/* Service number badge */
.svc-num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--blue);
  opacity: .18;
  line-height: 1;
  margin-bottom: 10px;
}

/* ============================================================
   PROFILE / PORTRAIT
   ============================================================ */
.profile-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 18px;
}

.profile-circle {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, .2);
  background: var(--off);
  flex-shrink: 0;
}

.profile-circle.on-light {
  border-color: var(--border);
}

.profile-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
}

/* ============================================================
   FOUNDER LAYOUT
   ============================================================ */
.founder-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 40px;
  align-items: start;
}

.founder-card {
  text-align: center;
}

.founder-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--white);
  margin-top: 14px;
  margin-bottom: 4px;
}

.founder-role {
  font-size: .78rem;
  color: var(--gold2);
  letter-spacing: .05em;
  margin-bottom: 18px;
}

.cred-list { display: grid; gap: 10px; margin-top: 16px; }
.cred-item {
  font-size: .84rem;
  color: rgba(255, 255, 255, .68);
  padding-left: 14px;
  border-left: 2px solid var(--gold);
}

/* ============================================================
   MANAGEMENT CARD (Vanessa — on light bg)
   ============================================================ */
.management-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r2);
  padding: 36px;
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 32px;
  align-items: center;
  max-width: 760px;
}

.management-card h3 { color: var(--text); font-size: 1.4rem; }
.management-card h4 { color: var(--muted); font-size: .88rem; font-weight: 500; font-family: var(--font-body); margin-bottom: .75rem; }
.management-card p  { color: var(--muted); font-size: .93rem; }

/* ============================================================
   ETHOS CARDS
   ============================================================ */
.ethos-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.ethos-card {
  border: 1px solid var(--border);
  border-radius: var(--r2);
  padding: 32px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: box-shadow .22s, transform .22s;
}

.ethos-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.ethos-icon {
  font-size: 1.8rem;
  margin-bottom: 14px;
  display: block;
}

/* ============================================================
   IMPACT VISION CARDS
   ============================================================ */
.impact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

/* ============================================================
   GALLERY / CAROUSEL
   ============================================================ */
.gallery-stack { display: grid; gap: 48px; }

.carousel-shell {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r2);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.carousel-shell h2 { margin-bottom: .4rem; }
.carousel-shell .lead { margin-bottom: 1.25rem; }

.carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--r);
  background: var(--off);
  line-height: 0;
}

.carousel-track {
  display: flex;
  transition: transform .38s cubic-bezier(.4, 0, .2, 1);
}

.slide {
  min-width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 2px 12px rgba(0, 0, 0, .18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--navy);
  transition: background .18s, transform .18s;
  line-height: 1;
  z-index: 2;
}

.carousel-btn:hover {
  background: var(--white);
  transform: translateY(-50%) scale(1.08);
}

.carousel-btn.prev { left: 12px; }
.carousel-btn.next { right: 12px; }

.carousel-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  padding-top: 14px;
}

.carousel-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background .18s, transform .18s;
}

.carousel-dots button.active {
  background: var(--blue);
  transform: scale(1.3);
}

/* ============================================================
   FORMS
   ============================================================ */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: grid;
  gap: 6px;
  margin-bottom: 16px;
}

.form-group label {
  font-size: .84rem;
  font-weight: 600;
  color: var(--text);
}

input, select, textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  font: inherit;
  font-size: .93rem;
  color: var(--text);
  background: var(--white);
  transition: border-color .18s, box-shadow .18s;
  appearance: none;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}

textarea { min-height: 130px; resize: vertical; }

.form-submit { width: 100%; margin-top: 6px; }

/* Success message */
.form-success {
  display: none;
  text-align: center;
  padding: 32px 24px;
  background: var(--off);
  border-radius: var(--r2);
  border: 1px solid var(--border);
}
.form-success .success-icon { font-size: 2.2rem; margin-bottom: 10px; }
.form-success h3 { color: var(--text); }
.form-success p  { color: var(--muted); }

/* ============================================================
   DIVIDERS & UTILITIES
   ============================================================ */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 40px 0;
}

.divider-gold {
  border-top: 2px solid var(--gold);
  width: 48px;
  margin: 0 0 24px;
}

.text-center { text-align: center; }
.text-center .lead { margin-left: auto; margin-right: auto; }

.mt-sm  { margin-top: 16px; }
.mt-md  { margin-top: 28px; }
.mt-lg  { margin-top: 48px; }
.mb-sm  { margin-bottom: 16px; }
.mb-md  { margin-bottom: 28px; }

.hidden { display: none !important; }

/* Horizontal rule */
.section-rule {
  width: 100%;
  height: 1px;
  background: var(--border);
  margin: 48px 0;
}

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band {
  background: var(--navy);
  padding: 72px 0;
  text-align: center;
}

.cta-band h2 { color: var(--white); margin-bottom: .6rem; }
.cta-band p  { color: rgba(255, 255, 255, .7); margin-bottom: 1.75rem; }
.cta-band .btn-group { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--navy);
  color: var(--white);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.2fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  align-items: start;
}
.footer-col-brand {}
.footer-col {}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 14px;
}
.footer-brand img { height: 36px; width: auto; }

.footer-note {
  color: rgba(255, 255, 255, .54);
  font-size: .86rem;
  line-height: 1.6;
  margin-bottom: .4rem;
}

.footer-title {
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .42);
  font-weight: 700;
  margin-bottom: 14px;
}

.footer-links a {
  display: block;
  color: rgba(255, 255, 255, .74);
  font-size: .88rem;
  margin-bottom: 9px;
  transition: color .15s;
}
.footer-links a:hover { color: var(--white); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 20px 0;
  font-size: .8rem;
  color: rgba(255, 255, 255, .44);
}

.footer-legal {
  display: flex;
  gap: 20px;
  align-items: center;
}

.footer-legal a {
  color: rgba(255, 255, 255, .62);
  font-size: .8rem;
  transition: color .15s;
}
.footer-legal a:hover { color: var(--white); }

.footer-credit {
  color: rgba(255, 255, 255, .38);
  font-size: .78rem;
}
.footer-credit a { color: rgba(255, 255, 255, .55); }
.footer-credit a:hover { color: var(--white); }

/* ============================================================
   LEGAL PAGES (Privacy / Terms)
   ============================================================ */
.legal-body {
  max-width: 820px;
  margin: 0 auto;
  padding: 64px 0 80px;
}

.legal-body h2 {
  font-size: 1.4rem;
  margin-top: 2.2rem;
  margin-bottom: .5rem;
  color: var(--text);
}

.legal-body h3 {
  font-size: 1.05rem;
  margin-top: 1.4rem;
  color: var(--text);
}

.legal-body p, .legal-body li {
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.75;
  margin-bottom: .75rem;
}

.legal-body ul {
  list-style: disc;
  padding-left: 1.4rem;
  margin-bottom: 1rem;
}

.legal-updated {
  font-size: .82rem;
  color: var(--muted);
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

/* ============================================================
   REVEAL ANIMATIONS (scroll-triggered)
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .55s ease, transform .55s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* Stagger children */
.reveal-group > * {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .48s ease, transform .48s ease;
}

.reveal-group.visible > *:nth-child(1) { opacity: 1; transform: none; transition-delay: 0s; }
.reveal-group.visible > *:nth-child(2) { opacity: 1; transform: none; transition-delay: .1s; }
.reveal-group.visible > *:nth-child(3) { opacity: 1; transform: none; transition-delay: .2s; }
.reveal-group.visible > *:nth-child(4) { opacity: 1; transform: none; transition-delay: .3s; }
.reveal-group.visible > *:nth-child(5) { opacity: 1; transform: none; transition-delay: .4s; }
.reveal-group.visible > *:nth-child(6) { opacity: 1; transform: none; transition-delay: .5s; }
.reveal-group.visible > *:nth-child(7) { opacity: 1; transform: none; transition-delay: .6s; }
.reveal-group.visible > *:nth-child(8) { opacity: 1; transform: none; transition-delay: .7s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1020px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  :root {
    --section-pad: 56px;
    --section-pad-sm: 36px;
  }

  .nav-links { display: none; }
  .mobile-toggle { display: block; }

  .grid-2,
  .grid-2-asym,
  .grid-3,
  .ethos-grid,
  .impact-grid,
  .management-card,
  .founder-layout { grid-template-columns: 1fr; }

  .founder-layout { gap: 24px; }
  .management-card { padding: 24px; }

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

  .page-hero { padding: 72px 0 48px; }
}

@media (max-width: 580px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}

/* ── Back to Top button ── */
#back-to-top {
  position: fixed;
  bottom: 96px;
  right: 28px;
  width: 44px;
  height: 44px;
  background: rgba(14, 32, 64, .92);
  border: 1.5px solid rgba(201, 168, 76, .45);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 9998;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .28s ease, transform .28s ease, background .2s ease, border-color .2s ease;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(0,0,0,.22);
}
#back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}
#back-to-top:hover {
  background: rgba(22, 45, 82, .98);
  border-color: var(--gold2);
  box-shadow: 0 6px 22px rgba(0,0,0,.32);
}
#back-to-top svg {
  display: block;
}

/* ============================================================
   UX POLISH UPGRADES
   ============================================================ */

/* ── Page load fade-in ── */
@keyframes pageFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}
body {
  animation: pageFadeIn .38s ease both;
}

/* ── Smooth hover lift on all cards ── */
.card {
  transition: transform .22s ease, box-shadow .22s ease;
  will-change: transform;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 48px rgba(7, 21, 42, .13);
}

/* ── Button press micro-interaction ── */
.btn, .quote-submit, .btn-nav-cta {
  transition: transform .12s ease, box-shadow .12s ease, background .18s ease, color .18s ease, border-color .18s ease;
}
.btn:active, .quote-submit:active {
  transform: scale(.97);
}

/* ── Nav link animated underline ── */
.nav-links a:not(.btn-nav-cta) {
  position: relative;
  padding-bottom: 2px;
}
.nav-links a:not(.btn-nav-cta)::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width .24s ease;
  border-radius: 2px;
}
.nav-links a:not(.btn-nav-cta):hover::after,
.nav-links a.active:not(.btn-nav-cta)::after {
  width: 100%;
}

/* ── Enhanced staggered reveal (longer sequence) ── */
.reveal-group.visible > *:nth-child(5) { opacity: 1; transform: none; transition-delay: .38s; }
.reveal-group.visible > *:nth-child(6) { opacity: 1; transform: none; transition-delay: .48s; }

/* ── Smooth image zoom on hover (gallery, hero images) ── */
.gallery-item, .project-thumb {
  overflow: hidden;
  border-radius: var(--r2);
}
.gallery-item img, .project-thumb img {
  transition: transform .45s ease;
}
.gallery-item:hover img, .project-thumb:hover img {
  transform: scale(1.04);
}

/* ── Focus visible improvements (accessibility) ── */
:focus-visible {
  outline: 2.5px solid var(--gold2);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── Header blur backdrop on scroll ── */
.site-header {
  transition: box-shadow .25s ease, backdrop-filter .25s ease, background .25s ease;
}
.site-header.scrolled {
  backdrop-filter: blur(12px) saturate(1.4);
  -webkit-backdrop-filter: blur(12px) saturate(1.4);
  background: rgba(7, 21, 42, .96);
  box-shadow: 0 2px 24px rgba(0,0,0,.22);
}

/* ── Hero headline word-reveal animation ── */
@keyframes wordSlideUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: none; }
}
.page-hero h1 .animate-word {
  display: inline-block;
  opacity: 0;
  animation: wordSlideUp .5s ease forwards;
}

/* ── Gold pulse on CTA band ── */
.cta-band {
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 120%, rgba(201,168,76,.13) 0%, transparent 70%);
  pointer-events: none;
}

/* ── Number counter animate ── */
.stat-num {
  display: inline-block;
}

/* ── Tooltip on social/contact icons ── */
[data-tooltip] {
  position: relative;
}
[data-tooltip]::before {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--navy);
  color: #fff;
  font-size: .72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
  letter-spacing: .04em;
}
[data-tooltip]:hover::before {
  opacity: 1;
}

/* ── Input focus glow upgrade ── */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, .15);
}

/* ── Loading spinner for form submit ── */
@keyframes spin {
  to { transform: rotate(360deg); }
}
.btn-loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}
.btn-loading::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 18px; height: 18px;
  margin: -9px 0 0 -9px;
  border: 2.5px solid rgba(255,255,255,.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}

/* ── Smooth page transitions via JS class ── */
body.page-leaving {
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .22s ease, transform .22s ease;
}

/* ── Counter section pulse on enter ── */
@keyframes countUp {
  from { opacity: 0; transform: scale(.92); }
  to   { opacity: 1; transform: scale(1); }
}
.stat-card.visible {
  animation: countUp .45s ease both;
}
