/* Merry Mac Farm — palette pulled from the logo and the farm's sunset photos */
:root {
  --spruce: #1E2A1C;      /* logo ink */
  --spruce-2: #2C3B28;
  --pasture: #4E6B34;
  --hay: #D29A2E;         /* sunset gold */
  --hay-soft: #F2DDB0;
  --board: #6B4A2F;       /* barn wood */
  --frost: #EEF1EA;       /* page */
  --paper: #FAFBF7;
  --muted: #5A6356;
  --line: #CBD3C3;

  --display: 'Zilla Slab', 'Rockwell', 'Roboto Slab', Georgia, serif;
  --body: 'Public Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --wrap: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--frost); color: var(--spruce);
  font: 400 1.0625rem/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--pasture); text-underline-offset: 3px; }
a:hover { color: var(--spruce); }
:focus-visible { outline: 3px solid var(--hay); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.1; margin: 0 0 .5em; letter-spacing: -.005em; }
h2 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); }
h3 { font-size: 1.6rem; }
p { margin: 0 0 1em; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.narrow { max-width: 760px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 99; background: var(--paper); padding: .5rem 1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; font: 600 1rem/1 var(--body); text-decoration: none;
  padding: .95rem 1.4rem; border-radius: 4px; border: 2px solid transparent; cursor: pointer;
  transition: background-color .15s, color .15s;
}
.btn--gold { background: var(--hay); color: var(--spruce); }
.btn--gold:hover { background: #E6AE42; color: var(--spruce); }
.btn--ghost { border-color: rgba(255,255,255,.8); color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--spruce); }
.btn--ink { background: var(--spruce); color: #fff; }
.btn--ink:hover { background: var(--pasture); color: #fff; }
.btn:disabled { opacity: .6; cursor: progress; }

/* ---------- Top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 20; background: rgba(250,251,247,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; }
.topbar__logo img { width: 132px; height: auto; }
.nav { list-style: none; display: flex; gap: .25rem 1.5rem; margin: 0; padding: 0; flex-wrap: wrap; justify-content: flex-end; }
.nav a { color: var(--spruce); text-decoration: none; font-weight: 500; font-size: .98rem; }
.nav a:hover { color: var(--pasture); text-decoration: underline; }
.nav__login { border: 1.5px solid var(--spruce); padding: .35rem .75rem; border-radius: 4px; }
@media (max-width: 640px) {
  .topbar__logo img { width: 104px; }
  .nav { gap: .25rem .9rem; }
  .nav li:nth-child(2), .nav li:nth-child(3) { display: none; }
}

/* ---------- Hero (the one bold moment) ---------- */
.hero { position: relative; min-height: min(88vh, 820px); display: grid; align-items: end; color: #fff; overflow: hidden; background: var(--spruce); }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,28,18,.05) 20%, rgba(20,28,18,.35) 55%, rgba(20,28,18,.85) 100%);
}
.hero__content { position: relative; z-index: 1; padding-block: 6rem 3.5rem; }
.hero__title { margin: 0 0 1.25rem; }
.hero__title img { width: min(620px, 88vw); height: auto; filter: drop-shadow(0 2px 14px rgba(0,0,0,.35)); }
.hero__lede { font-size: clamp(1.15rem, 1rem + .6vw, 1.45rem); max-width: 34ch; margin-bottom: .75rem; text-shadow: 0 1px 8px rgba(0,0,0,.4); }
.hero__status { display: inline-block; font-weight: 600; color: var(--hay-soft); margin-bottom: 1.75rem; }
.hero__status::before { content: ""; display: inline-block; width: .6rem; height: .6rem; border-radius: 50%; background: var(--hay); margin-right: .55rem; vertical-align: .08em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; }

@media (prefers-reduced-motion: no-preference) {
  .hero__img { animation: settle 2.4s cubic-bezier(.2,.7,.2,1) both; }
  @keyframes settle { from { transform: scale(1.06); } to { transform: scale(1); } }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(4rem, 3rem + 4vw, 6.5rem); }
.section--tint { background: #E3E9DC; }
.section--dark { background: var(--spruce); color: #E9EEE4; }
.section--dark h2 { color: #fff; }
.section__head { max-width: 640px; margin-bottom: 2.75rem; }
.section__head p { color: var(--muted); font-size: 1.1rem; }
.section__title { margin-bottom: 2rem; }

/* ---------- Boarding ---------- */
.boards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; align-items: start; }
@media (max-width: 960px) { .boards { grid-template-columns: 1fr; max-width: 560px; } }
.board {
  background: var(--paper); border: 1px solid var(--line); border-top: 6px solid var(--board);
  padding: 1.75rem 1.75rem 2rem; border-radius: 2px 2px 6px 6px;
  display: flex; flex-direction: column;
}
.board__name { margin-bottom: .35rem; }
.board__price { font: 700 3.25rem/1 var(--display); margin: 0 0 1rem; color: var(--spruce); }
.board__dollar { font-size: .55em; vertical-align: .6em; margin-right: .05em; }
.board__per { font: 500 1rem var(--body); color: var(--muted); margin-left: .3rem; }
.board__summary { color: var(--muted); }
.avail {
  font-weight: 600; font-size: .95rem; padding: .55rem .8rem; border-radius: 4px; margin-bottom: 1.25rem;
  background: #DDE8CF; color: #2E4A1C;
}
.avail--low { background: var(--hay-soft); color: #6A4507; }
.avail--full { background: #EBD9D2; color: #7A2E1B; }
.board__list { list-style: none; padding: 0; margin: 0 0 1.25rem; }
.board__list li { padding: .5rem 0 .5rem 1.6rem; border-top: 1px solid #E4E8DE; position: relative; }
.board__list li::before {
  content: ""; position: absolute; left: .2rem; top: 1.05rem; width: .65rem; height: .35rem;
  border-left: 2px solid var(--pasture); border-bottom: 2px solid var(--pasture); transform: rotate(-45deg);
}
.board__note { font-size: .92rem; color: var(--board); }
.board__cta { margin-top: auto; text-align: center; }

/* ---------- Photo strip ---------- */
.strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; background: var(--spruce); }
.strip img { width: 100%; height: clamp(180px, 22vw, 300px); object-fit: cover; }
@media (max-width: 720px) {
  .strip { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; }
  .strip img { flex: 0 0 82%; scroll-snap-align: start; height: 220px; }
}

/* ---------- Farm ---------- */
.farm { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
@media (max-width: 860px) { .farm { grid-template-columns: 1fr; } }
.farm__text > p { max-width: 62ch; }
.lede { font-size: 1.25rem; font-family: var(--display); font-weight: 500; line-height: 1.4; }
.amenities { display: grid; grid-template-columns: 1fr 1fr; gap: 0 2rem; margin: 2rem 0 0; }
.amenities div { border-top: 1px solid var(--line); padding: .85rem 0; }
.amenities dt { font-weight: 600; }
.amenities dd { margin: 0; color: var(--muted); font-size: .98rem; }
@media (max-width: 480px) { .amenities { grid-template-columns: 1fr; } }
.farm__photo { margin: 0; }
.farm__photo img { border-radius: 4px; aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.farm__photo figcaption { font-size: .9rem; color: var(--muted); margin-top: .6rem; }

/* ---------- Cameras ---------- */
.cams { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.cams p { max-width: 46ch; color: #C9D3C2; font-size: 1.1rem; }
.cams img { border-radius: 4px; border: 1px solid #3C4B37; }
@media (max-width: 860px) { .cams { grid-template-columns: 1fr; } }

/* ---------- Testimonials ---------- */
.quotes { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem 3.5rem; }
@media (max-width: 760px) { .quotes { grid-template-columns: 1fr; } }
.quote { margin: 0; padding-left: 1.25rem; border-left: 3px solid var(--hay); }
.quote blockquote { margin: 0; }
.quote p { font-family: var(--display); font-weight: 500; font-size: 1.25rem; line-height: 1.45; }
.quote figcaption span { color: var(--muted); margin-left: .35rem; }
.team { margin-top: 3rem; color: var(--muted); }
.team strong { color: var(--spruce); font-weight: 600; }

/* ---------- FAQ ---------- */
.faq details { border-top: 1px solid #BFC9B6; }
.faq details:last-child { border-bottom: 1px solid #BFC9B6; }
.faq summary {
  cursor: pointer; list-style: none; padding: 1.15rem 2.5rem 1.15rem 0; position: relative;
  font: 600 1.2rem/1.35 var(--display);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .25rem; top: .95rem; font: 400 1.6rem/1 var(--body); color: var(--pasture); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding-bottom: 1.1rem; max-width: 62ch; color: #333C30; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }
.contact__info address { font-style: normal; display: grid; gap: .6rem; margin: 1.5rem 0; font-size: 1.1rem; }
.contact__info address a { color: var(--spruce); font-weight: 500; }
.contact__hours, .contact__req { color: var(--muted); font-size: .98rem; }

.form { background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: clamp(1.25rem, 3vw, 2.25rem); }
.field { margin-bottom: 1.1rem; flex: 1; min-width: 0; }
.field--sm { flex: 0 0 90px; }
.field-row { display: flex; gap: 1rem; }
@media (max-width: 560px) { .field-row { flex-wrap: wrap; } .field-row .field { flex: 1 1 100%; } }
.field label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: .35rem; }
.opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: inherit; background: #fff;
  border: 1.5px solid #B5C0AB; border-radius: 4px; padding: .7rem .8rem;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--pasture); outline: 3px solid rgba(210,154,46,.45); outline-offset: 0; }
.field [aria-invalid="true"] { border-color: #A3371F; }
.field__err { color: #A3371F; font-size: .9rem; margin: .3rem 0 0; min-height: 0; }
.field__err:empty { display: none; }
.hp { position: absolute; left: -9999px; }
.form__status { margin: 1rem 0 0; font-weight: 600; }
.form__status:empty { display: none; }
.form__status.is-ok { color: #2E4A1C; }
.form__status.is-err { color: #A3371F; }

/* ---------- Footer ---------- */
.footer { background: var(--spruce); color: #B9C4B1; padding-block: 3rem; font-size: .95rem; }
.footer__inner { display: grid; gap: .5rem; justify-items: start; }
.footer__inner img { width: 150px; height: auto; margin-bottom: .75rem; }
.footer a { color: #fff; }

/* ---------- 404 ---------- */
.notfound main { padding-block: 5rem; }
.notfound img { margin-bottom: 2rem; }

/* SMS opt-in on account invitation: override generic .field input sizing */
.field .sms-consent-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  width: 100%;
  margin: 18px 0 12px;
  text-align: left;
}
.field .sms-consent-row input[type="checkbox"] {
  appearance: auto;
  display: block;
  width: 28px;
  height: 28px;
  min-width: 28px;
  margin: 0;
  padding: 0;
  border: initial;
  border-radius: 0;
  accent-color: var(--spruce);
  cursor: pointer;
}
.field .sms-consent-row label {
  display: block;
  width: auto;
  margin: 0;
  text-align: left;
  cursor: pointer;
}
/* Merry Mac Farm SMS opt-in checkbox */

.field .sms-consent-row {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 14px;
    width: 100%;
    margin: 16px 0;
}

.field .sms-consent-row input[type="checkbox"] {
    appearance: auto;
    -webkit-appearance: checkbox;
    display: block;
    width: 28px;
    height: 28px;
    min-width: 28px;
    min-height: 28px;
    flex: 0 0 28px;
    margin: 0;
    padding: 0;
    cursor: pointer;
    accent-color: #243322;
}

.field .sms-consent-row label {
    display: block;
    width: auto;
    flex: 1;
    margin: 0;
    padding: 0;
    cursor: pointer;
}
