:root {
  --navy: #1a2b56;
  --coral: #f15a4b;
  --coral-dark: #e04a3c;
  --sky: #e1f1f8;
  --sky-deep: #c5e4f0;
  --white: #ffffff;
  --text: #5a6578;
  --text-dark: #2d3748;
  --green: #2ecc71;
  --orange: #f39c12;
  --shadow: 0 8px 30px rgba(26, 43, 86, 0.08);
  --radius: 14px;
  --radius-pill: 50px;
  --font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  line-height: 1.65;
  background: var(--white);
}

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

a {
  color: var(--coral);
  text-decoration: none;
  transition: color 0.2s, opacity 0.2s;
}

a:hover {
  color: var(--coral-dark);
}

h1, h2, h3, h4, h5 {
  color: var(--navy);
  line-height: 1.25;
  margin-top: 0;
}

.container {
  width: min(1140px, 92vw);
  margin: 0 auto;
}

/* Top bar */
.top-bar {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.875rem;
  padding: 0.5rem 0;
}

.top-bar .container {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
}

.top-bar a {
  color: #fff;
}

.top-bar span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* Header */
.site-header {
  background: var(--white);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
  gap: 1rem;
}

.logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-link img {
  height: 42px;
  width: auto;
}

.nav-toggle {
  display: none;
  background: var(--coral);
  border: none;
  color: #fff;
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.25rem;
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 1.25rem;
  justify-content: center;
}

.main-nav a {
  color: var(--navy);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.35rem 0;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--coral);
}

.header-actions {
  display: flex;
  gap: 0.65rem;
  flex-shrink: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.35rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.9rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, background 0.2s, color 0.2s;
  text-align: center;
  font-family: inherit;
}

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

.btn-navy {
  background: var(--navy);
  color: #fff !important;
}

.btn-navy:hover {
  background: #152347;
  color: #fff !important;
}

.btn-coral {
  background: var(--coral);
  color: #fff !important;
}

.btn-coral:hover {
  background: var(--coral-dark);
  color: #fff !important;
}

.btn-ghost {
  background: transparent;
  color: var(--coral) !important;
  border-color: var(--coral);
}

.btn-ghost:hover {
  background: var(--coral);
  color: #fff !important;
}

/* Hero banner (home) */
.hero-banner {
  position: relative;
  min-height: clamp(540px, 85vh, 760px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy);
}

.hero-banner__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-banner__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(225, 241, 248, 0.96) 0%,
    rgba(225, 241, 248, 0.88) 34%,
    rgba(26, 43, 86, 0.45) 68%,
    rgba(26, 43, 86, 0.55) 100%
  );
  z-index: 1;
  pointer-events: none;
}

.hero-banner__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% center;
  display: block;
}

.hero-banner__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.hero-banner__panel {
  max-width: 34.5rem;
  background: rgba(255, 255, 255, 0.94);
  border-radius: calc(var(--radius) + 4px);
  padding: clamp(1.75rem, 4vw, 2.75rem);
  box-shadow: 0 18px 50px rgba(26, 43, 86, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-left: 5px solid var(--coral);
}

.hero-banner__eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--coral);
  margin-bottom: 0.75rem;
}

.hero-banner__panel h1 {
  font-size: clamp(1.95rem, 4.2vw, 3rem);
  margin-bottom: 1rem;
  line-height: 1.12;
}

.hero-banner__lead {
  font-size: clamp(0.98rem, 1.2vw, 1.08rem);
  margin-bottom: 1.65rem;
  color: var(--text);
  line-height: 1.65;
}

.hero-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.65rem;
}

.hero-banner__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--sky-deep);
}

.hero-banner__stats strong {
  display: block;
  font-size: 1.35rem;
  color: var(--coral);
  line-height: 1.2;
}

.hero-banner__stats span {
  font-size: 0.78rem;
  color: var(--text);
  line-height: 1.35;
}

.hero-image-wrap {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-image-wrap img {
  width: 100%;
  min-height: 320px;
  object-fit: cover;
}

/* Section */
.section {
  padding: 4.5rem 0;
}

.section-alt {
  background: var(--sky);
}

.section-title {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 2.5rem;
}

.section-title .label {
  color: var(--coral);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
}

.section-title h2 {
  font-size: clamp(1.5rem, 3vw, 2.15rem);
  margin: 0.35rem 0 0.75rem;
}

/* Steps zigzag */
.step-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 4rem;
}

