/* ==========================================================================
   Mega Land — single-page site
   Brand tokens ported verbatim from the original Mega Land Buyers design.
   ========================================================================== */

:root {
  --ink: #12231A;
  --paper: #FAFAF7;
  --panel: #EEF2EC;
  --forest: #1B5E3F;
  --forest-deep: #123B28;
  --kelly: #3CAE47;
  --kelly-deep: #2F8C39;
  --mint: #8FE0A6;
  --gold: #E8B84B;
  --footer: #0C1810;
  --line: rgba(18, 35, 26, 0.12);

  --font-head: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --header-h: 78px;
  --wrap: 1160px;
}

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

html {
  scroll-behavior: smooth;
  /* Anchor targets clear the sticky header. */
  scroll-padding-top: var(--header-h);
  /* Stop iOS inflating text when the phone is rotated to landscape. */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.01em;
  color: var(--ink);
}

p { margin: 0; }

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

.mono { font-family: var(--font-mono); }

section { padding: 96px 0; position: relative; }

.lede {
  font-size: 17.5px;
  color: rgba(18, 35, 26, 0.68);
  line-height: 1.6;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--kelly-deep);
  font-weight: 600;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.eyebrow::before {
  content: '';
  width: 18px;
  height: 1.5px;
  background: var(--kelly-deep);
  display: inline-block;
  flex-shrink: 0;
}

.eyebrow.center { justify-content: center; }

/* Screen-reader-only, plus a visible skip link on focus. */
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  background: #fff;
  color: var(--ink);
  padding: 10px 18px;
  border-radius: 6px;
  font-weight: 700;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 12px; }

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

.btn-primary {
  background: var(--kelly);
  color: #fff;
  padding: 16px 32px;
  border-radius: 30px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  display: inline-block;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn-primary:hover { background: var(--kelly-deep); transform: translateY(-2px); }

.btn-ghost {
  padding: 16px 28px;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  border-radius: 30px;
  font-weight: 700;
  font-size: 15px;
  color: #fff;
  display: inline-block;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.btn-ghost:hover { border-color: #fff; transform: translateY(-2px); }

/* ---------- Header (sticky, drives the anchor nav) ---------- */

#site-header {
  background: var(--forest-deep);
  position: sticky;
  top: 0;
  z-index: 100;
}

#site-header .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: var(--header-h);
}

/* The wordmark ships knocked out to white (assets/logo-on-dark.png), so it
   sits straight on the forest header with no container. The original
   dark-green mark is kept for light backgrounds and the favicon. */
#site-header .logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
#site-header .logo img { height: 42px; width: auto; }

#site-header nav { display: flex; gap: 30px; align-items: center; }

#site-header nav a.navlink {
  font-size: 14.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.82);
  padding: 6px 0;
  position: relative;
  transition: color 0.15s ease;
}
#site-header nav a.navlink:hover { color: #fff; }

/* Scrollspy underline for the section currently in view. */
#site-header nav a.navlink::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--mint);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}
#site-header nav a.navlink.is-active { color: #fff; }
#site-header nav a.navlink.is-active::after { transform: scaleX(1); }

.cta-small {
  background: var(--kelly);
  color: #fff;
  padding: 10px 20px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
  transition: background 0.15s ease;
}
.cta-small:hover { background: var(--kelly-deep); }

/* Mobile menu button */
.nav-toggle {
  display: none;
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  border-radius: 6px;
  width: 42px;
  height: 42px;
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: #fff;
  position: relative;
  transition: background 0.15s ease;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: #fff;
  transition: transform 0.2s ease;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

.nav-toggle[aria-expanded='true'] span { background: transparent; }
.nav-toggle[aria-expanded='true'] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded='true'] span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: flex; }

  #site-header nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--forest-deep);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 18px 30px rgba(0, 0, 0, 0.25);
    display: none;
  }
  #site-header nav.is-open { display: flex; }

  #site-header nav a.navlink {
    padding: 14px 0;
    font-size: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  #site-header nav a.navlink::after { display: none; }
  #site-header nav a.navlink.is-active { color: var(--mint); }

  .cta-small { margin-top: 18px; text-align: center; padding: 14px 20px; }
}

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

#hero {
  min-height: calc(100vh - var(--header-h));
  /* svh tracks the visible area, so a phone's collapsing URL bar cannot
     push the buttons below the fold. Falls back to vh where unsupported. */
  min-height: calc(100svh - var(--header-h));
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 80px 24px;
}

