/* Mala Real Estate, LLC
   Layout: navy header and footer bands framing light content sections; one gold Greek-key
   rule (from the logo) marks section breaks. Brand colors and fonts carried over from Mala's
   previous site (gold #CD9600, navy #1C1A33, Instrument Serif + Inter). Single light look. */
:root {
  --navy: #1C1A33;
  --navy-2: #26244A;
  --gold: #CD9600;
  --gold-deep: #9C7200;     /* gold dark enough for text on light backgrounds */
  --paper: #F7F6F2;
  --white: #FFFFFF;
  --ink: #1C1A33;
  --muted: #5F5D6E;
  --line: #E4E1D8;
  --on-navy: #F3F1EA;
  --on-navy-muted: #B9B6C8;

  --display: "Instrument Serif", Georgia, "Times New Roman", serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --max: 1180px;
  --gutter-l: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.65 var(--body);
}
img, video { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.inner {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter-l);
  padding-right: var(--gutter-r);
}

/* ---------- Type ---------- */
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.08; margin: 0; text-wrap: balance; letter-spacing: -0.005em; }
h1 { font-size: clamp(40px, 6.4vw, 76px); }
h2 { font-size: clamp(32px, 4.2vw, 50px); }
h3 { font-size: 26px; }
p { margin: 0; }
.eyebrow {
  font: 600 12px/1.2 var(--body);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.on-navy .eyebrow, .hero .eyebrow, .banner .eyebrow { color: var(--gold); }
.lede { font-size: 18px; color: var(--muted); max-width: 62ch; }
.prose { display: grid; gap: 18px; max-width: 66ch; color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 15px/1 var(--body);
  padding: 15px 24px;
  border-radius: 2px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background .2s, color .2s, border-color .2s;
  cursor: pointer;
}
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: #E2A800; }
.btn-ghost { border-color: rgba(243,241,234,.5); color: var(--on-navy); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-navy { background: var(--navy); color: var(--on-navy); }
.btn-navy:hover { background: var(--navy-2); }
.text-link { font-weight: 600; color: var(--gold-deep); text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.text-link:hover { color: var(--navy); }

/* ---------- Header ---------- */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--navy); }
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: var(--navy);
  border-bottom: 1px solid rgba(205,150,0,.25);
}
.site-header .inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.brand img { height: 42px; width: auto; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a.nav-link {
  color: var(--on-navy); text-decoration: none; font-size: 15px; font-weight: 500;
  padding-block: 6px; border-bottom: 1px solid transparent;
}
.nav a.nav-link:hover, .nav a.nav-link[aria-current="page"] { color: var(--gold); border-bottom-color: var(--gold); }
.nav .btn { padding: 12px 18px; font-size: 14px; }
.menu-toggle {
  display: none; background: none; border: 1px solid rgba(243,241,234,.35); color: var(--on-navy);
  font: 600 13px var(--body); letter-spacing: .1em; text-transform: uppercase; padding: 10px 14px; border-radius: 2px; cursor: pointer;
}
@media (max-width: 860px) {
  .menu-toggle { display: inline-block; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--navy); border-bottom: 1px solid rgba(205,150,0,.25);
    padding: 8px var(--gutter-r) 20px var(--gutter-l);
  }
  .nav[hidden] { display: none !important; }
  .nav a.nav-link { padding-block: 14px; border-bottom: 1px solid rgba(243,241,234,.1); }
  .nav .btn { margin-top: 16px; justify-content: center; }
}
@media (min-width: 861px) { .nav[hidden] { display: flex !important; } }

/* ---------- Greek key rule (from the logo's border) ---------- */
.key-rule {
  height: 14px;
  background-color: transparent;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='14' viewBox='0 0 28 14'%3E%3Cpath d='M0 13H6V3H16V9H11V7H14V5H8V13H20V1H28' fill='none' stroke='%23CD9600' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-size: 28px 14px;
  opacity: .9;
}

