/* ==========================================================================
   Horizon Estates — base stylesheet
   Replace brand name, colors and copy before launch.
   ========================================================================== */

:root {
  --green-900: #0f5132;
  --green-700: #166a42;
  --green-100: #e8f0ea;
  --orange: #f2a33c;
  --cream: #faf6ee;
  --ink: #1b1b18;
  --ink-soft: #5a5a55;
  --white: #ffffff;
  --border: #e4ded0;
  --radius: 10px;
  --max-width: 1200px;
  --font-body: "Inter", Arial, sans-serif;
  --font-display: "Poppins", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
}

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

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

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.2;
  margin: 0 0 16px;
}

p { margin: 0 0 16px; color: var(--ink-soft); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-700);
  margin-bottom: 12px;
}
.eyebrow::before {
  content: "";
  width: 20px;
  height: 2px;
  background: var(--orange);
  display: inline-block;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--green-900); color: var(--white); }
.btn-primary:hover { background: var(--green-700); }
.btn-outline { background: var(--white); color: var(--ink); border-color: var(--border); }
.btn-outline:hover { background: var(--cream); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.5); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 88px;
}
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 18px; }
.logo .mark {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--green-100); color: var(--green-900);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
}
.main-nav { display: flex; align-items: center; gap: 32px; }
.main-nav ul { list-style: none; display: flex; gap: 28px; margin: 0; padding: 0; }
.main-nav a { font-size: 14px; font-weight: 500; color: var(--ink); }
.main-nav a.active, .main-nav a:hover { color: var(--green-900); }
.main-nav a.btn-primary, .main-nav a.btn-primary:hover { color: var(--white); }
.nav-toggle { display: none; }

@media (max-width: 860px) {
  .main-nav ul { display: none; }
  .nav-toggle { display: block; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  color: var(--white);
  background: linear-gradient(180deg, rgba(15,20,15,0.65), rgba(15,20,15,0.75)), var(--green-900) center/cover;
  overflow: hidden;
}
.hero video, .hero .hero-fallback {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: -1;
}
.hero-content { max-width: 760px; text-align: center; margin: 0 auto; padding: 100px 24px; }
.hero-badge {
  display: inline-block; padding: 8px 16px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.35); font-size: 12px; letter-spacing: 0.05em;
  text-transform: uppercase; margin-bottom: 24px;
}
.hero h1 { font-size: clamp(32px, 5vw, 56px); margin-bottom: 20px; }
.hero h1 .accent { color: var(--orange); }
.hero p { color: rgba(255,255,255,0.85); font-size: 17px; max-width: 580px; margin: 0 auto 32px; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.ticker {
  background: var(--green-900); color: var(--white);
  padding: 14px 0; font-size: 13px; font-weight: 600;
  overflow: hidden; white-space: nowrap;
}
.ticker .track { display: inline-flex; gap: 40px; animation: scroll 28s linear infinite; }
.ticker .dot { opacity: 0.5; margin: 0 8px; }
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
section { padding: 80px 0; }
.section-alt { background: var(--cream); }
.section-dark { background: var(--green-900); color: var(--white); }
.section-dark p { color: rgba(255,255,255,0.75); }
.section-dark .eyebrow { color: var(--orange); }

.section-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
  margin-bottom: 40px; flex-wrap: wrap;
}
.section-head h2 { font-size: clamp(26px, 3vw, 38px); max-width: 620px; margin: 0; }

/* ---------- Grids / Cards ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.card-icon {
  width: 46px; height: 46px; border-radius: 10px;
  background: var(--green-900); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; margin-bottom: 16px;
}
.card h3 { font-size: 17px; color: var(--green-900); margin-bottom: 8px; }
.card p { font-size: 14px; margin: 0; }

/* Project / blog cards */
.project-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
}
.project-card .thumb {
  aspect-ratio: 4/3; background: var(--green-100);
  display: flex; align-items: center; justify-content: center;
  color: var(--green-700); font-size: 13px; position: relative;
}
.project-card .tag {
  position: absolute; top: 14px; left: 14px;
  background: var(--white); padding: 5px 12px; border-radius: 999px;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em;
  color: var(--green-900);
}
.project-card .body { padding: 20px; }
.project-card .location { font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-soft); margin-bottom: 6px; }
.project-card h3 { margin-bottom: 10px; }
.project-card ul { margin: 0 0 16px; padding-left: 18px; color: var(--ink-soft); font-size: 14px; }
.project-card li { margin-bottom: 4px; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stats .stat strong { display: block; font-size: 34px; color: var(--orange); font-family: var(--font-display); }
.stats .stat span { font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; color: rgba(255,255,255,0.7); }
@media (max-width: 700px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* Testimonials */
.testimonial { border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; background: var(--white); }
.testimonial .stars { color: var(--orange); margin-bottom: 10px; letter-spacing: 2px; }
.testimonial .who { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); font-size: 13px; }
.testimonial .who strong { display: block; color: var(--ink); }
.testimonial .who span { color: var(--ink-soft); }

/* Forms */
.form-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px; max-width: 520px;
}
.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.form-row input, .form-row textarea, .form-row select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: 8px;
  font-family: var(--font-body); font-size: 14px;
}
.form-row textarea { min-height: 110px; resize: vertical; }
.form-note { font-size: 12px; color: var(--ink-soft); margin-top: 10px; }

/* CTA strip */
.cta-strip {
  background: var(--cream); border-radius: var(--radius);
  padding: 40px; display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.cta-strip h3 { margin: 0; font-size: 22px; max-width: 460px; }
.cta-strip .actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-900); color: rgba(255,255,255,0.85); padding: 64px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 32px; margin-bottom: 40px; }
.footer-grid h4 { color: var(--white); font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 16px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 10px; font-size: 14px; }
.footer-grid a:hover { color: var(--orange); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15); padding-top: 24px;
  font-size: 13px; color: rgba(255,255,255,0.6);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.social-row { display: flex; gap: 10px; margin-top: 16px; }
.social-row a {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.25);
  display: flex; align-items: center; justify-content: center; font-size: 13px;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* Breadcrumb / page header for inner pages */
.page-header {
  background: var(--green-900); color: var(--white);
  padding: 64px 0;
}
.page-header .eyebrow { color: var(--orange); }
.page-header h1 { margin-bottom: 8px; }
.page-header p { color: rgba(255,255,255,0.75); margin: 0; }

/* FAQ accordion */
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 12px; overflow: hidden; }
.faq-item summary {
  cursor: pointer; padding: 18px 20px; font-weight: 600; list-style: none;
  display: flex; justify-content: space-between; align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 20px; color: var(--green-900); }
.faq-item[open] summary::after { content: "–"; }
.faq-item .answer { padding: 0 20px 18px; color: var(--ink-soft); font-size: 14px; }

/* Utility */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
