/* Czysty Dom Mielec - main stylesheet
 * Mobile-first, lightweight, no frameworks.
 */

/* =========================================
   1. Variables & reset
   ========================================= */
:root {
  --color-bg: #f6f2e9;
  --color-bg-alt: #ede7da;
  --color-text: #101512;
  --color-muted: #1b231e;
  --color-border: #d9d0c0;
  --color-primary: #1f8f55;
  --color-primary-dark: #14683d;
  --color-secondary: #2aa866;
  --color-secondary-dark: #167847;
  --color-danger: #b84f4f;
  --color-success: #1f5d43;

  --radius: 18px;
  --radius-lg: 30px;

  --shadow-sm: 0 10px 28px rgba(20, 33, 28, 0.06);
  --shadow-md: 0 22px 54px rgba(20, 33, 28, 0.1);
  --shadow-lg: 0 36px 80px rgba(20, 33, 28, 0.16);

  --container: 1240px;

  --font-sans:
    "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;

  --header-h: 76px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  margin: 0;
  padding: 0;
}
body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  color: var(--color-text);
  background:
    radial-gradient(circle at top left, rgba(36, 79, 61, 0.1), transparent 28%),
    radial-gradient(
      circle at top right,
      rgba(157, 136, 90, 0.16),
      transparent 26%
    ),
    var(--color-bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
html {
  margin-top: 0 !important;
}
body.admin-bar {
  padding-top: 32px;
}
@media screen and (max-width: 782px) {
  body.admin-bar {
    padding-top: 46px;
  }
}
img,
svg,
video {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: var(--color-primary-dark);
  text-decoration: none;
}
a:hover,
a:focus {
  text-decoration: underline;
}
:focus-visible {
  outline: 3px solid rgba(36, 79, 61, 0.28);
  outline-offset: 2px;
  border-radius: 10px;
}

h1,
h2,
h3,
h4 {
  color: var(--color-text);
  line-height: 1.16;
  margin: 0 0 0.5em;
  font-weight: 700;
  letter-spacing: -0.02em;
}
h1 {
  font-size: clamp(2rem, 5vw, 3rem);
}
h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.25rem);
}
h3 {
  font-size: 1.25rem;
}
p {
  margin: 0 0 1em;
  color: #121714;
}
.site-footer p,
.site-footer__copy,
.site-footer__text,
.site-footer__tagline {
  color: #dbe3dd;
}
.site-footer__copy {
  color: #b4c0b9;
}
.site-footer__tagline {
  color: #ddcfb0;
}
ul,
ol {
  padding-left: 1.2em;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  top: -100px;
  left: 8px;
  background: var(--color-text);
  color: #fff;
  padding: 10px 14px;
  z-index: 9999;
  border-radius: 6px;
}
.skip-link:focus {
  top: 8px;
}

/* =========================================
   2. Layout helpers
   ========================================= */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 56px 0;
}
@media (min-width: 768px) {
  .section {
    padding: 80px 0;
  }
}

.section__title {
  margin: 0 0 18px;
}
.section__title--center {
  text-align: center;
}
.section__lead {
  color: var(--color-muted);
  font-size: 1.05rem;
  max-width: 60ch;
  margin: 0 0 30px;
}
.section__lead--center {
  margin-inline: auto;
  text-align: center;
}
.section__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 250, 243, 0.72);
  border: 1px solid rgba(157, 136, 90, 0.24);
  color: var(--color-secondary-dark);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.section__eyebrow--center {
  display: table;
  margin: 0 auto 14px;
}

/* =========================================
   3. Buttons
   ========================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.96rem;
  line-height: 1.2;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    transform 0.16s ease,
    background 0.16s ease,
    color 0.16s ease,
    box-shadow 0.16s ease,
    border-color 0.16s ease;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(20, 33, 28, 0.1);
}
.btn:hover,
.btn:focus {
  text-decoration: none;
  transform: translateY(-1px);
}
.btn--lg {
  padding: 16px 30px;
  font-size: 1rem;
}
.btn--primary {
  background: linear-gradient(135deg, #21a85f 0%, #0f7a43 100%);
  border-color: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.btn--primary:hover,
.btn--primary:focus {
  color: #fff;
  box-shadow: 0 20px 36px rgba(15, 122, 67, 0.32);
}
.btn--secondary {
  background: linear-gradient(135deg, #2abf6d 0%, #15884d 100%);
  border-color: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.btn--secondary:hover,
.btn--secondary:focus {
  color: #fff;
  box-shadow: 0 20px 36px rgba(21, 136, 77, 0.28);
}
.btn--ghost {
  background: rgba(255, 250, 243, 0.74);
  color: var(--color-text);
  border-color: rgba(157, 136, 90, 0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.btn--ghost:hover,
.btn--ghost:focus {
  border-color: rgba(157, 136, 90, 0.34);
  background: #fffaf3;
}

/* =========================================
   4. Header
   ========================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 5000;
  background: rgba(246, 242, 233, 0.96);
  border-bottom: 1px solid rgba(157, 136, 90, 0.1);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}
.admin-bar .site-header {
  top: 32px;
}
@media screen and (max-width: 782px) {
  .admin-bar .site-header {
    top: 46px;
  }
}
@media (min-width: 992px) {
  .site-header {
    background: rgba(246, 242, 233, 0.88);
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
  }
}
.site-header.is-scrolled {
  border-bottom-color: rgba(157, 136, 90, 0.16);
  box-shadow: 0 16px 40px rgba(20, 33, 28, 0.08);
  background: rgba(246, 242, 233, 0.94);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 16px;
  position: relative;
}
html,
body {
  overflow-x: clip;
  max-width: 100%;
}
.site-branding .site-title,
.site-branding a {
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--color-text);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.custom-logo {
  max-height: 48px;
  width: auto;
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  background: rgba(255, 250, 243, 0.88);
  border: 1px solid rgba(157, 136, 90, 0.16);
  cursor: pointer;
  padding: 10px;
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(20, 33, 28, 0.08);
}
.nav-toggle__bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(12, 24, 18, 0.58);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.2s ease,
    visibility 0s linear 0.2s;
  z-index: 4900;
}
.nav-overlay.is-open {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}

.primary-nav {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  height: 100vh;
  height: 100dvh;
  width: min(88vw, 380px);
  max-width: 100%;
  background: linear-gradient(180deg, #f8f2e7 0%, #efe8db 100%);
  transform: translateX(100%);
  transition: transform 0.25s ease;
  padding: calc(var(--header-h) + 18px) 20px 32px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  border-left: 1px solid rgba(157, 136, 90, 0.14);
  box-shadow: -20px 0 48px rgba(20, 33, 28, 0.16);
  z-index: 9999;
}
.primary-nav.is-open {
  transform: translateX(0);
}

.primary-nav__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(157, 136, 90, 0.18);
  color: var(--color-text);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(20, 33, 28, 0.1);
  z-index: 2;
  padding: 0;
}
.primary-nav__close:hover,
.primary-nav__close:focus {
  background: #fff;
  border-color: rgba(157, 136, 90, 0.36);
}
@media (min-width: 992px) {
  .primary-nav__close {
    display: none;
  }
}

.menu--primary {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.menu--primary > li > a {
  display: block;
  padding: 14px 14px;
  color: var(--color-text);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.98rem;
  border-radius: 14px;
}
.menu--primary > li > a:hover,
.menu--primary > li > a:focus,
.menu--primary > li.current-menu-item > a {
  background: rgba(255, 250, 243, 0.92);
  color: var(--color-primary-dark);
}

.menu-item__caret {
  display: none;
}

.primary-nav__cta {
  width: 100%;
  margin-top: 10px;
}

.menu-item--has-mega .mega {
  display: none !important;
}

@media (min-width: 992px) {
  .nav-toggle {
    display: none;
  }
  .nav-overlay {
    display: none !important;
  }
  .primary-nav {
    position: static;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    width: auto;
    height: auto;
    min-height: 0;
    transform: none;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    overflow: visible;
    z-index: auto;
  }
  .site-header__inner .primary-nav {
    margin-left: auto;
  }
  .menu--primary {
    flex-direction: row;
    align-items: center;
    gap: 6px;
    margin: 0;
  }
  .menu--primary > li {
    position: relative;
  }
  .menu--primary > li > a {
    padding: 10px 14px;
    font-size: 0.95rem;
  }
  .primary-nav__cta {
    width: auto;
    margin: 0 0 0 10px;
  }

  .menu-item__caret {
    display: inline-block;
    margin-left: 6px;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    vertical-align: middle;
  }

  .menu-item--has-mega {
    position: static;
  }
  .menu-item--has-mega .mega {
    display: block !important;
    position: absolute;
    top: calc(100% + 12px);
    left: 16px;
    right: 16px;
    max-width: 1148px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(47, 143, 91, 0.1);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-6px);
    transition:
      opacity 0.18s ease,
      transform 0.18s ease,
      visibility 0s linear 0.18s;
    z-index: 200;
  }
  .menu-item--has-mega .mega::before {
    content: "";
    position: absolute;
    top: -16px;
    left: 0;
    right: 0;
    height: 16px;
  }
  .menu-item--has-mega:hover .mega,
  .menu-item--has-mega:focus-within .mega,
  .menu-item--has-mega .mega[data-open="true"] {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    transition-delay: 0s;
  }
  @media (min-width: 1200px) {
    .menu-item--has-mega .mega {
      left: 50%;
      right: auto;
      transform: translateX(-50%) translateY(-6px);
      width: min(1148px, calc(100vw - 32px));
    }
    .menu-item--has-mega:hover .mega,
    .menu-item--has-mega:focus-within .mega,
    .menu-item--has-mega .mega[data-open="true"] {
      transform: translateX(-50%) translateY(0);
    }
  }
}

/* =========================================
   5. Mega menu content
   ========================================= */
