/* Helixa Numerology Theme — Core Layout & Components */

.hx-container {
  width: 100%;
  max-width: var(--hx-container);
  margin: 0 auto;
  padding: 0 24px;
}

.hx-section {
  padding: 84px 0;
}

.hx-section-alt {
  background-color: color-mix(in srgb, var(--hx-accent) 42%, var(--hx-bg));
}

.hx-section-header {
  max-width: 680px;
  margin: 0 auto 48px;
  text-align: center;
}

.hx-kicker {
  font-family: var(--hx-font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--hx-primary);
  margin-bottom: 10px;
}

.hx-section-title {
  font-size: clamp(2rem, 3.2vw, 2.85rem);
  font-weight: 600;
  margin-bottom: 14px;
}

.hx-section-subtitle {
  color: var(--hx-muted);
  font-size: 16px;
  margin: 0;
}

/* Buttons */
.hx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 8px;
  font-family: var(--hx-font-body);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 180ms cubic-bezier(0.16, 1, 0.3, 1), background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.hx-btn-primary {
  background-color: var(--hx-primary);
  color: #FFFFFF;
}

.hx-btn-primary:hover {
  background-color: var(--hx-text);
  color: #FFFFFF;
  transform: translateY(-1px);
}

.hx-btn-secondary {
  background-color: transparent;
  color: var(--hx-text);
  border-color: var(--hx-border);
}

.hx-btn-secondary:hover {
  background-color: var(--hx-accent);
  border-color: var(--hx-secondary);
}

/* Announcement Bar */
.hx-announcement {
  background-color: var(--hx-ann-bg);
  color: var(--hx-ann-text);
  font-size: 13px;
  padding: 9px 16px;
  text-align: center;
}

.hx-announcement a {
  color: inherit;
  text-decoration: underline;
  margin-left: 10px;
  font-weight: 600;
}

/* Header */
.hx-header {
  position: relative;
  background-color: var(--hx-header-bg);
  border-bottom: 1px solid var(--hx-border);
  z-index: 60;
  transition: background-color 200ms ease, box-shadow 200ms ease;
}

.hx-header.is-sticky {
  position: sticky;
  top: 0;
  backdrop-filter: blur(10px);
}

.hx-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-height: 76px;
}

.hx-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--hx-font-display);
  font-size: 24px;
  font-weight: 600;
  color: var(--hx-text);
  white-space: nowrap;
  flex-shrink: 0;
}

.hx-brand img {
  height: var(--hx-logo-height);
  width: auto;
}

.hx-nav {
  display: flex;
  align-items: center;
  gap: var(--hx-menu-gap);
}

.hx-nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: var(--hx-menu-gap);
}

.hx-nav a {
  color: var(--hx-muted);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  padding: 6px 0;
  border-bottom: 1.5px solid transparent;
}

.hx-nav a:hover,
.hx-nav .current-menu-item > a {
  color: var(--hx-text);
  border-bottom-color: var(--hx-primary);
}

.hx-header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.hx-mobile-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--hx-border);
  border-radius: 8px;
  padding: 8px 12px;
  color: var(--hx-text);
  cursor: pointer;
}

/* Hero Split */
.hx-hero {
  padding: 64px 0 80px;
}

.hx-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: stretch;
}

.hx-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hx-hero-title {
  font-size: clamp(2.4rem, 4.2vw, 3.85rem);
  font-weight: 600;
  margin-bottom: 18px;
}

.hx-hero-lead {
  font-size: 18px;
  color: var(--hx-muted);
  margin-bottom: 28px;
  max-width: 56ch;
}

.hx-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hx-hero-media {
  position: relative;
  border-radius: var(--hx-radius);
  overflow: hidden;
  border: 1px solid var(--hx-border);
  min-height: 380px;
}

.hx-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Grids & Cards */
.hx-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

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

.hx-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 36px;
}

.hx-card {
  background: var(--hx-surface);
  border: 1px solid var(--hx-border);
  border-radius: var(--hx-radius);
  overflow: hidden;
  transition: transform 200ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 200ms ease;
}

.hx-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(48, 41, 31, 0.06);
}

.hx-card-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--hx-accent);
}

.hx-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hx-card-body {
  padding: 24px;
}

.hx-card-title {
  font-size: 22px;
  margin-bottom: 8px;
}

.hx-card-text {
  font-size: 14px;
  color: var(--hx-muted);
  margin: 0 0 16px;
}

.hx-price {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--hx-primary);
}

