/* Sunny Hills Farm: farmhouse look. Cream paper, barn red, weathered wood, gingham and
   snapshots taped to the page. Theme colors still come from site.config.json -> theme. */
:root {
  --primary: #8a3324;
  --accent: #e2b04a;
  --dark: #2e2620;
  --light: #efe6d4;
  --paper: #faf5ea;
  --sage: #7f9a55;
  --text: #33291f;
  --muted: #64574a;
  --border: #d8cab0;
  --radius: 6px;
  --maxw: 1140px;
  --font: Georgia, "Times New Roman", serif;
  --display: Georgia, serif;
  --hand: "Segoe Print", "Bradley Hand", cursive;
  /* Hand-drawn marks, used as masks so they take any theme color. */
  --squiggle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 12'%3E%3Cpath d='M2 7c9-5 15 3 24-1s13-4 22 0 14 3 23-1 15-3 24 1 13 2 23-2' fill='none' stroke='%23000' stroke-width='3.2' stroke-linecap='round'/%3E%3C/svg%3E");
  --check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3.5 13.5c2.2 1.4 3.8 3.6 5 6.2C11 12.6 15.6 7 21 3.2' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --horseshoe: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 21V11a6 6 0 0 1 12 0v10' fill='none' stroke='%23000' stroke-width='3.4' stroke-linecap='round'/%3E%3Ccircle cx='6.6' cy='15' r='.9'/%3E%3Ccircle cx='17.4' cy='15' r='.9'/%3E%3Ccircle cx='8' cy='9' r='.9'/%3E%3Ccircle cx='16' cy='9' r='.9'/%3E%3C/svg%3E");
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .3 0 0 0 0 .2 0 0 0 0 .1 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  /* Vertical board-and-batten siding */
  --boards: repeating-linear-gradient(90deg, transparent 0 58px, rgba(0, 0, 0, .18) 58px 60px, rgba(255, 255, 255, .05) 60px 66px, transparent 66px 72px);
  /* Red gingham, like a picnic cloth */
  --gingham: repeating-linear-gradient(0deg, color-mix(in srgb, var(--primary) 45%, transparent) 0 10px, transparent 10px 20px),
    repeating-linear-gradient(90deg, color-mix(in srgb, var(--primary) 45%, transparent) 0 10px, transparent 10px 20px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 1.06rem; color: var(--text); background: var(--paper) var(--grain); line-height: 1.7; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.12; color: var(--dark); letter-spacing: -.01em; font-optical-sizing: auto; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); margin: 0 0 22px; }
h3 { font-size: 1.3rem; margin: 0 0 8px; }
::selection { background: var(--accent); color: var(--dark); }
:focus-visible { outline: 3px dashed var(--primary); outline-offset: 3px; }

