@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..900;1,9..40,100..900&display=swap');

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

:root {
  --color-bg: #ffffff;
  --color-text: #1B262C;
  --color-heading: #0F4C75;
  --color-muted: #666666;
  --color-border: #e0e0e0;
  --color-primary: #3282B8;
  --color-hero-bg: #BBE1FA;
  --font-base: 'DM Sans', system-ui, sans-serif;
  --motion-base: 0.3s ease;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-base);
  font-size: 16px;
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: 1366px;
  margin-inline: auto;
  padding-inline: 16px;
}

a {
  color: var(--color-primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--color-heading);
  line-height: 1.2;
}

h1 {
  font-size: 35px;
  margin-bottom: 16px;
}

h2 {
  font-size: 25px;
  margin-bottom: 12px;
}

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: 10px 24px;
  font-family: var(--font-base);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: transform var(--motion-base), box-shadow var(--motion-base), opacity var(--motion-base), background-color var(--motion-base), color var(--motion-base), border-color var(--motion-base);
}

.btn:hover {
  opacity: 0.88;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(15, 76, 117, 0.16);
}

.btn--primary {
  background-color: var(--color-primary);
  color: #ffffff;
  border: 2px solid var(--color-primary);
}

.btn--outline {
  background-color: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

/* ── Header ── */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background-color: transparent;
  padding: 16px 0;
}

header .container {
  background: #ffffff;
  border-radius: 8px;
  padding: 12px 24px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  position: relative;
  width: calc(100% - 48px);
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo img {
  height: 40px;
  display: block;
}

.logo .custom-logo-link img,
.custom-logo-link img {
  height: 40px;
  width: auto;
  display: block;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 32px;
  margin-left: auto;
}

nav ul a {
  color: var(--color-text);
  font-size: 15px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 1px;
}

nav ul a:hover {
  color: var(--color-primary);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-direction: column;
  gap: 5px;
  margin-left: auto;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-text);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ── Hero ── */
.home {
  background-color: var(--color-hero-bg);
  padding-top: 40px;
}

.banner {
  display: flex;
  align-items: center;
  overflow: hidden;
  min-height: 460px;
}

.banner__content {
  width: 50%;
  flex-shrink: 0;
  padding-top: 56px;
  padding-bottom: 56px;
  padding-right: 48px;
  padding-left: max(calc((100vw - 1366px) / 2 + 16px), 24px);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.banner__content h1 {
  font-size: 45px;
  font-weight: 700;
  margin-bottom: 0;
}

.banner__content p {
  color: var(--color-text);
  max-width: 52ch;
}

.banner__bullets {
  list-style: none;
  display: flex;
  align-items: center;
  font-weight: 700;
  font-size: 15px;
  flex-wrap: wrap;
}

.banner__bullets li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.banner__bullets li + li::before {
  content: '•';
  display: inline-block;
  padding-inline: 10px;
  color: var(--color-text);
}

.banner__cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.banner__image {
  flex: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  align-self: stretch;
}

.banner__image img {
  display: block;
  max-width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom center;
}

/* ── Anchor offset for fixed header ── */
.blog-hero {
  background-color: var(--color-hero-bg);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  padding-top: 40px;
}

.blog-hero__inner {
  min-height: 460px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 72px;
}

.blog-hero__inner h1 {
  color: #ffffff;
  font-size: 52px;
  margin-bottom: 0;
}

.blog-listing {
  padding-block: 80px;
  background-color: var(--color-bg);
}

.blog-listing__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.blog-card {
  min-width: 0;
}

.blog-card__image {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1.2;
  overflow: hidden;
  border-radius: 10px;
  background-color: var(--color-hero-bg);
}

.blog-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--motion-base);
}

.blog-card__image:hover {
  text-decoration: none;
}

.blog-card__image:hover img {
  transform: scale(1.04);
}

.blog-card__fallback {
  position: absolute;
  inset: 0;
  display: block;
  background: linear-gradient(135deg, #9fd4f5 0%, #3282B8 100%);
}

.blog-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 38, 44, 0.1) 0%, rgba(15, 38, 44, 0.78) 100%);
}

.blog-card__content {
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 18px;
}

.blog-card__meta {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}

.blog-card__title {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 20px;
  line-height: 1.22;
  font-weight: 700;
  color: #ffffff;
  min-height: calc(20px * 1.22 * 2);
}

.blog-empty {
  text-align: center;
  padding: 40px 24px;
}

.blog-empty p {
  color: var(--color-muted);
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 40px;
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding-inline: 14px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  color: var(--color-text);
  background-color: #ffffff;
}

.pagination .page-numbers.current {
  color: #ffffff;
  background-color: var(--color-primary);
  border-color: var(--color-primary);
}

