/* Canny Oven Co. Everything below the hero. Loaded after styles.css. */

/* Prices */

.quote {
  display: grid;
  gap: 1.75rem clamp(2rem, 4vw, 3rem);
  align-items: start;
  margin-top: clamp(1.75rem, 4vw, 2.5rem);
}

.quote__items {
  overflow: hidden;
  border: 3px solid var(--green);
  border-radius: 8px;
}

.price-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  column-gap: 1rem;
  align-items: start;
  padding: 1rem 1.1rem;
  cursor: pointer;
}

.price-row + .price-row {
  border-top: 1px solid var(--line);
}

.price-row:hover {
  background: var(--panel);
}

.price-row:has(input:checked) {
  background: var(--yellow-pale);
}

.price-row input {
  width: 1.7rem;
  height: 1.7rem;
  margin: 0.15rem 0 0;
  accent-color: var(--green);
  cursor: pointer;
}

.price-row__name {
  display: block;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.25;
}

.price-row__note {
  display: block;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.price-row__price {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 800;
  line-height: 1.05;
  white-space: nowrap;
}

.quote__summary {
  padding: clamp(1.4rem, 3vw, 1.9rem);
  border-radius: 8px;
  background: var(--green);
  color: var(--white);
}

.quote__summary :focus-visible {
  outline-color: var(--yellow);
}

.quote__total {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.25rem 1rem;
}

.quote__label {
  font-size: 1.25rem;
  font-weight: 600;
}

.quote__amount {
  color: var(--yellow);
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 7vw, 4.25rem);
  font-weight: 800;
  line-height: 0.9;
  white-space: nowrap;
}

.quote__hint {
  margin-top: 0.75rem;
  font-size: 1.1rem;
}

.quote__summary .btn {
  width: 100%;
  margin-top: 1.2rem;
}

.quote__alt {
  margin-top: 0.9rem;
  text-align: center;
}

.quote__alt a {
  font-weight: 700;
  text-underline-offset: 0.2em;
}

/* Recent work */

.work {
  background: var(--panel);
}

.portfolio {
  display: grid;
  gap: 2.25rem clamp(1.25rem, 3vw, 2rem);
  margin-top: clamp(1.75rem, 4vw, 2.5rem);
}

.portfolio .compare__stage {
  aspect-ratio: 4 / 3;
}

.portfolio figcaption {
  margin-top: 0.7rem;
}

.portfolio__title {
  display: block;
  font-weight: 700;
}

.portfolio__place {
  display: block;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.portfolio__empty {
  max-width: 34rem;
  padding: 1.5rem;
  border: 3px dashed var(--line);
  border-radius: 8px;
}

/* Who I do this for */

.who__layout {
  display: grid;
  gap: 1.75rem clamp(2rem, 6vw, 5rem);
}

.who__list {
  list-style: none;
  border-top: 3px solid var(--green);
}

.who__list li {
  padding-block: 1.05rem;
  border-bottom: 1px solid var(--line);
}

.who__list strong {
  font-weight: 700;
}

/* About Neal, and how it works */

.about {
  background: var(--panel);
}

.about__layout {
  display: grid;
  gap: 3.5rem clamp(2.5rem, 6vw, 5rem);
}

.about__photo {
  display: grid;
  place-items: center;
  width: 11.5rem;
  height: 14rem;
  margin-bottom: 2.25rem;
  border: 9px solid var(--white);
  background: var(--line);
  color: var(--ink-soft);
  font-size: 1rem;
  box-shadow: 0 0 0 1px var(--line);
  transform: rotate(-3deg);
}

.about__me p {
  max-width: 32rem;
  margin-top: 1.1rem;
  font-size: 1.25rem;
}

.steps {
  margin-top: 1.5rem;
  list-style: none;
  counter-reset: step;
}

.steps li {
  position: relative;
  min-height: 3.4rem;
  padding: 0 0 1.6rem 3.4rem;
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  top: -0.2rem;
  left: 0;
  font-family: var(--font-display);
  font-size: 3.4rem;
  font-weight: 800;
  line-height: 1;
}

.steps p {
  margin-top: 0.3rem;
  color: var(--ink-soft);
}

/* Areas */

.areas__list {
  max-width: 54rem;
  margin-top: clamp(1.5rem, 4vw, 2.25rem);
  border-top: 3px solid var(--green);
}

.areas__list > div {
  display: grid;
  gap: 0.15rem 1.5rem;
  padding-block: 0.95rem;
  border-bottom: 1px solid var(--line);
}

.areas__list dt {
  font-weight: 700;
}

.areas__note {
  margin-top: 1.5rem;
  font-weight: 600;
}

/* Common questions */

.faq {
  padding-top: 0;
}

.faq__layout {
  display: grid;
  gap: 1.5rem clamp(2rem, 6vw, 5rem);
}

.faq__list {
  border-top: 3px solid var(--green);
}

.faq__list details {
  border-bottom: 1px solid var(--line);
}

.faq__list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.05rem 0.25rem;
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.3;
  list-style: none;
  cursor: pointer;
}

