/* Bernie's Berries: one-page site (Oct 2026). Design: Claude Design canvas "Bernie's Berries Website". */

:root {
  --red: #C90128;
  --red-shadow: #8A0019;
  --teal: #457B91;
  --teal-dark: #2F5E70;
  --teal-head: #43778C;
  --aqua: #CEE5E5;
  --band: #F2F8F8;
  --text: #262626;
  --wood: #EAE9E5;
  --frame-line: #DBD9D5;
  --serif: Bitter, Georgia, serif;
  --sign-font: 'Bree Serif', Georgia, serif;
  --side: clamp(16px, 4vw, 40px);
  --stitch: 2px dashed rgba(255, 255, 255, 0.6);
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: 'Source Sans 3', 'Segoe UI', system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  color: var(--text);
  background: #FFFFFF;
}

img { max-width: 100%; }
figure { margin: 0; }
p { margin: 0; }

/* Room for the sticky nav when jumping to a section */
[id] { scroll-margin-top: 72px; }
#top { scroll-margin-top: 0; }

a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--teal-dark);
  outline-offset: 3px;
}

/* ---------- Checked "picnic tablecloth" pattern ---------- */
.banner, .btn--red, .date-tag, .cf-badge {
  --check: rgba(255, 255, 255, 0.12);
  --c: 6px;
  background-color: var(--red);
  text-shadow: 0 1px 1px rgba(90, 0, 15, 0.6);
}
.nav-bar, .ribbon, .btn--blue, .ticket {
  --check: rgba(20, 50, 62, 0.11);
  --c: 6px;
  background-color: var(--teal);
}
.banner, .btn--red, .date-tag, .cf-badge, .nav-bar, .ribbon, .btn--blue, .ticket {
  background-image:
    repeating-linear-gradient(0deg, var(--check) 0 var(--c), transparent var(--c) calc(var(--c) * 2)),
    repeating-linear-gradient(90deg, var(--check) 0 var(--c), transparent var(--c) calc(var(--c) * 2));
}

/* ---------- Quick-update banner ---------- */
.banner {
  --c: 7px;
  outline: 2px dashed rgba(255, 255, 255, 0.65);
  outline-offset: -6px;
  color: #FFFFFF;
  padding: 14px 20px;
  text-align: center;
  font-size: 17px;
  line-height: 1.4;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  column-gap: 14px;
  row-gap: 4px;
}
.banner-text { font-weight: 600; }
.banner a {
  color: #FFFFFF;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-underline-offset: 3px;
}
.banner a:focus-visible { outline-color: #FFFFFF; }

/* ---------- Wood backgrounds ---------- */
.wood {
  background: var(--wood) url("images/wood-planks.jpg") center top / cover no-repeat;
}
.wood--hero { background-position: center 30%; }
.wood--bottom { background-position: center bottom; }

/* ---------- Header ---------- */
.site-header {
  max-width: 1120px;
  margin: 0 auto;
  padding: 18px var(--side) 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.logo { display: block; width: clamp(190px, 30vw, 300px); flex: 0 1 auto; }
.logo img { display: block; width: 100%; height: auto; }

.icons { display: flex; gap: 10px; align-items: center; }
.site-footer .icons { gap: 12px; }
.icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  box-shadow: 0 2px 0 var(--teal-dark);
  outline: 1.5px dashed rgba(255, 255, 255, 0.6);
  outline-offset: -5px;
}
.icon-btn:hover { background: var(--teal-dark); }

/* ---------- Nav (sticky) ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  margin-bottom: -8px; /* the zig-zag edge overlaps the wood below */
}
.nav-bar {
  box-shadow: 0 3px 8px rgba(38, 38, 38, 0.18);
  outline: 2px dashed rgba(255, 255, 255, 0.55);
  outline-offset: -6px;
}
.nav-bar ul {
  list-style: none;
  margin: 0 auto;
  max-width: 1120px;
  padding: 0 clamp(4px, 3vw, 28px);
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}
.nav-bar ul::-webkit-scrollbar { display: none; }
.nav-bar li { display: flex; align-items: center; }
.nav-bar li + li::before {
  content: "";
  width: 1px;
  height: 18px;
  background: rgba(255, 255, 255, 0.6);
}
.nav-bar a {
  display: flex;
  align-items: center;
  min-height: 54px;
  padding: 0 14px;
  color: #FFFFFF;
  text-decoration: none;
  font-family: var(--sign-font);
  font-size: 18px;
  text-transform: uppercase;
  text-shadow: 0 2px 0 #396678;
}
.nav-bar a:hover { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; }
.nav-bar a:focus-visible { outline: 2px solid #FFFFFF; outline-offset: -8px; }
.nav-zig {
  height: 8px;
  background:
    linear-gradient(135deg, var(--teal) 25%, transparent 25%) -8px 0 / 16px 16px,
    linear-gradient(225deg, var(--teal) 25%, transparent 25%) -8px 0 / 16px 16px;
}

/* ---------- Hero ---------- */
.hero {
  max-width: 1120px;
  margin: 0 auto;
  padding: calc(clamp(24px, 4vw, 48px) + 8px) var(--side) clamp(40px, 6vw, 72px);
  display: flex;
  flex-wrap: wrap;
  gap: clamp(28px, 4vw, 48px);
  align-items: center;
  justify-content: center;
}
.hero-photo { flex: 999 1 520px; max-width: 760px; min-width: 0; }
.hero-frame {
  background: #FFFFFF;
  padding: clamp(8px, 1.2vw, 12px);
  box-shadow: 0 0 0 1px var(--frame-line), 0 22px 40px -18px rgba(38, 38, 38, 0.45);
  transform: rotate(-0.6deg);
}
.hero-frame img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center 60%;
  outline: 1px solid var(--aqua);
  outline-offset: -6px;
}