.blog-post-hero {
  background-color: var(--color-hero-bg);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  padding-top: 40px;
}

.blog-post-hero__inner {
  min-height: 460px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 72px;
}

.blog-post-hero__inner h1 {
  color: #ffffff;
  font-size: 52px;
  margin-bottom: 0;
  max-width: 16ch;
}

.blog-post {
  padding-block: 80px;
  background-color: var(--color-bg);
}

.blog-post .container {
  max-width: 860px;
}

.blog-post__back {
  margin-bottom: 20px;
}

.blog-post__back a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
}

.blog-post__back a::before {
  content: '<';
  font-size: 14px;
  line-height: 1;
}

.blog-post__meta {
  margin-bottom: 24px;
  text-align: center;
  font-size: 14px;
  color: var(--color-muted);
}

.blog-post__content {
  color: var(--color-text);
  font-size: 18px;
}

.blog-post__content > * + * {
  margin-top: 1.2em;
}

.blog-post__content h2,
.blog-post__content h3,
.blog-post__content h4 {
  margin-top: 1.8em;
  margin-bottom: 0.5em;
}

.blog-post__content ul,
.blog-post__content ol {
  padding-left: 1.4em;
}

.blog-post__content img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

.blog-post__content a {
  text-decoration: underline;
}

section[id], footer[id] {
  scroll-margin-top: 80px;
}

/* ── Main ── */
main {
  flex: 1;
}

/* ── Section header (reusable) ── */
.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 {
  font-size: 38px;
  margin-bottom: 16px;
}

.section-header p {
  color: var(--color-text);
  max-width: 60ch;
  margin-inline: auto;
}

/* ── Scroll animations ── */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-up:nth-child(2) { transition-delay: 0.1s; }
.fade-up:nth-child(3) { transition-delay: 0.2s; }
.fade-up:nth-child(4) { transition-delay: 0.3s; }

/* ── Why Us ── */
.about {
  padding-block: 80px;
  background-color: var(--color-bg);
}

.about__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.about__card {
  background-color: var(--color-primary);
  border-radius: 10px;
  padding: 32px 32px 32px 28px;
  display: flex;
  align-items: flex-start;
  gap: 24px;
}

.about__icon {
  flex-shrink: 0;
  width: 56px;
  margin-top: 4px;
}

.about__icon img {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.about__text h3 {
  color: #ffffff;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}

.about__text p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 15px;
  line-height: 1.6;
}

/* ── Process ── */
.our-process {
  display: flex;
}

.our-process__col {
  width: 50%;
  background-color: #3282B8;
  padding-block: 64px;
  padding-left: max(calc((100vw - 1366px) / 2 + 16px), 24px);
  padding-right: 60px;
}

.our-process__col--alt {
  background-color: #0F4C75;
  padding-left: 60px;
  padding-right: max(calc((100vw - 1366px) / 2 + 16px), 24px);
}

.our-process__col h2 {
  color: #ffffff;
  font-size: 38px;
  font-weight: 700;
  margin-bottom: 16px;
}

.our-process__intro {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 36px;
  line-height: 1.7;
}

.our-process__steps {
  display: flex;
  flex-direction: column;
  margin-bottom: 32px;
}

.our-process__step {
  display: flex;
  gap: 20px;
}

.our-process__step-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}

.our-process__step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: #BBE1FA;
  color: #0F4C75;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}

.our-process__step-line {
  width: 0;
  flex: 1;
  border-left: 2px dashed rgba(255, 255, 255, 0.35);
  margin-block: 6px;
  min-height: 20px;
}

.our-process__step:last-child .our-process__step-line {
  display: none;
}

.our-process__step-body {
  padding-bottom: 28px;
}

