:root {
  --pear-green: #2cb45a;
  --pear-light: #4dd67a;
  --pear-dark: #1a7a3c;
  --pear-deeper: #0f5028;
  --gold: #c9a84c;
  --gold-light: #e8c96a;
  --cream: #f7f2e8;
  --off-white: #ede9e0;
  --charcoal: #1a2410;
  --charcoal-2: #0e1608;
  --warm-white: #fefcf7;
  --text-mid: #4a4a3a;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Jost', sans-serif;
  background: var(--charcoal);
  color: var(--warm-white);
  overflow-x: hidden;
}

/* ════════════════════════════════
   NAVBAR — Bootstrap-based
════════════════════════════════ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1030;
  background: rgba(14, 22, 8, 0.97) !important;
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.5);
  padding: 0.5rem 1.5rem;
}

.nav-logo {
  height: 42px;
  width: 42px;
}

/* Override Bootstrap link colors */
#navbar .navbar-nav .nav-link {
  color: rgba(255,255,255,0.76);
  font-family: 'Jost', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 0.4rem 0.85rem;
  transition: color 0.2s;
}
#navbar .navbar-nav .nav-link:hover { color: var(--pear-light); }

/* "Get in Touch" CTA pill */
#navbar .nav-cta-btn {
  background: var(--pear-green);
  color: #fff !important;
  padding: 0.45rem 1.1rem !important;
  transition: background 0.2s;
}
#navbar .nav-cta-btn:hover { background: var(--pear-dark) !important; }

/* Hamburger toggler — white lines */
#navbar .navbar-toggler {
  border-color: rgba(255,255,255,0.3);
  padding: 0.3rem 0.5rem;
}
#navbar .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255,255,255,0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Dropdown on mobile — dark background matching navbar */
#navbarCollapse {
  background: rgba(14, 22, 8, 0.98);
}
@media (max-width: 991px) {
  #navbarCollapse {
    padding: 0.75rem 0.5rem 1rem;
    border-top: 1px solid rgba(255,255,255,0.08);
    margin-top: 0.4rem;
  }
  #navbar .navbar-nav .nav-link {
    padding: 0.6rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  #navbar .nav-cta-btn {
    margin: 0.6rem 1rem 0;
    display: inline-block;
  }
}

/* ════════════════════════════════
   HERO
════════════════════════════════ */
#hero {
  position: relative;
  width: 100vw;
  height: 100vh;
  min-height: 640px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* ── Photo background — no gradients, no overlays except the dark veil ── */
.hero-bg {
  position: absolute;
  inset: 0;
  background: url('/assets/images/plumas-lake-ca-2.jpg') center center / cover no-repeat;
  z-index: 0;
}

/* Dark veil over photo — heavier at top and bottom where text lives */
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    /* top band — behind navbar */
    linear-gradient(180deg, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.0) 22%),
    /* bottom band — behind tagline, location, buttons */
    linear-gradient(0deg, rgba(0, 0, 0, 0.80) 0%, rgba(0, 0, 0, 0.55) 28%, rgba(0, 0, 0, 0.0) 55%),
    /* overall darkening so centre photo doesn't blow out the frosted box */
    rgba(0, 0, 0, 0.25);
  z-index: 2;
}

/* Subtle grain — keeps the photo from feeling too digital */
.grain {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  z-index: 3;
  pointer-events: none;
  opacity: 0.35;
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 1.5rem;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(26px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Logo: pill-shaped frosted backdrop makes it readable on any photo */
.hero-logo-wrap {
  display: inline-block;
  background: rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(6px) saturate(0.8);
  -webkit-backdrop-filter: blur(6px) saturate(0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  padding: 1.4rem 2.2rem 1.2rem;
  margin-bottom: 0.2rem;
  animation: fadeUp 1.1s 0.1s ease both;
}

.hero-logo {
  width: clamp(280px, 58vw, 780px);
  max-width: 90vw;
  height: auto;
  filter: drop-shadow(0 2px 12px rgba(0, 0, 0, 0.5));
  display: block;
}

.hero-tagline {
  font-family: 'Jost', sans-serif;
  font-style: normal;
  font-size: clamp(1.05rem, 2.5vw, 1.4rem);
  font-weight: 400;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.97);
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.95), 0 2px 8px rgba(0, 0, 0, 0.85);
  margin-top: 1rem;
  margin-bottom: 0.35rem;
  animation: fadeUp 1.1s 0.28s ease both;
}

.hero-location {
  font-family: 'Jost', sans-serif;
  font-size: clamp(0.65rem, 1.5vw, 0.75rem);
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-light);
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.95), 0 2px 4px rgba(0, 0, 0, 0.85);
  animation: fadeUp 1.1s 0.4s ease both;
}

/* Extra bump on small screens */
@media (max-width: 576px) {
  .hero-tagline {
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.03em;
  }
  .hero-location {
    font-size: 0.68rem;
    letter-spacing: 0.2em;
  }
}

