/* =============================================
   MAGEM Landing — Styles
   ============================================= */

:root {
  --navy: #0a1628;
  --navy-light: #0f2040;
  --navy-mid: #152a50;
  --blue: #1a3a7a;
  --blue-bright: #2563eb;
  --orange: #ff6b00;
  --orange-light: #ff8533;
  --white: #ffffff;
  --gray-100: #f0f4f8;
  --gray-300: #94a3b8;
  --gray-500: #64748b;
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.35);
  --ease-smooth: cubic-bezier(0.22, 1, 0.36, 1);
  --transition: 0.35s var(--ease-smooth);
  --header-h: 72px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--safe-top));
}

body {
  font-family: var(--font-body);
  background: var(--navy);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  padding-left: var(--safe-left);
  padding-right: var(--safe-right);
}

body.loaded .hero__content > .reveal {
  opacity: 1;
  transform: translateY(0);
}

body.no-scroll {
  overflow: hidden;
  touch-action: none;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 max(1.5rem, var(--safe-left));
}

.dot { color: var(--orange); }

.text-accent { color: var(--orange); }

.text-outline {
  color: rgba(255, 255, 255, 0.22);
}

/* ---- Preloader ---- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.45s var(--ease-smooth), visibility 0.45s;
}

.preloader__logo {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, 4rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  text-align: center;
}

.preloader__bar {
  width: 120px;
  height: 3px;
  background: var(--navy-mid);
  border-radius: 99px;
  overflow: hidden;
  margin: 0 auto;
}

.preloader__fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--blue-bright), var(--orange));
  border-radius: 99px;
  animation: loadBar 0.7s var(--ease-smooth) forwards;
}

@keyframes loadBar {
  to { width: 100%; }
}

/* ---- WhatsApp Float ---- */
.whatsapp-float {
  position: fixed;
  bottom: calc(1.5rem + var(--safe-bottom));
  right: calc(1.5rem + var(--safe-right));
  z-index: 9000;
  width: 56px;
  height: 56px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: transform var(--transition), box-shadow var(--transition);
}

.whatsapp-float svg { width: 28px; height: 28px; color: white; }

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.55);
}

/* ---- Header ---- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 8000;
  height: calc(var(--header-h) + var(--safe-top));
  padding-top: var(--safe-top);
  transition: background var(--transition), box-shadow var(--transition), backdrop-filter var(--transition);
}

.header.scrolled {
  background: rgba(10, 22, 40, 0.92);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo { display: flex; flex-direction: column; gap: 0; }

.logo__text {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.logo__sub {
  font-size: 0.6rem;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav__link {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: color var(--transition), background var(--transition);
  color: rgba(255, 255, 255, 0.75);
}

.nav__link:hover,
.nav__link.active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
}

.nav__link--cta {
  background: rgba(255, 107, 0, 0.15);
  color: var(--orange);
  border: 1px solid rgba(255, 107, 0, 0.3);
  margin-left: 0.5rem;
}

.nav__link--cta:hover {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.875rem 1.75rem;
  border-radius: 10px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn--primary {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange);
}

.btn--primary:hover {
  background: var(--orange-light);
  border-color: var(--orange-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 107, 0, 0.35);
}

.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.25);
}

.btn--ghost:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.05);
}

.btn--white {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
}

.btn--white:hover {
  background: var(--gray-100);
  transform: translateY(-2px);
}

.btn--outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn--outline-white:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
}

.btn--full { width: 100%; }

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 2rem) 0 4rem;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 55% at 90% 8%, rgba(37, 99, 235, 0.12) 0%, transparent 70%),
    radial-gradient(ellipse 50% 45% at 5% 92%, rgba(255, 107, 0, 0.08) 0%, transparent 70%),
    var(--navy);
}

.hero__grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.5;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, black, transparent);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  isolation: isolate;
}

.hero__badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
  background: rgba(255, 107, 0, 0.1);
  border: 1px solid rgba(255, 107, 0, 0.25);
  padding: 0.4rem 1rem;
  border-radius: 99px;
  margin-bottom: 1.5rem;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 8vw, 5.5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.hero__line { display: block; }

.hero__line--accent {
  color: var(--orange);
}

.hero__desc {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: rgba(255, 255, 255, 0.7);
  max-width: 560px;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3.5rem;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-stat__num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}

.hero-stat__plus {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--orange);
}

.hero-stat__label {
  display: block;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  z-index: 1;
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--orange), transparent);
  animation: scrollLine 2s ease infinite;
}

@keyframes scrollLine {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ---- Sections ---- */
.section {
  padding: 6rem 0;
  position: relative;
}

.hero {
  content-visibility: visible;
}

.section__header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3.5rem;
}

