/* ==========================================================================
   Harwell Realty Group -- Design System
   Brand colors extracted from logo. Serif display (Playfair Display) +
   clean sans body (Inter). Zigzag motif echoes the logo's border.
   ========================================================================== */

:root {
  --forest: #225E30;
  --forest-dark: #163f20;
  --kelly: #4CA814;
  --kelly-dark: #3a8010;
  --off-white: #FAF9F5;
  --charcoal: #2A2A2A;
  --gold: #B8912F;
  --white: #ffffff;
  --border-soft: #e4e1d6;
  --shadow: 0 10px 30px rgba(34, 94, 48, 0.12);
  --shadow-sm: 0 4px 14px rgba(34, 94, 48, 0.08);
  --radius: 6px;
  --font-display: "Playfair Display", "Georgia", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --container: 1200px;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--off-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--forest);
  line-height: 1.2;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.4rem; }

p { margin: 0 0 1em; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--kelly-dark);
  margin-bottom: 0.6em;
}

.section {
  padding: 72px 0;
}

.section--tight { padding: 48px 0; }

.section--alt {
  background: var(--white);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 44px;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  letter-spacing: 0.01em;
}

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

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

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

.btn-block { width: 100%; }

/* ---- Zigzag divider motif (echoes logo border) ---- */
.zigzag {
  height: 14px;
  width: 100%;
  background:
    linear-gradient(135deg, var(--kelly) 25%, transparent 25%) 0 0,
    linear-gradient(225deg, var(--kelly) 25%, transparent 25%) 0 0;
  background-size: 14px 14px;
  background-repeat: repeat-x;
  background-position: center;
  opacity: 0.85;
}

.zigzag--forest {
  background:
    linear-gradient(135deg, var(--forest) 25%, transparent 25%) 0 0,
    linear-gradient(225deg, var(--forest) 25%, transparent 25%) 0 0;
  background-size: 14px 14px;
  background-repeat: repeat-x;
  background-position: center;
}

/* ---- Texas silhouette watermark ---- */
.tx-watermark {
  position: absolute;
  width: 420px;
  max-width: 60vw;
  opacity: 0.05;
  pointer-events: none;
  z-index: 0;
}

/* ==========================================================================
   Header / Nav
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border-soft);
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  max-width: var(--container);
  margin: 0 auto;
  gap: 20px;
}

.brand img { height: 56px; width: auto; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.header-phone {
  font-weight: 700;
  color: var(--forest);
  font-size: 0.95rem;
  white-space: nowrap;
}
.header-phone span { color: var(--kelly-dark); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--forest);
  margin: 5px 0;
  transition: 0.2s;
}

.main-nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 28px;
}

.main-nav a {
  font-weight: 600;
  font-size: 0.94rem;
  color: var(--charcoal);
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--forest);
  border-color: var(--kelly);
}

@media (max-width: 900px) {
  .header-phone { display: none; }
  .nav-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border-soft);
    box-shadow: var(--shadow-sm);
  }
  .main-nav.open { display: block; }
  .main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 8px 24px 20px;
  }
  .main-nav a { display: block; padding: 12px 0; border-bottom: 1px solid var(--border-soft); }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  color: var(--white);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(22,63,32,0.55) 0%, rgba(22,63,32,0.78) 100%);
}
.hero .container { position: relative; z-index: 2; }
.hero-content { max-width: 680px; }
.hero-content .eyebrow { color: var(--white); opacity: 0.9; }
.hero h1 { color: var(--white); }
.hero p.lead { font-size: 1.15rem; opacity: 0.95; max-width: 560px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 28px; }

.hero-search {
  margin-top: 40px;
  background: rgba(255,255,255,0.96);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  box-shadow: var(--shadow);
}
.hero-search select,
.hero-search input {
  flex: 1;
  min-width: 140px;
  padding: 12px 14px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--charcoal);
  background: var(--white);
}

.page-hero {
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  color: var(--white);
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(22,63,32,0.72);
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { color: var(--white); margin-bottom: 6px; }
.breadcrumb { font-size: 0.85rem; opacity: 0.85; }
.breadcrumb a:hover { text-decoration: underline; }

/* ==========================================================================
   Cards -- Listings
   ========================================================================== */
.grid {
  display: grid;
  gap: 28px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 1000px) {
  .grid-3, .grid-4, .grid-5 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4, .grid-5 { grid-template-columns: 1fr; }
}