.pear-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: center;
  margin: 1.5rem auto;
  animation: fadeUp 1.1s 0.5s ease both;
}

.pear-divider .line {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeUp 1.1s 0.6s ease both;
}

.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  opacity: 0.6;
  animation: fadeUp 1.5s 1.1s ease both;
}

.scroll-hint span {
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
}

.scroll-arrow {
  width: 16px;
  height: 16px;
  border-right: 1.5px solid rgba(255, 255, 255, 0.8);
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.8);
  transform: rotate(45deg);
  animation: bounce 1.8s infinite;
}

@keyframes bounce {

  0%,
  100% {
    transform: rotate(45deg) translateY(0);
  }

  50% {
    transform: rotate(45deg) translateY(7px);
  }
}

/* ════════════════════════════════
   SHARED SECTION STYLES
════════════════════════════════ */
.section-label {
  font-size: 0.68rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--pear-green);
  margin-bottom: 0.7rem;
  font-weight: 500;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.7rem, 3.8vw, 2.8rem);
  line-height: 1.15;
}

.section-body {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  font-weight: 300;
  line-height: 1.85;
  color: #666;
}

/* ════════════════════════════════
   ABOUT / STATS
════════════════════════════════ */
#about {
  background: var(--warm-white);
  color: var(--charcoal);
  padding: 6rem 2rem;
}

.stat-box {
  text-align: center;
  padding: 1.8rem 1rem;
  border-top: 2px solid var(--off-white);
}

.stat-box:first-child {
  border-top-color: var(--pear-green);
}

.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  font-weight: 700;
  color: var(--pear-green);
  line-height: 1;
}

.stat-label {
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #999;
  margin-top: 0.4rem;
}

.agent-card {
  background: var(--off-white);
  padding: 2.5rem 2rem;
  text-align: center;
  transition: transform 0.25s, box-shadow 0.25s;
}

.agent-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.1);
}

.agent-avatar {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pear-green), var(--pear-deeper));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.2rem;
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: rgba(255, 255, 255, 0.85);
  border: 3px solid var(--pear-light);
}

.agent-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  color: var(--charcoal);
  margin-bottom: 0.3rem;
}

.agent-title {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--pear-green);
  margin-bottom: 0.8rem;
}

.agent-bio {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.75;
  color: #666;
}

.agent-contact-links {
  display: flex;
  gap: 0.6rem;
  justify-content: center;
  margin-top: 1.2rem;
  flex-wrap: wrap;
}

.agent-contact-links a {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--pear-dark);
  text-decoration: none;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--pear-green);
  transition: all 0.2s;
}

.agent-contact-links a:hover {
  background: var(--pear-green);
  color: #fff;
}

/* ════════════════════════════════
   COMMUNITY
════════════════════════════════ */
#community {
  background: var(--charcoal);
  padding: 6rem 2rem;
  position: relative;
  overflow: hidden;
}

#community::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(44, 180, 90, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.community-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.community-card {
  border: 1px solid rgba(44, 180, 90, 0.2);
  padding: 1.8rem;
  transition: border-color 0.25s, background 0.25s;
}

.community-card:hover {
  border-color: var(--pear-green);
  background: rgba(44, 180, 90, 0.05);
}

.community-icon {
  font-size: 1.8rem;
  margin-bottom: 0.8rem;
  line-height: 1;
}

.community-card h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  color: var(--warm-white);
  margin-bottom: 0.5rem;
}

.community-card p {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.7;
}

.community-note {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  font-family: 'Jost', sans-serif;
}

/* ════════════════════════════════
   CONTACT
════════════════════════════════ */
#contact {
  background: var(--off-white);
  padding: 6rem 2rem;
  color: var(--charcoal);
}

