/*
Theme Name: Arpent
Theme URI: https://www.arpentnola.com/
Author: Arpent Realty & Property Management
Description: Block theme for Arpent Realty & Property Management. All page text and photos are edited in the WordPress editor; business details and fees live in Settings > Arpent.
Version: 1.3.0
Requires at least: 6.6
Tested up to: 6.9
Requires PHP: 8.0
License: GPLv2 or later
Text Domain: arpent
*/

:root {
	--a-purple: #33006d;
	--a-purple-2: #58288f;
	--a-green: #a7e1b9;
	--a-green-soft: #e6f5eb;
	--a-lav: #ece4f5;
	--a-ink: #1d1426;
	--a-muted: #5b5466;
	--a-line: #e1e6e2;
	--a-bg: #fbfcfb;
	--a-surface: #ffffff;
	--a-display: var(--wp--preset--font-family--display);
	--a-mono: var(--wp--preset--font-family--mono);
}

body { -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { text-wrap: balance; }
:where(.entry-content, .wp-site-blocks) p { max-width: 68ch; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid var(--a-purple-2); outline-offset: 2px; }
img { max-width: 100%; height: auto; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--a-surface); border-bottom: 1px solid var(--a-line); }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; position: relative; } }
.site-header .header-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding-block: 10px; }
.site-header .wp-block-site-logo { margin-right: auto; }
.site-header .wp-block-site-logo img { height: 52px; width: auto; }
.site-header .wp-block-navigation { font-weight: 600; font-size: 0.92rem; gap: 4px 16px; }
.site-header .wp-block-navigation a { text-decoration: none; color: var(--a-ink); }
.site-header .wp-block-navigation a:hover, .site-header .wp-block-navigation .current-menu-item > a { color: var(--a-purple-2); }
.site-header .head-phone { font-family: var(--a-mono); font-size: 0.85rem; color: var(--a-purple); white-space: nowrap; margin: 0; }
.site-header .head-phone a { color: inherit; text-decoration: none; }
.site-header .wp-block-buttons { margin: 0; }
@media (max-width: 900px) { .site-header .head-phone { display: none; } }
@media (max-width: 600px) { .site-header .header-cta { display: none; } }

/* ---------- Sections ---------- */
.sec { padding-top: 56px; padding-bottom: 56px; margin-block: 0 !important; }
.wp-site-blocks .entry-content > .sec + .sec { border-top: 1px solid var(--a-line); }
.sec.band { background: var(--a-green-soft); }
.entry-content > .sec.band + .sec, .entry-content > .sec + .sec.band { border-top: 0 !important; }
.entry-content { margin-block-start: 0 !important; }
.sec > * + * { margin-block-start: 1rem; }

.hero { position: relative; overflow: hidden; padding-top: 56px; padding-bottom: 56px; }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .6; background: repeating-linear-gradient(97deg, transparent 0 46px, var(--a-line) 46px 47px); }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, var(--a-bg) 40%, rgba(251,252,251,.4) 100%); }
.hero > * { position: relative; z-index: 1; }

.eyebrow { font-family: var(--a-mono); font-size: 0.75rem !important; letter-spacing: .12em; text-transform: uppercase; color: var(--a-purple-2); margin-bottom: 0; }
.lede { font-size: var(--wp--preset--font-size--lede); color: var(--a-muted); }
.muted { color: var(--a-muted); }
.small { font-size: 0.85rem; color: var(--a-muted); }
.crumbs { font-size: 0.82rem; color: var(--a-muted); margin: 0; }
.crumbs a { color: var(--a-muted); }
.crumbs span[aria-current] { color: var(--a-ink); }

.hero-split { gap: 32px !important; align-items: center !important; }
.hero-photo { margin: 0; }
.hero-photo img { width: 100%; aspect-ratio: 1400 / 932; object-fit: cover; border-radius: 4px; display: block; }
.hero-photo figcaption { font-size: 0.78rem; color: var(--a-muted); margin-top: 6px; text-align: left; }

