/* ================================================================
   LANDING.CSS — Roots & Legacy Heritage Platform
   Premium, modern, minimalist landing page design system
   ================================================================ */

/* === DESIGN TOKENS === */
:root {
  /* Brand Colors */
  --c-forest:     #1C3510;
  --c-olive:      #3A5E25;
  --c-sage:       #537A3A;
  --c-sage-mid:   #6B9450;
  --c-sage-light: #C0D9A8;
  --c-sage-bg:    #EBF3E4;

  /* Neutral Palette */
  --c-ivory:    #F8F5EE;
  --c-cream:    #F0EAE0;
  --c-beige:    #E2D9CC;
  --c-wood:     #C9A87C;
  --c-gold:     #B8953A;
  --c-charcoal: #1A1A1A;
  --c-brown:    #3D2E22;
  --c-muted:    #7A6B5C;
  --c-light:    #A89880;
  --c-white:    #FFFFFF;
  --c-danger:   #A3372B;

  /* Typography */
  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Font Scale */
  --text-2xs: 0.65rem;
  --text-xs:  0.75rem;
  --text-sm:  0.875rem;
  --text-md:  1.125rem;
  --text-lg:  1.25rem;
  --text-xl:  1.5rem;
  --text-2xl: 1.875rem;
  --text-3xl: 2.25rem;
  --text-4xl: 3rem;
  --text-5xl: 3.75rem;

  /* Spacing */
  --sp-1:  0.25rem;  --sp-2:  0.5rem;   --sp-3:  0.75rem;
  --sp-4:  1rem;     --sp-5:  1.25rem;  --sp-6:  1.5rem;
  --sp-8:  2rem;     --sp-10: 2.5rem;   --sp-12: 3rem;
  --sp-16: 4rem;     --sp-20: 5rem;     --sp-24: 6rem;

  /* Radii */
  --r-sm:   4px;   --r-md: 8px;    --r-lg: 12px;
  --r-xl:  16px;  --r-2xl: 24px;  --r-full: 9999px;

  /* Shadows */
  --sh-xs: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --sh-sm: 0 2px 8px rgba(0,0,0,0.07), 0 1px 4px rgba(0,0,0,0.04);
  --sh-md: 0 4px 16px rgba(0,0,0,0.09), 0 2px 8px rgba(0,0,0,0.05);
  --sh-lg: 0 8px 32px rgba(0,0,0,0.11), 0 4px 16px rgba(0,0,0,0.06);
  --sh-xl: 0 16px 48px rgba(0,0,0,0.13), 0 8px 24px rgba(0,0,0,0.07);
  --sh-card: 0 2px 20px rgba(40,60,20,0.08), 0 1px 6px rgba(40,60,20,0.04);

  /* Transitions */
  --t-fast:   150ms ease;
  --t-base:   250ms ease;
  --t-slow:   450ms ease;
  --t-spring: 500ms cubic-bezier(0.34,1.56,0.64,1);

  /* Layout */
  --max-w:  1280px;
  --pad:    clamp(1.25rem, 4vw, 4rem);
  --nav-h:  72px;
}

/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  background: var(--c-ivory);
}

body.rl-landing {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--c-brown);
  background: var(--c-ivory);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul, ol { list-style: none; }
input, button { font-family: inherit; }

/* === LAYOUT UTILITIES === */
.rl-container {
  width: 100%;
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

.rl-section {
  padding-top:    var(--sp-24);
  padding-bottom: var(--sp-24);
}

.section-label {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-sage);
  margin-bottom: var(--sp-4);
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(var(--text-2xl), 4vw, var(--text-4xl));
  font-weight: 700;
  color: var(--c-charcoal);
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.section-sub {
  font-size: var(--text-md);
  color: var(--c-muted);
  line-height: 1.7;
  max-width: 520px;
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 0.75rem 1.5rem;
  border-radius: var(--r-full);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: all var(--t-base);
  cursor: pointer;
  white-space: nowrap;
  border: none;
}

.floating-email {
  border-radius: var(--p-full);
}

.btn-primary {
  background: var(--c-olive);
  color: var(--c-white);
  box-shadow: 0 2px 10px rgba(58,94,37,0.28);
}
.btn-primary:hover {
  background: var(--c-forest);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(58,94,37,0.38);
}
.btn-primary:active { transform: translateY(0); }

.btn-outline {
  background: transparent;
  color: var(--c-olive);
  border: 1.5px solid var(--c-beige);
}
.btn-outline:hover {
  border-color: var(--c-olive);
  background: rgba(58,94,37,0.05);
}

.btn-lg { padding: 1rem 2.25rem; font-size: 1rem; }
.btn-sm { padding: 0.4rem 1rem; font-size: var(--text-xs); }

/* === NAVIGATION === */
.rl-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(248,245,238,0.88);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-base), box-shadow var(--t-base);
  display: flex;
  align-items: center;
}

.rl-nav.scrolled {
  border-bottom-color: var(--c-beige);
  box-shadow: 0 1px 20px rgba(0,0,0,0.07);
}

.rl-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-6);
}

/* Logo */
.rl-nav__logo {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  flex-shrink: 0;
}
.rl-nav__logo-icon { width: 34px; height: 34px; color: var(--c-olive); flex-shrink: 0; }

/* Family-tree icon (nav logo mark + hero leaf accents) */
.rl-family-icon .gold { fill: #b8953a; stroke: #b8953a; }
.rl-family-icon .green { fill: #3e6526; stroke: #3e6526; }
.rl-family-icon .dark { fill: #1b4310; }
.rl-family-icon .line { fill: none; stroke-width: 12; stroke-linecap: round; stroke-linejoin: round; }
/* Footer variant: lighter tones for the dark footer background */
.rl-family-icon--footer .green { fill: #C0D9A8; stroke: #C0D9A8; }
.rl-family-icon--footer .dark { fill: #F8F5EE; }
.rl-nav__logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.rl-nav__logo-name {
  font-family: var(--font-serif);
  font-size: var(--text-md);
  font-weight: 700;
  color: var(--c-charcoal);
  letter-spacing: -0.01em;
}
.rl-nav__logo-tag {
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-muted);
}

/* Links */
.rl-nav__links {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  flex: 1;
  justify-content: center;
}
.rl-nav__link {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: var(--sp-2) var(--sp-3);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--c-brown);
  border-radius: var(--r-md);
  transition: color var(--t-fast), background var(--t-fast);
}
.rl-nav__link:hover { color: var(--c-olive); background: rgba(58,94,37,0.07); }
.rl-nav__chevron { width: 11px; height: 11px; opacity: 0.45; transition: transform var(--t-fast); }
.rl-nav__link:hover .rl-nav__chevron { transform: rotate(180deg); opacity: 0.7; }

/* Actions */
.rl-nav__actions { display: flex; align-items: center; gap: var(--sp-3); flex-shrink: 0; }

/* Language/currency switchers duplicated inside the mobile hamburger dropdown (see .rl-nav__links.open below) */
.rl-nav__mobile-actions { display: none; }
.rl-nav__login {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--c-muted);
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--r-md);
  transition: color var(--t-fast);
}
.rl-nav__login:hover { color: var(--c-olive); }
.rl-nav__cta {
  background: var(--c-olive);
  color: var(--c-white);
  padding: 0.5rem 1.2rem;
  border-radius: var(--r-full);
  font-size: var(--text-sm);
  font-weight: 600;
  box-shadow: 0 2px 10px rgba(58,94,37,0.28);
  transition: all var(--t-base);
}
.rl-nav__cta:hover { background: var(--c-forest); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(58,94,37,0.38); }

/* Hamburger */
.rl-nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--sp-2);
}
.rl-nav__toggle span { display: block; width: 22px; height: 2px; background: var(--c-brown); border-radius: 2px; transition: all var(--t-fast); }

/* Mobile menu */
@media (max-width: 860px) {
  .rl-nav__links, .rl-nav__login { display: none; }
  .rl-nav__toggle { display: flex; }
  .rl-nav__links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    background: rgba(248,245,238,0.98);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    padding: var(--sp-4) var(--pad);
    border-bottom: 1px solid var(--c-beige);
    gap: var(--sp-1);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  }

  /* Keep the header row from crowding out the hamburger — language/currency move into the dropdown instead */
  .rl-actions__lang, .rl-actions__currency { display: none; }

  .rl-nav__mobile-actions {
    display: block;
    width: 100%;
    margin-top: var(--sp-2);
    padding-top: var(--sp-3);
    border-top: 1px solid var(--c-beige);
  }
  .rl-nav__mobile-actions-inner {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
  }

  /* Tighten the row itself — logo + search/cart/account/toggle were still
     wide enough to push the toggle button past the viewport edge (clipped
     by body's overflow-x:hidden) on narrow phones. */
  .rl-nav__inner { gap: var(--sp-3); }
  .rl-nav__toggle { flex-shrink: 0; }
}

@media (max-width: 480px) {
  .rl-nav__logo-tag, .rl-nav__logo-name { display: none; }
  .rl-nav__inner { gap: var(--sp-2); }
  .rl-nav__utils { gap: 0; }
}

/* === NAV UTILITIES (search / language / currency / cart) === */
.rl-nav__utils {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  flex-shrink: 0;
}

.rl-util { position: relative; }

.rl-util__btn {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 38px;
  padding: 0 var(--sp-2);
  border-radius: var(--r-full);
  color: var(--c-brown);
  transition: background var(--t-fast), color var(--t-fast);
}
.rl-util__btn:hover { background: rgba(58,94,37,0.07); color: var(--c-olive); }

.rl-util__chevron { opacity: 0.5; transition: transform var(--t-fast); }
.rl-util[data-open="true"] > .rl-util__btn .rl-util__chevron { transform: rotate(180deg); opacity: 0.8; }

.rl-util__panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: var(--c-white);
  border: 1px solid var(--c-beige);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-lg);
  padding: var(--sp-3);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity var(--t-fast), transform var(--t-fast), visibility var(--t-fast);
  z-index: 120;
}
.rl-util[data-open="true"] .rl-util__panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

/* Language */
.rl-lang__flag { font-size: 1rem; line-height: 1; }
.rl-lang__flag img,
img.rl-lang__flag {
  width: 18px; height: 18px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.rl-lang__code { font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.02em; }
.rl-lang__panel { min-width: 168px; display: flex; flex-direction: column; gap: 2px; }
.rl-lang__item {
  display: flex; align-items: center; gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--r-md);
  font-size: var(--text-sm);
  color: var(--c-brown);
  transition: background var(--t-fast), color var(--t-fast);
}
.rl-lang__item span { font-size: 1rem; }
.rl-lang__item img {
  width: 18px; height: 18px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.rl-lang__item:hover { background: rgba(58,94,37,0.07); color: var(--c-olive); }
.rl-lang__item.is-active { color: var(--c-olive); font-weight: 600; background: var(--c-sage-bg); }

/* Account */
.rl-account__btn { font-size: 1rem; }
.rl-account__panel { min-width: 168px; display: flex; flex-direction: column; gap: 2px; }
.rl-account__item {
  display: flex; align-items: center; gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--r-md);
  font-size: var(--text-sm);
  color: var(--c-brown);
  transition: background var(--t-fast), color var(--t-fast);
}
.rl-account__item:hover { background: rgba(58,94,37,0.07); color: var(--c-olive); }

/* Currency */
.rl-currency__code { font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.02em; }
.rl-currency__panel { min-width: 120px; display: flex; flex-direction: column; gap: 2px; }
.rl-currency__item {
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--r-md);
  font-size: var(--text-sm);
  color: var(--c-brown);
  transition: background var(--t-fast), color var(--t-fast);
}
.rl-currency__item:hover { background: rgba(58,94,37,0.07); color: var(--c-olive); }
.rl-currency__item.is-active { color: var(--c-olive); font-weight: 600; background: var(--c-sage-bg); }

