/* meganatx.com — built from the Megan Hicks brand system */

:root {
  --plaster: #f6f1ea;
  --linen: #fbf8f4;
  --travertine: #e8ddcf;
  --hairline: #e3d7c7;
  --hairline-strong: #dccfbe;
  --white-oak: #c9a27c;
  --bronze: #8c5e3c;
  --bronze-deep: #6e4a2f;
  --olive-leaf: #6f7254;
  --iron: #2a2623;
  --iron-muted: #5c4a3a;
  --field-border: #9a8572; /* form field outlines: 3.5:1 on white */
  --font-display: "Marcellus", Georgia, serif;
  --font-sans: "Work Sans", system-ui, sans-serif;
  --space-2: 8px;
  --space-4: 16px;
  --space-6: 24px;
  --space-10: 40px;
  --space-16: 64px;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-pill: 999px;
  --max: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--plaster);
  color: var(--iron);
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
}
img { max-width: 100%; display: block; }
p { margin: 0; }
strong { font-weight: 500; }
a { color: var(--bronze); text-underline-offset: 3px; }
a:hover { color: var(--iron); }
:focus-visible { outline: 2px solid var(--bronze); outline-offset: 3px; }

.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 16px; top: 16px; z-index: 50; background: var(--iron); color: var(--plaster); padding: 10px 18px; border-radius: var(--radius-pill); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--space-6); }
@media (min-width: 900px) { .wrap { padding: 0 var(--space-10); } }
.wrap.narrow > * { max-width: 760px; }

