/* =============================================================
   Atlas Electronic Solutions — style.css
   ============================================================= */

/* ── 1. CSS Variables ── */
:root {
  --navy: #0A1628;
  --navy-mid: #12213A;
  --blue: #1B6CA8;
  --blue-light: #3A8EC0;
  --blue-pale: #EDF4FA;
  --warm-white: #F9F8F5;
  --gray-100: #EDEBE7;
  --gray-200: #D9D5CF;
  --gray-500: #8A919E;
  --gray-700: #4A5568;
  --dark: #1A202C;
  --white: #FFFFFF;

  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 4px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.10);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.14);
  --transition: 0.25s ease;
  --font: 'Inter', sans-serif;
}

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

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

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

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

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

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

/* ── 3. Utilities ── */
.container {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.section {
  padding-block: 5rem;
}

.bg-warm {
  background: var(--warm-white);
}

.bg-navy {
  background: var(--navy);
  color: var(--white);
}

.bg-pale {
  background: var(--blue-pale);
}

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

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

.text-blue {
  color: var(--blue);
}

.text-muted {
  color: var(--gray-500);
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* ── 4. Typography ── */
h1, h2, h3, h4, h5 {
  line-height: 1.2;
  font-weight: 700;
  color: var(--dark);
}

h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.4rem); }
h4 { font-size: 1.1rem; }

p {
  color: var(--gray-700);
  max-width: 68ch;
}

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

.section-heading {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 1rem;
}

.section-subtext {
  font-size: 1.05rem;
  color: var(--gray-700);
  max-width: 58ch;
  line-height: 1.7;
}

/* ── 5. Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 1.625rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition),
              border-color var(--transition), transform var(--transition);
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  line-height: 1;
}

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

.btn-primary {
  background: var(--blue);
  color: var(--white);
  border: 2px solid var(--blue);
}

.btn-primary:hover {
  background: var(--blue-light);
  border-color: var(--blue-light);
}

.btn-secondary {
  background: transparent;
  color: var(--blue);
  border: 2px solid var(--blue);
}

.btn-secondary:hover {
  background: var(--blue-pale);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.55);
}

.btn-ghost:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.10);
}

.btn-white {
  background: var(--white);
  color: var(--navy);
  border: 2px solid var(--white);
  font-weight: 700;
}

.btn-white:hover {
  background: var(--gray-100);
  border-color: var(--gray-100);
}

/* ── 6. Badge ── */
.badge {
  display: inline-block;
  padding: 0.3rem 0.85rem;
  background: var(--blue-pale);
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  border-radius: 999px;
  border: 1px solid rgba(27, 108, 168, 0.18);
}

.badge-navy {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.20);
}

.badge-popular {
  background: #FFF3E0;
  color: #B45309;
  border-color: rgba(180, 83, 9, 0.18);
}

/* ── 7. Header ── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-100);
  transition: box-shadow var(--transition);
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding-block: 0.6rem;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 1.5rem;
  transition: padding-block var(--transition);
}

.site-header.scrolled .header-inner {
  padding-block: 0.4rem;
}

/* Logo */
.header-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  flex-shrink: 0;
}

/* Logo image container — white badge so the PNG shows on both light and dark headers */
.logo-img-wrap {
  width: 64px;
  height: 64px;
  background: #ffffff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  padding: 2px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.14);
}
.logo-img-wrap--footer {
  width: 52px;
  height: 52px;
  border-radius: 10px;
}
.header-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.header-logo .logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.header-logo .logo-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.01em;
}

.header-logo .logo-sub {
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--gray-500);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Nav */
.header-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: auto;
}

.header-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-700);
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  transition: color var(--transition), background var(--transition);
  text-decoration: none;
}

.header-nav a:hover {
  color: var(--blue);
  background: var(--blue-pale);
}

.header-nav a.active {
  color: var(--blue);
  font-weight: 700;
}

/* Header right */
.header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.header-phone {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--gray-700);
  text-decoration: none;
  transition: color var(--transition);
}