.rl-account-header__intro ul {list-style: circle;}
/* Search */
.rl-search__panel {
  right: auto;
  left: 50%;
  transform: translate(-50%, -8px);
  width: min(360px, 82vw);
}
.rl-util[data-open="true"] .rl-search__panel { transform: translate(-50%, 0); }
.rl-search__form {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-3);
  border: 1.5px solid var(--c-beige);
  border-radius: var(--r-full);
  transition: border-color var(--t-fast);
}
.rl-search__form:focus-within { border-color: var(--c-olive); }
.rl-search__icon { color: var(--c-muted); flex-shrink: 0; }
.rl-search__input {
  border: none;
  outline: none;
  flex: 1;
  font-size: var(--text-sm);
  color: var(--c-brown);
  background: transparent;
}
.rl-search__input::placeholder { color: var(--c-light); }
.rl-search__hint {
  margin-top: var(--sp-2);
  padding: 0 var(--sp-2);
  font-size: var(--text-2xs);
  color: var(--c-light);
}
.rl-search__results {
  margin-top: var(--sp-2);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  max-height: 320px;
  overflow-y: auto;
}
.rl-search__group { display: flex; flex-direction: column; gap: 2px; }
.rl-search__group-title {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 0 var(--sp-2);
  font-size: var(--text-2xs);
  font-weight: 600;
  text-transform: capitalize;
  color: var(--c-muted);
}
.rl-search__group-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 16px; height: 16px;
  padding: 0 3px;
  background: var(--c-sage-bg);
  color: var(--c-olive);
  border-radius: var(--r-full);
  font-size: 0.62rem;
  font-weight: 700;
}
.rl-search__result {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2);
  border-radius: var(--r-md);
  font-size: var(--text-sm);
  color: var(--c-brown);
  transition: background var(--t-fast), color var(--t-fast);
}
.rl-search__result:hover { background: rgba(58,94,37,0.07); color: var(--c-olive); }
.rl-search__result-thumb {
  width: 32px; height: 32px;
  flex-shrink: 0;
  border-radius: var(--r-md);
  overflow: hidden;
}
.rl-search__result-thumb img,
.rl-search__result-thumb picture {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.rl-search__result-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rl-search__all {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  margin-top: var(--sp-2);
  padding: var(--sp-2) var(--sp-3);
  border-top: 1px solid var(--c-beige);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--c-olive);
}
.rl-search__all:hover { color: var(--c-charcoal); }
.rl-search__all-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px; height: 20px;
  padding: 0 4px;
  background: var(--c-sage-bg);
  border-radius: var(--r-full);
  font-size: 0.68rem;
  font-weight: 700;
}

/* Cart */
.rl-cart__btn { position: relative; }
.rl-cart__badge {
  position: absolute;
  top: 2px; right: 2px;
  min-width: 16px; height: 16px;
  padding: 0 3px;
  display: flex; align-items: center; justify-content: center;
  background: var(--c-olive);
  color: var(--c-white);
  font-size: 0.62rem;
  font-weight: 700;
  border-radius: var(--r-full);
  line-height: 1;
  box-shadow: 0 0 0 2px var(--c-ivory);
}
.rl-cart__panel { width: min(320px, 86vw); }
.rl-cart__items { display: flex; flex-direction: column; gap: var(--sp-2); max-height: 260px; overflow-y: auto; }
.rl-cart__item {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: var(--sp-2);
  border-radius: var(--r-md);
}
.rl-cart__item:nth-child(even) { background: var(--c-sage-bg); }
.rl-cart__item-remove {
  flex-shrink: 0;
  margin-left: auto;
  width: 18px; height: 18px;
  display: flex; align-items: center; justify-content: center;
  border: none;
  background: rgba(192, 57, 43, 0.12);
  color: #C0392B;
  border-radius: var(--r-full);
  font-size: 10px;
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast);
}
.rl-cart__item-remove:hover { background: #C0392B; color: var(--c-white); }
.rl-cart__empty { padding: var(--sp-3) 0; text-align: center; color: var(--c-muted); font-size: var(--text-sm); }
.rl-cart__item-thumb {
  width: 44px; height: 44px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--c-sage-bg);
  border-radius: var(--r-md);
  color: var(--c-sage);
}
.rl-cart__item-thumb svg { width: 20px; height: 20px; }
.rl-cart__item-thumb picture,
.rl-cart__item-thumb img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: 100%;
  object-fit: cover;
  border-radius: inherit;
}
.rl-cart__item-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 auto; }
.rl-cart__item-name {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--c-brown);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.rl-cart__item-meta { font-size: var(--text-xs); color: var(--c-muted); }
.rl-cart__foot {
  margin-top: var(--sp-3);
  padding-top: var(--sp-3);
  border-top: 1px solid var(--c-beige);
}
.rl-cart__total {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: var(--text-sm);
  color: var(--c-muted);
  margin-bottom: var(--sp-3);
}
.rl-cart__total strong { color: var(--c-charcoal); font-size: var(--text-md); }
.rl-cart__checkout { width: 100%; justify-content: center; }

/* Mobile */
@media (max-width: 860px) {
  .rl-lang__code { display: none; }

  .rl-search__panel,
  .rl-lang__panel,
  .rl-currency__panel,
  .rl-cart__panel {
    position: fixed;
    top: var(--nav-h);
    left: var(--pad); right: var(--pad);
    width: auto;
    transform: translateY(-8px);
  }
  .rl-util[data-open="true"] .rl-search__panel,
  .rl-util[data-open="true"] .rl-lang__panel,
  .rl-util[data-open="true"] .rl-currency__panel,
  .rl-util[data-open="true"] .rl-cart__panel {
    transform: translateY(0);
  }
}

/* === BREADCRUMBS ===
   .rl-nav is position:fixed, so the breadcrumb bar (rendered right after the
   header in the layout) needs its own top offset or it renders underneath it.
   This app publishes its own breadcrumb view
   (resources/views/vendor/breadcrumbs/bootstrap5.blade.php), which renders
   <nav class="breadcrumb"> with .breadcrumb-item <a>/<span> children directly
   — not the package's default <ol class="breadcrumb"><li> markup. */
nav.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2);
  margin-top: var(--nav-h);
  padding-top: var(--sp-3);
  padding-bottom: var(--sp-3);
  background: var(--c-ivory);
  border-bottom: 1px solid var(--c-beige);
  font-size: var(--text-sm);
}
nav.breadcrumb .breadcrumb-item {
  color: var(--c-olive);
  font-weight: 600;
  text-decoration: none;
  transition: color var(--t-fast);
}
nav.breadcrumb .breadcrumb-item:hover { color: var(--c-forest); text-decoration: underline; }
nav.breadcrumb .breadcrumb-item.active { color: var(--c-muted); font-weight: 400; }
nav.breadcrumb .breadcrumb-item:not(:last-child)::after {
  content: '/';
  margin-left: var(--sp-2);
  color: var(--c-light);
  text-decoration: none;
}

/* === HERO SECTION === */
.rl-hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--nav-h) + var(--sp-16));
  padding-bottom: var(--sp-20);
  background: var(--c-ivory);
  position: relative;
  overflow: hidden;
}

/* Atmospheric background */
.rl-hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 75% 70% at 68% 38%, rgba(192,217,168,0.26) 0%, transparent 65%),
    radial-gradient(ellipse 50% 50% at 10% 75%, rgba(235,243,228,0.38) 0%, transparent 60%),
    radial-gradient(ellipse 40% 45% at 88% 70%, rgba(201,168,124,0.10) 0%, transparent 55%);
  pointer-events: none;
}

.rl-hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(var(--sp-10), 5vw, var(--sp-20));
  align-items: center;
  position: relative;
}

/* --- Hero Left (Text) --- */
.rl-hero__left {
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
  max-width: 580px;
  min-width: 0; /* grid items default to min-width:auto — without this, long badge/headline text (esp. longer translated strings) forces the whole grid track wider than the viewport instead of wrapping */
}

.rl-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 0.35rem 0.875rem;
  background: var(--c-sage-bg);
  border: 1px solid var(--c-sage-light);
  border-radius: var(--r-full);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-sage);
  width: fit-content;
  max-width: 100%;
  white-space: normal;
}

.rl-hero__badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--c-sage-mid);
  flex-shrink: 0;
}

.rl-hero__headline {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 5.5vw, 4.1rem);
  font-weight: 700;
  color: var(--c-charcoal);
  line-height: 1.08;
  letter-spacing: -0.03em;
}
.rl-hero__headline em { font-style: italic; color: var(--c-olive); }

.rl-hero__sub {
  font-size: clamp(1rem, 1.8vw, var(--text-md));
  color: var(--c-muted);
  line-height: 1.75;
  max-width: 460px;
}

.rl-hero__actions { display: flex; align-items: center; gap: var(--sp-3); flex-wrap: wrap; }

.rl-hero__trust {
  display: flex;
  align-items: center;
  gap: var(--sp-6);
  flex-wrap: wrap;
  padding-top: var(--sp-2);
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}
.trust-badge__icon {
  width: 30px; height: 30px;
  background: var(--c-white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--sh-sm);
  flex-shrink: 0;
}
.trust-badge__icon svg { width: 14px; height: 14px; color: var(--c-sage); }
.trust-badge__text { display: flex; flex-direction: column; line-height: 1.2; }
.trust-badge__title { font-size: var(--text-xs); font-weight: 700; color: var(--c-charcoal); }
.trust-badge__sub   { font-size: 0.68rem; color: var(--c-muted); }

/* --- Hero Right (Visual) --- */
.rl-hero__right { position: relative; display: flex; align-items: center; justify-content: center; min-width: 0; }

.hero-visual {
  position: relative;
  width: 100%;
  max-width: 540px;
  aspect-ratio: 1.05;
  margin-left: auto;
}

/* Desktop app mockup */
.hv-app {
  position: absolute;
  top: 0; left: 0;
  right: 8%;
  background: var(--c-white);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-xl), 0 0 0 1px rgba(0,0,0,0.04);
  overflow: hidden;
}

.hv-app__bar {
  height: 34px;
  background: #F2F2F2;
  border-bottom: 1px solid #E6E6E6;
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 8px;
}
.hv-app__dots { display: flex; gap: 5px; }
.hv-app__dot { width: 8px; height: 8px; border-radius: 50%; }
.hv-app__dot:nth-child(1) { background: #FF5F57; }
.hv-app__dot:nth-child(2) { background: #FFBD2E; }
.hv-app__dot:nth-child(3) { background: #28C840; }
.hv-app__urlbar {
  flex: 1;
  margin: 0 16px;
  height: 18px;
  background: var(--c-white);
  border: 1px solid #E0E0E0;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 8px;
  color: #AAA;
  gap: 4px;
}

.hv-app__nav {
  display: flex;
  align-items: center;
  padding: 7px 12px;
  border-bottom: 1px solid #F0F0F0;
  gap: 8px;
  background: var(--c-white);
}
.hv-app__logo-mark { display: flex; align-items: center; gap: 4px; }
.hv-app__logo-mark svg { width: 14px; height: 14px; color: var(--c-olive); }
.hv-app__logo-name { font-family: var(--font-serif); font-size: 9px; font-weight: 700; color: var(--c-charcoal); }
.hv-app__nav-links { display: flex; gap: 6px; flex: 1; justify-content: center; }
.hv-app__nav-link { font-size: 7px; color: #888; padding: 2px 5px; border-radius: 4px; }
.hv-app__nav-btn { font-size: 7px; font-weight: 700; background: var(--c-olive); color: #fff; padding: 3px 9px; border-radius: 8px; }

.hv-app__tabs {
  display: flex;
  gap: 4px;
  padding: 8px 12px 4px;
}
.hv-app__tab { font-size: 7px; padding: 3px 8px; border-radius: 8px; color: #999; background: #F5F5F5; }
.hv-app__tab.active { background: var(--c-olive); color: #fff; font-weight: 600; }

.hv-app__tree { padding: 4px 8px 10px; }
.hv-tree-svg { width: 100%; height: auto; }

/* Static, read-only family tree preview inside the app mockup — rendered by
   heritage_tree.js (same renderer as the real /heritage/tree page), no
   interaction (no pan/zoom/click). */
.hp-tree-graph {
  width: 100%;
  height: 230px;
  border-radius: 0 0 var(--r-xl) var(--r-xl);
}

/* Framed wall art card */
.hv-frame {
  position: absolute;
  bottom: -4%;
  right: 0;
  width: 36%;
  border-radius: var(--r-lg);
  background: var(--c-white);
  box-shadow: var(--sh-xl);
  padding: 5px;
}
.hv-frame__outer {
  border-radius: 8px;
  border: 5px solid #C4A055;
  background: linear-gradient(135deg,#D4B468 0%,#B8923A 25%,#CBA54C 50%,#B8923A 75%,#D4B468 100%);
  padding: 2px;
}
.hv-frame__mat {
  background: #F7F4EE;
  border-radius: 4px;
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 150px;
}
.hv-frame__tree-svg { width: 55%; color: var(--c-sage); }
.hv-frame__name { font-family: var(--font-serif); font-size: 7px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--c-charcoal); text-align: center; }
.hv-frame__tagline { font-size: 5.5px; letter-spacing: 0.08em; color: var(--c-muted); text-align: center; }
.hv-frame__year { font-size: 5.5px; color: var(--c-light); }

/* Floating badges */
.hv-badge {
  position: absolute;
  background: var(--c-white);
  border-radius: var(--r-lg);
  padding: var(--sp-3) var(--sp-4);
  box-shadow: var(--sh-lg);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  z-index: 5;
}
.hv-badge--family {
  bottom: 20%;
  left: -6%;
  animation: float 4.5s ease-in-out infinite;
}
.hv-badge--stats {
  top: 6%;
  right: -5%;
  animation: float 4.5s ease-in-out infinite 2.2s;
}
.hv-badge__icon {
  width: 32px; height: 32px;
  background: var(--c-sage-bg);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.hv-badge__icon svg { width: 15px; height: 15px; color: var(--c-olive); }
.hv-badge__text { display: flex; flex-direction: column; line-height: 1.2; }
.hv-badge__label { font-size: 0.7rem; font-weight: 700; color: var(--c-charcoal); }
.hv-badge__sub { font-size: 0.62rem; color: var(--c-muted); }
.hv-badge__num { font-family: var(--font-serif); font-size: var(--text-xl); font-weight: 700; color: var(--c-olive); line-height: 1; }
.hv-badge__divider { align-self: stretch; width: 1px; background: var(--c-beige); flex-shrink: 0; }

/* Decorative leaves */
.rl-hero__leaf {
  position: absolute;
  pointer-events: none;
  opacity: 0.1;
  color: var(--c-sage);
}
.rl-hero__leaf--tl { top: 11%; left: -1%; width: 470px; }
.rl-hero__leaf--br { bottom: 4%; right: 1%; width: 210px; transform: rotate(180deg) scaleX(-1); }

/* === FEATURE STRIP === */
.rl-features {
  background: var(--c-white);
  border-top: 1px solid var(--c-beige);
  border-bottom: 1px solid var(--c-beige);
  padding: var(--sp-10) 0;
}

.rl-features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 200px));
  justify-content: center;
  gap: var(--sp-2);
}

.feat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--sp-2);
  padding: var(--sp-4) var(--sp-3);
  border-radius: var(--r-lg);
  cursor: default;
  transition: background var(--t-base), transform var(--t-base);
}
.feat-item:hover { background: var(--c-sage-bg); transform: translateY(-3px); }
.feat-item__icon {
  width: 44px; height: 44px;
  background: var(--c-sage-bg);
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background var(--t-base);
}
.feat-item:hover .feat-item__icon { background: var(--c-sage-light); }
.feat-item__icon svg { width: 22px; height: 22px; color: var(--c-olive); }
.feat-item__title { font-size: var(--text-xs); font-weight: 700; color: var(--c-charcoal); line-height: 1.3; }
.feat-item__desc  { font-size: 0.7rem; color: var(--c-muted); line-height: 1.4; }

/* === HOW IT WORKS === */
.rl-hiw {
  background: var(--c-cream);
  padding: var(--sp-24) 0;
}

.rl-hiw__head { text-align: center; margin-bottom: var(--sp-16); }

.rl-hiw__steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-4);
  position: relative;
}

/* Connector line */
.rl-hiw__steps::before {
  content: '';
  position: absolute;
  top: 30px;
  left: calc(12.5% + 30px);
  right: calc(12.5% + 30px);
  height: 1px;
  background: linear-gradient(90deg, var(--c-sage-light) 0%, var(--c-sage) 50%, var(--c-sage-light) 100%);
  z-index: 0;
}

.step-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--sp-4);
  padding: var(--sp-6) var(--sp-4);
  background: var(--c-white);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-card);
  position: relative;
  z-index: 1;
  transition: transform var(--t-base), box-shadow var(--t-base);
}
.step-card:hover { transform: translateY(-5px); box-shadow: var(--sh-lg); }

