/* =========================================================
   Pons Property Solutions — homepage (loads after style.css)
   ========================================================= */

.btn-lg { min-height: 56px; font-size: 1.08rem; }
.center-cta { text-align: center; margin-top: 36px; }

/* ---------- Header ---------- */
.header-actions { gap: 10px; }
.header-phone {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 10px;
  font-family: var(--font-head); font-weight: 700; color: var(--malbec); text-decoration: none; border-radius: 999px;
}
.header-phone .icon { width: 20px; height: 20px; }
.header-phone span { display: none; }
.header-phone:hover { background: var(--celeste-light); }
@media (min-width: 640px) { .header-phone span { display: inline; } }
.brand-sub { white-space: nowrap; }
@media (max-width: 400px) { .brand-sub { display: none; } .header-inner { gap: 8px; } }

/* ---------- Hero ---------- */
.hero2 { position: relative; color: #fff; overflow: hidden; isolation: isolate; padding: 36px 0 44px; background: var(--malbec-dark); }
.hero-bg { position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(135deg, var(--malbec-dark) 0%, var(--malbec) 60%, #7d2a4a 100%);
}
.hero2-grid { display: grid; gap: 28px; align-items: center; grid-template-areas: "copy" "form" "visual"; }
.hero2-copy { grid-area: copy; }
.hero2-grid > .qq-card { grid-area: form; }
.hero-visual { grid-area: visual; margin: 0; }
.hero-visual:empty { display: none; }
/* The photo is shown whole, never cropped */
.hero-visual img { width: 100%; height: auto; border-radius: var(--radius); box-shadow: 0 20px 50px rgba(20,5,12,.4); }
@media (min-width: 960px) {
  .hero2 { padding: 64px 0 72px; }
  .hero2-grid { grid-template-columns: 1.15fr .85fr; gap: 56px; grid-template-areas: "copy form"; }
  /* With a hero photo: photo left, short intro + form right */
  .hero2:has(.hero-visual picture) .hero2-grid { grid-template-columns: minmax(0, 440px) minmax(0, 1fr); gap: 20px 64px; align-items: start;
    grid-template-areas: "visual copy" "visual form"; }
  .hero2:has(.hero-visual picture) .hero2-copy h1 { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .hero2:has(.hero-visual picture) .hero2-points,
  .hero2:has(.hero-visual picture) .hero2-call { display: none; }
  .hero2:has(.hero-visual picture) .hero2-lead { margin: 0; font-size: 1.05rem; }
}
.hero2 h1 { color: #fff; margin-bottom: .3em; text-shadow: 0 2px 18px rgba(0,0,0,.25); }
.hero2-lead { font-size: 1.1rem; color: rgba(255,255,255,.9); max-width: 560px; }
.hero2-rating { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: .92rem; margin-bottom: 16px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); border-radius: 999px; padding: 6px 14px; }
.hero2-rating .stars .icon { width: 16px; height: 16px; }
.hero2-points { list-style: none; margin: 18px 0 18px; padding: 0; display: grid; gap: 8px; font-weight: 600; }
.hero2-points li { display: flex; align-items: center; gap: 10px; }
.hero2-points .icon { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--gold); color: var(--malbec-dark); }
.hero2-call { color: rgba(255,255,255,.85); margin: 0; }
.hero2-call a { color: #fff; font-weight: 700; }
@media (max-width: 959px) { .hero2-points, .hero2-call { display: none; } }

/* Quick quote card */
.qq-card { background: #fff; color: var(--ink); border-radius: calc(var(--radius) + 4px); padding: 22px 18px 16px; box-shadow: 0 20px 50px rgba(20,5,12,.35); scroll-margin-top: calc(var(--header-h) + 12px); }
@media (min-width: 640px) { .qq-card { padding: 28px 28px 18px; } }
.qq-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.qq-title { font-size: 1.35rem; margin: 0; color: var(--malbec); }
.qq-step { font-size: .8rem; font-weight: 700; color: var(--muted); white-space: nowrap; }
.qq-bar { height: 5px; background: var(--line); border-radius: 3px; margin: 12px 0 18px; overflow: hidden; }
.qq-bar span { display: block; height: 100%; width: 50%; background: var(--malbec); border-radius: 3px; transition: width .25s; }
.qq.is-step2 .qq-bar span { width: 100%; }
.qq-pane { border: 0; margin: 0; padding: 0; min-width: 0; }
.qq .field { margin-bottom: 14px; }
.qq-back { display: block; margin: 10px auto 0; background: none; border: 0; color: var(--muted); font: inherit; font-weight: 600; cursor: pointer; padding: 8px; }
.qq-back:hover { color: var(--malbec); }
.qq-foot { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: .84rem; font-weight: 600; color: var(--muted); text-align: center; margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--line); }
.qq-foot .icon { width: 18px; height: 18px; color: var(--celeste-deep); }
.qq-done { text-align: center; padding: 12px 4px 4px; outline: none; }
.qq-done > .icon { width: 56px; height: 56px; padding: 13px; border-radius: 50%; background: var(--gold-soft); color: var(--malbec); margin: 0 auto 14px; }
.qq-done h2 { font-size: 1.4rem; color: var(--malbec); }
.qq-done-small { font-size: .9rem; color: var(--muted); }

/* ---------- Trust bar ---------- */
.trustbar { background: #fff; border-bottom: 1px solid var(--line); }
.trustbar ul { list-style: none; margin: 0; padding: 14px 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 12px; }
@media (min-width: 900px) { .trustbar ul { grid-template-columns: repeat(4, auto); justify-content: space-between; padding: 20px 0; } }
.trustbar li, .trustbar a { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-size: .85rem; line-height: 1.25; }
.trustbar strong { display: block; font-family: var(--font-head); font-size: .98rem; color: var(--malbec); }
.trustbar .icon { width: 30px; height: 30px; padding: 6px; border-radius: 9px; background: var(--celeste-light); color: var(--malbec); }
.trustbar .icon-star { background: var(--gold-soft); color: #B07F00; }

/* ---------- Before / after ---------- */
.ba-grid { display: grid; gap: 22px; }
@media (min-width: 640px) { .ba-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .ba-grid { grid-template-columns: repeat(3, 1fr); } }
.js .ba-grid:not(.show-all) .ba-more { display: none; }
.ba { margin: 0; }
.ba-frame {
  --pos: 50%;
  position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: var(--celeste-light);
  cursor: ew-resize; touch-action: pan-y; user-select: none; -webkit-user-select: none; box-shadow: var(--shadow);
}
.ba-frame picture, .ba-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba-before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: #fff; box-shadow: 0 0 8px rgba(0,0,0,.35); pointer-events: none; }
.ba-handle::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 42px; height: 42px; transform: translate(-50%, -50%);
  border-radius: 50%; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B1D3A' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l-6 6 6 6M15 6l6 6-6 6'/%3E%3C/svg%3E") center / 22px no-repeat;
  box-shadow: 0 2px 10px rgba(0,0,0,.3); transition: transform .15s;
}
.ba-frame.is-dragging .ba-handle::after { transform: translate(-50%, -50%) scale(1.1); }
.ba-tag { position: absolute; top: 12px; padding: 4px 10px; border-radius: 999px; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; pointer-events: none; }
.ba-tag-before { left: 12px; background: rgba(36,28,39,.75); color: #fff; }
.ba-tag-after { right: 12px; background: var(--gold); color: var(--malbec-dark); }
.ba-range { position: absolute; inset: auto 0 0 0; width: 100%; height: 100%; opacity: 0; margin: 0; pointer-events: none; }
.ba-frame:focus-within { outline: 3px solid var(--celeste-deep); outline-offset: 3px; }
.ba figcaption { padding: 12px 2px 0; font-size: .95rem; }
.ba figcaption strong { font-family: var(--font-head); color: var(--ink); }
.ba-where { display: inline-block; margin-left: 6px; padding: 1px 10px; border-radius: 999px; background: var(--celeste-light); color: var(--celeste-deep); font-size: .8rem; font-weight: 600; }
.ba-desc { display: block; color: var(--muted); font-size: .9rem; margin-top: 4px; }
.ba-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }

/* ---------- Service categories ---------- */
.cat-grid { display: grid; gap: 18px; }
@media (min-width: 700px) { .cat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1060px) { .cat-grid { grid-template-columns: repeat(3, 1fr); } }
.cat-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 22px; }
.cat-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.cat-head h3 { margin: 0; font-size: 1.3rem; }
.cat-head .icon { width: 40px; height: 40px; padding: 8px; border-radius: 11px; background: var(--malbec); color: #fff; }
.cat-card > p { color: var(--muted); font-size: .95rem; }
.svc-list { list-style: none; margin: 0 0 18px; padding: 0; flex: 1; }
.svc-list li + li { border-top: 1px solid var(--line); }
.svc-list button {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 46px;
  padding: 8px 2px; background: none; border: 0; font: inherit; font-weight: 600; color: var(--ink); text-align: left; cursor: pointer;
}
.svc-list button .icon { width: 18px; height: 18px; color: var(--celeste-deep); transition: transform .15s; }
.svc-list button:hover { color: var(--malbec); }
.svc-list button:hover .icon { transform: translateX(3px); color: var(--malbec); }
.cat-card-cta { background: var(--malbec); border-color: var(--malbec); color: #fff; justify-content: center; }
.cat-card-cta h3 { color: #fff; font-size: 1.35rem; }
.cat-card-cta > p { color: rgba(255,255,255,.85); }
.cat-call { display: inline-flex; align-items: center; justify-content: center; gap: 8px; margin-top: 14px; color: #fff; font-weight: 700; text-decoration: none; }
.cat-call:hover { color: var(--gold); }
.cat-call .icon { width: 18px; height: 18px; }

/* ---------- How it works ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; counter-reset: none; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 22px; } }
.steps li { position: relative; background: #fff; border-radius: var(--radius); padding: 26px 22px 22px; border: 1px solid var(--line); }
.steps .icon { width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: var(--celeste-light); color: var(--malbec); margin-bottom: 14px; }
.step-num { position: absolute; top: 18px; right: 20px; font-family: var(--font-head); font-weight: 800; font-size: 2.4rem; line-height: 1; color: var(--malbec-tint); }
.steps h3 { margin-bottom: .3em; }
.steps p { margin: 0; color: var(--muted); }

/* ---------- Meet Bau ---------- */
.bau-media { position: relative; margin: 0; aspect-ratio: 4 / 5; max-width: 420px; width: 100%; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(160deg, var(--celeste) 0%, #9CC6EA 45%, var(--celeste-light) 100%); box-shadow: var(--shadow); }
.bau-media picture, .bau-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bau-fallback { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-head); font-weight: 800; font-size: 7rem; color: rgba(255,255,255,.75); }
.bau-media picture ~ .bau-fallback { display: none; }
/* Frame follows the photo's own shape (set inline by the image script) */
.bau-media:has(picture) { aspect-ratio: auto; }
.bau-media picture { position: relative; display: block; inset: auto; height: auto; }
.bau-media picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.about-ticks { margin: 0 0 24px; }
@media (max-width: 899px) { .bau-media { margin: 0 auto; max-width: 320px; } }

/* ---------- Service area ---------- */
.area-grid { display: grid; gap: 28px; }
@media (min-width: 900px) { .area-grid { grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; } }
.area-ask { font-weight: 600; }
.area-lists { display: grid; gap: 22px; }
.area-lists h3 { display: flex; align-items: center; gap: 8px; font-size: 1.05rem; }
.area-lists h3 .icon { width: 20px; height: 20px; color: var(--malbec); }
.area-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.area-chips li { padding: 7px 14px; border-radius: 999px; background: var(--celeste-light); font-weight: 600; font-size: .92rem; }
.area-chips .chip-ask { background: #fff; border: 1.5px dashed var(--celeste-deep); }
.area-chips small { color: var(--muted); font-weight: 500; }

/* ---------- FAQ ---------- */
.faq-wrap { max-width: 820px; }
.faq { display: grid; gap: 10px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 52px 18px 20px; font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--malbec); line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 0; padding: 0 20px 18px; color: var(--muted); }

/* ---------- Quote section ---------- */
.quote-section { background: linear-gradient(180deg, #fff 0%, var(--celeste-light) 100%); }
.quote-grid { display: grid; gap: 28px; }
@media (min-width: 1000px) { .quote-grid { grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: start; } .quote-side { position: sticky; top: calc(var(--header-h) + 24px); } }
.quote-side .ticks { margin: 18px 0 24px; }
.contact-stack { display: grid; gap: 10px; }
.contact-stack a { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: var(--radius-sm); background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 700; word-break: break-word; }
.contact-stack a:hover { border-color: var(--malbec); color: var(--malbec); }
.contact-stack .icon { width: 38px; height: 38px; padding: 9px; border-radius: 10px; background: var(--malbec); color: #fff; }
.contact-stack small { display: block; font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.full-card { border-top: 6px solid var(--malbec); }
.opt-grid-5 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 600px) { .opt-grid-5 { grid-template-columns: repeat(5, 1fr); } }
.opt span { text-align: center; align-items: center; justify-content: center; }
.photo-hint { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--muted); background: var(--celeste-light); padding: 12px 14px; border-radius: var(--radius-sm); }
.photo-hint .icon { width: 20px; height: 20px; color: var(--malbec); margin-top: 2px; }
.form-fine { text-align: center; font-size: .85rem; font-weight: 600; color: var(--muted); margin: 12px 0 0; }

/* Highlight a field that was just pre-filled */
@keyframes flash { 0% { box-shadow: 0 0 0 0 rgba(246,180,14,.9); } 100% { box-shadow: 0 0 0 10px rgba(246,180,14,0); } }
.is-flash { animation: flash 1s ease-out 2; border-color: var(--malbec) !important; }

/* ---------- Footer ---------- */
@media (min-width: 800px) { .footer-grid-4 { grid-template-columns: 1.2fr 1fr 1fr 1fr; } }
.site-footer p { font-size: .92rem; }

/* ---------- Mobile action bar ---------- */
.action-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 8px;
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line);
  box-shadow: 0 -6px 20px rgba(36,28,39,.08); transition: transform .25s ease;
}
.action-bar.is-hidden { transform: translateY(110%); }
.action-bar a { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; border-radius: 999px; font-family: var(--font-head); font-weight: 700; text-decoration: none; color: var(--malbec); border: 2px solid var(--malbec); }
.action-bar .icon { width: 20px; height: 20px; }
.action-bar .action-quote { background: var(--malbec); color: #fff; }
@media (min-width: 1000px) { .action-bar { display: none; } }

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

/* ---------- Service card photos (shown whole, never cropped) ---------- */
.cat-card .cat-img { display: block; margin: -24px -22px 20px; }
.cat-card .cat-img img { width: 100%; height: auto; border-radius: var(--radius) var(--radius) 0 0; }
.cat-card { overflow: hidden; }

/* ---------- Logo ---------- */
.brand-logo { width: 48px; height: 48px; border-radius: 50%; }
.site-footer .brand-logo { width: 64px; height: 64px; }

/* ---------- Before/after cover ---------- */
.results-intro { display: grid; gap: 24px; align-items: center; margin-bottom: 40px; }
.results-intro .section-head { margin-bottom: 0; }
.results-cover { margin: 0; }
.results-cover:empty { display: none; }
.results-cover img { width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--shadow); }
@media (min-width: 900px) {
  .results-intro { grid-template-columns: 1fr minmax(0, 440px); gap: 56px; }
}
/* With the cover image present the CTA lives up top, so drop the duplicate below the sliders */
#results:has(.results-cover picture) .ba-actions .btn-primary { display: none; }

/* Photos with black video bars: frame shows only the photo area (class + ratio set by the image script) */
picture.lb { position: relative; display: block; overflow: hidden; }
picture.lb img { position: absolute; inset: 0; width: 100%; height: 100% !important; object-fit: cover; object-position: 50% var(--obj-y, 50%); }


/* ---------- Quote section contact rows ---------- */
.contact-row { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: var(--radius-sm); background: #fff; border: 1px solid var(--line); font-weight: 700; }
.contact-row .icon { width: 38px; height: 38px; padding: 9px; border-radius: 10px; background: var(--malbec); color: #fff; }
.contact-row small { display: block; font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.contact-actions { margin-left: auto; display: flex; gap: 8px; }
.contact-actions a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 2px solid var(--malbec); color: var(--malbec); text-decoration: none; font-size: .9rem; }
.contact-actions a:first-child { background: var(--malbec); color: #fff; }
.contact-actions a:hover { background: var(--malbec-dark); border-color: var(--malbec-dark); color: #fff; }
.contact-social { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.contact-social a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--radius-sm); background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 700; font-size: .9rem; min-width: 0; }
.contact-social a span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.contact-social a:hover { border-color: var(--malbec); color: var(--malbec); }
.contact-social .icon { width: 34px; height: 34px; padding: 7px; border-radius: 10px; background: var(--celeste-light); color: var(--malbec); flex: none; }
.contact-social small { display: block; font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
@media (max-width: 420px) { .contact-social { grid-template-columns: 1fr; } }

/* ---------- Video ---------- */
.work-grid { display: grid; gap: 28px; align-items: center; }
.work-grid .section-head { margin-bottom: 0; }
.work-videos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.work-videos video { width: 100%; height: auto; aspect-ratio: 9 / 16; border-radius: var(--radius); background: var(--malbec-dark); object-fit: cover; box-shadow: var(--shadow); }
@media (min-width: 900px) { .work-grid { grid-template-columns: 1fr minmax(0, 560px); gap: 56px; } .work-videos { gap: 18px; } }

/* ---------- Builderscrack line under the Google rating ---------- */
.rating-bc { margin: 10px 0 0; font-size: .92rem; }
.rating-bc a { color: var(--muted); text-decoration: none; }
.rating-bc a:hover { color: var(--malbec); }
.rating-bc strong { color: var(--ink); }

/* Header quote button stays on one line on small phones */
.header-free { white-space: nowrap; }
@media (max-width: 420px) { .header-free { padding: .55em .9em; font-size: .88rem; } .header-actions { gap: 6px; } }
/* Never let the header squeeze the logo */
.brand picture, .brand-logo { flex: none; }
.brand { min-width: 0; }
.brand-text { min-width: 0; }
@media (max-width: 440px) { .brand-sub { display: none; } }