.listing-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}
.listing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.listing-photo {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.listing-photo img { width: 100%; height: 100%; object-fit: cover; }

.listing-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--kelly);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 4px;
}
.listing-badge.is-sold { background: var(--gold); }
.listing-badge.is-leased { background: #7a7a6a; }

.listing-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.listing-price {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--forest);
  font-weight: 700;
  margin-bottom: 4px;
}
.listing-address { font-weight: 600; color: var(--charcoal); }
.listing-city { color: #6b6b60; font-size: 0.9rem; margin-bottom: 12px; }
.listing-stats {
  display: flex;
  gap: 14px;
  font-size: 0.86rem;
  color: #55554b;
  border-top: 1px solid var(--border-soft);
  padding-top: 12px;
  margin-top: auto;
}
.listing-stats strong { color: var(--charcoal); }
.listing-link {
  display: block;
  text-align: center;
  margin-top: 14px;
  font-weight: 700;
  color: var(--kelly-dark);
  font-size: 0.9rem;
}
.listing-link:hover { text-decoration: underline; }

/* ---- Filter bar ---- */
.filter-bar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  margin-bottom: 36px;
}
.filter-btn {
  padding: 10px 20px;
  border-radius: 30px;
  border: 1.5px solid var(--border-soft);
  background: var(--white);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.2s;
}
.filter-btn:hover { border-color: var(--kelly); color: var(--kelly-dark); }
.filter-btn.active { background: var(--forest); border-color: var(--forest); color: var(--white); }

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #7a7a6e;
  font-style: italic;
}

/* ==========================================================================
   Property Type Cards
   ========================================================================== */
.type-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 260px;
  display: flex;
  align-items: flex-end;
  color: var(--white);
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s;
}
.type-card:hover { transform: translateY(-4px); }
.type-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(22,63,32,0.15) 30%, rgba(22,63,32,0.88) 100%);
}
.type-card-body { position: relative; z-index: 2; padding: 22px; }
.type-card-body h3 { color: var(--white); margin-bottom: 4px; }
.type-card-body span { font-size: 0.85rem; opacity: 0.9; }

/* ==========================================================================
   About / Services / Team
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 800px) {
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
}
.about-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.about-photos img { border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.about-photos img:first-child { margin-top: 32px; }

.stat-row {
  display: flex;
  gap: 40px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.stat-row .stat-num {
  font-family: var(--font-display);
  font-size: 2.1rem;
  color: var(--kelly-dark);
  font-weight: 700;
}
.stat-row .stat-label { font-size: 0.85rem; color: #6b6b60; }

.service-card {
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 34px 28px;
  text-align: left;
  box-shadow: var(--shadow-sm);
}
.service-card .icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(76,168,20,0.12);
  color: var(--kelly-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 18px;
}
.service-card ul { padding-left: 20px; margin: 14px 0; color: #55554b; font-size: 0.94rem; }
.service-card ul li { margin-bottom: 6px; }

.team-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  text-align: center;
  padding-bottom: 26px;
}
.team-photo { aspect-ratio: 1; overflow: hidden; }
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-card h3 { margin: 20px 0 2px; }
.team-title { color: var(--kelly-dark); font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 12px; }
.team-meta { font-size: 0.92rem; color: #55554b; margin-bottom: 4px; }
.team-card .btn { margin-top: 14px; }

/* ==========================================================================
   Testimonials
   ========================================================================== */
.testimonial-carousel {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.testimonial-slide { display: none; }
.testimonial-slide.active { display: block; }
.testimonial-quote {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--forest);
  font-style: italic;
  margin-bottom: 20px;
}
.testimonial-author { font-weight: 700; }
.testimonial-role { font-size: 0.85rem; color: #6b6b60; }
.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}
.testimonial-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: var(--border-soft);
  cursor: pointer;
  padding: 0;
}
.testimonial-dots button.active { background: var(--kelly); }

/* ==========================================================================
   CTA band
   ========================================================================== */
.cta-band {
  background: var(--forest);
  color: var(--white);
  text-align: center;
  padding: 64px 0;
  position: relative;
  overflow: hidden;
}
.cta-band h2 { color: var(--white); }
.cta-band p { opacity: 0.9; max-width: 560px; margin: 0 auto 28px; }

.cta-band--home { background: #4ca814; }
.cta-band--home .btn-primary { background: #225e30; border-color: #225e30; }
.cta-band--home .btn-primary:hover { background: var(--forest-dark); border-color: var(--forest-dark); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--forest);
  color: rgba(255,255,255,0.9);
}
.footer-top {
  padding: 56px 0 32px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 32px;
}
@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-top { grid-template-columns: 1fr; }
}
.footer-brand img { height: 60px; margin-bottom: 16px; }
.footer-col h4 {
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 10px; font-size: 0.92rem; }
.footer-col a:hover { color: var(--kelly); }
.footer-social { display: flex; gap: 12px; margin-top: 16px; }
.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s;
}
.footer-social a:hover { background: var(--kelly); border-color: var(--kelly); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
}
.footer-bottom .legal-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-bottom a:hover { color: var(--kelly); }

/* ==========================================================================
   Contact page / forms
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
@media (max-width: 800px) {
  .contact-grid { grid-template-columns: 1fr; }
}
.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.9rem; }
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--white);
}
.form-field textarea { min-height: 130px; resize: vertical; }

.info-card {
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 20px;
}
.info-card h4 { margin-bottom: 10px; }
.map-embed {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-soft);
  aspect-ratio: 16/9;
}
.map-embed iframe { width: 100%; height: 100%; border: 0; }

/* ==========================================================================
   Misc
   ========================================================================== */
.text-center { text-align: center; }
.mt-40 { margin-top: 40px; }
.badge-note {
  font-size: 0.78rem;
  color: #8a8a7c;
  text-align: center;
  margin-top: 8px;
}