.header-phone:hover {
  color: var(--blue);
}

.header-right .btn {
  padding: 0.55rem 1.15rem;
  font-size: 0.88rem;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--white);
  border-top: 1px solid var(--gray-100);
  padding: 1rem 1.5rem 1.5rem;
  gap: 0.25rem;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--gray-700);
  padding: 0.6rem 0.75rem;
  border-radius: 6px;
  text-decoration: none;
  transition: color var(--transition), background var(--transition);
}

.mobile-menu a:hover,
.mobile-menu a.active {
  color: var(--blue);
  background: var(--blue-pale);
}

.mobile-menu-divider {
  height: 1px;
  background: var(--gray-100);
  margin-block: 0.5rem;
}

.mobile-menu-phone {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray-700);
  padding: 0.5rem 0.75rem;
  display: block;
}

.mobile-menu .btn {
  margin-top: 0.5rem;
  width: 100%;
  justify-content: center;
}

/* ── 8. Page offset for fixed header ── */
main {
  padding-top: 70px;
}

/* ── 9. Hero Section (Homepage) ── */
.hero {
  background: var(--navy);
  padding-block: 6rem 5rem;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
}

.hero-content {
  z-index: 1;
}

.hero-content .badge {
  margin-bottom: 1.25rem;
}

.hero-content h1 {
  color: var(--white);
  font-size: clamp(2.1rem, 4vw, 3.1rem);
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.hero-content .subtext {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.70);
  margin-bottom: 2rem;
  max-width: 52ch;
  line-height: 1.75;
}

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

.hero-image-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.10);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3;
  background: var(--navy-mid);
}

.hero-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* ── 10. Stats Bar ── */
.stats-bar {
  background: var(--white);
  border-bottom: 1px solid var(--gray-100);
  padding-block: 2.25rem;
  box-shadow: var(--shadow-sm);
}

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

.stat-item {
  text-align: center;
  padding-inline: 1.5rem;
  position: relative;
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 10%;
  height: 80%;
  width: 1px;
  background: var(--gray-200);
}

.stat-value {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 0.2rem;
}

.stat-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ── 11. Services Grid ── */
.services-intro {
  max-width: 58ch;
}

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

.service-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: transform var(--transition), border-color var(--transition),
              box-shadow var(--transition);
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--blue-light);
  box-shadow: var(--shadow-md);
}

.service-card-icon {
  width: 48px;
  height: 48px;
  background: var(--blue-pale);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  margin-bottom: 1.1rem;
}

.service-card-icon svg {
  width: 24px;
  height: 24px;
}

.service-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.45rem;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--gray-500);
  line-height: 1.6;
  max-width: none;
}

.service-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--blue);
  margin-top: 1rem;
  text-decoration: none;
  transition: gap var(--transition);
}

.service-card-link:hover {
  gap: 0.55rem;
}

/* ── 12. Process Steps ── */
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
  position: relative;
}

.process-connector {
  position: absolute;
  top: 27px;
  left: calc(16.66% + 1.5rem);
  right: calc(16.66% + 1.5rem);
  height: 1px;
  background: var(--gray-200);
  z-index: 0;
}

.process-step {
  text-align: center;
  position: relative;
  z-index: 1;
}

.process-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--blue);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--blue);
  margin-bottom: 1.25rem;
  position: relative;
  z-index: 2;
}

.process-step h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.process-step p {
  font-size: 0.9rem;
  color: var(--gray-500);
  max-width: 28ch;
  margin-inline: auto;
  line-height: 1.65;
}

/* ── 13. Split Layout ── */
.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.split-layout.reverse {
  direction: rtl;
}

.split-layout.reverse > * {
  direction: ltr;
}

.split-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3;
  background: var(--gray-100);
}

.split-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.split-content .section-label {
  margin-bottom: 0.75rem;
}

.split-content h2 {
  margin-bottom: 1rem;
}

.split-content > p {
  margin-bottom: 2rem;
  color: var(--gray-700);
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.feature-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--blue-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  flex-shrink: 0;
}

