/* ============================================================
   CAA Financial v2 — subpage & rich-content components
   ============================================================ */

/* ---------- page hero ---------- */
.phero {
  border-radius: var(--r-lg); position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 24px;
  padding: clamp(40px, 6vw, 80px); align-items: center;
  min-height: 62svh; color: var(--white);
}
.phero--blue { background: var(--blue); }
.phero--green { background: var(--green); }
.phero--orange { background: var(--orange); }
.phero--purple { background: var(--purple); }
.phero--ink { background: var(--ink); color: var(--cream); }
.phero--yellow { background: var(--yellow); color: var(--ink); }
.phero__title {
  font-weight: 900; font-stretch: 118%; letter-spacing: -0.035em; line-height: 0.96;
  font-size: clamp(2.6rem, 6.5vw, 5.2rem); text-transform: lowercase; margin: 18px 0 20px;
  text-wrap: balance;
}
.phero__sub { font-size: clamp(1rem, 1.5vw, 1.18rem); font-weight: 500; opacity: 0.88; max-width: 56ch; margin-bottom: 32px; }
.phero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.phero__media { position: relative; height: 100%; min-height: 320px; }
.phero__media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  border-radius: var(--r-lg);
}
.phero__badge {
  position: absolute; left: -18px; bottom: -14px; rotate: -6deg; z-index: 2;
  background: var(--yellow); color: var(--ink); border-radius: 999px;
  padding: 12px 22px; font-weight: 800; font-size: 0.85rem; text-transform: lowercase;
  box-shadow: 6px 8px 0 rgba(18,18,18,0.18);
}
.crumb {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.16); border: 1.5px solid rgba(255,255,255,0.35);
  border-radius: 999px; padding: 8px 18px; font-size: 0.78rem; font-weight: 700; text-transform: lowercase;
}
.phero--yellow .crumb { background: rgba(18,18,18,0.08); border-color: rgba(18,18,18,0.3); }

