/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #1f2a44;
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

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

/* ---------- Header ---------- */
.site-header {
  background: #13499a;
  color: #ffffff;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 18px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

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

.brand-mark {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.brand-mark svg {
  width: 100%;
  height: 100%;
  display: block;
}

.brand-text {
  display: flex;
  flex-direction: column;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.05;
  font-size: 15px;
}

.brand-line-1 {
  color: #ffffff;
}

.brand-line-2 {
  color: #ffffff;
  margin-top: 2px;
}

.primary-nav ul {
  display: flex;
  align-items: center;
  gap: 28px;
}

.primary-nav a {
  font-size: 15px;
  font-weight: 500;
  color: #ffffff;
  padding: 8px 4px;
  position: relative;
  transition: opacity 0.2s ease;
}

.primary-nav a:hover {
  opacity: 0.85;
}

.primary-nav a::after {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  bottom: 2px;
  height: 2px;
  background: #ffffff;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.primary-nav a:hover::after {
  transform: scaleX(1);
}

.nav-cta {
  background: #1f5fbe;
  color: #ffffff !important;
  padding: 10px 18px !important;
  border-radius: 4px;
  font-weight: 600;
  letter-spacing: 0.04em;
  font-size: 14px;
  transition: background 0.2s ease;
}

.nav-cta::after {
  display: none;
}

.nav-cta:hover {
  background: #2a6dd1;
  opacity: 1;
}

/* Mobile nav toggle (hidden on desktop) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  padding: 0;
  background: transparent;
}

.nav-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background: #ffffff;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

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

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - 82px);
}

.hero-content {
  background: #1a6fc4;
  color: #ffffff;
  display: flex;
  align-items: center;
  padding: 80px 60px;
}

.hero-text {
  max-width: 560px;
}

.hero-heading {
  display: flex;
  align-items: flex-start;
  gap: 22px;
  margin-bottom: 32px;
}

.hero-icon {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  margin-top: 8px;
}

.hero-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.hero h1 {
  font-size: 44px;
  font-weight: 800;
  line-height: 1.1;
  margin: 0;
  letter-spacing: -0.01em;
}

.hero-sub {
  font-weight: 300;
  font-size: 40px;
  display: inline-block;
  margin-top: 4px;
  letter-spacing: -0.005em;
}

.hero-text p {
  font-size: 16px;
  line-height: 1.7;
  margin: 0 0 18px;
  font-weight: 400;
  color: #f3f8ff;
}

.hero-media {
  position: relative;
  overflow: hidden;
  background: #c9b89a;
}

.hero-image {
  position: absolute;
  inset: 0;
  background-image: url("https://images.unsplash.com/photo-1573497019418-b400bb3ab074?auto=format&fit=crop&w=1200&q=80");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* ---------- Scroll-to-top ---------- */
.scroll-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #1a6fc4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.2s ease;
  z-index: 60;
}

.scroll-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top:hover {
  background: #2a7ed1;
}

.scroll-top svg {
  width: 22px;
  height: 22px;
  display: block;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .header-inner {
    padding: 16px 24px;
  }

  .primary-nav ul {
    gap: 18px;
  }

  .primary-nav a {
    font-size: 14px;
  }

  .hero-content {
    padding: 60px 40px;
  }

  .hero h1 {
    font-size: 38px;
  }

  .hero-sub {
    font-size: 34px;
  }
}

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

  .primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #13499a;
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
  }

  .primary-nav.is-open {
    max-height: 420px;
    padding: 16px 24px 24px;
  }

  .primary-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .primary-nav a {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav-cta {
    text-align: center;
    margin-top: 8px;
    border-bottom: none !important;
  }

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

  .hero-content {
    padding: 56px 28px;
  }

  .hero h1 {
    font-size: 32px;
  }

  .hero-sub {
    font-size: 28px;
  }

  .hero-text p {
    font-size: 15px;
  }

  .hero-media {
    min-height: 320px;
  }
}

@media (max-width: 480px) {
  .header-inner {
    padding: 14px 18px;
  }

  .brand-text {
    font-size: 13px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .hero-content {
    padding: 44px 22px;
  }

  .hero-heading {
    gap: 16px;
  }

  .hero-icon {
    width: 48px;
    height: 48px;
  }

  .hero h1 {
    font-size: 28px;
  }

  .hero-sub {
    font-size: 24px;
  }
}
