/* ==========================================================================
   Ashe Buyers Agent — Global Stylesheet
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS Custom Properties (Design Tokens)
   -------------------------------------------------------------------------- */

:root {
  /* --- Colors: Primary --- */
  --color-forest-green: #2B4D3F;
  --color-warm-brown: #6B4C3B;
  --color-stone-gray: #7A7267;
  --color-cream: #F5F0E8;
  --color-muted-gold: #B8963E;

  /* --- Colors: Extended --- */
  --color-charcoal: #2C2C2C;
  --color-deep-forest: #1E3A2F;
  --color-white: #FFFFFF;
  --color-dark-stone: #5C564E;
  --color-dark-brown: #5A3F30;
  --color-pale-gold: #F0E6CC;
  --color-copyright-bg: #1A2E24;

  /* --- Typography --- */
  --font-headline: 'Libre Baskerville', Georgia, 'Times New Roman', serif;
  --font-body: 'Lato', 'Helvetica Neue', Arial, sans-serif;

  /* --- Type Scale: Desktop --- */
  --h1-size: 48px;
  --h2-size: 36px;
  --h3-size: 28px;
  --h4-size: 22px;
  --body-size: 17px;
  --body-large-size: 20px;
  --caption-size: 14px;
  --button-size: 15px;
  --nav-link-size: 15px;
  --pull-quote-size: 24px;
  --testimonial-size: 20px;

  /* --- Line Heights --- */
  --h1-lh: 1.2;
  --h2-lh: 1.25;
  --h3-lh: 1.3;
  --h4-lh: 1.35;
  --body-lh: 1.65;
  --body-large-lh: 1.6;
  --caption-lh: 1.5;
  --pull-quote-lh: 1.5;
  --testimonial-lh: 1.55;

  /* --- Letter Spacing --- */
  --h1-ls: -0.02em;
  --h2-ls: -0.01em;
  --h3-ls: 0;
  --h4-ls: 0;
  --body-ls: 0.01em;
  --caption-ls: 0.02em;
  --button-ls: 0.08em;
  --nav-ls: 0.04em;

  /* --- Spacing --- */
  --section-padding-desktop: 80px;
  --section-padding-mobile: 48px;
  --container-max: 1200px;
  --container-narrow-max: 720px;
  --container-padding-desktop: 24px;
  --container-padding-tablet: 20px;
  --container-padding-mobile: 16px;

  /* --- Header --- */
  --header-height-desktop: 120px;
  --header-height-tablet: 100px;
  --header-height-mobile: 80px;

  /* --- Shadows --- */
  --shadow-header: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-card-hover: 0 4px 16px rgba(0, 0, 0, 0.12);

  /* --- Transitions --- */
  --transition-fast: 0.2s ease;
  --transition-medium: 0.3s ease;

  /* --- Border Radius --- */
  --radius-button: 4px;
  --radius-card: 6px;
  --radius-image: 4px;
}


/* --------------------------------------------------------------------------
   2. CSS Reset / Normalize
   -------------------------------------------------------------------------- */

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

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

body {
  font-family: var(--font-body);
  font-size: var(--body-size);
  font-weight: 400;
  line-height: var(--body-lh);
  letter-spacing: var(--body-ls);
  color: var(--color-charcoal);
  background-color: var(--color-cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
picture,
video,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--color-forest-green);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-deep-forest);
  text-decoration: underline;
}

ul,
ol {
  list-style: none;
}

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

fieldset {
  border: none;
}


/* --------------------------------------------------------------------------
   3. Typography
   -------------------------------------------------------------------------- */

h1, .h1 {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: var(--h1-size);
  line-height: var(--h1-lh);
  letter-spacing: var(--h1-ls);
  color: var(--color-forest-green);
}

h2, .h2 {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: var(--h2-size);
  line-height: var(--h2-lh);
  letter-spacing: var(--h2-ls);
  color: var(--color-forest-green);
}

h3, .h3 {
  font-family: var(--font-headline);
  font-weight: 400;
  font-size: var(--h3-size);
  line-height: var(--h3-lh);
  letter-spacing: var(--h3-ls);
  color: var(--color-forest-green);
}

h4, .h4 {
  font-family: var(--font-headline);
  font-weight: 400;
  font-size: var(--h4-size);
  line-height: var(--h4-lh);
  letter-spacing: var(--h4-ls);
  color: var(--color-warm-brown);
}

p {
  margin-bottom: 0.8em;
}

p:last-child {
  margin-bottom: 0;
}

.body-large {
  font-size: var(--body-large-size);
  font-weight: 300;
  line-height: var(--body-large-lh);
}

.caption {
  font-size: var(--caption-size);
  line-height: var(--caption-lh);
  letter-spacing: var(--caption-ls);
  color: var(--color-dark-stone);
}

.pull-quote {
  font-family: var(--font-headline);
  font-style: italic;
  font-weight: 400;
  font-size: var(--pull-quote-size);
  line-height: var(--pull-quote-lh);
  color: var(--color-forest-green);
}

.testimonial-text {
  font-family: var(--font-headline);
  font-style: italic;
  font-weight: 400;
  font-size: var(--testimonial-size);
  line-height: var(--testimonial-lh);
  color: var(--color-charcoal);
}


