/* ==========================================================================
   Trusted Alliance HOA Management — shared stylesheet
   ========================================================================== */

:root {
  --navy-950: #0f1a3d;
  --navy-900: #16244f;
  --navy-800: #1c2f66;
  --navy-700: #24398a;
  --gold-600: #b8901f;
  --gold-500: #c9a227;
  --gold-400: #d9b64a;
  --gold-100: #f6ecce;
  --gray-900: #232323;
  --gray-700: #4a4a4a;
  --gray-500: #6b6b6b;
  --gray-300: #cfd3dc;
  --gray-100: #f2f4f8;
  --bg-page: #f7f9fc;
  --white: #ffffff;

  --font-head: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Source Sans 3", "Segoe UI", Helvetica, Arial, sans-serif;

  --radius: 10px;
  --shadow-sm: 0 1px 3px rgba(15, 26, 61, 0.08);
  --shadow-md: 0 10px 30px rgba(15, 26, 61, 0.12);
  --container: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--gray-900);
  background: var(--bg-page);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--navy-900);
  line-height: 1.2;
  margin: 0 0 0.5em;
  font-weight: 700;
}

h1 { font-size: clamp(2.1rem, 4vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; color: var(--gray-700); }

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

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--gold-600);
  margin-bottom: 0.9em;
}

.section {
  padding: 72px 0;
}

.section--tight { padding: 48px 0; }

.section--alt {
  background: var(--white);
  border-top: 1px solid var(--gray-300);
  border-bottom: 1px solid var(--gray-300);
}

.section--navy {
  background: linear-gradient(135deg, var(--navy-950), var(--navy-800));
  color: var(--white);
}
.section--navy h2, .section--navy h3 { color: var(--white); }
.section--navy p { color: rgba(255,255,255,0.82); }

.section-head {
  max-width: 680px;
  margin: 0 0 44px;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn--gold {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  color: var(--navy-950);
  box-shadow: var(--shadow-sm);
}
.btn--gold:hover { box-shadow: 0 10px 22px rgba(201, 162, 39, 0.35); }

.btn--outline {
  background: transparent;
  border-color: rgba(255,255,255,0.55);
  color: var(--white);
}
.btn--outline:hover { background: rgba(255,255,255,0.1); }

.btn--navy-outline {
  background: transparent;
  border-color: var(--navy-900);
  color: var(--navy-900);
}
.btn--navy-outline:hover { background: var(--navy-900); color: var(--white); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--gray-300);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand img { height: 52px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text .t1 {
  font-family: var(--font-head);
  font-size: 0.95rem;
  letter-spacing: 0.16em;
  color: var(--gray-500);
  font-weight: 600;
}
.brand-text .t2 {
  font-family: var(--font-head);
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  color: var(--navy-900);
  font-weight: 700;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: nowrap;
}
.nav-links a {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--navy-900);
  padding: 8px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active {
  border-color: var(--gold-500);
}

.nav-cta { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.nav-phone {
  font-weight: 700;
  color: var(--navy-900);
  font-size: 0.88rem;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy-900);
  margin: 5px 0;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--navy-950) 0%, var(--navy-800) 55%, var(--navy-700) 100%);
  color: var(--white);
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 85% 20%, rgba(201,162,39,0.25), transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(201,162,39,0.12), transparent 40%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  padding: 96px 0 88px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero h1 { color: var(--white); }
.hero p.lead {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.85);
  max-width: 52ch;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 28px; }

.hero-badge-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius);
  padding: 28px;
  backdrop-filter: blur(4px);
}
.hero-badge-card .stat-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 8px;
}
.stat-num {
  font-family: var(--font-head);
  font-size: 2rem;
  color: var(--gold-400);
  font-weight: 700;
}
.stat-label {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.03em;
}

.page-hero {
  background: linear-gradient(135deg, var(--navy-950), var(--navy-800));
  color: var(--white);
  padding: 64px 0 56px;
}
.page-hero h1 { color: var(--white); margin-bottom: 0.3em; }
.page-hero p { color: rgba(255,255,255,0.82); max-width: 60ch; font-size: 1.05rem; }
.breadcrumb {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 16px;
}
.breadcrumb a { color: var(--gold-400); font-weight: 600; }

/* ---------- Cards / Grids ---------- */
.grid {
  display: grid;
  gap: 28px;
}
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.icon-badge {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--gold-100), var(--gold-400));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 18px;
  color: var(--navy-900);
}

.pill {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--gold-100);
  color: var(--gold-600);
}

