/* ==========================================================================
   Stonebridge Land Co. — styles.css
   Mobile-first, no framework, no build step.
   ========================================================================== */

:root {
  --green-deep: #1e3a2f;
  --green-mid: #2c4e3d;
  --green-soft: #48644a;
  --cream: #f7f3ea;
  --cream-dark: #efe8d8;
  --tan: #c9b98a;
  --ink: #26302a;
  --ink-soft: #4d574f;
  --white: #fffdf8;

  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --container: 68rem;
  --radius: 8px;
}

/* ---------- Reset & base ---------- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 4.5rem; /* keep anchored headings clear of the sticky header */
}

body {
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

h1,
h2,
h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.2;
  color: var(--green-deep);
}

h1 { font-size: clamp(2.1rem, 5.5vw, 3.4rem); }
h2 { font-size: clamp(1.65rem, 3.5vw, 2.3rem); margin-bottom: 1.25rem; }
h3 { font-size: 1.2rem; margin-bottom: 0.35rem; }

p + p { margin-top: 1.1rem; }

a { color: var(--green-mid); }

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

.narrow { max-width: 46rem; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 0.9rem 1.9rem;
  border: none;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--green-deep);
  color: var(--cream);
}
.btn-primary:hover { background: var(--green-mid); }

.btn-light {
  background: var(--cream);
  color: var(--green-deep);
}
.btn-light:hover { background: var(--white); }

.btn-block {
  display: block;
  width: 100%;
  text-align: center;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--cream-dark);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.brand-mark { width: 2.1rem; height: 2.1rem; flex-shrink: 0; }

.brand-name {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--green-deep);
  letter-spacing: 0.01em;
}

.brand-sub { font-weight: 400; }

/* Mobile nav (checkbox hack — no JS) */

.nav-toggle { display: none; }

.nav-toggle-label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  cursor: pointer;
}

.nav-toggle-label span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--green-deep);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-links {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  list-style: none;
  background: var(--white);
  border-bottom: 1px solid var(--cream-dark);
  padding: 0.5rem 1.25rem 1rem;
}

.nav-toggle:checked ~ .nav-links { display: block; }

.nav-toggle:checked + .nav-toggle-label span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle:checked + .nav-toggle-label span:nth-child(2) { opacity: 0; }
.nav-toggle:checked + .nav-toggle-label span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-links a {
  display: block;
  padding: 0.65rem 0;
  font-weight: 600;
  text-decoration: none;
  color: var(--green-deep);
}

.nav-links a:hover { color: var(--green-soft); }

@media (min-width: 48rem) {
  .nav-toggle-label { display: none; }

  .nav-links {
    display: flex;
    position: static;
    align-items: center;
    gap: 1.75rem;
    background: none;
    border: none;
    padding: 0;
  }

  .nav-links a { padding: 0.25rem 0; }

  .nav-cta {
    background: var(--green-deep);
    color: var(--cream) !important;
    padding: 0.5rem 1.2rem !important;
    border-radius: var(--radius);
  }
  .nav-cta:hover { background: var(--green-mid); }
}

/* ---------- Hero ---------- */

.hero {
  background: linear-gradient(180deg, var(--green-deep) 0%, var(--green-mid) 100%);
  color: var(--cream);
  overflow: hidden;
}

.hero-inner {
  padding-top: clamp(3.5rem, 9vw, 6.5rem);
  padding-bottom: clamp(2rem, 5vw, 3.5rem);
  max-width: 46rem;
  text-align: center;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 1.25rem;
}

.hero-subhead {
  font-size: 1.15rem;
  color: var(--cream);
  opacity: 0.92;
  margin-bottom: 2rem;
}

.hero .btn-primary {
  background: var(--tan);
  color: var(--green-deep);
}
.hero .btn-primary:hover { background: var(--cream); }

.hero-landscape {
  width: 100%;
  height: clamp(140px, 22vw, 320px);
  margin-bottom: -1px; /* avoid subpixel seam against next section */
}

