html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

/* Brand colors */
:root {
  --brand-green: #3e603b;
  --brand-green-light: #5c8359;
  --brand-green-dark: #2d4629;

  /* Re-skin Bootstrap's default-blue surfaces (links, pagination, .text-primary,
     focus rings, etc.) to the brand green so the portal stays on-brand instead of
     falling back to Bootstrap blue. .btn-primary is themed separately below. */
  --bs-primary: var(--brand-green);
  --bs-primary-rgb: 62, 96, 59;
  --bs-link-color: var(--brand-green);
  --bs-link-color-rgb: 62, 96, 59;
  --bs-link-hover-color: var(--brand-green-dark);
  --bs-link-hover-color-rgb: 45, 70, 41;
}

/* Bootstrap 5.3 declares --bs-pagination-* ON the .pagination component, which
   shadows a :root override — so re-skin the pager at the component scope. */
.pagination {
  --bs-pagination-color: var(--brand-green);
  --bs-pagination-hover-color: var(--brand-green-dark);
  --bs-pagination-focus-color: var(--brand-green-dark);
  --bs-pagination-focus-box-shadow: 0 0 0 0.25rem rgba(62, 96, 59, 0.25);
  --bs-pagination-active-bg: var(--brand-green);
  --bs-pagination-active-border-color: var(--brand-green);
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem var(--brand-green);
}

.btn-primary {
  background-color: var(--brand-green);
  border-color: var(--brand-green);
}

.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
  background-color: var(--brand-green-dark);
  border-color: var(--brand-green-dark);
}

.btn-success {
  background-color: var(--brand-green);
  border-color: var(--brand-green);
}

.btn-success:hover, .btn-success:focus, .btn-success:active {
  background-color: var(--brand-green-dark);
  border-color: var(--brand-green-dark);
}

.card-header.bg-success {
  background-color: var(--brand-green) !important;
}

.text-success,
.card-header .text-success {
  color: var(--brand-green) !important;
}

.bg-success {
  background-color: var(--brand-green) !important;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

header:focus {
  outline: none;
}

header {
  outline: none;
}

h1:focus {
  outline: none;
}

/* WhatsApp floating button */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 20px;
  right: 20px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  text-decoration: none;
}

.whatsapp-float:hover {
  background-color: #128c7e;
  box-shadow: 2px 2px 15px rgba(0, 0, 0, 0.4);
  transform: scale(1.05);
  color: #fff;
}

.whatsapp-float i {
  margin: 0;
  line-height: 60px;
}

@media (max-width: 768px) {
  .whatsapp-float {
    width: 50px;
    height: 50px;
    bottom: 15px;
    right: 15px;
    font-size: 26px;
  }

  .whatsapp-float i {
    line-height: 50px;
  }
}

/* Invoice discount sub-row — green for both rule and manual */
.discount-subrow td { font-size: 0.9em; padding-top: 0.25rem; padding-bottom: 0.25rem; background: #f1f8e9; color: #2e7d32; }

/* Made with love footer credit */
.made-with-love {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.7rem;
  color: #ccc;
  background-color: #fafafa;
}

.made-with-love a {
  color: #bbb;
  text-decoration: none;
}

.made-with-love a:hover {
  color: #999;
  text-decoration: underline;
}

/* Build version stamp */
.build-info {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.6rem;
  color: #ddd;
  text-align: center;
  user-select: all;
}

/* ---------------------------------------------------------------------------
   Homepage hero + botanical ambience
   Warm radial wash with hand-drawn botanicals (ported from the Van De
   Aarleschehof marketing site) drifting slowly in the corners. Decorative only.
   --------------------------------------------------------------------------- */
.home-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 1rem;
  padding: 2rem 1.25rem;
  background: radial-gradient(ellipse 120% 90% at 20% 10%, #f5ebd6 0%, #ece0c2 45%, #e3d6b4 100%);
}

@media (min-width: 768px) {
  .home-hero {
    padding: 2.75rem 2.5rem;
  }
}

/* Content sits above the botanical layer. */
.home-hero > .home-hero-content {
  position: relative;
  z-index: 1;
}

.botanical-ambience {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.botanical {
  position: absolute;
}

.botanical svg {
  width: 100%;
  height: 100%;
}

.botanical--leaf-tl {
  top: -3rem;
  left: -3rem;
  width: 150px;
  height: 180px;
  transform: rotate(-22deg);
  opacity: 0.5;
}

.botanical--leaf-tr {
  top: -2.5rem;
  right: -2.5rem;
  width: 170px;
  height: 170px;
  transform: rotate(12deg);
  opacity: 0.45;
}

.botanical--leaf-bl {
  bottom: -2.5rem;
  left: -1.5rem;
  width: 90px;
  height: 220px;
  transform: rotate(-12deg);
  opacity: 0.4;
}

.botanical--carrot {
  right: 1rem;
  bottom: 0.5rem;
  width: 70px;
  height: 100px;
  transform: rotate(14deg);
  opacity: 0.55;
  filter: drop-shadow(0 8px 16px rgba(120, 60, 20, 0.18));
}

.botanical--berry {
  top: 24%;
  left: 0.75rem;
  width: 50px;
  height: 70px;
  opacity: 0.5;
}

.botanical--vine {
  right: 0;
  bottom: 3rem;
  width: 220px;
  height: 110px;
  opacity: 0.4;
}

/* Smaller botanicals are noise on narrow screens — keep only the framing corners. */
@media (max-width: 575.98px) {
  .botanical--berry,
  .botanical--vine,
  .botanical--carrot {
    display: none;
  }
}

@keyframes sway-slow {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(-22deg); }
  33% { transform: translate3d(-4px, -10px, 0) rotate(-24deg); }
  66% { transform: translate3d(5px, -6px, 0) rotate(-20deg); }
}

@keyframes sway-reverse {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0); }
  33% { transform: translate3d(6px, -8px, 0) rotate(2.5deg); }
  66% { transform: translate3d(-3px, -12px, 0) rotate(-1.5deg); }
}

