/* Luxury Albuquerque — Phillip Archuleta, Realty One of New Mexico
 *
 * Committed to a single light palette rather than following the
 * viewer's system theme. The photography on this site is lit for a warm
 * paper ground, and a brand that changes colour is a brand that reads as
 * a template. The palette is drawn from the ground the properties sit on
 * — paper, sand, piñon, bronze — rather than from the black-and-gold
 * that every luxury real-estate template defaults to.
 */

:root {
    --paper: #fbfaf7;
    --paper-warm: #f4f0e8;
    --sand: #e6dfd3;
    --sand-deep: #d3c8b6;
    --ink: #17150f;
    --ink-soft: #4a463c;
    --ink-faint: #6b665a;   /* 5.5:1 on --paper, 5.0:1 on --paper-warm */
    --bronze: #846439;      /* 5.2:1 on --paper, 4.8:1 on --paper-warm */
    --bronze-light: #bd9a68; /* 4.7:1 on --pinon, 5.8:1 on --pinon-deep */
    --pinon: #2c382f;
    --pinon-deep: #1e2721;
    --rule: #ddd5c6;

    /* The two muted colours above are pinned to measured contrast
       ratios, not picked by eye. Both are used at 12-13px, where AA
       wants 4.5:1, and both are read against two different grounds
       (--paper and the --paper-warm tint sections) — the tint is the
       binding constraint, and the previous values failed it. */

    /* 16.61.32.8 NMAC: where an associate broker's name is advertised,
       the brokerage trade name and registered phone must appear at a
       type size of at least 33% of it. The heading scale and the ratio
       are both variables so the relationship is stated once, holds at
       every viewport, and is checked by tests/test_compliance.py rather
       than being re-measured by hand each time a heading changes. 0.36
       is deliberate headroom over the 0.33 floor. */
    --h1-size: clamp(2.4rem, 5.5vw, 4rem);
    --brokerage-ratio: 0.36;

    --measure: 66ch;
    --shell: 1180px;
    --shell-narrow: 760px;

    --step: 8px;
    --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
    --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--bronze); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }

:focus-visible { outline: 2px solid var(--bronze); outline-offset: 3px; }

.container { width: 100%; max-width: var(--shell); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: var(--shell-narrow); }

/* ---------------------------------------------------------------- type */

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h1 { font-size: var(--h1-size); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
h3 { font-size: clamp(1.35rem, 2.2vw, 1.7rem); }
h4 { font-size: 1.15rem; }

p { margin: 0 0 1.15em; max-width: var(--measure); }

.eyebrow {
    font-family: var(--sans);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--bronze);
    margin: 0 0 1rem;
}
.lede { font-size: 1.2rem; line-height: 1.65; color: var(--ink-soft); }
/* The statutory attribution line. Used wherever the broker's own name is
   the page heading — its size is derived from that heading, not chosen. */
.brokerage-line {
    font-size: calc(var(--h1-size) * var(--brokerage-ratio));
    line-height: 1.4;
    color: var(--ink-soft);
    margin: 0 0 1.15em;
    max-width: 34ch;
}
.brokerage-line strong { font-weight: 500; color: var(--ink); }
.brokerage-line a { color: inherit; text-decoration: none; }
.brokerage-line a:hover { color: var(--bronze); }
.muted { color: var(--ink-faint); }
.small { font-size: 0.87rem; }

.rule { height: 1px; background: var(--rule); border: 0; margin: 0; }

/* -------------------------------------------------------------- header */

.site-header {
    position: sticky; top: 0; z-index: 60;
    background: rgba(251, 250, 247, 0.94);
    backdrop-filter: saturate(140%) blur(10px);
    border-bottom: 1px solid var(--rule);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }

.brand { font-family: var(--serif); font-size: 1.5rem; color: var(--ink); text-decoration: none; line-height: 1.1; letter-spacing: 0.01em; }
.brand span { display: block; font-family: var(--sans); font-size: 0.62rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-faint); margin-top: 3px; }

.header-cta { display: flex; align-items: center; gap: 18px; }
.phone-link { font-weight: 600; font-size: 0.95rem; color: var(--ink); text-decoration: none; white-space: nowrap; }
.phone-link:hover { color: var(--bronze); }

