
/* V41: Premium Organic Gabrist Theme
   A stronger visual refresh layered after the original stylesheet.
   Palette: deep emerald + warm cream + harvest gold.
*/

:root {
  --bg: #f7f2e7;
  --off-white: #f7f2e7;
  --surface: #fffaf0;
  --surface-2: #f0eadc;
  --ink: #14271f;
  --text: #52645a;
  --muted: #75847b;
  --green: #0d7f63;
  --green-dark: #064b3c;
  --green-soft: #e7f4e6;
  --mint: #dcefd7;
  --gold: #d99632;
  --gold-soft: #fff0c9;
  --border: rgba(13, 127, 99, .16);
  --shadow: 0 22px 60px rgba(45, 67, 51, .13);
  --shadow-strong: 0 32px 90px rgba(22, 54, 43, .22);
  --radius-xl: 34px;
  --radius-lg: 24px;
}

body[data-theme="dark"] {
  --bg: #07100d;
  --off-white: #07100d;
  --surface: #0e1b16;
  --surface-2: #12241d;
  --ink: #f5fff8;
  --text: #bfd0c7;
  --muted: #8fa69a;
  --green: #43d5ad;
  --green-dark: #dffdf4;
  --green-soft: #102b24;
  --mint: #0f261f;
  --gold: #efb55f;
  --gold-soft: #2e2615;
  --border: rgba(124, 230, 199, .17);
  --shadow: 0 24px 70px rgba(0,0,0,.35);
  --shadow-strong: 0 36px 100px rgba(0,0,0,.48);
}

html {
  scroll-behavior: smooth;
}