/* FAQ Accordion */
.hx-faq-list {
  max-width: 820px;
  margin: 0 auto;
  border-top: 1px solid var(--hx-border);
}

.hx-faq-item {
  border-bottom: 1px solid var(--hx-border);
}

.hx-faq-trigger {
  width: 100%;
  background: transparent;
  border: 0;
  padding: 20px 0;
  text-align: left;
  font-family: var(--hx-font-display);
  font-size: 21px;
  font-weight: 600;
  color: var(--hx-text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.hx-faq-panel {
  padding-bottom: 20px;
  color: var(--hx-muted);
  font-size: 15px;
}

/* Forms */
.hx-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.hx-field-full {
  grid-column: 1 / -1;
}

.hx-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--hx-text);
}

.hx-input,
.hx-select,
.hx-textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--hx-border);
  border-radius: 8px;
  background: var(--hx-surface);
  color: var(--hx-text);
  font-family: var(--hx-font-body);
  font-size: 15px;
}

.hx-input:focus,
.hx-select:focus,
.hx-textarea:focus {
  outline: 2px solid var(--hx-primary);
  outline-offset: 1px;
}

/* Footer */
.hx-footer {
  background-color: color-mix(in srgb, var(--hx-accent) 55%, var(--hx-bg));
  border-top: 1px solid var(--hx-border);
  padding: 64px 0 32px;
}

.hx-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 48px;
}

.hx-footer h4 {
  font-size: 19px;
  margin-bottom: 14px;
}

.hx-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.hx-footer li {
  margin-bottom: 8px;
  font-size: 14px;
  color: var(--hx-muted);
}

.hx-footer-bottom {
  border-top: 1px solid var(--hx-border);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
  color: var(--hx-muted);
}

.hx-footer-legal-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.hx-footer-legal-menu li {
  margin-bottom: 0;
}

/* Single Floating WhatsApp Widget */
.hx-whatsapp-widget {
  position: fixed;
  bottom: 24px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 999px;
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
}

.hx-whatsapp-widget:hover { color: #FFFFFF; }
.hx-whatsapp-widget.pos-right { right: 24px; }
.hx-whatsapp-widget.pos-left  { left: 24px; }
.hx-whatsapp-widget.size-small { padding: 7px 14px; font-size: 12px; gap: 8px; }
.hx-whatsapp-widget.size-small svg { width: 22px; height: 22px; }
.hx-whatsapp-widget.size-large { padding: 13px 22px; font-size: 15px; gap: 12px; }
.hx-whatsapp-widget.size-large svg { width: 32px; height: 32px; }

.hx-header.layout-centered .hx-header-inner { justify-content: center; flex-wrap: wrap; padding: 12px 24px; }
.hx-header.layout-minimal .hx-nav { margin-left: auto; }

@media (min-width: 961px) {
  .hx-hide-desktop { display: none !important; }
}

/* Responsive — Tablet (<= 960px) */
@media (max-width: 960px) {
  .hx-hide-mobile { display: none !important; }

  .hx-hero-grid,
  .hx-grid-2 {
    grid-template-columns: 1fr;
  }

  .hx-grid-3,
  .hx-grid-4,
  .hx-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hx-nav {
    display: none;
  }

  .hx-nav.is-open {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--hx-surface);
    border-bottom: 1px solid var(--hx-border);
    padding: 20px 24px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    z-index: 80;
  }

  .hx-nav.is-open ul {
    flex-direction: column;
    gap: 14px;
  }

  .hx-mobile-toggle {
    display: inline-flex;
  }

  .hx-form-grid {
    grid-template-columns: 1fr;
  }
}

/* Responsive — Mobile (<= 640px) */
@media (max-width: 640px) {
  .hx-section {
    padding: 56px 0;
  }

  .hx-header-inner {
    gap: 12px;
    min-height: 64px;
  }

  .hx-brand {
    font-size: 18px;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .hx-brand img {
    max-height: 32px;
  }

  .hx-header-actions {
    gap: 8px;
  }

  .hx-header-actions .hx-btn-primary {
    display: none;
  }

  .hx-grid-3,
  .hx-grid-4,
  .hx-footer-grid {
    grid-template-columns: 1fr;
  }

  .hx-whatsapp-widget {
    bottom: 16px;
    max-width: calc(100vw - 32px);
  }

  .hx-whatsapp-widget.pos-right { right: 16px; }
  .hx-whatsapp-widget.pos-left  { left: 16px; }
}
