/* ============================================================
   PAC SOLUTIONS — styles.css
   Design system: Purple #4B2D83 | Green #00A651 | White #ffffff
   ============================================================ */

/* ── 1. CSS CUSTOM PROPERTIES ─────────────────────────────── */
:root {
  /* Brand Colours */
  --navy:          #4B2D83;
  --navy-dark:     #351F6B;
  --navy-mid:      #5C3D99;
  --navy-light:    #6E4DB3;
  --gold:          #00A651;
  --gold-light:    #2DBF6A;
  --gold-dark:     #008A3C;
  --gold-pale:     #E6F7ED;

  /* Neutrals */
  --white:         #ffffff;
  --off-white:     #f8f9fb;
  --grey-50:       #f2f4f7;
  --grey-100:      #e4e8ef;
  --grey-200:      #cdd3de;
  --grey-400:      #8e9aad;
  --grey-600:      #5a6476;
  --grey-800:      #2e3642;
  --text-primary:  #1a2032;
  --text-secondary:#4a5568;
  --text-muted:    #718096;

  /* UI */
  --border-radius: 12px;
  --border-radius-sm: 8px;
  --border-radius-lg: 20px;
  --transition:    0.28s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm:     0 2px 8px rgba(75, 45, 131, 0.08);
  --shadow-md:     0 6px 24px rgba(75, 45, 131, 0.12);
  --shadow-lg:     0 16px 48px rgba(75, 45, 131, 0.16);
  --shadow-xl:     0 24px 64px rgba(75, 45, 131, 0.22);

  /* Typography */
  --font-body:     'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --text-xs:       0.75rem;
  --text-sm:       0.875rem;
  --text-base:     1rem;
  --text-lg:       1.125rem;
  --text-xl:       1.25rem;
  --text-2xl:      1.5rem;
  --text-3xl:      1.875rem;
  --text-4xl:      2.25rem;
  --text-5xl:      3rem;
  --text-6xl:      3.75rem;

  /* Spacing */
  --section-py:    96px;
  --container-max: 1200px;
  --container-px:  24px;

  /* Nav */
  --nav-height:    160px;
}

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

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

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--text-primary);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

ul { list-style: none; }

button {
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  background: none;
}

address { font-style: normal; }

/* Focus visible outline for accessibility */
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── 3. UTILITY ───────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-px);
  padding-right: var(--container-px);
}

.section {
  padding-top: var(--section-py);
  padding-bottom: var(--section-py);
}

