/* ============================================================
   ATONIX ENGINEERING — Main Stylesheet
   Brand: Navy (#0A1F44) + Orange (#F26522)
   Fonts: Bricolage Grotesque (display) + Outfit (body)
   ============================================================ */

/* ---- CSS VARIABLES ---- */
:root {
  /* Brand */
  --atonix-navy:         #0A1F44;
  --atonix-navy-deep:    #061633;
  --atonix-navy-light:   #13305F;
  --atonix-orange:       #F26522;
  --atonix-orange-hover: #D8541A;
  --atonix-orange-soft:  #FEEEE3;

  /* Neutrals */
  --white:        #FFFFFF;
  --off-white:    #F7F8FA;
  --light-gray:   #E5E7EB;
  --border-gray:  #D8DCE3;
  --mid-gray:     #6B7280;
  --text-gray:    #4B5563;
  --dark-gray:    #1F2937;

  /* Semantic */
  --success:      #10B981;
  --whatsapp:     #25D366;
  --whatsapp-hover: #1DA851;

  /* Shadows */
  --shadow-sm:  0 2px 8px rgba(10, 31, 68, 0.06);
  --shadow-md:  0 8px 24px rgba(10, 31, 68, 0.10);
  --shadow-lg:  0 20px 48px rgba(10, 31, 68, 0.18);
  --shadow-orange: 0 12px 32px rgba(242, 101, 34, 0.25);

  /* Layout */
  --container-max: 1240px;
  --container-pad: 24px;
  --nav-height:    78px;

  /* Type */
  --font-display: 'Bricolage Grotesque', system-ui, sans-serif;
  --font-body:    'Outfit', system-ui, -apple-system, sans-serif;

  /* Motion */
  --ease:         cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out:     cubic-bezier(0.16, 1, 0.3, 1);
  --duration:     300ms;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--dark-gray);
  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(--duration) var(--ease);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
}

ul { list-style: none; padding: 0; margin: 0; }

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

::selection {
  background: var(--atonix-orange);
  color: var(--white);
}

/* ---- LAYOUT ---- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.section {
  padding-block: 100px;
  position: relative;
}

.section--alt {
  background: var(--off-white);
}

.section__head {
  max-width: 760px;
  margin-bottom: 60px;
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--atonix-navy);
  margin: 12px 0 16px;
}

.section__lead {
  font-size: 1.1rem;
  color: var(--text-gray);
  max-width: 600px;
  margin: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--atonix-orange);
  text-transform: uppercase;
}

.eyebrow::before {
  content: '';
  width: 32px;
  height: 2px;
  background: var(--atonix-orange);
  display: inline-block;
}

.accent { color: var(--atonix-orange); }

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 6px;
  transition: all var(--duration) var(--ease);
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
}

.btn--sm { padding: 10px 18px; font-size: 0.85rem; }
.btn--lg { padding: 16px 32px; font-size: 1rem; }

.btn--orange {
  background: var(--atonix-orange);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(242, 101, 34, 0.3);
}
.btn--orange:hover {
  background: var(--atonix-orange-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-orange);
}

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

.btn--whatsapp {
  background: var(--whatsapp);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
}
.btn--whatsapp:hover {
  background: var(--whatsapp-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(37, 211, 102, 0.35);
}

/* ============================================================
   NAVBAR
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  background: transparent;
  transition: background var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}

.nav--scrolled {
  background: var(--atonix-navy);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
}

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

.nav__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
}

.nav__logo-mark {
  width: 36px;
  height: 36px;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav__brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.nav__brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.04em;
}

.nav__brand-sub {
  font-size: 0.62rem;
  letter-spacing: 0.25em;
  color: var(--atonix-orange);
  margin-top: 2px;
}

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

.nav__list {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-right: 16px;
}

.nav__link {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 10px 16px;
  position: relative;
  transition: color var(--duration) var(--ease);
}

.nav__link:hover { color: var(--white); }

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 16px;
  right: 16px;
  height: 2px;
  background: var(--atonix-orange);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--duration) var(--ease);
}

.nav__link:hover::after,
.nav__link.is-active::after { transform: scaleX(1); }

/* Real logo image */
.nav__logo-img {
  height: 44px;
  width: auto;
  display: block;
  object-fit: contain;
}

.nav__toggle {
  display: none;
  width: 40px;
  height: 40px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  align-items: center;
}

