/* =========================================================
   Horizon Acreage — Site Styles
   Clean & modern, with subtle warmth.
   ========================================================= */

:root {
  /* Brand */
  --color-ink:        #0E1A2B;   /* near-black, body text */
  --color-ink-soft:   #324155;   /* secondary text */
  --color-muted:      #6B7B8E;   /* muted text */
  --color-line:       #E5E9EF;   /* hairline borders */
  --color-bg:         #FAFAF7;   /* page background */
  --color-card:       #FFFFFF;   /* card background */
  --color-primary:    #1B4965;   /* deep horizon blue */
  --color-primary-d:  #133649;
  --color-accent:     #E5A657;   /* brand gold (from logo sparkle) */
  --color-accent-d:   #C68A3A;

  /* Subtle rainbow gradient — used sparingly */
  --gradient-rainbow:
    linear-gradient(90deg,
      #B85C5C 0%, #C8916D 20%, #D8B26E 40%,
      #6FA48A 60%, #4A7C9E 80%, #5C5C8E 100%);

  /* Type */
  --font-display: "Plus Jakarta Sans", "Inter", -apple-system, "Segoe UI", sans-serif;
  --font-body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Layout */
  --container:    1180px;
  --radius-sm:    6px;
  --radius:       12px;
  --radius-lg:    20px;
  --shadow-sm:    0 1px 2px rgba(14,26,43,0.06), 0 2px 6px rgba(14,26,43,0.04);
  --shadow:       0 4px 14px rgba(14,26,43,0.08);
  --shadow-lg:    0 18px 40px rgba(14,26,43,0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--color-ink);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { color: var(--color-primary-d); text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  color: var(--color-ink);
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }
p  { margin: 0 0 1em; }
.lead { font-size: 1.15rem; color: var(--color-ink-soft); }

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

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-line);
  box-shadow: 0 1px 0 rgba(14,26,43,0.04);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.nav-brand {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-ink);
}
.nav-brand:hover { text-decoration: none; color: var(--color-ink); }

/* Brand mark — colored via currentColor on the SVG paths */
.brand-mark {
  height: 36px; width: auto;
  color: var(--color-primary);  /* sets fill of currentColor paths */
  flex-shrink: 0;
}
.brand-mark--light { color: #FFFFFF; }

.brand-wordmark {
  display: flex; flex-direction: column; line-height: 1;
}
.brand-name {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--color-ink);
}
.brand-tagline {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-accent-d);
  margin-top: 4px;
}

/* Footer variant */
.footer-brand {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 14px;
}
.footer-brand .brand-mark { height: 32px; }
.nav-links {
  display: flex; align-items: center; gap: 32px;
  list-style: none; margin: 0; padding: 0;
}
.nav-links a {
  color: var(--color-ink-soft);
  font-weight: 500;
  font-size: 0.95rem;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--color-primary);
  text-decoration: none;
}
.nav-cta {
  display: inline-flex;
  background: var(--color-primary) !important;
  color: #FFFFFF !important;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 2px 8px rgba(27,73,101,0.18);
  transition: background 0.15s ease, box-shadow 0.15s ease;
}
.nav-cta:hover {
  background: var(--color-primary-d) !important;
  color: #FFFFFF !important;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(27,73,101,0.28);
}
.nav-toggle {
  display: none;
  background: transparent; border: 0;
  font-size: 1.6rem; cursor: pointer; color: var(--color-ink);
}

