/* ═══════════════════════════════════════════════════════════════
   South Pointe Property Owners Association — Shared Stylesheet
   Blue & White Modern Design
   ═══════════════════════════════════════════════════════════════ */

/* ── RESET & BASE ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary:      #1a3a5c;
  --primary-mid:  #2471a3;
  --primary-lt:   #3498db;
  --primary-pale: #dceeff;
  --accent:       #2980b9;
  --white:        #ffffff;
  --bg:           #f4f8fc;
  --text:         #1e2d3d;
  --text-light:   #5a6a7a;
  --border:       #cde0f0;
  --success:      #27ae60;
  --warning:      #f39c12;
  --danger:       #e74c3c;
  --radius:       8px;
  --shadow:       0 2px 16px rgba(26,58,92,.10);
  --shadow-lg:    0 6px 32px rgba(26,58,92,.16);
  --nav-h:        70px;
  --font-sans:    "Inter", "Segoe UI", Arial, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-size: 16px;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { color: var(--primary-mid); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── TYPOGRAPHY ───────────────────────────────────────────────── */
h1, h2, h3, h4 {
  color: var(--primary);
  font-weight: 700;
  line-height: 1.25;
}
h1 { font-size: 2.4rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ── NAVIGATION ───────────────────────────────────────────────── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 900;
  background: var(--primary);
  height: var(--nav-h);
  box-shadow: 0 2px 12px rgba(0,0,0,.25);
  display: flex;
  align-items: center;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 16px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  font-weight: 700;
  font-size: 1.05rem;
  white-space: nowrap;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-brand:hover { text-decoration: none; opacity: .9; }

.nav-logo {
  width: 44px;
  height: 44px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--primary);
  flex-shrink: 0;
}

.nav-brand-text { line-height: 1.2; }
.nav-brand-text .nav-abbr { font-size: .8rem; opacity: .8; display: block; font-weight: 400; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-links a {
  color: rgba(255,255,255,.88);
  padding: 8px 14px;
  border-radius: var(--radius);
  font-size: .9rem;
  font-weight: 500;
  transition: background .15s, color .15s;
  white-space: nowrap;
  text-decoration: none;
}
.nav-links a:hover,
.nav-links a.active {
  background: rgba(255,255,255,.15);
  color: var(--white);
  text-decoration: none;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  border: none;
  background: transparent;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all .25s;
}

/* ── HERO ─────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,58,92,.78) 0%, rgba(26,58,92,.45) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 24px;
  color: var(--white);
}

.hero-content h1 { color: var(--white); font-size: 2.8rem; text-shadow: 0 2px 12px rgba(0,0,0,.3); }
.hero-content p  { font-size: 1.15rem; opacity: .92; max-width: 560px; margin-top: 12px; text-shadow: 0 1px 4px rgba(0,0,0,.2); }

.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.35);
  color: var(--white);
  padding: 5px 14px;
  border-radius: 20px;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: uppercase;
  margin-bottom: 14px;
}

/* ── PAGE HERO (internal pages) ───────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-mid) 100%);
  color: var(--white);
  padding: 48px 24px;
  text-align: center;
}
.page-hero h1 { color: var(--white); font-size: 2rem; }
.page-hero p  { color: rgba(255,255,255,.85); margin-top: 10px; font-size: 1.05rem; }

/* ── SECTION WRAPPER ──────────────────────────────────────────── */
.section {
  padding: 60px 24px;
}
.section-alt { background: var(--bg); }
.section-dark { background: var(--primary); color: var(--white); }
.section-dark h2 { color: var(--white); }
.section-dark p  { color: rgba(255,255,255,.85); }

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-heading {
  text-align: center;
  margin-bottom: 40px;
}
.section-heading h2 { margin-bottom: 10px; }
.section-heading p  { color: var(--text-light); max-width: 580px; margin: 0 auto; }

/* ── CARDS ────────────────────────────────────────────────────── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

.card-icon {
  background: var(--primary-pale);
  padding: 28px;
  text-align: center;
  font-size: 2.4rem;
}

.card-body { padding: 20px 22px; flex: 1; }
.card-body h3 { margin-bottom: 8px; }
.card-body p  { font-size: .92rem; color: var(--text-light); }

/* ── AMENITY CARDS ────────────────────────────────────────────── */
.amenity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
}