.step-card__num {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--c-olive);
  color: var(--c-white);
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  position: relative; z-index: 1;
}

.step-card__icon {
  width: 54px; height: 54px;
  background: var(--c-sage-bg);
  border-radius: var(--r-lg);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--t-base);
}
.step-card:hover .step-card__icon { background: var(--c-sage-light); }
.step-card__icon svg { width: 26px; height: 26px; color: var(--c-olive); }

.step-card__title { font-family: var(--font-serif); font-size: var(--text-lg); font-weight: 700; color: var(--c-charcoal); }
.step-card__desc  { font-size: var(--text-sm); color: var(--c-muted); line-height: 1.65; }

/* Coming soon ribbon */
.step-card--soon { overflow: hidden; }
.step-card--soon .step-card__num,
.step-card--soon .step-card__icon,
.step-card--soon .step-card__title,
.step-card--soon .step-card__desc { opacity: .4; filter: grayscale(.5); }

.step-card__ribbon {
  position: absolute;
  top: 22px;
  right: -46px;
  z-index: 2;
  width: 170px;
  padding: 5px 0;
  background: var(--c-gold);
  color: var(--c-white);
  text-align: center;
  text-transform: uppercase;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: .04em;
  transform: rotate(45deg);
  box-shadow: 0 2px 6px rgba(0,0,0,.15);
}

/* Dark aside banner */
.rl-hiw__aside {
  margin-top: var(--sp-12);
  background: var(--c-forest);
  border-radius: var(--r-2xl);
  padding: var(--sp-10) var(--sp-12);
  display: flex;
  align-items: center;
  gap: var(--sp-10);
  position: relative;
  overflow: hidden;
}
.rl-hiw__aside::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 40% 80% at 90% 50%, rgba(83,122,58,0.3) 0%, transparent 60%),
    radial-gradient(ellipse 30% 60% at 10% 50%, rgba(83,122,58,0.15) 0%, transparent 55%);
  pointer-events: none;
}
.rl-hiw__aside-body { flex: 1; position: relative; z-index: 1; }
.rl-hiw__aside-quote {
  font-family: var(--font-serif);
  font-size: clamp(var(--text-xl), 2.5vw, var(--text-3xl));
  font-weight: 700;
  color: var(--c-white);
  line-height: 1.3;
}
.rl-hiw__aside-sub { font-size: var(--text-sm); color: rgba(255,255,255,0.55); margin-top: var(--sp-3); }
.rl-hiw__aside-cta { flex-shrink: 0; position: relative; z-index: 1; }
.rl-hiw__aside .btn-primary { background: var(--c-white); color: var(--c-forest); box-shadow: 0 2px 14px rgba(0,0,0,0.2); }
.rl-hiw__aside .btn-primary:hover { background: var(--c-cream); }

/* === GALLERY SECTION === */
.rl-gallery {
  padding: var(--sp-24) 0;
  background: var(--c-ivory);
  overflow: hidden;
}
.rl-gallery__head { text-align: center; margin-bottom: var(--sp-12); }

.gallery-wrap { overflow: hidden; }

.gallery-track {
  display: flex;
  gap: var(--sp-5);
  transition: transform 0.52s cubic-bezier(0.4,0,0.2,1);
  will-change: transform;
  padding: var(--sp-3) var(--sp-1) var(--sp-6);
  cursor: grab;
  user-select: none;
}
.gallery-track:active { cursor: grabbing; }

.gallery-card {
  flex-shrink: 0;
  width: calc(25% - var(--sp-4));
  min-width: 200px;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--c-white);
  box-shadow: var(--sh-lg);
  transition: transform var(--t-base), box-shadow var(--t-base);
}
.gallery-card:hover { transform: translateY(-7px) scale(1.015); box-shadow: var(--sh-xl); }

/* Room backgrounds per card */
.gallery-card__room {
  aspect-ratio: 3/4;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-6);
}
.gallery-card:nth-child(1) .gallery-card__room { background: linear-gradient(170deg,#EDE5DC 0%,#D8CEBD 60%,#C8BAA8 100%); }
.gallery-card:nth-child(2) .gallery-card__room { background: linear-gradient(170deg,#F0EEEA 0%,#E4E0DA 60%,#D8D4CE 100%); }
.gallery-card:nth-child(3) .gallery-card__room { background: linear-gradient(170deg,#2C3228 0%,#38402E 60%,#262E1C 100%); }
.gallery-card:nth-child(4) .gallery-card__room { background: linear-gradient(170deg,#E4EBE0 0%,#D4DDD0 60%,#C4CEBC 100%); }
.gallery-card:nth-child(5) .gallery-card__room { background: linear-gradient(170deg,#F2EAE0 0%,#E8DCCE 60%,#DCCFBC 100%); }

/* Floor / surface */
.gallery-card__room::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 32%;
  background: rgba(0,0,0,0.08);
  border-radius: 0 0 0 0;
}

/* Frame artwork */
.gallery-card__artwork {
  position: relative;
  z-index: 2;
  width: 72%;
  background: #F7F3EE;
  border-radius: 2px;
  padding: 10%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  aspect-ratio: 3/4;
}
.gallery-card:nth-child(1) .gallery-card__artwork { border: 7px solid #C4A055; box-shadow: 0 8px 28px rgba(0,0,0,0.18), inset 0 0 0 1.5px rgba(255,255,255,0.4); }
.gallery-card:nth-child(2) .gallery-card__artwork { border: 7px solid #DEDEDE; box-shadow: 0 8px 28px rgba(0,0,0,0.14), inset 0 0 0 1.5px rgba(255,255,255,0.5); background: #FAFAFA; }
.gallery-card:nth-child(3) .gallery-card__artwork { border: 7px solid #1A1A1A; box-shadow: 0 8px 28px rgba(0,0,0,0.45), inset 0 0 0 1.5px rgba(255,255,255,0.08); background: #F5F2EC; }
.gallery-card:nth-child(4) .gallery-card__artwork { border: 7px solid #8B7355; box-shadow: 0 8px 28px rgba(0,0,0,0.16), inset 0 0 0 1.5px rgba(255,255,255,0.3); }
.gallery-card:nth-child(5) .gallery-card__artwork { border: 7px solid #C4A055; box-shadow: 0 8px 28px rgba(0,0,0,0.18), inset 0 0 0 1.5px rgba(255,255,255,0.4); }

.gallery-card__artwork svg { width: 65%; height: auto; opacity: 0.85; }
.gallery-card:nth-child(3) .gallery-card__artwork svg { color: #2C3228; opacity: 0.75; }
.gallery-card:nth-child(1) .gallery-card__artwork svg,
.gallery-card:nth-child(4) .gallery-card__artwork svg,
.gallery-card:nth-child(5) .gallery-card__artwork svg { color: var(--c-sage); }
.gallery-card:nth-child(2) .gallery-card__artwork svg { color: #5A7A48; }

.gallery-card__art-name { font-family: var(--font-serif); font-size: 6px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--c-charcoal); text-align: center; line-height: 1.3; }
.gallery-card__art-sub  { font-size: 5px; letter-spacing: 0.05em; color: var(--c-muted); text-align: center; }

/* Card info panel */
.gallery-card__info {
  padding: var(--sp-4) var(--sp-5);
}
.gallery-card__type  { font-size: var(--text-xs); font-weight: 600; color: var(--c-sage); letter-spacing: 0.05em; text-transform: uppercase; }
.gallery-card__label { font-family: var(--font-serif); font-size: 1rem; font-weight: 700; color: var(--c-charcoal); margin-top: 2px; }
.gallery-card__price { font-size: var(--text-sm); color: var(--c-muted); margin-top: 2px; }

/* Carousel Controls */
.gallery-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-4);
  margin-top: var(--sp-8);
}
.gallery-btn {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--c-white);
  border: 1.5px solid var(--c-beige);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--c-brown);
  transition: all var(--t-base);
  box-shadow: var(--sh-sm);
}
.gallery-btn:hover { background: var(--c-olive); border-color: var(--c-olive); color: var(--c-white); }
.gallery-btn svg { width: 17px; height: 17px; }
.gallery-dots { display: flex; gap: var(--sp-2); }
.gallery-dot {
  width: 6px; height: 6px;
  border-radius: 3px;
  background: var(--c-beige);
  cursor: pointer;
  transition: all var(--t-base);
}
.gallery-dot.active { background: var(--c-olive); width: 20px; }

/* Coming soon placeholder */
.gallery-placeholder {
  max-width: 480px;
  margin: 0 auto;
  padding: var(--sp-12) var(--sp-8);
  text-align: center;
  background: var(--c-white);
  border: 1.5px dashed var(--c-beige);
  border-radius: var(--r-2xl);
}
.gallery-placeholder__icon {
  width: 64px; height: 64px;
  margin: 0 auto var(--sp-5);
  background: var(--c-sage-bg);
  border-radius: var(--r-full);
  display: flex; align-items: center; justify-content: center;
}
.gallery-placeholder__icon svg { width: 30px; height: auto; color: var(--c-olive); }
.gallery-placeholder__title {
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--c-charcoal);
}
.gallery-placeholder__text {
  font-size: var(--text-sm);
  color: var(--c-muted);
  line-height: 1.65;
  margin-top: var(--sp-3);
}

/* === TESTIMONIALS === */
.rl-testimonials {
  background: var(--c-cream);
  padding: var(--sp-24) 0;
}
.rl-testimonials__head { text-align: center; margin-bottom: var(--sp-12); }

.testi-wrap { overflow: hidden; }

.testi-track {
  display: flex;
  gap: var(--sp-5);
  transition: transform 0.52s cubic-bezier(0.4,0,0.2,1);
  will-change: transform;
  padding: var(--sp-3) var(--sp-1) var(--sp-6);
  cursor: grab;
  user-select: none;
}
.testi-track:active { cursor: grabbing; }

.testi-card {
  flex-shrink: 0;
  width: calc(25% - var(--sp-5));
  min-width: 240px;
  background: var(--c-white);
  border-radius: var(--r-xl);
  padding: var(--sp-6);
  box-shadow: var(--sh-card);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  transition: transform var(--t-base), box-shadow var(--t-base);
}
.testi-card:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); }
.testi-card__stars { display: flex; gap: 2px; }
.testi-card__stars svg { width: 13px; height: 13px; }
.testi-card__quote { font-size: var(--text-sm); color: var(--c-brown); line-height: 1.75; flex: 1; }
.testi-card__author { display: flex; align-items: center; gap: var(--sp-3); padding-top: var(--sp-3); border-top: 1px solid var(--c-beige); margin-top: auto; }
.testi-card__avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--c-sage-bg);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--c-olive);
  flex-shrink: 0;
  border: 2px solid var(--c-sage-bg);
}
.testi-card__name   { font-size: var(--text-sm); font-weight: 700; color: var(--c-charcoal); line-height: 1.2; }
.testi-card__family { font-size: var(--text-xs); color: var(--c-muted); }

/* === PRODUCT CARD (category / listing grid) === */
.rl-product-card {
  position: relative;
  background: var(--c-white);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--t-base), box-shadow var(--t-base);
}
.rl-product-card:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); }

/* .categoryProduct (shop.css) sets a fixed 13rem height for the old card layout;
   override it here so the new card sizes to its actual content. */
.rl-product-card__link { display: block; color: inherit; height: auto; }

.rl-product-card__title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: var(--text-md);
  text-align: center;
  color: var(--c-white);
  background: var(--c-forest);
  padding: var(--sp-3) var(--sp-4);
  margin: 0;
}

.rl-product-card__media { position: relative; overflow: hidden; aspect-ratio: 1 / 1; background: var(--c-ivory); }
.rl-product-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-slow); }
.rl-product-card:hover .rl-product-card__media img { transform: scale(1.05); }

