/* =================================================================
   Griffin Ranch — shared stylesheet
   Earth-tone palette inspired by the Wood River Valley
   ================================================================= */

:root {
  --cream:        #f8f3e9;
  --cream-soft:   #fbf8f1;
  --bark:         #2a221a;
  --weathered:    #4a3a2a;
  --rust:         #a4582c;
  --rust-deep:    #7e3f1c;
  --sage:         #7a8866;
  --sage-deep:    #5e6c4f;
  --sky:          #a8bccb;
  --sand:         #d9cfbf;
  --sand-light:   #e9e1d2;
  --muted-text:   #5a4e40;
  --shadow:       0 2px 12px rgba(42, 34, 26, 0.08);
  --shadow-lg:    0 12px 40px rgba(42, 34, 26, 0.15);
  --radius:       6px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--bark);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  color: var(--weathered);
  letter-spacing: -0.01em;
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); line-height: 1.1; }
h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; }

a { color: var(--rust-deep); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--rust); text-decoration: underline; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}
.section-eyebrow {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sage-deep);
  margin-bottom: 0.8rem;
}
.section-alt {
  background: var(--cream-soft);
  border-top: 1px solid var(--sand);
  border-bottom: 1px solid var(--sand);
}

/* ============================ HEADER / NAV ============================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 243, 233, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--sand);
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  max-width: 1180px;
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--weathered);
  letter-spacing: 0.02em;
}
.brand:hover { text-decoration: none; color: var(--weathered); }
.brand svg { flex-shrink: 0; }
.brand-sub {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--sage-deep);
  text-transform: uppercase;
  display: block;
  margin-top: 2px;
}
.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--bark);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 0.3rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}
.nav-links a:hover {
  color: var(--rust-deep);
  border-bottom-color: var(--rust);
  text-decoration: none;
}
.nav-links a.active {
  color: var(--rust-deep);
  border-bottom-color: var(--rust);
}
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--weathered);
  cursor: pointer;
  padding: 0.5rem;
}

/* ============================ BUTTONS ============================ */
.btn {
  display: inline-block;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
  border: none;
  font-family: inherit;
}
.btn-primary {
  background: var(--rust-deep);
  color: var(--cream-soft);
  box-shadow: var(--shadow);
}
.btn-primary:hover {
  background: var(--rust);
  color: var(--cream-soft);
  transform: translateY(-1px);
  text-decoration: none;
  box-shadow: var(--shadow-lg);
}
.btn-secondary {
  background: rgba(255, 255, 255, 0.92);
  color: var(--weathered);
  border: 1px solid rgba(255, 255, 255, 0.95);
}
.btn-secondary:hover {
  background: var(--cream);
  color: var(--weathered);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}
.btn-outline {
  background: transparent;
  color: var(--rust-deep);
  border: 1.5px solid var(--rust-deep);
}
.btn-outline:hover {
  background: var(--rust-deep);
  color: var(--cream-soft);
  text-decoration: none;
}

/* ============================ HERO (HOME) ============================ */
.hero {
  position: relative;
  min-height: 82vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: #6e7a64;
  background-size: cover;
  background-position: center 60%;
  background-repeat: no-repeat;
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 7rem 1.5rem 8rem;
  max-width: 1180px;
  margin: 0 auto;
  width: 100%;
}
.hero-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cream);
  background: rgba(126, 63, 28, 0.85);
  padding: 0.5rem 1.1rem;
  border-radius: 2px;
  margin-bottom: 1.5rem;
}
.hero h1 {
  color: var(--cream);
  max-width: 760px;
  margin-bottom: 1.2rem;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.45);
}
.hero-tagline {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--cream-soft);
  max-width: 600px;
  line-height: 1.55;
  margin-bottom: 2rem;
  font-weight: 500;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

/* ============================ PAGE HERO (SUBPAGES) ============================ */
.page-hero {
  position: relative;
  min-height: 46vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: #6e7a64;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 30, 40, 0.20) 0%, rgba(42, 34, 26, 0.55) 100%);
  pointer-events: none;
}
.page-hero-content {
  position: relative;
  z-index: 2;
  padding: 5rem 1.5rem;
  max-width: 1180px;
  margin: 0 auto;
  width: 100%;
}
.page-hero h1 {
  color: var(--cream);
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 0.6rem;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.45);
}
.page-hero p {
  color: var(--cream-soft);
  font-size: 1.1rem;
  max-width: 620px;
  margin-bottom: 0;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}