/* --------------------------------------------------------------------------
   4. Layout: Containers
   -------------------------------------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding-desktop);
  padding-right: var(--container-padding-desktop);
}

.container-narrow {
  width: 100%;
  max-width: var(--container-narrow-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding-desktop);
  padding-right: var(--container-padding-desktop);
}


/* --------------------------------------------------------------------------
   5. Layout: Sections
   -------------------------------------------------------------------------- */

.section {
  padding-top: var(--section-padding-desktop);
  padding-bottom: var(--section-padding-desktop);
}

.section--white {
  background-color: var(--color-white);
}

.section--cream {
  background-color: var(--color-cream);
}

.section--deep-forest {
  background-color: var(--color-deep-forest);
  color: var(--color-white);
}

.section--deep-forest h2,
.section--deep-forest h3,
.section--deep-forest h4 {
  color: var(--color-white);
}

.section--deep-forest p {
  color: var(--color-cream);
}

.section--pale-gold {
  background-color: var(--color-pale-gold);
}

.section--warm-brown {
  background-color: var(--color-warm-brown);
  color: var(--color-white);
}

.section--warm-brown h2,
.section--warm-brown h3 {
  color: var(--color-white);
}

.section--warm-brown p {
  color: var(--color-cream);
}


/* --------------------------------------------------------------------------
   6. Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--button-size);
  letter-spacing: var(--button-ls);
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--radius-button);
  cursor: pointer;
  transition: background-color var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
  white-space: nowrap;
}

.btn:hover {
  text-decoration: none;
}

/* Primary: Forest Green bg, white text */
.btn-primary {
  height: 48px;
  padding: 14px 32px;
  min-width: 160px;
  background-color: var(--color-forest-green);
  color: var(--color-white);
  border: 2px solid var(--color-forest-green);
}

.btn-primary:hover {
  background-color: var(--color-deep-forest);
  border-color: var(--color-deep-forest);
  color: var(--color-white);
}

/* Secondary: Warm Brown bg, white text */
.btn-secondary {
  height: 44px;
  padding: 12px 28px;
  min-width: 140px;
  background-color: var(--color-warm-brown);
  color: var(--color-white);
  border: 2px solid var(--color-warm-brown);
}

.btn-secondary:hover {
  background-color: var(--color-dark-brown);
  border-color: var(--color-dark-brown);
  color: var(--color-white);
}

/* Outline: For use on dark backgrounds (CTA bands, footer) */
.btn-outline {
  height: 44px;
  padding: 12px 28px;
  min-width: 140px;
  background-color: transparent;
  color: var(--color-cream);
  border: 1px solid var(--color-cream);
}

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

/* Tertiary: Text link with arrow */
.btn-tertiary {
  background: none;
  border: none;
  color: var(--color-forest-green);
  font-weight: 700;
  font-size: var(--button-size);
  letter-spacing: var(--button-ls);
  text-transform: uppercase;
  padding: 0;
  min-width: 0;
  height: auto;
}

.btn-tertiary::after {
  content: ' \2192';
  margin-left: 6px;
  transition: margin-left var(--transition-fast);
}

.btn-tertiary:hover {
  color: var(--color-deep-forest);
  text-decoration: underline;
}

.btn-tertiary:hover::after {
  margin-left: 10px;
}

