:root {
  --dark-red: #a9151c;
  --red: #c91d2a;
  --light-red: #fde1e3;
  --lighter-red: #fff5f5;
  --border-red: #efb7bb;
  --text: #161616;
  --white: #ffffff;
  --shadow: 0 2px 7px rgba(0,0,0,.16);
  --container: 980px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

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

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

/* HERO */

.hero {
  background: var(--light-red);
  padding: 10px 0 45px;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 35px;
  font-size: 13px;
  margin-bottom: 28px;
}

.breadcrumbs a {
  color: var(--dark-red);
  font-weight: 700;
}

.hero-grid {
  display: grid;
  grid-template-columns: 180px 320px 300px;
  gap: 25px;
  justify-content: center;
  align-items: start;
}

.photo-wrap img {
  width: 170px;
  height: 170px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid white;
  display: block;
  margin-top: 15px;
}

.agent h1 {
  color: var(--dark-red);
  font-size: 32px;
  line-height: 1.1;
  margin: 15px 0 18px;
}

.status {
  font-size: 16px;
  margin: 0 0 18px;
}

.agent-title {
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 7px;
}

.license {
  font-size: 13px;
  margin: 8px 0 0;
}

.learn {
  display: inline-block;
  font-size: 13px;
  text-decoration: underline;
}

.agent hr {
  border: 0;
  border-top: 1px solid #d5a5a8;
  margin: 11px 0 21px;
}

.outline-btn {
  width: 100%;
  height: 42px;
  border-radius: 24px;
  border: 2px solid var(--red);
  background: #fff;
  color: var(--red);
  font-weight: 700;
}

/* QUOTE CARD */

.quote-card {
  background: white;
  border-radius: 10px;
  padding: 12px 13px 15px;
  box-shadow: var(--shadow);
}

.quote-card h2 {
  margin: 0 0 7px;
  color: var(--dark-red);
  font-size: 14px;
}

.quote-products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.quote-option {
  min-height: 70px;
  background: white;
  color: var(--dark-red);
  border: 1px solid var(--border-red);
  border-radius: 7px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 3px;
  font-size: 14px;
  font-weight: 700;
}

.quote-option.wide {
  grid-column: 2;
}

.quote-option .icon {
  font-size: 24px;
  line-height: 1;
}

.quote-action {
  display: grid;
  grid-template-columns: 1fr 145px;
  gap: 10px;
  align-items: center;
  margin-top: 20px;
}

.zip-box {
  height: 48px;
  border: 1px solid #999;
  border-radius: 6px;
  box-shadow: var(--shadow);
  padding: 4px 10px;
  background: white;
}

.zip-box span {
  display: block;
  font-size: 11px;
  color: #777;
}

.zip-box input {
  width: 100%;
  border: 0;
  outline: 0;
  font-size: 13px;
  padding: 0;
  color: #222;
}

.price-btn {
  height: 48px;
  border: 0;
  border-radius: 25px;
  background: var(--red);
  color: white;
  font-weight: 700;
}

.saved-quote {
  border-top: 1px solid #d3a9ab;
  margin-top: 10px;
  padding-top: 10px;
  text-align: center;
  font-size: 12px;
}

.saved-quote a {
  text-decoration: underline;
}

/* CONTACT / LOCATION / HOURS */

.contact-section {
  background: white;
  padding: 38px 0 80px;
}

.three-columns {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 55px;
}

.info-block h2 {
  margin: 0 0 18px;
  color: var(--dark-red);
  font-size: 20px;
}

.info-block p {
  font-size: 14px;
  margin: 0 0 17px;
}

.red-icon {
  color: var(--red);
  font-weight: 700;
  display: inline-block;
  width: 24px;
}

.primary-btn {
  width: 100%;
  height: 47px;
  border: 0;
  border-radius: 25px;
  background: var(--dark-red);
  color: white;
  font-weight: 700;
  box-shadow: var(--shadow);
}

.location {
  display: flex;
  gap: 7px;
  font-size: 14px;
}

.pin {
  font-size: 14px;
}

.directions {
  display: inline-block;
  margin-top: 17px;
}

.hours {
  font-size: 14px;
}

.hours > div {
  display: grid;
  grid-template-columns: 95px 1fr;
  margin-bottom: 4px;
}

/* ABOUT */

.about-section {
  background: var(--light-red);
  padding: 38px 0 48px;
}

.about-section > .container > h2 {
  text-align: center;
  color: var(--dark-red);
  font-size: 26px;
  margin: 0 0 17px;
}

.about-grid {
  border-top: 1px solid #d3a5a8;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 38px;
  padding-top: 10px;
}

.about-text p {
  font-size: 14px;
  margin: 0 0 13px;
}

.about-details > div {
  border-bottom: 1px solid #d3a5a8;
  padding-bottom: 8px;
  margin-bottom: 14px;
}

.about-details h3 {
  color: var(--dark-red);
  font-size: 15px;
  margin: 0 0 9px;
}

.about-details p {
  margin: 0;
  font-size: 14px;
}

/* PRODUCTS */

.products-section {
  background: white;
  padding: 36px 0 50px;
}

.products-section h2 {
  text-align: center;
  color: var(--dark-red);
  font-size: 25px;
  margin: 0 0 7px;
}

.products-section > .container > h3 {
  text-align: center;
  color: var(--dark-red);
  font-size: 16px;
  margin: 0 0 30px;
}

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

.product-card {
  min-height: 145px;
  border: 1px solid #eee;
  border-radius: 9px;
  box-shadow: 0 2px 6px rgba(0,0,0,.12);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: var(--dark-red);
  text-align: center;
  font-weight: 700;
}

.product-icon {
  font-size: 48px;
  line-height: 1;
  margin-bottom: 17px;
}

.product-card span {
  font-size: 13px;
}

.product-card:nth-child(7) {
  grid-column: 3;
}

/* MODAL */

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  display: none;
  justify-content: center;
  align-items: center;
  padding: 20px;
  z-index: 100;
}

