/* ==========================================
   CLARKE CASES — page shell only.
   Section-specific styling lives in partials/css/cases-*.css.
   ========================================== */

:is(.uzeda-home) {
  --home-primary: var(--uzeda-color-primary, #1a1a2e);
  --home-green: var(--uzeda-color-secondary, #00BF6A);
  --home-green-2: var(--uzeda-color-secondary-2, #d5ece0);
  --home-green-dark: #0b7c4d;
  --home-ink: var(--uzeda-color-heading-black, #0f172a);
  --home-ink-light: var(--uzeda-color-heading-light, #f8fafc);
  --home-muted: var(--uzeda-color-text, #475569);
  --home-bg: var(--uzeda-color-bg, #ffffff);
  --home-line: var(--uzeda-color-border, #e2e8f0);
  --home-surface: var(--uzeda-color-surface, #f8fafc);
  --home-dark: #0f1b14;
  --home-dark-2: #0f5f3d;
  --home-dark-3: #0c3d26;
  --home-on-dark: #f8fafc;
  --home-link-soft: #d1fae5;
  --home-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
  --home-type-h1: clamp(32px, 2.6vw + 16px, 44px);
  --home-type-h1-mobile: 32px;
  --home-type-h2: clamp(28px, 2.15vw, 32px);
  --home-type-h2-mobile: 26px;
  --home-type-body: 15px;
  --home-type-body-lg: 16px;
  --home-type-card-title: 17px;
  --home-type-small: 13px;
  font-family: var(--cb-font, 'Nunito Sans', system-ui, sans-serif);
  color: var(--home-ink);
  background: var(--home-bg);
  line-height: 1.3;
}

:is(.uzeda-home) * {
  box-sizing: border-box;
}

:is(.uzeda-home) a {
  color: inherit;
  text-decoration: none;
}

.home-container {
  max-width: var(--uzeda-container, 1280px);
  margin: 0 auto;
  padding: 0 24px;
}

.home-section {
  padding: 55px 0;
}

.home-heading__highlight {
  color: var(--home-green);
}

:is(.uzeda-home) .cb-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 0;
  padding: 0 0 15px;
  list-style: none;
  font-size: 13px;
}

:is(.uzeda-home) .cb-breadcrumb__item {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
}

:is(.uzeda-home) .cb-breadcrumb__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  font-weight: 400;
  transition: color 0.2s ease;
}

:is(.uzeda-home) .cb-breadcrumb__link:hover {
  color: var(--home-green);
}

:is(.uzeda-home) .cb-breadcrumb__link svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

:is(.uzeda-home) .cb-breadcrumb__sep {
  color: rgba(255, 255, 255, 0.35);
  padding: 0 8px;
  user-select: none;
}

:is(.uzeda-home) .cb-breadcrumb__current {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
}

/* Used by the shared home-final-cta.php newsletter form (partials/home-final-cta.php) */
.home-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 15px;
  border-radius: 999px;
  background: var(--home-on-dark);
  color: var(--home-dark);
  font-size: 14px;
  font-weight: 500;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-btn--solid {
  background: var(--home-dark);
  color: var(--home-on-dark);
}

.home-btn--ghost {
  background: transparent;
  color: var(--home-dark);
  border-color: var(--home-line);
}

.home-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--home-shadow);
}

/* Hero (partials/home-hero.php) */
.home-section--hero-gradient {
  background: linear-gradient(274deg, var(--uzeda-topbar-start, #2E2E2E) 0%, var(--uzeda-topbar-end, #005931) 100%);
  color: var(--home-on-dark);
  position: relative;
  overflow: hidden;
}

.home-section--hero-gradient::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(0, 191, 111, 0.06) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}

.home-section--hero-gradient .home-container {
  position: relative;
  z-index: 1;
}

.home-section__header {
  max-width: 720px;
  margin-bottom: 32px;
}

.home-section__header--testimonials {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.home-section__header.home-section__header--testimonials {
  max-width: 900px;
}

.home-section__header h2,
.home-hero__card h2 {
  font-size: var(--home-type-h2);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: 0;
}

.home-section__header h2 {
  margin: 0 0 12px;
}

.home-section__header p {
  color: var(--home-muted);
  font-size: var(--home-type-body);
  line-height: 1.58;
  margin: 0;
}

.home-section--hero-gradient .home-section__header h2 {
  color: var(--home-on-dark);
}

.home-testimonials-shortcode {
  width: 100%;
}

:is(.home-hero, .MegaHero, .PageHero) {
  padding: 62px 0 68px;
  background: linear-gradient(274deg, var(--uzeda-topbar-start, #2E2E2E) 0%, var(--uzeda-topbar-end, #005931) 100%);
  color: var(--home-on-dark);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(0, 191, 111, 0.15);
  min-height: 460px;
  isolation: isolate;
  contain: layout style;
}

.home-hero {
  background-image:
    linear-gradient(90deg, rgba(15, 23, 42, 0.82) 0%, rgba(0, 89, 49, 0.7) 48%, rgba(0, 89, 49, 0.28) 100%),
    var(--clarke-home-hero-image, image-set(url('/wp-content/uploads/2026/05/home-hero.avif') type('image/avif'), url('/wp-content/uploads/2026/05/home-hero.webp') type('image/webp')));
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

:is(.home-hero, .MegaHero, .PageHero)::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(0, 191, 111, 0.06) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}

:is(.home-hero, .MegaHero, .PageHero) .home-container {
  position: relative;
  z-index: 1;
}

.home-hero__grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 48px;
  align-items: center;
}

.home-hero__visual {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background: var(--home-bg);
  border-radius: 20px;
  box-shadow: var(--home-shadow);
  overflow: hidden;
}

.uzeda-cases .home-hero__visual {
  padding: 0;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

.uzeda-cases .home-hero__visual img {
  max-width: 480px;
}

.home-hero__visual img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 320px;
  object-fit: contain;
}

#hs-eu-cookie-confirmation {
  top: auto !important;
  bottom: 24px !important;
}

.home-hero__content {
  width: 100%;
  max-width: 640px;
}

.home-hero__grid--single {
  grid-template-columns: 1fr;
}

.home-hero__grid--single .home-hero__content {
  max-width: 720px;
}

.home-hero__content h1 {
  font-size: var(--home-type-h1);
  font-weight: 700;
  color: #fff;
  margin: 0 0 34px;
  line-height: 1.12;
}

.home-hero__title-line,
.home-hero__title--reference .home-hero__highlight {
  display: block;
}

.home-hero__highlight {
  color: var(--home-green);
}

.home-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
  font-weight: 700;
  color: rgba(248, 250, 252, 0.7);
}

.home-eyebrow::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--home-green);
  flex-shrink: 0;
}

.home-lead {
  color: rgba(255, 255, 255, 0.78);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.625;
  margin: 0;
}

.home-hero__actions {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 42px;
  margin-bottom: 16px;
}

:is(.home-hero, .MegaHero, .PageHero) .home-btn {
  background: var(--home-green);
  color: #fff;
  border-color: transparent;
  padding: 12px 28px;
  font-size: 15px;
  gap: 8px;
  transition: transform 0.2s cubic-bezier(0.4,0,0.2,1), box-shadow 0.2s cubic-bezier(0.4,0,0.2,1), background 0.2s ease;
}

:is(.home-hero, .MegaHero, .PageHero) .home-btn:hover {
  background: var(--home-green-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(14, 166, 102, 0.35);
}

:is(.home-hero, .MegaHero, .PageHero) .home-btn:focus-visible {
  outline: 2px solid var(--home-green);
  outline-offset: 2px;
}

:is(.home-hero, .MegaHero, .PageHero) .home-btn .home-btn__arrow {
  display: inline-block;
  width: 16px;
  height: 16px;
  transition: transform 0.2s cubic-bezier(0.4,0,0.2,1);
}

:is(.home-hero, .MegaHero, .PageHero) .home-btn:hover .home-btn__arrow {
  transform: translateX(3px);
}

.home-link {
  color: var(--home-link-soft);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  position: relative;
  font-size: 15px;
  transition: color 0.2s ease;
}

.home-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--home-green);
  border-radius: 1px;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.home-link:hover::after {
  width: 100%;
}

.home-link:hover {
  color: #fff;
}

.home-link:focus-visible {
  outline: 2px solid var(--home-green);
  outline-offset: 2px;
}

.home-link .home-link__arrow {
  display: inline-block;
  width: 14px;
  height: 14px;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.home-link:hover .home-link__arrow {
  transform: translateX(3px);
}

.home-hero__card {
  background: var(--home-bg);
  color: #0f172a;
  padding: 28px;
  border-radius: 20px;
  box-shadow: var(--home-shadow);
}

.home-hero__card--hubspot {
  min-height: 220px;
}

.home-hero__card--analise-gratuita {
  background: transparent;
  min-height: 420px;
  padding: 0;
  box-shadow: none;
  contain: layout style;
  display: block;
}

.home-hero__card--analise-gratuita .clag-widget {
  width: 100%;
  min-height: 420px;
  overflow: hidden;
}

.home-hero__media {
  background: var(--home-bg);
  border-radius: 20px;
  box-shadow: var(--home-shadow);
  overflow: hidden;
}

.home-hero__media img {
  display: block;
  width: 100%;
  height: auto;
}

.home-hero__card h2 {
  margin: 0 0 8px;
}

.home-hero__card p {
  margin: 0 0 18px;
  color: var(--home-muted);
}

.home-hero__form {
  display: grid;
  gap: 14px;
}

.home-hero__form label span {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 6px;
}

.home-hero__form input,
.home-hero__form select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--home-line);
  font-size: 14px;
}

@media (max-width: 1024px) {
  .home-hero__grid {
    grid-template-columns: 1fr;
  }

  .uzeda-cases .home-hero {
    padding: 56px 0 52px;
  }

  .uzeda-cases .home-hero__visual img {
    max-width: 420px;
  }
}

@media (max-width: 640px) {
  .home-container {
    padding: 0 18px;
  }

  .home-section {
    padding: 34px 0;
  }

  .home-hero {
    padding: 66px 0 56px;
    min-height: auto;
  }

  .uzeda-cases .home-hero {
    padding: 44px 0 38px;
  }

  .uzeda-cases .home-hero__grid {
    gap: 18px;
  }

  .uzeda-cases .home-hero__visual img {
    max-width: 300px;
  }

  #hs-eu-cookie-confirmation {
    top: auto !important;
    right: 16px !important;
    bottom: 16px !important;
    left: 16px !important;
    width: auto !important;
    max-height: 220px !important;
    overflow: auto !important;
    border-radius: 16px !important;
  }

  #hs-eu-cookie-confirmation-inner {
    padding: 16px !important;
  }

  #hs-eu-policy-wording p {
    max-height: 104px !important;
    overflow: auto !important;
    font-size: 12px !important;
    line-height: 1.45 !important;
  }

  #hs-eu-cookie-confirmation-buttons-area,
  #hs-eu-confirmation-button-group,
  #hs-eu-opt-in-buttons {
    width: 100% !important;
  }

  #hs-eu-confirmation-button {
    width: 100% !important;
    min-height: 42px !important;
  }

  .home-hero__card--analise-gratuita {
    min-height: 390px;
  }

  .home-hero__card--analise-gratuita .clag-widget {
    min-height: 390px;
  }

  .home-hero__content h1 {
    font-size: var(--home-type-h1-mobile);
  }

  .home-section__header h2,
  .home-hero__card h2 {
    font-size: var(--home-type-h2-mobile);
  }
}