/* Button group (for dual CTAs) */
.btn-group {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.btn-group--center {
  justify-content: center;
}


/* --------------------------------------------------------------------------
   7. Placeholder Image Utility
   -------------------------------------------------------------------------- */

.placeholder-image {
  position: relative;
  background: linear-gradient(135deg, var(--color-cream) 0%, #e8e0d4 50%, var(--color-cream) 100%);
  border: 2px dashed var(--color-stone-gray);
  border-radius: var(--radius-image);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  min-height: 200px;
}

.placeholder-image::before {
  content: attr(data-placeholder);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  color: var(--color-stone-gray);
  padding: 24px;
  line-height: 1.5;
}

/* Dark placeholder for dark sections */
.placeholder-image--dark {
  background: linear-gradient(135deg, #2a3d35 0%, var(--color-deep-forest) 50%, #2a3d35 100%);
  border-color: var(--color-forest-green);
}

.placeholder-image--dark::before {
  color: var(--color-stone-gray);
}


/* --------------------------------------------------------------------------
   8. Gold Divider Utility
   -------------------------------------------------------------------------- */

.divider-gold {
  width: 80px;
  height: 2px;
  background-color: var(--color-muted-gold);
  border: none;
  margin: 24px 0;
}

.divider-gold--center {
  margin-left: auto;
  margin-right: auto;
}

.divider-gold--wide {
  width: 120px;
}

/* Standard stone gray divider */
.divider {
  width: 100%;
  height: 1px;
  background-color: var(--color-stone-gray);
  opacity: 0.3;
  border: none;
  margin: 32px 0;
}


/* --------------------------------------------------------------------------
   9. Utility Classes
   -------------------------------------------------------------------------- */

.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.text-white {
  color: var(--color-white);
}

.text-cream {
  color: var(--color-cream);
}

.text-forest {
  color: var(--color-forest-green);
}

.text-brown {
  color: var(--color-warm-brown);
}

.text-gold {
  color: var(--color-muted-gold);
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.mb-5 { margin-bottom: 48px; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mt-5 { margin-top: 48px; }

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


/* --------------------------------------------------------------------------
   10. Header & Navigation
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--color-white);
  background-size: auto 100%;
  background-position: left center;
  background-repeat: no-repeat;
  height: var(--header-height-desktop);
  border-bottom: 1px solid rgba(122, 114, 103, 0.3);
  box-shadow: var(--shadow-header);
}

/* Banner: no overlay — banners display at full color */

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding-left: 32px;
  padding-right: 32px;
  position: relative;
  z-index: 1;
}

/* Logo */
.logo {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  flex-shrink: 0;
  margin-right: 32px;
}

.logo:hover {
  text-decoration: none;
}

.logo-text {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 22px;
  color: var(--color-forest-green);
  line-height: 1.2;
}

.logo-tagline {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-dark-stone);
  line-height: 1;
  margin-top: 2px;
}

/* Banner readability — short dense white glow behind logo text */
.site-header .logo-text {
  text-shadow:
    0 0 4px #fff,
    0 0 4px #fff,
    0 0 8px #fff,
    0 0 12px rgba(255, 255, 255, 0.8);
}

.site-header .logo-tagline {
  text-shadow:
    0 0 3px #fff,
    0 0 3px #fff,
    0 0 6px #fff,
    0 0 10px rgba(255, 255, 255, 0.8);
}

/* Desktop nav */
.nav-desktop {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--nav-link-size);
  letter-spacing: var(--nav-ls);
  color: var(--color-forest-green);
  text-decoration: none;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: color var(--transition-fast), border-color var(--transition-fast);
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--color-deep-forest);
  text-decoration: none;
}

.nav-link.is-active {
  border-bottom-color: var(--color-muted-gold);
}

/* Hamburger (hidden on desktop) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  cursor: pointer;
  background: none;
  border: none;
  z-index: 110;
}

.nav-toggle-bar {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-forest-green);
  border-radius: 1px;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

/* Hamburger X state */
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav menu (hidden by default) */
.nav-menu {
  display: none;
  flex-direction: column;
  position: fixed;
  top: var(--header-height-desktop);
  left: 0;
  right: 0;
  background-color: var(--color-white);
  z-index: 99;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.nav-menu.is-open {
  display: flex;
}

.nav-menu-link {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 18px;
  letter-spacing: 0.02em;
  color: var(--color-forest-green);
  text-decoration: none;
  padding: 16px 24px;
  border-bottom: 1px solid var(--color-cream);
  transition: background-color var(--transition-fast);
}

.nav-menu-link:hover {
  background-color: var(--color-cream);
  text-decoration: none;
}

.nav-menu-link.is-active {
  font-weight: 700;
  border-left: 3px solid var(--color-muted-gold);
}

.nav-menu-cta {
  margin: 16px 24px;
  text-align: center;
}

/* Backdrop */
.nav-backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 98;
}

.nav-backdrop.is-visible {
  display: block;
}


/* --------------------------------------------------------------------------
   11. Footer
   -------------------------------------------------------------------------- */

.site-footer {
  margin-top: auto;
}

/* Row 1: Main content */
.footer-main {
  background-color: var(--color-deep-forest);
  padding: 60px 0 48px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 35% 25% 40%;
  gap: 32px;
}

/* Column 1: About */
.footer-logo-text {
  display: block;
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 20px;
  color: var(--color-white);
}

.footer-tagline {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-cream);
  margin-top: 2px;
}

.footer-contact {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  color: var(--color-white);
  text-decoration: none;
}

.footer-contact-link:hover {
  color: var(--color-cream);
  text-decoration: underline;
}

.footer-icon {
  width: 16px;
  height: 16px;
  color: var(--color-cream);
}

.footer-service-area {
  margin-top: 8px;
  font-size: 14px;
  color: var(--color-cream);
}

/* Column 2: Quick Links */
.footer-heading {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-muted-gold);
  margin-bottom: 12px;
}

.footer-col--links nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-link {
  font-size: 15px;
  color: var(--color-cream);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--color-white);
  text-decoration: underline;
}

/* Column 3: CTA */
.footer-cta-heading {
  font-family: var(--font-headline);
  font-weight: 400;
  font-size: 22px;
  color: var(--color-white);
  margin-bottom: 12px;
}

.footer-cta-text {
  font-size: 15px;
  color: var(--color-cream);
  max-width: 320px;
  margin-bottom: 20px;
}

/* Row 2: Brokerage */
.footer-brokerage {
  background-color: var(--color-deep-forest);
  border-top: 1px solid var(--color-forest-green);
  padding: 24px 0;
  text-align: center;
}

.footer-brokerage-text {
  font-size: 14px;
  color: var(--color-cream);
}

/* Row 3: Copyright */
.footer-copyright {
  background-color: var(--color-copyright-bg);
  padding: 16px 0;
  text-align: center;
}

.footer-copyright-text {
  font-size: 13px;
  color: var(--color-cream);
  opacity: 0.7;
}


/* --------------------------------------------------------------------------
   12. CTA Band (reusable full-width section)
   -------------------------------------------------------------------------- */

.cta-band {
  background-color: var(--color-deep-forest);
  padding: var(--section-padding-desktop) 0;
  text-align: center;
}

