/* ============================================================
   Harmony Distribution — Sites Niches — Shared CSS
   Modern B2B landing page — Mobile-first responsive
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --hd-dark: #00382A;
  --hd-green: #007C58;
  --hd-accent: #00A86B;
  --hd-light: #E8F5F0;
  --hd-warm: #F9FAFB;
  --hd-white: #FFFFFF;
  --hd-gray-50: #F9FAFB;
  --hd-gray-100: #F3F4F6;
  --hd-gray-200: #E5E7EB;
  --hd-gray-300: #D1D5DB;
  --hd-gray-400: #9CA3AF;
  --hd-gray-500: #6B7280;
  --hd-gray-600: #4B5563;
  --hd-gray-700: #374151;
  --hd-gray-800: #1F2937;
  --hd-gray-900: #111827;
  --hd-red: #DC2626;
  --hd-red-light: #FEE2E2;
  --hd-orange: #F59E0B;
  --hd-orange-light: #FEF3C7;
  --hd-radius-sm: 0.5rem;
  --hd-radius: 1rem;
  --hd-radius-xl: 1.5rem;
  --hd-radius-full: 9999px;
  --hd-shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --hd-shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  --hd-shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
  --hd-shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
  --hd-transition: 200ms ease;
  --hd-max-w: 1280px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--hd-gray-800);
  background: var(--hd-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul, ol { list-style: none; }

/* ── Container ── */
.container {
  max-width: var(--hd-max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Typography ── */
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 1rem;
  border-radius: var(--hd-radius-full);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.025em;
}
.section-badge--green {
  background: rgba(0, 168, 107, 0.1);
  color: var(--hd-accent);
}
.section-badge--dark {
  background: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.9);
}
.section-badge--red {
  background: var(--hd-red-light);
  color: var(--hd-red);
}
.section-badge svg,
.section-badge .badge-icon {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}
.section-title {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--hd-gray-900);
}
.section-subtitle {
  font-size: 1.125rem;
  color: var(--hd-gray-500);
  line-height: 1.7;
  max-width: 640px;
}
.section-header {
  margin-bottom: 3rem;
}
.section-header .section-badge { margin-bottom: 1rem; }
.section-header .section-title { margin-bottom: 0.75rem; }

@media (min-width: 768px) {
  .section-title { font-size: 2.5rem; }
}
@media (min-width: 1024px) {
  .section-title { font-size: 3rem; }
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--hd-radius-sm);
  font-size: 0.9375rem;
  font-weight: 600;
  transition: all var(--hd-transition);
  white-space: nowrap;
  line-height: 1.4;
}
.btn svg { width: 1.125rem; height: 1.125rem; flex-shrink: 0; }
.btn-primary {
  background: var(--hd-accent);
  color: var(--hd-white);
}
.btn-primary:hover { background: var(--hd-green); transform: translateY(-1px); box-shadow: var(--hd-shadow-md); }
.btn-white {
  background: var(--hd-white);
  color: var(--hd-dark);
}
.btn-white:hover { background: var(--hd-gray-100); transform: translateY(-1px); box-shadow: var(--hd-shadow-md); }
.btn-outline-white {
  background: transparent;
  color: var(--hd-white);
  border: 2px solid rgba(255,255,255,0.4);
}
.btn-outline-white:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.7); }
.btn-lg { padding: 1rem 2rem; font-size: 1.0625rem; border-radius: var(--hd-radius); }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.875rem; }

/* ── Header ── */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--hd-white);
  border-bottom: 1px solid transparent;
  transition: all var(--hd-transition);
}
.header.scrolled {
  border-bottom-color: var(--hd-gray-200);
  box-shadow: var(--hd-shadow);
}
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}
.header-logo {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--hd-dark);
  letter-spacing: -0.025em;
}
.header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.header-phone {
  display: none;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--hd-gray-600);
}
.header-phone svg { width: 1rem; height: 1rem; }
@media (min-width: 640px) {
  .header-phone { display: flex; }
}

