* {
  box-sizing: border-box;
}

:root {
  --dark: #303030;
  --blue: #233f91;
  --blue-light: #2e55bd;
  --text: #555;
  --heading: #1e3d8f;
  --white: #fff;
  --light: #f2f2f2;
  --border: #d6d6d6;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.55;
  background: var(--white);
}

.container {
  width: min(1140px, calc(100% - 44px));
  margin: 0 auto;
}

.narrow {
  width: min(860px, calc(100% - 44px));
}

.site-header {
  background: var(--dark);
  color: white;
  position: sticky;
  top: 0;
  z-index: 20;
}

.header-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 26px;
  align-items: center;
  min-height: 122px;
}

.logo-link img {
  width: 330px;
  max-width: 100%;
  display: block;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 28px;
  flex-wrap: wrap;
  text-transform: uppercase;
}

.nav a {
  color: #d0d0d0;
  text-decoration: none;
  font-size: 15px;
  letter-spacing: .4px;
  padding: 13px 0;
  border-bottom: 3px solid transparent;
}

.nav a:hover {
  color: white;
  border-bottom-color: var(--blue-light);
}

.nav-contact {
  color: white !important;
}

.hero-photo {
  min-height: 520px;
  background-image:
    linear-gradient(rgba(255,255,255,.08), rgba(255,255,255,.08)),
    url("assets/calculator-bg.jpeg");
  background-size: cover;
  background-position: center;
}

.hero-shade {
  min-height: 520px;
  display: flex;
  align-items: center;
  background: linear-gradient(90deg, rgba(0,0,0,.55), rgba(0,0,0,.22), rgba(255,255,255,.05));
}

.hero-content {
  color: white;
  max-width: 980px;
}

.hero-content h1 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.05;
  margin: 0 0 22px;
  text-shadow: 0 3px 12px rgba(0,0,0,.45);
}

.hero-content p {
  max-width: 980px;
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 28px;
  text-shadow: 0 2px 8px rgba(0,0,0,.45);
}

.hero-buttons,
.contact-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
}

.primary {
  background: var(--blue);
  color: white;
}

.secondary {
  background: white;
  color: var(--blue);
}

.secondary-dark {
  background: #444;
  color: white;
}

.section {
  padding: 62px 0;
}

.white-section {
  background: white;
}

.light-section {
  background: var(--light);
}

h1, h2, h3 {
  font-family: Georgia, 'Times New Roman', serif;
  color: var(--heading);
  font-weight: 400;
}

h2 {
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.1;
  margin: 0 0 24px;
}

h3 {
  font-size: 30px;
  line-height: 1.1;
  margin: 0 0 16px;
}

p, li {
  font-size: 17px;
}

.page-title {
  background: #f5f5f5;
  padding: 62px 0 48px;
  border-bottom: 1px solid #ddd;
}

.page-title h1 {
  font-size: clamp(42px, 5vw, 66px);
  margin: 0 0 12px;
}

.page-title p {
  font-size: 21px;
  margin: 0;
}

.cards.three {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.card {
  background: white;
  padding: 28px;
  border: 1px solid #ddd;
}

.reviews-section {
  background: #ededed;
  padding: 64px 0;
}

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

.review {
  background: white;
  padding: 30px;
}

.quote {
  width: 58px;
  height: 58px;
  margin: 0 auto 20px;
  background: var(--blue);
  color: white;
  border-radius: 50%;
  font-size: 55px;
  line-height: .95;
  text-align: center;
  font-family: Georgia, serif;
}

.review p {
  font-size: 18px;
}

.review strong {
  color: #777;
  font-weight: 400;
}

.why-section {
  background: var(--blue);
  color: #e9edff;
  padding: 72px 0;
  text-align: center;
}

.why-section h2 {
  color: #dfe6ff;
}

.why-section p {
  max-width: 760px;
  margin: 0 auto 28px;
  font-size: 19px;
}

.two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 58px;
}

.help-box li {
  margin: 7px 0;
}

.pricing-table {
  margin: 22px auto;
  width: 100%;
}

.pricing-head,
.pricing-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.pricing-head {
  background: var(--blue);
  color: white;
  font-weight: 700;
}

.pricing-head div,
.pricing-row div {
  padding: 13px 18px;
  font-size: 17px;
}

.pricing-row {
  border-bottom: 1px solid #ccc;
}

.pricing-row:nth-child(even) {
  background: #eeeeee;
}

