:root {
  --hw-teal: #0f5d56;
  --hw-teal-dark: #0a423d;
  --hw-green: #76b947;
  --hw-mint: #e8f4ed;
  --hw-cream: #f8faf7;
  --hw-white: #ffffff;
  --hw-text: #17211f;
  --hw-muted: #5f6f69;
  --hw-border: #dde7e3;
  --hw-shadow: 0 18px 50px rgba(15, 93, 86, 0.13);
  --hw-radius: 8px;
  --hw-container: 1180px;
  --hw-header-height: 82px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--hw-text);
  background: var(--hw-cream);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

body.admin-bar .hw-site-header {
  top: 32px;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

p {
  margin: 0 0 1rem;
}

.skip-link,
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  z-index: 100000;
  width: auto;
  height: auto;
  margin: 1rem;
  padding: 0.75rem 1rem;
  overflow: visible;
  clip: auto;
  background: var(--hw-white);
  border: 2px solid var(--hw-teal);
  border-radius: var(--hw-radius);
}

.lang-en {
  display: none;
}

html[data-hw-lang="en"] .lang-sl {
  display: none;
}

html[data-hw-lang="en"] .lang-en {
  display: inline;
}

html[data-hw-lang="en"] div.lang-en,
html[data-hw-lang="en"] section.lang-en,
html[data-hw-lang="en"] p.lang-en {
  display: block;
}

.trp-floating-switcher {
  display: none !important;
}

.hw-container {
  width: min(var(--hw-container), calc(100% - 40px));
  margin: 0 auto;
}

.hw-site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(248, 250, 247, 0.94);
  border-bottom: 1px solid rgba(221, 231, 227, 0.9);
  backdrop-filter: blur(18px);
}

.hw-header-inner {
  width: min(1280px, calc(100% - 32px));
  min-height: var(--hw-header-height);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.hw-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 800;
  color: var(--hw-teal-dark);
  flex-shrink: 0;
}

.hw-brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: var(--hw-radius);
  color: var(--hw-white);
  background: linear-gradient(135deg, var(--hw-teal), var(--hw-green));
  font-size: 0.92rem;
  box-shadow: 0 12px 24px rgba(15, 93, 86, 0.2);
}

.hw-brand-text {
  font-size: 1.15rem;
}

.hw-primary-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-left: auto;
  font-size: 0.95rem;
  font-weight: 650;
  color: var(--hw-muted);
}

.hw-primary-nav a {
  padding: 0.55rem 0.15rem;
  border-bottom: 2px solid transparent;
}

.hw-primary-nav a:hover,
.hw-primary-nav a:focus {
  color: var(--hw-teal);
  border-color: var(--hw-green);
}

.hw-header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-left: auto;
}

.hw-phone {
  color: var(--hw-teal-dark);
  font-weight: 750;
  white-space: nowrap;
}

.hw-lang-switch {
  display: inline-flex;
  padding: 0.2rem;
  border: 1px solid var(--hw-border);
  border-radius: 999px;
  background: var(--hw-white);
}

.hw-lang-switch button {
  min-width: 38px;
  padding: 0.4rem 0.55rem;
  color: var(--hw-muted);
  background: transparent;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
}

.hw-lang-switch button[aria-pressed="true"] {
  color: var(--hw-white);
  background: var(--hw-teal);
}

.hw-nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 0;
  background: var(--hw-white);
  border: 1px solid var(--hw-border);
  border-radius: var(--hw-radius);
}

.hw-nav-toggle span:not(.screen-reader-text) {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--hw-teal);
}

.hw-button,
.wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.85rem 1.15rem;
  border: 0;
  border-radius: var(--hw-radius);
  background: var(--hw-teal);
  color: var(--hw-white);
  font-weight: 800;
  line-height: 1.1;
  box-shadow: 0 12px 24px rgba(15, 93, 86, 0.2);
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.hw-button:hover,
.hw-button:focus,
.wp-block-button__link:hover,
.wp-block-button__link:focus {
  transform: translateY(-1px);
  background: var(--hw-teal-dark);
  box-shadow: 0 16px 30px rgba(15, 93, 86, 0.24);
}

.hw-button.secondary {
  color: var(--hw-teal-dark);
  background: var(--hw-white);
  border: 1px solid var(--hw-border);
  box-shadow: none;
}

.hw-button.primary {
  background: linear-gradient(135deg, var(--hw-teal), var(--hw-green));
}