#hero .kb-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: kenburns 24s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes kenburns {
  0%   { transform: scale(1) translate(0, 0); }
  100% { transform: scale(1.14) translate(-1.5%, -1.5%); }
}

#hero .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(18, 35, 26, 0.35) 0%,
    rgba(18, 35, 26, 0.55) 55%,
    rgba(18, 35, 26, 0.82) 100%
  );
}

#hero .content { position: relative; z-index: 2; color: #fff; max-width: 760px; }

#hero .eyebrow { color: var(--mint); justify-content: center; }
#hero .eyebrow::before { background: var(--mint); }

#hero h1 {
  color: #fff;
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.05;
}

#hero .lede {
  color: rgba(255, 255, 255, 0.86);
  max-width: 60ch;
  margin: 20px auto 0;
}

#hero .cta-row {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-top: 34px;
  flex-wrap: wrap;
}

/* ---------- Trust strip ---------- */

#trust { background: var(--forest); padding: 0; }

/* minmax(0,...) rather than 1fr: a long word like "Straightforward" sets a
   min-content floor that would otherwise widen its column and knock the four
   cells out of alignment. */
#trust .strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }

#trust .item {
  padding: 34px 20px;
  text-align: center;
  border-left: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
#trust .item:first-child { border-left: none; }

/* One size for every cell, as in the original design. The values here are
   phrases rather than the short figures the original used, so they wrap to
   more lines; break-word is the safety net that keeps a long word from
   spilling past its cell at narrow widths. */
#trust .num {
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 600;
  color: #fff;
  line-height: 1.25;
  overflow-wrap: break-word;
}

#trust .label {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.72);
  margin-top: 6px;
  letter-spacing: 0.03em;
}

/* Below 900px the four columns get narrow enough that 26px pushes the longest
   value ("Inherited & Unwanted Property") onto a fourth line. 22px keeps every
   cell within three lines, and all four still share the one size. */
/* Four columns only once there is genuinely room for them. Below ~1024px each
   of the four cells is narrow enough that these phrases start needing a third
   line (and the type has to shrink hard to avoid it), so the strip drops to
   two columns instead. */
@media (max-width: 1023px) {
  #trust .strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #trust .item:nth-child(3) { border-left: none; }
  #trust .item:nth-child(n + 3) { border-top: 1px solid rgba(255, 255, 255, 0.14); }
  #trust .num { font-size: 22px; }
}

@media (max-width: 760px) {
}

/* ---------- Why Choose Us ---------- */

#why { background: var(--panel); }
#why .head { text-align: center; max-width: 700px; margin: 0 auto; }
#why h2 { font-size: clamp(28px, 4vw, 40px); }

#why .grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 52px;
}
@media (max-width: 800px) { #why .grid { grid-template-columns: 1fr; } }

#why .card {
  background: #fff;
  border-radius: 12px;
  padding: 34px 28px;
  border: 1px solid var(--line);
}
#why .card.hl { background: var(--forest); border-color: var(--forest); }

#why .card .idx {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--kelly-deep);
  margin-bottom: 20px;
}
#why .card.hl .idx { color: var(--mint); }

#why .card h3 { font-size: 20px; margin-bottom: 10px; }
#why .card.hl h3 { color: #fff; }
#why .card p { font-size: 14.5px; color: rgba(18, 35, 26, 0.66); }
#why .card.hl p { color: rgba(255, 255, 255, 0.82); }

/* ---------- About ---------- */

#about .grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 900px) { #about .grid { grid-template-columns: 1fr; gap: 36px; } }

#about h2 { font-size: clamp(28px, 4vw, 40px); max-width: 14ch; }

#about .parcel-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 26px;
}
#about .parcel-card .row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
}
#about .parcel-card .row:first-child { border-top: none; }
#about .parcel-card .row span:first-child {
  color: rgba(18, 35, 26, 0.6);
  font-family: var(--font-mono);
  font-size: 12.5px;
}
#about .parcel-card .row span:last-child { font-weight: 600; text-align: right; }

/* ---------- How It Works ---------- */

#how-it-works .head { text-align: center; }
#how-it-works h2 { font-size: clamp(28px, 4vw, 40px); }

#how-it-works .steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 56px;
  position: relative;
}
@media (max-width: 800px) {
  #how-it-works .steps { grid-template-columns: 1fr; gap: 40px; }
}

#how-it-works .step { padding: 0 26px; text-align: center; position: relative; }

#how-it-works .step .n {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--kelly-deep);
  margin-bottom: 14px;
}
#how-it-works .step h3 { font-size: 19px; margin-bottom: 10px; }
#how-it-works .step p {
  font-size: 14.5px;
  color: rgba(18, 35, 26, 0.64);
  max-width: 32ch;
  margin: 0 auto;
}