.feature-icon svg {
  width: 20px;
  height: 20px;
}

.feature-text h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.15rem;
}

.feature-text p {
  font-size: 0.88rem;
  color: var(--gray-500);
  line-height: 1.55;
  max-width: none;
}

/* ── 14. Testimonials ── */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.testimonial-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.testimonial-stars {
  color: #C08000;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
}

.testimonial-quote {
  font-size: 0.95rem;
  color: var(--gray-700);
  line-height: 1.75;
  font-style: italic;
  max-width: none;
  flex: 1;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  border-top: 1px solid var(--gray-100);
  padding-top: 1rem;
}

.testimonial-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--dark);
}

.testimonial-location {
  font-size: 0.8rem;
  color: var(--gray-500);
}

/* ── 15. CTA Banner ── */
.cta-banner {
  background: var(--navy);
  padding-block: 5rem;
  text-align: center;
}

.cta-banner h2 {
  color: var(--white);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  margin-bottom: 0.85rem;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 1.05rem;
  max-width: 52ch;
  margin-inline: auto;
  margin-bottom: 2rem;
}

.cta-banner .btn-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── 16. Page Hero (Inner Pages) ── */
.page-hero {
  background: var(--navy);
  padding-top: calc(8rem + 70px);
  padding-bottom: 5rem;
  text-align: center;
}

.page-hero .badge {
  margin-bottom: 1.25rem;
}

.page-hero h1 {
  color: var(--white);
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 0.85rem;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 1.1rem;
  max-width: 55ch;
  margin-inline: auto;
}

/* ── 17. Service Detail Sections ── */
.service-detail-section {
  padding-block: 5rem;
}

.service-detail-section.bg-warm {
  background: var(--warm-white);
}

.service-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4.5rem;
  align-items: center;
}

.service-detail-grid.reverse {
  direction: rtl;
}

.service-detail-grid.reverse > * {
  direction: ltr;
}

.service-detail-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--gray-100);
  aspect-ratio: 4 / 3;
}

.service-detail-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.img-placeholder {
  width: 100%;
  height: 100%;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: var(--gray-100);
  color: var(--gray-500);
  font-size: 0.85rem;
  font-weight: 500;
}

.img-placeholder svg {
  width: 40px;
  height: 40px;
  opacity: 0.35;
}

.service-detail-content .badge {
  margin-bottom: 1rem;
}

.service-detail-content h2 {
  margin-bottom: 1rem;
}

.service-detail-content > p {
  margin-bottom: 1.5rem;
  color: var(--gray-700);
}

.service-bullets {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-bottom: 2rem;
}

.service-bullets li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.93rem;
  color: var(--gray-700);
}

.service-bullets li::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  flex-shrink: 0;
}

/* ── 18. Contact Page ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.65fr;
  gap: 3rem;
  align-items: start;
}

.contact-info-card {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
}

.contact-info-card h3 {
  color: var(--white);
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-info-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact-info-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.10);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  flex-shrink: 0;
}

.contact-info-icon svg {
  width: 18px;
  height: 18px;
}

.contact-info-text strong {
  display: block;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 0.25rem;
}

.contact-info-text span,
.contact-info-text a {
  font-size: 0.93rem;
  color: rgba(255, 255, 255, 0.85);
  display: block;
  line-height: 1.55;
  text-decoration: none;
}

.contact-info-text a:hover {
  color: var(--white);
}

/* Contact Form */
.contact-form-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
}

.contact-form-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.4rem;
}

.form-subtitle {
  font-size: 0.9rem;
  color: var(--gray-500);
  margin-bottom: 2rem;
  max-width: none;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.15rem;
}

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

.form-group input,
.form-group textarea,
.form-group select {
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--dark);
  background: var(--warm-white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 0.7rem 0.9rem;
  transition: border-color var(--transition), background var(--transition);
  width: 100%;
  outline: none;
  -webkit-appearance: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--blue);
  background: var(--white);
}

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