.rl-product-card__discount {
  position: absolute; top: var(--sp-3); left: var(--sp-3);
  min-width: 2.75rem; height: 2.75rem; padding: 0 0.4rem;
  border-radius: var(--r-full);
  background: var(--c-danger);
  color: var(--c-white);
  display: flex; align-items: center; justify-content: center;
  font-size: var(--text-xs); font-weight: 700;
  box-shadow: var(--sh-sm);
  z-index: 2;
}

/* Older featured-product card (product_boxes.blade.php) puts a category badge
   at top-left already, so the discount circle goes on the opposite corner. */
.product-img .rl-product-card__discount { left: auto; right: var(--sp-3); }

.rl-product-card__code {
  position: absolute; top: var(--sp-3); right: var(--sp-3);
  background: rgba(26,26,26,0.6);
  color: var(--c-white);
  font-size: var(--text-2xs);
  letter-spacing: 0.04em;
  padding: 0.2rem 0.6rem;
  border-radius: var(--r-full);
  z-index: 2;
}

/* Bottom-right corner (top corners are already taken by the discount
   circle and the code badge above). z-index above .rl-product-card__attrs
   (z-index: 3) so the attribute hover-overlay — which covers the whole
   image, inset: 0 — never sits on top of the button and swallows clicks
   meant for it. */
.rl-product-card__favorite {
  position: absolute; bottom: var(--sp-3); right: var(--sp-3);
  z-index: 4;
}
.rl-product-card__favorite .rl-favorite-btn {
  width: 2rem; height: 2rem;
  background: rgba(255,255,255,0.85);
  box-shadow: var(--sh-sm);
}
.rl-product-card__favorite .rl-favorite-btn:hover { background: var(--c-white); }

.rl-product-card__price-row {
  display: flex; align-items: baseline; justify-content: flex-end; gap: var(--sp-1);
  padding: var(--sp-2) var(--sp-4);
  background: var(--c-sage-bg);
}
.rl-product-card__price { font-weight: 700; color: var(--c-charcoal); font-size: var(--text-md); }
.rl-product-card__price-suffix { color: var(--c-muted); font-size: var(--text-xs); }

/* Attribute list is hidden by default and revealed as an overlay only over the
   image (.rl-product-card__media) — the title, price, quantity stepper and
   add-to-basket button all live outside it, so they stay visible and reachable. */
.rl-product-card__attrs {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--sp-1);
  padding: var(--sp-5);
  background: rgba(26,26,26,0.92);
  opacity: 0;
  visibility: hidden;
  overflow-y: auto;
  transition: opacity var(--t-base);
  pointer-events: none;
}
.rl-product-card__media:hover .rl-product-card__attrs,
.rl-product-card__media:focus-within .rl-product-card__attrs {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.rl-product-card__attr {
  display: flex; justify-content: space-between; align-items: center; gap: var(--sp-2);
  padding: var(--sp-2);
  font-size: var(--text-xs);
  color: var(--c-cream);
}
.rl-product-card__attr:nth-child(even) { background: rgba(255,255,255,0.08); border-radius: var(--r-sm); }

/* Compound selector so this beats the element's own .px-2 (Bootstrap utility, same
   specificity as a single class) which was otherwise winning on left/right padding. */
.quantity_actions.rl-product-card__actions { padding: var(--sp-2); display: flex; justify-content: flex-end; }
/* The form inside spans the full card width (.w-100), so it needs its own
   flex alignment for the parent's justify-content to have any visible effect. */
.rl-product-card__actions form { display: flex; justify-content: flex-end; }

.rl-product-card__footer {
  display: block;
  text-align: center;
  padding: var(--sp-3) var(--sp-4);
  margin-top: auto;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--c-olive);
  border-top: 1px solid var(--c-beige);
  transition: background var(--t-fast), color var(--t-fast);
}
.rl-product-card__footer:hover { background: var(--c-sage-bg); color: var(--c-forest); }

.rl-price { color: var(--c-forest); font-weight: 700; }

/* Unit price badge shown next to the product detail title */
.rl-detail-title-price {
  display: inline-flex; flex-direction: column; align-items: center; flex-shrink: 0;
  background: var(--c-forest);
  color: var(--c-white);
  border-radius: var(--r-full);
  padding: var(--sp-2) var(--sp-5);
  font-size: var(--text-lg);
  font-weight: 700;
  line-height: 1.2;
  box-shadow: var(--sh-sm);
}
.rl-detail-title-price small {
  display: block;
  color: rgba(255,255,255,0.75);
  font-size: var(--text-2xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* Quantity stepper — reused on product cards and the product detail page */
.rl-qty {
  display: inline-flex; align-items: center;
  border: 1px solid var(--c-beige);
  border-radius: var(--r-full);
  overflow: hidden;
  background: var(--c-white);
}
.rl-qty__btn {
  width: 2rem; height: 2rem;
  display: flex; align-items: center; justify-content: center;
  background: var(--c-ivory);
  color: var(--c-olive);
  transition: background var(--t-fast);
}
.rl-qty__btn:hover { background: var(--c-sage-bg); }
.rl-qty__input {
  width: 2.75rem;
  height: 2rem;
  border: none;
  border-left: 1px solid var(--c-beige);
  border-right: 1px solid var(--c-beige);
  text-align: center;
  background: var(--c-white);
  color: var(--c-charcoal);
  font-size: var(--text-sm);
  appearance: textfield;
  -moz-appearance: textfield;
}
.rl-qty__input::-webkit-outer-spin-button,
.rl-qty__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.rl-qty-wrap { display: flex; flex-direction: column; align-items: flex-start; gap: 0.35rem; }
.rl-qty-wrap__stock { font-size: var(--text-xs); color: var(--c-muted); }

.rl-add-btn {
  width: 2.75rem; height: 2.75rem;
  border-radius: var(--r-full);
  background: var(--c-olive);
  color: var(--c-white);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--t-fast), transform var(--t-fast);
}
.rl-add-btn:hover { background: var(--c-forest); transform: translateY(-1px); }

/* === PRODUCT DETAIL PAGE === */
.image-slider.rl-detail-gallery {
  border-radius: var(--r-xl);
  box-shadow: var(--sh-card);
  background: var(--c-white);
}
.rl-detail-gallery .carousel-item picture,
.rl-detail-gallery .carousel-item img { background: var(--c-ivory); }
.rl-detail-gallery .carousel-control-prev,
.rl-detail-gallery .carousel-control-next { width: 3rem; opacity: 1; }
.rl-detail-gallery .carousel-control-prev i,
.rl-detail-gallery .carousel-control-next i {
  width: 2.25rem; height: 2.25rem;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--r-full);
  background: rgba(255,255,255,0.85);
  color: var(--c-forest) !important;
  box-shadow: var(--sh-sm);
}

.rl-detail-panel {
  background: var(--c-white);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-card);
  padding: var(--sp-6);
  height: 100%;
}

.rl-detail-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: var(--text-2xl);
  color: var(--c-charcoal);
  margin-bottom: var(--sp-4);
}

.rl-detail-attr {
  display: flex; justify-content: space-between; align-items: center; gap: var(--sp-3);
  padding: var(--sp-2) var(--sp-3);
  font-size: var(--text-sm);
  color: var(--c-brown);
}
.rl-detail-attr:nth-child(even) { background: var(--c-ivory); border-radius: var(--r-sm); }
.rl-detail-attr__value { font-weight: 600; color: var(--c-charcoal); }

.rl-detail-price-box {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4);
  background: var(--c-forest);
  border-radius: var(--r-lg);
  padding: var(--sp-4) var(--sp-5);
  margin: var(--sp-4) 0;
}
.rl-detail-price-box__discount {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  color: var(--c-sage-light);
  font-size: var(--text-2xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.rl-detail-price-box__discount strong {
  background: var(--c-danger);
  color: var(--c-white);
  border-radius: var(--r-full);
  padding: 0.4rem 0.6rem;
  font-size: var(--text-sm);
}
.rl-detail-price-box__now { color: var(--c-white); font-size: var(--text-xl); font-weight: 700; }
.rl-detail-price-box__was { color: rgba(255,255,255,0.55); text-decoration: line-through; font-size: var(--text-sm); }
.rl-detail-price-box__no-vat { color: var(--c-muted); font-size: var(--text-xs); text-align: right; }

.rl-detail-share {
  display: flex; align-items: center; gap: var(--sp-2);
  margin-top: var(--sp-5);
}
.rl-detail-share a {
  width: 2.25rem; height: 2.25rem;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--r-full);
  background: var(--c-ivory);
  color: var(--c-olive);
  transition: background var(--t-fast), color var(--t-fast);
}
.rl-detail-share a:hover { background: var(--c-olive); color: var(--c-white); }

/* Tag chips - product/post detail pages, the tag landing page */
.rl-tags { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: var(--sp-4); }
.rl-tag-chip {
  display: inline-flex; align-items: center;
  background: var(--c-sage-bg);
  color: var(--c-olive);
  border: none;
  border-radius: var(--r-full);
  padding: 0.3rem 0.85rem;
  font-size: var(--text-xs);
  font-weight: 600;
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast);
}
.rl-tag-chip:hover { background: var(--c-olive); color: var(--c-white); }
.rl-tag-chip::before { content: "#"; margin-right: 0.2rem; opacity: 0.6; }
.rl-tag-chip.is-active { background: var(--c-olive); color: var(--c-white); }

/* Favorite toggle - reused on the detail page header and, smaller, on
   product cards (see .rl-product-card__favorite below). */
.rl-favorite-btn {
  width: 2.25rem; height: 2.25rem;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--r-full);
  background: var(--c-ivory);
  color: var(--c-olive);
  flex-shrink: 0;
  transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast);
}
.rl-favorite-btn:hover { background: var(--c-sage-bg); transform: translateY(-1px); }
.rl-favorite-btn.is-active { color: var(--c-danger); }

/* Tabs */
.rl-detail-tabs.nav-tabs { border-bottom: 1px solid var(--c-beige); gap: var(--sp-2); }
.rl-detail-tabs .nav-link {
  border: none;
  color: var(--c-muted);
  font-weight: 600;
  font-size: var(--text-sm);
  padding: var(--sp-3) var(--sp-4);
  border-bottom: 2px solid transparent;
}
.rl-detail-tabs .nav-link:hover { color: var(--c-olive); }
.rl-detail-tabs .nav-link.active {
  color: var(--c-forest);
  background: transparent;
  border-bottom-color: var(--c-olive);
}
.rl-detail-tab-content {
  background: var(--c-white);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-card);
  padding: var(--sp-6);
}

/* Variant picker (product detail) */
.rl-variant-btn {
  border-radius: var(--r-full);
  padding: 0.5rem 1.1rem;
  font-size: var(--text-sm);
  font-weight: 600;
  background: var(--c-ivory);
  color: var(--c-brown);
  border: 1.5px solid var(--c-beige);
  transition: all var(--t-fast);
}
.rl-variant-btn:hover { border-color: var(--c-olive); color: var(--c-olive); }
.rl-variant-btn.is-active { background: var(--c-olive); border-color: var(--c-olive); color: var(--c-white); }

/* === CART / CHECKOUT PAGE === */