.nav__toggle span {
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: all var(--duration) var(--ease);
  border-radius: 2px;
}

.nav__toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  background: linear-gradient(135deg, var(--atonix-navy-deep) 0%, var(--atonix-navy) 50%, var(--atonix-navy-light) 100%);
  color: var(--white);
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--nav-height);
}

.hero__pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.08) 1px, transparent 0);
  background-size: 32px 32px;
  opacity: 0.6;
  pointer-events: none;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(242, 101, 34, 0.15) 0%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}

.hero__accent {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 35%;
  pointer-events: none;
}

.hero__accent svg {
  width: 100%;
  height: 100%;
}

.hero__container {
  position: relative;
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
  z-index: 2;
}

.hero__content {
  max-width: 760px;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  color: var(--atonix-orange);
  margin: 0 0 28px;
  text-transform: uppercase;
}

.hero__eyebrow-dot {
  width: 8px;
  height: 8px;
  background: var(--atonix-orange);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--atonix-orange);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(0.8); }
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, 6rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin: 0 0 32px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero__title-line { display: block; }

.hero__title-line--accent {
  color: var(--atonix-orange);
  position: relative;
  width: fit-content;
}

.hero__title-line--accent::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 100px;
  height: 4px;
  background: var(--atonix-orange);
}

.hero__subtitle {
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 40px;
  max-width: 560px;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 60px;
}

.hero__trust {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.6);
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.hero__trust-divider {
  color: var(--atonix-orange);
  font-size: 0.6rem;
}

.hero__scroll {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  z-index: 3;
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.5), transparent);
  animation: scroll-line 2s ease-in-out infinite;
}

@keyframes scroll-line {
  0%, 100% { opacity: 0.3; }
  50%      { opacity: 1; }
}

/* ============================================================
   ABOUT
   ============================================================ */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.about__lead p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-gray);
  margin: 0 0 20px;
}

.about__lead strong {
  color: var(--atonix-navy);
  font-weight: 600;
}

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

.pillar-card {
  background: var(--white);
  border: 1px solid var(--border-gray);
  border-left: 4px solid var(--atonix-orange);
  padding: 28px 32px;
  border-radius: 4px;
  transition: all var(--duration) var(--ease);
  position: relative;
}

.pillar-card:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-md);
  border-color: var(--atonix-orange);
}

.pillar-card__num {
  position: absolute;
  top: 20px;
  right: 28px;
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--off-white);
  line-height: 1;
  letter-spacing: -0.02em;
}

.pillar-card__title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--atonix-navy);
  margin: 0 0 8px;
}

.pillar-card__text {
  font-size: 0.97rem;
  line-height: 1.6;
  color: var(--text-gray);
  margin: 0;
  max-width: 95%;
}

/* ============================================================
   SERVICES
   ============================================================ */
.services__pillars {
  display: grid;
  grid-template-columns: 1fr 1.05fr 1fr;
  gap: 24px;
  margin-bottom: 100px;
}

.service-pillar {
  background: var(--white);
  border: 1px solid var(--border-gray);
  border-radius: 8px;
  padding: 40px 32px;
  transition: all var(--duration) var(--ease);
  position: relative;
  overflow: hidden;
}

.service-pillar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--atonix-orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 500ms var(--ease-out);
}

.service-pillar:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

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

.service-pillar--featured {
  background: var(--atonix-navy);
  color: var(--white);
  border-color: var(--atonix-navy);
}

.service-pillar--featured::before { background: var(--atonix-orange); transform: scaleX(1); }

.service-pillar__icon {
  width: 64px;
  height: 64px;
  background: var(--atonix-orange-soft);
  color: var(--atonix-orange);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.service-pillar__icon svg { width: 32px; height: 32px; }

.service-pillar--featured .service-pillar__icon {
  background: rgba(242, 101, 34, 0.15);
}

.service-pillar__title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--atonix-navy);
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}

.service-pillar--featured .service-pillar__title { color: var(--white); }

.service-pillar__intro {
  font-size: 0.97rem;
  line-height: 1.6;
  color: var(--text-gray);
  margin: 0 0 24px;
}

.service-pillar--featured .service-pillar__intro {
  color: rgba(255, 255, 255, 0.8);
}

.service-pillar__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.service-pillar__list li {
  position: relative;
  padding-left: 22px;
  font-size: 0.92rem;
  color: var(--text-gray);
  line-height: 1.5;
}