.section__tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.75rem;
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.section__desc {
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* ---- Services ---- */
.services { background: linear-gradient(180deg, var(--navy) 0%, var(--navy-light) 100%); }

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

@media (hover: hover) {
  .service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(255, 107, 0, 0.25);
  }
}

.service-card__visual {
  position: relative;
  height: 180px;
  display: flex;
  align-items: flex-end;
  padding: 1.25rem;
  overflow: hidden;
}

.service-card__visual--electric {
  background: linear-gradient(135deg, #0d2044 0%, #1a3a7a 100%);
}

.service-card__visual--civil {
  background: linear-gradient(135deg, #1a2040 0%, #2a3050 100%);
}

.service-card__visual--supply {
  background: linear-gradient(135deg, #0d2840 0%, #1a4060 100%);
}

.service-card__icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -60%);
  width: 64px;
  height: 64px;
  color: rgba(255, 107, 0, 0.6);
}

.service-card__icon svg { width: 100%; height: 100%; }

.service-card__tag {
  position: relative;
  z-index: 1;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.service-card__body { padding: 1.5rem; }

.service-card__body h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.service-card__body > p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.service-card__list li {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  padding: 0.3rem 0;
  padding-left: 1.25rem;
  position: relative;
}

.service-card__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background: var(--orange);
  border-radius: 50%;
}

/* ---- Specialties ---- */
.specialties {
  background: var(--navy-light);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.specialties__layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: center;
}

.specialties__intro .section__title { text-align: left; }
.specialties__intro .section__desc { text-align: left; margin-bottom: 2rem; }

.specialties__cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.spec-card {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius);
  transition: border-color var(--transition), background var(--transition);
}

.spec-card:hover {
  border-color: rgba(255, 107, 0, 0.3);
  background: rgba(255, 107, 0, 0.04);
}

.spec-card__num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--orange);
  opacity: 0.7;
  flex-shrink: 0;
  line-height: 1;
}

.spec-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.spec-card p {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.6;
}

/* ---- About ---- */
.about__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about__image {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.about__image-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-smooth);
}

.about__image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(10, 22, 40, 0.1) 0%, rgba(10, 22, 40, 0.5) 100%);
  pointer-events: none;
  transition: opacity 0.5s var(--ease-smooth);
}

@media (hover: hover) {
  .about__image:hover .about__image-img {
    transform: scale(1.04);
  }

  .about__image:hover::after {
    opacity: 0.7;
  }
}

.about__badge-float {
  position: absolute;
  bottom: 1.5rem;
  right: -1rem;
  background: var(--orange);
  color: var(--white);
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.about__badge-num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 900;
  line-height: 1;
}

.about__badge-text {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.about__content p {
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 1rem;
  line-height: 1.75;
}

.about__features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.about__feature {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
}

.about__feature svg {
  width: 18px;
  height: 18px;
  color: var(--orange);
  flex-shrink: 0;
}

/* ---- Trust ---- */
.trust {
  padding: 4rem 0;
  background: var(--navy);
}

.trust__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.trust__item {
  text-align: center;
  padding: 2rem 1.25rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  transition: border-color var(--transition);
}

.trust__item:hover { border-color: rgba(255, 107, 0, 0.25); }

.trust__icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 1rem;
  color: var(--orange);
}

.trust__icon svg { width: 100%; height: 100%; }

.trust__item h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.trust__item p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.6;
}

/* ---- Portfolio ---- */
.portfolio { background: var(--navy-light); }

.portfolio__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.portfolio-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16/10;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.portfolio-item__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s var(--ease-smooth);
}

@media (hover: hover) {
  .portfolio-item:hover {
    border-color: rgba(255, 107, 0, 0.45);
    box-shadow: 0 12px 48px rgba(255, 107, 0, 0.15), 0 8px 32px rgba(0, 0, 0, 0.4);
    transform: translateY(-4px);
  }

  .portfolio-item:hover .portfolio-item__img {
    transform: scale(1.08);
  }

  .portfolio-item:hover .portfolio-item__overlay {
    background:
      linear-gradient(to top, rgba(10, 22, 40, 0.98) 0%, rgba(10, 22, 40, 0.35) 50%, rgba(255, 107, 0, 0.08) 100%);
  }
}

.portfolio-item__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(10, 22, 40, 0.98) 0%, rgba(10, 22, 40, 0.45) 45%, rgba(10, 22, 40, 0.05) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.75rem;
  transform: translateY(0);
  transition: background var(--transition);
  z-index: 1;
}

.portfolio-item__cat {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.35rem;
}

.portfolio-item__overlay h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.portfolio-item__overlay p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}


/* ---- CTA Banner ---- */
.cta-banner {
  padding: 4rem 0;
  background: linear-gradient(135deg, var(--orange) 0%, #e55a00 100%);
}

.cta-banner__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.cta-banner__text h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  margin-bottom: 0.35rem;
}