/* Step indicator */
.rl-steps { display: flex; align-items: flex-start; justify-content: center; flex-wrap: wrap; margin-bottom: var(--sp-10); }
.rl-steps__step {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: var(--sp-2);
  padding: 0 var(--sp-6);
  color: var(--c-muted);
}
.rl-steps__step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 1.1rem; left: 50%;
  width: 100%; height: 1px;
  background: var(--c-beige);
  z-index: 0;
}
.rl-steps__num {
  position: relative; z-index: 1;
  width: 2.25rem; height: 2.25rem;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--r-full);
  background: var(--c-white);
  border: 1.5px solid var(--c-beige);
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--c-muted);
  transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast);
}
.rl-steps__label {
  position: relative; z-index: 1;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
  background: var(--c-ivory);
}
.rl-steps__step.is-done .rl-steps__num { background: var(--c-sage-bg); border-color: var(--c-sage); color: var(--c-olive); }
.rl-steps__step.is-done:hover .rl-steps__num { background: var(--c-olive); border-color: var(--c-olive); color: var(--c-white); }
.rl-steps__step.is-done .rl-steps__label { color: var(--c-olive); }
.rl-steps__step.is-active .rl-steps__num { background: var(--c-forest); border-color: var(--c-forest); color: var(--c-white); box-shadow: var(--sh-sm); }
.rl-steps__step.is-active .rl-steps__label { color: var(--c-forest); }
@media (max-width: 768px) {
  .rl-steps__step { padding: 0 var(--sp-3); }
  .rl-steps__label { display: none; }
}

/* Cart item list */
.rl-cart-list { display: flex; flex-direction: column; gap: var(--sp-4); }
.rl-cart-item {
  background: var(--c-white);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-card);
  padding: var(--sp-5);
}
.rl-cart-item__header {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3);
  padding-bottom: var(--sp-3);
  margin-bottom: var(--sp-4);
  border-bottom: 1px solid var(--c-beige);
}
.rl-cart-item__title {
  display: flex; align-items: center; gap: var(--sp-3);
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: var(--text-md);
  color: var(--c-charcoal);
}
.rl-cart-item__code {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: var(--text-2xs);
  letter-spacing: 0.04em;
  color: var(--c-white);
  background: var(--c-olive);
  padding: 0.2rem 0.6rem;
  border-radius: var(--r-full);
}
.rl-cart-item__body { display: flex; align-items: center; flex-wrap: nowrap; gap: var(--sp-4); }
.rl-cart-item__media {
  position: relative;
  width: 4.5rem; height: 4.5rem; flex-shrink: 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--c-ivory);
}
.rl-cart-item__media img { width: 100%; height: 100%; object-fit: cover; }
.rl-cart-item__discount-badge {
  position: absolute; top: 0.25rem; left: 0.25rem;
  min-width: 1.6rem; height: 1.6rem; padding: 0 0.25rem;
  border-radius: var(--r-full);
  background: var(--c-danger);
  color: var(--c-white);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.6rem; font-weight: 700;
  box-shadow: var(--sh-sm);
  z-index: 2;
}
.rl-cart-item__details { flex: 1 1 auto; min-width: 0; font-size: var(--text-sm); color: var(--c-brown); }
.rl-cart-item__qty { flex-shrink: 0; }
.rl-cart-item__qty-static { display: flex; flex-direction: column; align-items: center; gap: 0.15rem; min-width: 3rem; }
.rl-cart-item__qty-label { font-size: var(--text-2xs); text-transform: uppercase; letter-spacing: 0.04em; color: var(--c-muted); }
.rl-cart-item__qty-value { font-weight: 700; color: var(--c-charcoal); font-size: var(--text-sm); }
.rl-cart-item__unit-price,
.rl-cart-item__price { flex-shrink: 0; min-width: 5rem; text-align: right; font-weight: 700; color: var(--c-charcoal); }
.rl-cart-item__total { flex-shrink: 0; min-width: 5rem; text-align: right; }
.rl-cart-item__remove {
  flex-shrink: 0;
  width: 2.25rem; height: 2.25rem;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--r-full);
  background: var(--c-ivory);
  color: var(--c-danger);
  transition: background var(--t-fast), color var(--t-fast);
}
.rl-cart-item__remove:hover { background: var(--c-danger); color: var(--c-white); }
@media (max-width: 767.98px) {
  .rl-cart-item__body { flex-wrap: wrap; }
}
.rl-cart-item__footer {
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--sp-3);
  margin-top: var(--sp-3);
}
.rl-cart-item__attributes {
  display: flex; flex-wrap: wrap; gap: var(--sp-1) var(--sp-4);
  flex: 1 1 auto;
  font-size: var(--text-xs);
  color: var(--c-muted);
}
.rl-cart-item__attribute { display: inline-flex; align-items: baseline; gap: 0.25rem; }
.rl-cart-item__attribute strong { color: var(--c-charcoal); font-weight: 700; }
.rl-cart-item__applied-discount {
  margin-left: auto;
  text-align: right;
  font-size: var(--text-xs);
  color: var(--c-olive);
}
.rl-cart-item__discount-note {
  background: var(--c-sage-bg);
  color: var(--c-olive);
  font-size: var(--text-xs);
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--r-md);
}

/* Order summary panel */
.rl-cart-summary-sticky {
  position: sticky;
  top: calc(var(--nav-h) + var(--sp-4));
}
.rl-cart-summary {
  background: var(--c-white);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-card);
  padding: var(--sp-6);
}
.rl-cart-summary__title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: var(--text-lg);
  color: var(--c-charcoal);
  margin-bottom: var(--sp-4);
}
.rl-cart-summary__rows {
  display: flex; flex-direction: column; gap: var(--sp-2);
  padding-bottom: var(--sp-4);
  margin-bottom: var(--sp-4);
  border-bottom: 1px solid var(--c-beige);
  font-size: var(--text-sm);
  color: var(--c-brown);
}
.rl-cart-summary__row { display: flex; justify-content: space-between; gap: var(--sp-3); }
.rl-cart-summary__note { font-size: var(--text-xs); color: var(--c-muted); }
.rl-cart-summary__total { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--sp-3); margin-bottom: var(--sp-5); }
.rl-cart-summary__total > span:first-child { font-family: var(--font-serif); font-weight: 700; font-size: var(--text-md); color: var(--c-charcoal); }
.rl-cart-summary__total-value { font-weight: 700; font-size: var(--text-xl); color: var(--c-forest); }
.rl-cart-summary__total-value.is-struck { font-size: var(--text-sm); color: var(--c-muted); text-decoration: line-through; font-weight: 600; }
.rl-cart-summary__vat-note { font-size: var(--text-xs); color: var(--c-muted); margin-top: var(--sp-1); }
.rl-cart-summary__discount,
.rl-cart-summary__hint { font-size: var(--text-xs); margin-top: var(--sp-2); }
.rl-cart-summary__hint { background: var(--c-sage-bg); color: var(--c-olive); padding: var(--sp-2) var(--sp-3); border-radius: var(--r-md); }
.rl-cart-summary__gdpr { display: flex; align-items: flex-start; gap: var(--sp-2); font-size: var(--text-xs); color: var(--c-muted); margin-bottom: var(--sp-5); }
.rl-cart-summary__gdpr input[type="checkbox"] { margin: 0.15rem 0 0 0; width: 1rem; height: 1rem; flex-shrink: 0; accent-color: var(--c-olive); cursor: pointer; }
.rl-cart-summary__actions { display: flex; flex-direction: column; gap: var(--sp-3); }
.rl-cart-summary__actions .btn { white-space: normal; text-align: center; line-height: 1.3; }
.rl-cart-summary__back {
  display: block;
  text-align: center;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--c-muted);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.rl-cart-summary__back:hover { color: var(--c-olive); }

/* === STANDALONE FORM CARD (newsletter confirm, unsubscribe, etc.) === */
.rl-form-card {
  max-width: 560px;
  margin: 0 auto;
  background: var(--c-white);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-card);
  padding: var(--sp-10) var(--sp-8);
}

.rl-form-field { margin-bottom: var(--sp-5); }

.rl-form-field label {
  display: block;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--c-muted);
  margin-bottom: var(--sp-2);
}

.rl-form-field input,
.rl-form-field select {
  width: 100%;
  padding: 0.7rem 1rem;
  border-radius: var(--r-md);
  border: 1px solid var(--c-beige);
  background: var(--c-ivory);
  color: var(--c-charcoal);
  font-size: var(--text-sm);
  outline: none;
  transition: border-color var(--t-fast), background var(--t-fast);
}
.rl-form-field input:focus,
.rl-form-field select:focus { border-color: var(--c-sage); background: var(--c-white); }
.rl-form-field input:read-only { color: var(--c-muted); cursor: not-allowed; }
.rl-form-field label i { color: var(--c-olive); margin-right: 0.3rem; }
.rl-form-field--error input,
.rl-form-field--error select { border-color: var(--c-danger); }
.rl-form-error { font-size: var(--text-xs); color: var(--c-danger); margin-top: var(--sp-1); }

.rl-form-required { font-size: var(--text-xs); color: var(--c-gold); margin-bottom: var(--sp-4); }

.rl-form-hint { font-size: var(--text-xs); color: var(--c-muted); line-height: 1.6; margin-bottom: var(--sp-6); }
.rl-form-hint a { color: var(--c-olive); text-decoration: underline; transition: color var(--t-fast); }
.rl-form-hint a:hover { color: var(--c-forest); }

.rl-form-card--compact { padding: var(--sp-6); max-width: none; margin: 0; }

/* Order confirmation page (order_send.blade.php) */
.rl-order-success__icon {
  width: 4rem; height: 4rem;
  margin: 0 auto var(--sp-6);
  border-radius: var(--r-full);
  background: var(--c-sage-bg);
  color: var(--c-forest);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.75rem;
}
.rl-order-success__qr {
  margin-top: var(--sp-8);
  padding-top: var(--sp-8);
  border-top: 1px solid var(--c-beige);
}
.rl-order-success__qr img {
  margin: var(--sp-4) auto 0;
  padding: var(--sp-4);
  background: var(--c-white);
  border: 1px solid var(--c-beige);
  border-radius: var(--r-lg);
}

.rl-form-card__title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: var(--text-xl);
  color: var(--c-charcoal);
  margin-bottom: var(--sp-6);
}
.rl-form-card__subtitle {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: var(--text-md);
  color: var(--c-charcoal);
  margin-bottom: var(--sp-4);
}

.rl-checkbox { display: flex; align-items: center; gap: var(--sp-2); font-size: var(--text-sm); font-weight: 600; color: var(--c-charcoal); cursor: pointer; }
.rl-checkbox input[type="checkbox"] { width: 1.1rem; height: 1.1rem; flex-shrink: 0; accent-color: var(--c-olive); cursor: pointer; }

/* === LOGIN / REGISTER PAGE === */
.rl-auth-tabs { display: flex; justify-content: center; gap: var(--sp-2); margin-bottom: var(--sp-6); }
.rl-auth-tabs .nav-link {
  padding: 0.6rem 1.5rem;
  border-radius: var(--r-full);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--c-muted);
  background: var(--c-white);
  border: 1.5px solid var(--c-beige);
  transition: all var(--t-fast);
}
.rl-auth-tabs .nav-link:hover { border-color: var(--c-olive); color: var(--c-olive); }
.rl-auth-tabs .nav-link.active { background: var(--c-olive); border-color: var(--c-olive); color: var(--c-white); }

.rl-auth-cta {
  height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: var(--sp-5);
  text-align: center;
  background: var(--c-forest);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-card);
  color: var(--c-white);
  padding: var(--sp-8);
}
.rl-auth-cta h5 { font-family: var(--font-serif); font-weight: 700; font-size: var(--text-lg); margin: 0; color: var(--c-white); }
.rl-auth-cta .btn-primary { background: var(--c-white); color: var(--c-forest); }
.rl-auth-cta .btn-primary:hover { background: var(--c-cream); }

/* === CUSTOMER ACCOUNT PAGE === */
.rl-account-header {
  display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: var(--sp-3);
  margin-bottom: var(--sp-8);
}
.rl-account-header__title { font-family: var(--font-serif); font-weight: 700; font-size: var(--text-2xl); color: var(--c-charcoal); margin: 0; }
.rl-account-header__meta { font-size: var(--text-sm); color: var(--c-muted); }
.rl-account-header__meta strong { color: var(--c-olive); font-weight: 700; }
/* Reused .hv-badge (normally a floating hero decoration) sitting inline next to the h1 here,
   keeping its card look and float animation but freed from absolute positioning */
.rl-account-header__meta .hv-badge { position: static; animation: float-slight 4.5s ease-in-out infinite; }
@keyframes float-slight {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-4px); }
}

.rl-account-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--sp-3); margin-bottom: var(--sp-6); }
.rl-account-toolbar .rl-auth-tabs { justify-content: flex-start; margin-bottom: 0; }

/* === CONTACT PAGE (contact.blade.php / entity.blade.php) === */
.rl-page-header { text-align: center; margin-bottom: var(--sp-8); }
.rl-page-header__title { font-family: var(--font-serif); font-weight: 700; font-size: var(--text-3xl); color: var(--c-charcoal); margin: 0; }

/* Small serif dividers replacing the old bg-secondary "chip" sub-headings
   (Opening Hours, entity group names) inside the contact sidebar. */
