/* TerraKota Farm — static site styles (mirrors the former EasyStore theme) */
:root {
  --text: rgba(0, 0, 0, .75);
  --heading: #000;
  --accent: #ae636a;
  --card: #f3f3f3;
  --line: #e6e6e6;
  --radius: 12px;
  --max: 1200px;
  --serif: "Playfair Display", Georgia, serif;
  --serif-sc: "Playfair Display SC", "Playfair Display", Georgia, serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 500 16px/1.7 var(--serif); color: var(--text); background: #fff; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif-sc); font-weight: 400; color: var(--heading); line-height: 1.25; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 30px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 10px; top: 10px; background: #fff; padding: 8px; z-index: 10; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; background: #000; color: #fff; text-decoration: none;
  border: 0; border-radius: 40px; padding: 10px 26px; font: 500 15px/1.4 var(--serif); cursor: pointer; }
.btn:hover { opacity: .85; }
.btn--wa { background: #1f7a4d; }
.btn--light { background: #fff; color: #000; border: 1px solid #000; }
.btn svg { width: 18px; height: 18px; fill: currentColor; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.header-top { display: flex; align-items: center; justify-content: space-between; padding-top: 18px; padding-bottom: 12px; }
.logo img { width: 80px; height: auto; }
.nav { display: flex; flex-wrap: wrap; gap: 6px 26px; padding-bottom: 14px; font-size: 13px; }
.nav a { text-decoration: none; color: #000; }
.nav a:hover, .nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; }
.dropdown { position: relative; }
.dropdown summary { cursor: pointer; list-style: none; color: #000; }
.dropdown summary::-webkit-details-marker { display: none; }
.dropdown summary::after { content: " \25BE"; font-size: 10px; }
.dropdown div { position: absolute; top: 100%; left: -12px; z-index: 5; background: #fff; border: 1px solid var(--line);
  border-radius: 8px; padding: 8px 12px; min-width: 190px; display: grid; gap: 6px; }

/* Hero */
.hero { position: relative; display: grid; grid-template-columns: 1fr 1fr; min-height: 640px; }
.hero-img { position: relative; overflow: hidden; }
.hero-img img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.hero-box { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); background: #fff;
  width: min(420px, 90%); padding: 40px 34px; text-align: center; }
.hero-box h1 { font-size: clamp(32px, 4vw, 52px); margin: 0 0 18px; }
.hero-box p { font-size: 14px; margin: 0 0 22px; }
.hero-box .actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

/* Image + text rows */
.feature { display: grid; grid-template-columns: 1fr 2fr; gap: 50px; align-items: center; padding: 60px 0; }
.feature--right { grid-template-columns: 2fr 1fr; }
.feature--right .feature-img { order: 2; }
.feature-img img { border-radius: var(--radius); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.feature--right .feature-img img { aspect-ratio: 3 / 4; }
.eyebrow { font-size: 12px; letter-spacing: .25em; text-transform: uppercase; color: #000; margin: 0; }
.feature h2 { font-family: var(--serif); text-transform: uppercase; font-size: clamp(22px, 2.4vw, 30px); margin: 14px 0; }
.feature p { font-size: 14px; }

/* Cards */
.tips h2 { font-size: 24px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--card); border-radius: var(--radius); padding: 22px; font-size: 14px; }
.card h3 { font-family: var(--serif); text-transform: uppercase; font-size: 14px; margin: 0 0 8px; }
.center { text-align: center; margin: 26px 0 60px; }

/* Instagram strip */
.insta { background: var(--card); padding: 50px 0; }
.insta h2 { font-size: 22px; margin-top: 0; }
.insta .cards a { display: block; background: #fff; border-radius: var(--radius); overflow: hidden; text-decoration: none;
  font-family: var(--serif-sc); color: #000; text-align: center; }
.insta .cards img { aspect-ratio: 1; object-fit: cover; width: 100%; }
.insta .cards span { display: block; padding: 14px; }

/* Products */
.page-title { font-size: clamp(28px, 3.2vw, 40px); margin: 50px 0 10px; }
.lead { margin: 0 0 40px; }
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; margin-bottom: 60px; }
.product { background: var(--card); border-radius: var(--radius); padding: 14px; display: flex; flex-direction: column; scroll-margin-top: 20px; }
.product img { border-radius: 8px; aspect-ratio: 1; object-fit: cover; width: 100%; }
.product h2 { font-family: var(--serif); font-size: 18px; margin: 16px 0 4px; }
.price { color: #000; font-weight: 600; margin: 0 0 10px; }
.product .desc { font-size: 14px; flex: 1; }
.product .desc ul { padding-left: 18px; margin: 4px 0; }
.product .desc p { margin: 0 0 8px; }
.product select { width: 100%; font: inherit; font-size: 14px; padding: 8px; border-radius: 8px; border: 1px solid #ccc; margin-bottom: 10px; background: #fff; }
.product .btn { justify-content: center; }
.product:target { outline: 2px solid var(--accent); }

/* Rich text pages */
.rte { max-width: 860px; margin: 0 auto 70px; font-size: 15px; }
.rte h2 { font-size: 20px; margin-top: 30px; }
.rte hr { border: 0; border-top: 1px solid var(--line); margin: 30px 0; }
.rte h3 { font-size: 18px; }
.rte img { margin: 10px auto 20px; border-radius: var(--radius); max-height: 420px; width: auto; }
.rte a { color: var(--accent); }

/* Shipping zones table */
.zones { width: 100%; border-collapse: collapse; margin: 20px 0 30px; font-size: 14px; }
.zones th { text-align: left; font-family: var(--serif-sc); font-weight: 400; color: #000; background: var(--card); white-space: nowrap; }
.zones th, .zones td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.zones td:first-child, .zones td:nth-child(2) { white-space: nowrap; color: #000; font-weight: 600; }
.zones td:nth-child(4) { white-space: nowrap; }

/* Contact */
.contact { margin-bottom: 70px; }
.contact dl { margin: 0; }
.contact dt { font-weight: 700; color: #000; margin-top: 14px; }
.contact dd { margin: 0; }
.hours td { padding: 2px 20px 2px 0; }

/* Footer */
.site-footer { color: var(--accent); font-size: 13px; border-top: 1px solid var(--line); }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; padding: 40px 30px; }
.site-footer h2 { font-size: 15px; color: var(--accent); margin: 0 0 14px; }
.site-footer a { color: var(--accent); }
.social { display: flex; gap: 18px; }
.social svg { width: 18px; height: 18px; fill: var(--accent); }
.footer-bottom { border-top: 1px solid var(--line); text-align: center; padding: 20px; font-size: 11px; }
.footer-bottom p { margin: 4px 0; }

@media (max-width: 800px) {
  .container { padding: 0 16px; }
  /* CTA first, then both photos side by side, uncropped */
  .hero { grid-template-columns: 1fr 1fr; gap: 8px; min-height: 0; padding: 0 16px 8px; align-items: center; }
  .hero-box { position: static; transform: none; width: auto; padding: 24px 0 16px; grid-column: 1 / -1; order: -1; }
  .hero-box h1 { font-size: 30px; }
  .hero-img img { position: static; height: auto; border-radius: 8px; }
  .zones thead { display: none; }
  .zones tr { display: block; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; padding: 6px 0; }
  .zones td { display: grid; grid-template-columns: 110px 1fr; gap: 10px; border: 0; padding: 6px 14px; white-space: normal !important; }
  .zones td::before { content: attr(data-label); font-family: var(--serif-sc); color: var(--accent); font-weight: 400; }
  .feature, .feature--right { grid-template-columns: 1fr; gap: 20px; padding: 36px 0; }
  .feature--right .feature-img { order: 0; }
  .cards, .footer-cols { grid-template-columns: 1fr; }
  .footer-cols { padding: 30px 16px; }
}