.modal.show {
  display: flex;
}

.modal-box {
  width: min(430px, 100%);
  background: white;
  border-radius: 12px;
  padding: 28px;
  position: relative;
  box-shadow: 0 10px 40px rgba(0,0,0,.3);
}

.modal-box h2 {
  color: var(--dark-red);
  margin-top: 0;
}

.modal-close {
  position: absolute;
  top: 8px;
  right: 13px;
  border: 0;
  background: none;
  font-size: 28px;
  color: var(--dark-red);
}

/* TABLET */

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 160px 1fr;
    max-width: 700px;
  }

  .quote-card {
    grid-column: 1 / -1;
    width: 420px;
    max-width: 100%;
    justify-self: center;
  }

  .three-columns {
    gap: 25px;
  }

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

  .product-card:nth-child(7) {
    grid-column: 2;
  }
}

/* MOBILE */

@media (max-width: 650px) {
  .container {
    width: min(100% - 28px, var(--container));
  }

  .hero {
    padding-bottom: 32px;
  }

  .breadcrumbs {
    flex-wrap: wrap;
    font-size: 11px;
    margin-bottom: 20px;
  }

  .hero-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .photo-wrap img {
    width: 145px;
    height: 145px;
    margin-top: 0;
  }

  .agent {
    width: 100%;
  }

  .agent h1 {
    font-size: 28px;
  }

  .outline-btn {
    max-width: 330px;
  }

  .quote-card {
    width: 100%;
    text-align: left;
  }

  .three-columns {
    display: block;
  }

  .info-block {
    margin-bottom: 38px;
  }

  .about-grid {
    display: block;
  }

  .about-details {
    margin-top: 25px;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .product-card {
    min-height: 135px;
  }

  .product-card:nth-child(7) {
    grid-column: auto;
  }

  .product-icon {
    font-size: 40px;
  }

  .quote-action {
    grid-template-columns: 1fr;
  }

  .price-btn {
    width: 100%;
  }
}