.mega__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 768px) {
  .mega__inner {
    grid-template-columns: 2fr 1fr;
  }
}
.mega__heading {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-muted);
  margin: 0 0 10px;
}
.mega__post-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}
@media (min-width: 768px) {
  .mega__post-list {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 600px) and (max-width: 991.98px) {
  .mega__post-list {
    grid-template-columns: repeat(2, 1fr);
  }
}
.mega__post-link {
  display: block;
  color: inherit;
  text-decoration: none;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-bg-alt);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}
.mega__post-link:hover,
.mega__post-link:focus {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}
.mega__thumb {
  display: block;
  width: 100%;
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, #d1fae5, #bfdbfe) center/cover no-repeat;
}
.mega__post-body {
  display: block;
  padding: 12px 14px;
}
.mega__post-title {
  display: block;
  font-weight: 700;
  margin-bottom: 4px;
}
.mega__post-excerpt {
  display: block;
  color: var(--color-muted);
  font-size: 0.9rem;
  margin-bottom: 6px;
}
.mega__post-more {
  color: var(--color-primary-dark);
  font-weight: 600;
  font-size: 0.9rem;
}

.mega__sidebar {
  padding: 4px 0 0;
}
.mega__cat-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  display: grid;
  gap: 4px;
}
.mega__cat-list a {
  display: block;
  padding: 6px 8px;
  border-radius: 6px;
  color: var(--color-text);
  text-decoration: none;
}
.mega__cat-list a:hover {
  background: var(--color-bg-alt);
  color: var(--color-primary-dark);
}
.mega__cta {
  width: 100%;
}

/* =========================================
   6. Hero
   ========================================= */