.form-submit {
  width: 100%;
  justify-content: center;
  padding-block: 0.85rem;
  font-size: 1rem;
}

/* Map */
.map-section {
  padding-block: 3rem 5rem;
}
.map-embed {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.map-placeholder {
  height: 400px;
  background: var(--gray-100);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: var(--gray-500);
  font-size: 0.95rem;
  font-weight: 500;
  border: 1px solid var(--gray-200);
}

.map-placeholder svg {
  width: 36px;
  height: 36px;
  opacity: 0.4;
}

/* ── 19. About Page ── */
.about-story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-story-content h2 {
  margin-bottom: 1.25rem;
}

.about-story-content p {
  margin-bottom: 1rem;
  color: var(--gray-700);
}

.about-story-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3;
  background: var(--gray-100);
}

.about-story-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Pull quote */
.pull-quote {
  background: var(--navy);
  padding-block: 4.5rem;
  text-align: center;
}

.pull-quote blockquote {
  font-size: clamp(1.3rem, 2.5vw, 1.85rem);
  font-weight: 700;
  color: var(--white);
  max-width: 700px;
  margin-inline: auto;
  line-height: 1.38;
  font-style: italic;
  position: relative;
  padding-inline: 2rem;
}

.pull-quote blockquote::before {
  content: '\201C';
  position: absolute;
  left: -0.5rem;
  top: -0.5rem;
  font-size: 5rem;
  line-height: 1;
  color: rgba(255, 255, 255, 0.15);
  font-style: normal;
}

/* Values grid */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.value-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: transform var(--transition), box-shadow var(--transition);
}

.value-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.value-icon {
  width: 52px;
  height: 52px;
  background: var(--blue-pale);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  margin-bottom: 1.25rem;
}

.value-icon svg {
  width: 26px;
  height: 26px;
}

.value-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.value-card p {
  font-size: 0.9rem;
  color: var(--gray-500);
  line-height: 1.65;
  max-width: none;
}

/* Stats row (about page) */
.about-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 3.5rem;
  text-align: center;
}

.about-stat {
  padding: 2rem 1rem;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--gray-100);
}

.about-stat .stat-number {
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.about-stat .stat-desc {
  font-size: 0.85rem;
  color: var(--gray-500);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

/* ── 20. Footer ── */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.70);
}

.footer-main {
  padding-block: 4.5rem 3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  gap: 3rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
  text-decoration: none;
}

.footer-logo .logo-icon {
  width: 36px;
  height: 36px;
  background: var(--blue);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  flex-shrink: 0;
}

.footer-logo .logo-icon svg {
  width: 20px;
  height: 20px;
}

.footer-logo .logo-name {
  font-size: 1rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.01em;
  display: block;
}

.footer-logo .logo-sub {
  font-size: 0.63rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.40);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: block;
}

.footer-tagline {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.50);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  max-width: 30ch;
}

.social-links {
  display: flex;
  gap: 0.6rem;
}

.social-link {
  width: 36px;
  height: 36px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.60);
  transition: background var(--transition), color var(--transition);
  text-decoration: none;
}

.social-link svg {
  width: 16px;
  height: 16px;
}

.social-link:hover {
  background: var(--blue);
  color: var(--white);
}

