:root {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-alt: #0d1b2a;
  --text: #163047;
  --muted: #557087;
  --line: #d4dee8;
  --brand: #0088cd;
  --brand-2: #1ab99b;
  --shadow: 0 24px 60px rgba(12, 33, 56, 0.12);
  --radius: 22px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(26, 185, 155, 0.16), transparent 26%),
    linear-gradient(180deg, #f8fbff 0%, #eef4fa 100%);
  color: var(--text);
}

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

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
}

.top-bar {
  background: var(--surface-alt);
  padding: 0.8rem 1.2rem;
  text-align: right;
}

.top-bar a {
  color: white;
  text-decoration: none;
  font-weight: 700;
}

.nav-shell,
.section,
.page-hero,
.footer-bottom,
.newsletter {
  width: min(calc(100% - 2rem), var(--max));
  margin: 0 auto;
}

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

.brand img {
  height: 52px;
}

.site-nav {
  display: flex;
  gap: 1.4rem;
}

.site-nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
}

.site-nav a.is-active {
  color: var(--brand);
}

.nav-toggle {
  display: none;
}

.hero,
.section,
.newsletter,
.page-hero,
.post-layout {
  padding: 3.5rem 0;
}

.hero {
  width: min(calc(100% - 2rem), var(--max));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem;
  align-items: center;
}

.hero-copy h1,
.page-hero h1,
.section-header h2 {
  margin: 0;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.section-intro {
  margin: 0.75rem 0 0;
  max-width: 42rem;
  line-height: 1.7;
}

.hero-copy h1 {
  font-size: clamp(3rem, 6vw, 5.8rem);
}

.hero-copy p {
  color: var(--muted);
  font-size: 1.08rem;
}

.eyebrow,
.meta {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  color: var(--brand);
  font-weight: 800;
}

.cta-row,
.form-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.field {
  display: grid;
  gap: 0.45rem;
  flex: 1 1 240px;
}

.field label,
.section-intro {
  color: var(--muted);
  font-size: 0.95rem;
}

.field label {
  font-weight: 700;
}

.button-link,
.ghost-link,
button {
  border: 0;
  border-radius: 999px;
  padding: 0.95rem 1.4rem;
  font-size: 0.96rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.button-link,
button {
  background: linear-gradient(135deg, var(--brand), #0b67bd);
  color: white;
}

.ghost-link {
  background: white;
  color: var(--text);
  box-shadow: var(--shadow);
}

.hero-stack {
  display: grid;
  gap: 1rem;
}

.hero-stack figure,
.service-card,
.blog-card,
.testimonial-card,
.client-pill,
.feature-grid article,
.split-page,
.quote-panel,
.newsletter,
.post-body {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-stack figure {
  margin: 0;
  overflow: hidden;
}

.hero-stack img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.hero-stack figcaption {
  padding: 1rem 1.2rem;
  font-weight: 700;
}

.two-column,
.split-page {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.split-page {
  padding: 1.5rem;
}

.page-image,
.post-image {
  width: 100%;
  border-radius: 18px;
  object-fit: cover;
}

.feature-grid,
.card-grid,
.clients-grid,
.blog-index {
  display: grid;
  gap: 1.25rem;
}

.feature-grid {
  grid-template-columns: repeat(3, 1fr);
}

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

.blog-grid,
.blog-index {
  grid-template-columns: repeat(3, 1fr);
}

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

.clients-grid {
  grid-template-columns: repeat(4, 1fr);
}

.feature-grid article,
.service-card,
.blog-card,
.testimonial-card,
.client-pill {
  padding: 1.25rem;
}

.feature-grid article img {
  width: 52px;
  margin-bottom: 1rem;
}

.service-card img,
.blog-card img {
  border-radius: 16px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.service-copy,
.blog-copy {
  padding-top: 1rem;
}

.service-copy h3,
.blog-copy h3,
.testimonial-card h3,
.client-pill span {
  margin: 0 0 0.6rem;
}

.text-link {
  color: var(--brand);
  font-weight: 800;
  text-decoration: none;
}

.accent-panel {
  background:
    linear-gradient(135deg, rgba(0, 136, 205, 0.14), rgba(26, 185, 155, 0.12)),
    transparent;
  border-radius: 32px;
}

.client-pill {
  display: grid;
  place-items: center;
  gap: 0.8rem;
  min-height: 170px;
  text-align: center;
}

.client-pill img {
  max-height: 70px;
  width: auto;
}

.page-hero {
  padding-bottom: 0;
}

.page-hero h1 {
  font-size: clamp(2.3rem, 5vw, 4rem);
}

.page-subtitle,
.section p,
.post-body p,
.accordion-list p {
  color: var(--muted);
  line-height: 1.75;
}

.accordion-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.accordion-list details {
  padding: 1rem 1.1rem;
  background: #f6f9fd;
  border-radius: 16px;
  border: 1px solid var(--line);
}

.accordion-list summary {
  cursor: pointer;
  font-weight: 800;
}

form {
  display: grid;
  gap: 1rem;
}

input,
textarea {
  width: 100%;
  padding: 0.95rem 1rem;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: white;
  font: inherit;
  color: var(--text);
}

textarea {
  resize: vertical;
}

.quote-panel,
.newsletter,
.post-body {
  padding: 1.5rem;
}

.inline-form {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
}

.inline-form .form-status {
  grid-column: 1 / -1;
}

.site-footer {
  padding: 2rem 0 3rem;
}

.footer-bottom {
  text-align: center;
  color: var(--muted);
}

.form-status {
  min-height: 1.2rem;
  margin: 0;
  color: var(--brand);
  font-weight: 700;
}

@media (max-width: 980px) {
  .hero,
  .two-column,
  .split-page,
  .services-grid,
  .blog-grid,
  .blog-index,
  .clients-grid,
  .feature-grid,
  .testimonials-grid,
  .inline-form {
    grid-template-columns: 1fr;
  }

  .nav-toggle {
    display: block;
    background: white;
    color: var(--text);
    box-shadow: var(--shadow);
  }

  .site-nav {
    position: absolute;
    inset: calc(100% + 0.5rem) 1rem auto 1rem;
    display: none;
    flex-direction: column;
    background: white;
    padding: 1rem;
    border-radius: 22px;
    box-shadow: var(--shadow);
  }

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