.hero {
  background:
    radial-gradient(
      circle at top left,
      rgba(36, 79, 61, 0.14),
      transparent 22%
    ),
    radial-gradient(
      circle at 85% 10%,
      rgba(157, 136, 90, 0.18),
      transparent 18%
    ),
    linear-gradient(180deg, #f3ede2 0%, #f6f2e9 36%, #fbf8f1 100%);
  padding: 38px 0 60px;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  align-items: start;
}
@media (min-width: 992px) {
  .hero {
    padding: 58px 0 88px;
    overflow: visible;
  }
  .hero__inner {
    grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
    gap: 42px;
    align-items: stretch;
    overflow: visible;
  }
  .hero .hero__title {
    font-size: clamp(2.15rem, 2.7vw, 2.9rem) !important;
    line-height: 1.08;
    max-width: 100%;
  }
}
.hero__content {
  background: linear-gradient(
    180deg,
    rgba(255, 252, 247, 0.96) 0%,
    rgba(255, 248, 240, 0.92) 100%
  );
  border: 1px solid rgba(157, 136, 90, 0.16);
  border-radius: 34px;
  padding: 34px;
  box-shadow: 0 26px 64px rgba(20, 33, 28, 0.1);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
@media (min-width: 768px) {
  .hero__content {
    padding: 50px;
  }
}
.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}
.hero__trust-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 250, 243, 0.88);
  border: 1px solid rgba(157, 136, 90, 0.18);
  color: var(--color-secondary-dark);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(36, 79, 61, 0.08);
  border: 1px solid rgba(36, 79, 61, 0.12);
  color: var(--color-primary-dark);
  font-weight: 700;
  font-size: 0.82rem;
  margin: 0 0 18px;
}
.hero__title {
  font-size: clamp(1.55rem, 4.5vw, 3.6rem);
  line-height: 1.1;
  margin-bottom: 22px;
  max-width: 100%;
}
.hero__subtitle {
  color: #4f5e55;
  font-size: 1.1rem;
  margin-bottom: 28px;
  max-width: 64ch;
}
.hero__bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: grid;
  gap: 13px;
}
.hero__bullets li {
  padding-left: 38px;
  position: relative;
  font-weight: 600;
}
.hero__bullets li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 1px;
  width: 24px;
  height: 24px;
  background: linear-gradient(
    135deg,
    var(--color-secondary) 0%,
    var(--color-primary) 100%
  );
  color: #fff;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 800;
  box-shadow: 0 12px 26px rgba(127, 107, 67, 0.18);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 26px;
}
.hero__stats {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.hero__stat {
  padding: 18px;
  border-radius: 24px;
  background: rgba(255, 251, 245, 0.88);
  border: 1px solid rgba(157, 136, 90, 0.14);
  box-shadow: 0 16px 34px rgba(20, 33, 28, 0.06);
}
.hero__stat strong {
  display: block;
  margin-bottom: 5px;
  font-size: 0.96rem;
}
.hero__stat span {
  display: block;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--color-muted);
}
.hero__note {
  color: var(--color-muted);
  font-size: 0.9rem;
  margin: 20px 0 0;
}
.hero__media {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.hero__image {
  width: 100%;
  border-radius: 32px;
  box-shadow: var(--shadow-lg);
  object-fit: cover;
  max-height: 520px;
  border: 1px solid rgba(157, 136, 90, 0.12);
  order: 1;
}
.hero__form-wrap {
  background: linear-gradient(
    180deg,
    rgba(255, 251, 245, 0.96) 0%,
    rgba(255, 248, 238, 0.9) 100%
  );
  border-radius: 32px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(157, 136, 90, 0.16);
  padding: 26px;
  order: 2;
}
@media (min-width: 992px) {
  .hero__media {
    display: flex;
    flex-direction: column;
    gap: 18px;
    height: 100%;
    min-height: 100%;
  }
  .hero__image {
    order: 2;
    flex: 0 0 auto;
  }
  .hero__form-wrap {
    order: 1;
    flex: 0 0 auto;
    align-self: stretch;
    position: sticky;
    top: calc(var(--header-h) + 18px);
    z-index: 3;
  }
}
@media (max-width: 767px) {
  .hero__content {
    padding: 24px;
  }
  .hero__title {
    max-width: none;
    font-size: clamp(1.4rem, 5.5vw, 1.85rem);
    line-height: 1.15;
  }
  .hero__actions {
    flex-direction: column;
  }
  .hero__actions .btn {
    width: 100%;
  }
  .hero__stats {
    grid-template-columns: 1fr;
  }
  .hero__form-wrap {
    padding: 22px;
  }
}

/* =========================================
   7. Lead form
   ========================================= */
.lead-form {
  display: grid;
  gap: 14px;
}
.lead-form__title {
  margin: 0 0 8px;
  font-size: 1.35rem;
}
.lead-form__row {
  display: grid;
  gap: 8px;
}
.lead-form__label {
  font-weight: 700;
  font-size: 0.92rem;
}
.lead-form__input,
.lead-form__textarea {
  width: 100%;
  font: inherit;
  color: inherit;
  padding: 14px 16px;
  border: 1.5px solid rgba(47, 143, 91, 0.14);
  border-radius: 16px;
  background: #fff;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease;
}
.lead-form__input:focus,
.lead-form__textarea:focus {
  outline: 0;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(47, 143, 91, 0.14);
  background: #fcfffb;
}
.lead-form__textarea {
  resize: vertical;
  min-height: 110px;
}
.lead-form__row--check {
  font-size: 0.9rem;
  color: var(--color-muted);
}
.lead-form__check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}
.lead-form__check input {
  margin-top: 4px;
  flex-shrink: 0;
  accent-color: var(--color-primary);
}
.lead-form__submit {
  width: 100%;
  margin-top: 6px;
}
.lead-form__small {
  font-size: 0.84rem;
  color: var(--color-muted);
  margin: 0;
  text-align: center;
}
.lead-form__hp {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}
.lead-form__alert {
  border-radius: 16px;
  padding: 12px 14px;
  font-size: 0.95rem;
}
.lead-form__alert--success {
  background: #e6f6e7;
  color: var(--color-success);
  border: 1px solid #b7dfbb;
}
.lead-form__alert--error {
  background: #fde9e7;
  color: var(--color-danger);
  border: 1px solid #f4c5bf;
}

/* =========================================
   8. Sections
   ========================================= */
.section--problem,
.section--how,
.section--testimonials {
  background: linear-gradient(
    180deg,
    rgba(246, 241, 232, 0.86) 0%,
    rgba(252, 249, 243, 0.96) 100%
  );
}
.problem-list,
.benefits-grid,
.how-steps,
.who-list,
.testimonial-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 20px;
}
.problem-list {
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .problem-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.problem-list__item,
.benefit-card,
.how-step,
.who-list__item,
.testimonial {
  background: linear-gradient(
    180deg,
    rgba(255, 252, 247, 0.94) 0%,
    rgba(255, 249, 241, 0.86) 100%
  );
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(157, 136, 90, 0.12);
  box-shadow: 0 22px 46px rgba(20, 33, 28, 0.07);
}
.problem-list__item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 20px 22px;
  border-radius: 24px;
}
.problem-list__icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(184, 79, 79, 0.1);
  color: var(--color-danger);
  border: 1px solid rgba(184, 79, 79, 0.16);
  border-radius: 50%;
  font-weight: 800;
  font-size: 1rem;
}

.section--solution__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  align-items: center;
}
@media (min-width: 992px) {
  .section--solution__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
    gap: 58px;
  }
}
.section--solution__media img,
.media-placeholder {
  width: 100%;
  border-radius: 32px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(157, 136, 90, 0.1);
}
.media-placeholder {
  aspect-ratio: 4/3;
  background: linear-gradient(
    135deg,
    rgba(157, 136, 90, 0.18),
    rgba(36, 79, 61, 0.18)
  );
}
.section--solution__content .btn {
  margin-top: 8px;
}

.benefits-grid {
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .benefits-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1024px) {
  .benefits-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.benefit-card {
  padding: 28px;
  border-radius: 26px;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}
.benefit-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 56px rgba(20, 33, 28, 0.1);
  border-color: rgba(157, 136, 90, 0.22);
}
.benefit-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  background: linear-gradient(
    135deg,
    rgba(157, 136, 90, 0.18) 0%,
    rgba(36, 79, 61, 0.12) 100%
  );
  color: var(--color-primary-dark);
  border: 1px solid rgba(157, 136, 90, 0.16);
  border-radius: 16px;
  font-weight: 800;
  margin-bottom: 16px;
}
.benefit-card__title {
  font-size: 1.08rem;
  margin-bottom: 8px;
}
.benefit-card__text {
  color: var(--color-muted);
  margin: 0;
  font-size: 0.96rem;
}