.footer-col h4 {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1.25rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

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

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

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.footer-contact-item {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
}

.footer-contact-item svg {
  width: 15px;
  height: 15px;
  color: var(--blue-light);
  flex-shrink: 0;
  margin-top: 4px;
}

.footer-contact-item span,
.footer-contact-item a {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.55;
  text-decoration: none;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-block: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-copyright {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.35);
}

/* ── 21. Reveal Animations ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.delay-1 { transition-delay: 100ms; }
.delay-2 { transition-delay: 200ms; }
.delay-3 { transition-delay: 300ms; }
.delay-4 { transition-delay: 400ms; }

/* ── 22. Responsive ── */

/* Tablet: 1024px */
@media (max-width: 1024px) {
  .header-nav {
    display: none;
  }

  .header-phone {
    display: none;
  }

  .header-right .btn {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }

  .hero-content .subtext {
    margin-inline: auto;
  }

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

  .hero-image {
    max-width: 520px;
    margin-inline: auto;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem 0;
  }

  .stat-item:not(:last-child)::after {
    display: none;
  }

  .stat-item:nth-child(1),
  .stat-item:nth-child(2) {
    border-bottom: 1px solid var(--gray-200);
    padding-bottom: 1.5rem;
  }

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

  .process-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .process-connector {
    display: none;
  }

  .process-step {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    text-align: left;
  }

  .process-number {
    margin-bottom: 0;
    flex-shrink: 0;
  }

  .process-step p {
    margin-inline: 0;
  }

  .split-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .split-layout.reverse {
    direction: ltr;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-inline: auto;
  }

  .service-detail-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .service-detail-grid.reverse {
    direction: ltr;
  }

  .about-story-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

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

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

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* Mobile: 768px */
@media (max-width: 768px) {
  html {
    font-size: 16px;
  }

  .section {
    padding-block: 3.5rem;
  }

  .hero {
    padding-block: 4rem 3.5rem;
  }

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

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

  .testimonials-grid {
    max-width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

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

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

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

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

  .cta-banner .btn-group {
    flex-direction: column;
    align-items: center;
  }

  .page-hero {
    padding-top: calc(5rem + 70px);
    padding-bottom: 3.5rem;
  }

  .pull-quote {
    padding-block: 3rem;
  }

  .about-stats-row {
    grid-template-columns: 1fr 1fr;
  }
}

/* ═══════════════════════════════════════════════════════════
   SCROLL-STOP SHOWCASE — CSS Variables
══════════════════════════════════════════════════════════════ */
:root {
  --sa-accent:     #3A7CA5;
  --sa-gold:       #D4AF37;
  --sa-bg:         #0A1628;
  --sa-accent-rgb: 58, 124, 165;
  --sa-gold-rgb:   212, 175, 55;
}

/* ── Scroll Progress Bar ── */
#atlasScrollProgress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--sa-accent), var(--sa-gold));
  z-index: 10001;
  transition: width 0.1s linear;
  pointer-events: none;
}

/* ── Loader ── */
#atlasLoader {
  position: fixed;
  inset: 0;
  background: var(--sa-bg);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease;
}
#atlasLoader.hidden { opacity: 0; pointer-events: none; }

.atlas-loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}
.atlas-loader-brand {
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  font-family: 'Space Grotesk', 'Inter', sans-serif;
}
.atlas-loader-brand span { color: var(--sa-accent); }
.atlas-loader-text {
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  max-width: none;
}
.atlas-loader-track {
  width: 200px; height: 2px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  overflow: hidden;
}
.atlas-loader-fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--sa-accent), var(--sa-gold));
  border-radius: 2px;
  transition: width 0.2s ease;
}

/* ── Starscape ── */
#atlasStarscape {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0.65;
}

/* ── Scroll Showcase Section ── */
.scroll-showcase {
  height: 200vh;
  background: var(--sa-bg);
  position: relative;
  z-index: 1;
}
/* Gradient bridge from dark showcase → white stats bar */
.scroll-showcase::after {
  content: '';
  display: block;
  height: 80px;
  background: linear-gradient(to bottom, var(--sa-bg), #ffffff);
  position: absolute;
  bottom: 0; left: 0; right: 0;
  pointer-events: none;
  z-index: 2;
}
.scroll-showcase-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}
#atlasFrameCanvas {
  position: absolute;
  top: 0; left: 0;
  z-index: 1;
}

/* Orbs + grid overlay */
.sa-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}
.sa-orb-1 { width: 500px; height: 500px; background: rgba(58,124,165,0.14); top: -180px; right: -80px; }
.sa-orb-2 { width: 400px; height: 400px; background: rgba(212,175,55,0.07); bottom: -130px; left: -80px; }
.sa-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.013) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.013) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

