:root {
  --navy: #12372f;
  --navy-light: #1f5a4b;
  --gold: #d8c9a0;
  --gold-light: #efe4c4;
  --bg: #f6f0e0;
  --card: #fffcf5;
  --text: #1d2a25;
  --text-muted: #56625b;
  --border: #ddd3b8;
  --radius: 10px;
  --shadow: 0 2px 10px rgba(18, 55, 47, 0.10);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
}

a { color: var(--navy-light); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; }

.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header / Nav */
header.site-header {
  background: var(--navy);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: 1100px;
  margin: 0 auto;
  flex-wrap: wrap;
  gap: 10px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--gold);
  color: var(--navy);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}

.brand-text .name { font-weight: 700; font-size: 16px; line-height: 1.2; }
.brand-text .sub { font-size: 12px; color: #e6dec3; }

nav.main-nav {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

nav.main-nav a {
  color: #e9e1c8;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
}

nav.main-nav a:hover,
nav.main-nav a.active {
  background: rgba(255,255,255,0.1);
  color: #fff;
  text-decoration: none;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: 6px;
  padding-left: 12px;
  border-left: 1px solid rgba(255,255,255,0.22);
}
.lang-switch a {
  color: #e9e1c8;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
}
.lang-switch a.active {
  background: var(--gold);
  color: var(--navy);
}
.lang-switch a:hover:not(.active) {
  background: rgba(255,255,255,0.1);
  color: #fff;
  text-decoration: none;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: #fff;
  padding: 56px 24px;
}

.hero .wrap { text-align: center; }
.hero h1 { font-size: 30px; margin: 0 0 10px; }
.hero p.lede { color: #efe6cb; font-size: 16px; max-width: 640px; margin: 0 auto; }
.hero .stats {
  display: flex;
  gap: 28px;
  justify-content: center;
  margin-top: 28px;
  flex-wrap: wrap;
}
.hero .stat { text-align: center; }
.hero .stat .num { font-size: 26px; font-weight: 800; color: var(--gold-light); }
.hero .stat .label { font-size: 12px; color: #e6dec3; text-transform: uppercase; letter-spacing: .04em; }

/* Page header for inner pages */
.page-head {
  background: var(--navy);
  color: #fff;
  padding: 34px 24px;
}
.page-head h1 { margin: 0 0 6px; font-size: 26px; }
.page-head p { margin: 0; color: #e6dec3; font-size: 14px; }

/* Sections */
section { padding: 44px 24px; }
section.alt { background: #efe7d0; }
h2.section-title {
  font-size: 22px;
  margin: 0 0 6px;
  color: var(--navy);
}
p.section-sub { color: var(--text-muted); margin: 0 0 26px; font-size: 14px; }

/* Cards */
.grid { display: grid; gap: 18px; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 800px) {
  .grid.cols-3, .grid.cols-2 { grid-template-columns: 1fr; }
  .header-inner { flex-direction: column; align-items: flex-start; }
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}

.card h3 { margin: 0 0 6px; font-size: 17px; color: var(--navy); }
.card .role { color: var(--gold); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 10px; }
.card p { margin: 0; color: var(--text-muted); font-size: 14px; }

/* Buttons */
.btn {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  padding: 11px 20px;
  border-radius: 7px;
  font-size: 14px;
  border: none;
  cursor: pointer;
}
.btn:hover { background: var(--gold-light); text-decoration: none; }
.btn.outline {
  background: transparent;
  border: 2px solid #fff;
  color: #fff;
}
.btn.outline:hover { background: rgba(255,255,255,0.12); }
.btn.navy { background: var(--navy); color: #fff; }
.btn.navy:hover { background: var(--navy-light); }

/* Folder cards (Documents page) */
.folder-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform .12s ease;
}
.folder-card:hover { transform: translateY(-2px); }
.folder-card .icon { font-size: 26px; margin-bottom: 8px; }
.folder-card h3 { margin: 0 0 4px; font-size: 15px; color: var(--navy); }
.folder-card .count { font-size: 12px; color: var(--text-muted); }

.folder-panel {
  display: none;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-top: 18px;
}
.folder-panel.open { display: block; }
.folder-panel h4 { margin-top: 0; color: var(--navy); }
.file-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.file-row:last-child { border-bottom: none; }
.file-row .fname { font-weight: 600; font-size: 14px; }
.empty-note { color: var(--text-muted); font-size: 14px; font-style: italic; }

/* Tables */
table.data {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
table.data th, table.data td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  font-size: 13.5px;
  text-align: left;
}
table.data th {
  background: var(--navy);
  color: #fff;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .03em;
}
table.data tr:nth-child(even) td { background: #fbf7ec; }

.building-block { margin-bottom: 34px; }
.building-block h3 {
  background: var(--navy-light);
  color: #fff;
  padding: 10px 14px;
  border-radius: 8px 8px 0 0;
  margin: 0;
  font-size: 15px;
}
.building-block .addr { font-weight: 400; color: #efe6cb; font-size: 12px; }

/* Notice banners */
.banner {
  border-radius: var(--radius);
  padding: 16px 20px;
  font-size: 14px;
  margin-bottom: 26px;
}
.banner.warn { background: #f1e7c8; border: 1px solid #d6c48f; color: #4a3f17; }
.banner.info { background: #e1ece4; border: 1px solid #b4cdbb; color: #1f5a4b; }
.banner.lock { background: #12372f; color: #fff; }

/* Rules page */
.rule-block { margin-bottom: 28px; }
.rule-block h3 { color: var(--navy); border-bottom: 2px solid var(--gold); display: inline-block; padding-bottom: 4px; margin-bottom: 10px; }
.rule-block ul { padding-left: 20px; margin: 0; }
.rule-block li { margin-bottom: 6px; font-size: 14.5px; }

/* Footer */
footer {
  background: var(--navy);
  color: #e6dec3;
  padding: 34px 24px 24px;
  font-size: 13.5px;
}
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 24px; }
footer h4 { color: #fff; font-size: 14px; margin: 0 0 10px; }
footer a { color: #efe6cb; }
footer .bottom { text-align: center; margin-top: 24px; border-top: 1px solid rgba(255,255,255,0.12); padding-top: 16px; font-size: 12px; }

/* Contact / Calendar */
.event-card {
  display: flex;
  gap: 16px;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
}
.event-date {
  background: var(--navy);
  color: #fff;
  border-radius: 8px;
  padding: 8px 14px;
  text-align: center;
  min-width: 68px;
}
.event-date .d { font-size: 20px; font-weight: 800; line-height: 1; }
.event-date .m { font-size: 11px; text-transform: uppercase; }
.event-info h4 { margin: 0 0 2px; color: var(--navy); }
.event-info p { margin: 0; color: var(--text-muted); font-size: 13.5px; }

.form-grid { display: grid; gap: 14px; max-width: 560px; }
.form-grid label { font-size: 13px; font-weight: 600; color: var(--navy); margin-bottom: 4px; display: block; }
.form-grid input, .form-grid textarea, .form-grid select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 7px;
  font-size: 14px;
  font-family: inherit;
  background: #fff;
}
.form-grid input[type="file"] {
  padding: 8px 10px;
}
.form-grid .hint {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: 4px;
  display: block;
}

/* ===== Lago Grande theme: cream & evergreen (2026-09-24) ===== */
header.site-header { background: #f6f0e0; color: #12372f; border-bottom: 3px solid #12372f; box-shadow: 0 2px 8px rgba(18, 55, 47, 0.15); }
.brand-mark { width: 124px; height: 52px; background: url("logo.svg") center / contain no-repeat; border-radius: 0; font-size: 0; color: transparent; overflow: hidden; }
.brand-text .name { color: #12372f; }
.brand-text .sub { color: #4e6a5f; }
nav.main-nav a { color: #12372f; }
nav.main-nav a:hover, nav.main-nav a.active { background: #12372f; color: #f6f0e0; }
.lang-switch { border-left: 1px solid rgba(18, 55, 47, 0.3); }
.lang-switch a { color: #12372f; }
.lang-switch a.active { background: #12372f; color: #f6f0e0; }
.lang-switch a:hover:not(.active) { background: rgba(18, 55, 47, 0.12); }

/* role-contrast-fix: readable accent on cream cards */
.card .role { color: #4a7a66; }
.rule-block h3 { border-bottom-color: #4a7a66; }


/* Header: centered logo, no name text (2026-09-28) */
.brand-text { display: none; }
.header-inner { justify-content: center; }
.brand { flex-basis: 100%; justify-content: center; }
.brand-mark { width: 240px; height: 100px; }
@media (max-width: 760px) {
  .header-inner { align-items: center; }
  .brand-mark { width: 190px; height: 80px; }
}


/* ===== Site-wide alert bar + Communications page (added 2026-10-04) ===== */
.site-alert { background: #8a2b1d; color: #fff; }
.site-alert a { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px 14px; max-width: 1100px; margin: 0 auto; padding: 10px 24px; color: #fff; font-size: 14.5px; line-height: 1.4; text-align: center; }
.site-alert a:hover { text-decoration: none; background: rgba(255,255,255,0.06); }
.site-alert-tag { background: var(--gold); color: #5a1a10; font-weight: 700; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.site-alert-cta { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
@media (max-width: 600px) { .site-alert a { font-size: 13.5px; padding: 10px 16px; } }

.emergency-box { background: #fbeae6; border: 1px solid #e3b3a8; border-left: 6px solid #8a2b1d; border-radius: var(--radius); padding: 18px 22px; margin-bottom: 28px; color: #4a160d; }
.emergency-box strong { display: block; font-size: 17px; margin-bottom: 4px; color: #8a2b1d; }
.emergency-box p { margin: 0; }
.comm-item { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px 28px; margin-bottom: 24px; }
.comm-meta { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; font-size: 13.5px; color: var(--text-muted); margin-bottom: 8px; }
.comm-badge { background: #8a2b1d; color: #fff; font-weight: 700; font-size: 11.5px; letter-spacing: .05em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; }
.comm-badge.new { background: var(--gold); color: var(--navy); }
.comm-item h3 { margin: 4px 0 6px; color: var(--navy); font-size: 21px; line-height: 1.3; }
.comm-from { margin: 0 0 14px; color: var(--text-muted); font-size: 14px; }
.comm-item ul { margin: 0 0 18px; padding-left: 20px; }
.comm-item li { margin-bottom: 7px; }
.comm-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.pdf-embed { width: 100%; height: 820px; border: 1px solid var(--border); border-radius: 8px; background: #fff; }
.pdf-embed-note { font-size: 13px; color: var(--text-muted); margin: 8px 0 0; }
@media (max-width: 700px) { .pdf-embed { height: 520px; } .comm-item { padding: 20px 18px; } }
.comm-actions .btn.outline { color: var(--navy); border: 2px solid var(--navy); background: transparent; }
.comm-actions .btn.outline:hover { background: var(--navy); color: #fff; }

/* ===== Payment alert + Owner update page (added 2026-10-04) ===== */
.site-alert.pay { background: #1f5a4b; border-top: 1px solid rgba(255,255,255,0.15); }
.site-alert.pay .site-alert-tag { color: #12372f; }
.comm-badge.pay { background: #1f5a4b; }
.owner-cta { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px 24px; background: var(--card); border: 1px solid var(--border); border-left: 6px solid var(--navy); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 24px; margin-bottom: 22px; }
.owner-cta strong { display: block; font-size: 19px; color: var(--navy); margin-bottom: 2px; }
.owner-cta span { color: var(--text-muted); font-size: 14.5px; }
.owner-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start; }
.owner-form-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; }
.owner-form-card .form-grid { max-width: none; }
.owner-intro { margin: 0 0 20px; }
.owner-side { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 24px; }
.owner-side h3 { margin: 0 0 10px; color: var(--gold-light); }
.owner-side ul { margin: 0 0 14px; padding-left: 18px; }
.owner-side li { margin-bottom: 6px; }
.owner-side a { color: var(--gold-light); text-decoration: underline; word-break: break-all; }
.form-grid .check-row { display: flex; align-items: flex-start; gap: 10px; font-weight: 500; font-size: 14.5px; color: var(--text); background: #fff; border: 1px solid var(--border); border-radius: 7px; padding: 12px 14px; cursor: pointer; }
.form-grid .check-row input { width: 18px; height: 18px; margin: 2px 0 0; padding: 0; flex: 0 0 auto; accent-color: var(--navy); }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; opacity: 0; }
@media (max-width: 800px) { .owner-layout { grid-template-columns: 1fr; } .owner-form-card { padding: 20px 18px; } }
.comm-item { scroll-margin-top: 250px; }

/* ===== Sub-Association Boards page (added 2026-10-05) ===== */
.sa-intro { max-width: 820px; margin: 0 0 16px; }
.sa-master { margin-bottom: 22px; }
.sa-jump { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 24px; font-size: 14px; }
.sa-jump span { font-weight: 700; color: var(--navy); margin-right: 4px; }
.sa-jump a { background: var(--card); border: 1px solid var(--border); border-radius: 999px; padding: 5px 12px; color: var(--navy); font-weight: 600; }
.sa-jump a:hover { background: var(--navy); color: #fff; text-decoration: none; }
.sa-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.sa-card { background: var(--card); border: 1px solid var(--border); border-top: 5px solid var(--navy); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 22px; scroll-margin-top: 250px; }
.sa-card h3 { margin: 0 0 12px; color: var(--navy); font-size: 19px; }
.sa-list { list-style: none; margin: 0; padding: 0; }
.sa-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--border); }
.sa-list li:first-child { border-top: none; padding-top: 0; }
.sa-person { display: flex; flex-direction: column; min-width: 0; }
.sa-name { font-weight: 700; color: var(--text); }
.sa-role { font-size: 13px; color: var(--text-muted); }
.sa-phone { white-space: nowrap; font-weight: 600; color: var(--navy-light); background: #fff; border: 1px solid var(--border); border-radius: 7px; padding: 6px 10px; font-size: 14px; }
.sa-phone:hover { background: var(--navy); color: #fff; text-decoration: none; }
.sa-note { font-size: 13px; color: var(--text-muted); max-width: 900px; margin-top: 24px; }
@media (max-width: 800px) { .sa-grid { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .sa-list li { flex-direction: column; align-items: flex-start; } }
.sa-disclaimer { background: #fbf3dc; border: 1px solid #e6d29a; border-left: 6px solid #b8892b; border-radius: var(--radius); padding: 14px 18px; margin: 0 0 22px; color: #4a3a10; font-size: 15px; }


/* ===== Approvals-paused alert + subdivision management box (added 2026-10-09) ===== */
.site-alert.approvals { background: #7a4f0e; border-top: 1px solid rgba(255,255,255,0.15); }
.site-alert.approvals .site-alert-tag { color: #4a2f05; }
.sa-mgmt { margin-top: 14px; padding: 12px 14px; background: var(--gold-light); border: 1px solid var(--border); border-left: 4px solid var(--navy-light); border-radius: 8px; font-size: 14px; line-height: 1.5; color: var(--text); }
.sa-mgmt-label { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--text-muted); }
.sa-mgmt-name { display: block; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.sa-mgmt a { display: block; color: var(--navy-light); font-weight: 600; word-break: break-word; }
.sa-mgmt-addr { display: block; color: var(--text-muted); margin-top: 2px; }
.sa-mgmt-note { display: block; margin-top: 6px; font-size: 13px; color: var(--text-muted); }