/* Buttons */
.wp-block-button__link { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.wp-block-button.is-style-outline > .wp-block-button__link { background: transparent; color: var(--a-purple); border: 1.5px solid var(--a-purple); padding: 10.5px 16.5px; }
.wp-block-button.is-style-outline > .wp-block-button__link:hover { background: var(--a-lav); }

/* Badges */
.badges { display: flex; flex-wrap: wrap; gap: 8px; }
.badges .badge, .badge { font-size: 0.8rem; font-weight: 600; padding: 5px 10px; border-radius: 99px; background: var(--a-green); color: var(--a-purple); margin: 0; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 6px 22px; font-family: var(--a-mono); font-size: 0.8rem; color: var(--a-muted); }
.hero-meta a { color: inherit; text-decoration: none; }

/* Card grids */
.paths { gap: 20px !important; }
.path { background: var(--a-surface); border: 1px solid var(--a-line); border-top: 4px solid var(--a-green); border-radius: 4px; padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.path > * { margin: 0 !important; }
.path p { color: var(--a-muted); }
.path .go { margin-top: auto !important; font-weight: 600; }
.path .go a { text-decoration: none; }
.path:hover { border-color: var(--a-purple-2); border-top-color: var(--a-purple-2); }

.qa-grid { gap: 24px !important; }
.qa { display: flex; flex-direction: column; gap: 6px; }
.qa > * { margin: 0 !important; }
.qa h3 { font-size: 1.1rem; }
.qa p { color: var(--a-muted); }

/* Fee callout */
.fee-big { background: var(--a-surface); border: 1px solid var(--a-line); border-radius: 4px; padding: 22px; }
.fee-big > * { margin: 0 !important; }
.fee-num { font-family: var(--a-display); font-size: 3rem !important; line-height: 1; color: var(--a-purple); font-weight: 700; font-variant-numeric: tabular-nums; }
.fee-txt { color: var(--a-muted); max-width: 40ch; margin-top: 6px !important; }

/* Lists */
ul.ticks { list-style: none; padding: 0; margin: 0; columns: 2 15rem; column-gap: 28px; }
ul.ticks.one-col { columns: 1; }
ul.ticks li { padding: 4px 0 4px 20px; position: relative; break-inside: avoid; }
ul.ticks li::before { content: ""; position: absolute; left: 0; top: .8em; width: 10px; height: 2px; background: var(--a-purple-2); }

ol.life { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr)); counter-reset: l; }
ol.life li { counter-increment: l; background: var(--a-surface); border: 1px solid var(--a-line); border-radius: 4px; padding: 16px; font-size: 0.9rem; color: var(--a-muted); }
ol.life li::before { content: counter(l, decimal-leading-zero); display: block; font-family: var(--a-mono); font-size: .8rem; color: var(--a-purple-2); }
ol.life li strong { display: block; font-family: var(--a-display); font-size: 1.15rem; color: var(--a-purple); }

/* Areas */
.area { border-top: 1px solid var(--a-line); padding-block: 20px; margin-block: 0 !important; gap: 8px 32px !important; }
.area:first-of-type { border-top: 0; }
.area h3 { font-size: 1.4rem; margin: 0; }
.area .zip { font-family: var(--a-mono); font-size: .75rem; color: var(--a-muted); margin: 0; }

/* Press */
.press { background: var(--a-surface); border-left: 4px solid var(--a-purple); padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.press > * { margin: 0 !important; }
.press .src { font-family: var(--a-mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--a-muted); }
.press a { font-weight: 600; }
.outlets { display: flex; flex-wrap: wrap; gap: 8px 28px; font-family: var(--a-display); font-weight: 700; font-size: 1.05rem; }
.outlets a { color: var(--a-purple); text-decoration: none; border-bottom: 1px solid var(--a-line); }
.outlets a:hover { border-color: var(--a-purple-2); }

.media-item { display: grid !important; grid-template-columns: 9rem minmax(0, 1fr); gap: 4px 24px; padding-block: 18px; border-top: 1px solid var(--a-line); margin: 0 !important; }
.media-item:first-child { border-top: 0; }
.media-item > * { margin: 0 !important; }
.media-item .kind { font-family: var(--a-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--a-purple-2); }
.media-item .kind span { display: block; color: var(--a-muted); letter-spacing: 0; text-transform: none; font-size: .78rem; }
.media-item .body a { font-weight: 600; }
.media-item .body { color: var(--a-muted); font-size: .95rem; }
@media (max-width: 640px) { .media-item { grid-template-columns: 1fr; } }

/* Founder block */
.founder { gap: 28px !important; }
.founder .wp-block-image img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 4px; }

