/* Photographic homepage. Header, footer, and menus stay in home-shell.css. */

.mast {
  text-align: center;
  padding: 56px 20px 28px;
}

.mast h1 {
  max-width: 14ch;
  margin: 0 auto 14px;
  font-size: clamp(2.5rem, 5.4vw, 4.35rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  font-weight: 800;
}

.mast .sub {
  max-width: 34ch;
  margin: 0 auto 28px;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 450;
}

.quote-bar,
.mini-quote {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: end;
  gap: 12px;
  max-width: 820px;
  margin: 0 auto;
}

.mini-quote { justify-content: flex-start; max-width: none; margin: 18px 0 8px; }

.field {
  display: grid;
  gap: 6px;
  text-align: left;
  min-width: min(100%, 220px);
  flex: 1 1 200px;
}

.field span,
.field label {
  font-size: 0.82rem;
  font-weight: 700;
}

.quote-bar select,
.quote-bar input,
.mini-quote input {
  width: 100%;
  height: 52px;
  border: 1px solid #c8c8c8;
  border-radius: 6px;
  padding: 0 12px;
  background: #fff;
}

.quote-bar .btn,
.mini-quote .btn,
.portal-actions .btn {
  height: 52px;
  border-radius: 6px;
  padding-inline: 22px;
}

.quote-error {
  flex-basis: 100%;
  margin: 0;
  color: #8d1d1d;
  font-weight: 700;
  text-align: center;
}

.mini-quote .quote-error { text-align: left; }

.continue {
  margin: 16px 0 0;
}

.continue a,
.band a.block-link {
  font-weight: 700;
  text-underline-offset: 3px;
}

.mast-photo {
  width: min(1180px, calc(100% - 32px));
  margin: 8px auto 8px;
}

.mast-photo img {
  width: 100%;
  height: min(52vw, 460px);
  object-fit: cover;
  object-position: center 40%;
}

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

.band { padding: 28px 0 8px; }

.band + .band,
.roomy { padding-top: 64px; padding-bottom: 24px; }

.band h2 {
  margin: 0 0 12px;
  font-size: clamp(1.8rem, 3vw, 2.45rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 800;
}

.band h3 {
  margin: 0 0 8px;
  font-size: 1.45rem;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.band h4 { margin: 0 0 8px; font-size: 1.15rem; }

.lede, .band p { color: #3f3f3f; }

.band h2, .band h3, .band h4, .band h6 { color: var(--ink); }

.quick {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 40px;
  padding-bottom: 8px;
}

.quick h6 {
  margin: 0 0 12px;
  font-size: 1rem;
}

.quick a {
  display: inline-block;
  margin: 0 18px 10px 0;
  font-weight: 700;
}

.rule {
  border: 0;
  border-top: 1px solid #dedede;
  margin: 28px 0;
}

.ptabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  border-bottom: 1px solid #ddd;
  margin: 8px 0 28px;
  scrollbar-width: none;
}

.ptabs::-webkit-scrollbar { display: none; }

.ptabs button {
  appearance: none;
  background: transparent;
  border: 0;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
  padding: 14px 16px;
  font-weight: 700;
  color: #333;
  white-space: nowrap;
  cursor: pointer;
}

.ptabs button[aria-selected="true"] {
  border-bottom-color: var(--green-deep);
  color: var(--ink);
}

.ptabs .long { display: none; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px 10px;
}

.product-tile {
  display: block;
  text-align: center;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  min-width: 0;
}

.product-tile img {
  width: 100%;
  height: 96px;
  object-fit: cover;
  object-position: center;
  background: #f4f4f4;
  margin: 0 auto 12px;
}

.product-tile img.studio {
  object-fit: contain;
  background: #fff;
  height: 108px;
}

.product-tile:hover { color: var(--green-dark); }

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border: 0;
  margin: 18px 0 28px;
  padding: 0;
}

.chips label {
  border: 1px solid #c8c8c8;
  border-radius: 999px;
  padding: 8px 16px;
  cursor: pointer;
  font-weight: 700;
  background: #fff;
}

.chips input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.chips label:has(input:checked) {
  background: var(--green-deep);
  border-color: var(--green-deep);
  color: #fff;
}

.chips label:has(input:focus-visible) {
  outline: 3px solid var(--green);
  outline-offset: 2px;
}

.savings-row {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.35fr);
  gap: 28px;
  align-items: center;
}

.savings-row img,
.broker img,
.portal-photo img,
.story img {
  width: 100%;
  object-fit: cover;
}

.savings-row img { height: min(42vw, 420px); }

.reasons {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.reason {
  background: #f3f4f2;
  padding: 22px 18px 18px;
  min-height: 180px;
}

.reason h3 { font-size: 1.35rem; }

.broker,
.portal {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.85fr);
  gap: 32px;
  align-items: center;
}

.broker img,
.portal-photo img { height: min(46vw, 420px); }

.cols-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin-top: 22px;
}

.portal ul { margin: 0 0 18px; padding-left: 18px; }
.portal li { margin: 0 0 6px; }

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

.btn.line {
  background: #fff;
  color: var(--green-deep);
  border: 2px solid var(--green-deep);
}

.stories {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px 32px;
  margin-top: 8px;
}

.story img { height: 210px; margin-bottom: 14px; }

.ask {
  text-align: center;
  padding: 8px 16px 4px;
}

.ask h2 {
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  font-weight: 700;
}