@keyframes drift-up {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -8px, 0); }
}

@keyframes breathe {
  0%, 100% { transform: scale(1) rotate(0); }
  50% { transform: scale(1.05) rotate(1deg); }
}

/* Each leaf's sway keyframe bakes its own resting rotation, so the rotate above
   is overridden once the animation runs — set the per-element base here too so
   the very first frame (and reduced-motion fallback) keeps the intended tilt. */
.botanical--leaf-tr { animation-name: sway-reverse; }

@keyframes home-fade-in {
  from { opacity: 0; transform: translate3d(0, 12px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

.home-reveal {
  animation: home-fade-in 0.8s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

/* Newsletter spotlight card on the homepage right column. Clip the flush-top image to the
   card's own radius (like .wix-event below) instead of hard-coding a radius on the image —
   a fixed 0.75rem didn't match the card corner and left a sliver of square corner showing. */
.newsletter-spotlight {
  overflow: hidden;
}

.newsletter-spotlight .nl-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

/* Branded fallback when a newsletter has no image of its own — a deep brand-green
   field (contrasting with the ochre hero) with a cream "bulletin" motif, so the
   card reads as an intentional newsletter tile rather than a broken image. */
.newsletter-spotlight .nl-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
  height: 180px;
  background: linear-gradient(135deg, var(--brand-green) 0%, var(--brand-green-dark) 100%);
}

/* Newsletter archive list (/tuinpost) row thumbnail — small square cover image (or a
   compact brand-green bulletin placeholder) reusing the spotlight's image source. */
.cnl-thumb,
.cnl-thumb-ph {
  width: 72px;
  height: 72px;
  flex: 0 0 72px;
  border-radius: 0.5rem;
  object-fit: cover;
}

.cnl-thumb-ph {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--brand-green) 0%, var(--brand-green-dark) 100%);
}

.cnl-thumb-ph .bi {
  font-size: 1.5rem;
  color: #f5ebd6;
}

.newsletter-spotlight .nl-placeholder .bi {
  font-size: 2.75rem;
  color: #f5ebd6;
}

.newsletter-spotlight .nl-placeholder span {
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #f5ebd6;
  opacity: 0.85;
}

/* Upcoming-events cards (Wix Events module). */
.wix-event {
  overflow: hidden; /* keep the zoomed image + ribbon clipped to the rounded card */
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

/* Hover lift + subtle image zoom — gives the grid life on interaction. */
.wix-event:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(45, 70, 41, 0.16);
}

.wix-event-media {
  position: relative;
  overflow: hidden;
}

.wix-event .wix-event-image {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 0.75rem 0.75rem 0 0;
  transition: transform 0.35s ease;
}

.wix-event:hover .wix-event-image {
  transform: scale(1.05);
}

/* Terracotta fallback when a Wix event has no image (palette carrot/warmth tone),
   keeping the card height consistent with image cards. */
.wix-event .wix-event-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #d98c52 0%, #c06a32 55%, #a9531f 100%);
}

.wix-event .wix-event-placeholder .bi {
  font-size: 2.75rem;
  color: #f5ebd6;
  opacity: 0.9;
}

/* Poster-style date badge overlaid on the image corner. */
.wix-event-datebadge {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 3rem;
  padding: 0.3rem 0.5rem;
  border-radius: 0.6rem;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 4px 10px rgba(45, 70, 41, 0.18);
  line-height: 1;
}

.wix-event-datebadge .day {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--brand-green-dark);
}

.wix-event-datebadge .month {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #c06a32; /* terracotta accent */
}


/* The decorative sway is a few px over many seconds — gentle enough to keep,
   but honour an explicit reduced-motion request by stilling everything. */
@media (prefers-reduced-motion: reduce) {
  .botanical,
  .home-reveal {
    animation: none !important;
  }
}

/* Delivery-timeline cards — shared by DeliverySlotCard (subscription deliveries)
   and AdhocOrderCard (webshop orders) so both render in one consistent list.
   Lives here (not in a component <style>) so the ad-hoc card is styled even when
   no subscription card is on the page (webshop-only customers). */
.delivery-card {
  transition: all 0.2s ease;
  border-left-width: 4px !important;
}

.delivery-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.delivery-card .date-display .day-number {
  line-height: 1;
}

.delivery-card .products-list ul li {
  border-left: 2px solid #e9ecef;
  padding-left: 8px;
}

@media (max-width: 767px) {
  .delivery-card .date-display {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
  }

  .delivery-card .date-display .day-number {
    font-size: 1.5rem !important;
  }

  .delivery-card .date-display .day-name,
  .delivery-card .date-display .month-year {
    margin-right: 0.5rem;
  }
}