.amenity-card {
  text-align: center;
  padding: 28px 16px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-top: 4px solid var(--primary-lt);
}

.amenity-card .icon { font-size: 2.5rem; margin-bottom: 12px; }
.amenity-card h4 { color: var(--primary); }
.amenity-card p  { font-size: .85rem; color: var(--text-light); margin-top: 6px; }

/* ── PHOTO GALLERY ────────────────────────────────────────────── */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.photo-slot {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--primary-pale);
  position: relative;
}

.photo-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--primary-mid);
  gap: 8px;
}
.photo-placeholder .icon { font-size: 2rem; opacity: .4; }
.photo-placeholder span { font-size: .8rem; opacity: .5; }

/* ── QUICK-LINKS BAR ──────────────────────────────────────────── */
.quick-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.quick-link {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--primary);
  font-weight: 600;
  transition: border-color .15s, background .15s, transform .15s;
  text-decoration: none;
}
.quick-link:hover {
  border-color: var(--primary-lt);
  background: var(--primary-pale);
  transform: translateY(-2px);
  text-decoration: none;
}
.quick-link .ql-icon { font-size: 1.6rem; flex-shrink: 0; }
.quick-link .ql-text .sub { font-size: .78rem; font-weight: 400; color: var(--text-light); display: block; }

/* ── BUTTONS ──────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: var(--radius);
  font-size: .95rem;
  font-weight: 600;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all .15s;
  font-family: var(--font-sans);
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}
.btn-primary:hover { background: var(--primary-mid); border-color: var(--primary-mid); color: var(--white); text-decoration: none; }

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover { background: var(--primary); color: var(--white); text-decoration: none; }

.btn-white {
  background: var(--white);
  color: var(--primary);
  border-color: var(--white);
}
.btn-white:hover { background: var(--primary-pale); text-decoration: none; }

.btn-success { background: var(--success); color: var(--white); border-color: var(--success); }
.btn-success:hover { background: #1e8449; border-color: #1e8449; color: var(--white); text-decoration: none; }

.btn-sm { padding: 7px 14px; font-size: .82rem; }
.btn-lg { padding: 14px 32px; font-size: 1.05rem; }
.btn-block { width: 100%; justify-content: center; }

/* ── FORMS ────────────────────────────────────────────────────── */
.form-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 36px 40px;
  max-width: 760px;
  margin: 0 auto;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 24px;
}
.form-grid .full { grid-column: 1 / -1; }

.form-group { display: flex; flex-direction: column; gap: 6px; }

.form-group label {
  font-size: .82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .4px;
  color: var(--text-light);
}

.form-group input,
.form-group select,
.form-group textarea {
  border: 1.5px solid var(--border);
  border-radius: 6px;
  padding: 10px 12px;
  font-size: .95rem;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--white);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary-lt);
  box-shadow: 0 0 0 3px rgba(52,152,219,.12);
}

.form-group textarea { resize: vertical; min-height: 100px; }

.form-hint { font-size: .78rem; color: var(--text-light); margin-top: 2px; }

.form-section-title {
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: var(--primary);
  border-bottom: 2px solid var(--primary-pale);
  padding-bottom: 8px;
  margin-bottom: 4px;
  grid-column: 1 / -1;
}