.farm-cols {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.farm-cols h5,
.farm-acc summary {
  margin: 0 0 10px;
  font-size: 1rem;
}

.farm-cols a,
.farm-acc a {
  display: inline-block;
  margin: 0 0 8px;
  color: #333;
  font-weight: 600;
  text-decoration: none;
}

.farm-cols a:hover,
.farm-acc a:hover { text-decoration: underline; color: var(--green-dark); }

.farm-acc { display: none; }

.farm-acc details {
  border-top: 1px solid #ddd;
  padding: 12px 0;
}

.farm-acc details:last-child { border-bottom: 1px solid #ddd; }

.farm-acc summary {
  cursor: pointer;
  font-weight: 800;
}

.farm-acc .links { padding: 8px 0 4px; }

.notes { padding-bottom: 28px; }
.notes p { font-size: 0.82rem; color: #555; margin: 0 0 8px; }

.product-tile:focus-visible,
.btn:focus-visible,
.quote-bar select:focus-visible,
.quote-bar input:focus-visible,
.mini-quote input:focus-visible,
.ptabs button:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 2px;
}

@media (min-width: 700px) {
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 768px) {
  .ptabs .short { display: none; }
  .ptabs .long { display: inline; }
}

@media (min-width: 1024px) {
  .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .band.roomy { padding-top: 88px; }
}

@media (max-width: 800px) {
  .quick,
  .savings-row,
  .broker,
  .portal,
  .cols-3,
  .reasons,
  .stories,
  .farm-cols { grid-template-columns: 1fr; }

  .reasons { grid-template-columns: 1fr 1fr; }
  .farm-cols { display: none; }
  .farm-acc { display: block; }
  .mast { padding-top: 32px; }
  .mast-photo img { height: 220px; object-position: center; }
}

@media (max-width: 560px) {
  .reasons, .stories, .quick { grid-template-columns: 1fr; }
  .quote-bar .btn, .mini-quote .btn { width: 100%; }
}

/* Approved Auto and Home portraits flank, rather than narrow, the headline. */
.mast.mast--flanked{display:grid;grid-template-columns:minmax(0,1fr) minmax(500px,2.7fr) minmax(0,1fr);align-items:center;gap:clamp(20px,2.4vw,38px);width:min(1440px,100%);margin-inline:auto;padding:48px clamp(20px,3.2vw,48px) 28px}
.mast__copy{min-width:0}.mast__copy .field{min-width:0;flex:1 1 170px}.mast__copy .quote-bar{width:100%}
.mast__portrait{display:block;justify-self:center;width:100%;max-width:260px;aspect-ratio:2/3;border-radius:26px;overflow:hidden;background:#eaf2e7;box-shadow:0 14px 30px #173c1f1c;border:1px solid #dbe6d6}
.mast__portrait img{display:block;width:100%;height:100%;aspect-ratio:2/3;object-fit:cover;object-position:center;border-radius:inherit}
@media(min-width:769px) and (max-width:1100px){.mast.mast--flanked{grid-template-columns:minmax(0,1fr) minmax(460px,2.8fr) minmax(0,1fr);gap:20px;padding-inline:22px}.mast__portrait{max-width:200px;border-radius:20px}}
@media(max-width:768px){.mast.mast--flanked{display:block;padding:36px 20px 28px}.mast__portrait{display:none}.mast__copy{max-width:820px;margin-inline:auto}}

/* Lanczos display copy matches ordinary studio image dimensions; original PNG retained. */
.product-tile img.specialty-car-image{width:100%;height:108px;max-width:none;max-height:none;object-fit:contain;background:#fff;margin-inline:auto}

/* Full-width Full Circle green ombre; preserve the existing responsive hero content. */
.mast.mast--flanked{width:100%;max-width:none;background:linear-gradient(90deg,#94c982 0%,#d7edcf 30%,#f0faed 50%,#d7edcf 70%,#94c982 100%);color:#161616;border-bottom:1px solid #cadfc1}
.mast.mast--flanked h1,.mast.mast--flanked label{color:#161616}
.mast.mast--flanked .sub{color:#263b25}
.mast.mast--flanked .continue a{color:#12520f}
.mast.mast--flanked .quote-bar select,.mast.mast--flanked .quote-bar input{background-color:#fff;color:#161616}
@media(min-width:1441px){.mast.mast--flanked{padding-inline:calc((100% - 1344px)/2)}}
@media(forced-colors:active){.mast.mast--flanked{background:Canvas;color:CanvasText;border-color:CanvasText}.mast.mast--flanked h1,.mast.mast--flanked label,.mast.mast--flanked .sub{color:CanvasText}.mast.mast--flanked .continue a{color:LinkText}}

/* Thirty percent larger portrait maxima, retaining a generous center column. */
@media(min-width:1101px){.mast.mast--flanked{grid-template-columns:minmax(0,1.3fr) minmax(500px,2.1fr) minmax(0,1.3fr)}.mast__portrait{max-width:338px}}
@media(min-width:769px) and (max-width:1100px){.mast.mast--flanked{grid-template-columns:minmax(0,1.3fr) minmax(460px,2.2fr) minmax(0,1.3fr);gap:12px;padding-inline:12px}.mast__portrait{max-width:260px}}

/* Keep long contact links inside narrow tablet footer columns. */
footer a[href^="mailto:"]{white-space:normal;overflow-wrap:anywhere}