.service-pillar__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  background: var(--atonix-orange);
  border-radius: 50%;
}

.service-pillar--featured .service-pillar__list li {
  color: rgba(255, 255, 255, 0.85);
}

/* Six category cards */
.services__categories-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--atonix-navy);
  margin: 0 0 32px;
  text-align: center;
  letter-spacing: -0.01em;
}

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

.cat-card {
  background: var(--white);
  border: 1px solid var(--border-gray);
  border-radius: 6px;
  padding: 28px 24px;
  transition: all var(--duration) var(--ease);
}

.cat-card:hover {
  border-color: var(--atonix-orange);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.cat-card__icon {
  width: 48px;
  height: 48px;
  background: var(--atonix-navy);
  color: var(--white);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  transition: background var(--duration) var(--ease);
}

.cat-card:hover .cat-card__icon { background: var(--atonix-orange); }

.cat-card__icon svg { width: 24px; height: 24px; }

.cat-card h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--atonix-navy);
  margin: 0 0 6px;
}

.cat-card p {
  font-size: 0.88rem;
  color: var(--text-gray);
  margin: 0;
  line-height: 1.5;
}

/* ============================================================
   WHY US
   ============================================================ */
.why-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin-bottom: 80px;
}

.why-card {
  text-align: center;
  padding: 32px 20px;
  background: var(--white);
  border: 1px solid var(--border-gray);
  border-radius: 8px;
  transition: all var(--duration) var(--ease);
  position: relative;
}

.why-card::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 50%;
  width: 0;
  height: 3px;
  background: var(--atonix-orange);
  transform: translateX(-50%);
  transition: width 400ms var(--ease-out);
}

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

.why-card:hover::after { width: 100%; }

.why-card__icon {
  width: 56px;
  height: 56px;
  background: var(--atonix-navy);
  color: var(--atonix-orange);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  transition: all var(--duration) var(--ease);
}

.why-card__icon svg { width: 26px; height: 26px; }

.why-card:hover .why-card__icon {
  background: var(--atonix-orange);
  color: var(--white);
  transform: scale(1.08);
}

.why-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--atonix-navy);
  margin: 0 0 8px;
}

.why-card p {
  font-size: 0.88rem;
  color: var(--text-gray);
  margin: 0;
  line-height: 1.5;
}

.why-slogan {
  background: var(--atonix-orange);
  color: var(--white);
  padding: 28px 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1rem, 2vw, 1.4rem);
  letter-spacing: 0.06em;
  text-align: center;
}

.why-slogan__bolt {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  align-items: start;
}

.contact__info {
  background: var(--atonix-navy);
  color: var(--white);
  padding: 40px 36px;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}

.contact__info::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(242, 101, 34, 0.18) 0%, transparent 70%);
  filter: blur(20px);
}

.contact__info h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0 0 28px;
  position: relative;
}

.contact__list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
}

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

.contact__icon {
  width: 42px;
  height: 42px;
  background: rgba(242, 101, 34, 0.15);
  color: var(--atonix-orange);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact__icon svg { width: 20px; height: 20px; }

.contact__item > div { display: flex; flex-direction: column; gap: 2px; }

.contact__label {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 600;
}

.contact__item a,
.contact__item span:not(.contact__label) {
  color: var(--white);
  font-size: 0.98rem;
  font-weight: 500;
  word-break: break-word;
}

.contact__item a:hover { color: var(--atonix-orange); }

.contact__social {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  position: relative;
}

.contact__social-label {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 600;
  display: block;
  margin-bottom: 14px;
}

.contact__social-icons { display: flex; gap: 10px; }

.contact__social-icons a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: all var(--duration) var(--ease);
}

.contact__social-icons a:hover {
  background: var(--atonix-orange);
  transform: translateY(-3px);
}

.contact__social-icons svg { width: 18px; height: 18px; }

/* Contact form */
.contact__form-wrap {
  background: var(--white);
  border: 1px solid var(--border-gray);
  border-radius: 12px;
  padding: 40px;
  box-shadow: var(--shadow-sm);
}

.contact__form { display: flex; flex-direction: column; gap: 22px; }

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form__field { display: flex; flex-direction: column; gap: 8px; }

.form__field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--atonix-navy);
}

.form__field label span {
  color: var(--atonix-orange);
  margin-left: 2px;
}