.page-hero-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cream);
  background: rgba(126, 63, 28, 0.85);
  padding: 0.4rem 1rem;
  border-radius: 2px;
  margin-bottom: 1.2rem;
}

/* ============================ INTRO / TWO COMMUNITIES ============================ */
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.intro-text p {
  font-size: 1.08rem;
  line-height: 1.7;
}
.communities {
  display: grid;
  gap: 1.5rem;
}
.community-card {
  background: var(--cream-soft);
  border: 1px solid var(--sand);
  border-left: 4px solid var(--sage);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  display: block;
  color: var(--bark);
}
.community-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  text-decoration: none;
  color: var(--bark);
}
.community-card.rust { border-left-color: var(--rust); }
.community-card h3 { margin-bottom: 0.4rem; }
.community-card p {
  font-size: 0.95rem;
  margin-bottom: 0.8rem;
  color: var(--muted-text);
}
.community-card .card-link {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--rust-deep);
}

/* ============================ NEWS ============================ */
.news-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}
.news-header h2 { margin-bottom: 0; }
.view-all {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}
.news-card {
  background: var(--cream);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--sand);
  transition: transform 0.2s, box-shadow 0.2s;
}
.news-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.news-card-image {
  height: 200px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-bottom: 1px solid var(--sand);
}
.news-card-body { padding: 1.25rem 1.5rem 1.5rem; }
.news-date {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rust-deep);
  margin-bottom: 0.6rem;
  display: block;
}
.news-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}
.news-card p {
  font-size: 0.92rem;
  color: var(--muted-text);
  margin-bottom: 0;
}

/* ============================ DOCUMENTS TEASER ============================ */
.docs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 2.5rem;
}
.doc-cat {
  padding: 1.5rem;
  background: var(--cream-soft);
  border: 1px solid var(--sand);
  border-radius: var(--radius);
  text-align: center;
  transition: background 0.2s, transform 0.2s;
  display: block;
  color: var(--bark);
}
.doc-cat:hover {
  background: var(--sand-light);
  transform: translateY(-2px);
  text-decoration: none;
  color: var(--bark);
}
.doc-cat-icon {
  width: 36px;
  height: 36px;
  margin: 0 auto 0.75rem;
  color: var(--sage-deep);
}
.doc-cat h4 {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--weathered);
  margin: 0 0 0.25rem;
}
.doc-cat span {
  font-size: 0.8rem;
  color: var(--sage-deep);
}

/* ============================ DOCUMENTS PAGE (FULL LIBRARY) ============================ */
.doc-section { margin-bottom: 3rem; }
.doc-section h2 {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--sand);
  margin-bottom: 1.5rem;
}
.doc-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 0.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.doc-item {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  padding: 1rem 1.1rem;
  background: var(--cream-soft);
  border: 1px solid var(--sand);
  border-radius: var(--radius);
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
  color: var(--bark);
}
.doc-item:hover {
  background: var(--sand-light);
  border-color: var(--sage);
  text-decoration: none;
  color: var(--bark);
  transform: translateY(-1px);
}
.doc-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  color: var(--rust-deep);
  margin-top: 2px;
}
.doc-title {
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--weathered);
  display: block;
  margin-bottom: 0.15rem;
}
.doc-desc {
  font-size: 0.85rem;
  color: var(--muted-text);
  line-height: 1.45;
}
.doc-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
  margin-right: 0.4rem;
}
.doc-tag-pud { background: rgba(122, 136, 102, 0.18); color: var(--sage-deep); }
.doc-tag-bench { background: rgba(164, 88, 44, 0.15); color: var(--rust-deep); }
.doc-tag-joint { background: rgba(74, 58, 42, 0.12); color: var(--weathered); }