.how-steps {
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .how-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.how-step {
  padding: 28px 24px;
  border-radius: 26px;
  text-align: center;
}
.how-step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: linear-gradient(
    135deg,
    var(--color-primary) 0%,
    var(--color-secondary-dark) 100%
  );
  color: #fff;
  border-radius: 50%;
  font-weight: 800;
  font-size: 1.15rem;
  margin-bottom: 16px;
  box-shadow: 0 16px 30px rgba(24, 55, 43, 0.18);
}
.how-step__title {
  margin-bottom: 8px;
}
.how-step__text {
  color: var(--color-muted);
  margin: 0;
}

.who-list {
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .who-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1024px) {
  .who-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.who-list__item {
  padding: 20px 20px 20px 52px;
  border-radius: 22px;
  font-weight: 700;
  position: relative;
}
.who-list__item::before {
  content: "✓";
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  background: linear-gradient(
    135deg,
    var(--color-secondary) 0%,
    var(--color-primary-dark) 100%
  );
  color: #fff;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 800;
  box-shadow: 0 12px 26px rgba(127, 107, 67, 0.18);
}

.testimonial-grid {
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .testimonial-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.testimonial {
  padding: 28px;
  border-radius: 26px;
  margin: 0;
}
.testimonial__quote {
  margin: 0 0 14px;
  font-style: italic;
  color: var(--color-text);
  font-size: 1.02rem;
  line-height: 1.75;
}
.testimonial__caption {
  color: var(--color-muted);
  font-size: 0.92rem;
}

.section--final-cta {
  background: linear-gradient(180deg, #f5efe4 0%, #efe8dc 100%);
  color: var(--color-text);
  padding-top: 28px;
}
.section--final-cta .section__title,
.section--final-cta .section__lead {
  color: var(--color-text);
}
.section--final-cta .section__eyebrow {
  background: rgba(255, 250, 243, 0.88);
  border-color: rgba(157, 136, 90, 0.2);
  color: var(--color-secondary-dark);
}
.final-cta__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: stretch;
}
@media (min-width: 992px) {
  .final-cta__grid {
    grid-template-columns: minmax(0, 0.94fr) minmax(360px, 1.06fr);
    gap: 28px;
  }
}
.final-cta__intro {
  background: linear-gradient(160deg, #18372b 0%, #244f3d 64%, #4a5f47 100%);
  color: #fff;
  padding: 34px;
  border-radius: 32px;
  box-shadow: 0 30px 64px rgba(16, 29, 23, 0.18);
  position: relative;
  overflow: hidden;
}
.final-cta__intro::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at top right,
    rgba(255, 255, 255, 0.16),
    transparent 32%
  );
  pointer-events: none;
}
.final-cta__intro > * {
  position: relative;
  z-index: 1;
}
.section--final-cta .final-cta__intro .section__title,
.section--final-cta .final-cta__intro .section__lead,
.section--final-cta .final-cta__intro .section__eyebrow {
  color: #fff;
}
.section--final-cta .final-cta__intro .section__eyebrow {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.18);
}
.section--final-cta .final-cta__intro .section__lead {
  max-width: 40ch;
  font-size: 1.05rem;
  opacity: 0.92;
}
.final-cta__form {
  background: linear-gradient(
    180deg,
    rgba(255, 252, 247, 0.98) 0%,
    rgba(255, 248, 240, 0.94) 100%
  );
  color: var(--color-text);
  padding: 32px;
  border-radius: 32px;
  box-shadow: 0 26px 56px rgba(20, 33, 28, 0.1);
  border: 1px solid rgba(157, 136, 90, 0.16);
}
@media (max-width: 767px) {
  .section--final-cta {
    padding-top: 18px;
  }
  .final-cta__intro,
  .final-cta__form {
    padding: 24px;
    border-radius: 24px;
  }
}

/* =========================================
   9. Blog (archive / single)
   ========================================= */
.archive-header {
  margin: 24px 0 28px;
}
.archive-header__title {
  margin-bottom: 6px;
}
.archive-header__lead {
  color: var(--color-muted);
  margin: 0;
}

.blog-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding: 32px 20px 64px;
}
@media (min-width: 992px) {
  .blog-layout {
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 40px;
    padding: 40px 20px 80px;
  }
}
.blog-layout__sidebar {
  display: grid;
  gap: 20px;
  align-content: start;
}

.post-grid {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 24px;
}
@media (min-width: 560px) {
  .post-grid,
  .blog-layout__main .post-grid,
  .post-grid--blog {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

.post-grid--3 {
  grid-template-columns: 1fr !important;
}
@media (min-width: 600px) {
  .post-grid--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
@media (min-width: 992px) {
  .post-grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

.card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.card__link {
  display: block;
  color: inherit;
  text-decoration: none;
  height: 100%;
}
.card__link:hover {
  text-decoration: none;
}
.card__thumb {
  display: block;
  width: 100%;
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, #d1fae5, #bfdbfe) center/cover no-repeat;
}
.card__body {
  display: block;
  padding: 18px 20px 22px;
}
.card__category {
  display: inline-block;
  background: #dcfce7;
  color: var(--color-primary-dark);
  padding: 3px 10px;
  font-size: 0.78rem;
  border-radius: 999px;
  font-weight: 600;
  margin-bottom: 8px;
}
.card__title {
  display: block;
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 8px;
  line-height: 1.3;
}
.card__title--large {
  font-size: 1.5rem;
}
.card__excerpt {
  display: block;
  color: var(--color-muted);
  font-size: 0.96rem;
  margin-bottom: 12px;
}
.card__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--color-muted);
}
.card__more {
  color: var(--color-primary-dark);
  font-weight: 600;
}

.card--featured {
  grid-column: 1 / -1;
}
.card--featured .card__thumb {
  aspect-ratio: 21/9;
}

/* Blog filters (page-template-blog) */
.blog-filters {
  margin: 0 0 24px;
}
.blog-filters__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.blog-filters__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: #fff;
  border: 1.5px solid var(--color-border);
  border-radius: 999px;
  color: var(--color-text);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition:
    background 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease;
}
.blog-filters__link:hover,
.blog-filters__link:focus {
  background: var(--color-bg-alt);
  border-color: var(--color-text);
  text-decoration: none;
}
.blog-filters__link.is-active {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}
.blog-filters__count {
  font-weight: 500;
  opacity: 0.75;
  font-size: 0.82rem;
}

.blog-intro {
  margin-bottom: 24px;
  color: var(--color-muted);
}
.blog-empty {
  padding: 32px 0;
  color: var(--color-muted);
}

.post-grid--blog {
  grid-template-columns: 1fr;
}
@media (min-width: 600px) {
  .post-grid--blog {
    grid-template-columns: repeat(2, 1fr);
  }
}

.widget-cats,
.widget-recent {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 6px;
}
.widget-cats a,
.widget-recent a {
  color: var(--color-text);
  text-decoration: none;
}
.widget-cats a:hover,
.widget-recent a:hover {
  color: var(--color-primary-dark);
  text-decoration: underline;
}

/* Pagination */
.navigation.pagination,
.pagination {
  margin: 32px 0 0;
}
.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--color-border);
  color: var(--color-text);
  text-decoration: none;
  font-weight: 600;
}
.page-numbers.current,
.page-numbers:hover {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
  text-decoration: none;
}