/* Dashed connector between steps. */
#how-it-works .step::after {
  content: '';
  position: absolute;
  top: 8px;
  left: calc(50% + 70px);
  right: calc(-50% + 70px);
  border-top: 1.5px dashed var(--line);
}
#how-it-works .step:last-child::after { display: none; }
@media (max-width: 800px) { #how-it-works .step::after { display: none; } }

/* ---------- Testimonials ---------- */

#testimonials { background: var(--forest-deep); text-align: center; }
#testimonials .eyebrow { color: var(--mint); justify-content: center; }
#testimonials .eyebrow::before { background: var(--mint); }
#testimonials h2 { color: #fff; font-size: clamp(28px, 4vw, 40px); }

#testimonials .grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin: 50px auto 0;
  max-width: 960px;
}
@media (max-width: 800px) {
  #testimonials .grid { grid-template-columns: 1fr; max-width: 400px; }
}

#testimonials .card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 30px 26px;
  text-align: left;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
#testimonials .stars {
  color: var(--gold);
  font-size: 13px;
  letter-spacing: 2px;
  margin-bottom: 14px;
}
#testimonials .quote { font-size: 15px; color: rgba(255, 255, 255, 0.85); line-height: 1.6; }
#testimonials .author { font-weight: 700; color: #fff; font-size: 14px; margin-top: 18px; }
#testimonials .role {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.55);
  font-family: var(--font-mono);
}

/* ---------- FAQ ---------- */

#faq .head { text-align: center; max-width: 560px; margin: 0 auto; }
#faq h2 { font-size: clamp(28px, 4vw, 40px); }
#faq .list { max-width: 760px; margin: 46px auto 0; }

#faq details { border-bottom: 1px solid var(--line); padding: 0 4px; }
/* Padding sits on the summary, not the details, so the whole row is tappable
   rather than just the 24px line of text. */
#faq summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 15.5px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  min-height: 44px;
}
#faq summary::-webkit-details-marker { display: none; }
#faq summary::after {
  content: '+';
  font-size: 20px;
  color: var(--kelly-deep);
  flex-shrink: 0;
  line-height: 1;
}
#faq details[open] summary::after { content: '\2212'; }
#faq .answer {
  /* Pulls back against the summary's tap-target padding so the visible gap
     between question and answer stays at 12px. */
  margin-top: -8px;
  padding-bottom: 20px;
  font-size: 15px;
  color: rgba(18, 35, 26, 0.65);
  max-width: 62ch;
}

/* ---------- Final CTA + form ---------- */

#contact { background: var(--forest); }

#contact .grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 50px;
  align-items: start;
}
@media (max-width: 860px) { #contact .grid { grid-template-columns: 1fr; gap: 36px; } }

#contact h2 { color: #fff; font-size: clamp(28px, 4vw, 38px); line-height: 1.2; }
#contact .lede { color: rgba(255, 255, 255, 0.82); margin-top: 18px; }

#contact .list { list-style: none; margin: 22px 0 0; padding: 0; }
#contact .list li {
  display: flex;
  gap: 10px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 15px;
  padding: 6px 0;
}
#contact .list li::before { content: '\2713'; color: var(--mint); font-weight: 700; }

#contact .closing { color: #fff; font-weight: 700; font-size: 15.5px; margin-top: 24px; }

#contact .form-panel { background: #fff; border-radius: 12px; padding: 32px; }
#contact .form-title {
  font-family: var(--font-mono);
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--kelly-deep);
  margin-bottom: 18px;
}

/* The form is a GoHighLevel iframe; its internals are styled in GHL, not
   here. form_embed.js overwrites the inline height as the form renders. */
#contact .form-panel iframe {
  display: block;
  width: 100%;
  border: none;
  border-radius: 8px;
}

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

/* Mirrors the header: same forest band, same logo, centred. */
#footer-mark {
  background: var(--forest-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px 24px;
}
#footer-mark img { height: 42px; width: auto; }

#footer {
  background: var(--footer);
  padding: 56px 24px 36px;
  text-align: center;
}
#footer h3 { color: #fff; font-size: 22px; margin-bottom: 20px; }
#footer .line { color: rgba(255, 255, 255, 0.82); font-size: 15px; margin-bottom: 12px; }
#footer .line a:hover { color: var(--mint); }