.hero-side {
  flex: 1 1 320px; /* wide enough that "Monday - Friday. 9-4" stays on one line */
  max-width: 360px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

/* Wooden hanging hours sign */
.sign-chains {
  display: flex;
  justify-content: space-between;
  padding: 0 36px;
  height: 52px;
  margin-bottom: -10px;
  position: relative;
  z-index: 1;
}
.sign-shadow { filter: drop-shadow(0 16px 14px rgba(38, 38, 38, 0.45)); }
.sign {
  position: relative;
  clip-path: polygon(0 5%, 3% 0, 21% 2%, 39% 0, 62% 3%, 81% 0, 97% 2%, 100% 8%, 99% 38%, 100% 70%, 98% 100%, 71% 97%, 49% 100%, 27% 97%, 5% 100%, 0 93%, 1% 56%);
  background:
    radial-gradient(ellipse 15px 6px at 23% 66%, rgba(45, 28, 12, 0.8) 0, rgba(45, 28, 12, 0.35) 45%, transparent 75%),
    radial-gradient(ellipse 46px 12px at 23% 66%, transparent 38%, rgba(45, 28, 12, 0.2) 52%, transparent 72%),
    radial-gradient(ellipse 9px 4px at 82% 28%, rgba(45, 28, 12, 0.7), transparent 75%),
    linear-gradient(176.5deg, transparent 0 47%, rgba(30, 18, 8, 0.4) 47.6%, rgba(255, 240, 220, 0.14) 48.4%, transparent 49.4%),
    repeating-linear-gradient(178.5deg, rgba(255, 235, 205, 0.09) 0 1px, transparent 1px 5px, rgba(45, 28, 12, 0.17) 5px 6px, transparent 6px 9px),
    repeating-linear-gradient(181deg, transparent 0 13px, rgba(45, 28, 12, 0.24) 13px 14px, transparent 14px 23px),
    linear-gradient(90deg, rgba(45, 28, 12, 0.3), transparent 12%, transparent 88%, rgba(45, 28, 12, 0.35)),
    linear-gradient(180deg, #95826D 0%, #85715C 42%, #735F4B 100%);
  box-shadow: inset 0 0 24px rgba(30, 18, 8, 0.55), inset 0 -6px 0 rgba(30, 18, 8, 0.22);
  padding: 30px 26px;
  text-align: center;
  color: #FFFFFF;
  text-shadow: 0 2px 1px rgba(30, 18, 8, 0.8), 0 0 12px rgba(30, 18, 8, 0.4);
}
.nail {
  position: absolute;
  top: 9px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #9A9089, #3B332D 70%);
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.5);
}
.nail--left { left: 39px; }
.nail--right { right: 39px; }
.sign-title {
  margin: 0 0 10px;
  font-family: var(--sign-font);
  font-weight: 400;
  font-size: 31px;
  line-height: 1.1;
  letter-spacing: 0.01em;
}
.sign-hours {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 25px;
  line-height: 1.35;
}

.hero-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }

/* ---------- Buttons ---------- */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 18px;
  color: #FFFFFF;
  text-decoration: none;
  border-radius: 4px;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 18px;
  outline: var(--stitch);
  outline-offset: -6px;
}
.btn--red { box-shadow: 0 3px 0 var(--red-shadow); }
.btn--blue {
  --check: rgba(20, 50, 62, 0.12);
  padding: 10px 18px;
  line-height: 1.3;
  text-shadow: 0 1px 1px rgba(20, 50, 62, 0.6);
  box-shadow: 0 3px 0 var(--teal-dark);
}
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--red-shadow); }
.btn--blue:active { box-shadow: 0 1px 0 var(--teal-dark); }
.btn:focus-visible { outline: 3px solid var(--teal-dark); outline-offset: 3px; }
.btn-addr { display: flex; flex-direction: column; align-items: flex-start; }
.btn-addr span { font-weight: 600; font-size: 16px; }
.btn--inline { display: inline-flex; min-height: 50px; padding: 0 24px; font-size: 17px; }
.btn--send {
  display: inline-flex;
  padding: 0 38px;
  border: 0;
  cursor: pointer;
  outline: 2px dashed rgba(255, 255, 255, 0.65);
}
.btn--send[disabled] { opacity: 0.7; cursor: wait; }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 20px;
  border: 2px solid var(--teal);
  border-radius: 4px;
  color: var(--teal-dark);
  text-decoration: none;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 17px;
  cursor: pointer;
}
.btn-outline:hover { background: var(--band); }
.btn-outline--white { margin-top: 6px; padding: 0 22px; background: #FFFFFF; }

.actions { display: flex; margin-top: 8px; }

/* ---------- Sections ---------- */
.section {
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(56px, 8vw, 96px) var(--side) 0;
}
.section--news { padding-top: clamp(48px, 7vw, 88px); }
.section--gallery { padding-bottom: clamp(56px, 8vw, 96px); }

.divider { border-top: 2px dotted var(--aqua); margin-bottom: clamp(48px, 7vw, 80px); }

/* Teal ribbon headings */
.ribbon-wrap {
  display: flex;
  justify-content: center;
  filter: drop-shadow(0 3px 0 var(--teal-dark));
}
.ribbon {
  margin: 0;
  color: #FFFFFF;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.25;
  padding: 7px clamp(28px, 4vw, 40px);
  text-align: center;
  clip-path: polygon(0 0, 100% 0, calc(100% - 22px) 50%, 100% 100%, 0 100%, 22px 50%);
}
.ribbon--sm { font-size: clamp(20px, 2.8vw, 28px); text-wrap: balance; }
.ribbon span {
  display: block;
  border-top: 2px dashed rgba(255, 255, 255, 0.7);
  border-bottom: 2px dashed rgba(255, 255, 255, 0.7);
  padding: 6px clamp(12px, 2vw, 24px);
}

/* Sub-heading with scroll ornaments */
.scroll-head {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin: 20px 0 36px;
  color: var(--teal-head);
}
.scroll-head h2, .scroll-head h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(20px, 2.4vw, 24px);
  line-height: 1.3;
  text-align: center;
  text-wrap: balance;
}
.scroll-head--gallery { margin: 0 0 32px; }
.scroll-head--gallery h2 { font-size: clamp(22px, 2.6vw, 26px); }
.scroll { flex: none; }
.scroll--flip { transform: scaleX(-1); }