/* Single */
.single-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding: 32px 20px 64px;
}
@media (min-width: 992px) {
  .single-layout {
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 48px;
    padding: 40px 20px 80px;
  }
}
.single-layout__sidebar {
  display: grid;
  gap: 20px;
  align-content: start;
}
@media (min-width: 992px) {
  .single-layout__sidebar {
    position: sticky;
    top: calc(var(--header-h) + 16px);
    align-self: start;
  }
}
@media (max-width: 991.98px) {
  .single-layout__sidebar {
    display: none;
  }
}

.single-post__title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 8px;
}
.post-meta {
  color: var(--color-muted);
  font-size: 0.92rem;
  margin: 0 0 18px;
}
.post-meta__sep {
  margin: 0 6px;
}
.single-post__thumb {
  margin: 0 0 28px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.single-post__thumb img {
  width: 100%;
  height: auto;
  display: block;
}
.single-post__content {
  font-size: 1.075rem;
  line-height: 1.75;
}
.single-post__content h2 {
  margin-top: 1.6em;
}
.single-post__content h3 {
  margin-top: 1.4em;
}
.single-post__content blockquote {
  border-left: 4px solid var(--color-primary);
  margin: 24px 0;
  padding: 8px 18px;
  background: var(--color-bg-alt);
  border-radius: 6px;
  color: var(--color-text);
  font-style: italic;
}
.single-post__content ul,
.single-post__content ol {
  padding-left: 1.4em;
}
.single-post__content img {
  border-radius: var(--radius);
}

.post-cta {
  margin: 36px 0;
  background: linear-gradient(135deg, #ecfdf5 0%, #eff6ff 100%);
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-lg);
  padding: 24px;
}
.post-cta__title {
  margin-bottom: 6px;
}
.post-cta__text {
  color: var(--color-muted);
  margin-bottom: 14px;
}

.post-tags {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.post-tags li a {
  display: inline-block;
  padding: 4px 10px;
  background: var(--color-bg-alt);
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--color-muted);
  text-decoration: none;
}

.related-posts {
  margin-top: 48px;
}
.related-posts__title {
  margin-bottom: 16px;
}

/* Widget (classic + block widgets) */
.widget {
  background: #fff;
  padding: 20px 22px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.widget + .widget {
  margin-top: 0;
}
.widget--sticky {
  background: #f0fdf4;
  border-color: #86efac;
}
.widget-title,
.widget .wp-block-heading,
.widget h2.wp-block-heading,
.widget h3.wp-block-heading {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin: 0 0 14px;
  padding: 0 0 10px;
  border-bottom: 2px solid var(--color-bg-alt);
  color: var(--color-text);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.85rem;
}
.widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}
.widget ul li {
  padding: 0;
  margin: 0;
}
.widget ul li a {
  color: var(--color-text);
  text-decoration: none;
  display: inline-block;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  transition:
    color 0.15s ease,
    border-color 0.15s ease;
}
.widget ul li a:hover,
.widget ul li a:focus {
  color: var(--color-primary-dark);
  border-bottom-color: var(--color-primary);
}
.widget ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
  counter-reset: w;
}
.widget ol > li {
  padding: 0;
  margin: 0;
}

/* Block widgets unify spacing */
.widget_block + .widget_block,
.widget_block {
  padding: 20px 22px;
}
.widget_block .wp-block-group,
.widget_block .wp-block-group__inner-container {
  padding: 0;
  margin: 0;
}

/* Search block */
.wp-block-search {
  margin: 0;
}
.wp-block-search .wp-block-search__label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 12px;
  padding: 0 0 10px;
  border-bottom: 2px solid var(--color-bg-alt);
}
.wp-block-search .wp-block-search__inside-wrapper {
  display: flex;
  gap: 8px;
  border: 0;
  padding: 0;
}
.wp-block-search .wp-block-search__input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 11px 14px;
  border: 1.5px solid var(--color-border);
  border-radius: 10px;
  font: inherit;
  background: #fff;
  color: var(--color-text);
}
.wp-block-search .wp-block-search__input:focus {
  outline: 0;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.15);
}
.wp-block-search .wp-block-search__button,
.wp-block-search button[type="submit"] {
  flex: 0 0 auto;
  background: var(--color-primary);
  color: #fff;
  border: 0;
  padding: 0 16px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition:
    background 0.15s ease,
    transform 0.15s ease;
}
.wp-block-search .wp-block-search__button:hover,
.wp-block-search button[type="submit"]:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
}

/* Latest posts block */
.wp-block-latest-posts__list {
  list-style: none !important;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.wp-block-latest-posts__list > li {
  padding: 0;
  margin: 0;
}
.wp-block-latest-posts__list > li a,
.wp-block-latest-posts__post-title {
  color: var(--color-text);
  text-decoration: none;
  font-weight: 600;
  line-height: 1.4;
  display: inline-block;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
}
.wp-block-latest-posts__list > li a:hover,
.wp-block-latest-posts__post-title:hover {
  color: var(--color-primary-dark);
  border-bottom-color: var(--color-primary);
}
.wp-block-latest-posts__post-date,
.wp-block-latest-posts__post-author {
  display: block;
  color: var(--color-muted);
  font-size: 0.82rem;
  margin-top: 2px;
}
.wp-block-latest-posts__post-excerpt {
  color: var(--color-muted);
  font-size: 0.9rem;
  margin: 4px 0 0;
}

/* Latest comments block */
.wp-block-latest-comments {
  list-style: none !important;
  padding: 0 !important;
  margin: 0;
  display: grid;
  gap: 12px;
}
.wp-block-latest-comments__comment {
  background: var(--color-bg-alt);
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 0.92rem;
  line-height: 1.5;
}
.wp-block-latest-comments__comment article {
  margin: 0;
}
.wp-block-latest-comments__comment-meta {
  color: var(--color-muted);
  font-size: 0.85rem;
}
.wp-block-latest-comments__comment-author {
  color: var(--color-primary-dark);
  font-weight: 600;
  text-decoration: none;
}
.wp-block-latest-comments__comment-author:hover {
  text-decoration: underline;
}
.wp-block-latest-comments__comment-link {
  color: var(--color-text);
  text-decoration: none;
  font-weight: 600;
}
.wp-block-latest-comments__comment-link:hover {
  color: var(--color-primary-dark);
  text-decoration: underline;
}
.wp-block-latest-comments__comment-excerpt p {
  margin: 6px 0 0;
  color: var(--color-text);
}

/* Categories / archives blocks */
.wp-block-categories,
.wp-block-archives {
  list-style: none !important;
  padding: 0 !important;
  margin: 0;
  display: grid;
  gap: 6px;
}
.wp-block-categories li,
.wp-block-archives li {
  padding: 0;
}
.wp-block-categories a,
.wp-block-archives a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 0;
  color: var(--color-text);
  text-decoration: none;
  border-bottom: 1px dashed var(--color-border);
}
.wp-block-categories a:hover,
.wp-block-archives a:hover {
  color: var(--color-primary-dark);
}