#footer .social { display: flex; justify-content: center; gap: 12px; margin: 24px 0 20px; }
#footer .social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease;
}
#footer .social a:hover { transform: translateY(-2px); }
#footer .social svg { width: 16px; height: 16px; fill: var(--footer); }

#footer .copy { color: rgba(255, 255, 255, 0.6); font-size: 13.5px; margin-bottom: 18px; }
#footer .legal {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 13.5px;
}
#footer .legal a { color: rgba(255, 255, 255, 0.75); }
#footer .legal a:hover { color: #fff; }
#footer .dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
}

/* ---------- Scroll reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Focus + reduced motion ---------- */

:focus-visible {
  outline: 2px solid var(--kelly);
  outline-offset: 3px;
  border-radius: 4px;
}
#hero :focus-visible,
#site-header :focus-visible,
#testimonials :focus-visible,
#contact .grid > div:first-child :focus-visible,
#footer :focus-visible {
  outline-color: var(--mint);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  #hero .kb-img { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 0.01ms !important; }
}

/* ==========================================================================
   Mobile refinements
   ========================================================================== */

@media (max-width: 760px) {
  /* Tighter rhythm. 96px between sections is a lot of thumb travel on a phone. */
  section { padding: 64px 0; }
  .wrap { padding: 0 20px; }

  #site-header .logo img { height: 36px; }

  #hero { padding: 56px 20px; }
  #hero h1 { font-size: clamp(32px, 8.5vw, 44px); }
  #hero .lede { font-size: 16px; margin-top: 16px; }

  /* Long eyebrows wrap to two lines; centre them and drop the leading rule,
     which reads as a stray dash once the text is no longer a single line. */
  #hero .eyebrow {
    flex-direction: column;
    gap: 8px;
    font-size: 11px;
    letter-spacing: 0.1em;
  }
  #hero .eyebrow::before { width: 24px; }

  /* Full-width stacked buttons are easier to hit than side-by-side pills. */
  #hero .cta-row { flex-direction: column; gap: 12px; margin-top: 28px; }
  #hero .cta-row a {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    text-align: center;
    padding: 16px 24px;
  }

  /* Trust strip: word values need a smaller face than "100%" or they
     spill past the cell dividers. */
  #trust .item { padding: 24px 12px; }
  #trust .label { font-size: 11.5px; line-height: 1.35; }

  #why .grid { gap: 18px; margin-top: 36px; }
  #why .card { padding: 28px 22px; }
  #why .card .idx { margin-bottom: 14px; }

  #about .parcel-card { padding: 20px; }

  /* The step columns already stack; the extra side padding just narrows
     the copy for no reason once they are full width. */
  #how-it-works .steps { margin-top: 36px; gap: 34px; }
  #how-it-works .step { padding: 0; }
  #how-it-works .step p { max-width: none; }

  /* Fixed 320px cards leave a dead gap under short quotes on a phone. */
  #testimonials .grid { gap: 18px; margin-top: 36px; }
  #testimonials .card { min-height: 0; padding: 26px 22px; }
  #testimonials .card .author { margin-top: 22px; }

  #faq .list { margin-top: 32px; }
  #faq summary { font-size: 15px; }

  #contact .form-panel { padding: 24px 20px; }
  #contact .list li { font-size: 14.5px; }

  /* 44px minimum touch targets. */
  #footer-mark { padding: 24px 20px; }
  #footer-mark img { height: 36px; }

  #footer { padding: 44px 20px 32px; }
  #footer .social { gap: 10px; }
  #footer .social a { width: 44px; height: 44px; }
  #footer .social svg { width: 18px; height: 18px; }
  #footer .legal { gap: 10px 14px; }
  #footer .legal a { padding: 6px 0; }
}

/* Only genuinely narrow phones (320px class). 375px devices keep the
   two-column trust grid and the single-line parcel rows, which both still fit. */
/* Phones in portrait: even two columns leave each cell too narrow for these
   phrases, so the strip goes to a single full-width column. This covers the
   large-phone widths (up to ~430px) with room to spare. */
@media (max-width: 519px) {
  #trust .strip { grid-template-columns: 1fr; }
  #trust .item,
  #trust .item:nth-child(3) { border-left: none; border-top: 1px solid rgba(255, 255, 255, 0.14); }
  #trust .item:first-child { border-top: none; }
}

@media (max-width: 359px) {
  #about .parcel-card .row { flex-direction: column; align-items: flex-start; gap: 2px; }
  #about .parcel-card .row span:last-child { text-align: left; }
}

/* Stop the page behind the mobile menu from scrolling while it is open. */
body.nav-open { overflow: hidden; }
