* {
  box-sizing: border-box;
}

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

html,
body {
  margin: 0;
  min-height: 100%;
  background: #f2f2f0;
  color: #151515;
  font-family: "Cairo", Arial, "Segoe UI", Tahoma, sans-serif;
}

body {
  overflow-x: hidden;
}

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

.hero {
  position: relative;
  width: 100%;
  min-height: 100svh;
  overflow: hidden;
  background: #111;
}

.hero-image {
  width: 100%;
  height: 100svh;
  object-fit: cover;
  object-position: center;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 32%;
  background: linear-gradient(to top, rgba(0,0,0,.28), rgba(0,0,0,0));
  pointer-events: none;
}

.hero-nav {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: max(24px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  width: min(92%, 760px);
  padding-inline: env(safe-area-inset-left) env(safe-area-inset-right);
}

.hero-nav a {
  min-width: 150px;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border-radius: 999px;
  background: rgba(255,255,255,.90);
  border: 1px solid rgba(255,255,255,.60);
  color: #111;
  text-decoration: none;
  font-family: "Cairo", sans-serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  box-shadow: 0 10px 28px rgba(0,0,0,.16);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}

.hero-nav a:hover,
.hero-nav a:focus-visible {
  transform: translateY(-2px);
  background: #fff;
  box-shadow: 0 14px 30px rgba(0,0,0,.22);
  outline: none;
}

.section {
  padding: clamp(64px, 8vw, 96px) clamp(18px, 4vw, 32px);
  background: #f4f4f1;
  scroll-margin-top: 24px;
}

.section-alt {
  background: #171717;
  color: #fff;
}

.section-inner {
  width: min(900px, 100%);
  margin: 0 auto;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  font-family: Arial, sans-serif;
  font-size: 12px;
  letter-spacing: .20em;
  opacity: .55;
}

.section h2 {
  margin: 0 0 16px;
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 700;
  line-height: 1.35;
}

.section p {
  max-width: 720px;
  margin: 0 auto;
  font-size: clamp(15px, 1.8vw, 19px);
  line-height: 2;
  opacity: .78;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 28px;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 999px;
  background: #151515;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid #151515;
  transition: .18s ease;
}

.contact-btn:hover,
.contact-btn:focus-visible {
  background: transparent;
  color: #151515;
  outline: none;
}

/* Tablets */
@media (max-width: 1024px) {
  .hero {
    min-height: auto;
    background: #efefed;
  }

  .hero-image {
    height: auto;
    min-height: 68svh;
    max-height: 82svh;
    object-fit: contain;
    object-position: center top;
    background: #efefed;
  }

  .hero::after {
    display: none;
  }

  .hero-nav {
    position: static;
    transform: none;
    width: 100%;
    padding: 16px 18px 22px;
    background: #efefed;
  }

  .hero-nav a {
    min-width: 132px;
    min-height: 46px;
    color: #111;
    background: #fff;
    border: 1px solid rgba(0,0,0,.08);
    box-shadow: 0 8px 22px rgba(0,0,0,.08);
  }
}

/* Phones */
@media (max-width: 640px) {
  .hero-image {
    width: 100%;
    height: auto;
    min-height: 0;
    max-height: none;
    object-fit: contain;
    object-position: center top;
  }

  .hero-nav {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 14px 14px calc(20px + env(safe-area-inset-bottom));
  }

  .hero-nav a {
    width: 100%;
    min-width: 0;
    min-height: 46px;
    font-size: 14px;
  }

  .section {
    padding: 56px 18px;
  }

  .section h2 {
    font-size: clamp(26px, 8vw, 34px);
  }

  .section p {
    font-size: 15px;
    line-height: 1.9;
  }

  .contact-btn {
    width: min(100%, 320px);
  }
}

/* Small phones */
@media (max-width: 380px) {
  .hero-nav {
    padding-inline: 10px;
  }

  .section {
    padding-inline: 14px;
  }
}

/* Landscape phones */
@media (max-height: 500px) and (orientation: landscape) {
  .hero-image {
    max-height: none;
  }

  .hero-nav {
    position: static;
    transform: none;
  }
}