/* ---------- generic section ---------- */
.sect { padding: clamp(64px, 9vw, 120px) clamp(8px, 2vw, 24px) 0; }
.sect__head { margin-bottom: 42px; display: grid; gap: 18px; justify-items: start; }
.lead { font-size: clamp(1.02rem, 1.5vw, 1.18rem); font-weight: 500; color: #45433b; max-width: 62ch; }

/* ---------- prose (long-form SEO copy) ---------- */
.prose { max-width: 70ch; display: grid; gap: 18px; font-size: 1.02rem; color: #33312b; }
.prose h3 { font-weight: 900; font-size: 1.4rem; letter-spacing: -0.02em; text-transform: lowercase; margin-top: 14px; }
.prose strong { color: var(--ink); }

/* ---------- split rows (photo + copy) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); align-items: stretch; margin-top: 36px; }
.split + .split { margin-top: var(--gap); }
.split__copy { background: var(--white); border-radius: var(--r-lg); padding: clamp(30px, 4vw, 52px); display: grid; gap: 14px; align-content: center; }
.split__copy h3 { font-weight: 900; font-size: clamp(1.5rem, 2.4vw, 2.1rem); letter-spacing: -0.025em; text-transform: lowercase; }
.split__copy p { color: #45433b; }
.split__copy .pill { justify-self: start; }
.split__media { border-radius: var(--r-lg); overflow: hidden; min-height: 320px; position: relative; }
.split__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.split--flip .split__media { order: -1; }

/* ---------- feature grid ---------- */
.feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); margin-top: 36px; }
.feat { background: var(--white); border-radius: var(--r-lg); padding: 30px 28px; }
.feat__chip { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-weight: 900; color: var(--white); margin-bottom: 18px; font-size: 1.1rem; }
.feat h3 { font-weight: 900; font-size: 1.15rem; letter-spacing: -0.02em; text-transform: lowercase; margin-bottom: 8px; }
.feat p { font-size: 0.94rem; color: #4c4a42; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; margin-top: 36px; max-width: 860px; }
.faq details { background: var(--white); border-radius: var(--r-md); overflow: hidden; }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 18px;
  padding: 22px 26px; font-weight: 800; font-size: 1.02rem; letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: 0 0 34px; height: 34px; border-radius: 50%;
  background: var(--cream-2); display: grid; place-items: center;
  font-weight: 900; font-size: 1.2rem; transition: transform 0.3s var(--ease), background 0.2s;
}
.faq details[open] summary::after { transform: rotate(45deg); background: var(--yellow); }
.faq .faq__a { padding: 0 26px 24px; color: #45433b; max-width: 68ch; }

/* ---------- loan calculator ---------- */
.calc { background: var(--ink); color: var(--cream); border-radius: var(--r-lg); padding: clamp(32px, 5vw, 56px); display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 48px; margin-top: 36px; }
.calc__controls { display: grid; gap: 26px; }
.calc__row label { display: flex; justify-content: space-between; font-weight: 700; font-size: 0.9rem; text-transform: lowercase; margin-bottom: 10px; }
.calc__row output { color: var(--yellow); font-weight: 900; }
.calc input[type="range"] { width: 100%; accent-color: var(--yellow); height: 6px; }
.calc__result { background: rgba(255,255,255,0.07); border: 1.5px solid rgba(255,255,255,0.16); border-radius: var(--r-lg); display: grid; place-content: center; text-align: center; gap: 6px; padding: 30px; }
.calc__result span { font-size: 0.85rem; font-weight: 700; text-transform: lowercase; opacity: 0.7; }
.calc__result b { font-weight: 900; font-size: clamp(2.4rem, 4vw, 3.6rem); letter-spacing: -0.03em; color: var(--yellow); }
.calc__note { font-size: 0.75rem; opacity: 0.55; max-width: 32ch; margin: 8px auto 0; }

/* ---------- contact tiles ---------- */
.ctiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); margin-top: 36px; }
.ctile { border-radius: var(--r-lg); padding: 30px 26px; display: grid; gap: 10px; align-content: start; color: var(--white); transition: transform 0.35s var(--ease); }
.ctile:hover { transform: translateY(-6px) rotate(-0.6deg); }
.ctile--blue { background: var(--blue); } .ctile--green { background: var(--green); }
.ctile--orange { background: var(--orange); } .ctile--ink { background: var(--ink); color: var(--cream); }
.ctile h3 { font-weight: 900; font-size: 1.1rem; text-transform: lowercase; }
.ctile a { font-weight: 800; font-size: 1.15rem; letter-spacing: -0.01em; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.ctile p { font-size: 0.85rem; opacity: 0.8; }

/* ---------- google badge ---------- */
.gbadge { display: inline-flex; align-items: center; gap: 14px; background: var(--white); border-radius: 999px; padding: 12px 26px 12px 16px; box-shadow: 0 2px 10px rgba(18,18,18,0.08); }
.gbadge__g { font-weight: 900; font-size: 1.5rem; }
.gbadge__stars { color: #fbbc04; font-size: 1.05rem; letter-spacing: 2px; }
.gbadge b { font-weight: 900; font-size: 1.2rem; }
.gbadge span { font-size: 0.82rem; color: #6d6a60; font-weight: 600; }

/* ---------- role cards ---------- */
.roles { display: grid; gap: var(--gap); margin-top: 36px; }
.role { background: var(--white); border-radius: var(--r-lg); padding: 30px 32px; display: grid; grid-template-columns: 1fr auto; gap: 6px 20px; align-items: center; }
.role h3 { font-weight: 900; font-size: 1.3rem; letter-spacing: -0.02em; text-transform: lowercase; }
.role p { color: #4c4a42; font-size: 0.95rem; grid-column: 1; }
.role .pill { grid-column: 2; grid-row: 1 / span 3; justify-self: end; align-self: center; }
.role__meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; grid-column: 1; }
.role__meta span { background: var(--cream-2); border-radius: 999px; padding: 5px 14px; font-size: 0.75rem; font-weight: 700; text-transform: lowercase; }

/* ---------- legal ---------- */
.legal { background: var(--white); border-radius: var(--r-lg); padding: clamp(32px, 5vw, 64px); max-width: 920px; margin-top: 36px; }
.legal h2 { font-weight: 900; font-size: 1.5rem; letter-spacing: -0.02em; margin: 34px 0 12px; text-transform: lowercase; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { color: #3c3a33; font-size: 0.97rem; margin-bottom: 12px; }
.legal ul { list-style: disc; padding-left: 22px; margin-bottom: 14px; }
.legal__updated { font-size: 0.8rem; color: #8a8576; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }

/* ---------- photo rows / collage ---------- */
.photorow { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); margin-top: 36px; }
.photorow figure { border-radius: var(--r-lg); overflow: hidden; position: relative; min-height: 260px; }
.photorow img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease-out); }
.photorow figure:hover img { transform: scale(1.05); }
.photorow figure.is-pattern { background: repeating-conic-gradient(var(--yellow) 0% 25%, var(--cream-2) 0% 50%) 0 0 / 40px 40px; }

/* home: photo tiles inside bento/intro */
.tile--photo { position: relative; overflow: hidden; min-height: 220px; }
.tile--photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bcard--photo { grid-column: span 5; min-height: 240px; padding: 0; position: relative; overflow: hidden; }
.bcard--photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- review wall ---------- */
.rwall { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: var(--gap); margin-top: 36px; }
.rcard { background: var(--white); border-radius: var(--r-lg); padding: 28px 26px; display: grid; gap: 12px; align-content: start; }
.rcard__stars { color: #fbbc04; letter-spacing: 2px; }
.rcard blockquote { font-weight: 600; font-size: 0.98rem; line-height: 1.5; letter-spacing: -0.01em; }
.rcard figcaption { font-size: 0.82rem; color: #6d6a60; font-weight: 700; }

/* ---------- 404 ---------- */
.notfound { min-height: 70svh; display: grid; place-content: center; text-align: center; gap: 20px; }
.notfound b { font-weight: 900; font-stretch: 120%; font-size: clamp(6rem, 20vw, 16rem); line-height: 0.9; letter-spacing: -0.05em; }

/* ---------- subpage responsive ---------- */
@media (max-width: 900px) {
  .phero { grid-template-columns: 1fr; min-height: 0; padding-top: 56px; }
  .phero__media { min-height: 260px; }
  .feats, .photorow, .rwall { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .split--flip .split__media { order: 0; }
  .calc { grid-template-columns: 1fr; gap: 30px; }
  .ctiles { grid-template-columns: 1fr 1fr; }
  .role { grid-template-columns: 1fr; }
  .role .pill { grid-row: auto; justify-self: start; }
  .bcard--photo { grid-column: span 12; }
}
@media (max-width: 480px) {
  .ctiles { grid-template-columns: 1fr; }
}