/* Text + photo rows */
.split {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(28px, 4vw, 56px);
  align-items: flex-start;
}
.split--spaced { margin-top: 40px; }
.split--center { align-items: center; }
.split-text {
  flex: 999 1 420px;
  min-width: 0;
  max-width: 640px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.split-photo { flex: 1 1 300px; max-width: 440px; min-width: 0; }
.photo {
  display: block;
  width: 100%;
  height: auto;
  border: 10px solid #FFFFFF;
  box-shadow: 0 0 0 1px var(--frame-line), 0 18px 32px -16px rgba(38, 38, 38, 0.45);
}
.tilt-right { transform: rotate(1deg); }
.tilt-left { transform: rotate(-1deg); }

.lead { font-size: 20px; line-height: 1.55; }
.dropcap::first-letter {
  float: left;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 84px;
  line-height: 0.82;
  color: var(--teal-head);
  margin: 6px 10px 0 0;
}

/* Our Story "read more" */
.story-more { margin-top: 4px; }
.story-more summary { list-style: none; }
.story-more summary::-webkit-details-marker { display: none; }
.story-more summary svg { transition: transform 0.2s; }
.story-more[open] summary svg { transform: rotate(180deg); }
.story-rest { display: flex; flex-direction: column; gap: 16px; margin-top: 28px; }
.story-h {
  margin: 8px 0 0;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.3;
  color: var(--teal-head);
}

/* ---------- Teal "ticket" boxes with notched corners ---------- */
.ticket {
  --c: 8px;
  -webkit-mask:
    radial-gradient(circle at 0 0, transparent 18px, #000 19px) top left / 51% 51% no-repeat,
    radial-gradient(circle at 100% 0, transparent 18px, #000 19px) top right / 51% 51% no-repeat,
    radial-gradient(circle at 0 100%, transparent 18px, #000 19px) bottom left / 51% 51% no-repeat,
    radial-gradient(circle at 100% 100%, transparent 18px, #000 19px) bottom right / 51% 51% no-repeat;
  mask:
    radial-gradient(circle at 0 0, transparent 18px, #000 19px) top left / 51% 51% no-repeat,
    radial-gradient(circle at 100% 0, transparent 18px, #000 19px) top right / 51% 51% no-repeat,
    radial-gradient(circle at 0 100%, transparent 18px, #000 19px) bottom left / 51% 51% no-repeat,
    radial-gradient(circle at 100% 100%, transparent 18px, #000 19px) bottom right / 51% 51% no-repeat;
  padding: 14px;
}
.ticket--fill { height: 100%; }
.ticket-inner { border: 2px dashed rgba(255, 255, 255, 0.7); color: #FFFFFF; }

.box-title {
  margin: 0;
  font-family: var(--sign-font);
  font-weight: 400;
  font-size: clamp(28px, 3.4vw, 36px);
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--aqua);
  letter-spacing: 0.02em;
}
.box-sub {
  margin: 6px 0 16px;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.3;
}
.box-sub--tight { margin-bottom: 0; }

/* Farm News */
.news {
  padding: clamp(20px, 3.5vw, 40px);
  display: flex;
  flex-wrap: wrap;
  gap: clamp(24px, 4vw, 44px);
  align-items: center;
}
.news-photo { flex: 1 1 280px; max-width: 440px; min-width: 0; }
.news-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 8px solid #FFFFFF;
  box-shadow: 0 14px 28px -14px rgba(0, 0, 0, 0.5);
}
.news-body { flex: 999 1 320px; min-width: 0; }
.date-tag {
  --c: 5px;
  margin: 0 0 16px;
  display: inline-flex;
  align-items: center;
  color: #FFFFFF;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.04em;
  padding: 6px 22px 6px 14px;
  clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 50%, 100% 100%, 0 100%);
}
.news-lines { display: flex; flex-direction: column; gap: 8px; font-size: 19px; line-height: 1.45; }
.news-lead { font-family: var(--serif); font-weight: 700; font-size: 22px; line-height: 1.3; }
.news-strong { font-weight: 700; }

/* ---------- Pickin' Options + Berry Care cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr));
  gap: clamp(24px, 3vw, 40px);
  align-items: start;
}
.card { background: #FFFFFF; box-shadow: 0 0 0 1px #E3E1DB, 0 18px 36px -24px rgba(38, 38, 38, 0.35); }
.card-img { display: block; width: 100%; height: 260px; object-fit: cover; }
.card-body { padding: clamp(22px, 3vw, 32px); display: flex; flex-direction: column; gap: 14px; }
.card-title {
  margin: 0;
  font-family: var(--sign-font);
  font-weight: 400;
  font-size: 30px;
  line-height: 1.15;
  color: var(--teal-head);
}
.card-sub {
  margin: 6px 0 0;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 21px;
  line-height: 1.3;
  color: var(--teal-head);
}
.card-list { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 10px; }
.text-link { color: var(--teal-dark); font-weight: 600; }

/* Image crops */
.pos-20 { object-position: center 20%; }
.pos-25 { object-position: center 25%; }
.pos-35 { object-position: center 35%; }
.pos-40 { object-position: center 40%; }
.pos-55 { object-position: center 55%; }

/* ---------- Our Produce band ---------- */
.band {
  margin-top: clamp(56px, 8vw, 96px);
  background: var(--band);
  border-top: 1px solid var(--aqua);
  border-bottom: 1px solid var(--aqua);
}
.band-inner { max-width: 1120px; margin: 0 auto; padding: clamp(48px, 7vw, 88px) var(--side); }
.produce-intro {
  margin: 44px 0 18px;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 21px;
  color: var(--teal-head);
}
.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.tags li {
  background: #FFFFFF;
  border: 1px solid #BFDADA;
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 17px;
}

/* ---------- Gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: clamp(16px, 2vw, 24px);
}
.gallery img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 8px solid #FFFFFF;
  box-shadow: 0 0 0 1px var(--frame-line), 0 14px 28px -16px rgba(38, 38, 38, 0.45);
}
.center-row { display: flex; justify-content: center; margin-top: 28px; }

/* ---------- Visit + Contact ---------- */
.visit-wrap { max-width: 1120px; margin: 0 auto; padding: clamp(48px, 7vw, 88px) var(--side) 0; }
.visit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr));
  gap: clamp(24px, 3vw, 40px);
  align-items: stretch;
}
.visit { filter: drop-shadow(0 16px 22px rgba(38, 38, 38, 0.25)); }
.visit-inner {
  height: 100%;
  padding: clamp(22px, 3vw, 36px);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.map {
  display: block;
  position: relative;
  border: 6px solid #FFFFFF;
  box-shadow: 0 10px 20px -12px rgba(0, 0, 0, 0.5);
  text-decoration: none;
}
.map img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.map-tag {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  background: #FFFFFF;
  color: var(--teal-dark);
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  font-family: var(--serif);
  font-weight: 700;
  font-size: 15px;
}
.map-credit {
  position: absolute;
  left: 6px;
  bottom: 4px;
  font-size: 11px;
  line-height: 1.2;
  color: #3C4043;
  background: rgba(255, 255, 255, 0.8);
  padding: 1px 4px;
}
.map:focus-visible { outline-color: #FFFFFF; }
.visit-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr));
  gap: 20px;
  font-size: 18px;
  line-height: 1.5;
}
.visit-addr { color: #FFFFFF; text-decoration: none; display: block; }
.visit-addr span { text-decoration: underline; text-underline-offset: 3px; }
.visit-contact { display: flex; flex-direction: column; gap: 6px; }
.visit-contact a { color: #FFFFFF; font-weight: 700; text-underline-offset: 3px; }
.visit a:focus-visible { outline-color: #FFFFFF; }
.owners { margin-top: 8px; }
.owners strong { color: var(--aqua); font-family: var(--serif); }
.visit-hours {
  border-top: 2px dashed rgba(255, 255, 255, 0.45);
  padding-top: 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 24px;
  row-gap: 6px;
}
.visit-hours h3 {
  margin: 0;
  font-family: var(--sign-font);
  font-weight: 400;
  font-size: 26px;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--aqua);
  letter-spacing: 0.02em;
}
.visit-hours p { font-family: var(--serif); font-weight: 700; font-size: 21px; line-height: 1.4; }

/* Contact form card */
.contact {
  background: #FFFFFF;
  padding: clamp(24px, 3.5vw, 44px);
  box-shadow: 0 0 0 1px var(--frame-line), 0 16px 30px -14px rgba(38, 38, 38, 0.35);
}
.cf { position: relative; }
.cf-title {
  margin: 0 0 24px;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(22px, 2.6vw, 27px);
  line-height: 1.3;
  color: var(--red);
  text-wrap: balance;
}
.cf-form { display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 700; color: var(--teal-head); font-size: 17px; }
.field .opt { font-weight: 400; color: #5E6B70; }
.field input, .field textarea {
  font: inherit;
  font-size: 18px;
  padding: 12px 14px;
  min-height: 48px;
  border: 1.5px solid #A9C3CC;
  border-radius: 4px;
  background: #FFFFFF;
  color: var(--text);
  width: 100%;
}
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--teal); outline-offset: 1px; border-color: var(--teal); }
.field-err {
  display: none;
  align-items: center;
  gap: 6px;
  color: #A8001F;
  font-size: 16px;
  font-weight: 600;
}
.field-err svg { flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.cf-alert {
  display: none;
  gap: 12px;
  align-items: flex-start;
  background: #FDECEE;
  border: 2px dashed var(--red);
  border-radius: 4px;
  padding: 14px 16px;
  margin-bottom: 22px;
  color: #7A0016;
  line-height: 1.45;
}
.cf-alert svg { flex: none; margin-top: 1px; }
.cf-alert strong { display: block; font-family: var(--serif); font-size: 18px; }
.cf-alert a { color: #7A0016; font-weight: 700; }
.cf-alert-field { display: none; }

.cf-success {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
  padding: 36px 24px 32px;
  background: var(--band);
  border: 2px dashed var(--teal);
  border-radius: 4px;
}
.cf-badge {
  --check: rgba(255, 255, 255, 0.13);
  width: 68px;
  height: 68px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  outline: 2px dashed rgba(255, 255, 255, 0.7);
  outline-offset: -6px;
  box-shadow: 0 3px 0 var(--red-shadow);
  color: #FFFFFF;
}
.cf-success h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 24px;
  line-height: 1.3;
  color: var(--teal-dark);
}
.cf-success p { max-width: 380px; }
.cf-success p a { color: var(--teal-dark); font-weight: 700; }

/* Form states: data-state = form | error | success, data-field = the bad field (set by main.js, or by the server without JS) */
.cf[data-state="error"] .cf-alert { display: flex; }
.cf[data-state="success"] .cf-form { display: none; }
.cf[data-state="success"] .cf-success { display: flex; }
.cf[data-state="error"][data-field="name"] .cf-alert-field,
.cf[data-state="error"][data-field="email"] .cf-alert-field,
.cf[data-state="error"][data-field="message"] .cf-alert-field { display: inline; }
.cf[data-state="error"][data-field="name"] .cf-alert-general,
.cf[data-state="error"][data-field="email"] .cf-alert-general,
.cf[data-state="error"][data-field="message"] .cf-alert-general { display: none; }
.cf[data-state="error"][data-field="name"] .field--name .field-err,
.cf[data-state="error"][data-field="email"] .field--email .field-err,
.cf[data-state="error"][data-field="message"] .field--message .field-err { display: flex; }
.cf[data-state="error"][data-field="name"] .field--name label,
.cf[data-state="error"][data-field="email"] .field--email label,
.cf[data-state="error"][data-field="message"] .field--message label { color: #A8001F; }
.cf[data-state="error"][data-field="name"] .field--name input,
.cf[data-state="error"][data-field="email"] .field--email input,
.cf[data-state="error"][data-field="message"] .field--message textarea { border: 2px solid var(--red); background: #FFF7F8; }

/* ---------- Footer ---------- */
.site-footer {
  padding: clamp(40px, 6vw, 64px) var(--side) 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}
.site-footer p { font-size: 15px; line-height: 1.6; color: #3A3A3A; max-width: 640px; }
.site-footer p a { color: var(--teal-dark); font-weight: 600; }

/* ---------- SEO / accessibility helpers ---------- */
.logo-h1 { margin: 0; font-size: inherit; line-height: inherit; flex: 0 1 auto; }
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