/* Bottom gradient vignette — protects intro text from video bleed-through */
.scroll-showcase-sticky::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10, 22, 40, 0.90) 0%,
    rgba(10, 22, 40, 0.55) 25%,
    rgba(10, 22, 40, 0.10) 55%,
    transparent 80%
  );
  z-index: 4;
  pointer-events: none;
}

/* Showcase intro overlay — bottom-left, Apple style */
.showcase-intro {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  text-align: left;
  z-index: 5;
  padding: 0 5vw 7vh 5vw;
  pointer-events: none;
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.showcase-intro.faded {
  opacity: 0;
  transform: translateY(-18px);
  pointer-events: none;
}
.showcase-badge {
  display: inline-block;
  padding: 0.3rem 1rem;
  background: rgba(58,124,165,0.18);
  border: 1px solid rgba(58,124,165,0.38);
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sa-accent);
  margin-bottom: 1.2rem;
}
.showcase-title {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  text-shadow: 0 2px 32px rgba(0,0,0,0.7), 0 1px 4px rgba(0,0,0,0.5);
}
.showcase-title .gold { color: var(--sa-gold); }
.showcase-sub {
  font-size: 1rem;
  color: rgba(255,255,255,0.72);
  max-width: 44ch;
  line-height: 1.65;
  margin-bottom: 2rem;
  text-shadow: 0 1px 12px rgba(0,0,0,0.6);
}
.showcase-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: flex-start;
  margin-bottom: 1.5rem;
  pointer-events: auto;
}

.scroll-hint {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
}
.scroll-hint-arrow {
  width: 18px; height: 18px;
  border-right: 2px solid rgba(255,255,255,0.28);
  border-bottom: 2px solid rgba(255,255,255,0.28);
  transform: rotate(45deg);
  animation: bounceArrow 1.6s ease-in-out infinite;
}
@keyframes bounceArrow {
  0%, 100% { transform: rotate(45deg) translateY(0);   opacity: 0.35; }
  50%       { transform: rotate(45deg) translateY(5px); opacity: 1;    }
}

/* Annotation cards */
.ac-card {
  position: absolute;
  bottom: 8vh;
  left: 5vw;
  max-width: 340px;
  background: rgba(8, 18, 34, 0.72);
  border: 1px solid rgba(58,124,165,0.28);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: 20px;
  padding: 24px;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.38s ease, transform 0.38s ease;
  pointer-events: none;
  z-index: 10;
}
.ac-card.visible { opacity: 1; transform: translateY(0); }
.ac-number {
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--sa-gold);
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}
.ac-title {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: 1.12rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
  line-height: 1.3;
}
.ac-desc {
  font-size: 0.84rem;
  color: rgba(255,255,255,0.52);
  line-height: 1.55;
  margin-bottom: 14px;
  max-width: none;
}
.ac-stat-num {
  display: block;
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--sa-accent);
  line-height: 1.1;
}
.ac-stat-lbl {
  display: block;
  font-size: 0.74rem;
  color: rgba(255,255,255,0.38);
  margin-top: 2px;
}

@media (max-width: 768px) {
  .scroll-showcase { height: 170vh; }

  /* On mobile: annotation cards sit at the bottom, so intro goes to the top */
  .showcase-intro {
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    padding: 8vh 1.5rem 2rem;
  }
  .showcase-ctas { justify-content: center; }
  .scroll-hint   { align-items: center; }

  /* Stronger top vignette on mobile so intro text stays readable */
  .scroll-showcase-sticky::after {
    background: linear-gradient(
      to bottom,
      rgba(10, 22, 40, 0.88) 0%,
      rgba(10, 22, 40, 0.60) 35%,
      rgba(10, 22, 40, 0.15) 65%,
      rgba(10, 22, 40, 0.80) 90%,
      rgba(10, 22, 40, 0.88) 100%
    );
  }

  .ac-card {
    bottom: 1.5vh; left: 2vw; right: 2vw;
    max-width: none; padding: 11px 15px;
    display: flex; align-items: center; gap: 10px;
    border-radius: 13px;
    background: rgba(10, 22, 40, 0.82);
    border-color: rgba(58,124,165,0.40);
  }
  .ac-desc, .ac-stat-num, .ac-stat-lbl { display: none; }
  .ac-number { margin-bottom: 0; }
  .ac-title  { font-size: 0.92rem; margin-bottom: 0; }

  /* Fade stats bar from navy to white on mobile */
  .stats-bar {
    background: linear-gradient(to bottom, rgba(10,22,40,0.08) 0%, var(--white) 40px);
    border-top: 1px solid rgba(10,22,40,0.12);
    border-bottom: 1px solid var(--gray-100);
  }
}
@media (min-width: 769px) and (max-width: 1024px) {
  .scroll-showcase { height: 185vh; }
}