.hw-button.small {
  min-height: 42px;
  padding: 0.7rem 0.9rem;
  font-size: 0.9rem;
}

.hw-main {
  overflow: hidden;
}

.hw-section {
  padding: 88px 0;
}

.hw-section.tight {
  padding: 64px 0;
}

.hw-section.light {
  background: var(--hw-white);
}

.hw-section.mint {
  background: var(--hw-mint);
}

.hw-section.dark {
  color: var(--hw-white);
  background: linear-gradient(135deg, var(--hw-teal-dark), var(--hw-teal));
}

.hw-section-heading {
  max-width: 760px;
  margin: 0 0 2rem;
}

.hw-eyebrow {
  margin: 0 0 0.65rem;
  color: var(--hw-teal);
  font-size: 0.82rem;
  font-weight: 850;
  text-transform: uppercase;
}

.hw-section.dark .hw-eyebrow {
  color: #bce6cc;
}

.hw-section-heading h1,
.hw-section-heading h2,
.hw-page-hero h1,
.hw-hero h1 {
  margin: 0;
  color: var(--hw-text);
  font-weight: 850;
  line-height: 1.04;
}

.hw-section.dark h2,
.hw-section.dark h1 {
  color: var(--hw-white);
}

.hw-section-heading h2,
.hw-page-hero h1 {
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.hw-section-heading p,
.hw-page-hero p {
  max-width: 680px;
  margin-top: 1rem;
  color: var(--hw-muted);
  font-size: 1.08rem;
}

.hw-section.dark p {
  color: rgba(255, 255, 255, 0.82);
}

.hw-hero {
  position: relative;
  min-height: calc(100vh - var(--hw-header-height));
  display: grid;
  align-items: center;
  padding: 96px 0;
  color: var(--hw-white);
  background:
    linear-gradient(90deg, rgba(10, 66, 61, 0.92), rgba(10, 66, 61, 0.62) 44%, rgba(10, 66, 61, 0.12) 76%),
    linear-gradient(135deg, var(--hw-teal-dark), var(--hw-teal));
}

.hw-hero.has-image {
  background-image:
    linear-gradient(90deg, rgba(10, 66, 61, 0.92), rgba(10, 66, 61, 0.62) 44%, rgba(10, 66, 61, 0.12) 76%),
    url("../img/hero-homewise.png");
  background-size: cover;
  background-position: center;
}

.hw-hero::after {
  position: absolute;
  inset: auto 0 0;
  height: 120px;
  content: "";
  background: linear-gradient(180deg, rgba(248, 250, 247, 0), var(--hw-cream));
}

.hw-hero-content {
  position: relative;
  z-index: 1;
  width: min(760px, calc(100% - 40px));
  margin: 0 auto 0 max(20px, calc((100vw - var(--hw-container)) / 2));
}

.hw-hero h1 {
  color: var(--hw-white);
  font-size: clamp(2.5rem, 6vw, 5.5rem);
}

.hw-hero p {
  max-width: 680px;
  margin: 1.25rem 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
}

.hw-hero-actions,
.hw-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.75rem;
}

.hw-hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 2rem;
}

.hw-hero-proof span {
  padding: 0.5rem 0.75rem;
  color: var(--hw-white);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  backdrop-filter: blur(8px);
  font-size: 0.9rem;
  font-weight: 700;
}

.hw-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.hw-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hw-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hw-card,
.hw-step,
.hw-price-card,
.hw-faq details {
  padding: 1.25rem;
  background: var(--hw-white);
  border: 1px solid var(--hw-border);
  border-radius: var(--hw-radius);
  box-shadow: 0 8px 22px rgba(15, 93, 86, 0.06);
}

.hw-card h3,
.hw-step h3,
.hw-price-card h3 {
  margin: 0 0 0.6rem;
  color: var(--hw-teal-dark);
  font-size: 1.1rem;
  line-height: 1.2;
}

.hw-card p,
.hw-step p,
.hw-price-card p,
.hw-faq p {
  color: var(--hw-muted);
}

.hw-card-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  margin-bottom: 1rem;
  color: var(--hw-teal);
  background: var(--hw-mint);
  border-radius: var(--hw-radius);
  font-weight: 850;
}

.hw-trust-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  padding: 1rem;
  background: var(--hw-white);
  border: 1px solid var(--hw-border);
  border-radius: var(--hw-radius);
  box-shadow: var(--hw-shadow);
}