/* ---------- Hero (home) ---------- */
.hero { position: relative; background: var(--navy); color: var(--on-navy); overflow: hidden; }
.hero video, .hero .hero-poster {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(28,26,51,.92) 0%, rgba(28,26,51,.72) 48%, rgba(28,26,51,.35) 100%);
}
.hero .inner { position: relative; z-index: 1; padding-block: clamp(80px, 13vw, 150px) clamp(64px, 9vw, 110px); display: grid; gap: 26px; }
.hero h1 { max-width: 15ch; }
.hero h1 em { font-style: italic; color: var(--gold); }
.hero .lede { color: var(--on-navy-muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 6px; }
.focus-strip { position: relative; z-index: 1; border-top: 1px solid rgba(243,241,234,.14); }
.focus-strip .inner { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); }
.focus-strip div { padding: 22px 0; display: grid; gap: 2px; }
.focus-strip div + div { padding-left: 28px; border-left: 1px solid rgba(243,241,234,.14); }
.focus-strip b { font: 400 22px/1.2 var(--display); color: var(--on-navy); }
.focus-strip span { font-size: 14px; color: var(--on-navy-muted); }
@media (max-width: 760px) {
  .focus-strip .inner { grid-template-columns: 1fr; }
  .focus-strip div + div { padding-left: 0; border-left: 0; border-top: 1px solid rgba(243,241,234,.14); }
  .focus-strip div { padding: 16px 0; }
}

/* ---------- Page banner (inner pages) ---------- */
.banner { position: relative; background: var(--navy); color: var(--on-navy); overflow: hidden; }
.banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(28,26,51,.9), rgba(28,26,51,.55)); }
.banner .inner { position: relative; z-index: 1; padding-block: clamp(64px, 9vw, 112px); display: grid; gap: 14px; }
.banner p { color: var(--on-navy-muted); max-width: 58ch; font-size: 18px; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(64px, 9vw, 112px); }
.section.white { background: var(--white); }
.section.on-navy { background: var(--navy); color: var(--on-navy); }
.section.on-navy .lede, .section.on-navy .prose { color: var(--on-navy-muted); }
.section-head { display: grid; gap: 14px; margin-bottom: clamp(32px, 5vw, 52px); max-width: 760px; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.split.reverse > :first-child { order: 2; }
.split figure { margin: 0; position: relative; }
.split figure img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; }
.split figure::before { /* gold offset frame */
  content: ""; position: absolute; inset: 18px -18px -18px 18px; border: 1px solid var(--gold); z-index: -1;
}
.split .copy { display: grid; gap: 22px; align-content: start; min-width: 0; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split.reverse > :first-child { order: 0; }
  .split figure::before { inset: 12px -12px -12px 12px; }
  .split figure { margin-right: 12px; }
}

.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ticks li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; }
.ticks li::before {
  content: ""; width: 14px; height: 14px; margin-top: 6px; border: 1.5px solid var(--gold); transform: rotate(45deg);
}

