/* 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; }
}

/* Full-bleed hero (homepage) ------------------------------------ */

.hero-wrap {
  position: relative;
}

.site-header--over-image {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: linear-gradient(to bottom, rgba(11, 18, 32, 0.55) 0%, transparent 100%);
  border-bottom: 1px solid rgba(244, 241, 236, 0.12);
}

.site-header--over-image .nav-logo-mark {
  background: rgba(244, 241, 236, 0.95);
  color: var(--slate);
}

.site-header--over-image .nav-logo-text,
.site-header--over-image .nav-link,
.site-header--over-image .nav-menu-btn {
  color: var(--stone-light);
}

.site-header--over-image .nav-link:hover {
  color: #fff;
}

.site-header--over-image .btn-primary {
  background: var(--stone-light);
  color: var(--slate);
}

.site-header--over-image .btn-primary:hover {
  background: #fff;
  color: var(--ink);
}

.site-header--over-image #mobile-nav {
  background: rgba(31, 42, 55, 0.97);
  border-color: rgba(244, 241, 236, 0.12);
}

.site-header--over-image #mobile-nav a {
  color: var(--stone-light);
}

.hero-bleed {
  position: relative;
  min-height: 78vh;
  min-height: clamp(520px, 78vh, 880px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-bleed__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bleed__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}

.hero-bleed__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to top, rgba(11, 18, 32, 0.96) 0%, rgba(11, 18, 32, 0.82) 42%, rgba(11, 18, 32, 0.55) 70%, rgba(11, 18, 32, 0.35) 100%);
}

.hero-bleed__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 7.5rem 1.5rem 3.5rem;
  color: var(--stone-light);
}

.hero-bleed__content .eyebrow {
  color: rgba(244, 241, 236, 0.85);
}

.hero-bleed__content h1 {
  color: #fff;
  max-width: 18ch;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.hero-bleed__content .hero-dek {
  color: rgba(244, 241, 236, 0.9);
  max-width: 42rem;
}

.hero-bleed__content .btn-secondary {
  border-color: rgba(244, 241, 236, 0.65);
  color: var(--stone-light);
}

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

.hero-bleed__badge {
  display: inline-block;
  margin-top: 1.25rem;
  padding: 0.45rem 0.75rem;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: rgba(31, 42, 55, 0.55);
  border: 1px solid rgba(244, 241, 236, 0.2);
  backdrop-filter: blur(6px);
  border-radius: 2px;
}

@media (min-width: 768px) {
  .hero-bleed__content {
    padding: 9rem 1.5rem 4.5rem;
  }

  .hero-bleed__content h1 {
    max-width: 22ch;
  }
}

/* SEO landing page hero (inner pages) --------------------------- */

.page-hero {
  background: linear-gradient(180deg, var(--stone-light) 0%, var(--warm-stone) 100%);
  border-bottom: 1px solid rgba(31, 42, 55, 0.08);
}

.answer-block {
  max-width: 44rem;
}

.answer-block::first-line {
  font-weight: 500;
}