/* Short/vertical windows — shrink intro text so it doesn't crowd the animation */
@media (max-height: 700px) and (min-width: 769px) {
  .showcase-intro {
    padding-bottom: 4vh;
  }
  .showcase-badge { display: none; }
  .showcase-title {
    font-size: clamp(1.5rem, 3.5vw, 2.4rem);
    margin-bottom: 0.5rem;
  }
  .showcase-sub   { display: none; }
  .showcase-ctas  { margin-bottom: 0.6rem; }
  .scroll-hint    { display: none; }
}
@media (max-height: 560px) and (min-width: 769px) {
  .showcase-intro { padding-bottom: 2.5vh; }
  .showcase-title { font-size: 1.4rem; margin-bottom: 0.4rem; }
  .showcase-ctas  { gap: 0.5rem; }
}

/* ═══════════════════════════════════════════════════════════
   SPECS SECTION (dark)
══════════════════════════════════════════════════════════════ */
.specs-section {
  background: var(--sa-bg);
  padding-block: 5rem;
  position: relative;
  overflow: hidden;
}
.specs-section::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(58,124,165,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(58,124,165,0.025) 1px, transparent 1px);
  background-size: 50px 50px;
}
.specs-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sa-accent);
  margin-bottom: 0.6rem;
  display: block;
}
.specs-heading {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 3rem;
}
.specs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  position: relative;
  z-index: 1;
}
.spec-item-dark {
  text-align: center;
  padding: 2.25rem 1.5rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.065);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: border-color 0.3s ease;
}
.spec-item-dark:hover { border-color: rgba(58,124,165,0.3); }
.spec-number-dark {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: 3rem;
  font-weight: 800;
  color: #fff;
  display: block;
  line-height: 1.1;
  margin-bottom: 0.4rem;
  transition: text-shadow 0.3s ease;
}
.spec-number-dark.counting {
  text-shadow: 0 0 26px rgba(var(--sa-accent-rgb), 0.6);
}
.spec-label-dark {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.42);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
@media (max-width: 768px) {
  .specs-grid { grid-template-columns: repeat(2, 1fr); }
  .spec-number-dark { font-size: 2.2rem; }
}

/* ═══════════════════════════════════════════════════════════
   CARD SCANNER SECTION (Three.js)
══════════════════════════════════════════════════════════════ */
.card-scanner-section {
  background: var(--sa-bg);
  padding-block: 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.card-scanner-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sa-accent);
  margin-bottom: 0.6rem;
  display: block;
}
.card-scanner-heading {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.7rem;
}
.card-scanner-sub {
  font-size: 0.98rem;
  color: rgba(255,255,255,0.48);
  max-width: 46ch;
  margin-inline: auto;
  margin-bottom: 2.5rem;
}
#atlasScanner {
  display: block;
  margin: 0 auto;
  width: 100%;
  max-width: 580px;
  height: 400px;
}
@media (max-width: 768px) { #atlasScanner { height: 280px; } }

/* ═══════════════════════════════════════════════════════════
   CONFETTI CANVAS
══════════════════════════════════════════════════════════════ */
#atlasConfetti {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 9998;
}