.section-label {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(0, 166, 81, 0.12);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(var(--text-3xl), 4vw, var(--text-4xl));
  font-weight: 800;
  line-height: 1.2;
  color: var(--navy);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.7;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-header .section-subtitle {
  margin: 0 auto;
}

/* ── 4. BUTTONS ───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--border-radius-sm);
  font-size: var(--text-base);
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: all var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  line-height: 1;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gold);
  color: var(--navy-dark);
  border-color: var(--gold);
  box-shadow: 0 4px 16px rgba(0, 166, 81, 0.35);
}

.btn-primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 166, 81, 0.45);
  color: var(--navy-dark);
}

.btn-primary:active { transform: translateY(0); }

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

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--white);
  transform: translateY(-2px);
  color: var(--white);
}

/* ── 5. NAVIGATION ────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(135deg, #f8f5ff 0%, #ffffff 40%, #f2faf5 100%);
  box-shadow: 0 2px 16px rgba(75, 45, 131, 0.08);
  transition: all var(--transition);
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.navbar {
  height: var(--nav-height);
  transition: all var(--transition);
}

.site-header.scrolled .navbar {
  height: 90px;
}

.site-header.scrolled .logo-img {
  height: 80px;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-px);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  text-decoration: none;
  flex-shrink: 0;
}

.logo-img {
  height: 150px;
  width: auto;
  object-fit: contain;
  display: block;
  transition: height var(--transition);
}

.logo-text {
  font-size: var(--text-xl);
  font-weight: 400;
  color: var(--white);
  letter-spacing: -0.02em;
}

.logo-text strong {
  font-weight: 800;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--navy);
  padding: 8px 14px;
  border-radius: var(--border-radius-sm);
  transition: all var(--transition);
  text-decoration: none;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 14px;
  right: 14px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
  border-radius: 2px;
}

.nav-link:hover,
.nav-link.active {
  color: var(--gold-dark);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.nav-link.nav-cta {
  background: var(--gold);
  color: var(--navy-dark) !important;
  font-weight: 700;
  padding: 10px 22px;
}

.nav-link.nav-cta::after { display: none; }

.nav-link.nav-cta:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 166, 81, 0.4);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1100;
}

.bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all var(--transition);
  transform-origin: center;
}

.hamburger.open .bar:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.hamburger.open .bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open .bar:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* ── 6. HERO ──────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background:
    linear-gradient(135deg, rgba(53, 31, 107, 0.92) 0%, rgba(75, 45, 131, 0.88) 50%, rgba(92, 61, 153, 0.85) 100%),
    url('../images/hero-bg.jpg') center/cover no-repeat;
  overflow: hidden;
  padding-top: var(--nav-height);
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.07;
}

.hero-shape-1 {
  width: 600px;
  height: 600px;
  background: var(--gold);
  top: -200px;
  right: -100px;
  animation: float1 12s ease-in-out infinite;
}

.hero-shape-2 {
  width: 400px;
  height: 400px;
  background: var(--gold);
  bottom: -150px;
  left: -80px;
  animation: float2 15s ease-in-out infinite;
}

.hero-shape-3 {
  width: 200px;
  height: 200px;
  background: var(--white);
  top: 40%;
  left: 45%;
  animation: float3 10s ease-in-out infinite;
}

@keyframes float1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%       { transform: translate(-30px, 40px) scale(1.05); }
}
@keyframes float2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%       { transform: translate(20px, -30px) scale(1.08); }
}
@keyframes float3 {
  0%, 100% { transform: translate(0, 0); }
  50%       { transform: translate(15px, -20px); }
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  padding-top: 40px;
  padding-bottom: 80px;
}

.hero-badge {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(0, 166, 81, 0.4);
  background: rgba(0, 166, 81, 0.08);
  padding: 8px 16px;
  border-radius: 100px;
  margin-bottom: 24px;
}

.hero-text h1 {
  font-size: clamp(var(--text-4xl), 5.5vw, var(--text-6xl));
  font-weight: 800;
  line-height: 1.1;
  color: var(--white);
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.hero-accent {
  font-style: normal;
  color: var(--gold);
  position: relative;
}

.hero-subtitle {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.75;
  max-width: 520px;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

/* Hero cards */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-card-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: 320px;
}

.hero-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--border-radius);
  padding: 20px 24px;
  color: var(--white);
  transition: all var(--transition);
}

.hero-card:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateX(8px);
}

.hero-card svg { color: var(--gold); flex-shrink: 0; }

.hero-card div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero-card strong {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
}

.hero-card span {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.6);
}

.hero-card-1 { animation: slideInCard 0.8s ease 0.2s both; }
.hero-card-2 { animation: slideInCard 0.8s ease 0.4s both; }
.hero-card-3 { animation: slideInCard 0.8s ease 0.6s both; }

@keyframes slideInCard {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* Scroll indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.hero-scroll-indicator span {
  display: block;
  width: 2px;
  height: 40px;
  background: linear-gradient(to bottom, transparent, rgba(0, 166, 81, 0.8));
  border-radius: 2px;
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50%       { opacity: 1;   transform: scaleY(1.2); }
}

/* ── 7. STATS SECTION ─────────────────────────────────────── */
.stats-section {
  background: var(--navy);
  padding: 60px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.stat-item {
  text-align: center;
  padding: 20px;
  position: relative;
}

.stat-item + .stat-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.stat-number {
  display: block;
  font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -0.03em;
}

.stat-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.65);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ── 8. ABOUT SECTION ─────────────────────────────────────── */
.about-section { background: var(--white); }

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

/* About Visual */
.about-img-wrapper {
  position: relative;
  min-height: 440px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-accent-block {
  position: absolute;
  top: 20px;
  left: 20px;
  right: 20px;
  bottom: 20px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  border-radius: var(--border-radius-lg);
  z-index: 0;
}

.about-accent-block::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: calc(var(--border-radius-lg) + 4px);
  background: linear-gradient(135deg, var(--gold), transparent 60%);
  z-index: -1;
}

.about-photo {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
}

.about-badge-float {
  position: absolute;
  bottom: -16px;
  right: 10px;
  background: var(--gold);
  color: var(--navy-dark);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 100px;
  font-size: var(--text-sm);
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(0, 166, 81, 0.45);
  z-index: 2;
  white-space: nowrap;
}

/* About Content */
.about-content .section-title { margin-bottom: 16px; }

.about-lead {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 16px;
}

.about-body {
  color: var(--text-muted);
  margin-bottom: 40px;
  line-height: 1.75;
}

.values-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.value-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.value-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--navy), var(--navy-mid));
  border-radius: var(--border-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  margin-top: 2px;
}