.check-list { list-style: none; margin: 0; padding: 0; }
.check-list li {
  position: relative;
  padding: 6px 0 6px 30px;
  color: var(--gray-700);
}
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 6px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--navy-900);
  color: var(--gold-400);
  font-size: 0.72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Testimonials */
.testimonial {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid var(--gray-300);
  box-shadow: var(--shadow-sm);
}
.testimonial .stars { color: var(--gold-500); letter-spacing: 2px; margin-bottom: 10px; }
.testimonial .who { font-weight: 700; color: var(--navy-900); margin-top: 14px; }
.testimonial .where { font-size: 0.85rem; color: var(--gray-500); }

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
  color: var(--navy-950);
  border-radius: var(--radius);
  padding: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-band h3 { color: var(--navy-950); margin-bottom: 6px; }
.cta-band p { color: rgba(15,26,61,0.75); margin: 0; }

/* ---------- Forms ---------- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 4px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy-900);
}
.form-field input,
.form-field select,
.form-field textarea {
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--gray-300);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--white);
  color: var(--gray-900);
}
.form-field textarea { min-height: 130px; resize: vertical; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--gold-500);
  box-shadow: 0 0 0 3px rgba(201,162,39,0.2);
}
.form-note {
  font-size: 0.82rem;
  color: var(--gray-500);
  margin-top: 10px;
}

/* Contact info list */
.info-list { list-style: none; margin: 0; padding: 0; }
.info-list li {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--gray-300);
}
.info-list li:last-child { border-bottom: none; }
.info-list .ico {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--navy-900);
  color: var(--gold-400);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 1.05rem;
}
.info-list strong { color: var(--navy-900); display: block; font-size: 0.9rem; }
.info-list span { color: var(--gray-700); font-size: 0.92rem; }

.map-placeholder {
  height: 260px;
  border-radius: var(--radius);
  background: repeating-linear-gradient(45deg, var(--gray-100), var(--gray-100) 12px, #e7ebf3 12px, #e7ebf3 24px);
  border: 1px solid var(--gray-300);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-500);
  font-weight: 600;
  text-align: center;
  padding: 20px;
}

/* FAQ / accordion */
.faq-item {
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  background: var(--white);
  margin-bottom: 14px;
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 700;
  color: var(--navy-900);
  font-family: var(--font-head);
  font-size: 1.02rem;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.3rem;
  color: var(--gold-600);
  margin-left: 12px;
  transition: transform 0.15s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-body {
  padding: 0 22px 20px;
  color: var(--gray-700);
}

/* Document list */
.doc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.doc-row {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: 10px;
  padding: 16px 18px;
}
.doc-row .ico {
  width: 42px; height: 42px;
  border-radius: 8px;
  background: var(--gold-100);
  color: var(--gold-600);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}
.doc-row .meta { flex: 1; }
.doc-row .meta strong { display: block; color: var(--navy-900); }
.doc-row .meta span { font-size: 0.82rem; color: var(--gray-500); }
.doc-row .tag {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gray-500);
  background: var(--gray-100);
  padding: 4px 10px;
  border-radius: 999px;
}

/* Portal */
.portal-wrap {
  max-width: 420px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  padding: 40px 36px;
  box-shadow: var(--shadow-md);
}
.portal-wrap .brand { justify-content: center; margin-bottom: 18px; }
.portal-wrap .brand img { background: #fff; }
.portal-wrap h1 { text-align: center; font-size: 1.6rem; }
.portal-wrap p.center { text-align: center; }
.divider-or {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--gray-500);
  font-size: 0.8rem;
  margin: 18px 0;
}
.divider-or::before, .divider-or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--gray-300);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-950);
  color: rgba(255,255,255,0.75);
  padding: 56px 0 26px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer-brand img { height: 44px; background: #fff; border-radius: 8px; padding: 4px 8px; }
.footer-brand span {
  font-family: var(--font-head);
  color: var(--white);
  font-size: 1.15rem;
  font-weight: 700;
}
.site-footer h4 {
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: rgba(255,255,255,0.72); font-size: 0.92rem; }
.footer-links a:hover { color: var(--gold-400); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 22px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  flex-wrap: wrap;
  gap: 10px;
}
.social-row { display: flex; gap: 12px; }
.social-row a {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.25);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem;
}
.social-row a:hover { background: var(--gold-500); border-color: var(--gold-500); color: var(--navy-950); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav-links, .nav-cta .nav-phone { display: none; }
  .nav-toggle { display: block; }
  .nav.open .nav-links {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 20px 24px;
    border-bottom: 1px solid var(--gray-300);
    gap: 16px;
  }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; text-align: center; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
