/* HomeTown HOA Management - public website styles */
:root {
  --cream: #f7f2e7;
  --cream-deep: #efe7d4;
  --paper: #fffdf8;
  --green: #2c4423;
  --green-dark: #23381c;
  --green-soft: #5e7146;
  --orange: #c4661c;
  --orange-dark: #a85412;
  --gold: #a89a62;
  --ink: #2a2a22;
  --muted: #5d5b4f;
  --line: #ddd3bc;
  --serif: "Gelasio", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); }
h1, h2, h3 { color: var(--green); line-height: 1.2; margin: 0 0 .5em; font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.25rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.center { text-align: center; }

/* Buttons */
.btn {
  display: inline-block;
  padding: .7em 1.4em;
  border-radius: 999px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-dark); }
.btn-ghost { border-color: var(--green); color: var(--green); }
.btn-ghost:hover { background: var(--green); color: var(--cream); }
.btn-login { background: var(--green); color: var(--cream); padding: .5em 1.15em; font-size: .95rem; white-space: nowrap; }
.btn-login:hover { background: var(--green-dark); }
.btn-light { background: var(--cream); color: var(--green); }
.btn-light:hover { background: #fff; }
.btn:focus-visible, .nav a:focus-visible, .brand:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

/* Top bar */
.topbar {
  position: sticky; top: 0; z-index: 10;
  background: rgba(247, 242, 231, .96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
}
.topbar-inner { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-size: 1.35rem; font-weight: 700; color: var(--green); }
.brand-sub { font-size: .66rem; letter-spacing: .22em; text-transform: uppercase; color: var(--orange); font-weight: 600; }
.nav { display: flex; gap: 22px; }
.nav a { text-decoration: none; color: var(--ink); }
.nav a:hover { color: var(--orange); }

/* Hero */
.hero { padding: 48px 0 64px; text-align: center; }
.lockup { max-width: 760px; margin: 0 auto; }
.lockup-landscape { width: 74%; margin: 0 0 -6% auto; }
.lockup-row { display: flex; align-items: flex-end; justify-content: center; gap: 0; }
.lockup-fruit { width: 26%; margin-right: -2%; margin-bottom: -2%; position: relative; z-index: 1; }
.lockup-name {
  font-size: clamp(3rem, 11vw, 6.6rem);
  line-height: .9;
  margin: 0;
  letter-spacing: -.01em;
  color: var(--green);
}
.lockup-sub {
  display: flex; align-items: center; gap: 18px;
  margin: 14px 0 0;
  color: var(--orange);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .24em;
  font-size: clamp(.95rem, 2.6vw, 1.55rem);
}
.lockup-sub::before, .lockup-sub::after { content: ""; flex: 1; height: 2px; background: var(--green); max-width: 120px; }
.lockup-sub { justify-content: center; }
.tagline { font-style: italic; color: var(--green-soft); font-size: clamp(1.15rem, 2.4vw, 1.45rem); margin: 34px 0 10px; }
.hero-lead { max-width: 620px; margin: 0 auto 28px; color: var(--muted); }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Sections */
.section { padding: 72px 0; }
.section-alt { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.eyebrow { text-transform: uppercase; letter-spacing: .2em; font-size: .78rem; font-weight: 600; color: var(--orange); margin-bottom: .6em; }
.intro { max-width: 720px; margin-left: auto; margin-right: auto; color: var(--muted); }

.two-col { display: grid; grid-template-columns: 1.6fr 1fr; gap: 48px; align-items: center; }
.area-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 4px solid var(--orange);
  border-radius: 12px;
  padding: 28px 30px;
}
.area-list { list-style: none; padding: 0; margin: 0 0 12px; }
.area-list li { font-size: 1.4rem; color: var(--green); font-weight: 600; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.area-list li:last-child { border-bottom: 0; }
.area-note { color: var(--muted); font-size: .92rem; margin: 0; }

/* Quote band */
.quote-band { background: var(--green); color: var(--cream); text-align: center; padding: 56px 0; }
.quote { font-size: clamp(1.6rem, 4vw, 2.5rem); font-style: italic; margin: 0 0 6px; }
.quote em { color: #f0a35c; }
.quote-sub { margin: 0; opacity: .85; }

/* Services */
.service-grid {
  list-style: none; padding: 0; margin: 36px 0 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 32px;
}
.service-grid li { display: flex; gap: 14px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid var(--line); }
.service-grid h3 { margin: 0 0 2px; font-size: 1.08rem; }
.service-grid p { margin: 0; color: var(--muted); font-size: .97rem; }
.ico {
  flex: none; width: 30px; height: 30px; border-radius: 50%;
  background: var(--orange); color: #fff; font-size: .9rem;
  display: flex; align-items: center; justify-content: center; margin-top: 2px;
}

/* Why */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 32px; }
.why { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 28px; }
.why h3 { color: var(--orange); font-size: 1.25rem; }
.why p { margin: 0; color: var(--muted); }

/* Owners */
.owners { padding: 56px 0; }
.owners .intro { margin-bottom: 0; }

/* Contact */
.contact-band { background: var(--green); color: var(--cream); padding: 72px 0; }
.contact-band h2 { color: var(--cream); }
.contact-band p { max-width: 560px; margin: 0 auto 26px; opacity: .92; }
.contact-mark { margin: 0 auto 18px; width: 90px; }
.rule { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 34px; color: var(--gold); }
.rule span { width: 90px; height: 1px; background: var(--gold); }

/* Footer */
.footer { background: var(--green-dark); color: rgba(247, 242, 231, .8); font-size: .9rem; padding: 22px 0; }
.footer a { color: var(--cream); }
.footer-inner { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.footer p { margin: 0; }

/* Articles */
.nav a.current { color: var(--orange); }
.page-hero { padding: 56px 0 8px; }
.page-hero h1 { font-size: clamp(1.9rem, 4.4vw, 2.8rem); }
.section-tight { padding-top: 32px; }
.article-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 32px; }
.article-card { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; transition: box-shadow .15s, transform .15s; }
.article-card:hover { box-shadow: 0 6px 20px rgba(44, 68, 35, .12); transform: translateY(-2px); }
.article-card-link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.article-card-link:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.article-card-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--cream-deep); }
.article-card-placeholder { display: flex; align-items: center; justify-content: center; }
.article-card-placeholder img { width: 90px; opacity: .9; }
.article-card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.article-card h3 { margin: 0 0 8px; font-size: 1.18rem; }
.article-summary { color: var(--muted); font-size: .96rem; margin: 0 0 14px; }
.read-more { margin-top: auto; color: var(--orange); font-weight: 600; font-size: .95rem; }
.article-date { color: var(--orange); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; margin: 0 0 6px; }

.draft-banner { background: #fff3cd; color: #6b4e00; text-align: center; padding: 10px 16px; border-bottom: 1px solid #e8d9a8; }
.article-page { padding: 40px 0 64px; }
.article-wrap { max-width: 740px; }
.crumbs-public { margin: 0 0 22px; font-size: .95rem; }
.crumbs-public a { color: var(--green-soft); text-decoration: none; }
.crumbs-public a:hover { color: var(--orange); }
.article-page h1 { font-size: clamp(1.9rem, 4.6vw, 2.7rem); margin-bottom: .35em; }
.article-lead { font-size: 1.2rem; font-style: italic; color: var(--green-soft); }
.article-hero-img { width: 100%; border-radius: 12px; margin: 26px 0 8px; border: 1px solid var(--line); }
.article-body { font-size: 1.12rem; line-height: 1.75; margin-top: 24px; }
.article-body h2 { font-size: 1.5rem; margin: 1.6em 0 .5em; }
.article-body ul { padding-left: 1.3em; margin: 0 0 1em; }
.article-body li { margin-bottom: .35em; }
.article-body li::marker { color: var(--orange); }
.article-body a { color: var(--orange-dark); }
.article-body .table-wrap { overflow-x: auto; margin: 0 0 1.2em; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }
.article-body table { width: 100%; border-collapse: collapse; font-size: .98rem; line-height: 1.4; }
.article-body th, .article-body td { padding: 9px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.article-body thead th { background: var(--green); color: var(--cream); font-weight: 600; }
.article-body .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.article-body th.num { white-space: normal; }
.article-body tbody tr:nth-child(even) td { background: rgba(239, 231, 212, .45); }
.article-body tbody tr:last-child td { border-bottom: 0; }
.article-cta { margin-top: 44px; padding: 26px 28px; background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--orange); border-radius: 10px; }
.article-cta p { margin: 0 0 14px; color: var(--green); font-size: 1.1rem; }
.article-cta .btn { overflow-wrap: anywhere; }

/* Phones and small tablets */
@media (max-width: 820px) {
  .two-col, .why-grid { grid-template-columns: 1fr; gap: 24px; }
  .service-grid { grid-template-columns: 1fr; }
  .article-cards { grid-template-columns: 1fr 1fr; }
  .section { padding: 52px 0; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .topbar-inner { gap: 6px 12px; min-height: 60px; flex-wrap: wrap; padding-top: 8px; }
  .nav { order: 3; width: 100%; justify-content: space-around; gap: 8px; padding: 2px 0 8px; font-size: .95rem; }
  html { scroll-padding-top: 110px; }
  .brand img { width: 36px; height: auto; }
  .brand-name { font-size: 1.15rem; }
  .brand-sub { font-size: .56rem; letter-spacing: .12em; white-space: nowrap; }
  .btn-login { font-size: .88rem; padding: .45em .95em; }
  .lockup-name { font-size: 11vw; }
  .lockup-fruit { width: 24%; }
  .hero { padding: 32px 0 48px; }
  .lockup-sub { gap: 10px; letter-spacing: .16em; }
  .lockup-sub::before, .lockup-sub::after { max-width: 40px; }
  .hero-actions .btn { width: 100%; }
  .footer-inner { flex-direction: column; }
  .article-cards { grid-template-columns: 1fr; }
  .article-page { padding-top: 28px; }
  .article-body table { font-size: .86rem; }
  .article-body thead th { font-size: .78rem; }
  .article-body th, .article-body td { padding: 8px 7px; }
  .article-body th:first-child, .article-body td:first-child { padding-left: 10px; }
  .article-body th:last-child, .article-body td:last-child { padding-right: 10px; }
}