.cta-band__inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 var(--container-padding-desktop);
}

.cta-band h2 {
  color: var(--color-white);
  margin-bottom: 16px;
}

.cta-band p {
  font-size: var(--body-large-size);
  color: var(--color-cream);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 32px;
}

.cta-band .btn-group {
  justify-content: center;
}


/* --------------------------------------------------------------------------
   13. Home Page: Hero Banner
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: var(--color-cream);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.15) 50%, rgba(0,0,0,0.05) 100%);
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 80px;
  padding-bottom: 60px;
}

.hero__text {
  max-width: 560px;
}

.hero__text h1 {
  color: var(--color-white);
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.hero__subheadline {
  color: var(--color-cream);
  max-width: 500px;
  margin-top: 20px;
}

.hero__text .btn-group {
  margin-top: 32px;
  flex-wrap: nowrap;
}

.hero__text .btn-group .btn {
  padding-left: 24px;
  padding-right: 24px;
}

.hero__portrait {
  max-width: 400px;
  flex-shrink: 0;
}

.hero__portrait img {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: bottom right;
}


/* --------------------------------------------------------------------------
   14. Home Page: Pillars
   -------------------------------------------------------------------------- */

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  max-width: 1000px;
  margin: 0 auto;
}

.pillar {
  text-align: center;
}

.pillar__icon {
  margin-bottom: 16px;
  display: flex;
  justify-content: center;
}

.pillar__title {
  font-size: 22px;
  margin-bottom: 12px;
}

.pillar__text {
  max-width: 300px;
  margin: 0 auto;
}


/* --------------------------------------------------------------------------
   15. Home Page: Property Cards
   -------------------------------------------------------------------------- */

.property-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.property-card {
  background: var(--color-white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: box-shadow var(--transition-fast);
}

.property-card:hover {
  box-shadow: var(--shadow-card-hover);
}

.property-card .placeholder-image {
  border-radius: 0;
  border: none;
  border-bottom: 1px solid var(--color-cream);
}

.property-card__body {
  padding: 20px 24px 24px;
  text-align: left;
}

.property-card__location {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-muted-gold);
}

.property-card__title {
  font-family: var(--font-headline);
  font-weight: 400;
  font-size: 20px;
  color: var(--color-forest-green);
  margin-top: 8px;
  line-height: 1.3;
}

.property-card__details {
  font-size: 15px;
  color: var(--color-dark-stone);
  margin-top: 8px;
}

.property-card__price {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 20px;
  color: var(--color-charcoal);
  margin-top: 12px;
}


/* --------------------------------------------------------------------------
   16. Home Page: Photo Mosaic
   -------------------------------------------------------------------------- */

.photo-mosaic {
  display: grid;
  grid-template-columns: 55% 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 12px;
  min-height: 400px;
}

.photo-mosaic__large {
  grid-row: 1 / 3;
  min-height: 400px;
}

.photo-mosaic__small-top,
.photo-mosaic__small-bottom {
  min-height: 194px;
}


/* --------------------------------------------------------------------------
   17. Home Page: Testimonial Spotlight
   -------------------------------------------------------------------------- */

.testimonial-spotlight {
  position: relative;
}

.testimonial-spotlight__mark {
  font-family: var(--font-headline);
  font-size: 80px;
  line-height: 1;
  color: var(--color-muted-gold);
  opacity: 0.4;
  margin-bottom: -16px;
}

.testimonial-spotlight__attribution {
  font-size: 15px;
  color: var(--color-dark-stone);
}


/* --------------------------------------------------------------------------
   18. Two-Column Layout (reusable)
   -------------------------------------------------------------------------- */

.two-col {
  display: grid;
  gap: 48px;
  align-items: center;
}

.two-col--55-45 {
  grid-template-columns: 55% 1fr;
}

.two-col--50-50 {
  grid-template-columns: 1fr 1fr;
}

.two-col--45-55 {
  grid-template-columns: 45% 1fr;
}

.two-col--reverse .two-col__image {
  order: -1;
}

.about-portrait,
.rounded-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}


/* --------------------------------------------------------------------------
   19. About Page: Stat Blocks
   -------------------------------------------------------------------------- */

.stat-blocks {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  max-width: 1000px;
  margin: 0 auto;
}

.stat-block {
  text-align: center;
}

.stat-block__number {
  display: block;
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 40px;
  color: var(--color-forest-green);
  line-height: 1.2;
}

.stat-block__number--smaller {
  font-size: 32px;
}

.stat-block__label {
  display: block;
  font-size: 16px;
  color: var(--color-charcoal);
  margin-top: 8px;
}


/* --------------------------------------------------------------------------
   20. Services Page: Page Banner
   -------------------------------------------------------------------------- */

.page-banner {
  position: relative;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background-color: var(--color-cream);
}

.page-banner--services {
  min-height: 50vh;
}

.page-banner__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.1) 100%);
  z-index: 1;
}

.page-banner__content {
  position: relative;
  z-index: 2;
  padding-bottom: 40px;
  padding-top: 40px;
}

.page-banner__content h1 {
  color: var(--color-white);
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
  max-width: 700px;
  margin: 0 auto;
}


