/* Dawson Landing HOA Campaign Site */

:root {
  --navy: #1e3a5f;
  --navy-dark: #152a45;
  --teal: #0d9488;
  --teal-dark: #0f766e;
  --bg: #f8f9fb;
  --white: #ffffff;
  --text: #1a1a2e;
  --text-muted: #5a6270;
  --border: #dde2ea;
  --accent-light: #e6f4f3;
  --quote-bg: #eef2f7;
  --max-width: 960px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

img,
video {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--teal-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--navy);
}

a:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

/* Tooltips (no JS) */

.tooltip {
  position: relative;
  display: inline-block;
  border-bottom: 1px dotted currentColor;
  cursor: help;
  color: var(--navy);
}

.tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 0;
  bottom: 130%;
  width: min(320px, calc(100vw - 2rem));
  padding: 0.6rem 0.75rem;
  background: var(--navy-dark);
  color: rgba(255, 255, 255, 0.92);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
  font-size: 0.8125rem;
  line-height: 1.35;
  z-index: 300;
  opacity: 0;
  transform: translateY(4px);
  pointer-events: none;
}

.tooltip::before {
  content: "";
  position: absolute;
  left: 1rem;
  bottom: 118%;
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 7px solid var(--navy-dark);
  opacity: 0;
  transform: translateY(4px);
  pointer-events: none;
}

.tooltip:hover::after,
.tooltip:focus-visible::after,
.tooltip:hover::before,
.tooltip:focus-visible::before {
  opacity: 1;
  transform: translateY(0);
}

.tooltip:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

/* Header & Nav */

.site-header {
  background: var(--navy);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
}

.site-title {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.site-title a {
  color: var(--white);
  text-decoration: none;
}

.site-title a:hover {
  color: #b8d4e8;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1rem;
}

.site-nav a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 0.875rem;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--white);
  border-bottom-color: var(--teal);
}

.site-nav .nav-assistant {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: auto;
  font-weight: 600;
}

.site-nav .nav-assistant img {
  width: 1rem;
  height: 1rem;
  filter: invert(1);
  opacity: 0.85;
}

.site-nav .nav-assistant:hover img {
  opacity: 1;
}

/* Site search */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-search {
  position: relative;
  margin: 0.5rem 0 0.75rem;
}

.site-search-field {
  position: relative;
}

.site-search-input {
  width: 100%;
  height: 2rem;
  padding: 0.35rem 3.25rem 0.35rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  font: inherit;
  font-size: 0.875rem;
}

.site-search-input::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

.site-search-input:focus {
  outline: 2px solid var(--teal);
  outline-offset: 1px;
  border-color: transparent;
  background: rgba(255, 255, 255, 0.14);
}

.site-search-kbd {
  position: absolute;
  top: 50%;
  right: 0.55rem;
  transform: translateY(-50%);
  font-size: 0.6875rem;
  line-height: 1;
  color: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  padding: 0.2rem 0.35rem;
  pointer-events: none;
}

.site-search-panel {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  right: 0;
  z-index: 200;
  max-height: min(70vh, 28rem);
  overflow: auto;
  background: var(--white);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}

.site-search-callout {
  border-bottom: 1px solid var(--border);
  background: var(--accent-light);
}

.site-search-callout-link {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.75rem 0.85rem;
  color: var(--navy);
  text-decoration: none;
}

.site-search-callout-link:hover {
  color: var(--teal-dark);
  background: rgba(13, 148, 136, 0.08);
}

.site-search-callout-link img {
  flex: 0 0 auto;
  margin-top: 0.15rem;
  opacity: 0.85;
}

.site-search-callout-link span {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.site-search-callout-note {
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--text-muted);
}

.site-search-status {
  margin: 0;
  padding: 0.55rem 0.85rem 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.site-search-results {
  list-style: none;
  margin: 0;
  padding: 0.35rem 0 0.5rem;
}

.site-search-result-link {
  display: block;
  padding: 0.65rem 0.85rem;
  color: inherit;
  text-decoration: none;
  border-left: 3px solid transparent;
}

.site-search-result-link:hover,
.site-search-result.is-active .site-search-result-link {
  background: var(--quote-bg);
  border-left-color: var(--teal);
}

.site-search-result-title {
  display: block;
  font-weight: 600;
  color: var(--navy);
}

.site-search-result-meta {
  display: block;
  margin-top: 0.1rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.site-search-result-snippet {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.site-search-result-snippet mark {
  background: #fff3bf;
  color: inherit;
  padding: 0 0.1em;
}

@media (min-width: 768px) {
  .site-search {
    margin-bottom: 0.5rem;
  }
}

/* Main content */

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem 3rem;
}

/* Homepage banner */

.site-banner {
  margin: 0 -1.25rem;
  background: #000;
}

.site-banner img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: center;
}

@media (min-width: 768px) {
  .site-banner img {
    height: 280px;
  }
}

/* Hero */

.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--white);
  margin: 0 -1.25rem 2.5rem;
  padding: 3rem 1.25rem;
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  line-height: 1.2;
  font-weight: 700;
}