@media (max-width: 820px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: 72px; left: 0; right: 0;
    background: var(--color-card);
    padding: 16px 24px 24px;
    border-bottom: 1px solid var(--color-line);
    gap: 16px;
    align-items: flex-start;
  }
  .nav-links.open .nav-cta { width: 100%; text-align: center; justify-content: center; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 96px 0 80px;
  overflow: hidden;
  background: var(--color-bg);
}
/* Dark navy hero variant — used on home */
.hero--dark {
  background: linear-gradient(180deg, #0E1A2B 0%, #133649 100%);
  color: #F0EAE0;
  padding: 110px 0 96px;
}
.hero--dark h1, .hero--dark h2, .hero--dark h3 { color: #FFFFFF; }
.hero--dark p { color: #C9D5E2; }
.hero--dark p.lead { color: #DCE3EC; }
.hero--dark .hero-eyebrow { color: var(--color-accent); }
/* Subtle rainbow watermark in the upper-left for the dark hero */
.hero--dark::after {
  content: "";
  position: absolute;
  left: -8%; top: -28%;
  width: 60%; aspect-ratio: 125 / 55;
  background-image: url('/assets/images/logo-icon.svg');
  background-repeat: no-repeat;
  background-size: contain;
  background-position: left center;
  opacity: 0.06;
  pointer-events: none;
  filter: brightness(0) invert(1);  /* makes the SVG render white */
}

.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--gradient-rainbow);
  opacity: 0.06;
  pointer-events: none;
}
.hero--dark::before { display: none; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent-d);
  margin-bottom: 14px;
}
.hero h1 { margin-bottom: 18px; }
.hero p.lead { margin-bottom: 28px; max-width: 540px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-card {
  background: var(--color-card);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-lg);
  color: var(--color-ink);
}

@media (max-width: 880px) {
  .hero { padding: 56px 0 48px; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.98rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.05s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  text-decoration: none;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--color-primary); color: #FFFFFF;
  box-shadow: 0 1px 0 rgba(255,255,255,0.12) inset, 0 6px 16px rgba(27,73,101,0.22);
}
.btn-primary:hover {
  background: var(--color-primary-d); color: #FFFFFF; text-decoration: none;
  box-shadow: 0 1px 0 rgba(255,255,255,0.12) inset, 0 8px 22px rgba(27,73,101,0.3);
}
.btn-gold {
  background: var(--color-accent); color: #1A0F00;
  box-shadow: 0 6px 16px rgba(229,166,87,0.3);
}
.btn-gold:hover { background: var(--color-accent-d); color: #FFFFFF; text-decoration: none; }
.btn-ghost {
  background: transparent; color: var(--color-primary);
  border-color: var(--color-primary);
}
.btn-ghost:hover {
  background: var(--color-primary); color: #FFFFFF; border-color: var(--color-primary); text-decoration: none;
}
/* Light ghost for use on dark backgrounds */
.btn-ghost-light {
  background: transparent; color: #FFFFFF;
  border-color: rgba(255,255,255,0.5);
}
.btn-ghost-light:hover {
  background: rgba(255,255,255,0.1); border-color: #FFFFFF; color: #FFFFFF; text-decoration: none;
}
.btn-block { width: 100%; }

/* ---------- Sections ---------- */
section { padding: 80px 0; }
section.tight { padding: 56px 0; }
.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-head .eyebrow {
  display: inline-block;
  font-size: 0.82rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--color-accent-d);
  margin-bottom: 12px;
}
.section-alt { background: #fff; border-top: 1px solid var(--color-line); border-bottom: 1px solid var(--color-line); }

/* Dark navy section — for emphasis blocks */
.section-dark {
  background: linear-gradient(180deg, #0E1A2B 0%, #133649 100%);
  color: #DCE3EC;
}
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 { color: #FFFFFF; }
.section-dark p { color: #C9D5E2; }
.section-dark .lead { color: #DCE3EC; }
.section-dark .eyebrow, .section-dark .hero-eyebrow { color: var(--color-accent); }
.section-dark .quote { color: #FFFFFF; border-left-color: var(--color-accent); }
.section-dark .quote-meta { color: #C9D5E2; }
.section-dark .quote-meta strong { color: #FFFFFF; }

/* Stats / proof bar */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 32px;
  text-align: center;
}
.stat .stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1;
  color: var(--color-accent);
  letter-spacing: -0.02em;
}
.stat .stat-label {
  display: block;
  margin-top: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #B8C4D0;
}

/* ---------- Cards / Grids ---------- */
.cards {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.card {
  background: var(--color-card);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: #d6deea;
}
.card-tag {
  display: inline-block;
  padding: 4px 10px;
  background: rgba(198, 138, 58, 0.12);
  border-radius: 100px;
  font-size: 0.74rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--color-accent-d);
  margin-bottom: 14px;
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--color-ink-soft); margin-bottom: 0; font-size: 0.98rem; }
.card .meta {
  display: inline-block;
  margin-top: 14px;
  font-size: 0.88rem;
  color: var(--color-muted);
}

/* Two-up split layout */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.split img { border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.split.alt > div:first-child { order: 2; }
@media (max-width: 880px) {
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split.alt > div:first-child { order: initial; }
}

/* ---------- Values list ---------- */
.values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.value {
  padding: 24px;
  border-left: 3px solid var(--color-accent);
  background: #fff;
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: var(--shadow-sm);
}
.value h4 { color: var(--color-primary); margin-bottom: 6px; }
.value p { color: var(--color-ink-soft); margin: 0; font-size: 0.96rem; }

/* ---------- Project cards ---------- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}
.project-card {
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.project-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.project-image {
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, #DCE6EF, #B6C7D9);
  background-size: cover;
  background-position: center;
}
.project-body { padding: 22px 24px 26px; }
.project-tag {
  display: inline-block;
  font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--color-accent-d);
  margin-bottom: 8px;
}
.project-card h3 { font-size: 1.2rem; margin-bottom: 6px; }
.project-card .location {
  color: var(--color-muted);
  font-size: 0.9rem;
  margin-bottom: 12px;
}
.project-card p { font-size: 0.97rem; color: var(--color-ink-soft); margin: 0; }
.project-status {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.76rem;
  font-weight: 600;
  margin-left: 8px;
  vertical-align: middle;
}
.project-status.active   { background: #E5F2EA; color: #2E7D4F; }
.project-status.upcoming { background: #FFF4E0; color: #A97300; }
.project-status.complete { background: #EAEFF6; color: #2A4A6E; }

/* ---------- SMS Form ---------- */
.sms-form { display: flex; flex-direction: column; gap: 14px; }
.sms-form label { font-size: 0.92rem; font-weight: 600; color: var(--color-ink-soft); }
.sms-form input[type="text"],
.sms-form input[type="tel"],
.sms-form input[type="email"],
.sms-form textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: inherit;
  background: #fff;
  color: var(--color-ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.sms-form input:focus,
.sms-form textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(27,73,101,0.12);
}
.sms-form textarea { min-height: 90px; resize: vertical; }
.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.86rem;
  color: var(--color-ink-soft);
  line-height: 1.5;
}
.consent input[type="checkbox"] {
  margin-top: 4px;
  width: 16px; height: 16px;
  flex-shrink: 0;
}
.disclaimer {
  font-size: 0.78rem;
  color: var(--color-muted);
  line-height: 1.55;
  margin: 0;
}
.disclaimer a { color: var(--color-muted); text-decoration: underline; }
.form-success {
  display: none;
  padding: 14px 16px;
  background: #E5F2EA;
  color: #2E7D4F;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
}

/* ---------- Bio / Leader section ---------- */
.bio-grid {
  display: grid;
  grid-template-columns: minmax(260px, 360px) 1fr;
  gap: 56px;
  align-items: center;
}
.bio-photo {
  position: relative;
  aspect-ratio: 3/4;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #0E1A2B 0%, #1B4965 100%);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.bio-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.bio-photo-placeholder {
  display: flex; align-items: center; justify-content: center;
  height: 100%;
  color: rgba(255,255,255,0.4);
  font-size: 0.92rem;
  text-align: center;
  padding: 24px;
}
.bio-meta {
  display: flex; flex-direction: column; gap: 2px;
  margin-bottom: 14px;
}
.bio-meta .bio-name {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--color-ink);
  line-height: 1.1;
}
.bio-meta .bio-title {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent-d);
}
/* When bio sits inside a dark navy section, flip name + title to readable colors */
.section-dark .bio-meta .bio-name { color: #FFFFFF; }
.section-dark .bio-meta .bio-title { color: var(--color-accent); }
@media (max-width: 760px) {
  .bio-grid { grid-template-columns: 1fr; gap: 32px; }
  .bio-photo { max-width: 320px; margin: 0 auto; }
}

/* ---------- Quote / Testimonial ---------- */
.quote {
  font-family: var(--font-display);
  font-size: 1.4rem;
  line-height: 1.45;
  font-style: italic;
  color: var(--color-ink);
  border-left: 3px solid var(--color-accent);
  padding: 8px 0 8px 24px;
  margin: 0;
}
.quote-meta { margin-top: 16px; font-size: 0.95rem; color: var(--color-muted); }
.quote-meta strong { color: var(--color-ink); font-weight: 600; }

/* ---------- Legal pages (privacy / terms) ---------- */
.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 24px 80px;
}
.legal h1 { margin-bottom: 6px; }
.legal .effective { color: var(--color-muted); margin-bottom: 32px; font-size: 0.95rem; }
.legal h2 { font-size: 1.35rem; margin-top: 36px; margin-bottom: 10px; }
.legal h3 { font-size: 1.05rem; margin-top: 18px; margin-bottom: 6px; color: var(--color-primary); }
.legal ul { padding-left: 1.4em; }
.legal li { margin-bottom: 6px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-primary-d);
  color: #DDE5EE;
  padding: 56px 0 28px;
  font-size: 0.95rem;
}
.site-footer h4 { color: #fff; margin-bottom: 12px; font-size: 1rem; }
.site-footer a { color: #DDE5EE; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 32px;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-tagline { max-width: 320px; color: #BFCAD8; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 22px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  color: #BFCAD8;
  font-size: 0.86rem;
}
.footer-verse { font-style: italic; max-width: 460px; }

@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 16px; }
.mt-4 { margin-top: 32px; }
.muted { color: var(--color-muted); }
