/* Moxies: Property Solutions & Development
   Quiet luxury: near-black and ivory, champagne gold used sparingly, generous space,
   hairline rules, editorial serif headings. Written phone-first. */
:root {
  --black: #0C0C0D;
  --panel: #141416;
  --line-dark: #2A2A2E;
  --ivory: #F3EFE7;
  --ivory-2: #EAE4D8;
  --line-light: #D8D0C1;
  --gold: #C9A96E;        /* on dark backgrounds */
  --gold-ink: #7C5F2C;    /* gold text on ivory (readable) */
  --muted-dark: #A8A196;  /* secondary text on dark */
  --muted-light: #5E5950; /* secondary text on ivory */
  --error: #E28B7D;
  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1180px;
  --gutter: max(20px, env(safe-area-inset-left, 0px));
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--black); color: var(--ivory); font: 400 16px/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.08; margin: 0; letter-spacing: -.01em; text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }
.ivory :focus-visible, .ivory-2 :focus-visible { outline-color: var(--gold-ink); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--gold); color: var(--black); padding: 10px 14px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.wrap.narrow { max-width: 860px; }
.center { text-align: center; }
.muted { color: var(--muted-dark); }

.eyebrow { font: 700 12px/1 var(--sans); letter-spacing: .26em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; display: flex; align-items: center; gap: 14px; }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.eyebrow.dark { color: var(--gold-ink); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 12px 22px; font: 700 14px/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; text-decoration: none; border: 1px solid transparent; border-radius: 0; cursor: pointer; transition: background-color .25s, color .25s, border-color .25s, transform .4s var(--ease); }
.btn:active { transform: translateY(1px); }
.btn-lg { min-height: 54px; padding: 16px 28px; }
.btn-gold { background: var(--gold); color: #17130C; }
.btn-gold:hover { background: #D8BC86; }
.btn-ghost { border-color: rgba(243, 239, 231, .35); color: var(--ivory); background: transparent; }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.link-gold { color: var(--gold); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }

/* 1. Header */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(12, 12, 13, .86); backdrop-filter: saturate(140%) blur(10px); -webkit-backdrop-filter: saturate(140%) blur(10px); border-bottom: 1px solid var(--line-dark); padding-top: env(safe-area-inset-top, 0px); }
.header-in { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ivory); }
.logo-mark { width: 40px; height: 40px; flex-shrink: 0; }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-text b { font: 600 25px/1 var(--serif); letter-spacing: .3em; }
.logo-text small { font: 700 8.5px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-top: 6px; }
.main-nav { display: none; gap: 30px; }
.main-nav a { font-size: 13.5px; font-weight: 600; letter-spacing: .04em; text-decoration: none; color: var(--ivory); opacity: .82; transition: opacity .2s, color .2s; }
.main-nav a:hover { opacity: 1; color: var(--gold); }
.header-cta { display: flex; align-items: center; gap: 18px; }
.header-cta .btn, .header-phone { display: none; }
.header-phone { font-weight: 700; text-decoration: none; letter-spacing: .02em; white-space: nowrap; }
.team-login { font-size: 12px; font-weight: 600; color: var(--muted-dark); text-decoration: none; letter-spacing: .06em; white-space: nowrap; }
.team-login:hover { color: var(--gold); }

/* 2. Hero */
.hero { position: relative; overflow: hidden; padding: 56px 0 72px; background:
  radial-gradient(900px 500px at 85% 10%, rgba(201, 169, 110, .10), transparent 60%), var(--black); }