/* Tag cloud */
.wp-block-tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.wp-block-tag-cloud a {
  display: inline-block;
  padding: 4px 10px;
  background: var(--color-bg-alt);
  border-radius: 999px;
  color: var(--color-text);
  text-decoration: none;
  font-size: 0.82rem !important;
}
.wp-block-tag-cloud a:hover {
  background: var(--color-primary);
  color: #fff;
}

/* Sticky widgets on desktop */
@media (min-width: 992px) {
  .blog-layout__sidebar {
    position: sticky;
    top: calc(var(--header-h) + 16px);
    align-self: start;
  }
}

/* =========================================
   10. Breadcrumbs / search form
   ========================================= */
.breadcrumbs {
  margin: 0 0 16px;
}
.breadcrumbs__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--color-muted);
  font-size: 0.88rem;
}
.breadcrumbs__item + .breadcrumbs__item::before {
  content: "›";
  margin-right: 6px;
  opacity: 0.6;
}
.breadcrumbs a {
  color: var(--color-secondary);
  text-decoration: none;
}

.search-form {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}
.search-form__input {
  flex: 1;
  padding: 12px 14px;
  border: 1.5px solid var(--color-border);
  border-radius: 10px;
  font: inherit;
}
.search-form__input:focus {
  outline: 0;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.15);
}

/* =========================================
   11. Footer
   ========================================= */
.site-footer {
  position: relative;
  background:
    linear-gradient(
      180deg,
      rgba(14, 28, 20, 0.95) 0%,
      rgba(18, 36, 27, 0.97) 45%,
      rgba(12, 24, 17, 0.98) 100%
    ),
    url("../img/AdobeStock_900767574.webp") center 35% / cover no-repeat;
  color: #e6ece6;
  margin-top: 0;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(157, 136, 90, 0.55) 20%,
    rgba(42, 168, 102, 0.95) 50%,
    rgba(157, 136, 90, 0.55) 80%,
    transparent 100%
  );
}
.site-footer a {
  color: #fff;
  transition:
    color 0.15s ease,
    opacity 0.15s ease;
}
.site-footer a:hover {
  color: #f0e1b5;
  opacity: 1;
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  padding: 64px 20px 56px;
}
@media (min-width: 600px) {
  .site-footer__inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    padding: 72px 20px 60px;
  }
  .site-footer__col--cta {
    grid-column: 1 / -1;
  }
}
@media (min-width: 992px) {
  .site-footer__inner {
    grid-template-columns: 1.5fr 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 24px;
    padding: 80px 20px 72px;
  }
  .site-footer__col--brand {
    grid-row: 1 / 2;
    grid-column: 1 / 2;
  }
  .site-footer__col--cta {
    grid-row: 2 / 3;
    grid-column: 2 / 4;
  }
}

.site-footer__col {
  min-width: 0;
  padding: 32px 28px 28px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 26px;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.site-footer__col--brand {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.12);
  display: grid;
  grid-template-columns: 54px 1fr;
  column-gap: 18px;
  align-content: start;
}
.site-footer__col--brand .site-footer__title {
  font-size: 1.15rem;
  margin-bottom: 8px;
}
.site-footer__col--cta {
  background: linear-gradient(
    160deg,
    rgba(42, 168, 102, 0.16) 0%,
    rgba(255, 255, 255, 0.06) 100%
  );
  border: 1px solid rgba(157, 136, 90, 0.38);
  box-shadow: 0 24px 52px rgba(0, 0, 0, 0.28);
  display: grid;
  grid-template-columns: 54px 1fr;
  column-gap: 18px;
  align-content: start;
}
.site-footer__col--brand .site-footer__brand-icon,
.site-footer__col--cta .site-footer__brand-icon {
  grid-column: 1;
  grid-row: 1 / 99;
  margin-bottom: 0;
  margin-top: 3px;
  align-self: start;
}
.site-footer__col--brand .site-footer__title,
.site-footer__col--brand .site-footer__tagline,
.site-footer__col--brand .site-footer__text,
.site-footer__col--brand .site-footer__social,
.site-footer__col--cta .site-footer__title,
.site-footer__col--cta .site-footer__text,
.site-footer__col--cta .site-footer__cta {
  grid-column: 2;
}
.site-footer__col--cta .site-footer__cta {
  margin-top: 14px;
  width: fit-content;
}
.site-footer__brand-icon {
  width: 54px;
  height: 54px;
  background: linear-gradient(
    135deg,
    rgba(42, 168, 102, 0.22) 0%,
    rgba(31, 143, 85, 0.16) 100%
  );
  border: 1px solid rgba(42, 168, 102, 0.3);
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: rgba(80, 210, 140, 0.9);
}

.site-footer__title {
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin: 0 0 14px;
  padding-bottom: 0;
  border-bottom: 0;
  display: inline-block;
  text-transform: uppercase;
}
.site-footer__col--brand .site-footer__title {
  text-transform: none;
  letter-spacing: -0.01em;
  font-size: 1.25rem;
}

.site-footer__tagline {
  color: #ddcfb0;
  font-size: 0.92rem;
  font-weight: 500;
  margin: 0 0 12px;
  line-height: 1.5;
}
.site-footer__text {
  color: #dbe3dd;
  margin: 0 0 14px;
  font-size: 0.94rem;
  line-height: 1.65;
}

.site-footer__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.site-footer__contact li,
.site-footer__hours li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: start;
  color: #dbe3dd;
  font-size: 0.94rem;
  line-height: 1.45;
}
.site-footer__contact a {
  text-decoration: none;
  word-break: break-word;
}
.site-footer__contact a:hover {
  text-decoration: underline;
}

.site-footer__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  color: #d1b37b;
  flex-shrink: 0;
}