.value-item h3 {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}

.value-item p {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.65;
}

/* ── 9. SERVICES SECTION ──────────────────────────────────── */
.services-section {
  background: var(--off-white);
}

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

.service-card-wide {
  grid-column: span 3;
  display: grid !important;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}

/* When only 3 cards, center them nicely */
.services-grid:has(:nth-child(3):last-child) {
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.service-card {
  background: var(--white);
  border-radius: var(--border-radius);
  padding: 0;
  border: 1px solid var(--grey-100);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.service-card-img {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.service-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card:hover .service-card-img img {
  transform: scale(1.05);
}

.service-card-body {
  padding: 28px 32px 36px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(0, 166, 81, 0.25);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card:hover .service-icon-wrap {
  background: var(--navy);
  color: var(--gold);
}

.service-icon-wrap {
  width: 64px;
  height: 64px;
  background: var(--grey-50);
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  margin-bottom: 20px;
  flex-shrink: 0;
  transition: all var(--transition);
}

.service-card-wide .service-icon-wrap {
  margin-bottom: 0;
}

.service-title {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.service-desc {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.7;
  flex-grow: 1;
  margin-bottom: 24px;
}

.service-card-wide .service-desc {
  margin-bottom: 0;
  flex-grow: unset;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--gold-dark);
  transition: all var(--transition);
  margin-top: auto;
}

.service-link:hover {
  color: var(--navy);
  gap: 10px;
}

.service-link svg {
  transition: transform var(--transition);
}

.service-link:hover svg {
  transform: translateX(4px);
}

/* ── 10. WHY CHOOSE US ────────────────────────────────────── */
.why-section {
  background: var(--white);
  position: relative;
}

.why-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--off-white) 0%, var(--white) 100%);
  z-index: 0;
}

.why-section .container { position: relative; z-index: 1; }

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

.why-card {
  background: var(--white);
  border: 1px solid var(--grey-100);
  border-radius: var(--border-radius);
  padding: 36px 30px;
  transition: all var(--transition);
  position: relative;
}

.why-card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(0, 166, 81, 0.3);
  transform: translateY(-4px);
}

.why-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--navy), var(--navy-mid));
  border-radius: var(--border-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  margin-bottom: 20px;
  transition: all var(--transition);
}

.why-card:hover .why-icon {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--navy-dark);
  transform: scale(1.05);
}

.why-card h3 {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.why-card p {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.7;
}

/* ── 11. CONTACT SECTION ──────────────────────────────────── */
.contact-section {
  background: var(--off-white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 64px;
  align-items: start;
}

/* Contact Info */
.contact-info {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  border-radius: var(--border-radius-lg);
  padding: 48px 40px;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.contact-info::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 200px;
  height: 200px;
  background: rgba(0, 166, 81, 0.1);
  border-radius: 50%;
  pointer-events: none;
}

.contact-info::after {
  content: '';
  position: absolute;
  bottom: -40px;
  left: -40px;
  width: 150px;
  height: 150px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 50%;
  pointer-events: none;
}

.contact-info-title {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 32px;
  position: relative;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 40px;
  position: relative;
}

.contact-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-detail-icon {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  flex-shrink: 0;
}

.contact-detail-label {
  display: block;
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 4px;
}

.contact-detail-value {
  display: block;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--white);
  text-decoration: none;
  transition: color var(--transition);
}

.contact-detail-value:hover { color: var(--gold); }

.contact-cta-note {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  position: relative;
}

.contact-cta-note p {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.7;
}

/* Contact Form */
.contact-form-wrap {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  padding: 48px 40px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--grey-100);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group-full {
  margin-top: 4px;
}

.form-label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--navy);
}

.required {
  color: #e53e3e;
  margin-left: 2px;
}

.form-input {
  width: 100%;
  padding: 13px 16px;
  font-size: var(--text-sm);
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--grey-50);
  border: 1.5px solid var(--grey-100);
  border-radius: var(--border-radius-sm);
  transition: all var(--transition);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.form-input:focus {
  background: var(--white);
  border-color: var(--navy);
  box-shadow: 0 0 0 4px rgba(75, 45, 131, 0.08);
}

.form-input.error {
  border-color: #e53e3e;
  background: #fff5f5;
  box-shadow: 0 0 0 4px rgba(229, 62, 62, 0.08);
}

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

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.select-wrapper {
  position: relative;
}

