/* ============================================================
   Appalachian Valley Company — shared styles
   Concept: mountains-meets-coast. One typographic system,
   two visual temperatures. An elevation rail ties it together.
   ============================================================ */

:root {
  /* Palette */
  --ridge:    #2B3A2E;  /* deep ridge green */
  --clay:     #A8623C;  /* warm bark / clay  */
  --seaglass: #6B9B9E;  /* coastal cool      */
  --sand:     #E8DFD0;  /* beach sand        */
  --paper:    #F7F4EE;  /* off-white paper   */
  --ink:      #1A1A17;  /* near-black text   */
  --ridge-soft: #3d5142;
  --line:     #d8cfc0;

  /* Type */
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Scale */
  --maxw: 1160px;
  --gap: clamp(1rem, 3vw, 2.5rem);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

h1, h2, h3, .display {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.01em;
}

.eyebrow {
  font-family: var(--body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--clay);
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gap); }

/* ---------- Veteran-owned badge ---------- */
.vet-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 3px;
  font-family: var(--body);
  white-space: nowrap;
}
.vet-badge img { width: 26px; height: auto; border-radius: 2px; flex: none; }
.vet-badge span {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ridge);
  line-height: 1.15;
}
.vet-badge-header { margin-left: 0.5rem; }
.vet-badge-footer {
  background: transparent;
  border-color: rgba(247,244,238,0.25);
}
.vet-badge-footer span { color: var(--sand); }
@media (max-width: 920px) {
  .vet-badge-header { display: none; } /* keep header tidy on small screens; footer badge remains */
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247,244,238,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem var(--gap);
  max-width: var(--maxw);
  margin: 0 auto;
}
.brand {
  font-family: var(--display);
  font-size: 1.18rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--ridge);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.brand .mark {
  width: 26px; height: 26px;
  flex: none;
}
.nav-links { display: flex; gap: 1.6rem; align-items: center; list-style: none; }
.nav-links a {
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--clay); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 78vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  overflow: hidden;
}
.hero-half {
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: clamp(1.5rem, 4vw, 3.5rem);
  min-height: 52vh;
  color: #fff;
}
.hero-mtn {
  background:
    linear-gradient(to top, rgba(43,58,46,0.92) 0%, rgba(43,58,46,0.25) 60%, rgba(43,58,46,0.1) 100%),
    url('../assets/mountain-hero.jpg') center/cover;
}
.hero-sea {
  background:
    linear-gradient(to top, rgba(28,58,60,0.9) 0%, rgba(107,155,158,0.25) 60%, rgba(107,155,158,0.1) 100%),
    url('../assets/beach-hero.jpg') center/cover;
}
.hero-label {
  font-family: var(--display);
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
}
.hero-label small {
  display: block;
  font-family: var(--body);
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 0.3rem;
}
.hero-center {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  pointer-events: none;
  padding: 1rem;
}
.hero-center-inner {
  background: rgba(247,244,238,0.94);
  padding: clamp(1.5rem, 4vw, 2.6rem) clamp(1.5rem, 5vw, 3.2rem);
  max-width: 640px;
  pointer-events: auto;
  border: 1px solid var(--line);
}
.hero-center-inner h1 {
  font-size: clamp(1.9rem, 5vw, 3.2rem);
  color: var(--ridge);
  margin-bottom: 0.7rem;
}
.hero-center-inner p {
  font-size: 1.02rem;
  color: var(--ink);
  margin-bottom: 1.4rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--body);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  padding: 0.8rem 1.6rem;
  border: 1.5px solid var(--ridge);
  background: var(--ridge);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.1s;
}
.btn:hover { background: transparent; color: var(--ridge); }
.btn:active { transform: translateY(1px); }
.btn-clay { background: var(--clay); border-color: var(--clay); }
.btn-clay:hover { color: var(--clay); }
.btn-ghost { background: transparent; color: var(--ridge); }
.btn-ghost:hover { background: var(--ridge); color: #fff; }
.btn-sea { background: var(--seaglass); border-color: var(--seaglass); }
.btn-sea:hover { color: var(--seaglass); }

/* ---------- Section ---------- */
.section { padding: clamp(3rem, 8vw, 6rem) 0; }
.section-head { max-width: 640px; margin-bottom: 2.6rem; }
.section-head h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); margin: 0.5rem 0 0.8rem; }
.section-head p { color: #555; font-size: 1.04rem; }

.section-sand { background: var(--sand); }
.section-ridge { background: var(--ridge); color: var(--paper); }
.section-ridge .section-head p { color: rgba(247,244,238,0.8); }
.section-ridge .eyebrow { color: var(--sand); }

/* ---------- Property grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.8rem;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(26,26,23,0.1); }
.card-img {
  aspect-ratio: 4 / 3;
  background: var(--sand);
  position: relative;
  overflow: hidden;
}
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-tag {
  position: absolute;
  top: 0.8rem; left: 0.8rem;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.3rem 0.6rem;
  color: #fff;
}
.tag-mtn { background: var(--ridge); }
.tag-sea { background: var(--seaglass); }
.card-body { padding: 1.3rem 1.3rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { font-size: 1.25rem; margin-bottom: 0.4rem; }
.card-loc {
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--clay);
  font-weight: 600;
  margin-bottom: 0.7rem;
}
.card-desc { font-size: 0.92rem; color: #555; margin-bottom: 1.1rem; flex: 1; }
.card-feat {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.2rem;
}
.card-feat li {
  font-size: 0.74rem;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 0.25rem 0.55rem;
  color: #444;
}

/* ---------- Split feature ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: stretch;
}
.split-text { padding: clamp(2rem, 5vw, 4rem); display: flex; flex-direction: column; justify-content: center; }
.split-img { min-height: 340px; background-size: cover; background-position: center; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ridge);
  color: var(--paper);
  padding: 3.5rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}
.footer-grid h4 {
  font-family: var(--body);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sand);
  margin-bottom: 1rem;
}
.footer-grid a { color: rgba(247,244,238,0.82); text-decoration: none; display: block; margin-bottom: 0.5rem; font-size: 0.92rem; }
.footer-grid a:hover { color: #fff; }
.footer-brand { font-family: var(--display); font-size: 1.4rem; margin-bottom: 0.6rem; }
.footer-brand-desc { font-size: 0.92rem; color: rgba(247,244,238,0.72); max-width: 320px; }
.footer-bottom {
  border-top: 1px solid rgba(247,244,238,0.18);
  padding-top: 1.5rem;
  font-size: 0.82rem;
  color: rgba(247,244,238,0.6);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ---------- Page hero (interior) ---------- */
.page-hero {
  padding: clamp(3rem, 7vw, 5.5rem) 0;
  text-align: center;
}
.page-hero.mtn { background: var(--ridge); color: var(--paper); }
.page-hero.sea { background: var(--seaglass); color: #fff; }
.page-hero h1 { font-size: clamp(2rem, 5vw, 3.4rem); margin-bottom: 0.6rem; }
.page-hero p { max-width: 560px; margin: 0 auto; opacity: 0.9; }
.page-hero.mtn .eyebrow { color: var(--sand); }
.page-hero.sea .eyebrow { color: var(--paper); }

/* ---------- Intro / about ---------- */
.prose { max-width: 680px; }
.prose p { margin-bottom: 1.1rem; font-size: 1.04rem; color: #3a3a35; }
.prose h2 { font-size: 1.8rem; margin: 2rem 0 0.8rem; }

.stat-row { display: flex; gap: 2.5rem; flex-wrap: wrap; margin: 2rem 0; }
.stat .n { font-family: var(--display); font-size: 2.4rem; color: var(--clay); line-height: 1; }
.stat .l { font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase; color: #666; margin-top: 0.3rem; }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-half { min-height: 38vh; }
  .hero-center { position: static; padding: 0; }
  .hero-center-inner { max-width: 100%; border-left: 0; border-right: 0; }
  .split { grid-template-columns: 1fr; }
  .split-img { min-height: 260px; order: -1; }
  .footer-grid { grid-template-columns: 1fr; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--paper);
    flex-direction: column;
    padding: 1rem var(--gap);
    border-bottom: 1px solid var(--line);
    gap: 0.8rem;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; font-size: 1.5rem; color: var(--ridge); }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}

:focus-visible { outline: 3px solid var(--clay); outline-offset: 2px; }
