/* ==========================================================================
   Farmer's Hand and Maintenance — site styles
   Mobile-first. Earthy / trustworthy / professional, not corporate.
   ========================================================================== */

:root {
  --cream: #f7f1e3;
  --cream-dark: #efe4cc;
  --paper: #fffbf3;
  --barn-red: #9c3b2e;
  --barn-red-dark: #7c2e23;
  --forest: #435634;
  --forest-dark: #333f28;
  --brown-ink: #3a2c22;
  --brown-soft: #5a4635;
  --gold: #c98a3e;
  --gold-light: #e7b876;
  --messenger-blue: #0084ff;
  --messenger-blue-dark: #0066cc;
  --line: #e2d5b8;
  --shadow: 0 6px 18px rgba(58, 44, 34, 0.14);
  --radius: 14px;
  --max-width: 1120px;
  font-size: 17px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Work Sans", "Segoe UI", Arial, sans-serif;
  background: var(--cream);
  color: var(--brown-ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: "Bitter", Georgia, "Times New Roman", serif;
  color: var(--brown-ink);
  line-height: 1.18;
  margin: 0 0 0.5em;
  font-weight: 700;
}

h1 { font-size: clamp(1.9rem, 5vw, 2.9rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.1rem); }
h3 { font-size: clamp(1.15rem, 3vw, 1.4rem); }

p { margin: 0 0 1em; }

a { color: var(--barn-red); text-decoration: none; }
a:hover { text-decoration: underline; }

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

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

section { padding: 48px 0; }
section.tight { padding: 28px 0; }

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 32px;
}
.section-head .eyebrow {
  display: inline-block;
  color: var(--forest);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 8px;
}