/* ── Hero ── */
.hero {
  background: linear-gradient(135deg, var(--hd-dark) 0%, var(--hd-green) 100%);
  color: var(--hd-white);
  padding: 4rem 0 0;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(circle, rgba(0,168,107,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero-badge { margin-bottom: 1.5rem; }
.hero h1 {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  max-width: 720px;
}
.hero h1 .accent {
  color: var(--hd-accent);
}
.hero-subtitle {
  font-size: 1.125rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.8);
  max-width: 600px;
  margin-bottom: 2rem;
}
.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 3rem;
}
.hero-stats {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding: 1.25rem 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.hero-stat {
  text-align: center;
}
.hero-stat-value {
  font-size: 0.9375rem;
  font-weight: 700;
  margin-bottom: 0.125rem;
}
.hero-stat-label {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.6);
}
@media (min-width: 768px) {
  .hero { padding: 5rem 0 0; }
  .hero h1 { font-size: 3rem; }
  .hero-subtitle { font-size: 1.25rem; }
}
@media (min-width: 1024px) {
  .hero { padding: 6rem 0 0; }
  .hero h1 { font-size: 3.5rem; }
}

/* ── Sections ── */
.section { padding: 4rem 0; }
.section--warm { background: var(--hd-warm); }
.section--light { background: var(--hd-light); }
.section--dark {
  background: var(--hd-dark);
  color: var(--hd-white);
}
.section--dark .section-title { color: var(--hd-white); }
.section--dark .section-subtitle { color: rgba(255,255,255,0.7); }
@media (min-width: 768px) {
  .section { padding: 5rem 0; }
}
@media (min-width: 1024px) {
  .section { padding: 6rem 0; }
}

/* ── Grid ── */
.grid {
  display: grid;
  gap: 1.5rem;
}
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ── Cards ── */
.card {
  background: var(--hd-white);
  border: 1px solid var(--hd-gray-200);
  border-radius: var(--hd-radius-xl);
  padding: 1.75rem;
  transition: all var(--hd-transition);
}
.card:hover {
  box-shadow: var(--hd-shadow-md);
  transform: translateY(-2px);
}
.card-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: var(--hd-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  flex-shrink: 0;
}
.card-icon svg { width: 1.5rem; height: 1.5rem; }
.card-icon--green { background: var(--hd-light); color: var(--hd-accent); }
.card-icon--red { background: var(--hd-red-light); color: var(--hd-red); }
.card-icon--orange { background: var(--hd-orange-light); color: var(--hd-orange); }
.card-title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--hd-gray-900);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}
.card-desc {
  font-size: 0.9375rem;
  color: var(--hd-gray-500);
  line-height: 1.6;
}
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-top: 1rem;
}
.tag {
  display: inline-block;
  padding: 0.25rem 0.625rem;
  border-radius: var(--hd-radius-full);
  font-size: 0.75rem;
  font-weight: 500;
  background: var(--hd-light);
  color: var(--hd-green);
}

/* ── Dark section cards ── */
.section--dark .card {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.1);
}
.section--dark .card:hover {
  background: rgba(255,255,255,0.08);
}