.rl-sidebar-heading {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: var(--text-md);
  color: var(--c-charcoal);
  margin: var(--sp-6) 0 var(--sp-3);
  padding-bottom: var(--sp-2);
  border-bottom: 2px solid var(--c-sage-light);
}
.rl-sidebar-heading:first-child { margin-top: 0; }

.rl-info-card {
  background: var(--c-white);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-card);
  padding: var(--sp-5);
  margin-bottom: var(--sp-4);
  font-size: var(--text-sm);
  color: var(--c-brown);
}
.rl-info-card--flush { padding: 0; overflow: hidden; }

/* Shared icon-badge + row layout for phone/email lines, reused by both the
   sidebar contact block and the entity cards below. */
.rl-icon-row { display: flex; align-items: center; gap: var(--sp-3); }
.rl-icon-row + .rl-icon-row { margin-top: var(--sp-2); }
/* Top-aligned variant for rows whose text wraps multiple lines (e.g. the address
   block), so the badge sits with the first line instead of the vertical center. */
.rl-icon-row--top { align-items: flex-start; }
.rl-icon-row--top .rl-icon-badge { margin-top: 0.1rem; }
.rl-icon-badge {
  width: 30px; height: 30px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--r-full);
  background: var(--c-sage-bg);
  color: var(--c-olive);
  font-size: 0.8rem;
}
.rl-icon-row a { color: var(--c-brown); }
.rl-icon-row a:hover { color: var(--c-olive); }

.rl-social-icons { display: flex; gap: var(--sp-3); justify-content: center; margin: var(--sp-5) 0; }
.rl-social-icons .socialIcons {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--r-full);
  background: var(--c-ivory);
  border: 1.5px solid var(--c-beige);
  color: var(--c-olive);
  font-size: var(--text-md);
  transition: background var(--t-base), color var(--t-base), transform var(--t-base), border-color var(--t-base);
}
.rl-social-icons .socialIcons:hover { background: var(--c-olive); color: var(--c-white); transform: translateY(-2px); }

/* .rl-footer__soc is styled for the dark footer by default (near-white on
   dark); this page has a light background, so give it the same treatment
   as the .socialIcons circle above instead of reusing the footer colors. */
.rl-social-icons .rl-footer__soc {
  width: 40px; height: 40px;
  background: var(--c-ivory);
  border: 1.5px solid var(--c-beige);
  color: var(--c-olive);
}
.rl-social-icons .rl-footer__soc:hover { background: var(--c-olive); border-color: var(--c-olive); color: var(--c-white); transform: translateY(-2px); }
.rl-social-icons .rl-footer__soc svg { width: 18px; height: 18px; }

.rl-entity-card {
  display: flex;
  background: var(--c-white);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-card);
  overflow: hidden;
  margin-bottom: var(--sp-4);
  transition: transform var(--t-base), box-shadow var(--t-base);
}
.rl-entity-card:hover { transform: translateY(-3px); box-shadow: var(--sh-lg); }
.rl-entity-card__media { width: 38%; flex-shrink: 0; background: var(--c-sage-bg); }
.rl-entity-card__media img { width: 100%; height: 100%; object-fit: cover; }
.rl-entity-card__body { flex: 1; min-width: 0; padding: var(--sp-4); display: flex; flex-direction: column; justify-content: center; gap: var(--sp-2); }
.rl-entity-card__name { font-family: var(--font-serif); font-weight: 700; font-size: var(--text-md); color: var(--c-charcoal); margin: 0 0 var(--sp-1); }
.rl-entity-card__body .rl-icon-badge { width: 26px; height: 26px; font-size: 0.7rem; }

/* Inline member search (item_list.blade.php toolbar) */
.rl-heritage-search {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  width: 100%;
  max-width: 320px;
  padding: 0.6rem 1.1rem;
  border: 1.5px solid var(--c-beige);
  border-radius: var(--r-full);
  background: var(--c-white);
  transition: border-color var(--t-fast);
}
.rl-heritage-search:focus-within { border-color: var(--c-olive); }
.rl-heritage-search__icon { color: var(--c-muted); flex-shrink: 0; font-size: 0.85rem; }
.rl-heritage-search__input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  font-size: var(--text-sm);
  color: var(--c-charcoal);
}
.rl-heritage-search__input::placeholder { color: var(--c-light); }

/* Empty state (no records yet) */
.rl-empty-state {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: var(--sp-4);
  padding: var(--sp-12) var(--sp-6);
  background: var(--c-white);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-card);
  margin-bottom: var(--sp-8);
}
.rl-empty-state__icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--c-sage-bg);
  color: var(--c-olive);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
}
.rl-empty-state__text { color: var(--c-muted); font-size: var(--text-sm); }

/* === HERITAGE MEMBER LIST (item_list.blade.php) === */
.rl-heritage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--sp-4);
}

.rl-heritage-card {
  display: flex;
  position: relative;
  z-index: 0;
  align-items: center;
  gap: var(--sp-4);
  background: var(--c-white);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-card);
  padding: var(--sp-4) var(--sp-5);
  /* Extra clearance below the card's half-out "+" badge (it protrudes
     ~14px past the bottom edge) so it doesn't crowd the next grid row. */
  margin-bottom: 0.5rem;
  transition: transform var(--t-base), box-shadow var(--t-base);
}
/* :hover already lifts the card via `transform`, which creates its own
   stacking context — that traps the "+" add-badge's z-index inside the
   card instead of letting it rise above the next grid row (which,
   sitting later in DOM order at the same z-index:0, would otherwise
   paint on top and hide the open dropdown menu behind it). Raising the
   card itself above its siblings while hovered/focused fixes that;
   :focus-within covers keyboard-only navigation into the open menu. */
.rl-heritage-card:hover,
.rl-heritage-card:focus-within { transform: translateY(-3px); box-shadow: var(--sh-lg); z-index: 5; }

.rl-heritage-card__avatar {
  position: relative;
  width: 56px; height: 56px;
  border-radius: var(--r-sm);
  overflow: visible;
  flex-shrink: 0;
  background: var(--c-sage-bg);
  display: flex; align-items: center; justify-content: center;
}
.rl-heritage-card__avatar-img {
  width: 100%; height: 100%;
  border-radius: var(--r-sm);
  object-fit: cover;
  display: block;
}
.rl-heritage-card__avatar > i { color: var(--c-olive); font-size: 1.3rem; }
.rl-heritage-card__deceased {
  position: absolute; bottom: -2px; right: -2px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--c-charcoal);
  color: var(--c-white);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.6rem;
  border: 2px solid var(--c-white);
}

/* Top-left corner flag on cards with no relationships at all (see
   $recordHasNoConnections in _item_list.blade.php). Positioned on the
   card itself, not the avatar, so it reads as "this whole member" rather
   than a photo annotation. */
.rl-heritage-card__unlinked {
  position: absolute; top: -6px; left: -6px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--c-danger);
  color: var(--c-white);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.65rem;
  border: 2px solid var(--c-white);
  box-shadow: var(--sh-card);
  cursor: help;
  z-index: 2;
}

.rl-heritage-card__body { flex: 1 1 auto; min-width: 0; }
.rl-heritage-card__name {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: var(--text-md);
  color: var(--c-charcoal);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rl-heritage-card__dates { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: 2px; }
.rl-heritage-card__editing {
  position: absolute;
  top: -15px; right: 20px;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--c-gold);
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 2px 4px;
  background-color: white;
  border-radius: var(--r-md);
  border: 1px solid var(--c-beige);
  box-shadow: var(--sh-card);
}
.rl-heritage-card__date {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--c-olive);
  background: var(--c-sage-bg);
  padding: 0.15rem 0.6rem;
  border-radius: var(--r-full);
}

.rl-heritage-card__actions { display: flex; gap: var(--sp-1); flex-shrink: 0; }
.rl-heritage-card__action {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  color: var(--c-muted);
  transition: background var(--t-fast), color var(--t-fast);
}
.rl-heritage-card__action:hover { background: var(--c-sage-bg); color: var(--c-olive); }
.rl-heritage-card__action--danger:hover { background: rgba(163,55,43,0.12); color: var(--c-danger); }

.rl-heritage-card__add-menu .dropdown-item i { color: var(--c-olive); width: 14px; text-align: center; }
.rl-heritage-card__add-menu .dropdown-item:hover,
.rl-heritage-card__add-menu .dropdown-item:focus { background: var(--c-sage-bg); color: var(--c-charcoal); }

/* Half-in/half-out "+" badge on the card's bottom edge — same visual
   language as the tree's per-card add button (heritage.css .ft-add-btn):
   white circle, sage border, olive plus. */
.rl-heritage-card__add {
  position: absolute;
  left: 50%; bottom: 0;
  transform: translate(-50%, 50%);
  z-index: 2;
}
.rl-heritage-card__add-btn {
  display: flex; align-items: center; justify-content: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--c-white);
  border: 1.5px solid var(--c-sage-mid);
  color: var(--c-olive);
  font-size: 12px;
  box-shadow: var(--sh-card);
  transition: background var(--t-fast), border-color var(--t-fast);
}
.rl-heritage-card__add-btn:hover { background: var(--c-sage-bg); border-color: var(--c-olive); }

.rl-order-card {
  background: var(--c-white);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-card);
  overflow: hidden;
  height: 100%;
  display: flex; flex-direction: column;
}
.rl-order-card__header {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-4);
  border-bottom: 1px solid var(--c-beige);
  font-size: var(--text-xs);
}
.rl-order-card__date { color: var(--c-muted); }
.rl-order-card__badges { display: flex; gap: var(--sp-2); flex-wrap: wrap; }
.rl-order-card__body { padding: var(--sp-4); flex: 1 1 auto; }
.rl-order-card__label { font-size: var(--text-xs); color: var(--c-muted); text-transform: uppercase; letter-spacing: 0.03em; }
.rl-order-card__number { font-family: var(--font-serif); font-weight: 700; font-size: var(--text-md); color: var(--c-charcoal); margin: 0.15rem 0 var(--sp-3); }
.rl-order-card__products {
  background: var(--c-ivory);
  border-radius: var(--r-md);
  padding: var(--sp-3);
  font-size: var(--text-sm);
}
.rl-order-card__products a { color: var(--c-brown); }
.rl-order-card__products a:hover { color: var(--c-olive); }
.rl-order-card__products { list-style: disc; padding-left: 1.25rem; }
.rl-order-card__footer { padding: var(--sp-3) var(--sp-4); border-top: 1px solid var(--c-beige); font-size: var(--text-sm); }

/* Selectable radio option row (shipping methods, payment methods, ...) */
.rl-option {
  display: flex; align-items: flex-start; gap: var(--sp-3);
  padding: var(--sp-4);
  border: 1.5px solid var(--c-beige);
  border-radius: var(--r-lg);
  margin-bottom: var(--sp-3);
  cursor: pointer;
  transition: border-color var(--t-fast), background var(--t-fast);
}
.rl-option:hover { border-color: var(--c-sage); background: var(--c-sage-bg); }
.rl-option:has(input:checked) { border-color: var(--c-olive); background: var(--c-sage-bg); }
.rl-option input[type="radio"] { margin-top: 0.2rem; width: 1.1rem; height: 1.1rem; flex-shrink: 0; accent-color: var(--c-olive); }
.rl-option__body { display: flex; flex-direction: column; gap: 0.15rem; }
.rl-option__name { display: flex; align-items: center; gap: var(--sp-2); font-weight: 700; color: var(--c-charcoal); font-size: var(--text-sm); }
.rl-option__desc { font-size: var(--text-xs); color: var(--c-muted); }

/* Compact pill picker (currency, small single-value choices) */
.rl-pill-options { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.rl-pill-option {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 3.5rem;
  padding: 0.5rem 1.1rem;
  border: 1.5px solid var(--c-beige);
  border-radius: var(--r-full);
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--c-brown);
  cursor: pointer;
  transition: all var(--t-fast);
}
.rl-pill-option input { position: absolute; opacity: 0; width: 0; height: 0; }
.rl-pill-option:hover { border-color: var(--c-olive); color: var(--c-olive); }
.rl-pill-option:has(input:checked) { background: var(--c-olive); border-color: var(--c-olive); color: var(--c-white); }

.rl-shipping-address {
  margin-top: var(--sp-4);
  padding: var(--sp-4);
  background: var(--c-sage-bg);
  border-radius: var(--r-md);
  color: var(--c-charcoal);
  font-size: var(--text-sm);
  line-height: 1.6;
}

/* Order review (summary.blade.php) */
.rl-summary-row {
  display: flex; justify-content: space-between; align-items: flex-start; gap: var(--sp-3);
  padding: var(--sp-2) 0;
  border-bottom: 1px solid var(--c-beige);
  font-size: var(--text-sm);
}
.rl-summary-row:last-child { border-bottom: none; }
.rl-summary-row > span:first-child { color: var(--c-muted); }
.rl-summary-row > strong { color: var(--c-charcoal); text-align: right; font-weight: 700; }