body {
  background:
    radial-gradient(circle at 78% 2%, rgba(13,127,99,.13), transparent 29%),
    radial-gradient(circle at 4% 18%, rgba(217,150,50,.13), transparent 27%),
    linear-gradient(180deg, var(--bg) 0%, #fffdf7 45%, var(--bg) 100%);
  color: var(--ink);
}

body[data-theme="dark"] {
  background:
    radial-gradient(circle at 78% 2%, rgba(67,213,173,.16), transparent 29%),
    radial-gradient(circle at 4% 18%, rgba(239,181,95,.09), transparent 27%),
    linear-gradient(180deg, #07100d 0%, #0a1511 45%, #07100d 100%) !important;
}

/* soft botanical texture */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .32;
  background-image:
    radial-gradient(circle at 12px 12px, rgba(13,127,99,.10) 1.2px, transparent 1.6px),
    linear-gradient(135deg, rgba(217,150,50,.045) 25%, transparent 25%),
    linear-gradient(225deg, rgba(13,127,99,.04) 25%, transparent 25%);
  background-size: 34px 34px, 42px 42px, 42px 42px;
}

body[data-theme="dark"]::before {
  opacity: .12;
}

/* Premium loader */
.site-loader {
  background:
    radial-gradient(circle at 50% 42%, rgba(13,127,99,.22), transparent 34%),
    linear-gradient(135deg, #fbf3dc, #eaf5e5 52%, #fff9e9);
}

body[data-theme="dark"] .site-loader {
  background:
    radial-gradient(circle at 50% 42%, rgba(67,213,173,.20), transparent 34%),
    linear-gradient(135deg, #07100d, #0c1d17 52%, #11140d);
}

.site-loader .loader-card {
  border-radius: 38px;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(13,127,99,.20);
  box-shadow: 0 30px 90px rgba(13, 90, 72, .24);
}

body[data-theme="dark"] .site-loader .loader-card {
  background: rgba(12,27,22,.76);
}

.loader-ring {
  border-top-color: var(--gold);
  border-inline-end-color: var(--green);
}

/* Header: elegant glass bar */
.site-header {
  top: 12px;
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
  border-radius: 999px;
  background: rgba(255,250,240,.78) !important;
  border: 1px solid rgba(13,127,99,.14);
  box-shadow: 0 18px 48px rgba(45, 67, 51, .11);
  backdrop-filter: blur(20px);
}

body[data-theme="dark"] .site-header {
  background: rgba(9, 22, 18, .76) !important;
  border-color: rgba(124,230,199,.14);
  box-shadow: 0 18px 54px rgba(0,0,0,.42);
}

.nav {
  min-height: 74px;
}

.brand {
  padding-inline-start: 4px;
}

.brand-mark {
  background:
    linear-gradient(135deg, #fff, var(--gold-soft));
  border: 1px solid rgba(13,127,99,.12);
}

body[data-theme="dark"] .brand-mark {
  background: #10231f;
  border-color: rgba(124,230,199,.14);
}

.brand strong {
  letter-spacing: -.02em;
}

.brand small {
  color: var(--muted);
}

.main-nav {
  background: rgba(255,255,255,.42);
  border: 1px solid rgba(13,127,99,.10);
  border-radius: 999px;
  padding: 5px;
}

body[data-theme="dark"] .main-nav {
  background: rgba(255,255,255,.04);
  border-color: rgba(124,230,199,.10);
}

.main-nav a {
  padding: 9px 13px;
  border-radius: 999px;
}

.main-nav a:hover {
  background: var(--green-soft);
  color: var(--green-dark);
}

.main-nav a::after,
.footer nav a::after {
  display: none;
}

.header-phone,
.language-button,
.theme-toggle {
  border-radius: 999px;
  border-color: rgba(13,127,99,.15);
  background: rgba(255,255,255,.56);
}

body[data-theme="dark"] .header-phone,
body[data-theme="dark"] .language-button,
body[data-theme="dark"] .theme-toggle {
  background: rgba(255,255,255,.05);
  border-color: rgba(124,230,199,.15);
}

/* Hero: stronger editorial layout */
.hero {
  margin-top: -86px;
  padding-top: 164px;
  min-height: 760px;
  background:
    radial-gradient(circle at 75% 25%, rgba(13,127,99,.18), transparent 32%),
    radial-gradient(circle at 18% 75%, rgba(217,150,50,.16), transparent 30%),
    linear-gradient(135deg, #fff9ea 0%, #edf6e6 52%, #f9f0dc 100%) !important;
  overflow: hidden;
}

body[data-theme="dark"] .hero {
  background:
    radial-gradient(circle at 75% 25%, rgba(67,213,173,.16), transparent 32%),
    radial-gradient(circle at 18% 75%, rgba(239,181,95,.09), transparent 30%),
    linear-gradient(135deg, #08120f 0%, #0d211a 52%, #11140d 100%) !important;
}

.hero::before {
  width: 740px;
  height: 740px;
  inset-inline-end: -210px;
  top: 70px;
  background:
    radial-gradient(circle, rgba(13,127,99,.22) 0 32%, transparent 33% 100%),
    repeating-conic-gradient(from 0deg, rgba(255,255,255,.34) 0deg 8deg, transparent 8deg 18deg);
  opacity: .65;
  border-radius: 45% 55% 50% 50%;
  filter: blur(.1px);
}

body[data-theme="dark"] .hero::before {
  background:
    radial-gradient(circle, rgba(67,213,173,.12) 0 32%, transparent 33% 100%),
    repeating-conic-gradient(from 0deg, rgba(255,255,255,.05) 0deg 8deg, transparent 8deg 18deg);
  opacity: .85;
}

.hero::after {
  width: 620px;
  height: 620px;
  bottom: -320px;
  background: radial-gradient(circle, rgba(217,150,50,.20), transparent 66%);
}

.hero-content,
.hero-grid {
  position: relative;
  z-index: 1;
}

.hero h1,
.blog-hero h1,
.error-copy h1,
.section-heading h2 {
  color: var(--ink);
  letter-spacing: -.055em;
}

.hero h1 {
  font-size: clamp(2.55rem, 6.2vw, 5.35rem);
  line-height: 1.12;
}

.hero p {
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  color: var(--text);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  border-radius: 999px;
  background: rgba(13,127,99,.10);
  color: var(--green-dark);
  border: 1px solid rgba(13,127,99,.14);
  font-weight: 900;
}

body[data-theme="dark"] .eyebrow {
  background: rgba(67,213,173,.10);
  border-color: rgba(124,230,199,.14);
  color: var(--green-dark);
}

.hero-actions {
  gap: 14px;
}

/* New button language */
.btn {
  border-radius: 999px;
  font-weight: 900;
  letter-spacing: -.01em;
}

.btn-primary,
.card-actions .request,
.mobile-actions .main-action {
  background:
    linear-gradient(135deg, var(--green-dark), var(--green));
  color: #fff !important;
  border: 0;
  box-shadow: 0 16px 34px rgba(13,127,99,.27);
}

.btn-primary:hover,
.card-actions .request:hover,
.mobile-actions .main-action:hover {
  box-shadow: 0 24px 48px rgba(13,127,99,.32);
}

.btn-secondary,
.btn-outline,
.card-actions button:not(.request) {
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(13,127,99,.16);
  color: var(--green-dark);
  backdrop-filter: blur(14px);
}

body[data-theme="dark"] .btn-secondary,
body[data-theme="dark"] .btn-outline,
body[data-theme="dark"] .card-actions button:not(.request) {
  background: rgba(255,255,255,.06);
  border-color: rgba(124,230,199,.16);
  color: var(--green-dark);
}

/* Hero visual bottle zone */
.hero-visual,
.hero-card,
.hero-info {
  border-radius: var(--radius-xl);
}

.hero-card,
.hero-info {
  background: rgba(255,250,240,.66);
  border: 1px solid rgba(13,127,99,.14);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

body[data-theme="dark"] .hero-card,
body[data-theme="dark"] .hero-info {
  background: rgba(14,27,22,.70);
  border-color: rgba(124,230,199,.13);
}

.product-hero {
  filter: drop-shadow(0 30px 40px rgba(13, 74, 57, .20));
}

body[data-theme="dark"] .product-hero {
  filter: drop-shadow(0 30px 40px rgba(0,0,0,.36));
}

/* Section surfaces */
.section,
.products,
.consultation,
.order,
.about,
.knowledge-teaser,
.contact {
  position: relative;
}

.section-heading {
  max-width: 820px;
}

.section-heading h2 {
  font-size: clamp(1.8rem, 3.6vw, 3.1rem);
}

.section-heading p {
  color: var(--text);
}

/* Premium cards */
.feature-grid article,
.product-card,
.teaser-article,
.standard-local-card,
.blog-card,
.panel-form,
.order-form,
.contact-card,
.article-wrap,
.toc,
.share-card,
.related-card,
.author-card,
.error-plant-card,
.sender-choice-dialog {
  background:
    linear-gradient(180deg, rgba(255,255,255,.86), rgba(255,250,240,.74));
  border: 1px solid rgba(13,127,99,.14);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

body[data-theme="dark"] .feature-grid article,
body[data-theme="dark"] .product-card,
body[data-theme="dark"] .teaser-article,
body[data-theme="dark"] .standard-local-card,
body[data-theme="dark"] .blog-card,
body[data-theme="dark"] .panel-form,
body[data-theme="dark"] .order-form,
body[data-theme="dark"] .contact-card,
body[data-theme="dark"] .article-wrap,
body[data-theme="dark"] .toc,
body[data-theme="dark"] .share-card,
body[data-theme="dark"] .related-card,
body[data-theme="dark"] .author-card,
body[data-theme="dark"] .error-plant-card,
body[data-theme="dark"] .sender-choice-dialog {
  background:
    linear-gradient(180deg, rgba(18,36,29,.86), rgba(11,21,18,.78));
  border-color: rgba(124,230,199,.13);
}

.feature-grid article:hover,
.product-card:hover,
.teaser-article:hover,
.standard-local-card:hover,
.blog-card:hover {
  transform: translateY(-9px);
  box-shadow: var(--shadow-strong);
}

/* product grid becomes more luxurious */
.product-card {
  overflow: hidden;
  position: relative;
}

.product-card::before {
  content: "";
  position: absolute;
  inset: 0;
  height: 44%;
  background:
    radial-gradient(circle at 72% 18%, rgba(13,127,99,.13), transparent 48%),
    linear-gradient(135deg, rgba(255,240,201,.42), transparent);
  pointer-events: none;
}

body[data-theme="dark"] .product-card::before {
  background:
    radial-gradient(circle at 72% 18%, rgba(67,213,173,.11), transparent 48%),
    linear-gradient(135deg, rgba(239,181,95,.06), transparent);
}

.product-card > * {
  position: relative;
  z-index: 1;
}

.product-image {
  border-radius: 22px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 45%, rgba(13,127,99,.12), transparent 60%),
    #fbf8ee;
}

body[data-theme="dark"] .product-image {
  background:
    radial-gradient(circle at 50% 45%, rgba(67,213,173,.12), transparent 60%),
    #10231f;
}

.product-card h3 {
  color: var(--ink);
}

.tag,
.product-tag,
.category-pill,
.blog-tag {
  background: var(--gold-soft);
  color: #754712;
  border: 1px solid rgba(217,150,50,.22);
  border-radius: 999px;
}

body[data-theme="dark"] .tag,
body[data-theme="dark"] .product-tag,
body[data-theme="dark"] .category-pill,
body[data-theme="dark"] .blog-tag {
  color: #ffd89a;
  background: rgba(239,181,95,.10);
  border-color: rgba(239,181,95,.18);
}

/* Filters */
.filter {
  background: rgba(255,255,255,.66);
  border-color: rgba(13,127,99,.16);
}

.filter.active {
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  color: #fff;
  box-shadow: 0 12px 28px rgba(13,127,99,.22);
}

/* Forms: more premium input surfaces */
label {
  color: var(--ink);
}

input:not([type="checkbox"]),
textarea,
select {
  border-radius: 16px !important;
  background: rgba(255,255,255,.74) !important;
  border: 1px solid rgba(13,127,99,.18) !important;
  color: var(--ink) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6);
}

body[data-theme="dark"] input:not([type="checkbox"]),
body[data-theme="dark"] textarea,
body[data-theme="dark"] select {
  background: rgba(255,255,255,.055) !important;
  border-color: rgba(124,230,199,.16) !important;
  color: #f5fff8 !important;
}

input:not([type="checkbox"]):focus,
textarea:focus,
select:focus {
  border-color: var(--green) !important;
  box-shadow: 0 0 0 4px rgba(13,127,99,.10) !important;
}

body[data-theme="dark"] input:not([type="checkbox"]):focus,
body[data-theme="dark"] textarea:focus,
body[data-theme="dark"] select:focus {
  box-shadow: 0 0 0 4px rgba(67,213,173,.12) !important;
}

.form-note,
.privacy,
.auto-sender-status {
  color: var(--muted) !important;
}

/* Dialogs */
.product-dialog,
.sender-choice-dialog {
  border-radius: 34px !important;
}

.product-dialog::backdrop,
.sender-choice-dialog::backdrop {
  background: rgba(7,16,13,.72);
  backdrop-filter: blur(8px);
}

.dialog-content {
  background: var(--surface);
}

body[data-theme="dark"] .dialog-content {
  background: var(--surface);
}

.dialog-close,
.sender-dialog-close {
  border: 1px solid rgba(13,127,99,.12);
}

/* Blog and article hero */
.blog-hero,
.article-hero {
  background:
    radial-gradient(circle at 82% 18%, rgba(13,127,99,.15), transparent 30%),
    linear-gradient(135deg, #fff8e6, #edf6e6) !important;
}

body[data-theme="dark"] .blog-hero,
body[data-theme="dark"] .article-hero {
  background:
    radial-gradient(circle at 82% 18%, rgba(67,213,173,.13), transparent 30%),
    linear-gradient(135deg, #08120f, #0d211a) !important;
}

.blog-card-image {
  border-radius: 22px;
  overflow: hidden;
}

/* Footer */
.footer {
  margin-top: 36px;
  background:
    linear-gradient(135deg, #073d32, #0d7f63) !important;
  border-top: 0;
  color: rgba(255,255,255,.90);
  border-radius: 38px 38px 0 0;
  overflow: hidden;
}

.footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 20%, rgba(255,255,255,.13), transparent 28%),
    radial-gradient(circle at 88% 90%, rgba(217,150,50,.20), transparent 32%);
  pointer-events: none;
}

.footer * {
  position: relative;
  z-index: 1;
}

.footer strong,
.footer a,
.footer-phone a {
  color: #fff !important;
}

.footer p,
.footer span,
.copyright {
  color: rgba(255,255,255,.76) !important;
}

/* 404 style better */
.error-page {
  background:
    radial-gradient(circle at 70% 28%, rgba(13,127,99,.16), transparent 32%),
    linear-gradient(135deg, #fff8e6, #edf6e6) !important;
}

body[data-theme="dark"] .error-page {
  background:
    radial-gradient(circle at 70% 28%, rgba(67,213,173,.12), transparent 32%),
    linear-gradient(135deg, #08120f, #0d211a) !important;
}

/* Mobile treatment */
@media (max-width: 980px) {
  .site-header {
    top: 8px;
    width: min(100% - 18px, 1180px);
    border-radius: 28px;
  }

  .main-nav {
    border-radius: 22px;
    background: var(--surface);
  }

  body[data-theme="dark"] .main-nav {
    background: var(--surface);
  }

  .hero {
    margin-top: -78px;
    padding-top: 148px;
  }
}

@media (max-width: 720px) {
  body {
    background:
      radial-gradient(circle at 100% 0%, rgba(13,127,99,.14), transparent 30%),
      var(--bg);
  }

  .site-header {
    border-radius: 24px;
  }

  .nav {
    min-height: 68px;
  }

  .hero {
    min-height: auto;
  }

  .hero h1 {
    font-size: clamp(2.18rem, 11vw, 3.45rem);
  }

  .hero-actions .btn,
  .btn {
    min-height: 48px;
  }

  .feature-grid article,
  .product-card,
  .teaser-article,
  .standard-local-card,
  .blog-card,
  .panel-form,
  .order-form {
    border-radius: 22px;
  }

  .footer {
    border-radius: 30px 30px 0 0;
  }
}


/* V41 interaction polish */
.site-header.is-scrolled {
  box-shadow: 0 18px 56px rgba(22, 54, 43, .18);
  transform: translateY(-2px);
}

body[data-theme="dark"] .site-header.is-scrolled {
  box-shadow: 0 22px 66px rgba(0,0,0,.55);
}

.premium-cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 0;
  width: 340px;
  height: 340px;
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(13,127,99,.075), transparent 65%);
  mix-blend-mode: multiply;
  will-change: transform;
}

body[data-theme="dark"] .premium-cursor-glow {
  background: radial-gradient(circle, rgba(67,213,173,.065), transparent 65%);
  mix-blend-mode: screen;
}

.product-card::after,
.blog-card::after,
.feature-grid article::after,
.standard-local-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity .22s ease;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.55), transparent 130px);
}

body[data-theme="dark"] .product-card::after,
body[data-theme="dark"] .blog-card::after,
body[data-theme="dark"] .feature-grid article::after,
body[data-theme="dark"] .standard-local-card::after {
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(124,230,199,.11), transparent 130px);
}

.product-card:hover::after,
.blog-card:hover::after,
.feature-grid article:hover::after,
.standard-local-card:hover::after {
  opacity: 1;
}

.product-card > *,
.blog-card > *,
.feature-grid article > *,
.standard-local-card > * {
  position: relative;
  z-index: 1;
}

@media (max-width: 900px), (pointer: coarse) {
  .premium-cursor-glow {
    display: none;
  }
}


/* V42: premium theme fixes based on visual QA screenshots */

/* Desktop header should stay compact and single-line */
@media (min-width: 981px) {
  .site-header {
    max-width: 1480px;
  }

  .nav {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: clamp(8px, 1vw, 16px);
    min-height: 68px;
  }

  .brand {
    flex: 0 0 auto;
    min-width: max-content;
  }

  .brand strong,
  .brand small,
  .main-nav a,
  .header-phone,
  .language-current,
  .theme-toggle-text {
    white-space: nowrap;
  }

  .main-nav {
    flex: 1 1 auto;
    min-width: 0;
    justify-content: center;
    gap: 2px;
    padding: 4px;
  }

  .main-nav a {
    line-height: 1.1;
    font-size: clamp(.78rem, .86vw, .96rem);
    padding: 9px clamp(8px, .9vw, 13px);
  }

  .language-switch,
  .theme-toggle,
  .header-phone {
    flex: 0 0 auto;
  }

  .header-phone {
    font-size: clamp(.78rem, .88vw, .95rem);
    padding-inline: 13px;
  }

  .language-button,
  .theme-toggle {
    padding-inline: 12px;
  }

  .brand small {
    max-width: 210px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* Contact CTA card: keep all text visible and balanced */
.contact-inner {
  background:
    radial-gradient(circle at 88% 10%, rgba(255,255,255,.13), transparent 32%),
    linear-gradient(135deg, #0d7f63, #0a785f) !important;
  border: 0 !important;
  color: #fff;
  box-shadow: 0 28px 72px rgba(13, 127, 99, .22);
}

body[data-theme="dark"] .contact-inner {
  background:
    radial-gradient(circle at 88% 10%, rgba(255,255,255,.09), transparent 32%),
    linear-gradient(135deg, #0b4235, #0a2f28) !important;
  box-shadow: 0 28px 82px rgba(0,0,0,.38);
}

.contact-inner h2,
.contact-inner p,
.contact-inner .large-phone,
.contact-inner .cta-email-under-phone {
  color: #fff !important;
}

.contact-inner p {
  opacity: .86;
}

.contact-inner > .btn-primary {
  background: #fff !important;
  color: #064b3c !important;
  min-width: 210px;
  justify-content: center;
  border: 0 !important;
  box-shadow: 0 14px 32px rgba(0,0,0,.12) !important;
}

.contact-inner > .btn-primary:hover {
  background: #fff8e6 !important;
  color: #064b3c !important;
  transform: translateY(-2px);
}

.cta-contact-stack .btn-follow {
  background: #e7f4e6 !important;
  color: #064b3c !important;
  border-color: transparent !important;
  box-shadow: 0 10px 26px rgba(0,0,0,.10);
}

.cta-contact-stack .btn-follow:hover {
  background: #fff8e6 !important;
}

/* Make glass cards less transparent so background bands do not visually cut through them */
.feature-grid article,
.product-card,
.teaser-article,
.standard-local-card,
.blog-card,
.panel-form,
.order-form,
.contact-card,
.article-wrap,
.toc,
.share-card,
.related-card,
.author-card,
.error-plant-card {
  background:
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,250,240,.96)) !important;
  backdrop-filter: blur(8px);
}

body[data-theme="dark"] .feature-grid article,
body[data-theme="dark"] .product-card,
body[data-theme="dark"] .teaser-article,
body[data-theme="dark"] .standard-local-card,
body[data-theme="dark"] .blog-card,
body[data-theme="dark"] .panel-form,
body[data-theme="dark"] .order-form,
body[data-theme="dark"] .contact-card,
body[data-theme="dark"] .article-wrap,
body[data-theme="dark"] .toc,
body[data-theme="dark"] .share-card,
body[data-theme="dark"] .related-card,
body[data-theme="dark"] .author-card,
body[data-theme="dark"] .error-plant-card {
  background:
    linear-gradient(180deg, rgba(18,36,29,.98), rgba(11,21,18,.96)) !important;
}

/* Standards/trust cards need cleaner logo boxes */
.standard-local-card {
  overflow: hidden;
}

.standard-local-card img {
  background: #fff;
  border-radius: 16px;
  padding: 12px;
  object-fit: contain;
  box-shadow: inset 0 0 0 1px rgba(13,127,99,.08);
}

body[data-theme="dark"] .standard-local-card img {
  background: rgba(255,255,255,.94);
}

/* Better spacing where lower feature cards start */
.feature-grid,
.standards-grid,
.local-grid {
  position: relative;
  z-index: 2;
}

/* Keep mobile menu normal; do not force one-line nav on small screens */
@media (max-width: 980px) {
  .main-nav a {
    white-space: normal;
  }

  .contact-inner {
    text-align: center;
  }

  .contact-inner > .btn-primary {
    width: 100%;
    min-width: 0;
  }
}


/* V43: remove horizontal color band between standards and feature cards */
.standards-section {
  background:
    radial-gradient(circle at 78% 8%, rgba(13,127,99,.075), transparent 30%),
    linear-gradient(180deg, #fbfffc 0%, #f6fbf7 100%) !important;
  padding-bottom: 46px !important;
}

.features {
  margin-top: 0 !important;
  padding: 18px 24px 76px !important;
  background:
    radial-gradient(circle at 18% 100%, rgba(13,127,99,.055), transparent 30%),
    linear-gradient(180deg, #f6fbf7 0%, #fbfffc 100%) !important;
  position: relative;
  z-index: 3;
}

.features::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: -46px;
  height: 92px;
  background: linear-gradient(180deg, rgba(246,251,247,0), #f6fbf7 42%, #f6fbf7 100%);
  pointer-events: none;
  z-index: 0;
}

.features .feature-grid {
  position: relative;
  z-index: 1;
}

.features + .knowledge-teaser,
.features + .section {
  margin-top: 0 !important;
}

body[data-theme="dark"] .standards-section {
  background:
    radial-gradient(circle at 78% 8%, rgba(67,213,173,.08), transparent 30%),
    linear-gradient(180deg, #07100d 0%, #0a1511 100%) !important;
}

body[data-theme="dark"] .features {
  background:
    radial-gradient(circle at 18% 100%, rgba(67,213,173,.055), transparent 30%),
    linear-gradient(180deg, #0a1511 0%, #07100d 100%) !important;
}

body[data-theme="dark"] .features::before {
  background: linear-gradient(180deg, rgba(10,21,17,0), #0a1511 42%, #0a1511 100%);
}

/* Make the two rows feel like one designed block */
.standards-local-grid {
  margin-bottom: 0 !important;
}

.feature-grid article {
  background: #ffffff !important;
  box-shadow: 0 22px 58px rgba(22,54,43,.10) !important;
}

body[data-theme="dark"] .feature-grid article {
  background: #0e1b16 !important;
  box-shadow: 0 24px 70px rgba(0,0,0,.36) !important;
}

@media (max-width: 720px) {
  .standards-section {
    padding-bottom: 28px !important;
  }

  .features {
    padding: 18px 16px 56px !important;
  }

  .features::before {
    top: -30px;
    height: 60px;
  }
}


/* V45: farm image only for homepage hero */
.hero {
  background:
    linear-gradient(90deg, rgba(255,249,234,.86) 0%, rgba(255,249,234,.76) 36%, rgba(237,246,230,.58) 64%, rgba(255,240,201,.44) 100%),
    url("backgrounds/farm-golden-hero.png") center center / cover no-repeat !important;
}

body[data-theme="dark"] .hero {
  background:
    linear-gradient(90deg, rgba(7,16,13,.88) 0%, rgba(7,16,13,.80) 40%, rgba(13,33,26,.66) 68%, rgba(17,20,13,.62) 100%),
    url("backgrounds/farm-golden-hero.png") center center / cover no-repeat !important;
}

/* keep text readable on the photo */
.hero-copy,
.hero-content {
  position: relative;
  z-index: 2;
}

.hero-copy::before {
  content: "";
  position: absolute;
  inset: -22px -26px;
  z-index: -1;
  border-radius: 32px;
  background: rgba(255,250,240,.42);
  border: 1px solid rgba(255,255,255,.34);
  backdrop-filter: blur(2px);
  pointer-events: none;
}

body[data-theme="dark"] .hero-copy::before {
  background: rgba(7,16,13,.38);
  border-color: rgba(124,230,199,.10);
}

.hero::before {
  opacity: .32 !important;
}

.hero::after {
  opacity: .42 !important;
}

@media (max-width: 900px) {
  .hero {
    background:
      linear-gradient(180deg, rgba(255,249,234,.86) 0%, rgba(255,249,234,.76) 50%, rgba(237,246,230,.64) 100%),
      url("backgrounds/farm-golden-hero.png") 58% center / cover no-repeat !important;
  }

  body[data-theme="dark"] .hero {
    background:
      linear-gradient(180deg, rgba(7,16,13,.86) 0%, rgba(7,16,13,.78) 55%, rgba(13,33,26,.70) 100%),
      url("backgrounds/farm-golden-hero.png") 58% center / cover no-repeat !important;
  }

  .hero-copy::before {
    inset: -14px -12px;
    border-radius: 24px;
  }
}