/* ── Engagements ── */
.engagement-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  border-radius: var(--hd-radius);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
}
.engagement-check {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: rgba(0,168,107,0.2);
  color: var(--hd-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.engagement-check svg { width: 1rem; height: 1rem; }
.engagement-text {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.9);
  line-height: 1.5;
  padding-top: 0.25rem;
}

/* ── Simulator ── */
.simulator {
  background: var(--hd-white);
  border-radius: var(--hd-radius-xl);
  padding: 2rem;
  border: 1px solid var(--hd-gray-200);
}
.simulator-header {
  text-align: center;
  margin-bottom: 2rem;
}
.simulator-slider-group {
  margin-bottom: 2rem;
}
.simulator-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  font-size: 0.9375rem;
  font-weight: 500;
}
.simulator-value {
  font-weight: 700;
  color: var(--hd-accent);
  font-size: 1.125rem;
}
.simulator-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: var(--hd-gray-200);
  outline: none;
  transition: all var(--hd-transition);
}
.simulator-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--hd-accent);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,168,107,0.3);
  transition: all var(--hd-transition);
}
.simulator-range::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  box-shadow: 0 3px 10px rgba(0,168,107,0.4);
}
.simulator-range::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--hd-accent);
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 6px rgba(0,168,107,0.3);
}
.simulator-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.simulator-col {
  padding: 1.5rem;
  border-radius: var(--hd-radius);
  text-align: center;
}
.simulator-col--competitor {
  background: var(--hd-gray-50);
  border: 1px solid var(--hd-gray-200);
}
.simulator-col--hd {
  background: var(--hd-light);
  border: 2px solid var(--hd-accent);
}
.simulator-col-label {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
  color: var(--hd-gray-500);
}
.simulator-col--hd .simulator-col-label { color: var(--hd-green); }
.simulator-col-price {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--hd-gray-800);
}
.simulator-col--hd .simulator-col-price { color: var(--hd-accent); }
.simulator-col-unit {
  font-size: 0.8125rem;
  color: var(--hd-gray-400);
  margin-top: 0.25rem;
}
.simulator-savings {
  text-align: center;
  padding: 1.5rem;
  border-radius: var(--hd-radius);
  background: linear-gradient(135deg, var(--hd-dark) 0%, var(--hd-green) 100%);
  color: var(--hd-white);
  margin-bottom: 2rem;
}
.simulator-savings-label {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 0.25rem;
}
.simulator-savings-amount {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--hd-accent);
}
.simulator-products {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 640px) {
  .simulator-products { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .simulator-products { grid-template-columns: repeat(4, 1fr); }
}
.product-card {
  background: var(--hd-gray-50);
  border: 1px solid var(--hd-gray-200);
  border-radius: var(--hd-radius);
  padding: 1.25rem;
  text-align: center;
  transition: all var(--hd-transition);
}
.product-card:hover { border-color: var(--hd-accent); box-shadow: var(--hd-shadow); }
.product-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--hd-gray-800);
  margin-bottom: 0.375rem;
}
.product-price {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--hd-accent);
  margin-bottom: 0.25rem;
}
.product-detail {
  font-size: 0.75rem;
  color: var(--hd-gray-400);
}

/* ── Testimonials ── */
.testimonial-card {
  background: var(--hd-white);
  border: 1px solid var(--hd-gray-200);
  border-radius: var(--hd-radius-xl);
  padding: 2rem;
  position: relative;
}
.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: 1rem;
  left: 1.5rem;
  font-size: 4rem;
  line-height: 1;
  color: var(--hd-light);
  font-family: Georgia, serif;
}
.testimonial-quote {
  font-style: italic;
  font-size: 1rem;
  color: var(--hd-gray-700);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}
.testimonial-author {
  font-size: 0.875rem;
  color: var(--hd-gray-500);
}
.testimonial-author strong {
  color: var(--hd-gray-800);
  font-weight: 600;
}