.rl-summary-note {
  width: 100%;
  min-height: 8rem;
  padding: 0.7rem 1rem;
  border-radius: var(--r-md);
  border: 1px solid var(--c-beige);
  background: var(--c-ivory);
  color: var(--c-charcoal);
  font-size: var(--text-sm);
  font-family: inherit;
  outline: none;
  resize: vertical;
  transition: border-color var(--t-fast), background var(--t-fast);
}
.rl-summary-note:focus { border-color: var(--c-sage); background: var(--c-white); }

.list_of_places_wrapper > label {
  display: block;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--c-muted);
  margin-bottom: var(--sp-2);
}
.list_of_places_wrapper > input[type="text"] {
  width: 100%;
  padding: 0.7rem 1rem;
  border-radius: var(--r-md);
  border: 1px solid var(--c-beige);
  background: var(--c-ivory);
  color: var(--c-charcoal);
  font-size: var(--text-sm);
  outline: none;
  transition: border-color var(--t-fast), background var(--t-fast);
}
.list_of_places_wrapper > input[type="text"]:focus { border-color: var(--c-sage); background: var(--c-white); }

/* AJAX pickup-point search results */
#list_of_places { max-height: 420px; overflow-y: auto; border-radius: var(--r-lg); }
#list_of_places.list-group { border: 1px solid var(--c-beige); }
#list_of_places .list-group-item { border-color: var(--c-beige); padding: var(--sp-3) var(--sp-4); }
#list_of_places .place-title h5 { font-family: var(--font-serif); font-size: var(--text-sm); color: var(--c-charcoal); margin: 0; }
#list_of_places .place-title span { font-size: var(--text-xs); color: var(--c-muted); }

/* === SITE MODAL (session flash / info messages) === */
.rl-modal .modal-content {
  border: none;
  border-radius: var(--r-xl);
  box-shadow: var(--sh-xl);
  overflow: hidden;
  font-family: var(--font-sans);
}

.rl-modal .modal-header {
  background: var(--c-forest);
  border: none;
  padding: var(--sp-5) var(--sp-6);
}
.rl-modal .modal-header.rl-modal-header--error { background: var(--c-danger); }
.rl-modal .modal-header.rl-modal-header--info  { background: var(--c-gold); }

.rl-modal .modal-title {
  color: var(--c-white);
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: var(--text-lg);
}

.rl-modal .btn-close { filter: brightness(0) invert(1); opacity: 0.85; }
.rl-modal .btn-close:hover { opacity: 1; }

.rl-modal .modal-body {
  padding: var(--sp-6);
  color: var(--c-brown);
  font-size: var(--text-sm);
  line-height: 1.7;
}
.rl-modal .modal-body a { color: var(--c-olive); text-decoration: underline; }
.rl-modal .modal-footer { border-top: 1px solid var(--c-beige); padding: var(--sp-4) var(--sp-6); }

/* Add/remove/update-to-cart confirmation modal */
.rl-modal-product { display: flex; gap: var(--sp-5); }
.rl-modal-product__media {
  width: 6rem; height: 6rem; flex-shrink: 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--c-ivory);
}
.rl-modal-product__media img { width: 100%; height: 100%; object-fit: cover; }
.rl-modal-product__info { flex: 1 1 auto; min-width: 0; }
.rl-modal-product__name {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: var(--text-md);
  color: var(--c-charcoal);
  margin-bottom: var(--sp-3);
}
.rl-modal-product__row {
  display: flex; justify-content: space-between; gap: var(--sp-3);
  padding: var(--sp-1) 0;
  font-size: var(--text-sm);
}
.rl-modal-product__row > span:first-child { color: var(--c-muted); }
.rl-modal-product__row > span:last-child,
.rl-modal-product__row > strong { color: var(--c-charcoal); font-weight: 700; }
.rl-modal-product__total {
  display: flex; justify-content: space-between; align-items: baseline; gap: var(--sp-3);
  margin-top: var(--sp-3);
  padding-top: var(--sp-3);
  border-top: 1px solid var(--c-beige);
  font-weight: 700;
}
.rl-modal-product__total strong { color: var(--c-forest); font-size: var(--text-md); }
.rl-modal-product__vat-note { font-size: var(--text-xs); color: var(--c-muted); text-align: right; margin-top: 0.15rem; }
.rl-modal-product__discount { font-size: var(--text-xs); color: var(--c-danger); font-weight: 600; text-align: right; margin-top: -0.1rem; }

/* Donate modal: choice buttons keep the outline style/subtitle as-is, but the
   icon + main label are pulled into a solid green fill flush with the button's
   own edges. Negative margins cancel the button's padding so the fill bleeds
   to the border; overflow:hidden on the button clips it to the capsule shape. */
.rl-choice-btn { overflow: hidden; }
.rl-choice-label {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  align-self: stretch;
  background: var(--c-olive);
  color: var(--c-white);
  padding: 0 1rem;
  margin: -0.75rem 0 -0.75rem -1.5rem;
  font-weight: 600;
}

/* === CTA SECTION === */
.rl-cta {
  background: var(--c-forest);
  padding: var(--sp-24) 0;
  position: relative;
  overflow: hidden;
}
.rl-cta::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 55% 80% at 80% 50%, rgba(83,122,58,0.28) 0%, transparent 60%),
    radial-gradient(ellipse 40% 60% at 20% 50%, rgba(83,122,58,0.16) 0%, transparent 58%);
  pointer-events: none;
}
.rl-cta__content {
  text-align: center;
  position: relative; z-index: 1;
  max-width: 620px;
  margin: 0 auto;
}
.rl-cta__eyebrow { font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--c-sage-light); margin-bottom: var(--sp-4); display: block; }
.rl-cta__title {
  font-family: var(--font-serif);
  font-size: clamp(var(--text-2xl), 4vw, var(--text-4xl));
  font-weight: 700;
  color: var(--c-white);
  line-height: 1.18;
  margin-bottom: var(--sp-4);
}
.rl-cta__sub { font-size: var(--text-md); color: rgba(255,255,255,0.6); margin-bottom: var(--sp-8); line-height: 1.65; }
.rl-cta__form { display: flex; gap: var(--sp-3); max-width: 440px; margin: 0 auto; }
.rl-cta__input {
  flex: 1;
  padding: 0.9rem 1.25rem;
  border-radius: var(--r-full);
  border: 1.5px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.1);
  color: var(--c-white);
  font-size: var(--text-sm);
  outline: none;
  backdrop-filter: blur(8px);
  transition: border-color var(--t-fast), background var(--t-fast);
}
.rl-cta__input::placeholder { color: rgba(255,255,255,0.4); }
.rl-cta__input:focus { border-color: rgba(255,255,255,0.5); background: rgba(255,255,255,0.15); }
.rl-cta .btn-primary { background: var(--c-white); color: var(--c-forest); flex-shrink: 0; }
.rl-cta .btn-primary:hover { background: var(--c-cream); }
.rl-cta__note { font-size: var(--text-xs); color: rgba(255,255,255,0.35); margin-top: var(--sp-4); }

/* === FOOTER === */
.rl-footer {
  background: #111611;
  color: rgba(255,255,255,0.55);
  padding: var(--sp-16) 0 var(--sp-8);
}

.rl-footer__main {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
  gap: var(--sp-8);
  padding-bottom: var(--sp-12);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.rl-footer__main-up {
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
}

.rl-footer__brand { display: flex; flex-direction: column; gap: var(--sp-4); }
.rl-footer__logo { display: flex; align-items: center; gap: var(--sp-3); }
.rl-footer__logo svg { width: 42px; height: 42px; color: var(--c-sage-light); }
.rl-footer__logo-name { font-family: var(--font-serif); font-size: var(--text-md); font-weight: 700; color: var(--c-white); }
.rl-footer__tagline { font-size: var(--text-sm); line-height: 1.65; max-width: 220px; }
.rl-footer__social { display: flex; gap: var(--sp-3); }
.rl-footer__soc {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.13);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.45);
  transition: all var(--t-base);
}
.rl-footer__soc:hover { background: var(--c-olive); border-color: var(--c-olive); color: var(--c-white); }
.rl-footer__soc svg { width: 15px; height: 15px; }

.rl-footer__col-title { font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--c-white); margin-bottom: var(--sp-4); }
.rl-footer__links { display: flex; flex-direction: column; gap: var(--sp-3); }
.rl-footer__lnk { font-size: var(--text-sm); color: rgba(255,255,255,0.48); transition: color var(--t-fast); }
.rl-footer__lnk:hover { color: var(--c-white); }

.rl-footer__nl { display: flex; flex-direction: column; gap: var(--sp-4); }
.rl-footer__nl-title { font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--c-white); }
.rl-footer__nl-text { font-size: var(--text-sm); line-height: 1.55; }
.rl-footer__nl-form { display: flex; flex-direction: column; gap: var(--sp-2); margin-top: var(--sp-1); }
.rl-footer__nl-input {
  width: 100%;
  padding: 0.6rem 1rem;
  border-radius: var(--r-md);
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.06);
  color: var(--c-white);
  font-size: var(--text-sm);
  outline: none;
  transition: border-color var(--t-fast), background var(--t-fast);
}
.rl-footer__nl-input::placeholder { color: rgba(255,255,255,0.28); }
.rl-footer__nl-input:focus { border-color: var(--c-sage-light); background: rgba(255,255,255,0.1); }
.rl-footer__nl-btn {
  width: 100%;
  padding: 0.6rem 1rem;
  border-radius: var(--r-md);
  background: var(--c-olive);
  color: var(--c-white);
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background var(--t-fast);
}
.rl-footer__nl-btn:hover { background: var(--c-sage); }

.rl-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--sp-8);
  flex-wrap: wrap;
  gap: var(--sp-4);
}
.rl-footer__copy { font-size: var(--text-xs); color: rgba(255,255,255,0.3); }
.rl-footer__bl { display: flex; gap: var(--sp-6); }
.rl-footer__bl-lnk { font-size: var(--text-xs); color: rgba(255,255,255,0.3); transition: color var(--t-fast); }
.rl-footer__bl-lnk:hover { color: rgba(255,255,255,0.65); }

/* === ANIMATIONS === */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }
.reveal-d4 { transition-delay: 0.34s; }
.reveal-d5 { transition-delay: 0.44s; }

/* Hero entrance */
.rl-hero__badge   { animation: fadeInUp 0.6s ease 0.05s both; }
.rl-hero__headline { animation: fadeInUp 0.7s ease 0.18s both; }
.rl-hero__sub     { animation: fadeInUp 0.6s ease 0.30s both; }
.rl-hero__actions { animation: fadeInUp 0.6s ease 0.40s both; }
.rl-hero__trust   { animation: fadeInUp 0.6s ease 0.50s both; }
.hero-visual      { animation: fadeIn  0.9s ease 0.35s both; }

/* === PRODUCT LISTING BANNER (product_content_banner_rl.blade.php) ===
   Matches .rl-product-card's rounding/shadow so the banner slotted into the
   grid doesn't stand out with Bootstrap's sharper default card corners. */
.rl-banner-card {
  background: var(--c-white);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-card);
  overflow: hidden;
}

/* === SYSTEM / ERROR PAGE BANNER (⚡errors/index.blade.php) ===
   Full-bleed variant of .rl-banner-card for maintenance / 404 / server-error
   pages: fixed-height image with a forest-toned scrim and serif title. */
.rl-banner-card--system { position: relative; min-height: 360px; }
.rl-banner-card--system picture { position: absolute; inset: 0; }
.rl-banner-card--system img { width: 100%; height: 100%; object-fit: cover; }
.rl-banner-card__overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: var(--sp-3);
  padding: var(--sp-6);
  background: linear-gradient(180deg, rgba(28,53,16,0.20) 0%, rgba(28,53,16,0.78) 100%);
  text-align: center;
}
.rl-banner-card__title {
  font-family: var(--font-serif);
  font-size: clamp(var(--text-2xl), 4vw, var(--text-4xl));
  font-weight: 700;
  color: var(--c-white);
  margin: 0;
}
.rl-banner-card__text { color: var(--c-sage-light); font-size: var(--text-md); max-width: 560px; }
.rl-banner-card__text p { margin: 0; }
.rl-banner-card--system.rl-banner-card--maintenance { min-height: 600px; }
@media (max-width: 768px) {
  .rl-banner-card--system { min-height: 280px; }
  .rl-banner-card--system.rl-banner-card--maintenance { min-height: 480px; }
}

/* === PRODUCT CATEGORY FACET FILTERS (⚡category_product_filter.blade.php) === */
.rl-filters {
  background: var(--c-white);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-card);
  padding: var(--sp-6);
}
.rl-filters__header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: var(--sp-5);
}
.rl-filters__title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: var(--text-lg);
  color: var(--c-charcoal);
  display: flex; align-items: center; gap: var(--sp-2);
}
.rl-filters__reset {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2rem; height: 2rem;
  border-radius: var(--r-full);
  background: var(--c-sage-bg);
  color: var(--c-danger);
  transition: background var(--t-fast), color var(--t-fast);
}
.rl-filters__reset:hover { background: var(--c-danger); color: var(--c-white); }