.step-row.reverse .step-visual {
  order: 2;
}

.step-row.reverse .step-content {
  order: 1;
}

.step-visual {
  position: relative;
}

.step-visual img {
  border-radius: var(--radius);
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.step-icon {
  position: absolute;
  bottom: -12px;
  right: 24px;
  width: 56px;
  height: 56px;
  background: var(--coral);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.5rem;
  box-shadow: 0 6px 20px rgba(241, 90, 75, 0.4);
}

.step-content .label {
  color: var(--coral);
  font-weight: 700;
  font-size: 0.85rem;
}

.step-content h3 {
  font-size: 1.45rem;
  margin: 0.4rem 0 0.75rem;
}

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.feature-icons {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin: 1.5rem 0;
}

.feature-icon-item {
  text-align: center;
  flex: 1;
  min-width: 100px;
}

.feature-icon-item .circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  margin: 0 auto 0.65rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.75rem;
}

.circle-coral { background: var(--coral); }
.circle-navy { background: var(--navy); }
.circle-green { background: var(--green); }

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.pricing-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform 0.2s;
}

.pricing-card:hover {
  transform: translateY(-4px);
}

.pricing-card .icon-top {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.5rem;
}

.pricing-card h3 {
  margin-bottom: 0.25rem;
}

.pricing-card .price {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0.5rem 0 1rem;
}

.pricing-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
  text-align: left;
}

.pricing-card li {
  padding: 0.4rem 0;
  padding-left: 1.5rem;
  position: relative;
  font-size: 0.92rem;
}

.pricing-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--coral);
  font-weight: bold;
}

/* Services grid */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--coral);
}

.service-card h3 {
  font-size: 1.15rem;
}

/* Stats */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
}

.stat-box h3 {
  font-size: 2rem;
  color: var(--coral);
  margin-bottom: 0.25rem;
}

/* Explore */
.explore-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.explore-item {
  text-align: center;
}

.explore-item img {
  border-radius: var(--radius);
  aspect-ratio: 1;
  object-fit: cover;
  width: 100%;
  margin-bottom: 0.75rem;
}

/* Testimonials */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.testimonial-card {
  background: #fff;
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: relative;
}

.testimonial-card::before {
  content: "\201C";
  font-size: 4rem;
  color: var(--sky-deep);
  position: absolute;
  top: 0.5rem;
  left: 1.25rem;
  line-height: 1;
  font-family: Georgia, serif;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.25rem;
}

.testimonial-author img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
}

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.team-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  text-align: center;
}

.team-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.team-card .team-info {
  padding: 1.25rem;
}

/* Projects */
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.project-card img {
  border-radius: var(--radius);
  aspect-ratio: 16/10;
  object-fit: cover;
  width: 100%;
}

.project-card h3 {
  margin: 0.85rem 0 0.35rem;
  font-size: 1.1rem;
}

/* Page hero inner */
.page-hero {
  background: linear-gradient(120deg, var(--navy) 0%, #243a70 100%);
  color: #fff;
  padding: 3.5rem 0;
  text-align: center;
}

.page-hero h1 {
  color: #fff;
  margin-bottom: 0.5rem;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 600px;
  margin: 0 auto;
}

.breadcrumb {
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
  opacity: 0.9;
}

.breadcrumb a {
  color: #fff;
}

/* Content prose */
.prose {
  max-width: 820px;
  margin: 0 auto;
}

.prose h2 {
  font-size: 1.35rem;
  margin-top: 2rem;
}

.prose h3 {
  font-size: 1.1rem;
  margin-top: 1.5rem;
}

.prose ul, .prose ol {
  padding-left: 1.25rem;
}

.prose li {
  margin-bottom: 0.35rem;
}

/* Forms */
.form-section {
  max-width: 560px;
  margin: 0 auto;
  background: #fff;
  padding: 2.25rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 1.15rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.4rem;
  font-size: 0.92rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid #d8dee8;
  border-radius: 10px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--coral);
  box-shadow: 0 0 0 3px rgba(241, 90, 75, 0.15);
}

.form-group textarea {
  min-height: 130px;
  resize: vertical;
}

.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea {
  border-color: #e74c3c;
}