.hw-trust-item {
  padding: 0.75rem;
}

.hw-trust-item strong {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--hw-teal-dark);
}

.hw-ai-feature {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 2.5rem;
  align-items: center;
}

.hw-device-panel {
  position: relative;
  min-height: 420px;
  padding: 2rem;
  overflow: hidden;
  background: linear-gradient(145deg, #102d2a, #0f5d56);
  border-radius: var(--hw-radius);
  box-shadow: var(--hw-shadow);
}

.hw-device {
  max-width: 420px;
  margin: 2rem auto 0;
  padding: 1rem;
  background: #111c1a;
  border: 12px solid #263936;
  border-radius: 24px;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.28);
}

.hw-device-screen {
  min-height: 260px;
  padding: 1rem;
  color: var(--hw-white);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.12), rgba(118, 185, 71, 0.12));
  border-radius: 14px;
}

.hw-chat-row {
  margin-bottom: 0.75rem;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.12);
  border-radius: var(--hw-radius);
}

.hw-chat-row.answer {
  margin-left: 2rem;
  background: rgba(118, 185, 71, 0.24);
}

.hw-process {
  counter-reset: process;
}

.hw-step {
  position: relative;
  padding-top: 4rem;
}

.hw-step::before {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  counter-increment: process;
  content: counter(process);
  color: var(--hw-white);
  background: var(--hw-teal);
  border-radius: 50%;
  font-weight: 850;
}

.hw-price-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.hw-price-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
}

.hw-price-card.featured {
  border-color: rgba(118, 185, 71, 0.75);
  box-shadow: var(--hw-shadow);
}

.hw-price {
  margin: 0.75rem 0;
  color: var(--hw-teal-dark);
  font-size: 1.55rem;
  font-weight: 850;
}

.hw-price small {
  display: block;
  color: var(--hw-muted);
  font-size: 0.85rem;
  font-weight: 650;
}

.hw-price-card ul {
  padding-left: 1.1rem;
  margin: 0 0 1.25rem;
  color: var(--hw-muted);
}

.hw-price-card .hw-button {
  margin-top: auto;
}

.hw-note {
  margin-top: 1rem;
  color: var(--hw-muted);
  font-size: 0.95rem;
}

.hw-page-hero {
  padding: 86px 0 54px;
  background: linear-gradient(135deg, var(--hw-mint), var(--hw-cream));
}

.hw-page-hero .hw-container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.5fr);
  gap: 2rem;
  align-items: end;
}

.hw-page-stat {
  padding: 1.25rem;
  background: var(--hw-white);
  border: 1px solid var(--hw-border);
  border-radius: var(--hw-radius);
  box-shadow: var(--hw-shadow);
}

.hw-page-stat strong {
  display: block;
  color: var(--hw-teal);
  font-size: 2.2rem;
  line-height: 1;
}

.hw-solution {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 2rem;
  align-items: start;
  padding: 2rem 0;
  border-top: 1px solid var(--hw-border);
}

.hw-solution:first-child {
  border-top: 0;
}

.hw-solution h2 {
  margin: 0;
  color: var(--hw-teal-dark);
  font-size: clamp(1.6rem, 3vw, 2.3rem);
}

.hw-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}

.hw-benefits span {
  padding: 0.45rem 0.65rem;
  color: var(--hw-teal-dark);
  background: var(--hw-mint);
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 750;
}

.hw-faq {
  display: grid;
  gap: 0.75rem;
}

.hw-faq summary {
  color: var(--hw-teal-dark);
  font-weight: 800;
  cursor: pointer;
}

.hw-faq details[open] summary {
  margin-bottom: 0.75rem;
}

.hw-contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 2rem;
  align-items: start;
}

.hw-contact-card {
  padding: 1.5rem;
  background: var(--hw-white);
  border: 1px solid var(--hw-border);
  border-radius: var(--hw-radius);
  box-shadow: var(--hw-shadow);
}

.hw-contact-card a {
  display: block;
  margin-top: 0.75rem;
  color: var(--hw-teal);
  font-weight: 800;
}

.hw-form-panel {
  padding: 1.5rem;
  background: var(--hw-white);
  border: 1px solid var(--hw-border);
  border-radius: var(--hw-radius);
  box-shadow: var(--hw-shadow);
}

