/* =====================================================================
   Bangasser & Associates — heritage styling
   Palette, type, and components. Tweak the tokens in :root to reskin.
===================================================================== */

:root {
  /* Heritage palette — warm neutrals, deep green, brass/gold */
  --paper:        #f4ece0;   /* aged parchment background */
  --paper-deep:   #ece1cf;   /* slightly darker paper panels */
  --ink:          #2b2620;   /* near-black warm ink for body text */
  --ink-soft:     #5b5347;   /* muted body text */
  --green:        #2f4538;   /* deep forest green */
  --green-deep:   #233529;   /* darker green for depth */
  --navy:         #20303f;   /* alternate dark accent */
  --brass:        #a8842c;   /* muted gold / brass */
  --brass-light:  #c3a35a;
  --brass-dark:   #8a6c20;
  --line:         #d8c9ad;   /* hairline borders on paper */
  --cream:        #faf5ec;

  --serif: "Playfair Display", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans:  "Karla", "Helvetica Neue", Arial, system-ui, sans-serif;

  --maxw: 1140px;
  --shadow: 0 18px 48px -28px rgba(43, 38, 32, 0.55);
  --radius: 4px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background-color: var(--paper);
  /* subtle paper texture via layered gradients */
  background-image:
    radial-gradient(circle at 20% 18%, rgba(168,132,44,0.05), transparent 38%),
    radial-gradient(circle at 82% 72%, rgba(47,69,56,0.05), transparent 42%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0.42 0 0 0 0 0.34 0 0 0 0 0.2 0 0 0 0.035 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--green); }

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

.section { padding: 92px 0; }
.section-paper {
  background: var(--paper-deep);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* shared headings */
.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--brass-dark);
  margin: 0 0 0.6rem;
}
.eyebrow.center, .center { text-align: center; }
.section-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  line-height: 1.1;
  color: var(--green-deep);
  margin: 0 0 1.1rem;
}
.rule {
  width: 84px; height: 2px; background: var(--brass);
  position: relative; margin: 0 0 1.8rem;
}
.rule.center { margin-left: auto; margin-right: auto; }
.rule::before, .rule::after {
  content: ""; position: absolute; top: 50%; width: 6px; height: 6px;
  background: var(--brass); border-radius: 50%; transform: translateY(-50%);
}
.rule::before { left: -14px; }
.rule::after  { right: -14px; }
.section-lede {
  font-size: 1.08rem; color: var(--ink-soft); max-width: 620px;
}
.section-lede.center { margin-left: auto; margin-right: auto; }