.main-nav { border-bottom: 1px solid var(--rule); background: var(--paper); }
.main-nav .container { display: flex; flex-wrap: wrap; gap: 4px 28px; padding-top: 12px; padding-bottom: 12px; }
.main-nav a {
    font-size: 0.78rem; font-weight: 500; letter-spacing: 0.09em; text-transform: uppercase;
    color: var(--ink-soft); text-decoration: none; padding: 4px 0; border-bottom: 1px solid transparent;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--bronze); }

/* ------------------------------------------------------------- buttons */

.btn {
    display: inline-block; font-family: var(--sans); font-size: 0.78rem; font-weight: 600;
    letter-spacing: 0.13em; text-transform: uppercase; text-decoration: none;
    padding: 14px 28px; border: 1px solid transparent; cursor: pointer; transition: background .18s, color .18s, border-color .18s;
}
.btn-primary { background: var(--pinon); color: var(--paper); border-color: var(--pinon); }
.btn-primary:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--sand-deep); }
.btn-outline:hover { border-color: var(--ink); color: var(--ink); }
.btn-light { background: transparent; color: var(--paper); border-color: rgba(251,250,247,.45); }
.btn-light:hover { background: var(--paper); color: var(--pinon); border-color: var(--paper); }

/* ---------------------------------------------------------------- hero */

.hero { position: relative; background: var(--pinon-deep); color: var(--paper); overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; opacity: .52; }
.hero-media::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(105deg, rgba(30,39,33,.92) 0%, rgba(30,39,33,.62) 48%, rgba(30,39,33,.35) 100%);
}
/* Typographic fallback when no hero photograph is installed yet. */
.hero-media--empty {
    background:
        radial-gradient(120% 90% at 15% 0%, rgba(140,107,63,.30) 0%, transparent 62%),
        linear-gradient(160deg, var(--pinon) 0%, var(--pinon-deep) 100%);
}
.hero-inner { position: relative; padding: clamp(72px, 12vw, 148px) 0 clamp(60px, 9vw, 110px); }
.hero h1 { color: var(--paper); max-width: 15ch; }
.hero .eyebrow { color: var(--bronze-light); }
.hero p { color: rgba(251,250,247,.86); font-size: 1.15rem; max-width: 52ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

.hero-meta { display: flex; flex-wrap: wrap; gap: 0 40px; margin-top: 48px; padding-top: 26px; border-top: 1px solid rgba(251,250,247,.2); }
.hero-meta div { padding: 6px 0; }
.hero-meta dt { font-size: .68rem; letter-spacing: .17em; text-transform: uppercase; color: rgba(251,250,247,.62); margin-bottom: 4px; }
.hero-meta dd { margin: 0; font-family: var(--serif); font-size: 1.5rem; color: var(--paper); }

/* ------------------------------------------------------------ sections */

.section { padding: clamp(56px, 8vw, 104px) 0; }
.section--tint { background: var(--paper-warm); }
.section--dark { background: var(--pinon); color: var(--paper); }
.section--dark h2, .section--dark h3 { color: var(--paper); }
.section--dark p { color: rgba(251,250,247,.82); }
.section--dark .eyebrow { color: var(--bronze-light); }

.section-head { max-width: var(--shell-narrow); margin-bottom: 48px; }
.section-head p { font-size: 1.1rem; color: var(--ink-soft); }

/* ----------------------------------------------------------- page body */

.page-hero { padding: clamp(48px, 7vw, 88px) 0 clamp(28px, 4vw, 48px); border-bottom: 1px solid var(--rule); }
.page-hero h1 { max-width: 20ch; }
.page-hero .lede { max-width: 62ch; }

.breadcrumb { font-size: .78rem; letter-spacing: .06em; color: var(--ink-faint); margin-bottom: 18px; }
.breadcrumb a { color: var(--ink-faint); text-decoration: none; }
.breadcrumb a:hover { color: var(--bronze); text-decoration: underline; }

.prose > section { margin-bottom: 44px; }
.prose h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: .35em; }
.prose p { color: var(--ink-soft); }

.layout-split { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 64px; align-items: start; }
@media (max-width: 900px) { .layout-split { grid-template-columns: 1fr; gap: 48px; } }

.aside { position: sticky; top: 108px; }
.aside-card { background: var(--paper-warm); border: 1px solid var(--rule); padding: 28px; }
.aside-card + .aside-card { margin-top: 20px; }
.aside-card h3 { font-size: 1.25rem; }
.aside-card p { font-size: .93rem; color: var(--ink-soft); }
.aside-list { list-style: none; margin: 0; padding: 0; }
.aside-list li { border-top: 1px solid var(--rule); }
.aside-list li:first-child { border-top: 0; }
.aside-list a { display: block; padding: 10px 0; font-size: .92rem; text-decoration: none; color: var(--ink-soft); }
.aside-list a:hover { color: var(--bronze); }

