/*
Theme Name: Helyx WP
Theme URI: https://helyx.app/
Author: Mazzmedia
Author URI: https://mazzmedia.com/
Description: Minimal WordPress gateway theme for Helyx.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: helyx-wp
*/

:root {
  --helyx-bg: #f4efe7;
  --helyx-surface: rgba(255, 255, 255, 0.78);
  --helyx-text: #1a1815;
  --helyx-muted: #62584c;
  --helyx-line: rgba(26, 24, 21, 0.1);
  --helyx-accent: #0f766e;
  --helyx-accent-hover: #115e59;
  --helyx-shadow: 0 24px 60px rgba(26, 24, 21, 0.12);
  --helyx-radius: 28px;
  --helyx-content: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Instrument Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--helyx-text);
  background:
    radial-gradient(circle at top left, rgba(15, 118, 110, 0.12), transparent 36%),
    linear-gradient(180deg, #fbf8f3 0%, var(--helyx-bg) 100%);
  min-height: 100vh;
}

a {
  color: inherit;
}

.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;
}

.helyx-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.helyx-header,
.helyx-footer,
.helyx-main {
  width: min(calc(100% - 32px), var(--helyx-content));
  margin: 0 auto;
}

.helyx-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 0 12px;
}

.helyx-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.helyx-brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--helyx-accent) 0%, #0b3b39 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.helyx-brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.helyx-brand-name {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.helyx-brand-tag {
  font-size: 0.86rem;
  color: var(--helyx-muted);
}

.helyx-header-link {
  text-decoration: none;
  font-size: 0.94rem;
  color: var(--helyx-muted);
}

.helyx-main {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 28px 0 56px;
}

.helyx-hero {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 28px;
  align-items: stretch;
}

.helyx-panel,
.helyx-card {
  background: var(--helyx-surface);
  border: 1px solid var(--helyx-line);
  border-radius: var(--helyx-radius);
  backdrop-filter: blur(18px);
  box-shadow: var(--helyx-shadow);
}

.helyx-panel {
  padding: clamp(28px, 4vw, 54px);
}

.helyx-kicker {
  display: inline-flex;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.1);
  color: var(--helyx-accent);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.helyx-title {
  margin: 18px 0 16px;
  font-size: clamp(2.8rem, 7vw, 5.4rem);
  line-height: 0.95;
  letter-spacing: -0.07em;
}

.helyx-copy {
  max-width: 44rem;
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.7;
  color: var(--helyx-muted);
}

.helyx-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.helyx-button,
.wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 22px;
  border-radius: 999px;
  border: 0;
  background: var(--helyx-accent);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transition: transform 140ms ease, background-color 140ms ease, box-shadow 140ms ease;
  box-shadow: 0 16px 30px rgba(15, 118, 110, 0.22);
}

.helyx-button:hover,
.helyx-button:focus-visible,
.wp-block-button__link:hover,
.wp-block-button__link:focus-visible {
  background: var(--helyx-accent-hover);
  transform: translateY(-1px);
}

.helyx-button-secondary {
  background: transparent;
  color: var(--helyx-text);
  border: 1px solid var(--helyx-line);
  box-shadow: none;
}

.helyx-card {
  padding: 28px;
  display: grid;
  gap: 18px;
  align-content: start;
}

.helyx-card-title {
  margin: 0;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
}

.helyx-meta {
  display: grid;
  gap: 14px;
}

.helyx-meta-row {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--helyx-line);
}

.helyx-meta-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.helyx-meta-label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.84rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--helyx-muted);
}

.helyx-meta-value {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
}

.helyx-footer {
  padding: 0 0 28px;
  color: var(--helyx-muted);
  font-size: 0.92rem;
}

.helyx-page {
  padding: 32px clamp(24px, 4vw, 48px);
}

.helyx-page-title {
  margin: 0 0 16px;
  font-size: clamp(2rem, 5vw, 3.2rem);
  letter-spacing: -0.05em;
}

.helyx-page-content {
  font-size: 1.04rem;
  line-height: 1.8;
  color: var(--helyx-muted);
}

@media (max-width: 900px) {
  .helyx-hero {
    grid-template-columns: 1fr;
  }

  .helyx-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .helyx-header,
  .helyx-footer,
  .helyx-main {
    width: min(calc(100% - 20px), var(--helyx-content));
  }

  .helyx-panel,
  .helyx-card {
    border-radius: 22px;
  }

  .helyx-title {
    font-size: clamp(2.4rem, 14vw, 4rem);
  }
}
