:root {
  --header-h: 82px;
  
  --container: clamp(320px, 72vw, 1080px);
  --blue1: #0ea5e9;
  --blue2: #1d4ed8;
  --ink: #0b2239;
  --text: #1f2937;
  --muted: #6b7280;
  --bg: #ffffff;
  --alt: #f7f9fb;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Inter, system-ui, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 16px;
}


.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  background: #ffffffd9;
  backdrop-filter: saturate(120%) blur(10px);
  border-bottom: 1px solid #e5e7eb;
  z-index: 40;
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  text-decoration: none;
  color: var(--ink);
  font-weight: 900;
  letter-spacing: 0.5px;
}

.nav {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.nav a {
  color: #34495e;
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 8px;
  transition: background 0.2s ease;
}

.nav a:hover { background: #eef2f7; }

.btn {
  background: var(--blue2);
  color: #fff;
  text-decoration: none;
  border-radius: 10px;
  padding: 10px 14px;
  display: inline-block;
}

.btn.small { padding: 8px 10px; font-size: 0.9rem; }
.btn.big { padding: 12px 18px; font-size: 1.05rem; }

.nav-toggle { display: none; }


.hero {
  margin-top: var(--header-h);
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 120px 16px;
  box-sizing: border-box;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(14,165,233,0.6), rgba(29,78,216,0.6)),
    url("images/hero-bg.jpg") no-repeat center center / cover;
  background-blend-mode: overlay;
  z-index: 0;
  background-attachment: scroll;
  transform: translateZ(0);
  will-change: transform;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 140px;
  background: #fff;
  clip-path: path("M0,64 C480,120 1440,20 1920,80 L1920,160 L0,160 Z");
  z-index: 2;
}

.hero-logo {
  width: clamp(180px, 18vw, 260px);
  z-index: 2;
  position: relative;
  transform: scale(0.8);
  opacity: 0;
  animation: heroZoom 1.8s ease-out forwards;
  animation-delay: 0.3s;
  filter: drop-shadow(0 6px 20px rgba(0, 0, 0, 0.25));
}

@keyframes heroZoom {
  0% { transform: scale(0.6); opacity: 0; }
  60% { transform: scale(1.05); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

/* ✅ iPhone fix */
@supports (-webkit-touch-callout: none) {
  .hero {
    min-height: -webkit-fill-available;
  }
  .hero::before {
    background-attachment: scroll !important;
    background-size: cover !important;
  }
}


.cta {
  position: relative;
  background:
    linear-gradient(180deg, rgba(14,165,233,0.6), rgba(29,78,216,0.6)),
    url("images/hero-bg.jpg") center/cover no-repeat;
  background-blend-mode: overlay;
  color: #fff;
  padding: 260px 0 340px;
  text-align: center;
  overflow: hidden;
}

.cta .container {
  display: grid;
  place-items: center;
  position: relative;
  z-index: 2;
}

.cta h3 {
  margin: 0 0 24px;
  font-size: clamp(26px, 3vw, 42px);
  font-weight: 800;
  line-height: 1.3;
}

.cta .btn {
  background: #fff;
  color: var(--ink);
  font-weight: 600;
  border-radius: 12px;
  padding: 14px 28px;
  font-size: 1.1rem;
  transition: all 0.25s ease;
}

.cta .btn:hover {
  background: #e0f2fe;
  transform: translateY(-2px);
}

.cta::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 300px;
  background: #fff;
  clip-path: path("M0,160 C480,240 1440,80 1920,160 L1920,300 L0,300 Z");
  z-index: 5;
}


.row { padding: 120px 0; }

.row-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.col img.feature-img {
  width: 100%;
  border-radius: 160px 0 0 0;
  object-fit: cover;
  opacity: 0;
  transform: translateX(-180px);
  transition: transform 1.3s cubic-bezier(0.19, 1, 0.22, 1), opacity 1s ease;
}

.row.even .feature-img {
  border-radius: 0 160px 0 0;
  transform: translateX(180px);
}

.col img.feature-img.show {
  opacity: 1;
  transform: translateX(0);
}

.row h2 {
  font-size: clamp(24px, 2.6vw, 34px);
  margin: 0 0 10px;
  font-weight: 700;
}

.row p {
  color: var(--muted);
  max-width: 60ch;
  line-height: 1.6;
}


.contact {
  position: relative;
  background: #0b2140;
  color: #fff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 100px 0;
  overflow: hidden;
}

@supports (-webkit-touch-callout: none) {
  .contact {
    min-height: -webkit-fill-available;
  }
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.contact a { color: #e0f2fe; }

.contact-form {
  display: grid;
  gap: 14px;
}

.contact-form input,
.contact-form textarea {
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid #d1d5db;
  outline: none;
}

.contact-form button {
  border: 0;
  cursor: pointer;
  background: var(--blue2);
  color: #fff;
  border-radius: 8px;
  padding: 10px;
}


.footer {
  background: #071427;
  color: #9fb6cc;
  padding: 24px 0;
  text-align: center;
  font-size: 0.9rem;
}


.observe {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.observe.show {
  opacity: 1;
  transform: translateY(0);
}


.split-section {
  position: relative;
  background: #ffffff;
  color: var(--ink);
  padding: 120px 0;
  text-align: center;
  z-index: 2;
}

.split-section h3 {
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 800;
  margin-bottom: 16px;
}

.split-section p {
  max-width: 700px;
  margin: auto;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.6;
}

.split-section::before {
  content: "";
  position: absolute;
  top: -120px;
  left: 0;
  width: 100%;
  height: 160px;
  background: #fff;
  clip-path: path("M0,64 C480,160 1440,0 1920,64 L1920,160 L0,160 Z");
  z-index: 3;
}


@media (max-width: 980px) {
  .row-inner { grid-template-columns: 1fr; gap: 32px; }
  .contact-inner { grid-template-columns: 1fr; }

  .hero {
    padding: 60px 16px;
    min-height: 60vh;
  }

  .hero-inner {
    max-width: 100%;
  }

  
  .col.img-col {
    margin: 0;
    width: 100%;
    padding-left: 0;
    padding-right: 0;
  }

  .feature-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    max-height: 60vh;
  }

  
  .contact-form {
    padding: 20px;
    width: 100%;
  }

  .contact-form input,
  .contact-form textarea {
    margin-bottom: 16px;
    width: 100%;
    padding: 12px;
    border-radius: 8px;
  }

  .contact-inner {
    padding: 20px;
  }

  
  .nav {
    display: none; 
    flex-direction: column;
    gap: 16px;
    background: #fff;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    padding: 20px;
    border-bottom: 1px solid #e5e7eb;
    z-index: 50;
  }

  
  .site-header.open .nav {
    display: flex;
  }

  .nav-toggle {
    display: block;
    font-size: 26px;
    background: none;
    border: 0;
    cursor: pointer;
    padding: 8px;
  }
}