.bg-paper { background: var(--paper); }
.bg-cream-dark { background: var(--cream-dark); }
.bg-forest { background: var(--forest); color: #f3ede0; }
.bg-forest h2, .bg-forest h3 { color: #fff; }
.bg-brown { background: var(--brown-ink); color: #f3ede0; }
.bg-brown h2, .bg-brown h3 { color: #fff; }

/* Cards keep their own light background even inside a dark section, so their
   text must stay dark too — otherwise the section-level white-heading rules
   above make card headings unreadable (white text on a near-white card). */
.bg-forest .card h3, .bg-forest .card p,
.bg-brown .card h3, .bg-brown .card p {
  color: var(--brown-ink);
}

/* ---------------------------------------------------------------------- */
/* Skip link                                                              */
/* ---------------------------------------------------------------------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--brown-ink);
  color: #fff;
  padding: 10px 16px;
  z-index: 500;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ---------------------------------------------------------------------- */
/* Top CTA bar — call + messenger. Always first in DOM so it is visible   */
/* without scrolling on every page, on every device, no exceptions.       */
/* ---------------------------------------------------------------------- */
.cta-bar {
  position: sticky;
  top: 0;
  z-index: 200;
  display: flex;
  background: var(--brown-ink);
  border-bottom: 2px solid var(--gold);
}
.cta-bar a {
  flex: 1 1 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 6px;
  font-weight: 700;
  font-size: 0.92rem;
  color: #fff;
  text-decoration: none;
  min-height: 46px;
  letter-spacing: 0.01em;
}
.cta-bar .cta-call { background: var(--barn-red); }
.cta-bar .cta-call:hover, .cta-bar .cta-call:active { background: var(--barn-red-dark); }
.cta-bar .cta-msg { background: var(--messenger-blue); }
.cta-bar .cta-msg:hover, .cta-bar .cta-msg:active { background: var(--messenger-blue-dark); }
.cta-bar .icon { font-size: 1.05rem; }
.cta-bar span.label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------------------------------------------------------------------- */
/* Header / brand / nav                                                   */
/* ---------------------------------------------------------------------- */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); }

.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px;
  max-width: var(--max-width);
  margin: 0 auto;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  min-width: 0;
}
.brand:hover { text-decoration: none; }
.brand img {
  height: 44px;
  width: auto;
  border-radius: 6px;
}
.brand-name {
  font-family: "Bitter", Georgia, serif;
  font-weight: 700;
  color: var(--brown-ink);
  font-size: 1.02rem;
  line-height: 1.15;
}
.brand-name small {
  display: block;
  font-family: "Work Sans", sans-serif;
  font-weight: 500;
  color: var(--forest);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav-toggle {
  background: var(--forest);
  color: #fff;
  border: none;
  border-radius: 8px;
  width: 44px;
  height: 44px;
  font-size: 1.3rem;
  cursor: pointer;
  flex-shrink: 0;
}

.site-nav {
  display: none;
  flex-direction: column;
  background: var(--paper);
  border-top: 1px solid var(--line);
}
.site-nav.open { display: flex; }
.site-nav a {
  padding: 14px 20px;
  color: var(--brown-ink);
  font-weight: 600;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}
.site-nav a:hover { background: var(--cream); }
.site-nav a.current { color: var(--barn-red); }

@media (min-width: 820px) {
  .nav-toggle { display: none; }
  .site-nav {
    display: flex !important;
    flex-direction: row;
    background: transparent;
    border-top: none;
  }
  .site-nav a { border-bottom: none; padding: 10px 14px; }
  .header-main { padding: 12px 18px; }
}

/* ---------------------------------------------------------------------- */
/* Buttons                                                                 */
/* ---------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  min-height: 46px;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--barn-red); color: #fff; }
.btn-primary:hover { background: var(--barn-red-dark); }
.btn-msg { background: var(--messenger-blue); color: #fff; }
.btn-msg:hover { background: var(--messenger-blue-dark); }
.btn-gold { background: var(--gold); color: var(--brown-ink); }
.btn-gold:hover { background: var(--gold-light); }
.btn-outline { background: transparent; border-color: currentColor; color: inherit; }
.btn-outline:hover { background: rgba(255,255,255,0.1); }
.btn-block { width: 100%; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------------------------------------------------------------------- */
/* Hero                                                                    */
/* ---------------------------------------------------------------------- */
.hero {
  position: relative;
  color: #fff;
  background-color: var(--brown-ink);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(31,23,17,0.72) 0%, rgba(31,23,17,0.62) 40%, rgba(31,23,17,0.85) 100%);
}
.hero .container {
  position: relative;
  padding: 46px 18px 42px;
}
.hero h1 { color: #fff; }
.hero .lede { font-size: 1.12rem; max-width: 46em; color: #f3ede0; }
.hero .tag {
  display: inline-block;
  background: var(--gold);
  color: var(--brown-ink);
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  margin-bottom: 14px;
  letter-spacing: 0.02em;
}
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 22px;
  font-size: 0.92rem;
  color: #f3ede0;
}
.hero-badges span { display: flex; align-items: center; gap: 6px; }

.page-hero {
  padding: 34px 0 30px;
}
.page-hero h1 { color: #fff; }

/* ---------------------------------------------------------------------- */
/* Cards / grids                                                          */
/* ---------------------------------------------------------------------- */
.grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .grid.cols-2 { grid-template-columns: 1fr 1fr; }
  .grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 960px) {
  .grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}

.service-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.service-card .photo-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.service-card .photo-pair figure { margin: 0; position: relative; }
.service-card .photo-pair img { height: 100%; width: 100%; object-fit: cover; aspect-ratio: 4/3; }
.service-card .photo-pair figcaption {
  position: absolute;
  bottom: 6px;
  left: 6px;
  background: rgba(31,23,17,0.75);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 8px;
  border-radius: 999px;
}
.service-card .photo-single { position: relative; }
.service-card .photo-single img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; display: block; }
.service-card .photo-single figcaption {
  position: absolute;
  bottom: 6px;
  left: 6px;
  background: rgba(31,23,17,0.75);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 8px;
  border-radius: 999px;
}
.service-card .icon-photo {
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--forest) 0%, var(--forest-dark) 100%);
  font-size: 3rem;
}
.service-card .body { padding: 18px 20px 22px; flex: 1; display: flex; flex-direction: column; }
.service-card h3 { margin-bottom: 8px; }
.service-card p { color: var(--brown-soft); margin-bottom: 14px; }
.service-card .tags { margin-top: auto; display: flex; flex-wrap: wrap; gap: 6px; }
.service-card .tags span {
  background: var(--cream-dark);
  color: var(--brown-soft);
  font-size: 0.74rem;
  padding: 4px 9px;
  border-radius: 999px;
  font-weight: 600;
}

.flagship {
  border: 2px solid var(--gold);
  position: relative;
}
.flagship-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 5;
  background: var(--gold);
  color: var(--brown-ink);
  font-weight: 800;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 6px 12px;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.restoration-card {
  border: 2px dashed var(--forest);
  background: var(--cream-dark);
}