.faq__list summary::-webkit-details-marker {
  display: none;
}

.faq__list summary::after {
  content: "+";
  flex: none;
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 700;
  line-height: 0.8;
}

.faq__list details[open] summary::after {
  content: "\2212";
}

.faq__list details p {
  max-width: 38rem;
  padding: 0 0.25rem 1.3rem;
}

/* Ring or message Neal */

.contact {
  padding-block: clamp(3rem, 7vw, 5rem);
  background: var(--yellow);
}

.contact__phone {
  display: inline-block;
  margin-top: 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 15vw, 10rem);
  font-weight: 800;
  line-height: 0.9;
  text-decoration: none;
  white-space: nowrap;
}

.contact__phone:hover {
  text-decoration: underline;
  text-decoration-thickness: 0.06em;
  text-underline-offset: 0.1em;
}

.contact__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.75rem;
}

/* Footer */

.site-footer {
  padding-block: 3rem calc(3rem + var(--mobile-bar));
  background: var(--green);
  color: var(--white);
}

.site-footer :focus-visible {
  outline-color: var(--yellow);
}

.site-footer__layout {
  display: grid;
  gap: 1.75rem 2.5rem;
  align-items: center;
}

.site-footer__layout p + p {
  margin-top: 0.4rem;
}

.site-footer__brand {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.site-footer a {
  color: var(--yellow);
  font-weight: 700;
}

.site-footer .site-footer__small {
  margin-top: 1.1rem;
  font-size: 1rem;
}

.roundel {
  display: block;
  width: 9.5rem;
  height: 9.5rem;
}

.roundel__disc {
  fill: var(--yellow);
}

.roundel__ring,
.roundel__line {
  fill: none;
  stroke: var(--green);
  stroke-width: 2.5;
}

.roundel__ink {
  fill: var(--green);
}

.roundel__line {
  stroke-width: 5;
}

.roundel__name,
.roundel__place {
  fill: var(--green);
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
}

.roundel__name {
  font-size: 23px;
  letter-spacing: 1.5px;
}

.roundel__place {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 2.5px;
}

/* Call and WhatsApp bar on phones */

.mobile-bar {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding-bottom: env(safe-area-inset-bottom);
  border-top: 3px solid var(--green);
  background: var(--green);
}

.mobile-bar a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: var(--mobile-bar);
  font-size: 1.2rem;
  font-weight: 700;
  text-decoration: none;
}

.mobile-bar a:focus-visible {
  outline-offset: -5px;
}

.mobile-bar__call {
  background: var(--yellow);
  color: var(--green);
}

.mobile-bar__chat {
  color: var(--white);
}

.mobile-bar .mobile-bar__chat:focus-visible {
  outline-color: var(--yellow);
}

/* Wider screens */

@media (min-width: 40rem) {
  .portfolio {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .areas__list > div {
    grid-template-columns: 15rem minmax(0, 1fr);
  }

  .site-footer__layout {
    grid-template-columns: auto minmax(0, 1fr);
  }
}

@media (min-width: 48rem) {
  html {
    scroll-padding-bottom: 0;
  }

  .mobile-bar {
    display: none;
  }

  .site-footer {
    padding-bottom: 3rem;
  }
}

@media (min-width: 58rem) {
  .portfolio {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .quote {
    grid-template-columns: minmax(0, 1.5fr) minmax(18rem, 1fr);
  }

  .quote__summary {
    position: sticky;
    top: 1.5rem;
  }

  .who__layout,
  .faq__layout {
    grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  }

  .about__layout {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  }
}

@media (max-width: 26rem) {
  .price-row {
    column-gap: 0.7rem;
    padding-inline: 0.8rem;
  }

  .price-row__price {
    font-size: 1.6rem;
  }
}