.hero-in { display: grid; gap: 44px; }
.hero h1 { font-size: clamp(44px, 9vw, 88px); font-weight: 600; max-width: 12ch; }
.lede { margin-top: 22px; font-size: clamp(17px, 2.2vw, 20px); color: var(--muted-dark); max-width: 44ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.trust { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 22px; border-top: 1px solid var(--line-dark); padding-top: 24px; }
.trust li { font-size: 14px; font-weight: 600; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; position: relative; padding-left: 22px; }
.tick { position: absolute; left: 0; top: .45em; width: 11px; height: 6px; border-left: 1.5px solid var(--gold); border-bottom: 1.5px solid var(--gold); transform: rotate(-45deg); }
.trust-sub { font-size: 12px; font-weight: 500; color: var(--muted-dark); }
.hero-art { margin: 0; }
.drawing { width: 100%; height: auto; }
.drawing .l { stroke-width: 1.4; vector-effect: non-scaling-stroke; }
.drawing .gold { stroke: var(--gold); }
.drawing .ivory { stroke: var(--ivory); }
.drawing .faint { stroke: rgba(243, 239, 231, .32); }
.drawing .thick { stroke-width: 2.2; }
.drawing .note text { fill: var(--muted-dark); font: 700 10px var(--sans); letter-spacing: .22em; }
@media (prefers-reduced-motion: no-preference) {
  .drawing .l { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.6s var(--ease) var(--d, 0s) forwards; }
  .drawing .note { opacity: 0; animation: fade 1s ease var(--d, 0s) forwards; }
  .hero-copy > * { animation: rise .9s var(--ease) both; }
  .hero-copy > :nth-child(2) { animation-delay: .08s; } .hero-copy > :nth-child(3) { animation-delay: .16s; }
  .hero-copy > :nth-child(4) { animation-delay: .24s; } .hero-copy > :nth-child(5) { animation-delay: .32s; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* Sections */
.section { padding: 84px 0; }
.section.ivory { background: var(--ivory); color: var(--black); }
.section.ivory-2 { background: var(--ivory-2); color: var(--black); }
.section.dark { background: var(--black); }
.section-head { margin-bottom: 44px; }
.section-head h2 { font-size: clamp(38px, 6vw, 60px); }

/* 3. Services */
.services { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-light); }
.services li { display: grid; grid-template-columns: 56px 1fr; gap: 6px 18px; padding: 26px 0; border-bottom: 1px solid var(--line-light); }
.services .num { font: 500 italic 28px/1 var(--serif); color: var(--gold-ink); padding-top: 4px; }
.services h3 { font-size: 27px; }
.services p { margin-top: 8px; color: var(--muted-light); max-width: 56ch; }

/* 4. Why Moxies */
.promises { display: grid; gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); }
.promise { background: var(--black); padding: 34px 28px 38px; }
.roman { display: block; font: 500 italic 34px/1 var(--serif); color: var(--gold); margin-bottom: 26px; }
.promise h3 { font-size: 29px; }
.promise p { margin-top: 14px; color: var(--muted-dark); }

/* 5. Our Work */
.gallery { display: grid; gap: 18px; grid-template-columns: 1fr; }
.tile { margin: 0; }
.tile .ph { position: relative; aspect-ratio: 4 / 3; background: var(--ivory-2); border: 1px solid var(--line-light); overflow: hidden; display: grid; place-items: center;
  background-image: repeating-linear-gradient(135deg, transparent 0 18px, rgba(124, 95, 44, .07) 18px 19px); }
.tile .ph::before { content: ""; position: absolute; inset: 14px; border: 1px solid rgba(124, 95, 44, .25); pointer-events: none; }
.tile .ph span { position: relative; font: 700 11px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--gold-ink); background: var(--ivory-2); padding: 10px 14px; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.tile:hover img { transform: scale(1.03); }
.tile.has-photo .ph { background-image: none; }
.tile.has-photo .ph::before, .tile.has-photo .ph span { display: none; }
.tile figcaption { margin-top: 12px; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-light); }

/* 6. Reviews */
.reviews { padding: 96px 0; border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); }
.quote { margin: 0; text-align: center; }
.quote p { font: 500 clamp(26px, 4.4vw, 42px)/1.25 var(--serif); font-style: italic; }
.quote p::before { content: "“"; display: block; font-size: 1.9em; line-height: .6; color: var(--gold); margin-bottom: 22px; font-style: normal; }
.quote footer { margin-top: 24px; font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted-dark); }
.reviews .center { margin-top: 30px; }

/* 7. Service areas */
.areas { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 28px; }
.areas li { break-inside: avoid; padding: 9px 0; border-bottom: 1px solid var(--line-light); font: 500 20px/1.25 var(--serif); }

/* 8. FAQ */
.faq { border-top: 1px solid var(--line-light); }
.faq details { border-bottom: 1px solid var(--line-light); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; font: 600 23px/1.25 var(--serif); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex-shrink: 0; width: 12px; height: 12px; border-right: 1.5px solid var(--gold-ink); border-bottom: 1.5px solid var(--gold-ink); transform: rotate(45deg) translate(-3px, -3px); transition: transform .35s var(--ease); }
.faq details[open] summary::after { transform: rotate(225deg) translate(-3px, -3px); }
.faq details p { padding: 0 0 24px; color: var(--muted-light); max-width: 62ch; }