/* ============================ HOA / CONTACT ============================ */
.hoa-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}
.hoa-card {
  background: var(--cream-soft);
  border: 1px solid var(--sand);
  border-top: 4px solid var(--sage);
  border-radius: var(--radius);
  padding: 1.75rem 2rem;
  box-shadow: var(--shadow);
}
.hoa-card.rust { border-top-color: var(--rust); }
.hoa-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.3rem;
}
.hoa-card .sub {
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sage-deep);
  font-weight: 600;
  margin-bottom: 1.25rem;
}
.hoa-roles {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
}
.hoa-roles li {
  display: flex;
  justify-content: space-between;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--sand);
  font-size: 0.95rem;
}
.hoa-roles li:last-child { border-bottom: none; }
.hoa-roles .role {
  font-weight: 600;
  color: var(--weathered);
}
.hoa-roles .person { color: var(--muted-text); text-align: right; }
.hoa-address {
  background: var(--cream);
  padding: 0.9rem 1rem;
  border-radius: 4px;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--muted-text);
}

/* Contact form */
.contact-block {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.contact-form {
  background: var(--cream-soft);
  padding: 2rem 2rem 1.5rem;
  border: 1px solid var(--sand);
  border-radius: var(--radius);
}
.form-row { margin-bottom: 1.1rem; }
.form-row label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--weathered);
  margin-bottom: 0.4rem;
}
.form-row input,
.form-row textarea,
.form-row select {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--sand);
  border-radius: 4px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--bark);
  background: var(--cream);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus {
  outline: none;
  border-color: var(--sage);
  box-shadow: 0 0 0 3px rgba(122, 136, 102, 0.18);
}
.form-row textarea { resize: vertical; min-height: 130px; }
.form-note {
  font-size: 0.85rem;
  color: var(--muted-text);
  margin-top: 0.8rem;
}

/* ============================ GALLERY ============================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.gallery-grid figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--sand);
  background: var(--cream-soft);
  transition: transform 0.2s, box-shadow 0.2s;
}
.gallery-grid figure:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.gallery-grid img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
}
.gallery-grid figcaption {
  padding: 0.7rem 1rem 0.9rem;
  font-size: 0.85rem;
  color: var(--muted-text);
}

/* ============================ MAP SECTION ============================ */
.map-wrapper {
  background: var(--cream-soft);
  border: 1px solid var(--sand);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
}
.map-wrapper img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}
.map-caption {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--muted-text);
}

/* ============================ CALLOUT ============================ */
.callout {
  background: var(--cream-soft);
  border-left: 4px solid var(--sage);
  padding: 1.5rem 1.75rem;
  border-radius: 4px;
  margin: 2rem 0;
}
.callout.rust { border-left-color: var(--rust); }
.callout h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--weathered);
  letter-spacing: 0.02em;
}
.callout p:last-child { margin-bottom: 0; }

/* ============================ FOOTER ============================ */
.site-footer {
  background: var(--weathered);
  color: var(--sand-light);
  padding: 4rem 0 2rem;
}
.site-footer a { color: var(--sand-light); }
.site-footer a:hover { color: var(--cream); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-col h4 {
  color: var(--cream);
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}
.footer-col p, .footer-col li {
  font-size: 0.9rem;
  line-height: 1.7;
  color: #cdc2af;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 0.4rem; }
.footer-brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  color: var(--cream);
  margin-bottom: 0.5rem;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  font-size: 0.82rem;
  color: #a89b85;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ============================ RESPONSIVE ============================ */
@media (max-width: 900px) {
  .intro-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .news-grid { grid-template-columns: 1fr; }
  .docs-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .hoa-grid { grid-template-columns: 1fr; }
  .contact-block { grid-template-columns: 1fr; gap: 2rem; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream-soft);
    flex-direction: column;
    padding: 1rem 1.5rem;
    gap: 0;
    border-bottom: 1px solid var(--sand);
    box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-links li { border-bottom: 1px solid var(--sand); }
  .nav-links li:last-child { border-bottom: none; }
  .nav-links a { display: block; padding: 0.9rem 0; }
  .menu-toggle { display: block; }

  .section { padding: 3.5rem 0; }
  .hero-content { padding: 4rem 1.5rem 5rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .hoa-roles li { flex-direction: column; gap: 0.1rem; }
  .hoa-roles .person { text-align: left; }
}
@media (max-width: 500px) {
  .docs-grid { grid-template-columns: 1fr; }
  .brand { font-size: 1.15rem; }
  .gallery-grid { grid-template-columns: 1fr; }
}
