/* ==========================================================================
   Freedom Property Management — freedomproperty.org
   Rebuilt as static HTML/CSS (replaces Wix)
   ========================================================================== */

/* ---------- Raleway (self-hosted variable font, SIL OFL 1.1) ---------- */
@font-face {
  font-family: "Raleway";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/raleway-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Raleway";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/raleway-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Tokens ---------- */
:root {
  --green:        #7fb841;
  --green-mark:   #8db653;
  --green-dark:   #6aa033;
  --charcoal:     #3c3c4e;
  --ink:          #1b1b1e;
  --white:        #ffffff;
  --off:          #fafafa;
  --muted:        #6b6b75;
  --rule:         rgba(27, 27, 30, 0.12);

  --container:    980px;
  --wide:         1200px;

  --sans: "Raleway", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --header-h: 84px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: var(--green-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 700; line-height: 1.1; }
p { margin: 0 0 1em; }
ul { margin: 0 0 1em; padding-left: 1.15em; }
li { margin-bottom: 0.45em; }

:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--white);
  color: var(--ink);
  padding: 12px 20px;
  font-weight: 700;
  border-radius: 0 0 4px 0;
}
.skip:focus { left: 0; }

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

/* ---------- Layout primitives ---------- */
.wrap {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}
.wrap--wide { max-width: var(--wide); }

.section { padding-block: 96px; position: relative; }
.section--tight { padding-block: 72px; }

/* Green tick above every section heading */
.tick {
  display: block;
  width: 30px;
  height: 6px;
  background: var(--green);
  margin-bottom: 26px;
}
.tick--light { background: var(--white); }

/* Big section headings — 80px on the original, fluid here */
.h-section {
  font-size: clamp(2.25rem, 6.2vw, 5rem);
  line-height: 1.04;
  letter-spacing: -0.015em;
  margin-bottom: 28px;
}
.h-sub {
  font-size: clamp(1.35rem, 2.4vw, 1.875rem);
  line-height: 1.3;
  margin-bottom: 12px;
}

.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.5625rem);
  line-height: 1.45;
  font-weight: 700;
  max-width: 62ch;
}
.lead .hl { color: var(--green); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 15px 34px;
  border: 2px solid var(--green);
  background: var(--green);
  color: var(--white);
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.btn:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
  color: var(--white);
  text-decoration: none;
}
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn--ghost:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }

.btn--onGreen {
  background: var(--white);
  border-color: var(--white);
  color: var(--ink);
}
.btn--onGreen:hover { background: var(--ink); border-color: var(--ink); color: var(--white); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--rule);
}
.site-header__inner {
  max-width: var(--wide);
  margin-inline: auto;
  padding: 0 24px;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.brand:hover { text-decoration: none; }
.brand svg { width: 42px; height: auto; }
.brand__text {
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  color: var(--charcoal);
  text-transform: uppercase;
  line-height: 1.15;
}
.brand__text span { display: block; font-weight: 400; font-size: 0.625rem; letter-spacing: 0.16em; color: var(--muted); }

/* Nav */
.nav { display: flex; align-items: center; }
.nav__list {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__link {
  display: block;
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  color: var(--green);
  padding: 10px 12px;
  white-space: nowrap;
}
.nav__link:hover { color: var(--green-dark); text-decoration: none; }
.nav__link[aria-current="page"] { color: var(--charcoal); }

/* Dropdown */
.nav__item--has-menu { position: relative; }
.nav__toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: inherit;
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--green);
  background: none;
  border: 0;
  padding: 10px 12px;
  cursor: pointer;
  letter-spacing: 0.02em;
}
.nav__toggle:hover { color: var(--green-dark); }
.nav__toggle svg { width: 10px; height: 10px; fill: currentColor; transition: transform 0.18s ease; }
.nav__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }

.nav__menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 210px;
  background: var(--white);
  border: 1px solid var(--rule);
  box-shadow: 0 12px 28px rgba(27, 27, 30, 0.12);
  list-style: none;
  margin: 0;
  padding: 8px 0;
}
.nav__menu[hidden] { display: none !important; }
.nav__menu a {
  display: block;
  padding: 10px 18px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--charcoal);
}
.nav__menu a:hover { background: var(--off); color: var(--green-dark); text-decoration: none; }