/* 9. Estimate form */
.estimate { background: radial-gradient(800px 400px at 10% 0%, rgba(201, 169, 110, .08), transparent 60%), var(--black); }
.estimate-in { display: grid; gap: 40px; }
.estimate-copy h2 { font-size: clamp(38px, 6vw, 58px); }
.estimate-copy p { margin-top: 18px; color: var(--muted-dark); max-width: 40ch; }
.call-line { font-weight: 600; }
.form { display: grid; gap: 18px; grid-template-columns: 1fr; background: var(--panel); border: 1px solid var(--line-dark); padding: 26px 20px; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field label { font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ivory); }
.req { color: var(--gold); }
.field input, .field select, .field textarea { width: 100%; font: 500 16px/1.4 var(--sans); color: var(--ivory); background: var(--black); border: 1px solid var(--line-dark); border-radius: 0; padding: 13px 14px; transition: border-color .2s; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%); background-position: right 18px top 50%, right 13px top 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); }
.field textarea { resize: vertical; min-height: 110px; }
.field input::placeholder, .field textarea::placeholder { color: #7D776C; }
.field.invalid input { border-color: var(--error); }
.err { font-size: 13px; color: var(--error); }
.consent { flex-direction: row; align-items: flex-start; flex-wrap: wrap; gap: 12px; }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; padding: 0; accent-color: var(--gold); flex-shrink: 0; }
.consent label { flex: 1; min-width: 0; font-size: 13.5px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--muted-dark); }
.consent label a { color: var(--gold); }
.consent .err { flex-basis: 100%; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.actions { gap: 14px; }
.actions .btn { width: 100%; }
.btn[aria-busy="true"] { opacity: .75; cursor: progress; }
.btn[aria-busy="true"]::after { content: ""; width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-status { font-size: 15px; }
.form-status.ok { color: var(--gold); font: 500 22px/1.3 var(--serif); }
.form-status.bad { color: var(--error); }
.form-status a { color: var(--gold); }

/* 10. Footer */
.site-footer { border-top: 1px solid var(--line-dark); padding: 56px 0 calc(96px + env(safe-area-inset-bottom, 0px)); font-size: 14.5px; }
.footer-in { display: grid; gap: 34px; }
.footer-brand .muted { margin-top: 18px; max-width: 36ch; }
.footer-col h3 { font: 700 11.5px/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.footer-col p + p { margin-top: 10px; }
.footer-col a { text-decoration: none; }
.footer-col a:hover { color: var(--gold); }
.footer-base { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line-dark); font-size: 13px; }

/* Phone: fixed bottom bar */
.mobile-bar { position: fixed; z-index: 50; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line-dark);
  padding-bottom: env(safe-area-inset-bottom, 0px); box-shadow: 0 -10px 30px rgba(0, 0, 0, .35); }
.mobile-bar .btn { min-height: 58px; border: 0; }
.mobile-bar .btn-ghost { background: var(--black); }

/* Scroll reveal: only when JavaScript is on and motion is welcome; content is visible otherwise. */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
  .js .reveal.in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Small tablets and up */
@media (min-width: 640px) {
  .trust { grid-template-columns: repeat(4, auto); justify-content: start; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .areas { columns: 3; }
  .form { grid-template-columns: 1fr 1fr; padding: 34px; }
  .form .full { grid-column: 1 / -1; }
  .actions { flex-direction: row; align-items: center; flex-wrap: wrap; }
  .actions .btn { width: auto; }
  .footer-in { grid-template-columns: 1.4fr 1fr 1fr; }
}
/* Desktop */
@media (min-width: 960px) {
  .main-nav { display: flex; }
  .header-cta .btn, .header-phone { display: inline-flex; }
  .hero { padding: 92px 0 110px; }
  .hero-in { grid-template-columns: 1.05fr 1fr; align-items: center; gap: 60px; }
  .services { display: grid; grid-template-columns: 1fr 1fr; column-gap: 56px; border-top: 0; }
  .services li { border-top: 1px solid var(--line-light); border-bottom: 0; grid-template-columns: 64px 1fr; }
  .services li:nth-last-child(-n+2) { border-bottom: 1px solid var(--line-light); }
  .promises { grid-template-columns: repeat(3, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); gap: 22px; }
  .gallery .tile:nth-child(1) { grid-column: span 2; grid-row: span 2; }
  .gallery .tile:nth-child(1) { display: flex; flex-direction: column; }
  .gallery .tile:nth-child(1) .ph { aspect-ratio: auto; flex: 1; }
  .areas { columns: 4; }
  .estimate-in { grid-template-columns: .85fr 1.15fr; gap: 64px; align-items: start; }
  .estimate-copy { position: sticky; top: 120px; }
  .mobile-bar { display: none; }
  .site-footer { padding-bottom: 48px; }
  .section { padding: 120px 0; }
}

/* Privacy policy and 404 */
.legal { padding-top: 64px; }
.legal h1 { font-size: clamp(40px, 6vw, 60px); margin-bottom: 8px; }
.legal h2 { font-size: 28px; margin: 38px 0 10px; }
.legal p { color: #2A2824; max-width: 68ch; }
.legal p + p { margin-top: 12px; }
.muted-l { color: var(--muted-light) !important; }
.draft-note { display: inline-block; background: var(--gold-ink); color: var(--ivory) !important; font-weight: 700; font-size: 13px; letter-spacing: .06em; padding: 6px 10px; margin-bottom: 22px; }
.notfound { min-height: 70vh; display: grid; place-items: center; padding: 80px 0; }
.notfound h1 { font-size: clamp(40px, 7vw, 68px); }
.page-plain .site-footer { padding-bottom: 40px; }