/* Hand-drawn underline under section headings */
.block h2::after, .cta-band h2::after {
  content: ""; display: block; width: 120px; height: 11px; margin-top: 8px;
  background: var(--accent); -webkit-mask: var(--squiggle) no-repeat center / 100% 100%; mask: var(--squiggle) no-repeat center / 100% 100%;
}
.cta-band h2::after { margin-inline: auto; }
.prose h2::after, .info-card h2::after { width: 80px; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: #fff; padding: 8px 12px; z-index: 100; }
.plain { list-style: none; margin: 0; padding: 0; }
.plain li { margin: 4px 0; }

/* Buttons: soft, rounded, like a painted sign */
.btn {
  display: inline-block; padding: 13px 24px; border-radius: 999px; font-family: var(--display); font-weight: 600; font-size: 1.05rem;
  text-decoration: none; border: 2px solid var(--dark); cursor: pointer; text-align: center;
  box-shadow: 0 3px 0 var(--dark); transition: transform .12s ease, box-shadow .12s ease, background-color .15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 5px 0 var(--dark); }
.btn:active { transform: translateY(3px); box-shadow: 0 0 0 var(--dark); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-accent { background: var(--accent); color: var(--dark); }
.btn-outline { background: transparent; border-color: currentColor; color: #fff; box-shadow: none; }
.btn-outline:hover { box-shadow: none; background: rgba(255, 255, 255, .12); }
.btn-outline.dark { color: var(--dark); background: #fff; box-shadow: 0 3px 0 var(--dark); }
.block-btn { display: block; width: 100%; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.actions.center { justify-content: center; }

/* Top bar + header */
.demo-banner { margin: 0; padding: 8px 16px; background: var(--accent); color: var(--dark); font-weight: 700; text-align: center; }
.topbar { background: var(--primary) var(--boards); color: #fbefe0; font-size: .9rem; }
.topbar .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 16px; padding-top: 7px; padding-bottom: 7px; }
.topbar span:first-child { font-family: var(--hand); font-size: 1.2rem; line-height: 1.3; }
.topbar a { color: #fff; font-weight: 700; }
header.site { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--paper) 94%, transparent); backdrop-filter: blur(6px); border-bottom: 1px solid var(--border); }
header.site::after { content: ""; position: absolute; left: 0; right: 0; bottom: -7px; height: 6px; background: var(--gingham); opacity: .55; }
header.site .container { display: flex; align-items: center; gap: 26px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; font-family: var(--display); font-weight: 700; font-size: 1.45rem; color: var(--dark); text-decoration: none; }
.brand::before {
  content: ""; flex: none; width: 44px; height: 44px; background: url("/assets/images/mark.svg") no-repeat center / contain;
}
.brand img { height: 44px; width: auto; }
nav.main ul { list-style: none; display: flex; gap: 28px; margin: 0; padding: 0; }
nav.main a { position: relative; color: var(--text); font-weight: 600; text-decoration: none; }
nav.main a::after {
  content: ""; position: absolute; left: -2px; right: -2px; bottom: -7px; height: 7px; background: var(--accent);
  -webkit-mask: var(--squiggle) no-repeat center / 100% 100%; mask: var(--squiggle) no-repeat center / 100% 100%;
  transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
nav.main a:hover::after, nav.main a[aria-current="page"]::after { transform: scaleX(1); }
.nav-toggle { display: none; background: #fff; border: 2px solid var(--dark); border-radius: 999px; padding: 8px 16px; font: inherit; font-weight: 700; color: var(--dark); cursor: pointer; }

/* Hero: the barn photo under a warm, late-afternoon wash */
.hero { position: relative; color: #fff; padding: 120px 0 150px; background: var(--primary) var(--boards); overflow: hidden; }
.hero.has-image { background: linear-gradient(100deg, rgba(46, 30, 20, .82) 0%, rgba(46, 30, 20, .55) 50%, rgba(46, 30, 20, .1) 100%), var(--hero-img) center 70% / cover no-repeat; }
/* Rolling hill at the bottom edge */
.hero::after {
  content: ""; position: absolute; left: -5%; right: -5%; bottom: -1px; height: 70px; background: var(--paper);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}
.hero h1 { color: #fff; font-size: clamp(2.3rem, 5.6vw, 3.9rem); font-weight: 600; max-width: 17ch; margin: 0 0 22px; text-shadow: 0 2px 14px rgba(0, 0, 0, .3); }
.hero .lead { font-size: 1.2rem; max-width: 50ch; margin: 0; color: #f7eddc; }
.eyebrow { display: inline-block; font-family: var(--hand); font-size: 1.7rem; line-height: 1; color: var(--accent); margin: 0 0 14px; transform: rotate(-3deg); }

/* Sections */
.trust { position: relative; z-index: 1; margin-top: -34px; }
.trust ul {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 40px; list-style: none; margin: 0 auto; padding: 18px 28px; max-width: 980px;
  background: #fffdf7; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 10px 24px -14px rgba(46, 30, 20, .45);
  font-family: var(--hand); font-size: 1.45rem; line-height: 1.2; color: var(--dark);
}
.trust li { display: flex; align-items: center; gap: 8px; }
.trust li::before { content: ""; width: 20px; height: 20px; background: var(--sage); -webkit-mask: var(--check) no-repeat center / contain; mask: var(--check) no-repeat center / contain; }
.block { padding: 84px 0; }
.alt { background: var(--light) var(--grain); border-block: 1px dashed var(--border); }
.section-intro { color: var(--muted); font-size: 1.1rem; max-width: 60ch; margin: -6px 0 40px; }
.grid { display: grid; gap: 30px; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.card {
  display: flex; flex-direction: column; background: #fffdf7; border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 14px 24px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 14px 28px -18px rgba(46, 30, 20, .55); transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px) rotate(-.4deg); box-shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 20px 34px -18px rgba(46, 30, 20, .6); }
.card > :not(.card-img) { margin-inline: 10px; }
.card-img { border-radius: 3px; margin-bottom: 18px; aspect-ratio: 10 / 7; object-fit: cover; width: 100%; }
.card h3 { padding-bottom: 10px; margin-bottom: 12px; border-bottom: 2px dotted var(--border); }
.card p { flex: 1; margin: 0 0 16px; color: var(--muted); }
.more { font-family: var(--hand); font-size: 1.35rem; text-decoration: none; }
.more:hover { text-decoration: underline; }
.checks { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.checks li { position: relative; padding-left: 34px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 24px; height: 24px; background: var(--sage);
  -webkit-mask: var(--check) no-repeat center / contain; mask: var(--check) no-repeat center / contain;
}

/* Snapshots: photos with a white border, a strip of tape and a handwritten caption */
.gallery { list-style: none; margin: 0; padding: 0; display: grid; gap: 34px 28px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.snapshot { position: relative; margin: 0; background: #fff; padding: 12px 12px 8px; box-shadow: 0 1px 2px rgba(0, 0, 0, .1), 0 14px 26px -14px rgba(46, 30, 20, .5); rotate: -1.6deg; transition: rotate .25s ease, scale .25s ease; }
.gallery li:nth-child(even) .snapshot, .board-option .snapshot { rotate: 1.4deg; }
.gallery li:nth-child(3n) .snapshot { rotate: -.6deg; }
.snapshot:hover { rotate: 0deg; scale: 1.02; }
.snapshot::before {
  content: ""; position: absolute; top: -12px; left: 50%; width: 90px; height: 24px; translate: -50% 0; rotate: -4deg; z-index: 1;
  background: color-mix(in srgb, var(--accent) 50%, transparent); border-inline: 2px dotted rgba(255, 255, 255, .6);
}
.snapshot img { aspect-ratio: 10 / 7; object-fit: cover; width: 100%; }
.snapshot figcaption { font-family: var(--hand); font-size: 1.4rem; color: var(--dark); text-align: center; padding-top: 6px; }
.lead-note { font-family: var(--hand); font-size: 1.5rem; line-height: 1.3; color: var(--primary); margin-top: -8px; }

/* Testimonials look like notes taped to the page */
.testimonial {
  position: relative; margin: 14px 0 0; background: #fffdf7; border: 1px solid var(--border); border-radius: 2px; padding: 30px 26px 24px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .08), 0 8px 18px -10px rgba(0, 0, 0, .3); transform: rotate(-1deg);
}
.grid > .testimonial:nth-child(even) { transform: rotate(.8deg); }
.testimonial::before {
  content: ""; position: absolute; top: -13px; left: 50%; width: 96px; height: 26px; translate: -50% 0; rotate: -3deg;
  background: color-mix(in srgb, var(--accent) 55%, transparent);
}
.testimonial p { margin: 0; font-family: var(--hand); font-size: 1.5rem; line-height: 1.35; color: var(--dark); }
.testimonial footer { margin-top: 14px; font-weight: 700; font-size: .92rem; color: var(--muted); }
.testimonial footer::before { content: "— "; }
.areas { display: flex; flex-wrap: wrap; gap: 12px; list-style: none; margin: 0; padding: 0; }
.areas li { background: #fffdf7; border: 1.5px dashed var(--primary); border-radius: 999px; padding: 6px 18px; font-family: var(--hand); font-size: 1.35rem; line-height: 1.3; color: var(--dark); }
.areas li:nth-child(3n + 1) { rotate: -1.5deg; }
.areas li:nth-child(3n + 2) { rotate: 1deg; }
.faq { border-bottom: 2px dotted var(--border); padding: 18px 0; }
.faq summary { font-family: var(--display); font-weight: 600; font-size: 1.15rem; cursor: pointer; color: var(--dark); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--primary); transition: transform .2s ease; }
.faq[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 10px 0 0; }
/* CTA: a red barn wall with white trim */
.cta-band { background: var(--primary) var(--boards); color: #fff; text-align: center; padding: 80px 0; border-block: 10px solid #f3ece0; }
.cta-band h2 { color: #fff; }
.cta-band p { margin: 0 auto; max-width: 52ch; color: #fbefe0; }
.cta-band .btn-accent { box-shadow: 0 3px 0 #000; }

/* Inner pages */
.page-head { position: relative; background: var(--primary) var(--boards); color: #fff; padding: 64px 0 88px; overflow: hidden; }
.page-head::after { content: ""; position: absolute; left: -5%; right: -5%; bottom: -1px; height: 40px; background: var(--paper); border-radius: 50% 50% 0 0 / 100% 100% 0 0; }
.page-head h1 { color: #fff; margin: 0; font-size: clamp(2rem, 4.2vw, 3rem); }
.page-head p { margin: 10px 0 0; color: #fbefe0; max-width: 60ch; }
.prose { max-width: 68ch; }
.two-col { display: grid; gap: 48px; grid-template-columns: 1fr; align-items: start; }
.board-option { align-items: center; }
section[id] { scroll-margin-top: 80px; }
.info-card { position: relative; background: #fffdf7; border: 1px solid var(--border); border-radius: var(--radius); padding: 34px 28px 28px; box-shadow: 0 14px 28px -18px rgba(46, 30, 20, .55); }
.info-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 10px; background: var(--gingham); border-radius: var(--radius) var(--radius) 0 0; opacity: .7; }
.info-card h2 { font-size: 1.5rem; }
.about-img { border: 10px solid #fff; margin-bottom: 26px; box-shadow: 0 14px 26px -14px rgba(46, 30, 20, .5); rotate: -1deg; }
.hours { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; margin: 0 0 16px; }
.hours dt { font-weight: 700; }
.hours dd { margin: 0; }

/* Forms: lined notepaper */
.quote { display: grid; gap: 18px; }
.quote label { display: grid; gap: 6px; font-weight: 700; }
.quote input, .quote select, .quote textarea { font: inherit; font-weight: 400; width: 100%; padding: 12px 14px; border: 1.5px solid #b9a88a; border-radius: var(--radius); background: #fffdf7; color: var(--text); }
.quote input:focus, .quote select:focus, .quote textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 55%, transparent); }
.quote textarea { min-height: 160px; resize: vertical; line-height: 28px; background: #fffdf7 repeating-linear-gradient(transparent 0 27px, #e6dcc6 27px 28px) 0 11px / 100% 28px local; }
.quote button { justify-self: start; }
.hp { position: absolute; left: -5000px; }

/* Footer: dark barn wood */
footer.site { background: var(--dark) var(--boards); color: #d9cdb9; padding: 64px 0 32px; font-size: .97rem; border-top: 8px solid var(--primary); }
footer.site a { color: #fff; }
footer.site .cols { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
footer.site .hours { color: #d9cdb9; }
.footer-name { font-family: var(--display); color: #fff; font-weight: 700; font-size: 1.45rem; margin-top: 0; }
.footer-head { font-family: var(--hand); color: var(--accent); font-size: 1.45rem; line-height: 1.1; margin-top: 0; }
.social { display: flex; flex-wrap: wrap; gap: 12px; }
.copy { border-top: 1px dashed rgba(255, 255, 255, .22); margin: 36px 0 0; padding-top: 20px; font-size: .86rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.copy p { margin: 0; }
.legal { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.legal li { margin: 0; }

/* Mobile call bar */
.callbar { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; border-top: 2px solid var(--dark); }
.callbar a { flex: 1; padding: 14px; text-align: center; font-weight: 700; text-decoration: none; }
.callbar .call { background: var(--primary); color: #fff; }
.callbar .quote-link { background: var(--accent); color: var(--dark); border-left: 2px solid var(--dark); }

/* Policies: plain reading pages */
.policy h2 { font-size: 1.35rem; margin: 36px 0 10px; }
.policy h2:first-child { margin-top: 0; }
.policy h2::after { display: none; }
.policy li { margin-bottom: 8px; }

/* Cursor ring is off for this site ("cursor": false), kept for completeness */
.cursor-ring, .spark { display: none; }

@media (min-width: 900px) {
  .two-col { grid-template-columns: 3fr 2fr; }
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-block; }
  .header-cta { display: none; }
  nav.main { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--paper); border-bottom: 1px solid var(--border); }
  nav.main.open { display: block; }
  nav.main ul { flex-direction: column; gap: 4px; padding: 16px 20px 20px; }
  nav.main a { display: block; padding: 10px 0; }
  nav.main a::after { display: none; }
  .hero { padding: 76px 0 110px; }
  .hero.has-image { background: linear-gradient(rgba(46, 30, 20, .72), rgba(46, 30, 20, .6)), var(--hero-img) 30% 70% / cover no-repeat; }
  .trust ul { gap: 6px 22px; font-size: 1.25rem; }
  .block { padding: 60px 0; }
  .callbar { display: flex; }
  footer.site { padding-bottom: 96px; }
}

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