/* Placeholders */
.slot { border: 1.5px dashed #c9cfca; border-radius: 4px; padding: 24px; background: var(--a-surface); }
.slot > * { margin: 0 0 8px !important; }

/* LIT bars */
.bars { display: flex; flex-direction: column; gap: 10px; }
.bar-row { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: 12px; align-items: center; }
@media (max-width: 560px) { .bar-row { grid-template-columns: 1fr; gap: 4px; } }
.bar-label { font-family: var(--a-mono); font-size: .8rem; }
.bar { display: flex; height: 34px; border-radius: 3px; overflow: hidden; background: var(--a-surface); }
.bar i { display: flex; align-items: center; justify-content: center; font-style: normal; font-size: .8rem; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; }
.bar .neg { background: #9b3b3b; color: #fff; } .bar .neu { background: #c9cec9; color: var(--a-ink); } .bar .pos { background: var(--a-purple); color: #fff; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: .82rem; color: var(--a-muted); }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
.legend .neg { background: #9b3b3b; } .legend .neu { background: #c9cec9; } .legend .pos { background: var(--a-purple); }

/* Details (FAQ) */
.wp-block-details { border-bottom: 1px solid var(--a-line); padding-block: 14px; }
.wp-block-details summary { cursor: pointer; font-weight: 600; font-size: 1.05rem; }
.wp-block-details p { color: var(--a-muted); margin-top: 8px; }

/* ---------- Plugin components (rendered by Arpent Site plugin) ---------- */
.a-tgrid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 10rem), 1fr)); }
@media (min-width: 1100px) { .a-tgrid.cols-7 { grid-template-columns: repeat(7, minmax(0, 1fr)); } }
@media (max-width: 480px) { .a-tgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.a-tcard { display: flex; flex-direction: column; gap: 3px; text-decoration: none; color: var(--a-ink); min-width: 0; }
.a-tcard img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 20%; border-radius: 4px; display: block; margin-bottom: 6px; }
.a-tcard:hover img { outline: 3px solid var(--a-green); }
.a-tcard b { font-family: var(--a-display); color: var(--a-purple); font-size: 1.02rem; }
.a-role { font-family: var(--a-mono); font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; color: var(--a-purple-2); }
.a-tcard .a-spec { font-size: .85rem; color: var(--a-muted); }

.a-people { display: grid; gap: 28px 24px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); }
.a-person { display: flex; flex-direction: column; gap: 8px; }
.a-person img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 4px; display: block; }
.a-person h3 { margin: 0; font-size: 1.2rem; }
.a-person h3 a { color: inherit; text-decoration: none; }
.a-person p { margin: 0; color: var(--a-muted); font-size: .95rem; }

.a-profile { display: grid; gap: 32px; grid-template-columns: minmax(0, 20rem) minmax(0, 1fr); align-items: start; }
@media (max-width: 760px) { .a-profile { grid-template-columns: 1fr; } .a-profile img { max-width: 20rem; } }
.a-profile img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 4px; }

