:root {
  --navy: #062967;
  --navy-deep: #031a43;
  --steel: #e8edf4;
  --paper: #fbfcff;
  --ink: #0d1830;
  --muted: #62708a;
  --line: rgba(6, 41, 103, 0.14);
  --gold: #c7984a;
  --gold-soft: #f2d08b;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(4, 21, 52, 0.16);
  --radius: 8px;
  --whatsapp: #25d366;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Cairo", "Segoe UI", Tahoma, sans-serif;
  line-height: 1.7;
}

body.menu-open {
  overflow: hidden;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 252, 255, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.nav-shell {
  width: min(1180px, calc(100% - 32px));
  min-height: 78px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand img {
  width: 54px;
  height: 54px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1rem;
  font-weight: 900;
  color: var(--navy);
}

.brand small {
  margin-top: -3px;
  color: var(--muted);
  font-size: 0.78rem;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a {
  padding: 10px 14px;
  border-radius: 999px;
  color: #243454;
  font-size: 0.92rem;
  font-weight: 700;
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--navy);
  color: var(--white);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  padding: 10px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--navy);
}

.section-band,
.section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  min-height: calc(100svh - 78px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.84fr);
  align-items: center;
  gap: clamp(28px, 5vw, 68px);
  padding: 54px 0 38px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  color: var(--navy-deep);
  font-size: clamp(2.25rem, 5.4vw, 5.2rem);
  line-height: 1.08;
  font-weight: 900;
}

h2 {
  margin-bottom: 16px;
  color: var(--navy-deep);
  font-size: clamp(1.72rem, 3.2vw, 3.1rem);
  line-height: 1.2;
  font-weight: 900;
}

h3 {
  margin-bottom: 8px;
  color: var(--navy-deep);
  font-size: 1.05rem;
  line-height: 1.35;
}

.hero-copy {
  max-width: 660px;
  margin-bottom: 28px;
  color: #34405b;
  font-size: 1.1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 34px;
}

.btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  padding: 12px 20px;
  border: 1px solid transparent;
  font-weight: 900;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:focus-visible,
.nav-links a:focus-visible,
.contact-link:focus-visible,
.nav-toggle:focus-visible {
  outline: 3px solid rgba(199, 152, 74, 0.36);
  outline-offset: 3px;
}

.btn-primary {
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 12px 28px rgba(6, 41, 103, 0.25);
}

.btn-secondary {
  background: var(--white);
  color: var(--navy);
  border-color: var(--line);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 760px;
}

.hero-metrics div {
  min-height: 104px;
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.hero-metrics strong,
.hero-metrics span {
  display: block;
}

.hero-metrics strong {
  color: var(--navy);
  font-size: 1.15rem;
}

.hero-metrics span {
  color: var(--muted);
  font-size: 0.86rem;
}

.hero-visual {
  position: relative;
  min-height: 600px;
}

.image-stack {
  position: relative;
  min-height: 600px;
}

.image-stack img {
  position: absolute;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow);
}

.stack-main {
  inset: 42px 0 auto auto;
  width: 88%;
  height: 480px;
  border-radius: var(--radius);
}

.stack-top {
  top: 0;
  left: 0;
  width: 54%;
  height: 230px;
  border-radius: var(--radius);
}

.stack-bottom {
  right: 8%;
  bottom: 0;
  width: 64%;
  height: 245px;
  border-radius: var(--radius);
}

.intro-strip {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 20px 16px;
  background: var(--navy);
  color: var(--white);
  overflow-x: auto;
}

.intro-strip span {
  flex: 0 0 auto;
  padding: 7px 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 800;
}

