:root {
  --bg: #D4E7FF;
  --surface: #FDF6D9;
  --text: #2D3037;
  --muted: #55606c;
  --accent: #FFD57F;
  --green: #2D3037;
  --border: #2D3037;
  --shadow: 0 1px 2px rgba(0,0,0,0.05), 0 8px 24px rgba(0,0,0,0.06);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 18px;
  --maxw: 1200px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 28px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --transition: 180ms ease;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body.site-body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--space-4); }

/* Brand font: Dosis (local) */
@font-face {
  font-family: 'Dosis';
  src: url('font/Dosis-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Dosis';
  src: url('font/Dosis-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Dosis';
  src: url('font/Dosis-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* Utility for any instance of the brand name */
.brand-font, .brand, .preloader-text, .footer-brand {
  font-family: 'Dosis', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 300;
  letter-spacing: .02em;
}

/* Typography */
h1, h2, h3, h4, h5, h6 { 
  font-family: 'Dosis', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; 
  font-weight: 600; 
  letter-spacing: -0.01em; 
}
h1 { font-size: clamp(2rem, 2.4vw + 1.25rem, 3.2rem); line-height: 1.12; margin: 0 0 var(--space-3); }
h2 { font-size: clamp(1.4rem, 1.2vw + 1rem, 2rem); line-height: 1.2; margin: var(--space-6) 0 var(--space-3); }
h3 { font-size: clamp(1.1rem, .6vw + 1rem, 1.35rem); margin: var(--space-3) 0 var(--space-2); }
p { margin: 0 0 var(--space-3); }
a { color: var(--green); text-underline-offset: 2px; }
a:hover { text-decoration: none; }

/* Header */
.site-header { background: var(--surface); border-bottom: 4px solid var(--border); position: sticky; top: 0; z-index: 20; backdrop-filter: saturate(140%) blur(6px); }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; padding: var(--space-3) 0; }
.logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--text); font-weight: 700; padding-left: var(--space-3); }
.logo-img { height: 40px; width: auto; display: inline-block; }
.logo .brand { font-size: 1.55rem; white-space: nowrap; }
.site-nav { display: flex; align-items: center; white-space: nowrap; overflow-x: auto; }
.site-nav a { color: var(--text); text-decoration: none; margin-left: var(--space-2); padding: 8px 12px; border-radius: 999px; transition: background var(--transition), color var(--transition); }
.site-nav a:hover { background: rgba(0,0,0,0.05); }
.site-nav a:focus { outline: 2px solid var(--accent); outline-offset: 2px; }
.site-nav a.active { background: var(--green); color: #fff; }

/* Footer */
.site-footer { background: var(--surface); border-top: 4px solid var(--border); margin-top: var(--space-12); }
.site-footer .container { padding: var(--space-6) var(--space-4); }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-3); }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1fr auto; } }
.footer-brand { font-weight: 800; }
.footer-note { color: var(--muted); }
.copyright { color: var(--muted); font-size: 14px; margin-top: var(--space-3); }