/* Service list (home) */
.service-list { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); border-top: 1px solid var(--line); }
.service-list article { padding: 30px 28px 34px 0; border-bottom: 1px solid var(--line); display: grid; gap: 10px; align-content: start; min-width: 0; }
.service-list article:not(:nth-child(3n+1)) { padding-left: 28px; border-left: 1px solid var(--line); }
.service-list h3 { font-size: 25px; }
.service-list p { color: var(--muted); font-size: 15px; }
@media (max-width: 900px) {
  .service-list { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .service-list article:not(:nth-child(3n+1)) { padding-left: 0; border-left: 0; }
  .service-list article:nth-child(2n) { padding-left: 24px; border-left: 1px solid var(--line); }
}
@media (max-width: 600px) {
  .service-list { grid-template-columns: 1fr; }
  .service-list article:nth-child(2n) { padding-left: 0; border-left: 0; }
  .service-list article { padding-right: 0; }
}

/* Photo cards (services page) */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 28px; }
.cards.two { grid-template-columns: repeat(2, minmax(0,1fr)); }
.card { background: var(--white); border: 1px solid var(--line); display: grid; grid-template-rows: auto 1fr; min-width: 0; }
.card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.card .body { padding: 24px 24px 28px; display: grid; gap: 10px; align-content: start; }
.card h3 { font-size: 26px; }
.card p { color: var(--muted); font-size: 15px; }
@media (max-width: 960px) { .cards { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 620px) { .cards, .cards.two { grid-template-columns: 1fr; } }

/* Mosaic (home) */
.mosaic { display: grid; grid-template-columns: 1.4fr 1fr 1fr; grid-template-rows: 240px 240px; gap: 14px; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; }
.mosaic img:first-child { grid-row: span 2; }
.mosaic img:last-child { grid-column: span 2; }
@media (max-width: 760px) {
  .mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: 200px 160px 160px; }
  .mosaic img:first-child { grid-row: auto; grid-column: span 2; }
  .mosaic img:last-child { grid-column: span 2; }
}

/* Reasons (about) */
.reasons { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 0; border-top: 1px solid rgba(243,241,234,.16); }
.reasons div { padding: 28px 28px 30px 0; border-bottom: 1px solid rgba(243,241,234,.16); display: grid; gap: 8px; min-width: 0; }
.reasons div:nth-child(2n) { padding-left: 28px; border-left: 1px solid rgba(243,241,234,.16); }
.reasons h3 { font-size: 26px; color: var(--on-navy); }
.reasons p { color: var(--on-navy-muted); font-size: 15px; }
@media (max-width: 700px) {
  .reasons { grid-template-columns: 1fr; }
  .reasons div:nth-child(2n) { padding-left: 0; border-left: 0; }
}

/* Mission / Vision */
.mv { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: clamp(28px, 5vw, 64px); }
.mv div { display: grid; gap: 14px; align-content: start; min-width: 0; }
.mv p { color: var(--muted); }
@media (max-width: 760px) { .mv { grid-template-columns: 1fr; } }

/* Callout */
.callout { display: grid; grid-template-columns: 220px minmax(0,1fr); gap: 28px; align-items: center; background: var(--white); border: 1px solid var(--line); padding: 22px; }
.callout img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; }
.callout div { display: grid; gap: 8px; }
.callout p { color: var(--muted); }
@media (max-width: 620px) { .callout { grid-template-columns: 1fr; } }

/* FAQ */
.faq { display: grid; border-top: 1px solid var(--line); max-width: 880px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 44px 22px 0; position: relative;
  font: 400 23px/1.3 var(--display);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 30px; width: 10px; height: 10px;
  border-right: 1.5px solid var(--gold-deep); border-bottom: 1.5px solid var(--gold-deep); transform: rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(-135deg); top: 34px; }
.faq details p { color: var(--muted); padding-bottom: 24px; max-width: 70ch; }

