/* ============================================================
   Southern Shore Villas COA — Shared Stylesheet
   ssvoakisland.com
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600&family=Source+Sans+3:wght@300;400;500;600&display=swap');

:root {
  --navy:       #1a2d4a;
  --navy-light: #2a4a78;
  --navy-pale:  #e8edf4;
  --gold:       #c9a84c;
  --gold-light: #f0e0a8;
  --white:      #ffffff;
  --offwhite:   #f7f9fc;
  --border:     #d0d9e6;
  --text:       #1a2d4a;
  --muted:      #5a7399;
  --danger:     #c0392b;
  --success:    #1e6b45;
  --warn:       #7d5200;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Source Sans 3', sans-serif;
  color: var(--text);
  background: var(--offwhite);
  min-height: 100vh;
}

/* NAV */
nav {
  background: linear-gradient(90deg, var(--navy) 0%, var(--navy-light) 100%);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(26,45,74,0.18);
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  text-decoration: none;
}
.nav-logo {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  flex-shrink: 0;
}
.nav-name {
  font-family: 'Playfair Display', serif;
  font-size: 15px;
  font-weight: 500;
  color: var(--white);
  line-height: 1.2;
}
.nav-sub {
  font-size: 10px;
  color: rgba(255,255,255,0.5);
  letter-spacing: .05em;
  text-transform: uppercase;
}
.nav-links { display: flex; gap: 2px; flex-wrap: wrap; padding: 8px 0; }
.nav-links a {
  padding: 7px 13px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  border-radius: 6px;
  transition: all .2s;
}
.nav-links a:hover { color: var(--white); background: rgba(255,255,255,0.08); }
.nav-links a.active { color: var(--white); background: rgba(255,255,255,0.14); }

/* HERO */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  padding: 2.5rem 2rem 2rem;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  right: -40px; top: -40px;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: rgba(201,168,76,0.07);
}
.page-hero h1 {
  font-family: 'Playfair Display', serif;
  color: var(--white);
  font-size: 26px;
  font-weight: 500;
  margin-bottom: 8px;
}
.page-hero p { color: rgba(255,255,255,0.65); font-size: 14px; line-height: 1.7; max-width: 560px; }

/* NOTICE BANDS */
.notice-gold { background: var(--gold-light); border-left: 3px solid var(--gold); padding: 10px 16px; font-size: 12px; color: var(--warn); line-height: 1.6; }
.notice-blue { background: var(--navy-pale); border-left: 3px solid var(--muted); padding: 10px 16px; font-size: 12px; color: var(--muted); line-height: 1.6; }
.notice-blue a { color: var(--navy); font-weight: 500; }

/* LAYOUT */
.container { max-width: 900px; margin: 0 auto; padding: 2rem 1.5rem; }
.section { margin-bottom: 2rem; }
.section-title { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.card { background: var(--white); border: 1px solid var(--border); border-radius: 10px; padding: 1.25rem; margin-bottom: 12px; }
.card h3 { font-size: 15px; font-weight: 600; color: var(--navy); margin-bottom: 10px; font-family: 'Source Sans 3', sans-serif; display: flex; align-items: center; gap: 8px; }
.card p { font-size: 13px; color: var(--muted); line-height: 1.8; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px; }
@media(max-width:640px) {
  .grid2, .grid3, .grid4 { grid-template-columns: 1fr; }
  nav { padding: 0 1rem; }
  .container { padding: 1.5rem 1rem; }
  .nav-links a { padding: 6px 10px; font-size: 12px; }
}

/* FORM */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; font-weight: 500; color: var(--text); margin-bottom: 5px; }
.field .opt { font-size: 11px; color: var(--muted); margin-left: 4px; font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 14px;
  color: var(--text);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 9px 13px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--navy-light); box-shadow: 0 0 0 3px rgba(30,58,95,0.08); }