/* Mobile nav button */
.nav-burger {
  display: none;
  width: 44px; height: 44px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 10px;
}
.nav-burger span {
  display: block;
  height: 2px;
  background: var(--charcoal);
  margin: 5px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 620px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 90px 24px;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(127, 184, 65, 0.89);
}
.hero__inner { position: relative; z-index: 1; max-width: 900px; }
.hero__logo { width: min(100%, 680px); margin: 0 auto 28px; }
.hero__tagline {
  font-size: clamp(1.05rem, 2.3vw, 1.5rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0;
}

/* ==========================================================================
   Sections
   ========================================================================== */

/* WHY CHOOSE US — charcoal */
.s-why {
  background: var(--charcoal);
  color: var(--white);
}
.s-why .h-section { color: var(--white); }
.s-why .lead { color: var(--white); }

/* OUR PROMISE — photo background, light veil */
.s-promise {
  position: relative;
  background: var(--off);
  isolation: isolate;
}
.s-promise__bg { position: absolute; inset: 0; z-index: -2; }
.s-promise__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }
.s-promise::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(255, 255, 255, 0.72);
}
/* Keep the two text columns legible over the photograph */
.s-promise .col p { color: var(--ink); }

.cols-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 56px;
  margin-top: 44px;
}
.col__title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.col p:last-child { margin-bottom: 0; }

/* OUR VISION — green with white card */
.s-vision { background: var(--green); }
.s-vision .h-section { color: var(--white); }

.card {
  display: grid;
  grid-template-columns: 42% 1fr;
  background: var(--white);
  margin-top: 12px;
}
.card__media { position: relative; min-height: 380px; }
.card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card__body { padding: 48px 44px; }
.card__body .h-sub { margin-top: 0; }
.card__body .h-sub + p { margin-bottom: 32px; }
.card__body ul { margin-bottom: 0; }
.card__body li strong { font-weight: 700; }

/* OUR STORY — white, text left / photo right */
.s-story { background: var(--white); }
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  margin-top: 40px;
}
.split__media img { width: 100%; height: auto; }
.split__body .h-sub { margin-bottom: 10px; }
.split__body .block + .block { margin-top: 36px; }
.split__body p:last-child { margin-bottom: 0; }

/* RENT ESTIMATE — sits over the house background */
.s-rent {
  position: relative;
  isolation: isolate;
  background: var(--off);
  padding-block: 96px;
}
.s-rent__bg { position: absolute; inset: 0; z-index: -2; }
.s-rent__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.s-rent::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(250, 250, 250, 0.88);
}
.s-rent .h-section { color: var(--green); }
.embed {
  background: var(--white);
  box-shadow: 0 18px 50px rgba(27, 27, 30, 0.14);
  margin-top: 8px;
}
.embed iframe {
  display: block;
  width: 100%;
  height: 820px;
  border: 0;
}
.embed__fallback {
  padding: 18px 24px;
  font-size: 0.9375rem;
  color: var(--muted);
  border-top: 1px solid var(--rule);
  margin: 0;
}

/* ARE YOU READY */
.s-ready { background: var(--white); }
.s-ready .split { align-items: center; }
.s-ready .h-section { margin-bottom: 20px; }
.s-ready h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.s-ready p { color: var(--charcoal); margin-bottom: 26px; }

/* ==========================================================================
   Contact
   ========================================================================== */
.s-contact { background: var(--green); }
.s-contact .h-section { color: var(--white); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  margin-top: 20px;
  align-items: start;
}

.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--white);
  margin-bottom: 6px;
}
.field input,
.field textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid rgba(27, 27, 30, 0.15);
  padding: 12px 14px;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus,
.field textarea:focus { outline: 3px solid var(--ink); outline-offset: 1px; }

.contact-info { color: var(--ink); }
.contact-info h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 18px;
}
.contact-info address {
  font-style: normal;
  margin-bottom: 18px;
  line-height: 1.5;
}
.contact-info a { color: var(--ink); font-weight: 700; }
.contact-info a:hover { color: var(--white); }
.consent {
  font-size: 0.8125rem;
  line-height: 1.55;
  color: rgba(27, 27, 30, 0.85);
  margin-top: 26px;
}
.consent a { font-weight: 600; color: var(--ink); text-decoration: underline; }

.form-status {
  margin-top: 16px;
  padding: 14px 18px;
  background: var(--white);
  border: 1px solid rgba(27, 27, 30, 0.18);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.9375rem;
}
.form-status--error { background: var(--ink); color: var(--white); border-color: var(--ink); }
.form-status[hidden] { display: none !important; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--charcoal);
  color: var(--white);
  padding-block: 54px;
}
.site-footer__inner {
  max-width: var(--wide);
  margin-inline: auto;
  padding-inline: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px 40px;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
}
.site-footer p { margin: 0; }
.site-footer a { color: var(--white); }
.site-footer nav { display: flex; gap: 24px; flex-wrap: wrap; }