.site-footer__hours-note {
  color: #a8b4ad;
  font-size: 0.85rem;
  font-style: italic;
  padding-left: 32px;
}

.site-footer__social {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: flex;
  gap: 10px;
}
.site-footer__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff !important;
  transition:
    background 0.2s ease,
    transform 0.15s ease,
    border-color 0.2s ease;
}
.site-footer__social-link:hover {
  background: rgba(157, 136, 90, 0.18);
  border-color: rgba(157, 136, 90, 0.52);
  transform: translateY(-2px);
}

.site-footer .menu--footer {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.site-footer .menu--footer li a {
  color: #dbe3dd;
  text-decoration: none;
  font-size: 0.94rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition:
    color 0.15s ease,
    transform 0.15s ease;
}
.site-footer .menu--footer li a::before {
  content: "›";
  color: var(--color-secondary);
  font-weight: 700;
  transition: transform 0.15s ease;
}
.site-footer .menu--footer li a:hover {
  color: #fff;
}
.site-footer .menu--footer li a:hover::before {
  transform: translateX(3px);
}

.site-footer__col--cta .site-footer__cta {
  display: inline-flex;
  width: fit-content;
  justify-content: center;
  padding: 13px 22px;
  min-height: 50px;
  text-align: center;
  white-space: nowrap;
  line-height: 1.35;
}

.site-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 28px 0 32px;
  color: #b4c0b9;
  font-size: 0.85rem;
  background: rgba(0, 0, 0, 0.24);
}
.site-footer__bottom-inner {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  text-align: center;
}
@media (min-width: 768px) {
  .site-footer__bottom-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}
.site-footer__copy {
  margin: 0;
}
.site-footer__legal {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
}
.site-footer__legal a {
  color: #b4c0b9;
  text-decoration: none;
  font-size: 0.85rem;
}
.site-footer__legal a:hover {
  color: #fff;
  text-decoration: underline;
}
@media (max-width: 767px) {
  .site-footer__inner {
    padding-top: 40px;
    padding-bottom: 36px;
  }
  .site-footer__col {
    padding: 24px 20px 22px;
    border-radius: 20px;
  }
}

/* Remove gap above footer when previous section is a CTA section */
.section--final-cta {
  margin-bottom: 0;
  padding-bottom: 64px;
}
.section:last-of-type {
  margin-bottom: 0;
}

/* =========================================
   12. Page (CMS)
   ========================================= */
.page-layout {
  padding: 32px 20px 64px;
}
.page-content__title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 12px;
}
.page-content__thumb {
  margin: 16px 0 28px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.page-content__body {
  font-size: 1.075rem;
  line-height: 1.75;
}

.comments-area {
  margin-top: 44px;
  padding: 28px;
  background: linear-gradient(
    180deg,
    rgba(255, 252, 247, 0.96) 0%,
    rgba(255, 248, 239, 0.9) 100%
  );
  border: 1px solid rgba(157, 136, 90, 0.14);
  border-radius: 30px;
  box-shadow: 0 24px 56px rgba(20, 33, 28, 0.08);
}
.comments-title,
.comment-reply-title {
  margin-bottom: 18px;
  font-size: clamp(1.35rem, 3vw, 2rem);
}
.comments-area .comment-list {
  list-style: none;
  margin: 0 0 30px;
  padding: 0;
  display: grid;
  gap: 18px;
}
.comments-area .comment {
  margin: 0;
}
.comments-area .children {
  list-style: none;
  margin: 16px 0 0;
  padding: 0 0 0 18px;
  display: grid;
  gap: 16px;
  border-left: 1px solid rgba(157, 136, 90, 0.18);
}
.comment-body {
  padding: 22px;
  border-radius: 24px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.94) 0%,
    rgba(250, 245, 236, 0.88) 100%
  );
  border: 1px solid rgba(157, 136, 90, 0.12);
  box-shadow: 0 18px 40px rgba(20, 33, 28, 0.06);
}
.comment-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}
.comment-author {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--color-text);
}
.comment-author .avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid rgba(157, 136, 90, 0.2);
  box-shadow: 0 10px 24px rgba(20, 33, 28, 0.1);
}
.comment-author .fn {
  font-size: 1rem;
  font-weight: 700;
}
.comment-author .fn a {
  color: var(--color-text);
  text-decoration: none;
}
.comment-author .says {
  display: inline-block;
  margin-left: 4px;
  color: var(--color-muted);
  font-size: 0.92rem;
}
.comment-metadata {
  font-size: 0.9rem;
  color: var(--color-muted);
}
.comment-metadata a {
  color: var(--color-muted);
  text-decoration: none;
}
.comment-metadata a:hover {
  color: var(--color-primary-dark);
}
.comment-content {
  color: var(--color-text);
  line-height: 1.75;
}
.comment-content p:last-child {
  margin-bottom: 0;
}
.comment-content a {
  color: var(--color-primary-dark);
}
.comment-awaiting-moderation {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(157, 136, 90, 0.12);
  color: var(--color-secondary-dark);
  font-size: 0.85rem;
  font-weight: 700;
}
.reply {
  margin-top: 16px;
}
.comment-reply-link,
#cancel-comment-reply-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(36, 79, 61, 0.08);
  border: 1px solid rgba(36, 79, 61, 0.14);
  color: var(--color-primary-dark);
  font-weight: 700;
  text-decoration: none;
  transition:
    background 0.16s ease,
    border-color 0.16s ease,
    transform 0.16s ease,
    color 0.16s ease;
}
.comment-reply-link:hover,
.comment-reply-link:focus,
#cancel-comment-reply-link:hover,
#cancel-comment-reply-link:focus {
  background: rgba(36, 79, 61, 0.14);
  border-color: rgba(36, 79, 61, 0.24);
  color: var(--color-primary-dark);
  text-decoration: none;
  transform: translateY(-1px);
}
.comment-respond {
  padding: 24px;
  border-radius: 26px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.96) 0%,
    rgba(255, 249, 241, 0.88) 100%
  );
  border: 1px solid rgba(157, 136, 90, 0.12);
  box-shadow: 0 20px 44px rgba(20, 33, 28, 0.06);
}
.comment-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.comment-notes,
.logged-in-as,
.comment-form-cookies-consent,
.comment-form .form-submit {
  margin: 0;
}
.comment-notes,
.logged-in-as,
.comment-form-cookies-consent label {
  color: var(--color-muted);
  font-size: 0.94rem;
}
.comment-form-comment,
.comment-form-author,
.comment-form-email,
.comment-form-url {
  margin: 0;
}
.comment-form label {
  display: inline-block;
  margin-bottom: 8px;
  font-weight: 700;
  font-size: 0.94rem;
  color: var(--color-text);
}
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  font: inherit;
  color: inherit;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1.5px solid rgba(157, 136, 90, 0.18);
  background: rgba(255, 255, 255, 0.92);
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease;
}
.comment-form textarea {
  resize: vertical;
  min-height: 170px;
}
.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus,
.comment-form textarea:focus {
  outline: 0;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(36, 79, 61, 0.12);
  background: #fff;
}
.comment-form-cookies-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.comment-form-cookies-consent input {
  margin-top: 4px;
  accent-color: var(--color-primary);
}
.comment-form .submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 24px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(
    135deg,
    var(--color-primary) 0%,
    var(--color-primary-dark) 100%
  );
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 18px 36px rgba(24, 55, 43, 0.22);
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease;
}
.comment-form .submit:hover,
.comment-form .submit:focus {
  transform: translateY(-1px);
  box-shadow: 0 22px 42px rgba(24, 55, 43, 0.28);
}
@media (min-width: 768px) {
  .comment-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .comment-form-comment,
  .comment-notes,
  .logged-in-as,
  .comment-form-cookies-consent,
  .comment-form .form-submit {
    grid-column: 1 / -1;
  }
}
@media (max-width: 767px) {
  .comments-area {
    padding: 22px;
    border-radius: 24px;
  }
  .comment-body,
  .comment-respond {
    padding: 18px;
    border-radius: 20px;
  }
  .comment-meta {
    flex-direction: column;
    align-items: flex-start;
  }
  .comments-area .children {
    padding-left: 12px;
  }
  .comment-form .submit {
    width: 100%;
  }
}

