/* Skinner 2026 — dark hybrid theme
   Design brief (locked):
   - Palette: charcoal #080c10 / surface #10161e / text #eef2f6 / muted #9aa8b6 / accent teal #3dd6c6
   - Type: Space Grotesk (display) + IBM Plex Sans (body)
   - Home: hero → logos → offers → problems → pillars → cadence → contact
   - Motion: reveal-on-scroll, header shrink, nav open
*/

:root {
  --bg: #080c10;
  --bg-elevated: #10161e;
  --bg-soft: #161e28;
  --text: #eef2f6;
  --text-muted: #9aa8b6;
  --accent: #3dd6c6;
  --accent-deep: #1a8f84;
  --accent-glow: rgba(61, 214, 198, 0.18);
  --border: rgba(238, 242, 246, 0.1);
  --border-strong: rgba(238, 242, 246, 0.18);
  --font-display: "Space Grotesk", sans-serif;
  --font-body: "IBM Plex Sans", sans-serif;
  --space: clamp(1.25rem, 3vw, 2.5rem);
  --section-y: clamp(3.5rem, 8vw, 6.5rem);
  --wide: 72rem;
  --content: 42rem;
  --radius: 2px;
  --header-h: 4.25rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body.nav-open {
  overflow: hidden;
}

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

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: #7aefe3;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
}

p {
  margin: 0 0 1em;
}

p:last-child {
  margin-bottom: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 1000;
  background: var(--accent);
  color: #04110f;
  padding: 0.6rem 1rem;
  font-weight: 600;
}

.skip-link:focus {
  top: 1rem;
}

/* —— Header —— */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  transition: background 0.35s var(--ease), backdrop-filter 0.35s var(--ease), border-color 0.35s var(--ease);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background: rgba(8, 12, 16, 0.88);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--border);
}

.site-header__inner {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0 clamp(1rem, 3vw, 2rem);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text);
  min-width: 0;
}

.site-brand__logo {
  height: 2rem;
  width: 2rem;
  flex-shrink: 0;
}

.site-brand__wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.site-brand--footer .site-brand__wordmark {
  font-size: 1.1rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.25rem;
}

.menu a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}

.menu a:hover,
.menu .current-menu-item > a {
  color: var(--text);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--text);
  padding: 0.45rem 0.7rem;
  border-radius: var(--radius);
  cursor: pointer;
  align-items: center;
  gap: 0.5rem;
}

.nav-toggle__bars {
  width: 1.1rem;
  height: 2px;
  background: currentColor;
  box-shadow: 0 -5px 0 currentColor, 0 5px 0 currentColor;
}

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 0;
    background: rgba(8, 12, 16, 0.97);
    flex-direction: column;
    justify-content: flex-start;
    padding: 2rem 1.25rem;
    transform: translateY(-0.5rem);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  }

  .site-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .site-nav .menu {
    flex-direction: column;
    width: 100%;
    gap: 0;
  }

  .site-nav .menu a {
    display: block;
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 1.15rem;
  }

  .site-nav__cta {
    width: 100%;
    justify-content: center;
    margin-top: 1rem;
  }
}

/* —— Buttons / links —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.35rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.btn--sm {
  padding: 0.55rem 0.95rem;
  font-size: 0.875rem;
}

.btn--primary {
  background: var(--accent);
  color: #04110f;
}

.btn--primary:hover {
  background: #7aefe3;
  color: #04110f;
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}

.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  margin-top: 1rem;
}

.text-link::after {
  content: "→";
  transition: transform 0.25s var(--ease);
}

.text-link:hover::after {
  transform: translateX(4px);
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.04);
  animation: hero-drift 18s var(--ease) infinite alternate;
}

@media (prefers-reduced-motion: reduce) {
  .hero__media img {
    animation: none;
    transform: none;
  }
}

@keyframes hero-drift {
  from {
    transform: scale(1.04) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.08) translate3d(-1.5%, -1%, 0);
  }
}

.hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 12, 16, 0.55) 0%, rgba(8, 12, 16, 0.72) 42%, rgba(8, 12, 16, 0.94) 100%),
    radial-gradient(ellipse 80% 50% at 70% 20%, var(--accent-glow), transparent 60%);
}

.hero__content {
  max-width: var(--wide);
  width: 100%;
  margin: 0 auto;
  padding: calc(var(--header-h) + 3rem) clamp(1rem, 3vw, 2rem) clamp(3rem, 8vw, 5.5rem);
}

.hero__brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 5vw, 3.25rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0 0 1rem;
  color: var(--text);
}

.hero__title {
  max-width: 22ch;
  font-size: clamp(1.45rem, 3.4vw, 2.35rem);
  font-weight: 600;
  color: var(--text);
  margin-bottom: 1rem;
}

.hero__lede {
  max-width: 38rem;
  color: var(--text-muted);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  margin-bottom: 1.75rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* —— Sections —— */
.section {
  padding: var(--section-y) 0;
}

