/**
 * Here, Mostly theme — global layout (scoped; does not override Elementor widgets).
 */

:root {
  --hm-blue: #4576bb;
  --hm-blue-dark: #4172b0;
  --hm-text: #383751;
  --hm-review-gray: #ececec;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--hm-text);
  background: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
}

.hm-skip-link:focus {
  position: absolute;
  left: 8px;
  top: 8px;
  z-index: 100000;
  background: #fff;
  padding: 8px 12px;
}

.hm-site-header,
.hm-site-footer {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 16px;
}

.hm-site-header-inner,
.hm-site-footer-inner {
  min-height: 24px;
}

.hm-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px 48px;
}

.hm-main-full-width,
.hm-elementor-canvas .hm-main,
.hm-elementor-page .hm-main {
  max-width: none;
  padding: 0;
}

.hm-elementor-canvas {
  margin: 0;
}

/* Elementor home: no empty theme header band above hero */
body.hm-home-elementor .hm-site-header {
  display: none;
}

body.hm-home-elementor #hm-main,
body.hm-home-elementor .hm-main {
  padding-top: 0;
  margin-top: 0;
}

.hm-footer-copy {
  font-size: 0.85rem;
  color: #777;
  text-align: center;
  margin: 0;
}

/* Reviews — Jon-approved colors */
.hm-reviews {
  background: #fff;
  padding: 32px 16px 56px;
  max-width: 720px;
  margin: 0 auto;
  box-sizing: border-box;
}

.hm-reviews-title {
  text-align: center;
  color: var(--hm-blue);
  font-size: 1.75rem;
  margin: 0 0 24px;
  font-weight: 700;
}

.hm-reviews-panel {
  background: var(--hm-review-gray);
  border-radius: 12px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hm-reviews-panel .hm-reviews-message,
.hm-reviews-panel .hm-reviews-form,
.hm-reviews-panel .hm-reviews-list,
.hm-reviews-panel .hm-reviews-empty {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.hm-reviews-note {
  font-size: 0.85rem;
  color: #666;
  margin: 0 0 16px;
}

.hm-reviews-form {
  display: grid;
  gap: 14px;
}

.hm-reviews-label {
  display: grid;
  gap: 6px;
  font-size: 0.9rem;
  color: #444;
}

.hm-reviews-input {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 10px 12px;
  font: inherit;
}

.hm-reviews-submit {
  background: var(--hm-blue-dark);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px 16px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
}

.hm-reviews-form[disabled] .hm-reviews-submit,
.hm-reviews-submit:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

.hm-reviews-message {
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.9rem;
}

.hm-reviews-message--success {
  background: #e8f5e9;
  color: #2e7d32;
}

.hm-reviews-message--error {
  background: #ffebee;
  color: #c62828;
}

.hm-reviews-list {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 18px;
  text-align: center;
}

.hm-review-item {
  background: #fff;
  border-radius: 8px;
  padding: 14px 16px;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.hm-review-stars {
  margin: 0 0 4px;
}

.hm-review-content {
  margin: 8px 0;
  color: #333;
  line-height: 1.5;
}

.hm-review-meta {
  margin: 0;
  font-size: 0.85rem;
  color: #666;
}

.hm-honeypot {
  position: absolute;
  left: -9999px;
  width: 0;
  height: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.hm-reviews-empty {
  margin: 20px 0 0;
  text-align: center;
  color: #666;
  font-size: 0.95rem;
}

/* Site Reviews (GLSR) inside Jon-approved layout */
.hm-reviews-glsr .glsr-default,
.hm-reviews-glsr .glsr {
  text-align: center;
}

.hm-reviews-glsr .glsr-field,
.hm-reviews-glsr .glsr-review,
.hm-reviews-glsr form {
  margin-left: auto;
  margin-right: auto;
}

.hm-reviews-glsr input[type="text"],
.hm-reviews-glsr input[type="email"],
.hm-reviews-glsr textarea,
.hm-reviews-glsr select {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
}

.hm-reviews-glsr .hm-glsr-form-compact .glsr-field-label,
.hm-reviews-glsr .glsr-form .glsr-field-label {
  font-size: 0.85rem;
  color: #444;
}

.hm-reviews-glsr .hm-glsr-form-compact .glsr-field:nth-child(1) .glsr-field-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

/* Title comes from .hm-reviews-title — avoid duplicate heading above the form */
.hm-reviews-glsr .hm-glsr-form-compact::before {
  content: none;
  display: none;
}

.hm-reviews-glsr .glsr-button,
.hm-reviews-glsr button[type="submit"] {
  background: var(--hm-blue-dark) !important;
  border-radius: 8px !important;
  width: 100%;
  max-width: 280px;
  margin: 12px auto 0;
  display: block;
}

@media (max-width: 767px) {
  .hm-reviews {
    padding: 16px max(14px, env(safe-area-inset-left, 0px)) 36px max(14px, env(safe-area-inset-right, 0px));
  }

  .hm-reviews-title {
    font-size: clamp(1.2rem, 4.8vw, 1.5rem);
    margin: 0 0 12px;
  }

  .hm-reviews-panel {
    padding: 18px 14px;
    max-width: 100%;
  }

  .hm-reviews-input,
  .hm-reviews-form,
  .hm-reviews-glsr form {
    max-width: 100%;
  }

  .hm-reviews-glsr input[type="text"],
  .hm-reviews-glsr textarea {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    font-size: 16px;
  }

  .hm-reviews-glsr .glsr-star-rating {
    font-size: 1.15rem;
  }
}

@media (max-width: 430px) {
  .hm-reviews {
    padding-top: 12px;
    padding-bottom: 28px;
  }

  .hm-reviews-panel {
    padding: 14px 12px;
  }

  .hm-reviews-title {
    font-size: 1.15rem;
    margin-bottom: 10px;
  }
}
