:root {
  --primary: #0f4c9a;
  --primary-dark: #0a2f5f;
  --accent: #f8b400;
  --accent-dark: #d99800;
  --surface: #ffffff;
  --surface-soft: #f4f8ff;
  --text: #243043;
  --text-soft: #5e6b82;
  --border: #dce5f5;
  --success: #157347;
  --danger: #a61e2d;
  --shadow: 0 16px 40px rgba(15, 76, 154, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", Arial, sans-serif;
  color: var(--text);
  background: var(--surface);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.section {
  padding: 84px 0;
}

.section-alt {
  background: var(--surface-soft);
}

.section-header {
  max-width: 680px;
  margin-bottom: 38px;
}

.section-header h2 {
  font-family: "Poppins", Arial, sans-serif;
  margin: 0 0 14px;
  font-size: clamp(1.75rem, 1.2rem + 1.8vw, 2.4rem);
  line-height: 1.25;
}

.section-header p {
  margin: 0;
  color: var(--text-soft);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Poppins", Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--primary-dark);
}

.brand i {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), #2373d9);
  color: #fff;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-links a {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.22s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  border: none;
  background: transparent;
  font-size: 1.15rem;
  color: var(--primary-dark);
}

.hero {
  min-height: 78vh;
  display: grid;
  place-items: center;
  color: #fff;
  position: relative;
  background-size: cover;
  background-position: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(10, 47, 95, 0.86), rgba(15, 76, 154, 0.35));
}

.hero-content {
  position: relative;
  text-align: left;
  width: min(1120px, 92%);
  margin: 0 auto;
  z-index: 1;
}

.hero h1 {
  max-width: 720px;
  margin: 0 0 14px;
  font-size: clamp(2rem, 1.3rem + 3vw, 3.9rem);
  line-height: 1.1;
  font-family: "Poppins", Arial, sans-serif;
}

.hero p {
  max-width: 630px;
  margin: 0 0 26px;
  color: rgba(255, 255, 255, 0.92);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: none;
  cursor: pointer;
  border-radius: 10px;
  padding: 12px 22px;
  font-weight: 700;
  transition: transform 0.24s ease, box-shadow 0.24s ease, background 0.24s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #ffd15d);
  color: #232323;
  box-shadow: 0 14px 26px rgba(248, 180, 0, 0.26);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #ffcc44, #ffe088);
}

.btn-secondary {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.08);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.18);
}

.grid {
  display: grid;
  gap: 22px;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 24px;
}

.service-card i,
.feature-card i,
.category-card i,
.icon-round {
  color: var(--primary);
  font-size: 1.4rem;
}

.service-card h3,
.feature-card h3,
.category-card h3,
.testimonial-card h3,
.service-detail h3 {
  margin: 12px 0 10px;
  font-family: "Poppins", Arial, sans-serif;
  font-size: 1.17rem;
}

.service-card p,
.feature-card p,
.category-card p,
.testimonial-card p,
.service-detail p,
.muted {
  color: var(--text-soft);
}

.why-wrap {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr 1fr;
  align-items: center;
}

.image-frame {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.testimonial-card {
  position: relative;
}

.testimonial-card::before {
  content: "\201C";
  position: absolute;
  top: 4px;
  right: 18px;
  color: var(--accent);
  font-size: 3rem;
  line-height: 1;
  opacity: 0.4;
}

.badge {
  display: inline-block;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(15, 76, 154, 0.1);
  color: var(--primary-dark);
  border-radius: 999px;
  padding: 6px 11px;
  font-weight: 700;
  margin-bottom: 10px;
}

.cta-banner {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
  min-height: 260px;
  display: grid;
  place-items: center;
  color: #fff;
  background-size: cover;
  background-position: center;
}

.cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(10, 47, 95, 0.7);
}

.cta-banner-content {
  position: relative;
  z-index: 1;
  text-align: center;
  width: min(720px, 90%);
}

.cta-banner h3 {
  margin-top: 0;
  font-size: clamp(1.35rem, 1rem + 1.3vw, 2rem);
  font-family: "Poppins", Arial, sans-serif;
}

.page-hero {
  min-height: 340px;
}

.breadcrumbs {
  color: rgba(255, 255, 255, 0.88);
  font-weight: 700;
}

.team-card img {
  border-radius: 14px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.service-detail ul,
.legal-content ul,
.process-list {
  margin: 8px 0 0;
  padding-left: 20px;
}

.service-detail li,
.legal-content li,
.process-list li {
  margin-bottom: 8px;
  color: var(--text-soft);
}

.service-detail {
  padding: 24px;
}

.form-wrap {
  width: min(760px, 100%);
}

.form-group {
  margin-bottom: 16px;
}

label {
  display: block;
  margin-bottom: 7px;
  font-weight: 700;
}

input,
textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid #cfd9ed;
  padding: 12px;
  font: inherit;
  color: var(--text);
}

textarea {
  min-height: 150px;
  resize: vertical;
}

input:focus,
textarea:focus {
  outline: 2px solid rgba(15, 76, 154, 0.25);
  border-color: var(--primary);
}

.form-message {
  display: none;
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  font-weight: 700;
}

.form-message.success {
  display: block;
  background: rgba(21, 115, 71, 0.12);
  color: var(--success);
}

.form-message.error {
  display: block;
  background: rgba(166, 30, 45, 0.12);
  color: var(--danger);
}

.legal-content h2,
.legal-content h3 {
  font-family: "Poppins", Arial, sans-serif;
  margin-top: 28px;
}

.legal-content h2 {
  font-size: 1.42rem;
}

.legal-content h3 {
  font-size: 1.12rem;
}

footer {
  border-top: 1px solid var(--border);
  background: linear-gradient(160deg, #f8fbff, #edf4ff);
  padding: 44px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 24px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-family: "Poppins", Arial, sans-serif;
  font-weight: 700;
  color: var(--primary-dark);
}

.footer-brand i {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), #2373d9);
  color: #fff;
}

.footer-about p {
  margin: 0;
  color: var(--text-soft);
}

.footer-col h3 {
  margin: 0 0 10px;
  font-family: "Poppins", Arial, sans-serif;
  font-size: 1.05rem;
}

.footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.footer-list a {
  font-weight: 700;
  color: var(--primary-dark);
}

.footer-list a:hover {
  color: var(--primary);
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.social-links a {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-dark);
  transition: transform 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.social-links a:hover {
  transform: translateY(-2px);
  color: var(--primary);
  border-color: rgba(15, 76, 154, 0.4);
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 992px) {
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .why-wrap,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-about {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .menu-toggle {
    display: inline-flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 12px 4%;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .nav-links.open {
    display: flex;
  }

  .grid-4,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 68px 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}