.hero .subhead {
  margin: 0 0 1.75rem;
  font-size: 1.125rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
  max-width: 42rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.btn {
  display: inline-block;
  padding: 0.625rem 1.25rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  transition: background 0.15s, transform 0.1s;
}

.btn-primary {
  background: var(--teal);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--teal-dark);
  color: var(--white);
}

main .btn-primary {
  margin-top: 0.25rem;
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-secondary:hover {
  border-color: var(--white);
  color: var(--white);
}

.trust-line {
  margin: 0;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: 0.03em;
}

/* Page header (non-home) */

.page-header {
  padding: 2.5rem 0 1.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}

.page-header h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 4vw, 2rem);
  color: var(--navy);
}

.page-header p {
  margin: 0;
  color: var(--text-muted);
  max-width: 40rem;
}

/* Sections */

section {
  margin-bottom: 2.5rem;
}

section h2 {
  margin: 0 0 1rem;
  font-size: 1.375rem;
  color: var(--navy);
}

section h3 {
  margin: 1.5rem 0 0.75rem;
  font-size: 1.125rem;
  color: var(--navy-dark);
}

section p {
  margin: 0 0 1rem;
}

.lead {
  font-size: 1.0625rem;
  color: var(--text-muted);
}

/* Issue cards */

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem;
  transition: box-shadow 0.15s;
}

.card:hover {
  box-shadow: 0 4px 12px rgba(30, 58, 95, 0.1);
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  color: var(--navy);
}

.card p {
  margin: 0 0 0.75rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.card a {
  font-size: 0.875rem;
  font-weight: 600;
}

/* Timeline */

.timeline-strip {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

@media (min-width: 768px) {
  .timeline-strip {
    flex-direction: row;
  }

  .timeline-item {
    flex: 1;
    border-right: 1px solid var(--border);
  }

  .timeline-item:last-child {
    border-right: none;
  }
}

.timeline-item {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
}

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

.timeline-date {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--teal-dark);
  margin-bottom: 0.25rem;
}

.timeline-event {
  font-size: 0.9375rem;
  color: var(--text);
}

/* Vertical timeline (case study) */

.timeline-vertical {
  position: relative;
  padding-left: 1.5rem;
  border-left: 3px solid var(--border);
  margin: 1.5rem 0;
}

.timeline-vertical .timeline-entry {
  position: relative;
  padding-bottom: 1.5rem;
  padding-left: 0.5rem;
}

.timeline-vertical .timeline-entry::before {
  content: "";
  position: absolute;
  left: -1.625rem;
  top: 0.35rem;
  width: 10px;
  height: 10px;
  background: var(--teal);
  border-radius: 50%;
  border: 2px solid var(--white);
  box-shadow: 0 0 0 2px var(--teal);
}

.timeline-vertical .timeline-entry.highlight::before {
  background: var(--navy);
  box-shadow: 0 0 0 2px var(--navy);
}

.timeline-vertical .timeline-entry strong {
  display: block;
  color: var(--navy);
  margin-bottom: 0.25rem;
}

/* Blockquote */

blockquote {
  margin: 1.5rem 0;
  padding: 1.25rem 1.5rem;
  background: var(--quote-bg);
  border-left: 4px solid var(--navy);
  border-radius: 0 8px 8px 0;
}

blockquote p {
  margin: 0 0 0.5rem;
  font-size: 1.0625rem;
  font-style: italic;
  color: var(--navy-dark);
}

blockquote cite {
  font-size: 0.8125rem;
  font-style: normal;
  color: var(--text-muted);
}

/* Comparison table */

.table-wrap {
  overflow-x: auto;
  margin: 1.5rem 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

th,
td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

th {
  background: var(--navy);
  color: var(--white);
  font-weight: 600;
}

tr:last-child td {
  border-bottom: none;
}

tr:nth-child(even) td {
  background: var(--bg);
}

/* Lists */

.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.check-list li {
  position: relative;
  padding: 0.5rem 0 0.5rem 1.75rem;
  border-bottom: 1px solid var(--border);
}

.check-list li:last-child {
  border-bottom: none;
}

.check-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--teal);
  font-weight: 700;
}

.numbered-asks {
  counter-reset: ask;
  list-style: none;
  padding: 0;
  margin: 0;
}