.hw-lead-form {
  display: grid;
  gap: 1rem;
}

.hw-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.hw-lead-form label,
.hw-checkbox-group {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  color: var(--hw-teal-dark);
  font-weight: 750;
}

.hw-lead-form input,
.hw-lead-form select,
.hw-lead-form textarea {
  width: 100%;
  min-height: 46px;
  padding: 0.75rem 0.85rem;
  color: var(--hw-text);
  background: var(--hw-cream);
  border: 1px solid var(--hw-border);
  border-radius: var(--hw-radius);
  font: inherit;
}

.hw-lead-form textarea {
  resize: vertical;
}

.hw-checkbox-group {
  padding: 1rem;
  border: 1px solid var(--hw-border);
  border-radius: var(--hw-radius);
}

.hw-checkbox-group label,
.hw-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  color: var(--hw-muted);
  font-weight: 650;
}

.hw-checkbox-group input,
.hw-consent input {
  width: auto;
  min-height: 0;
  margin-top: 0.35rem;
}

.hw-form-notice {
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  border-radius: var(--hw-radius);
  font-weight: 750;
}

.hw-form-notice.success {
  color: #174126;
  background: #ddf6e4;
}

.hw-form-notice.error {
  color: #6d1b1b;
  background: #fde2e2;
}

.hw-calendly-placeholder {
  padding: 1.25rem;
  color: var(--hw-muted);
  background: var(--hw-mint);
  border: 1px dashed var(--hw-green);
  border-radius: var(--hw-radius);
}

.hw-site-footer {
  color: rgba(255, 255, 255, 0.82);
  background: #102d2a;
}

.hw-footer-inner {
  width: min(var(--hw-container), calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 2rem;
  padding: 54px 0 36px;
}

.hw-site-footer .hw-brand {
  color: var(--hw-white);
}

.hw-footer-brand p {
  max-width: 360px;
  margin-top: 1rem;
}

.hw-footer-links {
  display: grid;
  align-content: start;
  gap: 0.55rem;
}

.hw-footer-links h2 {
  margin: 0 0 0.3rem;
  color: var(--hw-white);
  font-size: 1rem;
}

.hw-footer-links a:hover {
  color: var(--hw-white);
}

.hw-footer-bottom {
  width: min(var(--hw-container), calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.9rem;
}

@media (max-width: 1100px) {
  .hw-primary-nav,
  .hw-phone {
    display: none;
  }

  .hw-nav-toggle {
    display: block;
  }

  .hw-primary-nav.is-open {
    position: absolute;
    top: calc(var(--hw-header-height) - 4px);
    right: 16px;
    left: 16px;
    display: grid;
    gap: 0;
    padding: 0.75rem;
    background: var(--hw-white);
    border: 1px solid var(--hw-border);
    border-radius: var(--hw-radius);
    box-shadow: var(--hw-shadow);
  }

  .hw-primary-nav.is-open a {
    padding: 0.85rem;
    border-bottom: 1px solid var(--hw-border);
  }

  .hw-primary-nav.is-open a:last-child {
    border-bottom: 0;
  }

  .hw-grid,
  .hw-grid.three,
  .hw-price-grid,
  .hw-trust-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hw-ai-feature,
  .hw-page-hero .hw-container,
  .hw-solution,
  .hw-contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  body.admin-bar .hw-site-header {
    top: 0;
  }

  .hw-header-inner {
    width: min(100% - 24px, 1280px);
  }

  .hw-header-actions .hw-button {
    display: none;
  }

  .hw-brand-text {
    font-size: 1rem;
  }

  .hw-section {
    padding: 64px 0;
  }

  .hw-hero {
    min-height: auto;
    padding: 84px 0 112px;
    background-position: 62% center;
  }

  .hw-hero-content {
    width: min(100% - 32px, 760px);
    margin: 0 auto;
  }

  .hw-grid,
  .hw-grid.three,
  .hw-grid.two,
  .hw-price-grid,
  .hw-trust-bar,
  .hw-field-grid {
    grid-template-columns: 1fr;
  }

  .hw-device-panel {
    min-height: 320px;
    padding: 1rem;
  }

  .hw-device {
    margin-top: 0.5rem;
    border-width: 8px;
  }

  .hw-footer-inner {
    grid-template-columns: 1fr;
  }

  .hw-footer-bottom {
    flex-direction: column;
  }

}