/* ----------------------------- buttons ----------------------------- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 0.92rem;
  padding: 0.85em 1.7em;
  border-radius: var(--radius);
  text-decoration: none;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform .15s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
}
.btn-primary {
  background: var(--green); color: var(--cream);
  border-color: var(--green-deep);
  box-shadow: 0 6px 20px -10px rgba(35,53,41,0.8);
}
.btn-primary:hover { background: var(--green-deep); transform: translateY(-2px); }
.btn-ghost {
  background: transparent; color: var(--green);
  border-color: var(--brass);
}
.btn-ghost:hover { background: rgba(168,132,44,0.12); transform: translateY(-2px); }
.btn-block { width: 100%; text-align: center; }

/* ----------------------------- header ----------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244,236,224,0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 72px; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.brand-mark {
  font-family: var(--serif); font-weight: 700; font-size: 1.05rem;
  color: var(--cream); background: var(--green);
  width: 44px; height: 44px; border-radius: 3px;
  display: grid; place-items: center;
  border: 1.5px solid var(--brass); letter-spacing: -0.02em;
  flex-shrink: 0;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--serif); font-weight: 600; font-size: 1.18rem; color: var(--green-deep); }
.brand-tag { font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brass-dark); }

.primary-nav { display: flex; gap: 30px; }
.primary-nav a {
  text-decoration: none; color: var(--ink); font-weight: 600; font-size: 0.95rem;
  position: relative; padding: 4px 0;
}
.primary-nav a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px;
  background: var(--brass); transition: width .22s ease;
}
.primary-nav a:hover::after { width: 100%; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px; background: none; border: 0;
  cursor: pointer; padding: 8px;
}
.nav-toggle span { width: 26px; height: 2px; background: var(--green-deep); transition: .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ----------------------------- hero ----------------------------- */
.hero {
  position: relative;
  color: var(--cream);
  background:
    linear-gradient(180deg, rgba(35,53,41,0.78), rgba(32,48,63,0.86)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Crect width='100' height='100' fill='%232f4538'/%3E%3C/svg%3E");
  background-size: cover; background-position: center;
  overflow: hidden;
}
.hero-overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 30% 20%, rgba(195,163,90,0.18), transparent 55%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.04 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
}
.hero-inner {
  position: relative; z-index: 1;
  padding: 116px 24px 124px; text-align: center;
  max-width: 880px;
}
.hero-eyebrow {
  text-transform: uppercase; letter-spacing: 0.32em; font-size: 0.78rem;
  font-weight: 700; color: var(--brass-light); margin: 0 0 1.1rem;
}
.hero h1 {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(2.6rem, 7vw, 5rem); line-height: 1.04; margin: 0 0 1.2rem;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 24px rgba(0,0,0,0.35);
}
.hero-tagline {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(1.1rem, 2.4vw, 1.5rem); font-weight: 500;
  color: #ece2cd; max-width: 620px; margin: 0 auto 2.2rem;
}
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
/* ghost button sits on the dark hero — needs light text, not green */
.hero .btn-ghost { color: var(--cream); border-color: var(--brass-light); }
.hero .btn-ghost:hover { background: rgba(195,163,90,0.2); color: var(--cream); border-color: var(--brass-light); }
.hero-foot {
  margin-top: 2.6rem; font-size: 0.82rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: rgba(236,226,205,0.7);
}
/* thin brass frame inset on the hero */
.hero::after {
  content: ""; position: absolute; inset: 18px; pointer-events: none;
  border: 1px solid rgba(195,163,90,0.4);
}

/* ----------------------------- history ----------------------------- */
.prose p { margin: 0 0 1.25rem; color: var(--ink); }
.prose p:first-of-type { font-size: 1.12rem; }
.placeholder {
  background: rgba(168,132,44,0.14);
  border-bottom: 1px dashed var(--brass);
  color: var(--brass-dark); font-style: italic;
  padding: 0 3px; border-radius: 2px;
}
/* ----------------------------- properties ----------------------------- */
.property-grid {
  display: grid; gap: 28px; margin-top: 3rem;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.property-card {
  display: flex; flex-direction: column;
  background: var(--cream); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 10px 30px -22px rgba(43,38,32,0.6);
  transition: transform .2s ease, box-shadow .2s ease;
}
.property-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.card-figure {
  height: 168px; position: relative; overflow: hidden;
  display: grid; place-items: center;
  border-bottom: 1px solid var(--line);
}
.card-figure .figure-mark {
  font-family: var(--serif); font-size: 2.6rem; font-weight: 600;
  color: rgba(255,255,255,0.92); text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
.card-body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.status-tag {
  align-self: flex-start;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 0.32em 0.7em; border-radius: 2px; margin-bottom: 0.9rem;
}
.status-leasing { background: var(--green); color: var(--cream); }
.status-hospitality { background: var(--brass); color: #2b2620; }
.card-name {
  font-family: var(--serif); font-weight: 600; font-size: 1.45rem;
  color: var(--green-deep); margin: 0 0 0.4rem;
}
.card-addr {
  font-size: 0.85rem; color: var(--ink-soft); margin: 0 0 0.9rem;
  display: flex; gap: 6px; align-items: flex-start;
}
.card-addr svg { flex-shrink: 0; margin-top: 3px; }
.card-blurb { color: var(--ink); margin: 0 0 0.9rem; font-size: 0.98rem; }
.card-avail {
  font-size: 0.88rem; color: var(--brass-dark); font-style: italic;
  margin: 0 0 1.3rem;
}
.card-link {
  margin-top: auto;
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; text-decoration: none; color: var(--cream);
  background: var(--green); padding: 0.75em 1.2em; border-radius: var(--radius);
  border: 1.5px solid var(--green-deep); transition: background .2s ease, transform .15s ease;
  justify-content: center;
}
.card-link:hover { background: var(--green-deep); transform: translateY(-2px); }
.card-link svg { transition: transform .2s ease; }
.card-link:hover svg { transform: translateX(3px); }

/* ----------------------------- form ----------------------------- */
.form-card {
  margin: 2.6rem auto 0; max-width: 640px;
  background: var(--cream); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 36px;
  box-shadow: var(--shadow); position: relative;
}
.form-card::after {
  content: ""; position: absolute; inset: 10px; pointer-events: none;
  border: 1px solid rgba(195,163,90,0.4);
}
.field-row { display: flex; gap: 18px; }
.field-row .field { flex: 1; }
.field { margin-bottom: 18px; position: relative; z-index: 1; }
.field label {
  display: block; font-weight: 700; font-size: 0.82rem;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--green-deep);
  margin-bottom: 6px;
}
.field .opt { color: var(--ink-soft); font-weight: 500; text-transform: none; letter-spacing: 0; }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--sans); font-size: 1rem; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 0.7em 0.8em;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brass);
  box-shadow: 0 0 0 3px rgba(168,132,44,0.18);
}
.hp { position: absolute; left: -9999px; }