.our-process__step-body h3 {
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.our-process__step-text {
  color: rgba(255, 255, 255, 0.85);
  font-size: 15px;
  line-height: 1.7;
}

.our-process__step-text > *:first-child {
  margin-top: 0;
}

.our-process__step-text > *:last-child {
  margin-bottom: 0;
}

.our-process__step-text a {
  color: #ffffff;
}

.our-process__note {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  line-height: 1.7;
}

.our-process__note strong {
  color: #ffffff;
}

/* ── Team ── */
.team {
  padding-block: 80px;
  background-color: #ffffff;
}

.team__slider {
  display: flex;
  align-items: center;
  gap: 16px;
}

.team__track-wrapper {
  overflow: hidden;
  flex: 1;
}

.team__track {
  display: flex;
  gap: 32px;
  transition: transform 0.4s ease;
}

.team__member {
  flex-shrink: 0;
  width: calc((100% - 5 * 32px) / 6);
  text-align: center;
}

.team__avatar {
  width: 100%;
  aspect-ratio: 1;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.team__avatar img {
  width: auto;
  height: 100%;
  display: block;
}

.team__name {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 2px;
}

.team__role {
  font-size: 14px;
  color: var(--color-muted);
}

.team__btn {
  background: none;
  border: none;
  font-size: 36px;
  color: var(--color-primary);
  cursor: pointer;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.team__btn:hover {
  color: var(--color-heading);
}

.team__btn:disabled {
  opacity: 0.3;
  cursor: default;
  pointer-events: none;
}

/* ── Stats ── */
.pricing {
  padding-block: 60px;
  background-color: #ffffff;
}

.pricing__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.pricing__card {
  border: 1px solid #BBE1FA;
  border-radius: 10px;
  padding: 36px 24px;
  text-align: center;
}

.pricing__number {
  font-size: 52px;
  font-weight: 700;
  color: #0F4C75;
  line-height: 1;
  margin-bottom: 12px;
}

.pricing__number sup {
  font-size: 24px;
  vertical-align: super;
  font-weight: 700;
}

.pricing__label {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-text);
}

/* ── Services ── */
.services {
  padding-block: 80px;
  background-color: #F2F4F6;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.services__col h3 {
  font-size: 20px;
  font-weight: 700;
  color: #4E1F08;
  margin-bottom: 28px;
  padding-left: 34px;
}

.services__col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.services__col ul li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 16px;
  color: var(--color-text);
}

.services__col ul li img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex-shrink: 0;
}

.services__more {
  margin-top: 24px;
  font-size: 15px;
  color: var(--color-text);
  padding-left: 34px;
}

/* ── 404 ── */
.not-found {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px;
}

.not-found h1 {
  font-size: 96px;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: 8px;
}

.not-found h2 {
  margin-bottom: 16px;
}

.not-found p {
  color: var(--color-muted);
  margin-bottom: 32px;
}

/* ── Footer ── */
.footer {
  background-color: #1B262C;
  color: #ffffff;
}

.footer__cta {
  padding-top: 72px;
  padding-bottom: 32px;
  text-align: center;
}

.footer__cta h2 {
  color: #ffffff;
  font-size: 30px;
  margin-bottom: 16px;
}

.footer__cta p {
  color: rgba(255, 255, 255, 0.75);
}

.footer__location {
  color: #ffffff;
  font-size: 18px;
  margin-top: 24px;
  margin-bottom: 28px;
}

.footer__bottom {
  padding-top: 8px;
  padding-bottom: 40px;
  text-align: center;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
}

/* ── Tablet ── */
@media (max-width: 1024px) {
  .banner__content h1 {
    font-size: 36px;
  }

  .blog-listing__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .banner__content {
    padding-right: 32px;
  }

  .team__member {
    width: calc((100% - 3 * 32px) / 4);
  }
}

/* ── Mobile ── */
@media (max-width: 768px) {

  header .container {
    padding: 10px 16px;
  }

  nav {
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: flex;
    margin-left: auto;
  }

  nav > .btn {
    display: none;
  }

  nav ul {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 0;
    margin-left: 0;
    order: 1;
    border-top: 1px solid var(--color-border);
    margin-top: 8px;
    padding-top: 4px;
  }

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

  nav ul li a {
    display: block;
    padding: 10px 0;
  }

  .banner {
    flex-direction: column;
    min-height: unset;
  }

  .banner__content {
    width: 100%;
    padding: 40px 24px 32px;
  }

  .banner__content h1 {
    font-size: 30px;
  }

  .blog-hero__inner {
    min-height: 320px;
    padding: 112px 24px 56px;
  }

  .blog-hero__inner h1 {
    font-size: 38px;
  }

  .blog-post-hero__inner {
    min-height: 320px;
    padding: 112px 24px 56px;
  }

  .blog-post-hero__inner h1 {
    font-size: 38px;
  }

  .banner__content p {
    max-width: 100%;
  }

  .blog-listing {
    padding-block: 48px;
  }

  .blog-post {
    padding-block: 48px;
  }

  .blog-listing__grid {
    grid-template-columns: 1fr;
  }

  .banner__image {
    width: 100%;
    max-height: 300px;
    align-self: auto;
  }

  .banner__image img {
    height: auto;
    max-height: 300px;
    width: 100%;
  }

  .about {
    padding-block: 48px;
  }

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

  .section-header h2 {
    font-size: 28px;
  }

  .our-process {
    flex-direction: column;
  }

  .our-process__col {
    width: 100%;
    padding: 48px 24px;
  }

  .our-process__col h2 {
    font-size: 28px;
  }

  .team__member {
    width: 100%;
  }

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

  .services {
    padding-block: 48px;
  }

  .services__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer__cta {
    padding-top: 48px;
    padding-bottom: 24px;
  }

  .footer__cta h2 {
    font-size: 24px;
  }
}