.contact-wrapper {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

@media (max-width: 768px) {
  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

.contact-info .section-title {
  color: var(--charcoal);
  margin-bottom: 1rem;
}

.contact-info .section-body {
  margin-bottom: 2rem;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.contact-detail-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  background: var(--pear-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.contact-detail-text {
  font-family: 'Jost', sans-serif;
  font-size: 0.85rem;
}

.contact-detail-text strong {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #999;
  margin-bottom: 0.2rem;
}

.contact-detail-text a {
  color: var(--charcoal);
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.2s;
}

.contact-detail-text a:hover {
  color: var(--pear-dark);
}

.contact-social {
  display: flex;
  gap: 0.6rem;
  margin-top: 1.5rem;
}

.social-btn {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--charcoal);
  text-decoration: none;
  transition: all 0.2s;
}

.social-btn:hover {
  background: var(--pear-green);
  border-color: var(--pear-green);
  color: #fff;
}

.contact-form-wrap {
  background: #fff;
  padding: 2.5rem;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.07);
}

.contact-form-wrap h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  color: var(--charcoal);
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.2rem;
}

.form-group label {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #ddd;
  border-radius: 0;
  font-family: 'Jost', sans-serif;
  font-size: 0.9rem;
  color: var(--charcoal);
  background: var(--warm-white);
  outline: none;
  transition: border-color 0.2s;
  -webkit-appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--pear-green);
  background: #fff;
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 480px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.btn-submit {
  width: 100%;
  background: var(--pear-green);
  color: #fff;
  border: none;
  font-family: 'Jost', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  padding: 1rem;
  cursor: pointer;
  transition: background 0.25s, transform 0.2s;
  margin-top: 0.5rem;
}

.btn-submit:hover {
  background: var(--pear-dark);
  transform: translateY(-1px);
}

.btn-submit:active {
  transform: translateY(0);
}

.form-success {
  display: none;
  text-align: center;
  padding: 2rem;
}

.form-success .checkmark {
  width: 56px;
  height: 56px;
  background: var(--pear-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin: 0 auto 1rem;
}

.form-success h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  color: var(--charcoal);
  margin-bottom: 0.5rem;
}

.form-success p {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  color: #777;
}

/* ════════════════════════════════
   SHARED BUTTONS
════════════════════════════════ */
.btn-pear {
  background: var(--pear-green);
  color: #fff;
  border: none;
  font-family: 'Jost', sans-serif;
  font-weight: 500;
  font-size: 0.76rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  padding: 0.9rem 2.4rem;
  border-radius: 0;
  transition: background 0.25s, transform 0.2s;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
}

.btn-pear:hover {
  background: var(--pear-dark);
  color: #fff;
  transform: translateY(-2px);
}

.btn-outline-cream {
  background: rgba(0, 0, 0, 0.25);
  color: var(--warm-white);
  border: 1px solid rgba(255, 255, 255, 0.55);
  font-family: 'Jost', sans-serif;
  font-weight: 400;
  font-size: 0.76rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  padding: 0.9rem 2.4rem;
  border-radius: 0;
  transition: all 0.25s;
  text-decoration: none;
  display: inline-block;
}

.btn-outline-cream:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--gold);
  color: var(--warm-white);
  transform: translateY(-2px);
}

/* ════════════════════════════════
   FOOTER
════════════════════════════════ */
#footer {
  background: var(--charcoal-2);
  color: rgba(255, 255, 255, 0.44);
  text-align: center;
  padding: 3rem 2rem;
  font-family: 'Jost', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
}

#footer img {
  width: 180px;
  height: auto;
  margin-bottom: 1.2rem;
  opacity: 0.85;
}

#footer a {
  color: var(--pear-light);
  text-decoration: none;
}

#footer a:hover {
  color: var(--gold);
}

.footer-divider {
  width: 40px;
  height: 1px;
  background: rgba(44, 180, 90, 0.3);
  margin: 1.2rem auto;
}

/* ════════════════════════════════
   ADDED DURING THE MVC RESTRUCTURE
   (form states + standalone pages; nothing above this line changed)
════════════════════════════════ */

/* Honeypot — must be invisible to humans but not display:none,
   which some bots skip. */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-error {
  display: none;
  margin: 0 0 0.6rem;
  padding: 0.7rem 0.9rem;
  background: #fdecea;
  border-left: 3px solid #b3462f;
  color: #8c3323;
  font-family: 'Jost', sans-serif;
  font-size: 0.82rem;
  line-height: 1.5;
}

.form-error.is-visible {
  display: block;
}

.btn-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

/* Standalone pages (404, no-JS contact result) reuse the site shell. */
.simple-page {
  background: var(--warm-white);
  color: var(--charcoal);
  padding: 11rem 2rem 7rem;
  min-height: 70vh;
  display: flex;
  align-items: center;
}

.simple-page .section-title {
  color: var(--charcoal);
}

.simple-page .checkmark {
  width: 56px;
  height: 56px;
  background: var(--pear-green);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin: 0 auto 1.2rem;
}

.simple-page-mark {
  width: 44px;
  height: auto;
  opacity: 0.35;
  margin-bottom: 1.2rem;
}

/* Cloudflare Turnstile widget — sits above the submit button. */
.turnstile-wrap {
  margin: 0 0 1rem;
  min-height: 65px;
}

.turnstile-wrap .cf-turnstile {
  display: flex;
  justify-content: center;
}

/* Staff portal link — quiet on purpose. The agents know it's there; a visitor
   who clicks it only finds a sign-in wall, so it shouldn't compete with the
   contact CTA. */
.footer-portal {
  margin-top: 1.1rem;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* #footer a is an ID selector and outranks a plain class, so this has to be
   qualified or the link inherits the bright green of the contact links. */
#footer .footer-portal a {
  color: rgba(255, 255, 255, 0.26);
  text-decoration: none;
  padding: 0.35rem 0.5rem;
  transition: color 0.2s;
}

#footer .footer-portal a:hover,
#footer .footer-portal a:focus-visible {
  color: var(--pear-light);
}