.cta-banner__text p {
  font-size: 1rem;
  opacity: 0.85;
}

.cta-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ---- Contact ---- */
.contact { background: var(--navy); }

.contact__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.contact__details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}

.contact__detail {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact__detail-icon {
  width: 44px;
  height: 44px;
  background: rgba(255, 107, 0, 0.1);
  border: 1px solid rgba(255, 107, 0, 0.2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--orange);
}

.contact__detail-icon svg { width: 20px; height: 20px; }

.contact__detail strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.contact__detail p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.5;
}

.contact__detail a {
  color: var(--orange);
  transition: color var(--transition);
}

.contact__detail a:hover { color: var(--orange-light); }

.contact-form {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: border-color var(--transition), background var(--transition);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--orange);
  background: rgba(255, 107, 0, 0.05);
}

.form-group select option { background: var(--navy); }

.form-group textarea { resize: vertical; min-height: 100px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-note {
  text-align: center;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.35);
  margin-top: 0.75rem;
}

.contact__map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  height: 320px;
}

.contact__map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(30%) contrast(1.1);
}

/* ---- Footer ---- */
.footer {
  padding: 2.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: var(--navy);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.5rem;
}

.footer__logo {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
}

.footer__brand p {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 0.25rem;
}

.footer__links {
  display: flex;
  gap: 1.5rem;
}

.footer__links a {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  transition: color var(--transition);
}

.footer__links a:hover { color: var(--orange); }

.footer__copy {
  text-align: right;
}

.footer__copy p {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.35);
}

/* ---- Reveal animations ---- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s var(--ease-smooth), transform 0.55s var(--ease-smooth);
  will-change: opacity, transform;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
  will-change: auto;
}

.hero__content > .reveal {
  transition-duration: 0.65s;
}

/* ---- Responsive ---- */
@media (min-width: 1440px) {
  :root { --header-h: 80px; }
  .container { max-width: 1280px; }
  .hero__title { font-size: 5.25rem; }
  .section { padding: 7rem 0; }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: none;
  }

  .services__grid .service-card:last-child {
    grid-column: 1 / -1;
    max-width: 480px;
    margin: 0 auto;
    width: 100%;
  }

  .portfolio__grid { grid-template-columns: repeat(2, 1fr); }
  .about__badge-float { right: 0.5rem; }
  .specialties__intro { text-align: center; }
  .specialties__intro .section__title,
  .specialties__intro .section__desc { text-align: center; }
  .specialties__intro .btn { margin: 0 auto; display: flex; width: fit-content; }
}

@media (max-width: 1024px) {
  .services__grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .specialties__layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .about__layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .about__image { max-width: 400px; margin: 0 auto; }
  .trust__grid { grid-template-columns: repeat(2, 1fr); }
  .contact__layout { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; text-align: center; }
  .footer__links { justify-content: center; }
  .footer__copy { text-align: center; }
}

@media (max-width: 768px) {
  :root { --header-h: 64px; }

  .nav-toggle { display: flex; }

  .nav {
    position: fixed;
    top: calc(var(--header-h) + var(--safe-top));
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 22, 40, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: stretch;
    padding: 1.5rem;
    padding-bottom: calc(1.5rem + var(--safe-bottom));
    gap: 0.25rem;
    transform: translateX(100%);
    transition: transform 0.4s var(--ease-smooth);
  }

  .nav.open { transform: translateX(0); }

  .nav__link {
    font-size: 1rem;
    padding: 1rem 1.25rem;
    border-radius: 10px;
  }

  .nav__link--cta { margin-left: 0; margin-top: 0.5rem; text-align: center; }

  .hero__scroll { display: none; }

  .hero__stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }

  .portfolio__grid { grid-template-columns: 1fr; }

  .trust__grid { grid-template-columns: 1fr; }

  .about__features { grid-template-columns: 1fr; }

  .form-row { grid-template-columns: 1fr; }

  .cta-banner__inner { flex-direction: column; text-align: center; }
  .cta-banner__actions { justify-content: center; }

  .whatsapp-float {
    bottom: calc(1rem + var(--safe-bottom));
    right: calc(1rem + var(--safe-right));
    width: 50px;
    height: 50px;
  }
  .whatsapp-float svg { width: 24px; height: 24px; }

  .about__badge-float { right: 0.75rem; }
}

@media (max-width: 480px) {
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; }
  .section { padding: 4rem 0; }
  .hero__stats { grid-template-columns: 1fr; text-align: center; }
  .logo__sub { font-size: 0.55rem; }
}

@media (max-width: 390px) {
  .logo__sub { display: none; }
  .hero__title { font-size: 2.35rem; }
  .container { padding: 0 1.15rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