.section__inner {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0 clamp(1rem, 3vw, 2rem);
}

.section__inner--narrow {
  max-width: 40rem;
}

.section__inner--content {
  max-width: var(--content);
}

.section__header {
  max-width: 40rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section__header h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
}

.section__header p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

.section__eyebrow {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.section--logos {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
}

.logo-strip {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(7.5rem, 1fr));
  gap: 1.5rem 2rem;
  align-items: center;
}

.logo-strip img {
  max-height: 2.4rem;
  width: auto;
  margin: 0 auto;
  opacity: 0.72;
  transition: opacity 0.25s var(--ease);
}

.logo-strip li:hover img {
  opacity: 1;
}

/* Offers — interaction containers, not generic cards */
.offer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 3rem);
}

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

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

@media (min-width: 1000px) {
  .offer-grid--four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

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

  .offer-grid--three .offer--featured,
  .offer-grid--four .offer--featured {
    border-left: 0;
    border-top: 2px solid var(--accent);
    padding-left: 0;
    padding-top: 1.25rem;
  }
}

@media (max-width: 720px) {
  .offer-grid {
    grid-template-columns: 1fr;
  }
}

.offer {
  padding: 0;
  border: 0;
  background: transparent;
}

.offer h3 {
  font-size: 1.5rem;
  margin-bottom: 0.35rem;
}

.offer__meta {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.85rem;
}

.offer p {
  color: var(--text-muted);
}

.offer__price {
  color: var(--text) !important;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  margin-top: 1.25rem !important;
}

.offer--featured {
  padding-left: clamp(0rem, 2vw, 1rem);
  border-left: 2px solid var(--accent);
  padding-left: 1.25rem;
}

.split-list {
  display: grid;
  gap: 2rem;
  border-top: 1px solid var(--border);
  padding-top: 2rem;
}

@media (min-width: 800px) {
  .split-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
  }
}

.split-list h3 {
  font-size: 1.2rem;
}

.split-list p {
  color: var(--text-muted);
}

.pillar-grid {
  display: grid;
  gap: 2.5rem 2rem;
}

@media (min-width: 900px) {
  .pillar-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.pillar {
  border-top: 1px solid var(--border-strong);
  padding-top: 1.25rem;
}

.pillar__label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.pillar h3 {
  font-size: 1.25rem;
}

.pillar p {
  color: var(--text-muted);
}

.cadence {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.75rem;
}

@media (min-width: 800px) {
  .cadence {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

.cadence li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
}

.cadence__step {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--accent);
  line-height: 1;
}

.cadence h3 {
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
}

.cadence p {
  color: var(--text-muted);
}

.section--contact {
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, var(--accent-glow), transparent 55%),
    var(--bg-elevated);
  border-top: 1px solid var(--border);
}

.contact-form {
  margin-top: 0.5rem;
}

/* WPForms — dark theme + teal accent */
.contact-form .wpforms-container,
.contact-form .wpforms-form,
.entry-content .wpforms-container,
.entry-content .wpforms-form {
  color: var(--text);
  background: transparent !important;
}

.contact-form .wpforms-field,
.entry-content .wpforms-field {
  margin-bottom: 1.15rem !important;
  padding: 0 !important;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form input[type="url"],
.contact-form input[type="number"],
.contact-form textarea,
.contact-form select,
.entry-content .wpforms-field input[type="text"],
.entry-content .wpforms-field input[type="email"],
.entry-content .wpforms-field input[type="tel"],
.entry-content .wpforms-field textarea,
.entry-content .wpforms-field select {
  background: var(--bg) !important;
  border: 1px solid var(--border-strong) !important;
  color: var(--text) !important;
  border-radius: var(--radius) !important;
  padding: 0.8rem 0.95rem !important;
  box-shadow: none !important;
  width: 100% !important;
  font-family: var(--font-body) !important;
  font-size: 1rem !important;
  line-height: 1.45 !important;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus,
.entry-content .wpforms-field input:focus,
.entry-content .wpforms-field textarea:focus {
  border-color: var(--accent) !important;
  outline: none !important;
  box-shadow: 0 0 0 3px var(--accent-glow) !important;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder,
.entry-content .wpforms-field input::placeholder,
.entry-content .wpforms-field textarea::placeholder {
  color: rgba(154, 168, 182, 0.7) !important;
}

.contact-form label,
.contact-form .wpforms-field-label,
.entry-content .wpforms-field-label {
  color: var(--text-muted) !important;
  font-weight: 500 !important;
  font-size: 0.95rem !important;
  margin-bottom: 0.4rem !important;
}

.contact-form .wpforms-required-label,
.entry-content .wpforms-required-label {
  color: var(--accent) !important;
}

.contact-form button[type="submit"],
.contact-form .wpforms-submit,
.entry-content .wpforms-submit {
  background: var(--accent) !important;
  color: #04110f !important;
  border: 0 !important;
  font-family: var(--font-body) !important;
  font-weight: 600 !important;
  font-size: 0.95rem !important;
  padding: 0.85rem 1.35rem !important;
  border-radius: var(--radius) !important;
  cursor: pointer;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}

.contact-form button[type="submit"]:hover,
.contact-form .wpforms-submit:hover,
.entry-content .wpforms-submit:hover {
  background: #7aefe3 !important;
  color: #04110f !important;
}

.contact-form .wpforms-error,
.contact-form .wpforms-error-alert,
.entry-content .wpforms-error {
  color: #ff8f8f !important;
  background: transparent !important;
  border-color: rgba(255, 143, 143, 0.35) !important;
}

.contact-form .wpforms-confirmation-container-full,
.entry-content .wpforms-confirmation-container-full {
  background: var(--bg-soft) !important;
  border: 1px solid var(--border-strong) !important;
  color: var(--text) !important;
  border-radius: var(--radius) !important;
}

.wpforms-field-hp {
  position: absolute !important;
  overflow: hidden !important;
  height: 1px !important;
  width: 1px !important;
  padding: 0 !important;
  z-index: -1000 !important;
}

.contact-form__note {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 1.25rem;
}

.contact-form__note a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.contact-form__note a:hover {
  color: #7aefe3;
}

/* —— Blog / pages —— */
.page-hero {
  padding: calc(var(--header-h) + 3rem) 0 2.5rem;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(ellipse 70% 60% at 15% 0%, var(--accent-glow), transparent 50%),
    var(--bg);
}

.page-hero__inner {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0 clamp(1rem, 3vw, 2rem);
}

.page-hero__inner--narrow {
  max-width: var(--content);
  margin-left: auto;
  margin-right: auto;
}

.page-hero__brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.35rem, 3vw, 2rem);
  margin: 0 0 0.75rem;
}

.page-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  max-width: 20ch;
}