/* --------------------------------------------------------------- cards */

.grid { display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 860px) { .grid-3 { grid-template-columns: repeat(2, minmax(0,1fr)); } }

/* The grid draws its hairlines with a 1px gap over a rule-coloured
   background, so an unfilled cell shows up as a solid block rather than
   as nothing. An odd final card spans the full width instead — which
   reads as deliberate emphasis, and is why the longest guide sits last. */
.grid-2 > :last-child:nth-child(odd) { grid-column: 1 / -1; }
@media (max-width: 860px) {
    .grid-3 > :last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
    .grid-2 > :last-child:nth-child(odd),
    .grid-3 > :last-child:nth-child(odd) { grid-column: auto; }
}
@media (max-width: 600px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

.card { background: var(--paper); padding: 34px 30px; display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: background .18s; }
.card:hover { background: var(--paper-warm); }
.section--tint .card { background: var(--paper-warm); }
.section--tint .card:hover { background: var(--paper); }
.card h3 { margin-bottom: .35em; }
.card p { font-size: .95rem; color: var(--ink-soft); margin-bottom: 1em; max-width: none; }
.card .card-more { margin-top: auto; font-size: .74rem; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; color: var(--bronze); }
.card-icon { width: 30px; height: 30px; color: var(--bronze); margin-bottom: 18px; }

/* ------------------------------------------------------------- reviews */

.review { background: var(--paper); border: 1px solid var(--rule); padding: 32px 30px; display: flex; flex-direction: column; }
.section--tint .review { background: var(--paper); }
.stars { color: var(--bronze); letter-spacing: .18em; font-size: .9rem; margin-bottom: 14px; }
.review blockquote { margin: 0 0 20px; font-family: var(--serif); font-size: 1.16rem; line-height: 1.55; color: var(--ink); }
.review footer { margin-top: auto; font-size: .85rem; color: var(--ink-faint); }
.review footer strong { display: block; color: var(--ink); font-weight: 600; font-size: .92rem; }

.reviews-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }

.rating-summary { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
.rating-summary .score { font-family: var(--serif); font-size: 3.2rem; line-height: 1; color: var(--ink); }

/* ---------------------------------------------------------------- form */

.form-panel { background: var(--pinon); color: var(--paper); position: relative; }
/* Adobe plaster under the form, at a tenth opacity in overlay. Enough to
   warm the flat piñon and stop the panel reading as a coloured box;
   nowhere near enough to touch the contrast of white text on it — the
   whole-page contrast sweep is run again after any change here. */
.form-panel--textured::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background-image: var(--texture); background-size: cover; background-position: center;
    opacity: .10; mix-blend-mode: overlay;
}
.form-panel > .container { position: relative; z-index: 1; }
/* The form panel is a dark section without carrying that class, so the
   accent has to be switched over too — the light-ground bronze sits at
   1.3:1 on piñon and is effectively invisible. */
.form-panel .eyebrow { color: var(--bronze-light); }
.form-panel h2, .form-panel h3 { color: var(--paper); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 8px; color: rgba(251,250,247,.72); }
.field input, .field select, .field textarea {
    font-family: var(--sans); font-size: 1rem; color: var(--paper);
    background: rgba(251,250,247,.07); border: 1px solid rgba(251,250,247,.24);
    padding: 13px 14px; width: 100%; border-radius: 0;
}
.field textarea { min-height: 118px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: rgba(251,250,247,.42); }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, rgba(251,250,247,.6) 50%), linear-gradient(135deg, rgba(251,250,247,.6) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; }
.field select option { background: var(--pinon-deep); color: var(--paper); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--bronze-light); background: rgba(251,250,247,.11); }
.form-note { font-size: .82rem; color: rgba(251,250,247,.6); margin-top: 16px; }
.form-note a { color: var(--bronze-light); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-closed { border: 1px solid rgba(251,250,247,.3); padding: 24px; }

/* ---------------------------------------------------------------- misc */

.pill-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 8px; padding: 0; list-style: none; }
.pill { font-size: .78rem; letter-spacing: .05em; padding: 7px 15px; border: 1px solid var(--rule); color: var(--ink-soft); text-decoration: none; background: var(--paper); }
.pill:hover { border-color: var(--bronze); color: var(--bronze); }