/* ── FAQ Accordion ── */
.faq-item {
  background: var(--hd-white);
  border: 1px solid var(--hd-gray-200);
  border-radius: var(--hd-radius);
  overflow: hidden;
  transition: all var(--hd-transition);
}
.faq-item + .faq-item { margin-top: 0.75rem; }
.faq-item.open { border-color: var(--hd-accent); }
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--hd-gray-800);
  text-align: left;
  background: transparent;
  transition: all var(--hd-transition);
}
.faq-question:hover { color: var(--hd-accent); }
.faq-chevron {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--hd-gray-400);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}
.faq-item.open .faq-chevron { transform: rotate(180deg); color: var(--hd-accent); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.faq-answer-inner {
  padding: 0 1.5rem 1.25rem;
  font-size: 0.9375rem;
  color: var(--hd-gray-600);
  line-height: 1.7;
}

/* ── CTA Section ── */
.cta-section {
  background: linear-gradient(135deg, var(--hd-dark) 0%, var(--hd-green) 100%);
  color: var(--hd-white);
  padding: 5rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(circle, rgba(0,168,107,0.1) 0%, transparent 70%);
  pointer-events: none;
}
.cta-section .container { position: relative; z-index: 1; }
.cta-section h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 1rem;
}
.cta-section p {
  font-size: 1.125rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 2rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}
.cta-section .promo-code {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: var(--hd-radius-sm);
  padding: 0.25rem 0.75rem;
  font-weight: 700;
  font-family: monospace;
  font-size: 1rem;
  letter-spacing: 0.05em;
}
@media (min-width: 768px) {
  .cta-section h2 { font-size: 2.5rem; }
}

/* ── Modal ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.modal {
  background: var(--hd-white);
  border-radius: var(--hd-radius-xl);
  padding: 2.5rem;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.25s ease;
}
.modal-overlay.active .modal {
  transform: translateY(0) scale(1);
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}
.modal-title {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--hd-gray-900);
}
.modal-close {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--hd-gray-400);
  transition: all var(--hd-transition);
}
.modal-close:hover { background: var(--hd-gray-100); color: var(--hd-gray-600); }
.modal-close svg { width: 1.25rem; height: 1.25rem; }
.form-group { margin-bottom: 1.25rem; }
.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--hd-gray-700);
  margin-bottom: 0.375rem;
}
.form-input,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--hd-gray-300);
  border-radius: var(--hd-radius-sm);
  font-size: 0.9375rem;
  font-family: inherit;
  color: var(--hd-gray-800);
  background: var(--hd-white);
  transition: all var(--hd-transition);
  outline: none;
}
.form-input:focus,
.form-textarea:focus {
  border-color: var(--hd-accent);
  box-shadow: 0 0 0 3px rgba(0,168,107,0.1);
}
.form-textarea { resize: vertical; min-height: 100px; }
.form-submit {
  width: 100%;
  padding: 0.875rem;
  background: var(--hd-accent);
  color: var(--hd-white);
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--hd-radius-sm);
  border: none;
  cursor: pointer;
  transition: all var(--hd-transition);
}
.form-submit:hover { background: var(--hd-green); }
.form-submit:disabled { opacity: 0.6; cursor: not-allowed; }
.form-message {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: var(--hd-radius-sm);
  font-size: 0.875rem;
  display: none;
}
.form-message--success {
  display: block;
  background: var(--hd-light);
  color: var(--hd-green);
}
.form-message--error {
  display: block;
  background: var(--hd-red-light);
  color: var(--hd-red);
}

/* ── Sticky mobile CTA ── */
.mobile-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  padding: 0.75rem 1rem;
  background: var(--hd-white);
  border-top: 1px solid var(--hd-gray-200);
  box-shadow: 0 -4px 12px rgba(0,0,0,0.08);
  display: flex;
}
.mobile-cta .btn { flex: 1; justify-content: center; }
@media (min-width: 768px) {
  .mobile-cta { display: none; }
}

/* ── Footer ── */
.footer {
  background: var(--hd-gray-900);
  color: var(--hd-gray-400);
  padding: 2rem 0;
  text-align: center;
  font-size: 0.8125rem;
}
.footer a { color: var(--hd-gray-300); }
.footer a:hover { color: var(--hd-white); }

/* ── Utilities ── */
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mb-0 { margin-bottom: 0; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border-width: 0;
}

/* Add bottom padding on mobile to account for sticky CTA */
@media (max-width: 767px) {
  body { padding-bottom: 4.5rem; }
}