/* Type */
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; margin: 0; color: var(--iron); text-wrap: balance; }
.display-xl { font-size: clamp(40px, 6vw, 64px); line-height: 1.06; }
.display-l { font-size: clamp(34px, 4.6vw, 48px); line-height: 1.12; }
.heading { font-size: clamp(24px, 2.8vw, 30px); line-height: 1.25; }
.heading-s { font-size: 22px; line-height: 1.3; }
.warm { color: var(--bronze); }
.eyebrow { font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--bronze); margin: 0; }
.lede { font-size: 18px; line-height: 29px; max-width: 640px; }
.muted { color: var(--iron-muted); }
.small { font-size: 14px; line-height: 21px; }
.flow > * + * { margin-top: var(--space-6); }
.flow-tight > * + * { margin-top: var(--space-4); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 26px;
  border-radius: var(--radius-pill); border: 1px solid var(--iron);
  background: transparent; color: var(--iron);
  font: 500 15px/20px var(--font-sans); text-decoration: none; cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.btn:hover { background: var(--iron); color: var(--plaster); }
.btn-primary { background: var(--bronze); border-color: var(--bronze); color: #fff; }
.btn-primary:hover { background: var(--iron); border-color: var(--iron); color: var(--plaster); }
.btn-light { border-color: var(--plaster); color: var(--plaster); }
.btn-light:hover { background: var(--plaster); color: var(--iron); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.text-link { font-weight: 500; text-decoration: none; }
.text-link::after { content: " \2192"; }
.text-link:hover { text-decoration: underline; }

/* Header */
.site-header { position: relative; background: var(--plaster); border-bottom: 1px solid var(--hairline-strong); z-index: 20; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); min-height: 84px; }
.brand { display: block; flex-shrink: 0; }
.brand img { height: 44px; width: auto; }
.nav-links { display: none; list-style: none; margin: 0; padding: 0; gap: 28px; align-items: center; }
.nav-links a { color: var(--iron); text-decoration: none; font-weight: 400; font-size: 15px; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--bronze); }
.nav-links .btn { color: var(--iron); font-weight: 500; min-height: 44px; padding: 0 22px; }
.nav-links .btn:hover { color: var(--plaster); }
.mobile-nav summary {
  list-style: none; cursor: pointer; min-height: 44px; padding: 0 18px;
  border: 1px solid var(--iron); border-radius: var(--radius-pill);
  display: flex; align-items: center; font-weight: 500; font-size: 15px;
}
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav[open] summary { background: var(--iron); color: var(--plaster); }
.mobile-panel { position: absolute; left: 0; right: 0; top: 100%; background: var(--linen); border-bottom: 1px solid var(--hairline); padding: 8px var(--space-6) var(--space-6); }
.mobile-panel a { display: block; padding: 14px 0; font-size: 18px; color: var(--iron); text-decoration: none; border-bottom: 1px solid var(--hairline); }
.mobile-panel a[aria-current="page"] { color: var(--bronze); }
.mobile-panel .btn { display: flex; margin-top: var(--space-6); width: 100%; padding: 0 26px; font-size: 15px; border: 1px solid var(--bronze); color: #fff; }
@media (min-width: 1000px) { .nav-links { display: flex; } .mobile-nav { display: none; } }
@media (max-width: 420px) { .brand img { height: 34px; } }

/* Sections */
.section { padding: var(--space-16) 0; }
@media (min-width: 900px) { .section { padding: 96px 0; } }
.band-linen { background: var(--linen); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.band-trav { background: var(--travertine); }
.band-trav .eyebrow, .band-trav a:not(.btn) { color: var(--bronze-deep); }
.band-iron { background: var(--iron); color: var(--plaster); }
.band-iron h2, .band-iron h3 { color: var(--plaster); }
.band-iron .eyebrow { color: var(--white-oak); }
.section-head { max-width: 720px; margin-bottom: var(--space-10); }
.section-head > * + * { margin-top: var(--space-4); }

/* Hero */
.hero { padding: var(--space-10) 0 var(--space-16); }
@media (min-width: 900px) { .hero { padding: var(--space-16) 0 96px; } }
.hero-grid { display: grid; gap: var(--space-10); align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; } }
.hero-copy > * + * { margin-top: var(--space-6); }
.review-line { border-top: 1px solid var(--hairline-strong); padding-top: var(--space-4); font-size: 14px; line-height: 1.5; max-width: 520px; }
.stars { color: var(--bronze); letter-spacing: .12em; margin-right: 6px; }

/* Photo slots: travertine panels with the signet ring until a photo goes inside */
.photo { position: relative; margin: 0; background: var(--travertine); border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 4 / 5; }
.photo.wide { aspect-ratio: 16 / 10; }
.photo.square { aspect-ratio: 1 / 1; }
@media (max-width: 899px) { .hero .photo { aspect-ratio: 16 / 10; } }
.photo::before, .photo::after { content: ""; position: absolute; left: 50%; top: 50%; border: 1px solid var(--white-oak); border-radius: 50%; transform: translate(-50%, -50%); aspect-ratio: 1; }
.photo::before { width: 34%; opacity: .8; }
.photo::after { width: 54%; opacity: .45; }
.photo img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; }

/* Grids and cards */
.grid-2, .grid-3, .grid-4 { display: grid; gap: var(--space-6); }
@media (min-width: 800px) { .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-10); } .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 640px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.grid-4.places { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-6) var(--space-4); }
@media (min-width: 1000px) { .grid-4, .grid-4.places { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-6); } }
.card { background: var(--linen); border: 1px solid var(--hairline); border-radius: var(--radius-md); padding: var(--space-10) 32px; display: flex; flex-direction: column; gap: 14px; }
.card .text-link { margin-top: auto; padding-top: var(--space-2); }
.principle { border-top: 1px solid var(--hairline-strong); padding-top: var(--space-6); }
.principle > * + * { margin-top: 12px; }
.place { display: flex; flex-direction: column; gap: 14px; }
.split { display: grid; gap: var(--space-10); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; } .split.reverse > :first-child { order: 2; } }

/* Steps */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: var(--space-4); border-top: 1px solid var(--hairline-strong); padding: var(--space-6) 0; }
.steps li:last-child { border-bottom: 1px solid var(--hairline-strong); }
.steps li::before { content: counter(step, decimal-leading-zero); font-family: var(--font-display); font-size: 22px; line-height: 1.3; color: var(--bronze); }
.steps h3 { margin-bottom: 6px; }