/* =========================================
   13. 404
   ========================================= */
.error-404 {
  padding: 64px 20px 80px;
  text-align: center;
  max-width: 720px;
}
.error-404 .archive-header {
  text-align: center;
}

/* =========================================
   14a. Subtle animations (desktop only)
   ========================================= */
@media (min-width: 992px) and (prefers-reduced-motion: no-preference) {
  [data-reveal] {
    opacity: 0;
    transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
    will-change: opacity;
  }
  [data-reveal] > * {
    transform: translateY(18px);
    transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
    will-change: transform;
  }
  .hero[data-reveal] > * {
    transform: none;
    transition: none;
    will-change: auto;
  }
  [data-reveal].is-visible {
    opacity: 1;
  }
  [data-reveal].is-visible > * {
    transform: none;
  }

  .btn {
    transition:
      background-color 0.2s ease,
      color 0.2s ease,
      transform 0.15s ease,
      box-shadow 0.2s ease;
  }
  .btn--primary {
    background-image: linear-gradient(
      135deg,
      var(--color-primary) 0%,
      var(--color-primary-dark) 100%
    );
    background-size: 180% 180%;
    background-position: 0% 50%;
    transition:
      background-position 0.35s ease,
      transform 0.15s ease,
      box-shadow 0.2s ease;
  }
  .btn--primary:hover {
    background-position: 100% 50%;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(34, 197, 94, 0.28);
  }
  .btn--secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.18);
  }

  .card,
  .benefit-card,
  .how-step,
  .testimonial {
    transition:
      transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1),
      box-shadow 0.25s ease,
      border-color 0.2s ease;
  }
  .benefit-card:hover,
  .how-step:hover,
  .testimonial:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
  }
  .card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
  }
  .card__thumb,
  .mega__thumb {
    transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
  }
  .card:hover .card__thumb {
    transform: scale(1.04);
  }
  .mega__post-link:hover .mega__thumb {
    transform: scale(1.06);
  }

  .menu--primary > li > a {
    position: relative;
  }
  .menu--primary > li > a::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 6px;
    height: 2px;
    background: var(--color-primary);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.25s ease;
  }
  .menu--primary > li > a:hover::after,
  .menu--primary > li.current-menu-item > a::after {
    transform: scaleX(1);
  }

  .hero__image,
  .hero__placeholder {
    transition: transform 0.6s ease;
  }
  .hero:hover .hero__image {
    transform: translateY(-2px) scale(1.01);
  }

  .lead-form__input {
    transition:
      border-color 0.2s ease,
      box-shadow 0.2s ease,
      background 0.2s ease;
  }

  .site-header {
    transition:
      background 0.25s ease,
      box-shadow 0.25s ease,
      border-color 0.2s ease;
  }

  @keyframes czFadeIn {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }
  @keyframes czFloat {
    0%,
    100% {
      transform: translateY(0);
    }
    50% {
      transform: translateY(-6px);
    }
  }
  .hero__eyebrow {
    animation: czFadeIn 0.6s ease both;
  }
}

/* =========================================
   14b. Admin "Edit" pill (only visible to logged-in admins)
   ========================================= */
.cz-edit-pill {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(15, 23, 42, 0.85);
  color: #fff !important;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: 999px;
  text-decoration: none !important;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.2);
  opacity: 0;
  transform: translateY(-4px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    background 0.2s ease;
  pointer-events: none;
}
section[data-reveal]:hover > .cz-edit-pill,
.site-footer:hover > .cz-edit-pill,
.cz-edit-pill:focus,
.cz-edit-pill:hover {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.cz-edit-pill:hover {
  background: var(--color-primary);
}
.cz-edit-pill__icon {
  display: inline-flex;
}

/* Make sections positioning context for the pill */
.site-footer,
.hero,
.section {
  position: relative;
}

/* Always show pills on touch devices for admins */
@media (hover: none) {
  .cz-edit-pill {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
}

/* =========================================
   14. Print + reduced motion
   ========================================= */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html {
    scroll-behavior: auto;
  }
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Body locked when mobile menu open */
body.is-nav-open {
  overflow: hidden;
}

/* =========================================
   15. Photo break (full-bleed image dividers)
   ========================================= */
.photo-break {
  position: relative;
  min-height: 360px;
  background-image: var(--pb-img);
  background-size: cover;
  background-position: center;
  background-attachment: scroll;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.photo-break--tall {
  min-height: 480px;
}
@media (min-width: 992px) {
  .photo-break {
    min-height: 480px;
    background-attachment: fixed;
  }
  .photo-break--tall {
    min-height: 600px;
  }
}
.photo-break__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(16, 24, 18, 0.48) 0%,
    rgba(36, 79, 61, 0.38) 100%
  );
}
.photo-break__overlay--dark {
  background: linear-gradient(
    160deg,
    rgba(10, 18, 14, 0.64) 0%,
    rgba(24, 55, 43, 0.52) 100%
  );
}
.photo-break__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 40px 20px;
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.photo-break__quote {
  color: #fff;
  font-size: clamp(1.25rem, 3.2vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin: 0;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.32);
}
.photo-break__cta {
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
}
@media (min-width: 992px) and (prefers-reduced-motion: no-preference) {
  .photo-break__quote {
    animation: czFadeIn 0.8s ease both;
  }
}