.page-hero__lede {
  color: var(--text-muted);
  max-width: 36rem;
  font-size: 1.1rem;
}

.page-hero__meta {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.page-hero__meta a {
  color: var(--text-muted);
  text-decoration: none;
}

.page-hero__meta a:hover {
  color: var(--accent);
}

.sep {
  margin: 0 0.4rem;
  opacity: 0.5;
}

.post-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.post-list__item {
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
}

.post-list__meta {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.post-list__title {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  margin-bottom: 0.5rem;
}

.post-list__title a {
  color: var(--text);
  text-decoration: none;
}

.post-list__title a:hover {
  color: var(--accent);
}

.post-list__excerpt {
  color: var(--text-muted);
  max-width: 40rem;
}

.entry-content > *:first-child {
  margin-top: 0;
}

.entry-content .lead,
.entry-content p.lead {
  font-size: 1.2rem;
  color: var(--text);
  line-height: 1.55;
}

.entry-content ul {
  color: var(--text-muted);
  padding-left: 1.2rem;
}

.entry-content li {
  margin-bottom: 0.45rem;
}

.entry-content .wp-block-list a,
.entry-content p a {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.entry-content h2,
.entry-content h3 {
  margin-top: 1.75em;
}

.entry-content a {
  text-decoration: underline;
}

.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25em 0 1.75em;
  font-size: 0.95rem;
  overflow-x: auto;
  display: block;
}

.entry-content th,
.entry-content td {
  border: 1px solid var(--border-strong);
  padding: 0.65rem 0.75rem;
  text-align: left;
  vertical-align: top;
}

.entry-content thead th {
  background: var(--bg-soft);
}

.entry-content img {
  border-radius: var(--radius);
}

.entry-content .callout {
  background: var(--bg-soft);
  border: 1px solid var(--border-strong);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  color: var(--text);
}

.entry-content .schema-faq-section {
  border-top: 1px solid var(--border-strong);
  padding: 1rem 0;
}

.entry-content .schema-faq-question {
  display: block;
  color: var(--text);
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.entry-content .schema-faq-answer {
  margin: 0;
}

.navigation.pagination {
  margin-top: 2.5rem;
  display: flex;
  gap: 0.75rem;
}

.navigation.pagination a,
.navigation.pagination span {
  color: var(--text-muted);
  text-decoration: none;
}

.navigation.pagination .current {
  color: var(--accent);
}

/* —— Footer —— */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0 2.5rem;
  background: #05080b;
}

.site-footer__inner {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0 clamp(1rem, 3vw, 2rem);
  display: grid;
  gap: 2rem;
}

@media (min-width: 800px) {
  .site-footer__inner {
    grid-template-columns: 1.4fr 1fr 1.2fr;
    align-items: start;
  }
}

.site-footer__tagline {
  color: var(--text-muted);
  margin-top: 0.75rem;
  max-width: 22rem;
}

.site-footer a {
  color: var(--text-muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--accent);
}

.menu--footer {
  flex-direction: column;
  gap: 0.65rem;
}

.site-footer__copy {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* —— Reveal motion —— */
[data-reveal] {
  opacity: 0;
  transform: translateY(1.1rem);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