.numbered-asks li {
  counter-increment: ask;
  position: relative;
  padding: 1rem 1rem 1rem 3rem;
  margin-bottom: 0.75rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.numbered-asks li::before {
  content: counter(ask);
  position: absolute;
  left: 1rem;
  top: 1rem;
  width: 1.5rem;
  height: 1.5rem;
  background: var(--teal);
  color: var(--white);
  border-radius: 50%;
  font-size: 0.8125rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Document links */

.doc-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.doc-list li {
  padding: 0.625rem 0;
  border-bottom: 1px solid var(--border);
}

.doc-list li:last-child {
  border-bottom: none;
}

.doc-list a {
  font-weight: 500;
}

.doc-list .doc-meta {
  display: block;
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 0.125rem;
}

/* Email template */

.email-template {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem;
  overflow-x: auto;
  font-family: ui-monospace, "Cascadia Code", "Source Code Pro", Menlo, monospace;
  font-size: 0.8125rem;
  line-height: 1.5;
  white-space: pre-wrap;
  word-wrap: break-word;
}

/* Contact block */

.contact-block {
  background: var(--accent-light);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}

.contact-block h3 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
}

.contact-block ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-block li {
  padding: 0.25rem 0;
}

/* Video */

.video-wrap {
  margin: 1.5rem 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem;
}

.video-wrap video {
  display: block;
  width: 100%;
  max-height: 70vh;
  border-radius: 4px;
  background: #000;
}

.video-caption {
  margin: 0.75rem 0 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* Info box */

.info-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 4px solid var(--teal);
  border-radius: 0 8px 8px 0;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}

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

.info-box ol {
  margin: 0.75rem 0 0;
  padding-left: 1.25rem;
}

.info-box ol li {
  margin-bottom: 0.35rem;
}

/* Case study subsections */

.case-section {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
}

.case-section h3 {
  margin-top: 0;
}

.case-part-title {
  margin: 2.5rem 0 1rem;
  padding-bottom: 0.5rem;
  font-size: 1.125rem;
  color: var(--teal-dark);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 2px solid var(--border);
}

.case-part-title:first-of-type {
  margin-top: 1rem;
}

.case-section ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

.case-section ul li {
  margin-bottom: 0.35rem;
}

/* Footer */

.site-footer {
  background: var(--navy-dark);
  color: rgba(255, 255, 255, 0.8);
  margin-top: 3rem;
  padding: 2rem 1.25rem;
  font-size: 0.875rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin-bottom: 1.25rem;
}

.site-footer nav a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
}

.site-footer nav a:hover {
  color: var(--white);
}

.disclaimer {
  margin: 0 0 1rem;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 6px;
  font-size: 0.8125rem;
  line-height: 1.5;
}

.footer-meta {
  margin: 0;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
}

/* Utility */

.text-muted {
  color: var(--text-muted);
}

.text-center {
  text-align: center;
}

.mt-2 {
  margin-top: 2rem;
}

.anchor-target {
  scroll-margin-top: 5rem;
}

/* Language toggle */

.language-toggle {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-top: -0.5rem;
  padding: 1rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.language-toggle-label {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 600;
}

.language-toggle-controls {
  display: inline-flex;
  gap: 0.5rem;
}

.language-toggle-button {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  background: var(--white);
  color: var(--navy);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
}

.language-toggle-button:hover,
.language-toggle-button.is-active {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--white);
}

.language-toggle-button:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

.language-panel[hidden] {
  display: none;
}

/* Floating case assistant button */

.assistant-fab {
  position: fixed;
  right: max(1.25rem, env(safe-area-inset-right, 0px));
  bottom: max(1.25rem, env(safe-area-inset-bottom, 0px));
  z-index: 200;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 999px;
  background: var(--teal);
  color: var(--white);
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.45);
  transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
}

.assistant-fab:hover {
  background: var(--teal-dark);
  box-shadow: 0 6px 18px rgba(13, 148, 136, 0.5);
}

.assistant-fab:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 3px;
}

.assistant-fab-icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

.assistant-fab-label {
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  .assistant-fab {
    transition: none;
  }

  .assistant-fab:hover {
    transform: none;
  }
}

@media (max-width: 480px) {
  .assistant-fab {
    padding: 0.875rem;
    border-radius: 50%;
  }

  .assistant-fab-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
}

/* Site disclaimer modal */

body.site-disclaimer-open {
  overflow: hidden;
}

.site-disclaimer-overlay {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(21, 42, 69, 0.72);
  backdrop-filter: blur(2px);
}

.site-disclaimer-dialog {
  width: min(100%, 32rem);
  padding: 1.75rem 1.5rem 1.5rem;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
}

.site-disclaimer-dialog h2 {
  margin: 0 0 0.75rem;
  color: var(--navy);
  font-size: 1.375rem;
  line-height: 1.3;
}

.site-disclaimer-dialog p {
  margin: 0 0 0.75rem;
  color: var(--text);
}

.site-disclaimer-note {
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.site-disclaimer-continue {
  margin-top: 0.5rem;
  width: 100%;
}