.a-reviews { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); }
.a-review { margin: 0; background: var(--a-surface); border: 1px solid var(--a-line); border-left: 4px solid var(--a-green); border-radius: 4px; padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; }
.a-review blockquote { margin: 0; padding: 0; border: 0; font-size: 1rem; line-height: 1.6; }
.a-review figcaption { font-family: var(--a-mono); font-size: .78rem; color: var(--a-muted); }
.a-rating { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.a-rating b { font-family: var(--a-display); font-size: 2.6rem; color: var(--a-purple); line-height: 1; }
.a-stars { color: #b8860b; letter-spacing: 2px; font-size: 1.2rem; }

.a-fees-wrap { overflow-x: auto; }
.a-fees { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; background: var(--a-surface); }
.a-fees th, .a-fees td { text-align: left; padding: 12px; border-bottom: 1px solid var(--a-line); vertical-align: top; }
.a-fees th { font-family: var(--a-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--a-muted); font-weight: 500; }
.a-fees td.a-price { font-family: var(--a-display); font-size: 1.25rem; font-weight: 700; color: var(--a-purple); }
.a-fees td small { display: block; font-family: var(--wp--preset--font-family--body); font-size: .8rem; font-weight: 400; color: var(--a-muted); }
.a-guarantee { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; background: var(--a-green-soft); border: 1px solid var(--a-green); border-radius: 4px; }
.a-guarantee b { font-family: var(--a-display); color: var(--a-purple); font-size: 1.1rem; }

.a-form, .a-form * { box-sizing: border-box; }
.a-form { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); background: var(--a-surface); border: 1px solid var(--a-line); border-radius: 4px; padding: 22px; scroll-margin-top: 110px; }
.a-form label { display: flex; flex-direction: column; gap: 4px; font-size: .85rem; font-weight: 600; }
.a-form input, .a-form select, .a-form textarea { font: inherit; font-weight: 400; padding: 10px; border: 1px solid #cfd5d0; border-radius: 4px; background: var(--a-bg); color: var(--a-ink); width: 100%; min-height: 44px; }
.a-form .full { grid-column: 1 / -1; }
.a-form button { background: var(--a-purple); color: #fff; border: 0; border-radius: 4px; padding: 12px 18px; font: 600 .95rem var(--wp--preset--font-family--body); cursor: pointer; min-height: 44px; }
.a-form button:hover { background: var(--a-purple-2); }
.a-form .a-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.a-msg { grid-column: 1 / -1; padding: 12px 14px; border-radius: 4px; font-weight: 600; }
.a-msg.ok { background: var(--a-green-soft); color: var(--a-purple); border: 1px solid var(--a-green); }
.a-msg.err { background: #fbeaea; color: #7a1f1f; border: 1px solid #e6b8b8; }
.a-msg[hidden] { display: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--a-purple); color: #efe9f6; padding-top: 44px; padding-bottom: 44px; font-size: .92rem; margin-block-start: 0 !important; }
.site-footer h2, .site-footer h3 { color: var(--a-green); font-size: 1rem; margin: 0 0 6px; font-family: var(--a-display); }
.site-footer a { color: #efe9f6; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { padding: 3px 0; }
.site-footer .legal { margin-top: 28px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.18); font-size: .8rem; color: #cfc4dd; }
.a-nap { font-style: normal; line-height: 1.7; }

.a-callbar { display: none; }
@media (max-width: 640px) {
	.a-callbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; gap: 8px; background: var(--a-surface); border-top: 1px solid var(--a-line); padding: 8px max(12px, env(safe-area-inset-right, 0px)) calc(8px + env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px)); }
	.a-callbar a { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 44px; border-radius: 4px; font-weight: 600; text-decoration: none; background: var(--a-purple); color: #fff; }
	.a-callbar a.alt { background: transparent; color: var(--a-purple); box-shadow: inset 0 0 0 1.5px var(--a-purple); }
	.site-footer { padding-bottom: 96px; }
}

/* Blog / single (Phase 2 ready) */
.post-meta { font-family: var(--a-mono); font-size: .8rem; color: var(--a-muted); }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
.sec-head { justify-content: space-between !important; align-items: flex-end !important; gap: 16px; }
.sec-head > * { margin: 0 !important; }
/* Keep jump-link targets clear of the sticky header */
.entry-content [id] { scroll-margin-top: 96px; }

/* ---------- Faded photo backgrounds (inside-page title areas + green bands) ---------- */
body:not(.home) .hero::before { opacity: 1; background: url(assets/img/bridge-wide.jpg) center 38% / cover no-repeat; }
body:not(.home) .hero::after { background: linear-gradient(90deg, rgba(251,252,251,.92) 0%, rgba(251,252,251,.82) 45%, rgba(251,252,251,.5) 100%); }
@media (max-width: 700px) { body:not(.home) .hero::after { background: rgba(251,252,251,.86); } }
.sec.band { position: relative; isolation: isolate; overflow: hidden; }
.sec.band::before { content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none; background: url(assets/img/bridge-reeds.jpg) center / cover no-repeat; }
.sec.band::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(90deg, rgba(230,245,235,.95) 0%, rgba(230,245,235,.88) 55%, rgba(230,245,235,.6) 100%); }
.entry-content > .sec.band:nth-child(3n+2)::before { background-image: url(assets/img/bridge-dock.jpg); }
.entry-content > .sec.band:nth-child(3n)::before { background-image: url(assets/img/bridge-wide.jpg); }
@media (max-width: 700px) { .sec.band::after { background: rgba(230,245,235,.9); } }

/* ---------- Homepage hero: bigger photo ---------- */
@media (min-width: 782px) {
  .home .hero-split > .wp-block-column:first-child { flex-basis: 46% !important; flex-grow: 0 !important; }
  .home .hero-split > .wp-block-column:last-child { flex-basis: 54% !important; flex-grow: 0 !important; }
}
.home .hero-photo img { aspect-ratio: 4 / 3.1; }

/* ---------- Rentals: embedded ShowMojo listings ---------- */
.listings-embed { width: 100%; border: 1px solid var(--a-line); border-radius: 4px; overflow: hidden; background: var(--a-surface); }
.listings-embed iframe.showmojo-listings { display: block; width: 100% !important; height: clamp(640px, 85vh, 980px) !important; border: 0; }

/* ---------- Areas: local favorites line ---------- */
.favs { color: var(--a-ink) !important; }
.favs strong { color: var(--a-purple); }

/* A green band directly under a photo title area stays plain, so two photos never meet. */
.entry-content > .sec.hero + .sec.band::before { background-image: none !important; }
.entry-content > .sec.hero + .sec.band::after { background: none; }

/* ---------- Report request form (postcard landing page) ---------- */
.a-note { grid-column: 1 / -1; font-size: .8rem; color: var(--a-muted); margin: 0; }
.a-report-ok { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; font-weight: 400; }
.a-report-ok[hidden] { display: none; }
.a-report-ok strong { font-family: var(--a-display, inherit); font-size: 1.15rem; }
.a-report-ok .a-btn { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 18px; background: var(--a-purple); color: #fff; border-radius: 4px; font-weight: 600; text-decoration: none; }
.a-report-ok .a-btn:hover { background: var(--a-purple-2); }
.a-report-ok span { color: var(--a-ink); }
.h-small { font-size: 1.15rem !important; margin-top: 1.5rem !important; }
.tagline { font-family: var(--a-mono); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--a-purple-2); }