.faq { border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; padding: 20px 0; font-family: var(--serif); font-size: 1.22rem; list-style: none; display: flex; justify-content: space-between; gap: 20px; align-items: baseline; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--bronze); font-family: var(--sans); font-size: 1.2rem; flex: none; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding-bottom: 20px; color: var(--ink-soft); margin: 0; }

/* A decorative band. Deliberately shallow and full-bleed: it reads as a
   rule between sections rather than as a property photograph, which is
   the whole point of the documentary/decorative split. */
.band { width: 100%; height: clamp(140px, 22vw, 260px); overflow: hidden; }
.band img { width: 100%; height: 100%; object-fit: cover; }

.figure { margin: 0 0 40px; }
.figure img { width: 100%; object-fit: cover; }
.figure figcaption { font-size: .82rem; color: var(--ink-faint); padding-top: 10px; }

.portrait { display: grid; grid-template-columns: 300px minmax(0,1fr); gap: 48px; align-items: start; }
@media (max-width: 760px) { .portrait { grid-template-columns: 1fr; gap: 28px; } }
.portrait img { width: 100%; }
/* The portrait is an environmental one — Phillip in downtown
   Albuquerque, Sandias behind him — so it runs at its natural
   proportions rather than being cropped square. The local backdrop is
   half the reason to use it. */
.portrait > div:first-child > img { border: 1px solid var(--rule); }

/* -------------------------------------------------------------- footer */

footer.site-footer { background: var(--pinon-deep); color: rgba(251,250,247,.74); padding: 72px 0 0; font-size: .92rem; }
footer.site-footer .footer-cols { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
@media (max-width: 860px) { footer.site-footer .footer-cols { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { footer.site-footer .footer-cols { grid-template-columns: 1fr; } }
footer.site-footer h4 { color: var(--paper); font-family: var(--sans); font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 16px; }
footer.site-footer a { display: block; color: rgba(251,250,247,.74); text-decoration: none; padding: 4px 0; }
footer.site-footer a:hover { color: var(--paper); }
footer.site-footer p { max-width: 40ch; margin-bottom: 1em; }
.footer-legal { margin-top: 56px; border-top: 1px solid rgba(251,250,247,.15); padding: 24px 0 32px; font-size: .8rem; color: rgba(251,250,247,.55); }
/* Scoped through `footer.site-footer` rather than `.footer-legal` alone:
   the column rules above are two elements deep, so a bare `.footer-legal a`
   loses on specificity and the disclosure sentence breaks across lines
   with each link on its own row. */
footer.site-footer .footer-legal p { max-width: 90ch; margin: 0 0 .6em; }
footer.site-footer .footer-legal a { display: inline; padding: 0; color: rgba(251,250,247,.72); text-decoration: underline; }

/* ------------------------------------------------------------ utilities */

.stack > * + * { margin-top: 20px; }
.center { text-align: center; }
.center p { margin-left: auto; margin-right: auto; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 12px; top: 12px; z-index: 100; background: var(--paper); padding: 10px 16px; border: 1px solid var(--ink); }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; animation: none !important; }
}

/* ------------------------------------------------------------- mobile
 *
 * The header carries three things — brand, phone, and the call to
 * action — and there is not room for all three on a phone. The phone
 * number wins: on a device that can dial, a tel: link converts better
 * than a button that scrolls to a form, and the form is still reachable
 * from the nav and from the foot of every page.
 */
@media (max-width: 720px) {
    .site-header .container { min-height: 64px; gap: 12px; }
    .brand { font-size: 1.2rem; }
    .brand span { font-size: .54rem; letter-spacing: .14em; }
    .header-cta .btn { display: none; }
    .phone-link { font-size: 1rem; }

    /* One scrollable row rather than three stacked ones. */
    .main-nav .container {
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 22px;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }
    .main-nav .container::-webkit-scrollbar { display: none; }
    .main-nav a { white-space: nowrap; }

    body { font-size: 16px; }
    .hero p, .lede { font-size: 1.05rem; }
    .hero-actions .btn { width: 100%; text-align: center; }
    .hero-meta { gap: 0 28px; }
    .hero-meta dd { font-size: 1.25rem; }
    .card { padding: 26px 22px; }
    .aside { position: static; }
}

@media (max-width: 400px) {
    .container { padding: 0 18px; }
    .brand span { display: none; }
}