.section {
  padding: 92px 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-heading p:last-child {
  color: var(--muted);
}

.about-grid {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: 34px;
  align-items: start;
}

.about-copy {
  padding: 30px;
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.86);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.about-copy p:last-child {
  margin-bottom: 0;
}

.capabilities {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.capabilities article {
  min-height: 235px;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.icon {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  margin-bottom: 26px;
  background: rgba(199, 152, 74, 0.14);
  color: var(--gold);
  border-radius: 50%;
  font-size: 0.82rem;
  font-weight: 900;
}

.capabilities p,
.product-card p,
.agency p,
.contact-card p {
  color: var(--muted);
}

.products-section {
  border-top: 1px solid var(--line);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.product-card {
  overflow: hidden;
  min-height: 460px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 14px 36px rgba(4, 21, 52, 0.07);
}

.product-card img {
  width: 100%;
  height: 235px;
  object-fit: cover;
  background: var(--steel);
}

.product-card div {
  padding: 22px;
}

.product-card span {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 900;
}

.product-card p {
  margin-bottom: 0;
  font-size: 0.94rem;
}

.agency {
  padding-top: 20px;
}

.agency-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 26px;
  align-items: center;
  padding: clamp(26px, 4vw, 44px);
  background: linear-gradient(135deg, var(--navy-deep), var(--navy));
  color: var(--white);
  border-radius: var(--radius);
}

.agency-panel h2,
.agency-panel p {
  color: var(--white);
}

.agency-panel p {
  max-width: 760px;
  margin-bottom: 0;
  opacity: 0.86;
}

.gallery {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 14px;
  margin-top: 18px;
}

.gallery img {
  width: 100%;
  height: 310px;
  object-fit: cover;
  border-radius: var(--radius);
}

.contact-section {
  padding-top: 20px;
}

.contact-card {
  display: grid;
  grid-template-columns: 1fr 0.92fr;
  gap: 36px;
  padding: clamp(26px, 4vw, 44px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.contact-card p {
  max-width: 680px;
}

.contact-actions {
  display: grid;
  gap: 12px;
}

.contact-link {
  display: flex;
  min-height: 76px;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  background: #f7f9fd;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 2px 10px rgba(6, 41, 103, 0.05);
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, transform 120ms ease, box-shadow 160ms ease;
}

.contact-link:hover {
  background: #eef3fb;
  border-color: rgba(6, 41, 103, 0.24);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(6, 41, 103, 0.1);
}

.contact-link:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 2px 8px rgba(6, 41, 103, 0.08);
  transition-duration: 60ms;
}

.contact-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(6, 41, 103, 0.08);
  color: var(--navy);
}

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

.contact-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.contact-label {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.contact-link strong {
  color: var(--navy);
  font-size: 1.05rem;
}

.contact-arrow {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  margin-inline-start: auto;
  width: 20px;
  height: 20px;
  color: var(--muted);
  opacity: 0.55;
  transition: transform 200ms ease, opacity 200ms ease, color 200ms ease;
}

.contact-link:hover .contact-arrow {
  transform: translateX(-4px);
  opacity: 1;
  color: var(--navy);
}

.contact-link--whatsapp .contact-icon {
  background: rgba(37, 211, 102, 0.14);
  color: var(--whatsapp);
}

.contact-link--whatsapp:hover {
  border-color: rgba(37, 211, 102, 0.4);
  box-shadow: 0 12px 26px rgba(37, 211, 102, 0.16);
}

.contact-link--whatsapp:hover .contact-arrow {
  color: var(--whatsapp);
}

.location-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.location-strip span {
  padding: 10px 14px;
  background: var(--steel);
  border-radius: var(--radius);
  color: var(--navy-deep);
  font-weight: 800;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 28px max(16px, calc((100% - 1180px) / 2));
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
}

.footer-info {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
}

.footer p {
  margin: 0;
}

.footer a {
  color: var(--gold-soft);
  font-weight: 800;
}

.dev-credit {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.85);
  font-weight: 700;
  font-size: 0.82rem;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 200ms ease, border-color 200ms ease, transform 200ms ease;
}

.dev-credit:hover {
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(199, 152, 74, 0.55);
  transform: translateY(-1px);
}

.dev-credit img {
  height: 18px;
  width: auto;
  display: block;
}

@media (max-width: 640px) {
  .footer {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    padding-block: 26px;
  }

  .footer-info {
    justify-content: center;
    text-align: center;
  }

  .dev-credit {
    margin-inline: auto;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 650ms ease, transform 650ms ease;
}

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (max-width: 980px) {
  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-top: 36px;
  }

  .hero-visual,
  .image-stack {
    min-height: 520px;
  }

  .about-grid,
  .contact-card,
  .agency-panel {
    grid-template-columns: 1fr;
  }

  .capabilities,
  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .gallery img:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    inset: 78px 16px auto 16px;
    display: grid;
    gap: 8px;
    padding: 14px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transform: translateY(-18px);
    opacity: 0;
    pointer-events: none;
  }

  body.menu-open .nav-links {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links a {
    border-radius: var(--radius);
  }

  .hero-metrics,
  .capabilities,
  .products-grid,
  .gallery {
    grid-template-columns: 1fr;
  }

  .hero-visual,
  .image-stack {
    min-height: 430px;
  }

  .stack-main {
    width: 94%;
    height: 330px;
  }

  .stack-top {
    width: 56%;
    height: 160px;
  }

  .stack-bottom {
    width: 72%;
    height: 170px;
  }

  .section {
    padding: 66px 0;
  }

  .product-card {
    min-height: auto;
  }

}

@media (max-width: 460px) {
  .nav-shell,
  .section-band,
  .section {
    width: min(100% - 24px, 1180px);
  }

  .brand small {
    font-size: 0.72rem;
  }

  .brand img {
    width: 48px;
    height: 48px;
  }

  h1 {
    font-size: 2.15rem;
  }

  .btn {
    width: 100%;
  }

  .hero-visual,
  .image-stack {
    min-height: 390px;
  }

  .contact-link {
    padding: 12px 14px;
    gap: 12px;
  }

  .contact-icon {
    width: 38px;
    height: 38px;
  }

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

  .contact-link strong {
    font-size: 0.96rem;
  }
}