.pricing-row:nth-child(odd) {
  background: #f8f8f8;
}

.contact-page {
  min-height: 430px;
}

.contact-lead {
  font-size: 22px;
  max-width: 1000px;
}

.contact-list {
  margin: 28px 0;
}

.contact-list p {
  font-size: 24px;
  margin: 17px 0;
}

.contact-list a {
  color: #222;
}

.footer {
  background: var(--dark);
  color: #ccc;
  padding: 36px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.footer p {
  margin: 0;
  font-size: 15px;
}

@media (max-width: 950px) {
  .header-grid {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 22px 0;
  }

  .logo-link img {
    width: 300px;
  }

  .nav {
    justify-content: flex-start;
    gap: 18px;
  }

  .cards.three,
  .reviews-grid,
  .two-columns {
    grid-template-columns: 1fr;
  }

  .hero-photo,
  .hero-shade {
    min-height: 470px;
  }
}

@media (max-width: 640px) {
  .container,
  .narrow {
    width: min(100% - 28px, 1140px);
  }

  .nav a {
    font-size: 13px;
  }

  .section,
  .reviews-section,
  .why-section {
    padding: 46px 0;
  }

  .hero-content h1 {
    font-size: 38px;
  }

  .pricing-head,
  .pricing-row {
    grid-template-columns: 1fr;
  }

  .contact-list p {
    font-size: 20px;
  }

  .footer-inner {
    flex-direction: column;
  }
}


/* v5 improvements */
.hero-buttons {
  margin-top: 34px;
  align-items: center;
}

.hero-buttons .btn {
  min-width: 190px;
  min-height: 58px;
  font-size: 18px;
  border-radius: 3px;
  box-shadow: 0 8px 20px rgba(0,0,0,.22);
}

.hero-main-btn {
  min-width: 235px !important;
  font-size: 21px !important;
  background: #233f91;
  color: #fff;
}

.messenger-btn {
  background: #ffffff;
  color: #233f91;
}

.secondary {
  background: rgba(255,255,255,.92);
  color: #233f91;
}

.reviews-section {
  background: #ededed;
  padding: 72px 0;
}

.reviews-grid {
  align-items: stretch;
}

.review {
  background: #ffffff;
  padding: 42px 34px 34px;
  min-height: 330px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.quote-icon {
  width: 78px;
  height: 78px;
  margin: 0 auto 26px;
  background: #233f91;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 700;
  line-height: 1;
}

.quote-icon span {
  transform: translateY(-4px);
  display: block;
  font-size: 78px;
}

.review p {
  color: #777;
  font-size: 20px;
  line-height: 1.55;
  margin: 0 0 28px;
}

.review strong {
  margin-top: auto;
  color: #777;
  font-size: 20px;
  font-weight: 400;
}

.why-section .btn.light {
  color: #233f91;
  font-weight: 700;
  background: #ffffff;
}

@media (max-width: 640px) {
  .hero-buttons .btn,
  .hero-main-btn {
    width: 100%;
    min-width: 0 !important;
  }

  .review {
    min-height: auto;
  }
}


/* v6 hero readability improvement */
.hero-content {
  background: rgba(0, 0, 0, 0.46);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  padding: 34px 38px;
  border-radius: 10px;
  max-width: 980px;
}

.hero-content h1 {
  color: #ffffff;
  text-shadow: 0 4px 18px rgba(0,0,0,.85);
}

.hero-content p {
  color: #ffffff;
  text-shadow: 0 3px 14px rgba(0,0,0,.9);
}

@media (max-width: 640px) {
  .hero-content {
    padding: 24px 22px;
  }
}


/* v7 requested fixes */
.hero-buttons {
  margin-top: 34px;
}

.hero-buttons .btn {
  border-radius: 8px;
}

.hero-main-btn {
  min-width: 245px !important;
  min-height: 60px;
  font-size: 21px !important;
  border-radius: 8px !important;
}

.review {
  min-height: 290px;
  padding: 34px 28px 30px;
}

.quote-icon {
  width: 66px;
  height: 66px;
  margin-bottom: 22px;
}

.quote-icon span {
  font-size: 66px;
  transform: translateY(-4px);
}

.review p {
  font-size: 17px;
  line-height: 1.52;
  margin-bottom: 22px;
}

.review strong {
  font-size: 17px;
}

@media (max-width: 640px) {
  .review p,
  .review strong {
    font-size: 16px;
  }
}
