/* =====================================================
   ENHANCEMENTS v1.1
   Accessibility • Micro-interactions • Polish
   ===================================================== */

/* ---- Site foundation ---- */
:root {
  --busotto-green: #08713a;
  --busotto-green-mid: #24804a;
  --busotto-green-dark: #064326;
  --busotto-gold: #d5a326;
  --busotto-brown: #70452c;
  --busotto-cream: #f8f6ef;
  --shadow-sm: 0 6px 22px rgba(6, 67, 38, .08);
  --shadow-md: 0 16px 38px rgba(6, 67, 38, .13);
  --shadow-lg: 0 24px 58px rgba(6, 67, 38, .2);
  --nav-height: 96px;
}

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-height) + 1rem); }
body {
  min-width: 320px;
  margin: 0;
  color: #27332b;
  background: var(--busotto-cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
main { min-height: 55vh; }
h1, h2, h3, h4, h5, h6 { color: var(--busotto-green-dark); line-height: 1.2; }
p:last-child { margin-bottom: 0; }
a { color: var(--busotto-green); }
a:hover { color: var(--busotto-green-dark); }
.text-muted { color: #66716a !important; }

/* ---- Shared navigation and buttons ---- */
.navbar-busotto {
  min-height: var(--nav-height);
  background: rgba(255,255,255,.97);
  box-shadow: 0 2px 16px rgba(21,59,39,.08);
  z-index: 1030;
}
.navbar-busotto .container { min-height: var(--nav-height); }
.navbar-busotto .navbar-brand { min-width: 0; color: var(--busotto-green-dark); }
.brand-logo { display: block; width: 88px; height: 88px; flex: 0 0 88px; object-fit: contain; border-radius: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 1rem; letter-spacing: .11em; }
.brand-text small { margin-top: .2rem; color: #66716a; font-family: 'Inter', sans-serif; font-size: .68rem; }
.navbar-busotto .navbar-nav { gap: .2rem; }
.navbar-busotto .nav-link { padding: .65rem .85rem; color: #34453a; font-weight: 600; }
.navbar-busotto .nav-link:hover, .navbar-busotto .nav-link.active { color: var(--busotto-green); }
.navbar-busotto .nav-link.active { position: relative; }
.navbar-busotto .nav-link.active::after { position: absolute; right: .85rem; bottom: .25rem; left: .85rem; height: 2px; background: var(--busotto-gold); content: ""; }
.language-switch { white-space: nowrap; }
.language-switch-toggle {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  border: 1px solid rgba(23, 59, 43, .12);
  border-radius: 999px;
  padding: .55rem .75rem;
  background: rgba(248, 246, 240, .8);
  color: #34453a;
  font: inherit;
  font-size: .84rem;
  font-weight: 600;
  line-height: 1.2;
}
.language-switch-toggle:hover,
.language-switch-toggle:focus-visible,
.language-switch.show .language-switch-toggle {
  border-color: rgba(8, 113, 58, .38);
  color: var(--busotto-green);
}
.language-flag {
  display: inline-block;
  width: 1.5rem;
  height: .9rem;
  flex: 0 0 auto;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, .14);
  border-radius: 2px;
  vertical-align: middle;
}
.language-switch-menu {
  min-width: 10rem;
  padding: .35rem;
  border: 1px solid rgba(23, 59, 43, .12);
  border-radius: .8rem;
  box-shadow: 0 12px 30px rgba(23, 59, 43, .16);
}
.language-switch-menu .dropdown-item {
  display: flex;
  min-height: 2.75rem;
  align-items: center;
  gap: .65rem;
  border-radius: .5rem;
  color: #34453a;
}
.language-switch-menu .dropdown-item:hover,
.language-switch-menu .dropdown-item:focus,
.language-switch-menu .dropdown-item[aria-current="page"] {
  background: rgba(8, 113, 58, .09);
  color: var(--busotto-green-dark);
}
.social-links { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; }
.social-links a { display: inline-flex; align-items: center; gap: .4rem; color: var(--busotto-green-dark); text-decoration: none; transition: transform .2s ease, color .2s ease, box-shadow .2s ease; }
.social-links a:hover, .social-links a:focus-visible { color: var(--busotto-green); transform: translateY(-3px); }
.social-links i { font-size: 1.15rem; transition: transform .2s ease, filter .2s ease; }
.social-links a:hover i, .social-links a:focus-visible i { transform: scale(1.16); filter: drop-shadow(0 2px 3px rgba(0,0,0,.2)); }
.social-facebook i { color: #1877f2; }
.social-tiktok i { color: #111; text-shadow: 1px 1px 0 #25f4ee, -1px -1px 0 #fe2c55; }
.social-telegram i { color: #229ed9; }
.social-youtube i { color: #ff0033; }
.social-gmail i { color: #ea4335; }
.footer-social-links a { width: 2.5rem; height: 2.5rem; justify-content: center; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; box-shadow: 0 3px 8px rgba(0,0,0,.18); }
.footer-social-links i { font-size: 1rem; }
.footer-social-links .social-facebook { background: #1877f2; }
.footer-social-links .social-tiktok { background: #111; }
.footer-social-links .social-telegram { background: #229ed9; }
.footer-social-links .social-youtube { background: #fff; border-color: #ff0033; }
.footer-social-links .social-gmail { background: #fff; border-color: #dadce0; }
.footer-social-links .social-facebook i,
.footer-social-links .social-tiktok i,
.footer-social-links .social-telegram i { color: #fff; text-shadow: none; }
.footer-social-links .social-youtube i { color: #ff0033; }
.footer-social-links .social-gmail i { color: #ea4335; }
.footer-social-links a:hover, .footer-social-links a:focus-visible { color: #fff; transform: translateY(-4px) scale(1.08); box-shadow: 0 7px 14px rgba(0,0,0,.3), 0 0 0 3px rgba(255,255,255,.2); }
.footer-social-links .social-youtube:hover, .footer-social-links .social-youtube:focus-visible { color: #ff0033; }
.footer-social-links .social-gmail:hover, .footer-social-links .social-gmail:focus-visible { color: #ea4335; }
@media (prefers-reduced-motion: reduce) {
  .social-links a, .social-links i { transition: none; }
  .social-links a:hover, .social-links a:focus-visible,
  .social-links a:hover i, .social-links a:focus-visible i { transform: none; }
}
.lang-am { font-family: 'Noto Sans Ethiopic', 'Noto Sans', sans-serif; }
.lang-am h1, .lang-am h2, .lang-am h3, .lang-am h4, .lang-am h5, .lang-am h6,
.lang-am .section-title, .lang-am .footer-motto { font-family: 'Noto Sans Ethiopic', 'Noto Sans', sans-serif !important; }
.navbar-toggler { border-color: rgba(21,59,39,.2); }
.btn-busotto {
  border: 1px solid var(--busotto-green);
  border-radius: 50px;
  background: var(--busotto-green);
  color: #fff;
  font-weight: 700;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.btn-busotto:hover, .btn-busotto:focus { border-color: var(--busotto-green-dark); background: var(--busotto-green-dark); color: #fff; transform: translateY(-1px); }
.btn-outline-busotto { border: 1px solid var(--busotto-green); border-radius: 50px; color: var(--busotto-green); font-weight: 600; }
.btn-outline-busotto:hover { background: var(--busotto-green); color: #fff; }

/* ---- Shared page components ---- */
.section-title { margin-bottom: .5rem; font-family: 'Fraunces', Georgia, serif; font-size: clamp(1.8rem, 3vw, 2.65rem); font-weight: 700; }
.section-eyebrow { color: var(--busotto-green); font-size: .75rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.hero-motto { color: rgba(255,255,255,.85); }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .65s ease, transform .65s ease; }
.reveal.visible { opacity: 1; transform: none; }
.variety-card { overflow: hidden; border: 0; border-radius: 20px; box-shadow: var(--shadow-sm); transition: transform .25s ease, box-shadow .25s ease; }
.variety-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card-img-wrap { position: relative; display: grid; min-height: 210px; place-items: center; overflow: hidden; background: linear-gradient(135deg, var(--busotto-green-mid), var(--busotto-green-dark)); color: rgba(255,255,255,.8); }
.card-img-wrap > i { font-size: 5rem; }
.variety-code-badge { display: inline-flex; align-items: center; border-radius: 50px; padding: .35rem .8rem; background: var(--busotto-gold); color: #fff; font-size: .75rem; font-weight: 700; letter-spacing: .08em; }
.card-img-wrap .variety-code-badge { position: absolute; top: 1rem; left: 1rem; }
.flavor-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.flavor-chip { display: inline-block; border: 1px solid rgba(40,88,58,.16); border-radius: 50px; padding: .2rem .65rem; background: rgba(40,88,58,.055); color: var(--busotto-green-dark); font-size: .75rem; }
.inquiry-card, .dashboard-card { border-radius: 20px; padding: clamp(1.25rem, 3vw, 2rem); background: #fff; box-shadow: var(--shadow-sm); }
.dashboard-card { height: 100%; }
.dashboard-card .metric { margin-top: .25rem; color: var(--busotto-green-dark); font-family: 'Fraunces', Georgia, serif; font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 700; line-height: 1.1; }
.form-control, .form-select { min-height: 46px; border-color: #d8ded8; border-radius: 10px; }
textarea.form-control { min-height: auto; }
.form-control:focus, .form-select:focus { border-color: var(--busotto-green); box-shadow: 0 0 0 .2rem rgba(40,88,58,.13); }
.footer-busotto { padding-top: 1rem; background: linear-gradient(145deg, #07502e, #04351f); color: #fff9e9; }
.footer-busotto .text-muted { color: #e8e1ce !important; }
.footer-logo { width: 176px; height: 176px; padding: .45rem; object-fit: contain; border: 1px solid rgba(213,163,38,.5); border-radius: 18px; background: #fffdf5; transition: transform .25s ease, filter .25s ease; }
.footer-logo:hover { transform: scale(1.06); filter: drop-shadow(0 5px 10px rgba(0,0,0,.28)); }
@media (prefers-reduced-motion: reduce) {
  .footer-logo { transition: none; }
  .footer-logo:hover { transform: none; }
}
.footer-motto { max-width: 18rem; color: #fff8ed; font-family: 'Fraunces', Georgia, serif; font-size: 1.1rem; }
.footer-heading { margin-bottom: 1rem; color: #f0cb62; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.footer-links { margin: 0; padding: 0; list-style: none; }
.footer-links li + li { margin-top: .45rem; }
.footer-links a { color: #fff8ed; text-decoration: none; }
.footer-links a:hover { color: #f0cb62; text-decoration: underline; }
.footer-busotto .small a:not(.social-links a) { color: #fff8ed; }
.footer-busotto .small a:hover { color: #f0cb62; }
.footer-divider { border-color: rgba(255,249,233,.3); }
.developer-link { color: #f0cb62; font-weight: 700; text-decoration: none; }
.developer-link:hover, .developer-link:focus-visible { color: #fff8ed; text-decoration: underline; }
.farm-map-frame { overflow: hidden; min-height: 240px; border: 1px solid rgba(75,48,35,.16); border-radius: .85rem; box-shadow: var(--shadow-sm); background: #eadbc9; }
.farm-map-frame iframe { display: block; width: 100%; min-height: 240px; height: 280px; border: 0; }
.footer-map-frame { overflow: hidden; border: 1px solid rgba(255,248,237,.3); border-radius: .65rem; box-shadow: 0 4px 12px rgba(0,0,0,.2); }
.footer-map-frame iframe { display: block; width: 100%; height: 240px; border: 0; }
.back-to-top { display: grid; place-items: center; }
.admin-login-wrap { display: grid; min-height: 100vh; place-items: center; padding: 1.5rem; background: linear-gradient(140deg, #edf2e9, #f7f5ef 55%, #efe6d5); }
.admin-login-card { width: min(100%, 430px); border-radius: 24px; padding: clamp(1.5rem, 5vw, 2.5rem); background: #fff; box-shadow: var(--shadow-lg); }
.admin-login-logo { display: block; width: 180px; height: 180px; margin: 0 auto 1rem; object-fit: contain; border-radius: 0; }
.badge-status { display: inline-block; border-radius: 50px; padding: .3rem .65rem; font-size: .72rem; font-weight: 700; white-space: nowrap; }
.badge-Pending { background: #fff3cd; color: #765500; }
.badge-Contacted { background: #cfe2ff; color: #084298; }
.badge-Sample-Sent, .badge-Active { background: #d1e7dd; color: #0f5132; }
.badge-Archived, .badge-Inactive { background: #e2e3e5; color: #41464b; }
.table { --bs-table-bg: transparent; }
.table th { color: var(--busotto-brown); font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.table td { vertical-align: middle; }
.admin-sidebar { position: fixed; z-index: 1020; top: var(--nav-height); bottom: 0; left: 0; width: 220px; overflow-y: auto; padding: 1.5rem .85rem; background: var(--busotto-green-dark); color: #fff; }
.admin-sidebar-heading { padding: 0 .8rem .8rem; color: rgba(255,255,255,.55); font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.admin-sidebar nav { display: grid; gap: .25rem; }
.admin-sidebar nav a { display: flex; align-items: center; gap: .75rem; border-radius: 9px; padding: .7rem .8rem; color: rgba(255,255,255,.78); font-size: .9rem; text-decoration: none; transition: background .2s ease, color .2s ease; }
.admin-sidebar nav a:hover, .admin-sidebar nav a.active { background: rgba(255,255,255,.13); color: #fff; }
.admin-sidebar nav a.active { box-shadow: inset 3px 0 var(--busotto-gold); }
.admin-layout > main, .admin-layout > .container, .admin-layout > .container-fluid { margin-left: 220px; }
.admin-layout > .footer-busotto { margin-left: 220px; }
.content-editor-card { border: 0; border-radius: 18px; box-shadow: var(--shadow-sm); }
.content-editor-card .card-header { border-bottom: 1px solid #edf0eb; border-radius: 18px 18px 0 0; background: #fff; }
.media-dropzone {
  position: relative;
  display: flex;
  min-height: 116px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 2px dashed rgba(8, 113, 58, .35);
  border-radius: 14px;
  padding: 1rem;
  background: rgba(8, 113, 58, .035);
  color: var(--busotto-green-dark);
  text-align: center;
  transition: border-color .2s ease, background-color .2s ease;
}
.media-dropzone > i { margin-bottom: .35rem; color: var(--busotto-green); font-size: 1.55rem; }
.media-dropzone.is-dragging,
.media-dropzone:focus-visible { border-color: var(--busotto-gold); background: rgba(213, 163, 38, .1); outline: 3px solid rgba(213, 163, 38, .2); }
.media-dropzone.has-file { border-style: solid; border-color: var(--busotto-green-mid); background: rgba(8, 113, 58, .07); }
.media-dropzone .media-upload-input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; clip-path: inset(50%); }
.media-dropzone .media-upload-input:focus-visible + label { outline: 3px solid rgba(213, 163, 38, .5); outline-offset: 2px; }
.media-dropzone-preview { display: block; max-width: min(100%, 360px); max-height: 180px; margin-top: .75rem; border-radius: 10px; object-fit: contain; }
.media-dropzone-status { min-height: 1.25em; color: #56645a; font-size: .82rem; }

@media (max-width: 991.98px) {
  .admin-sidebar { position: sticky; top: var(--nav-height); bottom: auto; display: block; width: 100%; padding: .45rem .75rem; }
  .admin-sidebar-heading { display: none; }
  .admin-sidebar nav { display: flex; gap: .25rem; overflow-x: auto; }
  .admin-sidebar nav a { flex: 0 0 auto; padding: .55rem .7rem; font-size: .82rem; white-space: nowrap; }
  .admin-layout > main, .admin-layout > .container, .admin-layout > .container-fluid, .admin-layout > .footer-busotto { margin-left: 0; }
  .navbar-busotto .navbar-collapse { padding: .5rem 0 1rem; }
  .navbar-busotto .navbar-nav { align-items: stretch !important; }
  .navbar-busotto .nav-link.active::after { right: auto; width: 2rem; }
  .navbar-busotto .nav-item.ms-lg-3 { margin-top: .5rem; }
  .navbar-busotto .nav-item .btn { display: inline-flex; justify-content: center; }
}
@media (max-width: 575.98px) {
  :root { --nav-height: 80px; }
  .brand-logo { width: 72px; height: 72px; flex-basis: 72px; }
  .section-title { font-size: 1.8rem; }
  .feature-row { grid-template-columns: 48px minmax(0, 1fr); gap: .85rem; padding: .9rem .25rem; }
  .feature-row .icon-wrap { width: 48px; height: 48px; border-radius: 13px; font-size: 1.3rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* ---- Fonts ---- */
body {
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
}
h1, h2, h3, h4, h5, .brand-text strong, .hero h1 {
  font-family: 'Fraunces', Georgia, serif;
}

/* ---- Skip link ---- */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--busotto-green); color: #fff;
  padding: .75rem 1.25rem; z-index: 9999; border-radius: 0 0 .5rem 0;
}
.skip-link:focus { left: 0; }

/* ---- Focus visibility ---- */
:focus-visible {
  outline: 3px solid var(--busotto-gold);
  outline-offset: 2px;
  border-radius: 4px;
}
a:focus-visible, button:focus-visible, .btn:focus-visible {
  outline-offset: 3px;
}

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .hero-logo { animation: none !important; }
}

/* ---- Back to top ---- */
.back-to-top {
  position: fixed; bottom: 24px; right: 24px;
  width: 48px; height: 48px; border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, var(--busotto-green), var(--busotto-green-mid));
  color: #fff; font-size: 1.15rem;
  box-shadow: 0 8px 22px rgba(40,88,58,.4);
  cursor: pointer;
  opacity: 0; visibility: hidden;
  transform: translateY(12px);
  transition: all .3s ease;
  z-index: 1000;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { transform: translateY(-3px); }

/* ---- Toast ---- */
.toast-busotto {
  background: #fff; border-left: 5px solid var(--busotto-green);
  box-shadow: var(--shadow-md);
}

/* ---- Loading state ---- */
.btn.is-loading { pointer-events: none; opacity: .75; position: relative; }
.btn.is-loading::after {
  content: ""; position: absolute; width: 14px; height: 14px;
  border: 2px solid currentColor; border-right-color: transparent;
  border-radius: 50%; right: 12px; top: 50%; margin-top: -7px;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- Forms ---- */
.form-control.is-invalid, .form-select.is-invalid {
  border-color: #dc3545;
  background-image: none;
}
.form-control:required + .form-label::after,
label.required::after {
  content: " *"; color: #dc3545; font-weight: 700;
}

/* ---- Skeleton loaders ---- */
.skeleton {
  background: linear-gradient(90deg, #eceae1 25%, #f4f2ea 50%, #eceae1 75%);
  background-size: 200% 100%;
  animation: skeleton 1.4s infinite;
  border-radius: 6px;
}
@keyframes skeleton { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ---- Breadcrumbs ---- */
.breadcrumbs { font-size: .85rem; }
.breadcrumbs a { color: var(--busotto-green); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs .sep { color: var(--busotto-brown); margin: 0 .4rem; }

/* ---- Better tables on mobile ---- */
@media (max-width: 768px) {
  .table-responsive { border-radius: 12px; }
  .table-responsive .table { min-width: 640px; }
}

/* ---- Admin sidebar (optional) ---- */
.admin-sidebar {
  background: var(--busotto-green-dark);
  color: #fff; padding: 1.5rem 1rem; border-radius: 16px;
}
.admin-sidebar a {
  display: block; color: rgba(255,255,255,.75);
  padding: .55rem .8rem; border-radius: 8px;
  text-decoration: none; transition: all .2s;
}
.admin-sidebar a:hover, .admin-sidebar a.active {
  background: rgba(255,255,255,.1); color: #fff;
}

/* ---- Print ---- */
@media print {
  .navbar-busotto, .footer-busotto, .back-to-top,
  .btn, .toast-container { display: none !important; }
  body { background: #fff; color: #000; }
  a { color: #000; text-decoration: underline; }
}
/* =====================================================
   LAYOUT ENHANCEMENTS v2.0
   Grids, accents, split sections, timeline, mosaic
   ===================================================== */

/* ---------- Section spacing rhythm ---------- */
.section { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }
.section-lg { padding: 7rem 0; }
.page-title-section { padding-block: .75rem; text-align: left; }
.page-title-section .page-title-content { max-width: 1100px; padding-block: .75rem; text-align: left; }
.page-title-section h1 { max-width: 800px; margin-bottom: .5rem; font-size: clamp(1.8rem, 3.5vw, 2.7rem); line-height: 1.15; }
@media (max-width: 768px) {
  .section    { padding: 3.5rem 0; }
  .section-lg { padding: 4.5rem 0; }
  .page-title-section,
  .page-title-section .page-title-content { padding-block: .5rem; }
}

/* ---------- Decorative botanical accent ---------- */
.botanical-accent {
  display: inline-block;
  width: 60px; height: 3px;
  background: linear-gradient(90deg, var(--busotto-green), var(--busotto-gold));
  border-radius: 3px;
}
.botanical-accent.centered { margin: 1rem auto; display: block; }

/* Leaf watermark (very light, sits behind headings) */
.leaf-bg {
  position: relative;
  overflow-x: clip;
}
.leaf-bg::before {
  content: "";
  position: absolute;
  top: 15%; right: -60px;
  width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(40,88,58,.06), transparent 65%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

/* ---------- Split section (asymmetric 2-col) ---------- */
.split {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 4rem;
  align-items: center;
}
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 2.5rem; }
}
.split.reverse > *:first-child { order: 2; }
@media (max-width: 900px) { .split.reverse > *:first-child { order: 0; } }

/* ---------- Media frame (coffee imagery with botanical corners) ---------- */
.media-frame {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: linear-gradient(135deg, var(--busotto-green-dark), var(--busotto-green));
  aspect-ratio: 4 / 5;
}
.media-frame img {
  width: 100%; height: 100%; object-fit: cover;
  display: block;
  transition: transform .8s cubic-bezier(.7,.05,.2,1);
}
.media-frame:hover img { transform: scale(1.05); }
.media-frame::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(21,59,39,.35), transparent 55%);
  pointer-events: none;
}
.media-frame .frame-badge {
  position: absolute; bottom: 20px; left: 20px; z-index: 2;
  background: rgba(255,255,255,.95);
  color: var(--busotto-green-dark);
  padding: .5rem 1rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .06em;
  box-shadow: var(--shadow-sm);
}
.media-frame .frame-badge i { color: var(--busotto-gold); }

/* ---------- Stats counters strip ---------- */
.counters {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
@media (max-width: 768px) { .counters { grid-template-columns: repeat(2, 1fr); gap: 1rem; } }
.counter {
  text-align: center;
  padding: 2rem 1rem;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform .3s ease, box-shadow .3s ease;
  border-bottom: 3px solid transparent;
}
.counter:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-bottom-color: var(--busotto-gold);
}
.counter .num {
  font-family: 'Fraunces', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--busotto-green);
  line-height: 1;
  display: flex; align-items: baseline; justify-content: center; gap: .15rem;
}
.counter .num small { font-size: 1rem; color: var(--busotto-brown); font-weight: 600; }
.counter .lbl {
  margin-top: .65rem;
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--busotto-brown);
  font-weight: 600;
}

/* ---------- Timeline (About page) ---------- */
.timeline {
  position: relative;
  padding-left: 2.5rem;
  border-left: 2px dashed rgba(40,88,58,.25);
}
.timeline-item {
  position: relative;
  padding-bottom: 2.5rem;
}
.timeline-item::before {
  content: "";
  position: absolute;
  left: -2.5rem; top: 4px;
  width: 14px; height: 14px;
  background: var(--busotto-gold);
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(189,135,55,.25);
}
.timeline-item h4 {
  font-size: 1.05rem;
  margin-bottom: .35rem;
  color: var(--busotto-green-dark);
}
.timeline-item .ts {
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--busotto-brown);
  font-weight: 600;
  margin-bottom: .35rem;
  display: block;
}

/* ---------- Sticky side panel (Varieties) ---------- */
.sticky-side {
  position: sticky;
  top: 100px;
  align-self: start;
}
@media (max-width: 991px) { .sticky-side { position: static; } }

.side-panel {
  background: #fff;
  border-radius: 20px;
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1rem;
}
.side-panel h5 {
  font-size: .82rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--busotto-brown);
  margin-bottom: 1rem;
}
.side-panel .row-list {
  display: flex; flex-direction: column; gap: .55rem;
}
.side-panel .row-list a {
  display: flex; justify-content: space-between; align-items: center;
  padding: .6rem .85rem;
  border-radius: 10px;
  color: var(--busotto-green-dark);
  text-decoration: none;
  font-weight: 500;
  transition: all .2s ease;
  border: 1px solid transparent;
}
.side-panel .row-list a:hover {
  background: rgba(40,88,58,.06);
  border-color: rgba(40,88,58,.15);
  transform: translateX(3px);
}
.side-panel .row-list a .arrow {
  color: var(--busotto-gold);
  transition: transform .2s ease;
}
.side-panel .row-list a:hover .arrow { transform: translateX(3px); }

/* ---------- Variety detail hero ---------- */
.variety-hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3rem;
  align-items: center;
}
@media (max-width: 900px) { .variety-hero { grid-template-columns: 1fr; gap: 2rem; } }

.variety-hero .bignum {
  font-family: 'Fraunces', serif;
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 800;
  line-height: .9;
  color: transparent;
  background: linear-gradient(135deg, var(--busotto-green), var(--busotto-gold));
  -webkit-background-clip: text;
  background-clip: text;
  letter-spacing: -.04em;
}

/* ---------- Mosaic / bento gallery ---------- */
.mosaic {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 160px;
  gap: 1rem;
}
.mosaic .tile {
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, var(--busotto-green), var(--busotto-green-dark));
  color: #fff;
  padding: 1.5rem;
  display: flex; flex-direction: column; justify-content: flex-end;
  transition: transform .35s ease, box-shadow .35s ease;
}
.mosaic .tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.mosaic .tile h6 { font-size: .95rem; margin: 0; color: #fff; }
.mosaic .tile small { opacity: .85; font-size: .75rem; }
.mosaic .tile i { font-size: 2rem; color: var(--busotto-gold); margin-bottom: auto; }
.mosaic .tile.span-2 { grid-column: span 2; }
.mosaic .tile.row-2  { grid-row: span 2; }
.mosaic .tile.gold {
  background: linear-gradient(135deg, var(--busotto-gold), #a57020);
}
.mosaic .tile.gold i,
.mosaic .tile.gold h6 { color: #fff; }
@media (max-width: 900px) {
  .mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 140px; }
  .mosaic .tile.span-2 { grid-column: span 2; }
  .mosaic .tile.row-2  { grid-row: span 1; }
}

/* ---------- Parallax band ---------- */
.parallax-band {
  position: relative;
  min-height: 380px;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  overflow: hidden;
}
@media (max-width: 900px) { .parallax-band { background-attachment: scroll; min-height: 300px; } }
.parallax-band::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(110deg, rgba(14,42,28,.68), rgba(21,59,39,.38) 62%, rgba(14,42,28,.22));
}
.parallax-band > * { position: relative; z-index: 2; color: #fff; }

/* ---------- Scroll-snap feature cards ---------- */
.snap-rail {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 1rem;
  scrollbar-width: thin;
}
.snap-rail::-webkit-scrollbar { height: 6px; }
.snap-rail::-webkit-scrollbar-thumb { background: rgba(40,88,58,.25); border-radius: 3px; }
.snap-rail > * {
  flex: 0 0 min(340px, 82vw);
  scroll-snap-align: start;
}

/* ---------- Feature row with icon+copy (About) ---------- */
.feature-row {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 1.25rem;
  align-items: start;
  padding: 1.25rem;
  border-radius: 16px;
  transition: background .25s ease;
}
.feature-row:hover { background: rgba(40,88,58,.05); }
.feature-row .icon-wrap {
  width: 64px; height: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(40,88,58,.12), rgba(189,135,55,.12));
  color: var(--busotto-green);
  display: grid; place-items: center;
  font-size: 1.6rem;
}
.feature-row h4 { font-size: 1.05rem; margin-bottom: .3rem; }
.feature-row p { margin: 0; color: #566; font-size: .92rem; }

/* ---------- Homepage videos and events ---------- */
.event-showcase { background: linear-gradient(180deg, #f7f6ef, #fff 78%); }
.event-card {
  overflow: hidden;
  border: 1px solid rgba(40,88,58,.10);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}
.event-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.event-media {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #102b1a;
}
.event-media-placeholder { display: grid; place-items: center; color: rgba(255,255,255,.8); font-size: 3rem; }
.event-date { color: var(--busotto-green); font-size: .8rem; font-weight: 700; letter-spacing: .04em; }

/* ---------- Footer CTA strip ---------- */
.cta-strip {
  background: linear-gradient(135deg, var(--busotto-green-dark), var(--busotto-green));
  color: #fff;
  border-radius: 24px;
  padding: 3rem;
  position: relative;
  overflow: hidden;
}
.cta-strip::before {
  content: "";
  position: absolute;
  top: -80px; right: -80px;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(232,163,61,.35), transparent 65%);
  border-radius: 50%;
}
.cta-strip h2 { color: #fff; }
@media (max-width: 768px) { .cta-strip { padding: 2rem 1.5rem; } }

/* =====================================================
   UI REFRESH — refined origin-inspired surfaces
   ===================================================== */
body {
  color: #28372f;
  background-color: var(--busotto-cream);
}

.navbar-busotto {
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid rgba(23, 59, 43, .07);
  backdrop-filter: saturate(150%) blur(16px);
  -webkit-backdrop-filter: saturate(150%) blur(16px);
  transition: box-shadow .25s ease, background-color .25s ease;
}
.navbar-busotto.scrolled {
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 8px 28px rgba(23, 59, 43, .12);
}
.navbar-busotto .navbar-nav { gap: .35rem; }
.navbar-busotto .nav-link {
  border-radius: 999px;
  padding-inline: 1rem;
  transition: color .2s ease, background-color .2s ease;
}
.navbar-busotto .nav-link:hover,
.navbar-busotto .nav-link.active {
  background: rgba(45, 104, 71, .08);
}
.navbar-busotto .nav-link.active::after { display: none; }
.brand-logo { filter: drop-shadow(0 2px 5px rgba(6, 67, 38, .14)); }
.language-switch {
  display: flex;
  align-items: center;
}

.btn-busotto,
.btn-outline-busotto {
  min-height: 44px;
  padding: .65rem 1.25rem;
  box-shadow: 0 5px 14px rgba(23, 59, 43, .12);
}
.btn-busotto:hover,
.btn-busotto:focus { box-shadow: 0 9px 20px rgba(23, 59, 43, .2); }
.btn-outline-busotto { background: rgba(255,255,255,.78); }

.hero-slider {
  min-height: clamp(540px, 78svh, 790px);
  background: var(--busotto-green-dark);
}
.hero-slider .slide::before {
  background:
    linear-gradient(100deg, rgba(12, 37, 27, .9) 0%, rgba(17, 53, 37, .68) 42%, rgba(17, 53, 37, .2) 78%, rgba(17, 53, 37, .08) 100%),
    radial-gradient(circle at 75% 85%, rgba(189, 135, 64, .25), transparent 48%);
}
.hero-slider .slide-content { max-width: 1320px; padding-top: 7rem; padding-bottom: 7rem; }
.hero-slider .slide-eyebrow {
  border-color: rgba(243, 201, 130, .55);
  background: rgba(23, 59, 43, .34);
  color: #f0cb62;
}
.hero-slider h1 { max-width: 850px; font-size: clamp(2.8rem, 6.1vw, 5.2rem); }
.hero-slider .slide-lead { max-width: 650px; font-size: clamp(1rem, 1.45vw, 1.2rem); }
.hero-slider .nav-arrow { background: rgba(15, 43, 31, .5); }
.hero-slider .dots { bottom: 1.5rem; }

.section { position: relative; }
.section-title { letter-spacing: -.025em; }
.section-eyebrow { letter-spacing: .16em; }
.origin-facts {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid rgba(23, 59, 43, .09);
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 12px 32px rgba(23, 59, 43, .07);
}
.origin-fact { padding: 1.15rem 1rem; border-right: 1px solid rgba(23, 59, 43, .08); }
.origin-fact:last-child { border-right: 0; }
.origin-fact span { display: block; margin-bottom: .3rem; color: #66716a; font-size: .72rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.origin-fact strong { color: var(--busotto-green-dark); font-size: .95rem; line-height: 1.35; }
.journey-card,
.difference-card {
  height: 100%;
  padding: 1.35rem;
  border: 1px solid rgba(23, 59, 43, .08);
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 8px 24px rgba(23, 59, 43, .055);
}
.journey-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.55rem;
  height: 2.55rem;
  border-radius: 50%;
  background: rgba(45, 104, 71, .1);
  color: var(--busotto-green-dark);
  font-size: .85rem;
  font-weight: 800;
}
.difference-panel {
  padding: clamp(1.4rem, 4vw, 3rem);
  border: 1px solid rgba(23, 59, 43, .08);
  border-radius: 1.5rem;
  background: linear-gradient(145deg, #f3f4eb, #fff 65%);
}
.difference-card { padding: 1.2rem; }
.difference-card > i { color: var(--busotto-green-mid); font-size: 1.4rem; }
.difference-card p { color: #66716a; }
.origin-quote { color: var(--busotto-green-dark); font-family: 'Fraunces', Georgia, serif; font-size: 1.25rem; font-weight: 700; }
.origin-quote { margin-top: 1.5rem; padding-left: 1rem; border-left: 3px solid var(--busotto-gold); }
.botanical-accent { height: 4px; width: 68px; }
.media-frame {
  border: 1px solid rgba(255,255,255,.65);
  box-shadow: 0 24px 55px rgba(23, 59, 43, .2);
}
.counters { gap: 1rem; }
.counter {
  border: 1px solid rgba(23, 59, 43, .06);
  border-bottom: 3px solid transparent;
}
.variety-card,
.event-card,
.inquiry-card,
.side-panel {
  border: 1px solid rgba(23, 59, 43, .07);
  box-shadow: 0 8px 28px rgba(23, 59, 43, .075);
}
.variety-card:hover,
.event-card:hover { box-shadow: 0 18px 42px rgba(23, 59, 43, .15); }
.card-img-wrap { background: linear-gradient(135deg, var(--busotto-green-mid), var(--busotto-green-dark) 82%); }
.flavor-chip {
  border-color: rgba(45, 104, 71, .18);
  background: rgba(45, 104, 71, .07);
}

.page-title-section {
  position: relative;
  overflow: hidden;
  padding-block: 1.1rem;
  isolation: isolate;
}
.page-title-section::after {
  position: absolute;
  z-index: -1;
  top: -8rem;
  right: -5rem;
  width: 25rem;
  height: 25rem;
  border: 1px solid rgba(243, 201, 130, .16);
  border-radius: 50%;
  box-shadow: 0 0 0 2.5rem rgba(243, 201, 130, .035), 0 0 0 5rem rgba(243, 201, 130, .025);
  content: "";
  pointer-events: none;
}
.page-title-section .page-title-content { position: relative; z-index: 1; }
.page-title-section .breadcrumbs { font-size: .78rem; opacity: .9; }
.page-title-section h1 { letter-spacing: -.025em; }

.form-control,
.form-select {
  min-height: 48px;
  border-color: #d9dfd8;
  background-color: #fff;
  box-shadow: 0 1px 2px rgba(23, 59, 43, .025);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.form-control:focus,
.form-select:focus {
  border-color: var(--busotto-green-mid);
  box-shadow: 0 0 0 .22rem rgba(45, 104, 71, .13);
}
textarea.form-control { min-height: 130px; }
.form-label { color: #34483b; font-size: .9rem; font-weight: 600; }

.footer-busotto {
  border-top: 3px solid #e8a33d;
  padding-top: 2rem;
  background: linear-gradient(145deg, #07502e, #04351f);
}
.footer-divider { opacity: .22; }
.footer-map-frame { border-color: rgba(255,248,237,.24); }
.footer-links a,
.footer-busotto .small a:not(.social-links a) { transition: color .2s ease; }

.back-to-top {
  right: max(1.25rem, env(safe-area-inset-right));
  bottom: max(1.25rem, env(safe-area-inset-bottom));
  background: linear-gradient(145deg, var(--busotto-green-mid), var(--busotto-green-dark));
  box-shadow: 0 8px 24px rgba(23, 59, 43, .28);
}

@media (max-width: 991.98px) {
  .navbar-busotto .nav-link { border-radius: .65rem; padding-inline: .85rem; }
  .navbar-busotto .nav-link:hover,
  .navbar-busotto .nav-link.active { background: rgba(45, 104, 71, .07); }
  .hero-slider { min-height: 640px; }
  .hero-slider .slide-content { padding: 6rem 2rem 6rem; }
  .footer-map-frame iframe { height: 220px; }
  .origin-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .origin-fact:nth-child(3) { border-right: 0; }
  .origin-fact:nth-child(-n+3) { border-bottom: 1px solid rgba(23, 59, 43, .08); }
}
@media (max-width: 575.98px) {
  .hero-slider { min-height: 590px; }
  .hero-slider .slide-content { padding: 5rem 1.35rem 5rem; }
  .hero-slider h1 { font-size: clamp(2.45rem, 12vw, 3.45rem); }
  .hero-slider .slide-lead { max-width: 34rem; font-size: .98rem; }
  .hero-slider .slide-actions { align-items: stretch; }
  .hero-slider .slide-actions .btn { width: 100%; }
  .hero-slider .nav-arrow { top: auto; bottom: 1.2rem; }
  .hero-slider .nav-arrow.prev { left: 1rem; }
  .hero-slider .nav-arrow.next { right: 1rem; }
  .hero-slider .dots { bottom: 1.55rem; }
  .counters { gap: .7rem; }
  .counter { padding: 1.3rem .7rem; border-radius: 15px; }
  .counter .lbl { font-size: .68rem; letter-spacing: .1em; }
  .footer-map-frame iframe { height: 190px; }
  .footer-busotto .container { padding-inline: 1.25rem; }
  .origin-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .origin-fact:nth-child(3) { border-right: 1px solid rgba(23, 59, 43, .08); }
  .origin-fact:nth-child(even) { border-right: 0; }
  .origin-fact:nth-child(4) { border-bottom: 1px solid rgba(23, 59, 43, .08); }
}
@media (prefers-reduced-motion: reduce) {
  .navbar-busotto { transition: none; }
}

/* Shared admin workspace */
body.admin-layout {
  min-height: 100vh;
  background: #f3f5f1;
}
body.admin-layout .navbar-busotto { display: none; }
body.admin-layout .admin-sidebar {
  top: 0;
  width: 260px;
  padding: 1.25rem 1rem;
  border-right: 1px solid rgba(255,255,255,.12);
  background: #173b2b;
}
body.admin-layout .admin-sidebar-heading {
  display: flex;
  min-height: 88px;
  align-items: center;
  gap: .8rem;
  margin-bottom: 1.5rem;
  padding: 0 .25rem 1rem;
  border-bottom: 2px solid var(--busotto-gold);
  color: #fff;
  font-size: .92rem;
  font-weight: 750;
  letter-spacing: 0;
  line-height: 1.35;
  text-transform: none;
}
body.admin-layout .admin-sidebar-heading::before {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  border-radius: 50%;
  background: #fff url("../images/logob.webp") center / contain no-repeat;
  content: "";
}
body.admin-layout .admin-sidebar nav { gap: .35rem; }
body.admin-layout .admin-sidebar nav a {
  min-height: 44px;
  border-radius: 8px;
  padding: .7rem .75rem;
  color: rgba(255,255,255,.82);
  font-weight: 600;
}
body.admin-layout .admin-sidebar nav a i {
  width: 1.2rem;
  color: var(--busotto-gold);
  font-size: 1rem;
  text-align: center;
}
body.admin-layout .admin-sidebar nav a:hover,
body.admin-layout .admin-sidebar nav a.active {
  background: rgba(255,255,255,.12);
  color: #fff;
}
body.admin-layout .admin-sidebar nav a.active { box-shadow: inset 3px 0 var(--busotto-gold); }
body.admin-layout .admin-topbar {
  position: sticky;
  z-index: 1010;
  top: 0;
  display: flex;
  min-height: 104px;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-left: 260px;
  padding: 1.1rem clamp(1.25rem, 3vw, 3rem);
  border-bottom: 1px solid #d8e2d7;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(12px);
}
body.admin-layout .admin-topbar-kicker {
  color: var(--busotto-green-dark);
  font-size: .67rem;
  font-weight: 800;
  letter-spacing: .15em;
}
body.admin-layout .admin-topbar h1 {
  margin: .2rem 0 0;
  color: var(--busotto-green-dark);
  font-family: inherit;
  font-size: 1.45rem;
  font-weight: 750;
}
body.admin-layout .admin-topbar-user {
  display: flex;
  align-items: center;
  gap: .7rem;
  color: var(--busotto-green-dark);
  text-decoration: none;
}
body.admin-layout .admin-topbar-user-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid #d8e2d7;
  border-radius: 50%;
  font-size: 1.5rem;
}
body.admin-layout .admin-topbar-user strong,
body.admin-layout .admin-topbar-user small { display: block; }
body.admin-layout .admin-topbar-user strong { font-size: .84rem; }
body.admin-layout .admin-topbar-user small { margin-top: .15rem; color: #68766d; font-size: .72rem; }
body.admin-layout > #main { margin-left: 260px; }
body.admin-layout > .footer-busotto,
body.admin-layout > .back-to-top { display: none !important; }
body.admin-layout .container.py-5 > .d-flex h1,
body.admin-layout .container.py-5 > .d-flex h2 { color: var(--busotto-green-dark); font-weight: 750; }
body.admin-layout .container.py-5 > .d-flex { gap: 1rem; }
body.admin-layout .card:not(.content-editor-card) {
  border: 1px solid #d8e2d7;
  border-radius: 6px;
  box-shadow: 0 12px 30px rgba(27,54,38,.045) !important;
}
body.admin-layout .card-header {
  border-bottom-color: #e8eee7;
  background: #fff;
}
body.admin-layout .form-control,
body.admin-layout .form-select {
  min-height: 42px;
  border-color: #d5dfd4;
  border-radius: 4px;
}
body.admin-layout .form-control:focus,
body.admin-layout .form-select:focus {
  border-color: var(--busotto-green-dark);
  box-shadow: 0 0 0 .2rem rgba(23,59,43,.12);
}
body.admin-layout .btn { border-radius: 4px; font-weight: 650; }
body.admin-layout .table-responsive {
  border: 1px solid #d8e2d7;
  border-radius: 6px;
  background: #fff;
}
body.admin-layout .content-editor-card {
  overflow: hidden;
  border: 1px solid #d8e2d7;
  border-radius: 6px;
  box-shadow: 0 12px 30px rgba(27,54,38,.045);
}
body.admin-layout .content-editor-card .card-header {
  padding: 1rem 1.25rem;
  color: var(--busotto-green-dark);
  font-weight: 750;
}
body.admin-layout .content-editor-card .card-body { padding: 1.25rem; }
.slide-live-preview {
  display: grid;
  width: min(100%, 900px);
  min-height: 160px;
  aspect-ratio: 16 / 7;
  place-items: center;
  overflow: hidden;
  border: 1px solid #d8e2d7;
  border-radius: 8px;
  background:
    radial-gradient(circle at 78% 18%, rgba(213,163,38,.16), transparent 35%),
    linear-gradient(135deg, #173b2b, #0d2418);
  color: rgba(255,255,255,.82);
}
.slide-live-preview img,
.slide-live-preview video {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 430px;
  object-fit: cover;
}
.slide-live-preview [hidden] { display: none !important; }
.slide-live-preview > span { padding: 1.5rem; text-align: center; }
@media (max-width: 991.98px) {
  body.admin-layout .admin-sidebar { position: sticky; top: 0; bottom: auto; left: 0; display: block; width: 100%; }
  body.admin-layout .admin-topbar { margin-left: 0; min-height: 78px; }
  body.admin-layout > #main,
  body.admin-layout > .container,
  body.admin-layout > .container-fluid { margin-left: 0; }
}
@media (max-width: 575.98px) {
  body.admin-layout .admin-topbar { padding: .8rem 1rem; }
  body.admin-layout .admin-topbar h1 { font-size: 1.2rem; }
  body.admin-layout .admin-topbar-user-icon { width: 38px; height: 38px; }
}

/* Homepage farm photo gallery */
.farm-gallery {
  position: relative;
  overflow: hidden;
  padding: clamp(4rem, 8vw, 7rem) 0 2rem;
  background: #fff;
  color: var(--busotto-green-dark);
}
.farm-story-frame {
  aspect-ratio: 16 / 10;
}
.farm-gallery::before {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: clamp(150px, 24vw, 260px);
  background: url("../images/roast-coffee-beans.jpeg") center 76% / cover no-repeat;
  content: "";
  opacity: .78;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 48%);
  mask-image: linear-gradient(to bottom, transparent, #000 48%);
  pointer-events: none;
}
.farm-gallery-heading {
  position: relative;
  z-index: 1;
  width: min(100% - 2rem, 820px);
  margin: 0 auto clamp(2rem, 5vw, 3.5rem);
  text-align: center;
}
.farm-gallery-eyebrow {
  color: #9a6b22;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .2em;
}
.farm-gallery-heading h2 {
  margin: .7rem 0 .65rem;
  color: var(--busotto-green-dark);
  font-size: clamp(2rem, 4vw, 3.5rem);
}
.farm-gallery-heading p {
  max-width: 620px;
  margin: 0 auto;
  color: #58665c;
}
.farm-gallery-stage {
  position: relative;
  z-index: 1;
  width: min(100% - 2rem, 1440px);
  height: clamp(340px, 52vw, 620px);
  margin: 0 auto;
}
.farm-gallery-track {
  display: flex;
  height: 100%;
  gap: clamp(5px, .7vw, 10px);
}
.farm-gallery-panel {
  position: relative;
  display: block;
  min-width: 0;
  flex: 1 1 0;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: #222820;
  color: #fff;
  cursor: pointer;
  transition: flex-grow .55s cubic-bezier(.2,.8,.2,1), filter .35s ease;
}
.farm-gallery-panel.is-active { flex-grow: 5.5; }
.farm-gallery-panel:not(.is-active) { filter: brightness(.63) saturate(.72); }
.farm-gallery-panel:focus-visible,
.farm-gallery-control:focus-visible,
.farm-gallery-lightbox button:focus-visible {
  outline: 3px solid #e1bb69;
  outline-offset: 3px;
}
.farm-gallery-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .75s cubic-bezier(.2,.8,.2,1);
}
.farm-gallery-panel:hover img,
.farm-gallery-panel.is-active img { transform: scale(1.035); }
.farm-gallery-shade {
  position: absolute;
  inset: 20% 0 0;
  background: linear-gradient(transparent, rgba(0,0,0,.78));
  opacity: .2;
  transition: opacity .3s ease;
}
.farm-gallery-panel.is-active .farm-gallery-shade { opacity: 1; }
.farm-gallery-caption {
  position: absolute;
  right: 1.3rem;
  bottom: 1.5rem;
  left: 1.3rem;
  display: grid;
  gap: .35rem;
  text-align: left;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .3s ease, transform .3s ease;
}
.farm-gallery-panel.is-active .farm-gallery-caption {
  opacity: 1;
  transform: translateY(0);
}
.farm-gallery-caption small {
  color: #e4c47f;
  font-size: .72rem;
  font-weight: 750;
  letter-spacing: .12em;
}
.farm-gallery-caption strong { font-size: clamp(1.1rem, 2.2vw, 1.8rem); }
.farm-gallery-control,
.farm-gallery-lightbox-control,
.farm-gallery-lightbox-close {
  position: absolute;
  z-index: 2;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(23,59,43,.2);
  border-radius: 50%;
  background: rgba(255,255,255,.94);
  color: var(--busotto-green-dark);
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease;
}
.farm-gallery-control:hover,
.farm-gallery-lightbox button:hover { border-color: #e1bb69; background: #173b2b; color: #fff; }
.farm-gallery-lightbox-control,
.farm-gallery-lightbox-close {
  border-color: rgba(255,255,255,.35);
  background: rgba(17,21,16,.72);
  color: #fff;
}
.farm-gallery-control { top: 50%; transform: translateY(-50%); }
.farm-gallery-control.previous { left: 1rem; }
.farm-gallery-control.next { right: 1rem; }
.farm-gallery-footer {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  width: min(100% - 2rem, 1440px);
  margin: 1rem auto 0;
  color: #536157;
  font-size: .78rem;
}
.farm-gallery-footer [data-gallery-counter] { color: var(--busotto-green-dark); font-weight: 750; letter-spacing: .12em; }
.farm-gallery-lightbox[hidden] { display: none; }
.farm-gallery-lightbox {
  position: fixed;
  z-index: 2000;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(46px, 1fr) minmax(0, 1100px) minmax(46px, 1fr);
  align-items: center;
  gap: clamp(.5rem, 2vw, 2rem);
  padding: clamp(1rem, 4vw, 3rem);
  background:
    linear-gradient(125deg, rgba(5, 35, 24, .96), rgba(15, 58, 40, .94) 50%, rgba(4, 28, 20, .97)),
    #0b281d;
  color: #fff;
}
body.farm-gallery-open { overflow: hidden; }
.farm-gallery-lightbox figure { grid-column: 2; margin: 0; text-align: center; }
.farm-gallery-lightbox figure img {
  display: block;
  width: 100%;
  height: min(72vh, 760px);
  object-fit: contain;
}
.farm-gallery-lightbox figcaption { padding: 1rem .5rem 0; }
.farm-gallery-lightbox figcaption span,
.farm-gallery-lightbox figcaption strong { display: block; }
.farm-gallery-lightbox figcaption span { color: #e4c47f; font-size: .75rem; letter-spacing: .12em; }
.farm-gallery-lightbox figcaption strong { margin-top: .35rem; font-size: 1.2rem; }
.farm-gallery-lightbox figcaption p { margin: .35rem 0 0; color: rgba(255,255,255,.67); }
.farm-gallery-lightbox-close { top: 1.5rem; right: 1.5rem; }
.farm-gallery-lightbox-control { position: static; justify-self: center; }
.gallery-admin-preview {
  display: block;
  width: min(100%, 460px);
  max-height: 260px;
  object-fit: cover;
  border: 1px solid #d8e2d7;
  border-radius: 6px;
}
.gallery-admin-preview[hidden] { display: none !important; }
[data-gallery-upload-zone].is-dragging { border-color: var(--busotto-green-dark); background: #edf5ed; }
@media (max-width: 700px) {
  .farm-gallery-stage { height: min(68vh, 560px); }
  .farm-gallery-panel:not(.is-active):not(.is-neighbor) { display: none; }
  .farm-gallery-panel.is-active { flex-grow: 4.5; }
  .farm-gallery-panel.is-neighbor { flex-grow: 1; }
  .farm-gallery-caption { right: .75rem; bottom: 1rem; left: .75rem; }
  .farm-gallery-control { width: 40px; height: 40px; }
  .farm-gallery-control.previous { left: .5rem; }
  .farm-gallery-control.next { right: .5rem; }
  .farm-gallery-lightbox {
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    gap: .35rem;
    padding: 1rem .4rem;
  }
  .farm-gallery-lightbox figure img { height: 68vh; }
  .farm-gallery-lightbox-close { top: .75rem; right: .75rem; }
  .farm-gallery-lightbox-control { width: 38px; height: 38px; }
  .farm-gallery-footer { font-size: .7rem; }
}
@media (prefers-reduced-motion: reduce) {
  .farm-gallery-panel,
  .farm-gallery-panel img,
  .farm-gallery-shade,
  .farm-gallery-caption { transition: none; }
}

/* Admin profile menu and responsive navigation drawer */
body.admin-layout > .container { margin-left: 260px; }
body.admin-layout .admin-sidebar-toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid #d8e2d7;
  border-radius: 6px;
  background: #fff;
  color: var(--busotto-green-dark);
  font-size: 1.4rem;
}
body.admin-layout .admin-profile-dropdown { position: relative; }
body.admin-layout .admin-topbar-user {
  border: 0;
  border-radius: 6px;
  padding: .35rem .5rem;
  background: transparent;
  cursor: pointer;
}
body.admin-layout .admin-topbar-user:hover,
body.admin-layout .admin-topbar-user[aria-expanded="true"] { background: #f3f6f2; }
body.admin-layout .admin-profile-chevron { margin-left: .1rem; color: #748078; font-size: .72rem; }
body.admin-layout .admin-profile-menu {
  min-width: 190px;
  margin-top: .5rem !important;
  padding: .4rem;
  border: 1px solid #d8e2d7;
  border-radius: 7px;
  box-shadow: 0 14px 32px rgba(23,59,43,.16);
}
body.admin-layout .admin-profile-menu .dropdown-item {
  display: flex;
  align-items: center;
  gap: .65rem;
  min-height: 42px;
  border-radius: 4px;
  color: var(--busotto-green-dark);
  font-size: .88rem;
}
body.admin-layout .admin-profile-menu .dropdown-item:hover,
body.admin-layout .admin-profile-menu .dropdown-item:focus { background: #edf3ec; }
body.admin-layout .admin-profile-menu .dropdown-item i { width: 1.1rem; }
body.admin-layout .admin-profile-menu .admin-logout-link { color: #9c302a; }
body.admin-layout .admin-sidebar-backdrop[hidden] { display: none; }
body.admin-layout .admin-sidebar-backdrop:not([hidden]) {
  position: fixed;
  z-index: 1030;
  inset: 0;
  display: block;
  border: 0;
  background: rgba(15,27,19,.52);
}
@media (max-width: 991.98px) {
  body.admin-layout .admin-topbar { z-index: 1025; }
  body.admin-layout .admin-sidebar-toggle { display: inline-flex; }
  body.admin-layout .admin-sidebar {
    position: fixed;
    z-index: 1040;
    inset: 0 auto 0 0;
    width: min(86vw, 300px);
    max-height: 100dvh;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 1rem;
    transform: translateX(-105%);
    transition: transform .24s ease;
  }
  body.admin-layout.admin-sidebar-open { overflow: hidden; }
  body.admin-layout.admin-sidebar-open .admin-sidebar { transform: translateX(0); }
  body.admin-layout > #main,
  body.admin-layout > main,
  body.admin-layout > .container,
  body.admin-layout > .container-fluid { margin-left: 0; }
  body.admin-layout .admin-sidebar-heading { display: flex; }
  body.admin-layout .admin-sidebar nav { display: grid; overflow: visible; }
  body.admin-layout .admin-sidebar nav a { flex: initial; white-space: normal; }
  body.admin-layout .admin-topbar { min-height: 78px; }
}
@media (max-width: 575.98px) {
  body.admin-layout .admin-topbar {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    gap: .55rem;
    padding: .65rem .75rem;
  }
  body.admin-layout .admin-topbar-kicker { display: none; }
  body.admin-layout .admin-topbar h1 { margin: 0; font-size: 1.05rem; }
  body.admin-layout .admin-topbar-user { gap: 0; padding: .2rem; }
  body.admin-layout .admin-topbar-user-icon { width: 38px; height: 38px; }
  body.admin-layout .admin-topbar-user-name,
  body.admin-layout .admin-profile-chevron { display: none; }
  body.admin-layout .admin-profile-menu { right: 0; }
}
@media (prefers-reduced-motion: reduce) {
  body.admin-layout .admin-sidebar { transition: none; }
}