/* --------------------------------------------------------------------------
   21. Services Page: Timeline
   -------------------------------------------------------------------------- */

.timeline {
  display: flex;
  gap: 32px;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  padding-top: 24px;
}

.timeline__line {
  position: absolute;
  top: 47px;
  left: 10%;
  right: 10%;
  height: 1px;
  background-color: var(--color-stone-gray);
  opacity: 0.3;
}

.timeline__step {
  flex: 1;
  text-align: center;
  position: relative;
}

.timeline__number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--color-forest-green);
  color: var(--color-white);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 20px;
  margin: 0 auto 12px;
  position: relative;
  z-index: 2;
}

.timeline__icon {
  margin-bottom: 12px;
  display: flex;
  justify-content: center;
}

.timeline__title {
  font-family: var(--font-headline);
  font-weight: 400;
  font-size: 22px;
  color: var(--color-forest-green);
  margin-bottom: 8px;
}

.timeline__desc {
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-charcoal);
  max-width: 220px;
  margin: 0 auto;
}


/* --------------------------------------------------------------------------
   22. Services Page: Styled Lists & Land Categories
   -------------------------------------------------------------------------- */

.styled-list {
  list-style: none;
  padding: 0;
}

.styled-list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 10px;
  font-size: 17px;
  line-height: 1.55;
}

.styled-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  background-color: var(--color-muted-gold);
  border-radius: 50%;
}

.land-category {
  font-family: var(--font-headline);
  font-weight: 400;
  font-size: 20px;
  color: var(--color-forest-green);
}


/* --------------------------------------------------------------------------
   23. Contact Page
   -------------------------------------------------------------------------- */

.contact-banner {
  padding-top: 60px;
  padding-bottom: 60px;
}

.contact-paths {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0;
  align-items: start;
}

.contact-paths__divider {
  width: 1px;
  background-color: var(--color-stone-gray);
  opacity: 0.2;
  align-self: stretch;
  margin: 0 24px;
}

.contact-card {
  background-color: var(--color-cream);
  border-radius: var(--radius-card);
  padding: 40px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.contact-card__heading {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 28px;
  color: var(--color-forest-green);
}

/* Calendly placeholder */
.calendly-placeholder {
  border: 1px solid rgba(122, 114, 103, 0.15);
  border-radius: var(--radius-button);
  background: var(--color-white);
  padding: 40px 24px;
  text-align: center;
}

/* Contact form */
.contact-form .form-group {
  margin-bottom: 20px;
}

.contact-form label {
  display: block;
  font-weight: 700;
  font-size: 14px;
  color: var(--color-charcoal);
  margin-bottom: 6px;
}

.form-required {
  color: var(--color-muted-gold);
}

.contact-form input,
.contact-form textarea {
  display: block;
  width: 100%;
  padding: 12px 16px;
  border: 1px solid rgba(122, 114, 103, 0.4);
  border-radius: var(--radius-button);
  background: var(--color-white);
  font-size: 16px;
  color: var(--color-charcoal);
  transition: border-color var(--transition-fast);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-forest-green);
  box-shadow: 0 0 0 3px rgba(43, 77, 63, 0.1);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--color-stone-gray);
  font-style: italic;
}

.contact-form input {
  height: 48px;
}

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

.contact-form__submit {
  min-width: 180px;
}

.form-message {
  padding: 16px;
  border-radius: var(--radius-button);
  margin-bottom: 16px;
  text-align: center;
}

.form-message--error {
  color: #C0392B;
  background: #fdf0ef;
  border: 1px solid #C0392B;
  font-size: 15px;
}

.form-message--success {
  color: var(--color-forest-green);
  font-size: 17px;
  line-height: 1.65;
}

/* Direct Contact */
.direct-contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.direct-contact__item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.direct-contact__icon {
  width: 24px;
  height: 24px;
  color: var(--color-forest-green);
  flex-shrink: 0;
}

.direct-contact__icon--gray {
  color: var(--color-stone-gray);
}

.direct-contact__phone {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 22px;
  color: var(--color-forest-green);
  text-decoration: none;
}

.direct-contact__phone:hover {
  color: var(--color-deep-forest);
  text-decoration: underline;
}

.direct-contact__email {
  font-size: 18px;
  color: var(--color-forest-green);
}

.direct-contact__area {
  font-size: 17px;
  color: var(--color-charcoal);
}

/* What to Expect */
.expect-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 640px;
  margin: 0 auto;
}

.expect-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.expect-item__bar {
  width: 3px;
  min-height: 20px;
  align-self: stretch;
  background-color: var(--color-muted-gold);
  border-radius: 2px;
  flex-shrink: 0;
}

.expect-item p {
  margin: 0;
}


/* --------------------------------------------------------------------------
   24. Properties Page: IDX Wrapper
   -------------------------------------------------------------------------- */

.page-banner--properties {
  min-height: 50vh;
}

.idx-wrapper {
  position: relative;
  width: 100%;
  min-height: 800px;
  border: 1px solid rgba(122, 114, 103, 0.3);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.idx-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}


/* --------------------------------------------------------------------------
   25. High Country Page: Hero
   -------------------------------------------------------------------------- */

.hc-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
  overflow: hidden;
  background-color: var(--color-deep-forest);
}

.hc-hero__overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.15) 70%);
  z-index: 1;
}

