/* Luxury noir (from mockups/03-luxury-noir.css), with fonts self-hosted so the site makes no outside requests */
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 300 700; font-display: swap; src: url(fonts/CormorantGaramond-normal.woff2) format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 300 700; font-display: swap; src: url(fonts/CormorantGaramond-italic.woff2) format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(fonts/Montserrat-normal.woff2) format("woff2"); }

/* Sections alternate --bg / --bg-2. Contrast (WCAG): text ≥ 4.9:1, form-field lines ≥ 3.3:1 in both themes.
   The footer and the eXp badge stay noir in both themes because the eXp logo is white. */
:root {
  --noir: #0b0a09; --ivory: #f1ebdf; --gold-hi: #c9a961;
  --bg: #f6f1e7; --bg-2: #ece4d4; --ink: #17140f; --muted: #5a5246;
  --accent: #7a5c26; --on-accent: #ffffff; --line: rgba(23,20,15,.16); --field-line: #857a68;
  --theme-icon: "\263E\FE0E"; color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #0b0a09; --bg-2: #15130f; --ink: #ece6da; --muted: #a39b8c;
  --accent: #c9a961; --on-accent: #0b0a09; --line: rgba(201,169,97,.22); --field-line: #7d6b45;
  --theme-icon: "\2600\FE0E"; color-scheme: dark; } }
:root[data-theme="dark"] {
  --bg: #0b0a09; --bg-2: #15130f; --ink: #ece6da; --muted: #a39b8c;
  --accent: #c9a961; --on-accent: #0b0a09; --line: rgba(201,169,97,.22); --field-line: #7d6b45;
  --theme-icon: "\2600\FE0E"; color-scheme: dark; }

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { font: 400 16px/1.75 "Montserrat", "Helvetica Neue", sans-serif; color: var(--ink); background: var(--bg); letter-spacing: .01em; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: "Cormorant Garamond", "Didot", Georgia, serif; font-weight: 400; line-height: 1.04; letter-spacing: -.01em; }
em, .logo i { font-style: italic; color: var(--accent); }
.wrap { padding-inline: clamp(20px, 4vw, 64px); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.label { display: flex; align-items: center; gap: 16px; font-size: 12px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--accent); }
.label::after { content: ""; width: 48px; height: 1px; background: currentColor; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 14px 30px; font: 600 13px/1.2 "Montserrat", sans-serif; letter-spacing: .16em; text-transform: uppercase; text-decoration: none; border: 1px solid var(--accent); color: var(--accent); transition: background .3s, color .3s; cursor: pointer; }
.btn:hover { background: var(--accent); color: var(--on-accent); }
.btn-solid { background: var(--accent); color: var(--on-accent); }
.btn-solid:hover { background: transparent; color: var(--accent); }