/* ---------- Sections ---------- */

.section {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
}

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

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

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

.eyebrow {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-soft);
  margin-bottom: 0.75rem;
}

.eyebrow-light { color: var(--tan); }

.section-heading-gap { margin-top: clamp(3rem, 6vw, 4.5rem); }

.section-cta { margin-top: 2.5rem; }

/* ---------- Steps (How it works) ---------- */

.steps {
  list-style: none;
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
}

.step {
  background: var(--cream);
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: var(--green-deep);
  color: var(--cream);
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
}

.step p { color: var(--ink-soft); }

@media (min-width: 48rem) {
  .steps { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 64rem) {
  .steps { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Benefits (Why owners sell to us) ---------- */

.benefits {
  list-style: none;
  display: grid;
  gap: 1.25rem 2.5rem;
  margin-top: 1.5rem;
}

.benefits li {
  padding-left: 2rem;
  position: relative;
}

.benefits li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 1.1rem;
  height: 1.1rem;
  background: var(--tan);
  border-radius: 50%;
  /* checkmark */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5 7 11l5-6' stroke='%231e3a2f' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 0.8rem;
  background-position: center;
  background-repeat: no-repeat;
}

.benefits p { color: var(--ink-soft); }

@media (min-width: 48rem) {
  .benefits { grid-template-columns: repeat(2, 1fr); }
}

.situations {
  margin-top: 2.5rem;
  padding: 1.5rem 1.75rem;
  background: var(--cream);
  border-left: 4px solid var(--tan);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--ink-soft);
}

.situations strong { color: var(--ink); }

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  gap: 3rem;
}

@media (min-width: 48rem) {
  .contact-grid {
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: start;
  }
}

.contact-direct { margin-top: 2rem; }

.contact-direct-label {
  font-weight: 700;
  color: var(--green-deep);
  margin-bottom: 0.5rem;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--green-mid);
  padding: 0.3rem 0;
}

.contact-link:hover { text-decoration: underline; }

.contact-link svg {
  width: 1.15rem;
  height: 1.15rem;
  flex-shrink: 0;
}

/* Form */

.contact-form {
  background: var(--white);
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  box-shadow: 0 2px 12px rgba(30, 58, 47, 0.06);
}

.form-field { margin-bottom: 1.25rem; }

.form-field label {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--green-deep);
  margin-bottom: 0.4rem;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid #cfc9b8;
  border-radius: var(--radius);
}

.form-field input:focus,
.form-field textarea:focus {
  outline: 2px solid var(--green-soft);
  outline-offset: 1px;
  border-color: var(--green-soft);
}

.form-field textarea { resize: vertical; }

.form-consent {
  margin-bottom: 1.25rem;
}

.form-consent label {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  cursor: pointer;
}

.form-consent input[type="checkbox"] {
  flex-shrink: 0;
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.2rem;
  accent-color: var(--green-deep);
}

.form-consent span {
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

.form-consent a {
  color: var(--green-mid);
}

.honeypot {
  position: absolute;
  left: -9999px;
  height: 0;
  width: 0;
  border: 0;
  padding: 0;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--green-deep);
  color: var(--cream);
  text-align: center;
  padding: 3rem 0 2.5rem;
  font-size: 0.95rem;
}

.site-footer a {
  color: var(--tan);
  text-decoration: none;
}

.site-footer a:hover { text-decoration: underline; }

.footer-brand {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.25rem;
}

.footer-disclaimer {
  max-width: 44rem;
  margin: 1.5rem auto 0;
  font-size: 0.85rem;
  opacity: 0.75;
  line-height: 1.6;
}

.footer-legal {
  margin-top: 1rem;
  font-size: 0.85rem;
}

.footer-copyright {
  margin-top: 1.5rem;
  font-size: 0.85rem;
  opacity: 0.6;
}
