/* Westmark Grounds & Property Services — Custom CSS layer
   Tailwind via CDN handles the bulk. This file is for:
   - Font loading (Fraunces + Inter via Google Fonts)
   - Brand color CSS custom properties (kept in sync with brand.json)
   - Type-set conventions Tailwind utility classes don't cover cleanly
   - Print styles for the COI page so strata managers can print a one-pager
*/

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600;9..144,700&family=Inter:wght@400;500;600&display=swap');

:root {
  --slate:       #1F2A37;
  --warm-stone:  #E8E4DE;
  --moss:        #3F6B4A;
  --ink:         #0B1220;
  --stone-dark:  #9C968B;
  --stone-light: #F4F1EC;

  --font-heading: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background-color: var(--warm-stone);
  font-feature-settings: 'ss01', 'cv11';
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  letter-spacing: -0.01em;
  color: var(--slate);
}

h1 {
  font-weight: 600;
  font-variation-settings: 'opsz' 144;
}

h2, h3 {
  font-weight: 600;
  font-variation-settings: 'opsz' 72;
}

a {
  color: var(--moss);
  text-decoration: none;
  transition: color 120ms ease;
}

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

/* Reusable building blocks --------------------------------------- */

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  background: var(--slate);
  color: var(--stone-light);
  font-weight: 500;
  border-radius: 2px;
  letter-spacing: 0.01em;
  transition: background 120ms ease, transform 120ms ease;
}

.btn-primary:hover {
  background: var(--ink);
  color: #fff;
  transform: translateY(-1px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  background: transparent;
  color: var(--slate);
  font-weight: 500;
  border: 1px solid var(--slate);
  border-radius: 2px;
  transition: background 120ms ease, color 120ms ease;
}

.btn-secondary:hover {
  background: var(--slate);
  color: var(--stone-light);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.625rem;
  background: var(--stone-light);
  border: 1px solid rgba(31, 42, 55, 0.12);
  color: var(--slate);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.025em;
  text-transform: uppercase;
  border-radius: 2px;
}

.badge-pending {
  background: rgba(252, 211, 77, 0.18);
  border-color: rgba(180, 120, 0, 0.35);
  color: #7a4a00;
}

.badge-pending::before {
  content: '•';
  color: #c08400;
  margin-right: 0.125rem;
}

.section-rule {
  width: 48px;
  height: 1px;
  background: var(--moss);
  margin: 0 0 1.5rem 0;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--moss);
  margin-bottom: 0.75rem;
}

.placeholder-photo {
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    repeating-linear-gradient(
      45deg,
      rgba(31, 42, 55, 0.04),
      rgba(31, 42, 55, 0.04) 8px,
      rgba(31, 42, 55, 0.08) 8px,
      rgba(31, 42, 55, 0.08) 16px
    ),
    var(--stone-light);
  color: var(--slate);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  padding: 1.5rem;
  border: 1px dashed rgba(31, 42, 55, 0.25);
  min-height: 280px;
}

.placeholder-photo::before {
  content: '[ Replace: ';
  opacity: 0.5;
}

.placeholder-photo::after {
  content: ' ]';
  opacity: 0.5;
}

.card {
  background: #fff;
  border: 1px solid rgba(31, 42, 55, 0.08);
  border-radius: 2px;
  padding: 1.75rem;
  transition: border-color 120ms ease, transform 120ms ease;
}

.card:hover {
  border-color: rgba(63, 107, 74, 0.4);
  transform: translateY(-2px);
}

.field-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--slate);
  margin-bottom: 0.375rem;
  letter-spacing: 0.01em;
}

.field-input,
.field-select,
.field-textarea {
  width: 100%;
  padding: 0.75rem 0.875rem;
  background: #fff;
  border: 1px solid rgba(31, 42, 55, 0.18);
  border-radius: 2px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--ink);
  transition: border-color 120ms ease, box-shadow 120ms ease;
}

.field-input:focus,
.field-select:focus,
.field-textarea:focus {
  outline: none;
  border-color: var(--moss);
  box-shadow: 0 0 0 3px rgba(63, 107, 74, 0.12);
}

.field-hint {
  margin-top: 0.375rem;
  font-size: 0.75rem;
  color: var(--stone-dark);
}

/* Print: optimize the For Strata Managers page for one-page PDF export */
@media print {
  nav, footer, .no-print { display: none !important; }
  body { background: #fff; }
  .card { break-inside: avoid; border-color: #ccc; }
  h1, h2, h3 { color: #000; }
}