/* ==========================================================================
   Interior pages (blog, post, legal)
   ========================================================================== */
.page-head {
  background: var(--charcoal);
  color: var(--white);
  padding-block: 76px;
}
.page-head h1 {
  font-size: clamp(2rem, 5vw, 3.75rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
}
.page-head p { margin: 14px 0 0; color: rgba(255, 255, 255, 0.85); max-width: 60ch; }

.prose { padding-block: 72px; }
.prose h2 { font-size: 1.75rem; margin: 44px 0 14px; }
.prose h3 { font-size: 1.375rem; margin: 36px 0 12px; }
.prose h4 { font-size: 1.1875rem; margin: 32px 0 10px; }
.prose > :first-child { margin-top: 0; }
.prose p, .prose li { font-size: 1.0625rem; line-height: 1.72; }
.prose ul { padding-left: 1.3em; }
.prose li { margin-bottom: 0.75em; }
.prose .meta {
  font-size: 0.875rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 28px;
}
.prose hr { border: 0; border-top: 1px solid var(--rule); margin: 48px 0; }

.legal p b, .legal p strong { display: block; margin-top: 30px; font-size: 1.0625rem; }
.legal p:first-of-type b { margin-top: 0; }

.post-hero { margin: 0 0 40px; }
.post-hero img { width: 100%; height: auto; }

.post-cta {
  background: var(--off);
  border: 1px solid var(--rule);
  padding: 32px 34px;
  margin-top: 48px;
}
.post-cta .tick { margin-bottom: 18px; }
.post-cta p:last-child { margin-bottom: 0; }

/* Blog index */
.post-list { display: grid; gap: 40px; padding-block: 72px; }
.post-card {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 32px;
  align-items: center;
  border: 1px solid var(--rule);
  background: var(--white);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.post-card:hover { box-shadow: 0 14px 34px rgba(27, 27, 30, 0.1); transform: translateY(-2px); }
.post-card__media { align-self: stretch; position: relative; min-height: 220px; }
.post-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.post-card__body { padding: 28px 32px 28px 0; }
.post-card h2 { font-size: 1.5rem; line-height: 1.22; margin-bottom: 12px; }
.post-card h2 a { color: var(--ink); }
.post-card h2 a:hover { color: var(--green-dark); text-decoration: none; }
.post-card__meta {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 10px;
}
.post-card p { color: var(--charcoal); margin-bottom: 0; }

.back-link {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 32px;
}

/* 404 */
.err { text-align: center; padding-block: 120px; }
.err .h-section { margin-bottom: 16px; }
.err .tick { margin-inline: auto; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1040px) {
  :root { --header-h: 72px; }

  .nav-burger { display: block; }

  .nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--rule);
    box-shadow: 0 14px 30px rgba(27, 27, 30, 0.1);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    padding: 8px 0 18px;
  }
  .nav[hidden] { display: none !important; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__link, .nav__toggle {
    width: 100%;
    padding: 14px 24px;
    font-size: 1rem;
    border-bottom: 1px solid var(--rule);
    justify-content: space-between;
  }
  .nav__item--has-menu { position: static; }
  .nav__menu {
    position: static;
    border: 0;
    box-shadow: none;
    padding: 0;
    background: var(--off);
  }
  .nav__menu a { padding: 13px 40px; border-bottom: 1px solid var(--rule); }
}

@media (max-width: 900px) {
  .section { padding-block: 68px; }
  .cols-2, .split, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .split { margin-top: 32px; }
  .split--flip .split__media { order: -1; }
  .card { grid-template-columns: 1fr; }
  .card__media { min-height: 260px; }
  .card__body { padding: 34px 26px; }
  .post-card { grid-template-columns: 1fr; }
  .post-card__media { min-height: 200px; }
  .post-card__body { padding: 26px 26px 30px; }
  .embed iframe { height: 900px; }
  .hero { min-height: 480px; padding-block: 70px; }
  .site-footer__inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding-inline: 18px; }
  .section { padding-block: 56px; }
  .btn { width: 100%; text-align: center; }
  .brand__text { display: none; }
  .embed iframe { height: 1000px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

@media print {
  .site-header, .site-footer, .s-contact, .s-rent, .hero { display: none; }
  body { font-size: 12pt; }
}