.field-error {
  color: #e74c3c;
  font-size: 0.82rem;
  margin-top: 0.3rem;
  display: none;
}

.form-group.has-error .field-error {
  display: block;
}

/* Checkbox alignment */
.checkbox-group {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1.15rem;
}

.checkbox-group input[type="checkbox"] {
  width: 20px;
  height: 20px;
  min-width: 20px;
  margin-top: 0.15rem;
  accent-color: var(--coral);
  cursor: pointer;
  flex-shrink: 0;
}

.checkbox-group label {
  margin: 0;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  line-height: 1.45;
  flex: 1;
}

.checkbox-group .field-error {
  flex: 0 0 100%;
  margin-left: calc(20px + 0.65rem);
}

.form-success {
  display: none;
  background: #e8f8f0;
  border: 1px solid var(--green);
  color: #1e6b42;
  padding: 1.25rem;
  border-radius: 10px;
  text-align: center;
  font-weight: 600;
  margin-top: 1rem;
}

.form-success.visible {
  display: block;
}

.form-success-main {
  background: var(--sky);
  padding: 3rem 0;
}

/* Footer */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.8);
  padding: 3.5rem 0 0;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-top .logo-link img {
  height: 38px;
}

.social-links {
  display: flex;
  gap: 0.75rem;
}

.social-links a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff !important;
  font-size: 0.85rem;
  font-weight: 700;
}

.social-links a:hover {
  background: var(--coral);
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  padding: 2.5rem 0;
}

.footer-col h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 1rem;
}

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

.footer-col li {
  margin-bottom: 0.5rem;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.75);
}

.footer-col a:hover {
  color: var(--coral);
}

.footer-newsletter {
  display: flex;
  gap: 0;
  margin-top: 0.5rem;
}

.footer-newsletter input {
  flex: 1;
  padding: 0.65rem 0.9rem;
  border: none;
  border-radius: var(--radius-pill) 0 0 var(--radius-pill);
  font-family: inherit;
}

.footer-newsletter button {
  background: var(--coral);
  border: none;
  color: #fff;
  padding: 0 1.1rem;
  border-radius: 0 var(--radius-pill) var(--radius-pill) 0;
  cursor: pointer;
  font-weight: 700;
}

.footer-bottom {
  text-align: center;
  padding: 1.25rem 0;
  font-size: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.6);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  margin-top: 0.5rem;
  justify-content: center;
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 992px) {
  .hero-banner__bg img {
    object-position: 65% center;
  }

  .step-row,
  .features-grid,
  .card-grid,
  .service-grid,
  .stats-row,
  .explore-grid,
  .testimonial-grid,
  .team-grid,
  .project-grid,
  .footer-columns {
    grid-template-columns: 1fr 1fr;
  }

  .step-row.reverse .step-visual,
  .step-row.reverse .step-content {
    order: unset;
  }
}

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

  .main-nav {
    display: none;
    width: 100%;
    order: 3;
  }

  .main-nav.open {
    display: block;
  }

  .header-inner {
    flex-wrap: wrap;
  }

  .main-nav ul {
    flex-direction: column;
    padding: 1rem 0;
  }

  .header-actions {
    margin-left: auto;
  }

  .hero-banner {
    min-height: auto;
  }

  .hero-banner__bg::after {
    background: linear-gradient(
      180deg,
      rgba(225, 241, 248, 0.35) 0%,
      rgba(225, 241, 248, 0.92) 42%,
      rgba(225, 241, 248, 0.98) 100%
    );
  }

  .hero-banner__bg img {
    object-position: center 20%;
  }

  .hero-banner__inner {
    padding: 2.25rem 0 3rem;
  }

  .hero-banner__panel {
    max-width: none;
  }

  .hero-banner__stats {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .hero-banner__stats div {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    flex-wrap: wrap;
  }

  .hero-banner__stats strong {
    font-size: 1.15rem;
  }

  .step-row,
  .features-grid,
  .card-grid,
  .service-grid,
  .stats-row,
  .explore-grid,
  .testimonial-grid,
  .team-grid,
  .project-grid,
  .footer-columns {
    grid-template-columns: 1fr;
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .header-actions .btn-ghost {
    display: none;
  }

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

  .two-col {
    grid-template-columns: 1fr;
  }
}
