/* ===================================================================
   Point Noble Homeowner Information Hub - Stylesheet
   =================================================================== */

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: "Georgia", "Times New Roman", "Palatino Linotype", serif;
  color: #3b3f45;
  background-color: #f5f3ef;
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
  width: 100%;
  max-width: 940px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 3.5rem;
}

a {
  color: #5b7e9e;
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: #3a5d7c;
  text-decoration: underline;
}

img {
  max-width: 100%;
}

ul, ol {
  padding-left: 1.5rem;
}

/* --- Header --- */
.site-header {
  background: #2c3e50;
  border-bottom: 3px solid #b8975a;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.header-inner {
  max-width: 940px;
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  font-family: "Georgia", "Times New Roman", serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #f0ebe1;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.site-logo:hover {
  text-decoration: none;
  color: #d4c5a0;
}

/* --- Navigation --- */
.site-nav {
  display: flex;
  gap: 0.15rem;
}

.site-nav a {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  font-size: 0.85rem;
  color: #c5cdd6;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

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

.site-nav a.active {
  background: rgba(184, 151, 90, 0.2);
  color: #d4c5a0;
  font-weight: 600;
}

/* --- Mobile Nav Toggle --- */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #c5cdd6;
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

.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 (Home page) --- */
.hero {
  text-align: center;
  padding: 3rem 1rem 2rem;
  margin-bottom: 0.5rem;
}

.hero h1 {
  font-size: 2rem;
  color: #2c3e50;
  margin-bottom: 0.6rem;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.subtitle {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  color: #6b7785;
  margin-bottom: 1.75rem;
  font-style: italic;
}

/* --- Page Header (inner pages) --- */
.page-header {
  padding: 1.75rem 0 1rem;
  border-bottom: 2px solid #d6cdb8;
  margin-bottom: 1.75rem;
}

.page-header h1 {
  font-size: 1.8rem;
  color: #2c3e50;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.page-header p {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #6b7785;
  font-size: 0.92rem;
  line-height: 1.6;
}

/* --- Disclaimer Box --- */
.disclaimer-box {
  background: #faf8f4;
  border: 1px solid #ddd6c6;
  border-left: 4px solid #b8975a;
  padding: 1.1rem 1.35rem;
  border-radius: 0 4px 4px 0;
  margin: 1.25rem 0;
}

.disclaimer-box p {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 0.88rem;
  color: #5a5e64;
  margin-bottom: 0.6rem;
  line-height: 1.6;
}

.disclaimer-box p:last-child {
  margin-bottom: 0;
}

/* --- Content Section --- */
.content-section {
  margin-bottom: 2.25rem;
}

.content-section h2 {
  font-size: 1.3rem;
  color: #2c3e50;
  margin-bottom: 0.85rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid #d6cdb8;
}

.content-section p {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
  line-height: 1.65;
}

.content-section ul {
  margin-bottom: 0.75rem;
}

.content-section li {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
  line-height: 1.6;
}

/* --- Purpose section (Home) --- */
.purpose {
  margin-bottom: 2.25rem;
}

.purpose h2 {
  font-size: 1.3rem;
  color: #2c3e50;
  margin-bottom: 0.85rem;
}

.purpose li {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
  line-height: 1.6;
}

/* --- Navigation Cards (Home) --- */
.nav-cards {
  margin-bottom: 2.75rem;
}

.nav-cards h2 {
  font-size: 1.3rem;
  color: #2c3e50;
  margin-bottom: 1.1rem;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.card {
  display: block;
  background: #fff;
  border: 1px solid #ddd6c6;
  border-radius: 6px;
  padding: 1.35rem 1.3rem;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
  position: relative;
  border-top: 3px solid #b8975a;
}

.card:hover {
  border-color: #b8975a;
  box-shadow: 0 4px 16px rgba(44, 62, 80, 0.08);
  text-decoration: none;
  transform: translateY(-2px);
}

.card h3 {
  font-size: 1.05rem;
  color: #2c3e50;
  margin-bottom: 0.4rem;
}

.card p {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 0.88rem;
  color: #6b7785;
  margin: 0;
  line-height: 1.55;
}

/* --- Latest Updates (Home) --- */
.latest-updates {
  margin-bottom: 2rem;
}

.latest-updates h2 {
  font-size: 1.3rem;
  color: #2c3e50;
  margin-bottom: 0.85rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid #d6cdb8;
}

.update-item {
  padding: 0.85rem 0;
  border-bottom: 1px solid #e8e3d9;
}

.update-item:last-child {
  border-bottom: none;
}

.update-date {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 0.78rem;
  color: #9a8e7d;
  font-weight: 600;
  display: block;
  margin-bottom: 0.2rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.update-text {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 0.93rem;
  color: #4a4e54;
}

/* --- Filter Bar (Documents) --- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}

.filter-btn {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  padding: 0.45rem 1.1rem;
  border: 1px solid #d6cdb8;
  border-radius: 4px;
  background: #fff;
  color: #5a5e64;
  font-size: 0.84rem;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-btn:hover {
  border-color: #b8975a;
  color: #7a6530;
  background: #faf8f4;
}

.filter-btn.active {
  background: #2c3e50;
  border-color: #2c3e50;
  color: #f0ebe1;
  font-weight: 600;
}

/* --- Document Card --- */
.doc-card {
  background: #fff;
  border: 1px solid #ddd6c6;
  border-radius: 6px;
  padding: 1.35rem;
  margin-bottom: 1rem;
  border-left: 3px solid #b8975a;
  transition: box-shadow 0.2s;
}

.doc-card:hover {
  box-shadow: 0 2px 12px rgba(44, 62, 80, 0.06);
}

.doc-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.doc-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: #2c3e50;
}

.doc-badge {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  display: inline-block;
  padding: 0.2rem 0.65rem;
  background: #f0ebe1;
  color: #7a6530;
  font-size: 0.73rem;
  font-weight: 600;
  border-radius: 3px;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.doc-meta {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 0.8rem;
  color: #9a8e7d;
  margin-bottom: 0.5rem;
}

.doc-description {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 0.9rem;
  color: #5a5e64;
  margin-bottom: 0.85rem;
  line-height: 1.55;
}

.doc-link {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  display: inline-block;
  padding: 0.45rem 1.15rem;
  background: #2c3e50;
  color: #f0ebe1;
  border-radius: 4px;
  font-size: 0.84rem;
  font-weight: 500;
  transition: background 0.2s;
  letter-spacing: 0.01em;
}

.doc-link:hover {
  background: #3d556b;
  text-decoration: none;
  color: #f0ebe1;
}

/* --- Proxy Forms List --- */
.proxy-form-item {
  background: #fff;
  border: 1px solid #ddd6c6;
  border-radius: 6px;
  padding: 1.15rem 1.35rem;
  margin-bottom: 0.85rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  border-left: 3px solid #b8975a;
}

.proxy-form-info h3 {
  font-size: 1rem;
  color: #2c3e50;
  margin-bottom: 0.25rem;
}

.proxy-form-info p {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 0.85rem;
  color: #6b7785;
  margin: 0;
}

/* --- Meeting Details --- */
.meeting-detail-card {
  background: #fff;
  border: 1px solid #ddd6c6;
  border-radius: 6px;
  padding: 1.65rem;
  margin-bottom: 1.15rem;
  border-top: 3px solid #b8975a;
}

.meeting-field {
  margin-bottom: 0.85rem;
}

.meeting-field:last-child {
  margin-bottom: 0;
}

.meeting-label {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  color: #9a8e7d;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: block;
  margin-bottom: 0.2rem;
}

.meeting-value {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  color: #2c3e50;
}

/* --- Meeting Materials --- */
.material-item {
  background: #fff;
  border: 1px solid #ddd6c6;
  border-radius: 6px;
  padding: 1.15rem 1.35rem;
  margin-bottom: 0.85rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  border-left: 3px solid #b8975a;
}

.material-info h3 {
  font-size: 1rem;
  color: #2c3e50;
  margin-bottom: 0.25rem;
}

.material-info p {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 0.85rem;
  color: #6b7785;
  margin: 0;
}

/* --- Google Form Embed --- */
.form-embed iframe {
  width: 100%;
  min-height: 800px;
  border: none;
  border-radius: 6px;
}

.form-fallback {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  margin-top: 0.85rem;
  font-size: 0.88rem;
}

/* --- Empty State --- */
.empty-state {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #9a8e7d;
  font-style: italic;
  padding: 1.75rem 0;
  font-size: 0.93rem;
}

/* --- Footer --- */
.site-footer {
  background: #2c3e50;
  border-top: 3px solid #b8975a;
  margin-top: auto;
}

.footer-inner {
  max-width: 940px;
  margin: 0 auto;
  padding: 1.75rem 1.5rem;
  text-align: center;
}

.footer-disclaimer {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 0.8rem;
  color: #8fa0b3;
  margin-bottom: 0.4rem;
  line-height: 1.55;
}

.footer-contact {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 0.8rem;
  color: #8fa0b3;
}

.footer-contact a,
.footer-contact span {
  color: #d4c5a0;
}

/* --- Responsive --- */
@media (max-width: 700px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #2c3e50;
    border-bottom: 2px solid #b8975a;
    flex-direction: column;
    padding: 0.5rem 1rem 1rem;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    padding: 0.65rem 0.75rem;
  }

  .hero h1 {
    font-size: 1.55rem;
  }

  .page-header h1 {
    font-size: 1.45rem;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .doc-card-header {
    flex-direction: column;
    gap: 0.35rem;
  }

  .proxy-form-item,
  .material-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .filter-bar {
    gap: 0.35rem;
  }

  .filter-btn {
    font-size: 0.8rem;
    padding: 0.35rem 0.75rem;
  }

  main {
    padding: 1.75rem 1.25rem 2.5rem;
  }
}