/* Buttons */
.btn { display: inline-block; background: var(--green); color: #fff; text-decoration: none; padding: 10px 14px; border-radius: var(--radius-sm); font-weight: 700; letter-spacing: .01em; box-shadow: var(--shadow); transition: transform var(--transition), filter var(--transition); }
.btn:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn:focus { outline: 3px solid var(--accent); outline-offset: 2px; }
.btn-small { padding: 6px 10px; font-size: 14px; box-shadow: none; }
.btn-outline { background: transparent; color: var(--green); border: 2px solid var(--green); box-shadow: none; }

/* Sections */
.section { padding: var(--space-10) 0; }

/* Hero */
.hero { padding: var(--space-16) 0 var(--space-12); border-radius: 0 0 var(--radius-lg) var(--radius-lg); position: relative; }
.hero.has-image::after { content: ""; position: absolute; right: var(--space-4); bottom: var(--space-4); width: 80px; aspect-ratio: 1 / 1; background: url('img/logo.png') no-repeat center / contain; opacity: 0.95; pointer-events: none; z-index: 1; }
@media (min-width: 720px) { .hero.has-image::after { width: 110px; } }
.hero:not(.has-image) { background: linear-gradient(180deg, #edf2f1 0%, #f7f7f5 100%); }
.hero.has-image { color: #fff; background: linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,.35)), var(--hero-bg, none); background-size: cover; background-position: center; min-height: 56vh; }
.hero-grid { display: grid; gap: var(--space-6); align-items: start; justify-content: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }
.hero-text { max-width: 760px; margin: 0 auto; }
.hero-text .lead { color: var(--muted); font-size: 1.1rem; }
.hero.has-image .lead, .hero.has-image .intro { color: rgba(255,255,255,0.92); }
.intro { margin-top: var(--space-2); }

.workshop-cards { display: grid; gap: var(--space-4); grid-template-columns: 1fr; }
@media (min-width: 720px) { .workshop-cards { grid-template-columns: repeat(3, 1fr); } }
.card { background: #fff; border: 6px solid var(--border); border-radius: var(--radius); padding: var(--space-4); display: grid; gap: var(--space-2); box-shadow: var(--shadow); transition: transform var(--transition), box-shadow var(--transition); }
.card:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(0,0,0,0.06), 0 14px 32px rgba(0,0,0,0.08); }
.card-date { color: var(--muted); font-size: 14px; }
.card-title { margin: 0; }
.card-text { margin: 0; }

/* Testimonials */
.testimonials { margin-top: var(--space-6); }
.section-title { margin: 0 0 var(--space-4); }
.testimonials-strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 1fr); gap: var(--space-3); overflow-x: auto; padding-bottom: var(--space-8); scroll-snap-type: x mandatory; position: relative; overscroll-behavior-x: contain; touch-action: pan-x; }
.testimonials-strip .grass-overlay { position: absolute; left: 0; bottom: 0; height: 100px; background-image: url('img/grass.svg'); background-repeat: repeat-x; background-size: auto 100%; background-position: left bottom; z-index: 1; pointer-events: none; }
/* hide scrollbars */
.testimonials-strip { scrollbar-width: none; -ms-overflow-style: none; }
.testimonials-strip::-webkit-scrollbar { display: none; }
/* Impressions (testimonials) styled over sheep images */
.quote { position: relative; background: transparent; border: 0; border-radius: var(--radius); padding: 0; margin: 0; box-shadow: none; scroll-snap-align: start; min-height: 260px; text-align: center; --sheep: url('img/Sheep1.svg'); }
.quote::before { content: ""; position: absolute; inset: var(--space-3); background-image: var(--sheep); background-repeat: no-repeat; background-position: center; background-size: contain; z-index: 0; filter: drop-shadow(0 6px 16px rgba(0,0,0,0.08)); }
/* Adjustable text region per sheep using CSS variables */
.quote .quote-text { position: absolute; left: var(--txt-left, 20%); top: var(--txt-top, 24%); width: var(--txt-width, 60%); height: var(--txt-height, 48%); display: grid; align-content: center; justify-items: center; padding: 6px; z-index: 2; }
.quote .quote-text p { overflow-wrap: anywhere; text-wrap: pretty; line-height: 1.3; }
.quote .quote-text p { margin: 0; font-family: 'Dosis', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-weight: 600; color: var(--green); }
.quote .quote-text cite { display: block; margin-top: 6px; color: var(--muted); font-style: normal; }

/* Rotate sheep images across items */
.quote:nth-child(5n+1) { --sheep: url('img/Sheep1.svg'); --txt-left: 13%; --txt-top: 29%; --txt-width: 56%; --txt-height: 44%; }
.quote:nth-child(5n+2) { --sheep: url('img/Sheep2.svg'); --txt-left: 17%; --txt-top: 37%; --txt-width: 58%; --txt-height: 42%; }
.quote:nth-child(5n+3) { --sheep: url('img/Sheep3.svg'); --txt-left: 30%; --txt-top: 32%; --txt-width: 54%; --txt-height: 40%; }
.quote:nth-child(5n+4) { --sheep: url('img/Sheep4.svg'); --txt-left: 17%; --txt-top: 36%; --txt-width: 56%; --txt-height: 46%; }
.quote:nth-child(5n)   { --sheep: url('img/Sheep5.svg'); --txt-left: 22%; --txt-top: 36%; --txt-width: 58%; --txt-height: 44%; }

@media (max-width: 480px) {
  .logo-img { height: 30px; }
  .logo .brand { font-size: 1.2rem; }
  .site-nav a { padding: 6px 10px; font-size: 14px; }
  .hero { padding: var(--space-12) 0 var(--space-8); }
  .hero.has-image { min-height: 50vh; background-position: center top; }
  .hero-text { padding: 0 var(--space-4); }
}

.testimonials-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-3); }
@media (min-width: 720px) { .testimonials-grid { grid-template-columns: repeat(3, 1fr); } }
.testimonials-grid .quote { min-height: 260px; aspect-ratio: 1 / 1; }

