/* ============================================
   Deliver On Success — Marketing Site Styles
   ============================================ */

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  color: #333333;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: #0073AA;
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: #2B5797;
}

h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  line-height: 1.25;
  font-weight: 700;
  color: #1B3A5C;
}

h1 { font-size: clamp(2rem, 4vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
h4 { font-size: clamp(1rem, 1.5vw, 1.25rem); }

/* --- Layout --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

.section--gray {
  background-color: #f8f9fa;
}

.section--navy {
  background: linear-gradient(135deg, #1B3A5C 0%, #2B5797 100%);
  color: #ffffff;
}

.section--navy h1,
.section--navy h2,
.section--navy h3 {
  color: #ffffff;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
  text-decoration: none;
}

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

.btn--primary {
  background-color: #0073AA;
  color: #ffffff;
  border-color: #0073AA;
}

.btn--primary:hover {
  background-color: #005f8a;
  border-color: #005f8a;
  color: #ffffff;
}

.btn--outline {
  background-color: transparent;
  color: #0073AA;
  border-color: #0073AA;
}

.btn--outline:hover {
  background-color: #0073AA;
  color: #ffffff;
}

.btn--white {
  background-color: #ffffff;
  color: #1B3A5C;
  border-color: #ffffff;
}

.btn--white:hover {
  background-color: #f8f9fa;
  border-color: #f8f9fa;
  color: #1B3A5C;
}

/* --- Nav --- */
.nav {
  position: sticky;
  top: 0;
  background-color: #ffffff;
  z-index: 100;
  border-bottom: 1px solid #e5e7eb;
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.nav__logo img {
  height: 36px;
  width: auto;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__links a {
  color: #333333;
  font-weight: 500;
  font-size: 0.95rem;
}

.nav__links a:hover {
  color: #0073AA;
}

.nav__links .btn.btn--primary {
  font-size: 0.95rem;
  padding: 10px 24px;
  color: #ffffff;
  background-color: #0073AA;
  border-color: #0073AA;
}

.nav__links .btn.btn--primary:hover {
  color: #ffffff;
  background-color: #005f8a;
  border-color: #005f8a;
}

.nav__hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #333333;
  padding: 4px;
}

/* --- Hero --- */
.hero {
  padding-top: 80px;
  padding-bottom: 80px;
}

.hero__inner {
  display: flex;
  align-items: center;
  gap: 48px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.hero__text {
  flex: 1.2;
}

.hero__eyebrow {
  text-transform: uppercase;
  color: #2B5797;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
}

.hero__headline {
  margin-bottom: 16px;
}

.hero__subhead {
  font-size: 1.15rem;
  color: #666666;
  line-height: 1.7;
  margin-bottom: 32px;
}

.hero__ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero__image {
  flex: 1;
}

.hero__screenshot {
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

/* --- Problem Section --- */
.problem__stat {
  text-align: center;
  margin-bottom: 48px;
}

.problem__number {
  font-size: clamp(3rem, 5vw, 4.5rem);
  font-weight: 800;
  color: #1B3A5C;
  line-height: 1;
}

.problem__stat-text {
  font-size: 1.15rem;
  color: #666666;
  margin-top: 8px;
}

.problem__desc {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 48px;
  color: #666666;
  font-size: 1.05rem;
  line-height: 1.7;
}

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

.problem__card {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  padding: 32px;
}

.problem__card-icon {
  color: #c0392b;
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.problem__card h3 {
  margin-bottom: 8px;
}

.problem__card-text {
  color: #666666;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* --- Solution Section --- */
.solution__header {
  text-align: center;
  margin-bottom: 12px;
}

.solution__subhead {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 48px;
  color: #666666;
  font-size: 1.05rem;
  line-height: 1.7;
}

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

.solution__card {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  padding: 32px;
  border-left: 4px solid #0073AA;
}

.solution__card:nth-child(2) {
  border-left-color: #2B5797;
}

.solution__card:nth-child(3) {
  border-left-color: #1B3A5C;
}

.solution__card h3 {
  margin-bottom: 8px;
}

.solution__card p {
  color: #666666;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* --- AVC Steps --- */
.avc__header {
  text-align: center;
  margin-bottom: 12px;
}

.avc__subhead {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 48px;
  color: #666666;
  font-size: 1.05rem;
  line-height: 1.7;
}

.avc__steps {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px;
}

.avc__step {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  padding: 24px 20px;
  min-width: 100px;
  text-align: center;
  flex: 0 1 140px;
}

.avc__step-number {
  color: #0073AA;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 4px;
}

.avc__step-name {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 6px;
}

.avc__step-desc {
  color: #666666;
  font-size: 0.8rem;
  line-height: 1.4;
}

.avc__arrow {
  display: flex;
  align-items: center;
  font-size: 1.5rem;
  color: #2B5797;
  font-weight: 700;
  padding-top: 24px;
}

.avc__cycle {
  display: flex;
  align-items: center;
  font-size: 2rem;
  color: #0073AA;
  font-weight: 700;
  padding-top: 24px;
}

/* --- Audiences Section --- */
.audiences__header {
  text-align: center;
  margin-bottom: 48px;
}

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

.audiences__card {
  text-align: center;
  padding: 40px 24px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
}

.audiences__card-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.audiences__card h3 {
  margin-bottom: 8px;
}

.audiences__card p {
  color: #666666;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* --- CTA Banner --- */
.cta-banner {
  text-align: center;
  padding: 64px 24px;
}

.cta-banner h2 {
  margin-bottom: 16px;
}

.cta-banner p {
  font-size: 1.15rem;
  margin-bottom: 32px;
  opacity: 0.9;
}

/* --- Footer --- */
.footer {
  background-color: #1B3A5C;
  color: #ffffff;
  padding: 48px 0;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  flex-wrap: wrap;
  gap: 24px;
}

.footer__brand img {
  height: 32px;
  width: auto;
  margin-bottom: 8px;
}

.footer__tagline {
  font-size: 0.85rem;
  opacity: 0.7;
}

.footer__links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 24px;
}

.footer__links a {
  color: #ffffff;
  font-size: 0.9rem;
  opacity: 0.8;
}

.footer__links a:hover {
  opacity: 1;
  color: #ffffff;
}

.footer__copy {
  font-size: 0.8rem;
  opacity: 0.6;
  width: 100%;
  text-align: center;
  margin-top: 24px;
}

/* --- Blog Index --- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.blog-card {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.blog-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.blog-card__body {
  padding: 24px;
}

.blog-card__date {
  font-size: 0.8rem;
  color: #666666;
  margin-bottom: 8px;
}

.blog-card__title {
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: #333333;
}

.blog-card__excerpt {
  font-size: 0.9rem;
  color: #666666;
  line-height: 1.6;
  margin-bottom: 16px;
}

.blog-card__link {
  font-weight: 600;
  font-size: 0.9rem;
  color: #0073AA;
}

/* --- Blog Post --- */
.post {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px;
}

.post__header {
  margin-bottom: 32px;
}

.post__title {
  margin-bottom: 12px;
}

.post__meta {
  color: #666666;
  font-size: 0.9rem;
}

.post__body h2 {
  margin-top: 40px;
  margin-bottom: 16px;
}

.post__body h3 {
  margin-top: 32px;
  margin-bottom: 12px;
}

.post__body p {
  margin-bottom: 16px;
  line-height: 1.8;
}

.post__body ul,
.post__body ol {
  margin-bottom: 16px;
  padding-left: 24px;
}

.post__body li {
  margin-bottom: 8px;
  line-height: 1.7;
}

.post__body blockquote {
  border-left: 4px solid #2B5797;
  margin: 24px 0;
  padding: 16px 24px;
  background: #f8f9fa;
  border-radius: 0 8px 8px 0;
  color: #666666;
  font-style: italic;
}

.post__back {
  display: inline-block;
  margin-top: 40px;
  font-weight: 600;
}

/* --- Contact --- */
.contact__grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: start;
}

.contact__form-group {
  margin-bottom: 20px;
}

.contact__form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: #333333;
}

.contact__form-group input,
.contact__form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  color: #333333;
  transition: border-color 0.2s;
}

.contact__form-group input:focus,
.contact__form-group textarea:focus {
  outline: none;
  border-color: #0073AA;
}

.contact__form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.contact__form-success {
  display: none;
  background: #f8f9fa;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 32px;
  text-align: center;
}

.contact__schedule {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 32px;
}

.contact__schedule h3 {
  margin-bottom: 16px;
}

.contact__schedule p {
  color: #666666;
  line-height: 1.6;
}

/* --- 404 --- */
.error-page {
  text-align: center;
  padding: 120px 24px;
}

.error-page__number {
  font-size: clamp(6rem, 15vw, 12rem);
  font-weight: 800;
  color: #1B3A5C;
  line-height: 1;
  margin-bottom: 16px;
}

.error-page h2 {
  margin-bottom: 16px;
}

.error-page p {
  color: #666666;
  margin-bottom: 32px;
}

/* ============================================
   Responsive — Tablet (1024px)
   ============================================ */
@media (max-width: 1024px) {
  .problem__cards,
  .solution__cards,
  .audiences__cards,
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .avc__step {
    flex: 0 1 120px;
    min-width: 90px;
    padding: 20px 16px;
  }

  .avc__arrow,
  .avc__cycle {
    font-size: 1.2rem;
  }
}

/* ============================================
   Responsive — Mobile (768px)
   ============================================ */
@media (max-width: 768px) {
  .section {
    padding: 48px 0;
  }

  /* Nav mobile */
  .nav__hamburger {
    display: block;
  }

  .nav__links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 24px;
    gap: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  }

  .nav__links.active {
    display: flex;
  }

  /* Hero mobile */
  .hero__inner {
    flex-direction: column;
    text-align: center;
  }

  .hero__ctas {
    justify-content: center;
  }

  /* Grids to 1 column */
  .problem__cards,
  .solution__cards,
  .audiences__cards,
  .blog-grid,
  .contact__grid {
    grid-template-columns: 1fr;
  }

  /* AVC vertical */
  .avc__steps {
    flex-direction: column;
    align-items: center;
  }

  .avc__step {
    flex: 0 1 auto;
    width: 100%;
    max-width: 280px;
  }

  .avc__arrow {
    transform: rotate(90deg);
    padding-top: 0;
  }

  /* Footer stacks */
  .footer__inner {
    flex-direction: column;
    text-align: center;
  }

  .footer__links {
    flex-wrap: wrap;
    justify-content: center;
  }
}