.form__field input,
.form__field select,
.form__field textarea {
  padding: 12px 14px;
  border: 1.5px solid var(--border-gray);
  border-radius: 6px;
  background: var(--white);
  color: var(--dark-gray);
  font-size: 0.95rem;
  transition: all var(--duration) var(--ease);
  font-family: inherit;
}

.form__field input::placeholder,
.form__field textarea::placeholder {
  color: var(--mid-gray);
}

.form__field input:focus,
.form__field select:focus,
.form__field textarea:focus {
  outline: none;
  border-color: var(--atonix-orange);
  box-shadow: 0 0 0 3px rgba(242, 101, 34, 0.12);
}

.form__field textarea {
  resize: vertical;
  min-height: 110px;
  font-family: inherit;
}

.form__hint {
  font-size: 0.85rem;
  color: var(--mid-gray);
  margin: 6px 0 -6px;
  text-align: center;
}

.form__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form__status {
  min-height: 24px;
  font-size: 0.92rem;
  font-weight: 500;
  text-align: center;
  padding: 0 6px;
}

.form__status.is-success { color: var(--success); }
.form__status.is-error   { color: #DC2626; }
.form__status.is-info    { color: var(--text-gray); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--atonix-navy-deep);
  color: rgba(255, 255, 255, 0.7);
  padding: 70px 0 0;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--atonix-orange), transparent);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 48px;
  margin-bottom: 56px;
}

.footer__col h4,
.footer__heading {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer__heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background: var(--atonix-orange);
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  margin-bottom: 18px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: 0.04em;
}

.footer__brand em {
  font-style: normal;
  font-weight: 400;
  font-size: 0.9rem;
  color: var(--atonix-orange);
  letter-spacing: 0.1em;
}

.footer__logo-mark {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.footer__logo-img {
  height: 42px;
  width: auto;
  display: block;
  object-fit: contain;
  margin-bottom: 18px;
}

.footer__tagline {
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 0 0 24px;
  max-width: 360px;
}

.footer__social {
  display: flex;
  gap: 10px;
}

.footer__social a {
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: all var(--duration) var(--ease);
}

.footer__social a:hover {
  background: var(--atonix-orange);
  transform: translateY(-3px);
}

.footer__social svg { width: 18px; height: 18px; }

.footer__links,
.footer__contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.93rem;
  transition: all var(--duration) var(--ease);
  display: inline-block;
}

.footer__links a:hover {
  color: var(--atonix-orange);
  transform: translateX(4px);
}

.footer__contact li {
  font-size: 0.93rem;
  color: rgba(255, 255, 255, 0.75);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.86rem;
}

.footer__bottom p { margin: 0; }

.footer__slogan {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--atonix-orange) !important;
  letter-spacing: 0.06em;
}

/* ============================================================
   FLOATING WHATSAPP
   ============================================================ */
.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  background: var(--whatsapp);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  transition: all var(--duration) var(--ease);
}

.wa-float::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--whatsapp);
  z-index: -1;
  animation: wa-pulse 2.5s ease-out infinite;
}

@keyframes wa-pulse {
  0%   { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.5); opacity: 0; }
}

.wa-float:hover {
  background: var(--whatsapp-hover);
  transform: scale(1.08);
}

.wa-float svg {
  width: 30px;
  height: 30px;
}

/* Print: hide chrome */
@media print {
  .nav, .wa-float, .hero__scroll { display: none; }
}

/* ============================================================
   HERO — Slideshow
   ============================================================ */
.hero__slides {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1400ms cubic-bezier(0.4, 0, 0.2, 1);
}

.hero__slide.is-active {
  opacity: 1;
}

.hero__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  display: block;
  opacity: 0.35;
  transform-origin: center center;
}

/* Ken Burns — each slide gets a different pan/zoom direction */
.hero__slide:nth-child(1).is-active img { animation: kb-1 8000ms ease-in-out forwards; }
.hero__slide:nth-child(2).is-active img { animation: kb-2 8000ms ease-in-out forwards; }
.hero__slide:nth-child(3).is-active img { animation: kb-3 8000ms ease-in-out forwards; }
.hero__slide:nth-child(4).is-active img { animation: kb-4 8000ms ease-in-out forwards; }

