/* ============================================================
   frontrange55plus.com — Main Stylesheet
   Design tokens + component styles
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  /* Palette — warm/approachable lifestyle */
  --cream: #FDFBF5;          /* Page background, light mode hero overlays */
  --cream-deeper: #F4EDDC;   /* Section variation */
  --forest: #2C4A3E;         /* Primary brand (headers, buttons) */
  --forest-deep: #1F3530;    /* Footer */
  --terracotta: #C97B4A;     /* Accent (badges, highlights) */
  --terracotta-light: #E0B589;
  --ink: #2A2724;            /* Body text on cream */
  --ink-soft: #4A4540;       /* Secondary text */
  --ink-muted: #6B6560;      /* Tertiary text */
  --border-soft: rgba(44, 74, 62, 0.10);
  --border-med: rgba(44, 74, 62, 0.18);

  /* Typography */
  --font-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Layout */
  --max-width: 1200px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Reset + base ---------- */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--forest);
  text-decoration: none;
  transition: color 0.2s var(--ease-out);
}

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

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  color: var(--forest);
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.6rem); }

p { margin: 0 0 1em; }

/* ---------- Utility ---------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--terracotta);
  margin-bottom: 14px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(253, 251, 245, 0.94);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border-soft);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 32px;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-family: var(--font-serif);
  font-size: 22px;
  letter-spacing: -0.5px;
  text-decoration: none;
}

.brand__primary { color: var(--forest); }
.brand__accent  { color: var(--terracotta); }

.nav {
  display: flex;
  gap: 28px;
  align-items: center;
}

.nav a {
  font-size: 14px;
  font-weight: 400;
  color: var(--ink-soft);
  transition: color 0.2s var(--ease-out);
}

.nav a:hover { color: var(--forest); }

.nav__phone {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--forest);
  white-space: nowrap;
}

.nav__phone svg { width: 14px; height: 14px; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
  color: var(--forest);
}
.nav-toggle svg { width: 24px; height: 24px; }

@media (max-width: 880px) {
  .nav { display: none; }
  .nav-toggle { display: block; }
  .nav.is-open {
    display: flex;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--cream);
    border-bottom: 1px solid var(--border-soft);
    padding: 16px 24px 24px;
    gap: 18px;
  }
  .nav.is-open .nav__phone { padding-top: 8px; border-top: 1px solid var(--border-soft); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--cream-deeper);
}

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

.hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(95deg, rgba(31, 53, 48, 0.78) 0%, rgba(31, 53, 48, 0.55) 38%, rgba(31, 53, 48, 0.18) 70%, rgba(31, 53, 48, 0.30) 100%);
}

.hero__content {
  position: relative;
  z-index: 2;
  padding: 96px 0 80px;
  width: 100%;
}

.hero__inner {
  max-width: 640px;
}

.hero .eyebrow {
  color: var(--cream);
  opacity: 0.85;
}

.hero h1 {
  color: var(--cream);
  margin-bottom: 18px;
  text-shadow: 0 2px 16px rgba(0,0,0,0.18);
}

.hero__lead {
  font-size: 1.15rem;
  color: var(--cream);
  opacity: 0.95;
  line-height: 1.55;
  margin-bottom: 32px;
  max-width: 520px;
  text-shadow: 0 1px 8px rgba(0,0,0,0.25);
}

.hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s var(--ease-out);
  white-space: nowrap;
}

.btn--primary {
  background: var(--forest);
  color: var(--cream);
}
.btn--primary:hover {
  background: var(--forest-deep);
  color: var(--cream);
  transform: translateY(-1px);
}

.btn--ghost {
  background: rgba(253, 251, 245, 0.95);
  color: var(--forest);
  border-color: rgba(253, 251, 245, 0.95);
}
.btn--ghost:hover {
  background: var(--cream);
  color: var(--forest);
  transform: translateY(-1px);
}

.btn--outline {
  background: transparent;
  color: var(--forest);
  border-color: var(--forest);
}
.btn--outline:hover {
  background: var(--forest);
  color: var(--cream);
}

/* Used over imagery (hero) — slightly transparent cream fill with cream text */
.btn--hero-secondary {
  background: rgba(255, 255, 255, 0.12);
  color: var(--cream);
  border-color: rgba(253, 251, 245, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.btn--hero-secondary:hover {
  background: var(--cream);
  color: var(--forest);
  border-color: var(--cream);
  transform: translateY(-1px);
}

/* ---------- Section: Intro ---------- */
.intro {
  padding: 80px 0 56px;
  background: var(--cream);
}

.intro__inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.intro p {
  font-size: 1.1rem;
  color: var(--ink-soft);
  line-height: 1.75;
}

.intro__cta {
  margin-top: 28px;
  padding: 24px 28px;
  background: var(--cream-deeper);
  border-radius: var(--radius-lg);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.intro__cta-text {
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.intro__cta-text strong {
  color: var(--forest);
  font-weight: 500;
}

/* ---------- Section: Search ---------- */
.search-section {
  padding: 56px 0;
  background: var(--cream-deeper);
}

.search-card {
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  text-align: center;
  border: 1px solid var(--border-soft);
}

.search-card h2 {
  margin-bottom: 12px;
}

.search-card p {
  color: var(--ink-soft);
  max-width: 540px;
  margin: 0 auto 28px;
}

/* ---------- Section: Communities ---------- */
.communities {
  padding: 96px 0 80px;
  background: var(--cream);
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header h2 {
  margin-bottom: 12px;
}

.section-header p {
  color: var(--ink-soft);
  font-size: 1.05rem;
  max-width: 580px;
  margin: 0 auto;
}

.community-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.community-card {
  display: flex;
  flex-direction: column;
  background: var(--cream);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-soft);
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
}

.community-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px -16px rgba(44, 74, 62, 0.22);
  border-color: var(--border-med);
  color: inherit;
}

.community-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

/* Gradient placeholder variants — used until real community photos arrive */
.cmedia--anthem    { background: linear-gradient(135deg, #D4A574 0%, #8B5E3C 100%); }
.cmedia--fairway   { background: linear-gradient(135deg, #B8C28F 0%, #5C8068 100%); }
.cmedia--eaglebend { background: linear-gradient(135deg, #8FA68E 0%, #2C4A3E 100%); }
.cmedia--toddcreek { background: linear-gradient(135deg, #B5C4B0 0%, #6B8074 100%); }
.cmedia--hillside  { background: linear-gradient(135deg, #C9A87C 0%, #7A5A3F 100%); }
.cmedia--hilltop   { background: linear-gradient(135deg, #E0B589 0%, #A67B4A 100%); }
.cmedia--regency   { background: linear-gradient(135deg, #D4B596 0%, #8E6B47 100%); }
.cmedia--reserve   { background: linear-gradient(135deg, #9DB4A8 0%, #4E6B5F 100%); }
.cmedia--skyestone { background: linear-gradient(135deg, #B0C5BC 0%, #5C8068 100%); }
.cmedia--verona    { background: linear-gradient(135deg, #CFA98C 0%, #8A6A4E 100%); }

.community-card__location {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 5px 12px;
  background: rgba(253, 251, 245, 0.92);
  color: var(--forest);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
}

.community-card__body {
  padding: 22px 22px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.community-card__name {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  color: var(--forest);
  margin: 0 0 10px;
  line-height: 1.2;
}

.community-card__desc {
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.6;
  margin: 0 0 16px;
  flex: 1;
}

.community-card__more {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--terracotta);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.25s var(--ease-out);
}

.community-card:hover .community-card__more {
  gap: 10px;
}

/* ---------- Section: Team ---------- */
.team {
  padding: 96px 0;
  background: var(--cream-deeper);
}

.team__inner {
  display: grid;
  grid-template-columns: 0.9fr 1fr;
  gap: 56px;
  align-items: center;
  max-width: 980px;
  margin: 0 auto;
}

.team__photo {
  aspect-ratio: 4 / 5;
  background: linear-gradient(135deg, var(--terracotta) 0%, var(--forest) 100%);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}

.team__photo-caption {
  position: absolute;
  bottom: 18px;
  left: 18px;
  right: 18px;
  background: rgba(253, 251, 245, 0.96);
  padding: 14px 18px;
  border-radius: var(--radius-md);
}

.team__photo-caption strong {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--forest);
  display: block;
  margin-bottom: 2px;
}

.team__photo-caption span {
  font-size: 0.85rem;
  color: var(--ink-muted);
}

.team__copy h2 {
  margin-bottom: 18px;
}

.team__copy p {
  color: var(--ink-soft);
  line-height: 1.75;
}

@media (max-width: 760px) {
  .team__inner { grid-template-columns: 1fr; gap: 32px; }
  .team__photo { max-width: 340px; margin: 0 auto; }
}

/* ---------- Section: Free consultation CTA ---------- */
.consult {
  padding: 80px 0;
  background: var(--cream);
}

.consult__inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.consult p {
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 28px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--forest-deep);
  color: var(--cream);
  padding: 64px 0 32px;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-family: var(--font-serif);
  font-size: 24px;
  margin-bottom: 18px;
}
.footer-brand .brand__primary { color: var(--cream); }
.footer-brand .brand__accent  { color: var(--terracotta-light); }

.site-footer__about {
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(253, 251, 245, 0.78);
}

.footer-col h4 {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--terracotta-light);
  margin: 0 0 16px;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li {
  margin-bottom: 10px;
}

.footer-col a {
  color: rgba(253, 251, 245, 0.85);
  font-size: 0.92rem;
  transition: color 0.2s var(--ease-out);
}

.footer-col a:hover { color: var(--terracotta-light); }

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(253, 251, 245, 0.08);
  color: var(--cream);
  transition: background 0.2s var(--ease-out);
}

.footer-social a:hover {
  background: rgba(224, 181, 137, 0.20);
}

.footer-social svg { width: 16px; height: 16px; }

.site-footer__bottom {
  padding-top: 28px;
  border-top: 1px solid rgba(253, 251, 245, 0.12);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.82rem;
  color: rgba(253, 251, 245, 0.65);
}

.site-footer__bottom a {
  color: rgba(253, 251, 245, 0.75);
}

.site-footer__legal {
  max-width: 820px;
  margin: 24px auto 0;
  font-size: 0.75rem;
  line-height: 1.7;
  color: rgba(253, 251, 245, 0.55);
  text-align: center;
}

@media (max-width: 880px) {
  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 520px) {
  .site-footer__grid { grid-template-columns: 1fr; }
}

/* ---------- Mobile adjustments ---------- */
@media (max-width: 720px) {
  .hero { min-height: 480px; }
  .hero__content { padding: 80px 0 64px; }
  .intro, .communities, .team, .consult { padding-left: 0; padding-right: 0; }
  .search-card { padding: 36px 24px; }
  .community-grid { gap: 18px; }
}