.form-success { text-align: center; padding: 18px 8px; position: relative; z-index: 1; }
.form-success .seal {
  width: 64px; height: 64px; margin: 0 auto 18px;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--green); color: var(--cream); font-size: 1.8rem;
  border: 2px solid var(--brass);
}
.form-success h3 {
  font-family: var(--serif); font-weight: 600; font-size: 1.5rem;
  color: var(--green-deep); margin: 0 0 0.7rem;
}
.form-success p { color: var(--ink-soft); margin: 0 0 1.6rem; }

/* ----------------------------- footer ----------------------------- */
.site-footer {
  background: var(--green-deep); color: #d9d2c2;
  padding: 64px 0 28px; border-top: 4px solid var(--brass);
}
.footer-grid {
  display: grid; gap: 36px;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
}
.site-footer .brand-mark { margin-bottom: 14px; }
.footer-name { font-family: var(--serif); font-size: 1.3rem; color: var(--cream); margin: 0 0 0.5rem; }
.footer-tag { font-size: 0.92rem; max-width: 320px; color: #b9b3a3; }
.footer-col h3 {
  font-family: var(--serif); font-weight: 600; font-size: 1.05rem; color: var(--brass-light);
  margin: 0 0 1rem; letter-spacing: 0.02em;
}
.footer-list { list-style: none; margin: 0; padding: 0; font-size: 0.92rem; }
.footer-list li { margin-bottom: 0.6rem; line-height: 1.5; }
.footer-list a { color: #d9d2c2; text-decoration: none; transition: color .2s ease; }
.footer-list a:hover { color: var(--brass-light); }
.footer-base {
  margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,0.12);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  font-size: 0.82rem; color: #9b9484;
}
.footer-note { font-style: italic; }

/* ----------------------------- responsive ----------------------------- */
@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .section { padding: 64px 0; }
  .nav-toggle { display: flex; }
  .primary-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .primary-nav.open { max-height: 360px; }
  .primary-nav a { padding: 16px 24px; border-top: 1px solid var(--line); }
  .primary-nav a::after { display: none; }
  .field-row { flex-direction: column; gap: 0; }
  .form-card { padding: 24px; }
  .footer-base { flex-direction: column; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
  .brand-tag { display: none; }
  .lbl-lg { font-size: 34px; }
  .lbl-sm { font-size: 19px; }
}

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