.hc-hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 80px 24px;
  max-width: 700px;
}

.hc-hero__content h1 {
  color: var(--color-white);
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}


/* --------------------------------------------------------------------------
   26. High Country Page: Community Spotlights
   -------------------------------------------------------------------------- */

.community-spotlight {
  display: grid;
  grid-template-columns: 45% 1fr;
  gap: 48px;
  align-items: center;
}

.community-spotlight--reverse {
  grid-template-columns: 1fr 45%;
}

.community-spotlight--reverse .community-spotlight__image {
  order: 1;
}

.community-spotlight--reverse .community-spotlight__text {
  order: 0;
}

.community-spotlight__text h3 {
  font-family: var(--font-headline);
  font-weight: 400;
  font-size: 28px;
  color: var(--color-forest-green);
}


/* --------------------------------------------------------------------------
   27. High Country Page: Lifestyle Grid
   -------------------------------------------------------------------------- */

.lifestyle-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.lifestyle-block__icon {
  margin-bottom: 16px;
  display: flex;
}

.lifestyle-block h3 {
  font-family: var(--font-headline);
  font-weight: 400;
  font-size: 22px;
  color: var(--color-forest-green);
}


/* --------------------------------------------------------------------------
   28. High Country Page: Gallery Masonry
   -------------------------------------------------------------------------- */

.gallery-masonry {
  columns: 3;
  column-gap: 12px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.gallery-masonry__item {
  break-inside: avoid;
  margin-bottom: 12px;
}

.gallery-masonry__item .placeholder-image {
  border-radius: 2px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-masonry__item:hover .placeholder-image {
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.gallery-masonry__caption {
  display: block;
  font-size: 13px;
  color: var(--color-dark-stone);
  margin-top: 8px;
  padding-bottom: 4px;
}


/* --------------------------------------------------------------------------
   29. Testimonials Page
   -------------------------------------------------------------------------- */

.testimonials-banner {
  padding-top: 60px;
  padding-bottom: 60px;
}

.testimonials-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}

.testimonial-card {
  position: relative;
  padding: 0;
}

.testimonial-card__quote {
  display: block;
  font-family: var(--font-headline);
  font-size: 64px;
  color: var(--color-muted-gold);
  opacity: 0.4;
  line-height: 1;
  margin-bottom: -16px;
}

.testimonial-card__text {
  font-family: var(--font-headline);
  font-weight: 400;
  font-style: italic;
  font-size: 20px;
  line-height: 1.55;
  color: var(--color-charcoal);
  max-width: 760px;
}

.testimonial-card__attribution {
  margin-top: 24px;
}

.testimonial-card__name {
  display: block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 17px;
  color: var(--color-forest-green);
  font-style: normal;
}

.testimonial-card__detail {
  display: block;
  font-size: 15px;
  color: var(--color-dark-stone);
  margin-top: 4px;
}


/* --------------------------------------------------------------------------
   30. Blog/Resources Page: Featured Post
   -------------------------------------------------------------------------- */

.page-banner--resources {
  min-height: 50vh;
}

.featured-post {
  display: grid;
  grid-template-columns: 55% 1fr;
  gap: 40px;
  align-items: center;
}

.featured-post__label {
  display: block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-muted-gold);
}

.post-category-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-white);
  background-color: var(--color-forest-green);
  padding: 4px 12px;
  border-radius: 2px;
}

.featured-post__title {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 32px;
  color: var(--color-forest-green);
  line-height: 1.25;
}

.featured-post__date {
  display: block;
  font-size: 14px;
  color: var(--color-dark-stone);
}

.featured-post__link {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  color: var(--color-forest-green);
  text-decoration: none;
}

.featured-post__link:hover {
  color: var(--color-deep-forest);
  text-decoration: underline;
}


/* --------------------------------------------------------------------------
   31. Blog/Resources Page: Category Filter & Post Grid
   -------------------------------------------------------------------------- */

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