/* FAQ */
.faq details { border-top: 1px solid var(--hairline-strong); padding: var(--space-4) 0; }
.faq details:last-child { border-bottom: 1px solid var(--hairline-strong); }
.faq summary { cursor: pointer; list-style: none; font-family: var(--font-display); font-size: 21px; line-height: 1.35; display: flex; justify-content: space-between; gap: var(--space-4); min-height: 44px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-sans); font-size: 24px; color: var(--bronze); }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { padding: var(--space-2) 0 var(--space-2); max-width: 680px; }

/* Quote */
.quote { font-family: var(--font-display); font-size: clamp(24px, 3.2vw, 34px); line-height: 1.3; margin: 0; max-width: 860px; }
.quote-by { margin-top: var(--space-6); font-size: 14px; }

/* Forms */
.form-wrap { display: grid; gap: var(--space-10); align-items: start; }
@media (min-width: 960px) { .form-wrap { grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 56px; } }
.form { display: grid; gap: 22px; background: var(--linen); border: 1px solid var(--hairline); border-radius: var(--radius-md); padding: 28px; }
@media (min-width: 700px) { .form { padding: var(--space-10); } .form .row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; } }
.form .row > * + * { margin-top: 22px; }
@media (min-width: 700px) { .form .row > * + * { margin-top: 0; } }
.field label, .field legend { display: block; font-weight: 500; font-size: 14px; line-height: 20px; margin-bottom: 8px; padding: 0; }
.field .req { color: var(--bronze-deep); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  border: 1px solid var(--field-border); border-radius: var(--radius-sm);
  background: #fff; color: var(--iron); font: 400 16px/1.4 var(--font-sans);
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--bronze); outline-offset: 1px; border-color: var(--bronze); }
fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.checks { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.checks label { display: flex; align-items: center; gap: 10px; font-weight: 400; font-size: 15px; margin: 0; min-height: 32px; }
.checks input { width: 18px; height: 18px; min-height: 0; accent-color: var(--bronze); }
.hp { position: absolute; left: -9999px; }
.form-note { font-size: 13px; line-height: 20px; color: var(--iron-muted); }
.aside { background: var(--travertine); border-radius: var(--radius-md); padding: 32px; }
.aside > * + * { margin-top: var(--space-4); }
.aside .eyebrow { color: var(--bronze-deep); }
.aside ul { margin: 0; padding-left: 20px; }
.aside li + li { margin-top: 8px; }

/* License box */
.license { border: 1px solid var(--hairline-strong); border-radius: var(--radius-md); padding: var(--space-6); font-size: 15px; line-height: 1.6; }

/* Footer */
.site-footer { background: var(--iron); color: var(--plaster); padding: var(--space-16) 0 var(--space-10); font-size: 15px; line-height: 1.6; }
.site-footer a { color: var(--plaster); }
.site-footer a:hover { color: var(--white-oak); }
.footer-grid { display: grid; gap: var(--space-10); }
@media (min-width: 900px) { .footer-grid { grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); } }
.footer-brand img { height: 48px; width: auto; }
.footer-brand p { margin-top: var(--space-4); color: var(--travertine); }
.footer-title { font-size: 12px; letter-spacing: .24em; text-transform: uppercase; font-weight: 500; color: var(--white-oak); margin: 0 0 12px; }
.footer-list { list-style: none; margin: 0; padding: 0; }
.footer-list li + li { margin-top: 6px; }
.footer-list a { text-decoration: none; }
.footer-list a:hover { text-decoration: underline; }
.broker-name { font-size: 16px; font-weight: 500; color: var(--plaster); }
.footer-muted { color: var(--travertine); }
.legal { border-top: 1px solid #4a433d; margin-top: 48px; padding-top: var(--space-6); display: flex; flex-wrap: wrap; gap: 12px 28px; font-size: 14px; color: var(--travertine); }
.legal a { color: var(--plaster); }

/* Photo credits */
.credit { margin-top: 10px; font-size: 13px; line-height: 1.5; color: var(--iron-muted); }
.credit a { color: var(--iron-muted); }
.credit a:hover { color: var(--bronze); }