/* ── CALLOUT / ALERT BOXES ────────────────────────────────────── */
.callout {
  border-left: 4px solid var(--primary-lt);
  background: var(--primary-pale);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 14px 18px;
  font-size: .92rem;
  line-height: 1.55;
}
.callout-warning { border-left-color: var(--warning); background: #fef9ee; }
.callout-success { border-left-color: var(--success); background: #edfaf3; }
.callout-danger  { border-left-color: var(--danger);  background: #feecec; }
.callout strong  { color: var(--primary); }

/* ── PROCESS STEPS ────────────────────────────────────────────── */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 24px 20px 20px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-top: 4px solid var(--primary-lt);
}
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: -18px;
  left: 20px;
  width: 36px;
  height: 36px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .95rem;
}

.step h4 { margin-top: 10px; margin-bottom: 8px; }
.step p   { font-size: .88rem; color: var(--text-light); }

/* ── STATUS BADGES ────────────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .4px;
}

.badge-open       { background: #ddeeff; color: var(--primary); }
.badge-assigned   { background: #fff3d6; color: #8a6200; }
.badge-in-progress{ background: #d5f0ff; color: #0060a0; }
.badge-complete   { background: #d6f7e5; color: #1a6e3e; }
.badge-denied     { background: #fde8e8; color: #9b1c1c; }

/* ── DOCUMENT LIBRARY ─────────────────────────────────────────── */
.doc-list { display: flex; flex-direction: column; gap: 14px; }

.doc-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: box-shadow .15s;
}
.doc-item:hover { box-shadow: var(--shadow-lg); }

.doc-icon {
  font-size: 2rem;
  flex-shrink: 0;
  color: var(--danger);
}

.doc-info { flex: 1; min-width: 0; }
.doc-info h4 { margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.doc-info p  { font-size: .82rem; color: var(--text-light); margin: 0; }

.doc-actions { display: flex; gap: 8px; flex-shrink: 0; }

/* ── PORTAL TABLE ─────────────────────────────────────────────── */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
}
.data-table th {
  background: var(--primary);
  color: var(--white);
  padding: 11px 14px;
  text-align: left;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .4px;
  font-weight: 700;
}
.data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--bg); }
.data-table tbody tr:nth-child(even) td { background: #fafcff; }
.data-table tbody tr:nth-child(even):hover td { background: var(--bg); }

/* ── FOOTER ───────────────────────────────────────────────────── */
.site-footer {
  background: var(--primary);
  color: rgba(255,255,255,.8);
  padding: 48px 24px 24px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 32px;
}

.footer-brand h3 { color: var(--white); font-size: 1.1rem; margin-bottom: 10px; }
.footer-brand p  { font-size: .88rem; line-height: 1.6; }

.footer-col h4 { color: var(--white); font-size: .9rem; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 12px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-col a  { color: rgba(255,255,255,.75); font-size: .88rem; text-decoration: none; }
.footer-col a:hover { color: var(--white); }

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.15);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .8rem;
  color: rgba(255,255,255,.55);
  flex-wrap: wrap;
  gap: 8px;
}
.footer-bottom a { color: rgba(255,255,255,.6); }
.footer-bottom a:hover { color: var(--white); }

/* ── NOTICES ──────────────────────────────────────────────────── */
.notice {
  padding: 14px 18px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  font-size: .92rem;
}
.notice-success { background: #edfaf3; border: 1px solid #a8e6c2; color: #1a6e3e; }
.notice-error   { background: #feecec; border: 1px solid #f5aeae; color: #9b1c1c; }

/* ── UTILITIES ────────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-muted  { color: var(--text-light); }
.mt-0 { margin-top: 0; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }
.gap-2 { gap: .5rem; }
.flex { display: flex; }
.items-center { align-items: center; }
.flex-wrap { flex-wrap: wrap; }
.divider { border: none; border-top: 1px solid var(--border); margin: 28px 0; }

/* ── RESPONSIVE ───────────────────────────────────────────────── */
@media (max-width: 900px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .photo-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  :root { --nav-h: 60px; }

  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.4rem; }

  .hero { min-height: 320px; }
  .hero-content h1 { font-size: 1.9rem; }
  .hero-content p  { font-size: 1rem; }

  .section { padding: 40px 16px; }
  .page-hero { padding: 36px 16px; }

  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--primary);
    flex-direction: column;
    padding: 16px;
    gap: 4px;
    box-shadow: 0 8px 24px rgba(0,0,0,.3);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 11px 16px; width: 100%; }
  .nav-toggle { display: flex; }

  .form-card { padding: 24px 18px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .full { grid-column: auto; }

  .photo-grid { grid-template-columns: 1fr; }
  .amenity-grid { grid-template-columns: 1fr 1fr; }

  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .doc-item { flex-wrap: wrap; }
  .doc-actions { width: 100%; justify-content: flex-end; }

  .card-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  .amenity-grid { grid-template-columns: 1fr; }
}