.category-filter__btn {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 0.02em;
  color: var(--color-charcoal);
  background: transparent;
  border: 1px solid var(--color-stone-gray);
  padding: 8px 20px;
  border-radius: 20px;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.category-filter__btn:hover {
  background-color: var(--color-pale-gold);
  border-color: var(--color-warm-brown);
}

.category-filter__btn.is-active {
  font-weight: 700;
  color: var(--color-white);
  background-color: var(--color-forest-green);
  border-color: var(--color-forest-green);
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.post-card {
  display: block;
  background: var(--color-white);
  border-radius: var(--radius-card);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  text-decoration: none;
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}

.post-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.post-card__image {
  position: relative;
}

.post-card__image .placeholder-image {
  border-radius: 0;
}

.post-card__category {
  position: absolute;
  bottom: 16px;
  left: 16px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-forest-green);
  background: var(--color-pale-gold);
  padding: 3px 10px;
  border-radius: 2px;
}

.post-card__body {
  padding: 20px;
}

.post-card__title {
  font-family: var(--font-headline);
  font-weight: 400;
  font-size: 20px;
  color: var(--color-forest-green);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card__excerpt {
  font-size: 15px;
  color: var(--color-charcoal);
  line-height: 1.55;
  margin-top: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card__date {
  display: block;
  font-size: 13px;
  color: var(--color-dark-stone);
  margin-top: 12px;
}


/* --------------------------------------------------------------------------
   32. Blog Post Article
   -------------------------------------------------------------------------- */

.blog-post__header {
  padding-top: 60px;
  padding-bottom: 40px;
}

.blog-post__header h1 {
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  font-size: 40px;
  line-height: 1.2;
}

.blog-post__meta {
  font-size: 15px;
  color: var(--color-dark-stone);
}

.blog-post__content {
  padding-top: 0;
}

.blog-post__content h2 {
  font-size: 28px;
  margin-top: 40px;
  margin-bottom: 16px;
}

.blog-post__content p {
  margin-bottom: 20px;
}

.blog-post__cta {
  background: var(--color-cream);
  padding: 32px;
  border-radius: var(--radius-card);
  border-left: 3px solid var(--color-muted-gold);
}

.blog-post__cta p {
  margin: 0;
}

.blog-post__cta a {
  color: var(--color-forest-green);
  font-weight: 700;
}


/* --------------------------------------------------------------------------
   33. Floating Navigation Button (FAB)
   -------------------------------------------------------------------------- */

.fab-nav-toggle {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 200;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background-color: var(--color-forest-green);
  border: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
  transition: background-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
}

.fab-nav-toggle:hover {
  background-color: var(--color-deep-forest);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.28);
  transform: scale(1.05);
}

.fab-nav-toggle__bar {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--color-white);
  border-radius: 1px;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

/* X state when menu is open */
.fab-nav-toggle[aria-expanded="true"] .fab-nav-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.fab-nav-toggle[aria-expanded="true"] .fab-nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

.fab-nav-toggle[aria-expanded="true"] .fab-nav-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Floating CTA (bottom-left, mirrors FAB hamburger) */
.fab-cta {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 200;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background-color: var(--color-forest-green);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
}

.fab-cta:hover {
  background-color: var(--color-deep-forest);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.28);
  transform: scale(1.05);
  text-decoration: none;
}

.fab-cta i,
.fab-cta svg {
  width: 22px;
  height: 22px;
  color: var(--color-white);
  stroke: var(--color-white);
}


/* --------------------------------------------------------------------------
   34. Responsive: Tablet (768px -- 1023px)
   -------------------------------------------------------------------------- */

@media (max-width: 1023px) {
  :root {
    --section-padding-desktop: 60px;
  }

  .container {
    padding-left: var(--container-padding-tablet);
    padding-right: var(--container-padding-tablet);
  }

  .container-narrow {
    padding-left: var(--container-padding-tablet);
    padding-right: var(--container-padding-tablet);
  }

  /* Two-col layouts: keep but tighten */
  .two-col {
    gap: 32px;
  }

  .two-col--55-45,
  .two-col--50-50,
  .two-col--45-55 {
    grid-template-columns: 1fr 1fr;
  }

  /* Stat blocks: 2 columns */
  .stat-blocks {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Timeline: wrap to 2+3 or scroll */
  .timeline {
    flex-wrap: wrap;
    justify-content: center;
  }

  .timeline__line {
    display: none;
  }

  .timeline__step {
    flex: 0 0 45%;
  }

  /* Page banner */
  .page-banner--services {
    min-height: 40vh;
  }

  /* Contact paths: stack on tablet */
  .contact-paths {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .contact-paths__divider {
    display: none;
  }

  .contact-card {
    padding: 32px;
  }

  /* Hero: shrink height, adjust layout */
  .hero {
    min-height: 70vh;
  }

  .hero__portrait {
    max-width: 280px;
  }

  /* Pillars: 2 columns */
  .pillars {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }

  /* Property grid: 2 columns */
  .property-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Photo mosaic: 2 columns, no spanning */
  .photo-mosaic {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }

  .photo-mosaic__large {
    grid-row: auto;
    min-height: 250px;
  }

  .photo-mosaic__small-top,
  .photo-mosaic__small-bottom {
    min-height: 250px;
  }

  /* Header: collapse nav to hamburger on tablet */
  .site-header {
    height: var(--header-height-tablet);
  }

  .header-inner {
    padding-left: 24px;
    padding-right: 24px;
  }

  .nav-desktop {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    top: var(--header-height-tablet);
  }

  /* Footer: 2 + 1 layout */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-col--cta {
    grid-column: 1 / -1;
  }

  .logo-tagline {
    display: none;
  }

  /* Properties page */
  .page-banner--properties {
    min-height: 40vh;
  }

  .idx-wrapper {
    min-height: 600px;
  }

  /* High Country page */
  .hc-hero {
    min-height: 65vh;
  }

  .community-spotlight,
  .community-spotlight--reverse {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .lifestyle-grid {
    gap: 32px;
  }

  .gallery-masonry {
    columns: 2;
  }

  /* Featured post */
  .featured-post {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .featured-post__title {
    font-size: 26px;
  }

  /* Post grid: 2 cols on tablet */
  .post-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Blog post */
  .blog-post__header h1 {
    font-size: 32px;
  }

  /* Testimonial card text */
  .testimonial-card__text {
    font-size: 18px;
  }
}


/* --------------------------------------------------------------------------
   34. Responsive: Mobile (below 768px)
   -------------------------------------------------------------------------- */

@media (max-width: 767px) {
  :root {
    --section-padding-desktop: 48px;
  }

  h1, .h1 { font-size: 32px; }
  h2, .h2 { font-size: 26px; }
  h3, .h3 { font-size: 22px; }
  h4, .h4 { font-size: 18px; }

  .body-large {
    font-size: 18px;
  }

  .pull-quote {
    font-size: 20px;
  }

  .testimonial-text {
    font-size: 18px;
  }

  .container {
    padding-left: var(--container-padding-mobile);
    padding-right: var(--container-padding-mobile);
  }

  .container-narrow {
    padding-left: var(--container-padding-mobile);
    padding-right: var(--container-padding-mobile);
  }

  /* Two-col: stack vertically */
  .two-col--55-45,
  .two-col--50-50,
  .two-col--45-55 {
    grid-template-columns: 1fr;
  }

  .two-col--reverse .two-col__image {
    order: 0;
  }

  .two-col__image {
    text-align: center;
  }

  .two-col__image img,
  .two-col__image .placeholder-image {
    max-width: 400px;
    margin: 0 auto;
  }

  /* Stat blocks: single column */
  .stat-blocks {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .stat-block__number {
    font-size: 32px;
  }

  .stat-block__number--smaller {
    font-size: 26px;
  }

  /* Timeline: single column */
  .timeline {
    flex-direction: column;
    align-items: center;
  }

  .timeline__step {
    flex: none;
    width: 100%;
    max-width: 400px;
  }

  .timeline__desc {
    max-width: 100%;
  }

  /* Page banner */
  .page-banner--services {
    min-height: 35vh;
  }

  /* Contact card */
  .contact-card {
    padding: 24px;
  }

  .contact-card__heading {
    font-size: 22px;
  }

  .contact-form__submit {
    width: 100%;
  }

  /* Direct contact */
  .direct-contact__phone {
    font-size: 20px;
  }

  /* Hero: stack vertically */
  .hero {
    min-height: 60vh;
  }

  .hero__content {
    flex-direction: column;
    text-align: center;
    padding-top: 48px;
    padding-bottom: 40px;
  }

  .hero__text {
    max-width: 100%;
  }

  .hero__text .btn-group {
    justify-content: center;
    flex-wrap: wrap;
  }

  .hero__subheadline {
    max-width: 100%;
  }

  .hero__portrait {
    max-width: 250px;
    margin-top: 32px;
  }

  /* Pillars: single column */
  .pillars {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  /* Property grid: single column */
  .property-grid {
    grid-template-columns: 1fr;
  }

  /* Photo mosaic: single column */
  .photo-mosaic {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .photo-mosaic__large {
    min-height: 200px;
  }

  .photo-mosaic__small-top,
  .photo-mosaic__small-bottom {
    min-height: 180px;
  }

  /* Header mobile */
  .site-header {
    height: var(--header-height-mobile);
  }

  .header-inner {
    padding-left: 16px;
    padding-right: 16px;
  }

  .nav-menu {
    top: var(--header-height-mobile);
  }

  /* Footer: single column, centered */
  .footer-main {
    padding: 40px 0 32px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-col--cta {
    grid-column: auto;
  }

  .footer-contact {
    align-items: center;
  }

  .footer-cta-text {
    margin-left: auto;
    margin-right: auto;
  }

  .footer-col--cta .btn-group {
    justify-content: center;
  }

  /* CTA band mobile */
  .cta-band p {
    font-size: 18px;
    margin-bottom: 24px;
  }

  /* Buttons stack */
  .btn-group {
    flex-direction: column;
    gap: 12px;
  }

  /* Properties page mobile */
  .page-banner--properties {
    min-height: 35vh;
  }

  .idx-wrapper {
    min-height: 500px;
  }

  /* High Country page mobile */
  .hc-hero {
    min-height: 55vh;
  }

  .hc-hero__content {
    padding: 48px 20px;
  }

  .community-spotlight,
  .community-spotlight--reverse {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .community-spotlight--reverse .community-spotlight__image {
    order: 0;
  }

  .community-spotlight--reverse .community-spotlight__text {
    order: 0;
  }

  .community-spotlight__text h3 {
    font-size: 22px;
  }

  .lifestyle-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .gallery-masonry {
    columns: 1;
    padding: 0 16px;
  }

  /* Featured post mobile */
  .featured-post {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .featured-post__title {
    font-size: 24px;
  }

  /* Post grid: single col */
  .post-grid {
    grid-template-columns: 1fr;
  }

  /* Category filter scroll on mobile */
  .category-filter {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
  }

  .category-filter__btn {
    white-space: nowrap;
    flex-shrink: 0;
  }

  /* Blog post mobile */
  .blog-post__header h1 {
    font-size: 28px;
  }

  .blog-post__content h2 {
    font-size: 24px;
  }

  .blog-post__cta {
    padding: 24px;
  }

  /* Testimonial mobile */
  .testimonial-card__text {
    font-size: 18px;
  }

  .testimonial-card__quote {
    font-size: 48px;
  }

  .testimonials-container {
    padding: 0 16px;
  }
}

@media (max-width: 479px) {
  .btn-primary,
  .btn-secondary,
  .btn-outline {
    width: 100%;
  }
}