/* Venue */
.venue { margin-top: var(--space-6); }
.venue-inner { background: var(--surface); border: 6px solid var(--border); border-radius: var(--radius); padding: var(--space-5); display: grid; gap: var(--space-4); box-shadow: var(--shadow); }
@media (min-width: 900px) { .venue-inner { grid-template-columns: 1fr 1fr; } }
.photo-placeholder { background: linear-gradient(135deg, #ddd, #eee); width: 100%; padding-top: 60%; border-radius: var(--radius-sm); }
.venue-photo-img { width: 100%; height: auto; display: block; border-radius: var(--radius-sm); }

/* Workshop detail */
.mobile-cta { position: sticky; bottom: 16px; display: inline-block; background: var(--accent); color: var(--text); text-decoration: none; padding: 10px 14px; border-radius: 999px; font-weight: 700; box-shadow: 0 4px 14px rgba(0,0,0,0.15); margin-left: auto; z-index: 9; }
@media (min-width: 720px) { .mobile-cta { display: none; } }
.workshop-hero { padding: var(--space-6) 0 0; }
.hero-image { width: 100%; height: auto; border-radius: 10px; }
.dates { color: var(--muted); margin-bottom: 8px; }
.workshop-body .stack { display: grid; gap: var(--space-6); margin-top: var(--space-4); }
.prose p { margin: 0 0 10px; }
.prose ul { margin: 0 0 10px 20px; }

/* Contact */
.contact .stack { display: grid; gap: var(--space-5); margin-top: var(--space-3); }

/* Long reviews (collapsible) */
.long-reviews { display: grid; gap: var(--space-3); margin-top: var(--space-3); }
.long-review { background: var(--surface); border: 6px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.long-review > summary { list-style: none; cursor: pointer; padding: var(--space-4); display: grid; gap: 4px; position: relative; }
.long-review > summary::-webkit-details-marker { display: none; }
.lr-title { font-weight: 800; }
.lr-meta { color: var(--muted); font-size: 14px; }
.long-review > summary::after { content: "▾"; position: absolute; right: var(--space-4); top: 50%; transform: translateY(-50%) rotate(-90deg); transition: transform var(--transition); }
.long-review[open] > summary { background: rgba(0,0,0,0.03); border-bottom: 1px solid var(--border); }
.long-review[open] > summary::after { transform: translateY(-50%) rotate(0deg); }
.long-review .lr-body { max-height: 0; opacity: 0; overflow: hidden; padding: 0 var(--space-4); transition: max-height 300ms ease, opacity 300ms ease, padding 300ms ease; }
.long-review[open] .lr-body { max-height: 1200px; opacity: 1; padding: var(--space-4); }
.long-review .lr-body p { margin: 0 0 12px; line-height: 1.65; }

/* Home excerpt card override so it doesn't inherit collapsible styling */
.long-review-excerpt .long-review { background: var(--surface); border: 6px solid var(--border); border-radius: var(--radius); padding: var(--space-4); overflow: visible; }
.long-review-excerpt .long-review h3 { margin: 0 0 6px; }
.long-review-excerpt .long-review .meta { color: var(--muted); margin-bottom: 8px; }

/* Preloader */
.preloader { position: fixed; inset: 0; display: grid; place-items: center; background: rgba(255,255,255,.98); z-index: 100; transition: opacity .8s ease, visibility .8s ease; }
.preloader.hide { opacity: 0; visibility: hidden; }
.preloader-inner { display: grid; place-items: center; gap: var(--space-3); }
.preloader-text { font-weight: 700; color: var(--green); }
.preloader-logo { width: clamp(180px, 60vw, 600px); height: auto; }
.preloader-animation { animation: bob 1.4s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

@media (prefers-reduced-motion: reduce) {
  .preloader-animation { animation: none; }
}


/* About */
.about-section + .about-section { margin-top: var(--space-10); }
.about-text { position: relative; }
.about-text::after { content: ""; display: table; clear: both; }
.about-text h3 { color: var(--muted); margin-top: 2px; }

/* Floated image that only impacts its own text block */
.about-img {
  width: clamp(220px, 33%, 380px); /* roughly one-third of the text width */
  height: auto;
  max-height: 380px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  shape-outside: inset(0); /* square wrap */
}
.float-left { float: left; margin: 0 var(--space-4) var(--space-3) 0; }
.float-right { float: right; margin: 0 0 var(--space-3) var(--space-4); }


/* Forms */
.form-grid { display: grid; gap: var(--space-4); grid-template-columns: 1fr; }
@media (min-width: 900px) { .form-grid { grid-template-columns: 1fr 1fr; } }
.form-span { grid-column: 1 / -1; }
.form-group label { display: block; font-weight: 700; margin-bottom: 6px; }
.form-group .req { color: #b10000; }
.form-group input[type="text"],
.form-group input[type="email"],
.form-group select,
.form-group textarea {
  width: 100%;
  border: 2px solid var(--border);
  background: #fff;
  color: var(--text);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  box-shadow: none;
}
.form-group textarea { resize: vertical; }
.form-actions { margin-top: var(--space-4); display: flex; align-items: center; gap: var(--space-3); }
.form-actions .help { color: var(--muted); font-size: 14px; }
.error { color: #b10000; font-size: 14px; margin-top: 4px; }
.hr { border: 0; border-top: 1px solid var(--border); margin: var(--space-6) 0; }

/* Messages */
.messages { display: grid; gap: var(--space-3); margin-bottom: var(--space-4); }
.messages .msg { padding: 10px 12px; border-radius: var(--radius-sm); border: 2px solid var(--border); background: #fff; }
.messages .msg.success { border-color: #2d7a2f; }
.messages .msg.error { border-color: #b10000; }