.field textarea { min-height: 90px; resize: vertical; }
.field .hint { font-size: 11px; color: var(--muted); margin-top: 4px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media(max-width:500px) { .row2 { grid-template-columns: 1fr; } }

/* PRIORITY */
.priority-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.priority-opt { border: 1px solid var(--border); border-radius: 8px; padding: 10px 14px; cursor: pointer; transition: all .2s; background: var(--white); user-select: none; }
.priority-opt:hover { border-color: #b0bfd4; }
.priority-opt.sel-normal { border-color: var(--navy-light); background: var(--navy-pale); }
.priority-opt.sel-urgent { border-color: var(--danger); background: #fdf0ef; }
.p-label { font-size: 13px; font-weight: 500; }
.p-desc { font-size: 11px; color: var(--muted); margin-top: 2px; }

/* BUTTONS */
.btn { padding: 10px 24px; border-radius: 8px; font-family: 'Source Sans 3', sans-serif; font-size: 14px; font-weight: 600; cursor: pointer; transition: all .2s; border: none; display: inline-block; text-decoration: none; text-align: center; }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-light); }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: #d4a84c; }
.btn-outline { background: transparent; color: var(--navy); border: 1.5px solid var(--border); }
.btn-outline:hover { background: var(--navy-pale); border-color: var(--navy-light); }
.btn-ghost { background: transparent; color: var(--muted); border: 1px solid var(--border); }
.btn-ghost:hover { background: var(--offwhite); }
.btn-sm { padding: 7px 16px; font-size: 13px; }
.btn-danger { background: var(--danger); color: var(--white); border: none; }

/* BADGES */
.badge { font-size: 11px; padding: 3px 9px; border-radius: 20px; font-weight: 600; white-space: nowrap; display: inline-block; }
.badge-new      { background: #dbeeff; color: #0a4d82; }
.badge-assigned { background: #fff3cd; color: #6b4400; }
.badge-done     { background: #d4edda; color: #145a32; }
.badge-urgent   { background: #fde8e8; color: #7b1818; }
.badge-overdue  { background: #fde8e8; color: #7b1818; }
.badge-normal   { background: var(--navy-pale); color: #3a5070; }
.badge-archived { background: #e8edf4; color: #3a5070; }
.badge-planning { background: #e8f4fd; color: #0a4d82; }
.badge-inprog   { background: #fff3cd; color: #6b4400; }
.badge-complete { background: #d4edda; color: #145a32; }
.badge-tbd      { background: #f1efe8; color: #5a5a50; }

/* STAT CARDS */
.stat-grid { display: grid; gap: 10px; margin-bottom: 1.5rem; }
.stat-card { background: var(--white); border: 1px solid var(--border); border-radius: 10px; padding: 14px 12px; text-align: center; }
.stat-card.danger { border-color: #e74c3c; background: #fff5f5; }
.stat-num { font-size: 26px; font-weight: 600; font-family: 'Playfair Display', serif; color: var(--navy); line-height: 1; }
.stat-num.blue  { color: #1a5c8a; }
.stat-num.amber { color: var(--warn); }
.stat-num.green { color: var(--success); }
.stat-num.red   { color: #c0392b; }
.stat-label { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin-top: 4px; }
.stat-card.danger .stat-label { color: #c0392b; }

/* FILTERS */
.filters { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 1rem; }
.filter-btn { font-size: 12px; padding: 5px 14px; border-radius: 20px; border: 1px solid var(--border); background: var(--white); cursor: pointer; font-family: 'Source Sans 3', sans-serif; color: var(--muted); transition: all .2s; }
.filter-btn.active { background: var(--navy); color: var(--white); border-color: var(--navy); }
.filter-btn.red.active { background: #c0392b; border-color: #c0392b; }

/* PROGRESS */
.progress-row { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); margin-top: 6px; }
.progress-wrap { flex: 1; height: 5px; background: var(--border); border-radius: 3px; overflow: hidden; }
.progress-fill { height: 100%; border-radius: 3px; }

/* INFO BOXES */
.tip-box { background: var(--gold-light); border-left: 3px solid var(--gold); border-radius: 0 8px 8px 0; padding: 10px 14px; font-size: 12px; color: var(--warn); line-height: 1.6; margin-top: 10px; }
.info-box { background: #e8f4fd; border: 1px solid #b3d7f0; border-radius: 8px; padding: 12px 16px; font-size: 13px; color: #0a4d82; margin-bottom: 1.5rem; }
.warn-box { background: #fff3cd; border: 1px solid #f0c040; border-radius: 8px; padding: 12px 16px; font-size: 13px; color: #6b4400; }

/* SUCCESS PANEL */
.success-panel { display: none; padding: 2.5rem 2rem; text-align: center; }
.success-icon { width: 60px; height: 60px; border-radius: 50%; background: #d4edda; display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; font-size: 28px; color: var(--success); }
.success-panel h2 { font-family: 'Playfair Display', serif; font-size: 22px; color: var(--navy); margin-bottom: 8px; }
.success-panel p { font-size: 14px; color: var(--muted); line-height: 1.7; max-width: 440px; margin: 0 auto; }
.conf-box { background: var(--navy-pale); border-radius: 8px; padding: 14px 18px; margin: 1.25rem auto; max-width: 420px; text-align: left; font-size: 13px; }
.conf-row { display: flex; justify-content: space-between; padding: 5px 0; border-bottom: 1px solid var(--border); }
.conf-row:last-child { border: none; }
.conf-key { color: var(--muted); }
.conf-val { font-weight: 500; color: var(--text); }

/* REQUEST CARDS */
.req-card { background: var(--white); border: 1px solid var(--border); border-radius: 10px; padding: 1rem 1.25rem; margin-bottom: 10px; transition: box-shadow .2s; }
.req-card:hover { box-shadow: 0 2px 12px rgba(26,45,74,0.07); }
.req-card.is-urgent { border-left: 3px solid var(--danger); }
.req-card.is-overdue { background: #fff5f5; border-color: #e74c3c; border-left: 3px solid #e74c3c; }
.req-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.req-title { font-size: 14px; font-weight: 600; color: var(--navy); }
.req-meta { font-size: 12px; color: var(--muted); margin-top: 3px; }
.req-desc { font-size: 13px; color: #3a5070; margin-top: 8px; line-height: 1.5; }
.req-note { font-size: 12px; color: var(--success); font-style: italic; margin-top: 5px; }
.req-vendor { font-size: 12px; color: var(--muted); margin-top: 4px; }
.badge-row { display: flex; gap: 5px; flex-shrink: 0; flex-wrap: wrap; justify-content: flex-end; }
.overdue-banner { background: #fde8e8; border-radius: 6px; padding: 7px 12px; margin-bottom: 8px; font-size: 12px; color: #7b1818; font-weight: 500; display: flex; align-items: center; gap: 6px; }
.overdue-dot { width: 7px; height: 7px; border-radius: 50%; background: #c0392b; flex-shrink: 0; }
.action-row { display: flex; gap: 8px; margin-top: 10px; align-items: center; flex-wrap: wrap; }
.action-row select { font-family: 'Source Sans 3', sans-serif; font-size: 13px; padding: 6px 10px; border: 1px solid var(--border); border-radius: 7px; color: var(--text); background: var(--white); flex: 1; min-width: 130px; outline: none; }
.vendor-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.vendor-row input { font-family: 'Source Sans 3', sans-serif; font-size: 13px; padding: 6px 10px; border: 1px solid var(--border); border-radius: 7px; color: var(--text); background: var(--white); width: 100%; outline: none; }
.note-area { display: none; margin-top: 8px; }
.note-area textarea { width: 100%; font-family: 'Source Sans 3', sans-serif; font-size: 13px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 7px; min-height: 54px; resize: vertical; color: var(--text); outline: none; }
.email-preview { background: var(--navy-pale); border: 1px solid var(--border); border-radius: 8px; padding: 10px 14px; margin-top: 8px; font-size: 12px; display: none; }
.ep-label { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 5px; }
.email-preview pre { font-family: 'Source Sans 3', sans-serif; font-size: 12px; color: var(--text); white-space: pre-wrap; line-height: 1.6; }

/* FOOTER */
footer { background: var(--navy); color: rgba(255,255,255,0.5); text-align: center; padding: 1.5rem 2rem; font-size: 12px; margin-top: 3rem; line-height: 1.8; }
footer a { color: var(--gold); text-decoration: none; }
footer strong { color: rgba(255,255,255,0.8); }