.form-select {
  width: 100%;
  cursor: pointer;
  padding-right: 40px;
}

.select-arrow {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--grey-600);
}

.form-error {
  font-size: var(--text-xs);
  color: #e53e3e;
  font-weight: 500;
  min-height: 16px;
}

/* Submit button */
.btn-submit {
  width: 100%;
  justify-content: center;
  padding: 16px 32px;
  font-size: var(--text-base);
  position: relative;
  overflow: hidden;
}

.btn-loader {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(75, 45, 131, 0.3);
  border-top-color: var(--navy-dark);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.btn-submit.loading .btn-text { opacity: 0.6; }
.btn-submit.loading .btn-loader { display: block; }
.btn-submit.loading .btn-icon { display: none; }

.form-success {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f0fff4;
  border: 1.5px solid #68d391;
  color: #276749;
  padding: 14px 18px;
  border-radius: var(--border-radius-sm);
  font-size: var(--text-sm);
  font-weight: 500;
  margin-top: 12px;
}

/* ── 12. FOOTER ───────────────────────────────────────────── */
.site-footer {
  background: var(--navy-dark);
}

.footer-top {
  padding: 72px 0 56px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 0.8fr 1fr;
  gap: 56px;
}

.footer-brand { display: flex; flex-direction: column; gap: 20px; }

.footer-logo .logo-img {
  height: 120px;
}

.footer-logo .logo-text {
  color: var(--white);
}

.footer-tagline {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.75;
  max-width: 300px;
}

.footer-nav-title {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

.footer-nav ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-nav a {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.55);
  transition: color var(--transition);
  text-decoration: none;
}

.footer-nav a:hover { color: var(--white); }

.footer-contact address {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-contact p {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.55);
}

.footer-contact a {
  color: rgba(255, 255, 255, 0.55);
  transition: color var(--transition);
}

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

.footer-bottom {
  padding: 24px 0;
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copy,
.footer-legal {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.35);
}

/* ── 13. BACK TO TOP ──────────────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 28px;
  width: 44px;
  height: 44px;
  background: var(--gold);
  color: var(--navy-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 166, 81, 0.45);
  z-index: 900;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: all var(--transition);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--gold-light);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 166, 81, 0.55);
}

/* ── 14. SCROLL ANIMATIONS ────────────────────────────────── */
.fade-in-up {
  opacity: 0;
  transform: translateY(40px);
  animation: fadeInUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.1s forwards;
}

.fade-in-right {
  opacity: 0;
  transform: translateX(40px);
  animation: fadeInRight 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.3s forwards;
}

@keyframes fadeInUp {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInRight {
  to { opacity: 1; transform: translateX(0); }
}

/* Reveal classes toggled by Intersection Observer */
.reveal-up,
.reveal-left,
.reveal-right {
  opacity: 0;
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-up    { transform: translateY(48px); }
.reveal-left  { transform: translateX(-48px); }
.reveal-right { transform: translateX(48px); }

.revealed.reveal-up,
.revealed.reveal-left,
.revealed.reveal-right {
  opacity: 1;
  transform: none;
}

/* Stagger children in grids */
.services-grid .service-card:nth-child(2) { transition-delay: 0.1s; }
.services-grid .service-card:nth-child(3) { transition-delay: 0.2s; }
.services-grid .service-card:nth-child(4) { transition-delay: 0.05s; }
.services-grid .service-card:nth-child(5) { transition-delay: 0.15s; }
.services-grid .service-card:nth-child(6) { transition-delay: 0.25s; }
.services-grid .service-card:nth-child(7) { transition-delay: 0.1s; }

.why-grid .why-card:nth-child(2) { transition-delay: 0.1s; }
.why-grid .why-card:nth-child(3) { transition-delay: 0.2s; }
.why-grid .why-card:nth-child(4) { transition-delay: 0.05s; }
.why-grid .why-card:nth-child(5) { transition-delay: 0.15s; }
.why-grid .why-card:nth-child(6) { transition-delay: 0.25s; }

/* ── 15. RESPONSIVE ───────────────────────────────────────── */

/* Tablet: 1024px */
@media (max-width: 1024px) {
  :root {
    --section-py: 72px;
    --container-px: 32px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }

  .hero-subtitle { margin-left: auto; margin-right: auto; }

  .hero-actions { justify-content: center; }

  .hero-visual { justify-content: center; }

  .hero-card-stack {
    flex-direction: row;
    max-width: 100%;
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero-card {
    flex: 1;
    min-width: 180px;
    max-width: 220px;
  }

  .hero-card:hover { transform: translateY(-4px); }

  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }

  .stat-item:nth-child(3)::before,
  .stat-item:nth-child(4)::before { display: none; }

  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-visual { order: -1; }
  .about-img-wrapper { min-height: 300px; }

  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .service-card-wide {
    grid-column: span 2;
    grid-template-columns: auto 1fr auto;
  }

  .why-grid { grid-template-columns: repeat(2, 1fr); }

  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-info { order: 1; }
  .contact-form-wrap { order: 0; }

  .footer-top-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .footer-brand { grid-column: span 2; }
}

/* Mobile: 768px */
@media (max-width: 768px) {
  :root {
    --section-py: 56px;
    --container-px: 20px;
    --nav-height: 80px;
  }

  /* Nav */
  .hamburger { display: flex; }

  .logo-img { height: 70px; }
  .site-header.scrolled .logo-img { height: 55px; }
  .site-header.scrolled .navbar { height: 64px; }

  .nav-menu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(320px, 85vw);
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    background: #ffffff;
    padding: calc(var(--nav-height) + 24px) 28px 40px;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -8px 0 40px rgba(0, 0, 0, 0.15);
    z-index: 999;
    overflow-y: auto;
  }

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

  .nav-link {
    width: 100%;
    font-size: var(--text-base);
    padding: 14px 16px;
    border-radius: var(--border-radius-sm);
  }

  .nav-link::after { display: none; }

  .nav-link:hover,
  .nav-link.active {
    background: rgba(75, 45, 131, 0.07);
  }

  .nav-link.nav-cta {
    margin-top: 16px;
    text-align: center;
    justify-content: center;
  }

  /* Overlay */
  .nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    backdrop-filter: blur(2px);
  }

  .nav-overlay.show { display: block; }

  /* Hero */
  .hero-content {
    padding-top: 24px;
    padding-bottom: 48px;
  }

  .hero-card-stack { gap: 12px; }
  .hero-card {
    min-width: 100%;
    max-width: 100%;
    padding: 16px 20px;
  }
  .hero-card:hover { transform: none; }

  /* Stats */
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 0; }
  .stat-item { padding: 28px 16px; border: none; }
  .stat-item::before { display: none !important; }

  /* Services */
  .services-grid { grid-template-columns: 1fr; }
  .service-card-img { height: 180px; }
  .service-card-wide {
    grid-column: span 1;
    grid-template-columns: 1fr;
    display: flex !important;
    flex-direction: column;
  }
  .service-card-wide .service-icon-wrap { margin-bottom: 20px; }
  .service-card-wide .service-desc { margin-bottom: 24px; }

  /* Why */
  .why-grid { grid-template-columns: 1fr; }

  /* Contact */
  .form-row { grid-template-columns: 1fr; }
  .contact-form-wrap { padding: 28px 24px; }
  .contact-info { padding: 32px 28px; }

  /* Footer */
  .footer-top-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-brand { grid-column: span 1; }
  .footer-bottom-inner { flex-direction: column; align-items: flex-start; gap: 8px; }

  .back-to-top { bottom: 20px; right: 16px; width: 40px; height: 40px; }

  .section-title {
    font-size: var(--text-3xl);
  }
}

/* Small mobile: 480px */
@media (max-width: 480px) {
  :root {
    --container-px: 16px;
  }

  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { width: 100%; justify-content: center; }

  .hero-badge { font-size: 10px; }

  .about-icon-grid { padding: 24px; gap: 16px; }
  .aig-item { padding: 20px; }

  .contact-info { padding: 28px 20px; }
  .contact-form-wrap { padding: 24px 16px; }
}

/* ── 16. REDUCED MOTION ───────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html { scroll-behavior: auto; }

  .reveal-up,
  .reveal-left,
  .reveal-right,
  .fade-in-up,
  .fade-in-right {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

/* ── 17. PRINT ────────────────────────────────────────────── */
@media print {
  .site-header, .hamburger, .back-to-top, .hero-bg { display: none; }
  body { font-size: 12pt; color: #000; }
  .hero { min-height: auto; background: #fff; padding: 24pt 0; }
  .hero-text h1, .section-title { color: #000; }
  .section { padding: 24pt 0; }
  .stats-section { background: #f0f0f0; }
  .services-grid, .why-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid, .about-grid { grid-template-columns: 1fr; }
  .contact-info { background: #eee; color: #000; }
  .site-footer { background: #f0f0f0; color: #000; }
}