/* ---------------------------------------------------------------------- */
/* Flagship feature (home)                                                */
/* ---------------------------------------------------------------------- */
.flagship-feature {
  display: grid;
  gap: 22px;
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 860px) {
  .flagship-feature { grid-template-columns: 1.05fr 0.95fr; gap: 40px; }
}
.flagship-feature .photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.flagship-feature .photos figure { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.flagship-feature .photos img { aspect-ratio: 4/5; object-fit: cover; }
.flagship-feature .photos figcaption {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(0deg, rgba(31,23,17,0.82), transparent);
  color: #fff; font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.05em; padding: 20px 10px 8px;
}

/* ---------------------------------------------------------------------- */
/* Testimonials                                                           */
/* ---------------------------------------------------------------------- */
.quote-card {
  background: var(--paper);
  border-left: 4px solid var(--gold);
  border-radius: 10px;
  padding: 18px 20px;
  box-shadow: var(--shadow);
}
.quote-card p { font-style: italic; margin-bottom: 8px; }
.quote-card cite { font-style: normal; font-weight: 700; color: var(--forest); font-size: 0.9rem; }

/* ---------------------------------------------------------------------- */
/* Plans                                                                   */
/* ---------------------------------------------------------------------- */
.plan-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.plan-card.featured { border: 2px solid var(--gold); position: relative; }
.plan-visits {
  display: inline-block;
  background: var(--forest);
  color: #fff;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.9rem;
  margin-bottom: 14px;
}
.plan-card ul { margin: 0 0 20px; padding-left: 1.2em; color: var(--brown-soft); }
.plan-card li { margin-bottom: 6px; }
.plan-card .best-for {
  font-size: 0.88rem;
  color: var(--forest);
  font-weight: 600;
  margin-bottom: 16px;
}
.plan-card .btn { margin-top: auto; }
.no-price-note {
  text-align: center;
  color: var(--brown-soft);
  font-size: 0.95rem;
  margin-top: 8px;
}

/* ---------------------------------------------------------------------- */
/* Forms                                                                   */
/* ---------------------------------------------------------------------- */
.form-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.form-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .form-grid.cols-2 { grid-template-columns: 1fr 1fr; }
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 700; font-size: 0.9rem; color: var(--brown-ink); }
.field input,
.field select,
.field textarea {
  font-family: inherit;
  font-size: 1rem;
  padding: 11px 12px;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--brown-ink);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
}
.field.full { grid-column: 1 / -1; }
.hp-field { position: absolute; left: -9999px; top: -9999px; }
.form-note { font-size: 0.82rem; color: var(--brown-soft); margin-top: 10px; }

/* ---------------------------------------------------------------------- */
/* Footer                                                                  */
/* ---------------------------------------------------------------------- */
.site-footer {
  background: var(--brown-ink);
  color: #e8ddc9;
  padding: 40px 0 22px;
}
.site-footer h4 { color: #fff; font-family: "Bitter", serif; font-size: 1rem; margin-bottom: 10px; }
.site-footer a { color: #e8ddc9; }
.site-footer a:hover { color: #fff; }
.footer-grid {
  display: grid;
  gap: 26px;
  grid-template-columns: 1fr;
  margin-bottom: 26px;
}
@media (min-width: 700px) {
  .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; }
}
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.footer-brand img { height: 40px; border-radius: 6px; }
.footer-nav { display: flex; flex-direction: column; gap: 8px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.14);
  padding-top: 16px;
  font-size: 0.82rem;
  color: #b8ab90;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
}

/* ---------------------------------------------------------------------- */
/* Misc                                                                    */
/* ---------------------------------------------------------------------- */
.insured-strip {
  background: var(--gold);
  color: var(--brown-ink);
  text-align: center;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 8px 10px;
  letter-spacing: 0.01em;
}

.trust-row {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, 1fr);
  text-align: center;
}
@media (min-width: 640px) { .trust-row { grid-template-columns: repeat(4, 1fr); } }
.trust-row .item { padding: 10px; }
.trust-row .num { font-family: "Bitter", serif; font-size: 1.6rem; color: var(--barn-red); font-weight: 700; }
.trust-row .lbl { font-size: 0.85rem; color: var(--brown-soft); }

.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

.split {
  display: grid;
  gap: 26px;
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 820px) {
  .split { grid-template-columns: 1fr 1fr; gap: 42px; }
  .split.reverse > *:first-child { order: 2; }
}
.split img { border-radius: var(--radius); box-shadow: var(--shadow); }

.before-after {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.before-after figure { margin: 0; position: relative; }
.before-after img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }
.before-after figcaption {
  position: absolute; top: 8px; left: 8px;
  background: rgba(31,23,17,0.75); color: #fff;
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
  padding: 3px 9px; border-radius: 999px; letter-spacing: 0.04em;
}

.single-photo {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.single-photo img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; display: block; }
.single-photo figcaption {
  position: absolute; top: 8px; left: 8px;
  background: rgba(31,23,17,0.75); color: #fff;
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
  padding: 3px 9px; border-radius: 999px; letter-spacing: 0.04em;
}

.gallery-group { margin-bottom: 42px; }
.gallery-group h2 { margin-bottom: 4px; }
.gallery-group .sub { color: var(--brown-soft); margin-bottom: 18px; }

.no-photo-card {
  background: repeating-linear-gradient(135deg, var(--forest) 0px, var(--forest) 14px, var(--forest-dark) 14px, var(--forest-dark) 28px);
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

address { font-style: normal; }

.contact-grid {
  display: grid;
  gap: 26px;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .contact-grid { grid-template-columns: 1fr 1.2fr; }
}
.contact-info-card {
  background: var(--forest);
  color: #f3ede0;
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow);
}
.contact-info-card h3 { color: #fff; }
.contact-info-card a { color: #fff; font-weight: 700; }
.contact-info-card .row { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 18px; }
.contact-info-card .row .ico { font-size: 1.3rem; }