/* CTA band */
.cta-band { background: var(--navy); color: var(--on-navy); }
.cta-band .inner { padding-block: clamp(56px, 8vw, 88px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.cta-band h2 { max-width: 18ch; }
.cta-band .actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.form { background: var(--white); border: 1px solid var(--line); padding: clamp(22px, 4vw, 40px); display: grid; gap: 18px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .form .row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 7px; min-width: 0; }
.field label { font-size: 14px; font-weight: 600; }
.field label .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  font: 16px/1.4 var(--body); color: var(--ink); background: var(--paper);
  border: 1px solid var(--line); border-radius: 2px; padding: 13px 14px; width: 100%;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(205,150,0,.18); }
.field .err { color: #A3261B; font-size: 13px; }
.form .note { font-size: 13px; color: var(--muted); }
.form-status { padding: 16px 18px; border-left: 3px solid var(--gold); background: #FBF5E4; font-size: 15px; }
.form-status.ok { border-left-color: #2E7D50; background: #EAF5EE; }
.hp { position: absolute; left: -9999px; }

.contact-info { display: grid; gap: 0; border-top: 1px solid var(--line); }
.contact-info div { padding: 22px 0; border-bottom: 1px solid var(--line); display: grid; gap: 4px; }
.contact-info .eyebrow { margin-bottom: 4px; }
.contact-info .value { font: 400 26px/1.25 var(--display); overflow-wrap: anywhere; }
.contact-info a.value { text-decoration: none; }
.contact-info a.value:hover { color: var(--gold-deep); }
.contact-info .small { color: var(--muted); font-size: 14px; }

/* Focus areas (home) */
.areas { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 18px; }
@media (max-width: 1180px) { .areas { grid-template-columns: repeat(3, minmax(0,1fr)); } }
.area { background: var(--white); border: 1px solid var(--line); display: grid; grid-template-rows: auto 1fr; min-width: 0; }
.area img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.area .body { padding: 20px 20px 24px; display: grid; gap: 8px; align-content: start; }
.area h3 { font-size: 24px; }
.area p { color: var(--muted); font-size: 15px; }
@media (max-width: 1000px) { .areas { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 560px) { .areas { grid-template-columns: 1fr; } }

/* Mailing address note */
.addr-note { font-size: 13px; color: var(--muted); font-style: italic; }
.site-footer .addr-note { color: var(--on-navy-muted); }

/* Team */
.team-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 1100px) { .team-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) { .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .team-grid { grid-template-columns: 1fr; } }
.member { background: var(--white); border: 1px solid var(--line); text-decoration: none; color: inherit; display: grid; grid-template-rows: auto 1fr; transition: border-color .2s; min-width: 0; }
.member:hover { border-color: var(--gold); }
.portrait { aspect-ratio: 4 / 5; background: var(--navy); display: grid; place-items: center; position: relative; overflow: hidden; }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait .initials { font: 400 64px/1 var(--display); color: var(--gold); }
.portrait .soon { position: absolute; bottom: 12px; left: 0; right: 0; text-align: center; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--on-navy-muted); }
.member .body { padding: 18px 18px 22px; display: grid; gap: 6px; align-content: start; }
.member h3 { font-size: 24px; }
.member p { color: var(--muted); font-size: 14px; }
.member .more { font-size: 13px; font-weight: 600; color: var(--gold-deep); margin-top: 6px; }

.profile { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.profile .portrait { aspect-ratio: 4 / 5; }
.profile .copy { display: grid; gap: 18px; min-width: 0; }
.roles { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.roles li { font-size: 13px; padding: 6px 12px; border: 1px solid var(--line); background: var(--white); }
.placeholder { border: 1px dashed var(--line); background: var(--white); padding: 18px 20px; color: var(--muted); }
@media (max-width: 760px) { .profile { grid-template-columns: 1fr; } .profile .portrait { max-width: 320px; } }

.back-link { font-size: 14px; font-weight: 600; color: var(--gold-deep); text-decoration: none; }

/* ---------- Footer ---------- */
.site-footer { background: #15142A; color: var(--on-navy-muted); font-size: 15px; }
.site-footer .inner { padding-block: 56px 28px; display: grid; gap: 40px; }
.footer-cols { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 36px; }
.footer-cols img { height: 46px; width: auto; margin-bottom: 16px; }
.footer-cols h4 { margin: 0 0 14px; font: 600 12px var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.footer-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-cols a { text-decoration: none; color: var(--on-navy); }
.footer-cols a:hover { color: var(--gold); }
.footer-base { border-top: 1px solid rgba(243,241,234,.1); padding-top: 22px; font-size: 13px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
@media (max-width: 760px) { .footer-cols { grid-template-columns: 1fr; } }