@keyframes kb-1 {
  from { transform: scale(1.0)  translate(0%,   0%); }
  to   { transform: scale(1.15) translate(-2%, -1%); }
}
@keyframes kb-2 {
  from { transform: scale(1.12) translate(2%,  0%); }
  to   { transform: scale(1.0)  translate(-1%, 1%); }
}
@keyframes kb-3 {
  from { transform: scale(1.0)  translate(-1%, 1%); }
  to   { transform: scale(1.12) translate(2%, -2%); }
}
@keyframes kb-4 {
  from { transform: scale(1.1)  translate(1%, -1%); }
  to   { transform: scale(1.0)  translate(-2%, 0%); }
}

/* Slide progress dots */
.hero__dots {
  position: absolute;
  bottom: 88px;
  right: 36px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 4;
}

.hero__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transition: background 400ms var(--ease), transform 400ms var(--ease);
}

.hero__dot.is-active {
  background: var(--atonix-orange);
  transform: scale(1.4);
  box-shadow: 0 0 8px rgba(242, 101, 34, 0.7);
}

/* ============================================================
   ABOUT — Inline image
   ============================================================ */
.about__img-wrap {
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  margin-bottom: 28px;
  position: relative;
}

.about__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 700ms var(--ease-out);
}

.about__img-wrap:hover img {
  transform: scale(1.04);
}

/* ============================================================
   SERVICES — Photo header on pillar cards
   ============================================================ */
.service-pillar__media {
  margin: -40px -32px 28px;
  height: 210px;
  overflow: hidden;
  border-radius: 8px 8px 0 0;
  position: relative;
  flex-shrink: 0;
}

.service-pillar__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 600ms var(--ease-out);
}

.service-pillar:hover .service-pillar__media img {
  transform: scale(1.06);
}

.service-pillar--featured .service-pillar__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10, 31, 68, 0.32);
  pointer-events: none;
}

/* ============================================================
   GALLERY / PROJECTS SECTION
   ============================================================ */
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  grid-auto-rows: 260px;
}

/* Alternating wide-narrow pattern */
.gallery__item:nth-child(1) { grid-column: span 2; }
.gallery__item:nth-child(4) { grid-column: span 2; }
.gallery__item:nth-child(6) { grid-column: span 2; }

.gallery__item {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  background: var(--atonix-navy);
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 600ms var(--ease-out);
}

.gallery__item:hover img,
.gallery__item:focus-visible img {
  transform: scale(1.08);
}

.gallery__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(6, 22, 51, 0.9) 0%,
    rgba(6, 22, 51, 0.25) 40%,
    transparent 70%
  );
  opacity: 0;
  transition: opacity 300ms var(--ease);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 20px 22px;
}

.gallery__item:hover .gallery__overlay,
.gallery__item:focus-visible .gallery__overlay {
  opacity: 1;
}

.gallery__caption {
  color: var(--white);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.gallery__zoom {
  width: 34px;
  height: 34px;
  background: var(--atonix-orange);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  flex-shrink: 0;
  transform: scale(0) rotate(-15deg);
  transition: transform 350ms var(--ease-out);
}

.gallery__item:hover .gallery__zoom,
.gallery__item:focus-visible .gallery__zoom {
  transform: scale(1) rotate(0deg);
}

.gallery__zoom svg {
  width: 15px;
  height: 15px;
}

.gallery__item:focus-visible {
  outline: 3px solid var(--atonix-orange);
  outline-offset: 3px;
}

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(6, 22, 51, 0.97);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 72px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 300ms var(--ease), visibility 300ms var(--ease);
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox__close {
  position: absolute;
  top: 18px;
  right: 20px;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--duration) var(--ease);
  border: none;
}

.lightbox__close:hover { background: var(--atonix-orange); }

.lightbox__close svg {
  width: 20px;
  height: 20px;
}

.lightbox__prev,
.lightbox__next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--duration) var(--ease);
  border: none;
}

.lightbox__prev { left: 16px; }
.lightbox__next { right: 16px; }
.lightbox__prev:hover,
.lightbox__next:hover { background: var(--atonix-orange); }

.lightbox__prev svg,
.lightbox__next svg {
  width: 22px;
  height: 22px;
}

.lightbox__content {
  max-width: min(90vw, 1100px);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.lightbox__img {
  max-width: 100%;
  max-height: calc(90vh - 60px);
  object-fit: contain;
  border-radius: 8px;
  display: block;
}

.lightbox__caption {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.88rem;
  font-family: var(--font-display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0;
}