/* header: links · logo · actions on desktop; logo + actions with links on a second row below 900px */
header { position: sticky; top: 0; z-index: 10; background: var(--bg); border-bottom: 1px solid var(--line); }
nav { display: grid; grid-template-columns: 1fr auto 1fr; grid-template-areas: "links logo right"; align-items: center; min-height: 84px; }
.logo { grid-area: logo; text-align: center; text-decoration: none; font: 400 27px/1 "Cormorant Garamond", serif; letter-spacing: .03em; display: grid; gap: 6px; }
.logo-sub { font: 600 10px/1.2 "Montserrat", sans-serif; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.links { grid-area: links; display: flex; gap: 8px; list-style: none; padding: 0; }
.links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; text-decoration: none; color: var(--muted); }
.links a:hover { color: var(--accent); }
.nav-right { grid-area: right; justify-self: end; display: flex; align-items: center; gap: 8px; }
.theme { min-width: 44px; min-height: 44px; background: none; border: 0; color: var(--accent); font-size: 18px; cursor: pointer; }
.theme::before { content: var(--theme-icon); }
.lang { appearance: none; -webkit-appearance: none; min-height: 44px; padding: 0 22px 0 10px; font: 600 13px/1 "Montserrat", sans-serif; letter-spacing: .14em; color: var(--ink); border: 0; border-radius: 0; cursor: pointer;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23a3824a' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 6px center / 10px; }
.lang option { color: #111; background: #fff; }
.nav-cta { min-height: 44px; padding: 10px 20px; margin-left: 8px; white-space: nowrap; }
.nav-call { display: none; }

/* hero: copy beside the photo on wide screens so the headline and buttons are above the fold */
.hero { padding-top: 40px; padding-bottom: 72px; }
.stage { display: flex; flex-direction: column; }
.portrait { order: -1; position: relative; aspect-ratio: 16 / 10; }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 80% 30%; filter: saturate(.8) contrast(1.03); }
.portrait::after { content: ""; position: absolute; inset: 14px; border: 1px solid rgba(201,169,97,.75); pointer-events: none; }
.agency-badge { position: absolute; left: 50%; bottom: 0; transform: translate(-50%, 50%); background: var(--noir); border: 1px solid var(--gold-hi); padding: 10px 16px; z-index: 1; }
.agency-badge img { width: 64px; }
.hero .copy { text-align: center; padding-top: 52px; }
.hero .label { justify-content: center; }
.hero .label::before { content: ""; width: 48px; height: 1px; background: currentColor; }
.hero h1 { font-size: clamp(40px, 6vw, 84px); margin: 20px 0 22px; }
.hero .lead { color: var(--muted); max-width: 34em; margin: 0 auto 32px; }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
@media (min-width: 1000px) {
  .hero { padding-top: 48px; padding-bottom: 96px; }
  .stage { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(40px, 5vw, 96px); align-items: center; }
  .portrait { order: 1; aspect-ratio: auto; height: clamp(440px, calc(100svh - 84px - 120px), 760px); }
  .portrait::after { inset: 18px; }
  .agency-badge { left: auto; right: 0; bottom: auto; top: 0; transform: none; padding: 14px 22px; }
  .agency-badge img { width: 88px; }
  .hero .copy { text-align: left; padding-top: 0; }
  .hero .label { justify-content: flex-start; }
  .hero .label::before { display: none; }
  .hero .lead { margin-left: 0; }
  .actions { justify-content: flex-start; }
}

section { padding: 128px 0; }
h2 { font-size: clamp(40px, 5.4vw, 76px); }

/* about (--bg-2) */
.about { background: var(--bg-2); }
.about .wrap { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(48px, 7vw, 110px); align-items: center; }
.about-img { position: relative; max-width: 560px; }
.about-img::before { content: ""; position: absolute; inset: 24px -24px -24px 24px; border: 1px solid var(--accent); }
.about-img img { position: relative; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 78% 20%; filter: grayscale(1) contrast(1.08); }
.about h2 { margin: 24px 0 32px; }
.about p { color: var(--muted); margin-bottom: 16px; max-width: 60ch; }
.about .source { font-size: 13px; }
.services { display: grid; grid-template-columns: 1fr 1fr; gap: 36px 48px; margin-top: 48px; }
.service { border-top: 1px solid var(--accent); padding-top: 16px; }
.service h3 { font-style: italic; font-size: 30px; color: var(--accent); margin-bottom: 6px; }
.service p { font-size: 15px; margin: 0; }

/* listings (--bg) */
#listings .wrap { text-align: center; }
#listings .label { justify-content: center; }
#listings .label::before { content: ""; width: 48px; height: 1px; background: currentColor; }
.head { margin: 24px 0 48px; }
.empty { display: grid; gap: 14px; justify-items: center; padding-top: 48px; border-top: 1px solid var(--line); }
.empty p { color: var(--muted); }
.empty p:first-child { font: italic 400 32px/1.25 "Cormorant Garamond", serif; color: var(--ink); }
.empty .btn { margin-top: 18px; }

/* contact (--bg-2) */
.contact { background: var(--bg-2); }
.contact .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(48px, 7vw, 110px); }
.contact h2 { margin: 24px 0 24px; }
.contact p { color: var(--muted); margin-bottom: 40px; max-width: 46ch; }
.info { list-style: none; padding: 0; }
.info li { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); font-size: 15px; }
.info li span:first-child { font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); padding-top: 3px; }
.info a { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; }
.info a:hover { color: var(--accent); }
form { display: grid; gap: 30px; align-content: start; padding: 48px 44px; border: 1px solid var(--line); background: var(--bg); }
label { display: grid; gap: 6px; font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
input, select, textarea { font: 400 18px/1.4 "Montserrat", sans-serif; letter-spacing: 0; text-transform: none; color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid var(--field-line); border-radius: 0; padding: 10px 0; }
select option { color: #111; background: #fff; }
input:focus, select:focus, textarea:focus { outline: none; border-bottom: 2px solid var(--accent); margin-bottom: -1px; }
textarea { min-height: 110px; resize: vertical; }
form .btn { justify-self: start; }
.form-note { font-size: 15px; color: var(--ink); border-left: 2px solid var(--accent); padding-left: 14px; }
.form-note a { color: var(--accent); }

/* footer: noir in both themes (white eXp logo) */
footer { background: var(--noir); color: rgba(241,235,223,.72); font-size: 13px; letter-spacing: .06em; text-align: center; }
footer .wrap { display: flex; flex-direction: column; align-items: center; gap: 18px; padding-top: 24px; padding-bottom: 24px; }
footer .footer-brand { flex-direction: column-reverse; padding-top: 56px; }
footer .footer-brand img { width: 110px; }
.social { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--gold-hi); text-decoration: none; letter-spacing: .2em; text-transform: uppercase; font-weight: 600; }
.social:hover { color: var(--ivory); }
footer :focus-visible { outline-color: var(--gold-hi); }
.privacy { padding-bottom: 48px; }
.privacy summary { display: inline-flex; align-items: center; min-height: 44px; cursor: pointer; letter-spacing: .2em; text-transform: uppercase; font-weight: 600; }
.privacy summary:hover { color: var(--gold-hi); }
.privacy div { max-width: 640px; margin: 0 auto; padding-top: 12px; display: grid; gap: 10px; font-size: 14px; letter-spacing: .01em; line-height: 1.7; text-align: left; }
.privacy a { color: var(--gold-hi); }

@media (max-width: 900px) {
  nav { grid-template-columns: 1fr auto; grid-template-areas: "logo right" "links links"; min-height: 0; padding-top: 8px; }
  .logo { text-align: left; font-size: 22px; }
  .logo-sub { display: none; }
  .links { justify-content: center; gap: 0; border-top: 1px solid var(--line); margin-top: 6px; }
  .links a { min-height: 40px; font-size: 11px; letter-spacing: .16em; }
  .nav-cta { display: none; }
  .nav-call { display: inline-flex; }
  html { scroll-padding-top: 116px; }
  .about .wrap, .contact .wrap { grid-template-columns: 1fr; }
  .about-img { margin-right: 24px; }
  section { padding: 88px 0; }
}
@media (max-width: 640px) {
  .nav-right { gap: 0; } .nav-cta { padding: 10px 14px; }
  .hero { padding-top: 20px; }
  .hero .copy { padding-top: 40px; }
  .hero .lead { font-size: 15px; margin-bottom: 24px; }
  .services { grid-template-columns: 1fr; }
  .info li { grid-template-columns: 1fr; gap: 2px; }
  form { padding: 32px 22px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* Hidden until app.js fills in content.json; the animation reveals the page anyway after 1.5s if the text never arrives. */
html:not(.ready) body { visibility: hidden; animation: reveal 0s 1.5s forwards; }
@keyframes reveal { to { visibility: visible; } }