.rl-filters__section { margin-bottom: var(--sp-6); }
.rl-filters__section:last-child { margin-bottom: 0; }
.rl-filters__label {
  display: block;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--c-muted);
  margin-bottom: var(--sp-3);
}
.rl-filters__label-unit {
  color: var(--c-gold);
  font-weight: 700;
  text-transform: none;
  letter-spacing: normal;
}
.rl-filters__checkboxes { display: flex; flex-direction: column; gap: var(--sp-2); }
.rl-filters__range-note { font-size: var(--text-xs); color: var(--c-muted); }

/* Sort pills reuse .rl-pill-options/.rl-pill-option but are driven by wire:click
   rather than a wrapped radio input, so the active state is a bolt-on class. */
.rl-pill-option.is-active { background: var(--c-olive); border-color: var(--c-olive); color: var(--c-white); }
.rl-pill-option--sort {
  min-width: 0;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  font-size: var(--text-xs);
}
.rl-pill-option--sort i { font-size: 0.7rem; }

/* === PAGINATION (Frontend/_Sections/Paginator/bootstrap-5.blade.php) === */
.rl-pagination {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-2);
}
.rl-pagination .page-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 var(--sp-2);
  border-radius: var(--r-full);
  border: 1.5px solid var(--c-beige);
  background: var(--c-white);
  color: var(--c-charcoal);
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
  transition: background var(--t-base), color var(--t-base), border-color var(--t-base);
}
.rl-pagination a.page-link:hover { background: var(--c-sage-bg); border-color: var(--c-sage-light); color: var(--c-olive); }
.rl-pagination .page-item.active .page-link { background: var(--c-olive); border-color: var(--c-olive); color: var(--c-white); }
.rl-pagination .page-item.disabled .page-link {
  background: var(--c-ivory);
  border-color: var(--c-beige);
  color: var(--c-light);
  opacity: 0.7;
  cursor: default;
}
.rl-pagination__summary { font-size: var(--text-sm); color: var(--c-muted); margin: 0; }

/* === SEARCH RESULTS PAGE (Frontend/Search) === */
.rl-search-page__group { margin-bottom: var(--sp-12); }
.rl-search-page__group-head {
  display: flex;
  align-items: baseline;
  gap: var(--sp-3);
  margin-bottom: var(--sp-6);
}
.rl-search-page__group-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: var(--text-2xl);
  color: var(--c-charcoal);
  text-transform: capitalize;
  margin: 0;
}
.rl-search-page__group-head .rl-search__all-count { color: var(--c-olive); }

.rl-result-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--c-white);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-card);
  overflow: hidden;
  color: inherit;
  transition: transform var(--t-base), box-shadow var(--t-base);
}
.rl-result-card:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); color: inherit; }
.rl-result-card__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--c-ivory); }
.rl-result-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-slow); }
.rl-result-card:hover .rl-result-card__media img { transform: scale(1.05); }
.rl-result-card__body { flex: 1; padding: var(--sp-4); display: flex; flex-direction: column; gap: var(--sp-2); }
.rl-result-card__title { font-family: var(--font-serif); font-weight: 700; font-size: var(--text-md); color: var(--c-charcoal); }
.rl-result-card__text {
  font-size: var(--text-sm);
  color: var(--c-muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.rl-result-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-4);
  border-top: 1px solid var(--c-beige);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--c-olive);
}
.rl-result-card:hover .rl-result-card__footer { color: var(--c-forest); }

.rl-faq { display: flex; flex-direction: column; gap: var(--sp-3); }
.rl-faq__item { background: var(--c-white); border-radius: var(--r-lg); box-shadow: var(--sh-card); overflow: hidden; }
.rl-faq__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-5);
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: var(--text-md);
  color: var(--c-charcoal);
  text-align: left;
}
.rl-faq__question-sub {
  display: block;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: var(--text-sm);
  color: var(--c-muted);
  margin-top: 2px;
}
.rl-faq__question i { flex-shrink: 0; color: var(--c-olive); transition: transform var(--t-base); }
.rl-faq__question[aria-expanded="true"] i { transform: rotate(180deg); }
.rl-faq__answer { padding: 0 var(--sp-5) var(--sp-5); font-size: var(--text-sm); color: var(--c-muted); line-height: 1.7; }

/* === EVENTS CALENDAR (Booking/Calendar/main.blade.php + events_calendar.blade.php) === */
.rl-cal { margin-bottom: var(--sp-16); }

.rl-cal__head { text-align: center; margin-bottom: var(--sp-8); }
.rl-cal__title {
  font-family: var(--font-serif);
  font-size: clamp(var(--text-2xl), 4vw, var(--text-3xl));
  font-weight: 700;
  color: var(--c-charcoal);
  letter-spacing: -0.02em;
  margin-top: var(--sp-2);
}
.rl-cal__title .rl-cal__year { color: var(--c-olive); font-weight: 400; }

.rl-cal__yearnav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  flex-wrap: wrap;
  margin-bottom: var(--sp-10);
}
.rl-cal__yearlink {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  padding: 0.5rem 1.1rem;
  border-radius: var(--r-full);
  border: 1.5px solid var(--c-beige);
  background: var(--c-white);
  color: var(--c-charcoal);
  font-weight: 600;
  font-size: var(--text-sm);
  flex-shrink: 0;
  transition: border-color var(--t-fast), color var(--t-fast), background var(--t-fast);
}
.rl-cal__yearlink:hover { border-color: var(--c-olive); color: var(--c-olive); background: var(--c-sage-bg); }

.rl-cal__months { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-2); }
.rl-cal__month-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  padding: 0.45rem 0.9rem;
  border-radius: var(--r-full);
  border: 1.5px solid var(--c-beige);
  background: var(--c-white);
  color: var(--c-charcoal);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  transition: all var(--t-fast);
}
.rl-cal__month-btn:hover { border-color: var(--c-olive); color: var(--c-olive); }
.rl-cal__month-btn.is-active {
  background: var(--c-olive);
  border-color: var(--c-olive);
  color: var(--c-white);
  box-shadow: 0 2px 10px rgba(58,94,37,0.28);
}

.rl-cal__month-head { margin-bottom: var(--sp-5); }
.rl-cal__month-name {
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--c-charcoal);
}

.rl-cal__weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: var(--sp-2);
  margin-bottom: var(--sp-2);
}
.rl-cal__weekday {
  text-align: center;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-muted);
  padding-bottom: var(--sp-2);
}
.rl-cal__weekday--weekend { color: var(--c-danger); }

.rl-cal__days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: var(--sp-2);
  margin-bottom: var(--sp-10);
}

.rl-cal__day {
  position: relative;
  min-height: 92px;
  padding: var(--sp-2);
  background: var(--c-white);
  border: 1.5px solid var(--c-beige);
  border-radius: var(--r-md);
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.rl-cal__day--empty { background: transparent; border-color: transparent; }
.rl-cal__day.is-today { border-color: var(--c-forest); box-shadow: 0 0 0 1px var(--c-forest); }
.rl-cal__day.is-past:not(.is-today) { background: var(--c-ivory); }
.rl-cal__day.is-past .rl-cal__day-num { color: var(--c-light); }
.rl-cal__day.is-closed { background: rgba(163,55,43,0.06); border-color: rgba(163,55,43,0.18); }
.rl-cal__day.has-event:not(.is-closed) { background: var(--c-sage-bg); border-color: var(--c-sage-light); }

.rl-cal__day-num { font-weight: 700; font-size: var(--text-sm); color: var(--c-charcoal); }

.rl-cal__day-tag {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--c-danger);
}

.rl-cal__events { display: flex; flex-direction: column; gap: 2px; margin-top: auto; }
.rl-cal__event {
  display: block;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--c-olive);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-decoration: underline !important;
  text-underline-offset: 2px;
  transition: color var(--t-fast);
  cursor: pointer;
}
.rl-cal__event:hover { color: var(--c-forest); }
.rl-cal__event i { margin-right: 3px; }

/* Modal (events_calendar.blade.php) */
.rl-cal-modal .modal-content { border-radius: var(--r-xl); overflow: hidden; border: none; box-shadow: var(--sh-xl); }
.rl-cal-modal .modal-header { background: var(--c-forest); border: none; padding: var(--sp-5) var(--sp-6); }
.rl-cal-modal .modal-title { font-family: var(--font-serif); font-weight: 700; color: var(--c-white); font-size: var(--text-md); }
.rl-cal-modal .modal-body { padding: var(--sp-6); }
.rl-cal-modal .show-now-link {
  color: var(--c-forest);
  font-weight: 600;
  text-decoration: underline !important;
  text-underline-offset: 2px;
}
.rl-cal-modal .show-now-link:hover,
.rl-cal-modal .show-now-link:focus { color: var(--c-olive); }

@media (max-width: 700px) {
  .rl-cal__day { min-height: 64px; padding: 6px; }
  .rl-cal__day-num { font-size: var(--text-xs); }
  .rl-cal__event { font-size: 0.65rem; }
  .rl-cal__month-name { font-size: var(--text-lg); }
  .rl-cal__days, .rl-cal__weekdays { gap: 4px; }
}

/* === BOOKING FORM (Booking/form.blade.php) === */
.rl-book { padding-top: var(--sp-8); padding-bottom: var(--sp-16); }

.rl-book__title {
  font-family: var(--font-serif);
  font-size: clamp(var(--text-xl), 3vw, var(--text-2xl));
  font-weight: 700;
  color: var(--c-charcoal);
  margin: var(--sp-1) 0 var(--sp-4);
}

.rl-book__subtitle {
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--c-charcoal);
}

.rl-book__date-row {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  flex-wrap: wrap;
}
.rl-book__date-value { font-size: var(--text-md); font-weight: 700; color: var(--c-forest); }
.rl-book__date-value.is-past { color: var(--c-danger); }

.rl-book__times { margin-top: var(--sp-3); }
.rl-pill-option.is-booked {
  opacity: 0.45;
  cursor: not-allowed;
  text-decoration: line-through;
}
.rl-pill-option.is-booked:hover { border-color: var(--c-beige); color: var(--c-brown); }

.rl-book__image { border-radius: var(--r-lg); overflow: hidden; background: var(--c-ivory); margin-bottom: var(--sp-5); }

@media (max-width: 992px) {
  .rl-book__image { max-width: 320px; margin-left: auto; margin-right: auto; }
}

/* === EVENT DETAIL PAGE (Booking/show.blade.php) === */
.rl-event-media { border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--sh-card); background: var(--c-ivory); }

.rl-event-status {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 0.35rem 0.875rem;
  border-radius: var(--r-full);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: var(--sp-4);
}
.rl-event-status--active { background: var(--c-sage-bg); border: 1px solid var(--c-sage-light); color: var(--c-olive); }
.rl-event-status--inactive { background: rgba(163,55,43,0.08); border: 1px solid rgba(163,55,43,0.2); color: var(--c-danger); }
.rl-event-status-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex-shrink: 0; }

.rl-event-dates { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin: var(--sp-4) 0; }
.rl-event-dates__item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: var(--sp-3) var(--sp-4);
  background: var(--c-ivory);
  border-radius: var(--r-md);
  min-width: 8rem;
}
.rl-event-dates__label {
  font-size: var(--text-2xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-muted);
}
.rl-event-dates__value { font-weight: 700; color: var(--c-charcoal); font-size: var(--text-md); }

.rl-event-content { color: var(--c-brown); line-height: 1.7; }
.rl-event-content p:last-child { margin-bottom: 0; }

/* === RESPONSIVE === */
@media (max-width: 1100px) {
  .rl-footer__main   { grid-template-columns: 1fr 1fr 1fr; }
  .rl-footer__brand  { grid-column: 1 / -1; flex-direction: row; align-items: flex-start; flex-wrap: wrap; gap: var(--sp-8); }
  .rl-footer__nl     { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .rl-hero__grid { grid-template-columns: 1fr; gap: var(--sp-12); }
  .rl-hero__right { order: -1; }
  .hero-visual { max-width: 480px; margin: 0 auto; }
  .rl-hiw__steps { grid-template-columns: repeat(2, 1fr); }
  .rl-hiw__steps::before { display: none; }
  .testi-card { width: calc(50% - var(--sp-3)); }
  .rl-hiw__aside { flex-direction: column; text-align: center; padding: var(--sp-8); }
  .gallery-card { width: calc(50% - var(--sp-3)); }
}

@media (max-width: 600px) {
  :root { --pad: 1.25rem; }
  .rl-features__grid    { grid-template-columns: repeat(auto-fit, minmax(120px, 160px)); }
  .testi-card           { width: 80vw; min-width: 240px; }
  .rl-hiw__steps        { grid-template-columns: 1fr; }
  .rl-cta__form         { flex-direction: column; }
  .rl-footer__main      { grid-template-columns: 1fr; }
  .rl-hero__actions     { flex-direction: column; align-items: flex-start; }
  .rl-hero__trust       { flex-direction: column; align-items: flex-start; gap: var(--sp-3); }
  .gallery-card         { width: 80vw; min-width: 260px; }
  .rl-footer__bottom    { flex-direction: column; align-items: flex-start; }
  .rl-hiw__aside        { border-radius: var(--r-lg); }
}
