/*
Theme Name: Lone Star Horse Hemp Bedding
Author: Hempknowlogy LLC
Description: A lightweight, responsive WordPress theme for Lone Star Horse Hemp Bedding, built around evidence-led product copy and Central Texas barn inquiries.
Version: 1.0.0
Requires at least: 6.2
Requires PHP: 7.4
Text Domain: lone-star-horse-bedding
*/

:root {
  --forest-950: #071e16;
  --forest-900: #0b2c20;
  --forest-800: #103e2b;
  --forest-700: #175338;
  --gold-500: #c8a64b;
  --gold-300: #e8d48d;
  --cream-100: #fbf8ed;
  --cream-200: #f1ead2;
  --ink: #17231d;
  --muted: #5e6b64;
  --rust: #924a2b;
  --white: #ffffff;
  --line: rgba(23, 35, 29, 0.14);
  --shadow: 0 22px 58px rgba(7, 30, 22, 0.12);
  --radius: 18px;
  --content: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream-100);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body.admin-bar .site-header {
  top: 32px;
}

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

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--gold-500);
  outline-offset: 4px;
}

.screen-reader-text,
.skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  position: fixed;
  z-index: 9999;
  top: 1rem;
  left: 1rem;
  padding: 0.75rem 1rem;
  color: var(--white);
  background: var(--forest-900);
  border-radius: 8px;
}

.site-shell {
  width: min(calc(100% - 2rem), var(--content));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  background: rgba(7, 30, 22, 0.96);
  border-bottom: 1px solid rgba(232, 212, 141, 0.26);
  backdrop-filter: blur(14px);
}

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

.brand-link {
  display: inline-flex;
  align-items: center;
  width: min(310px, 62vw);
  text-decoration: none;
}

.brand-link img,
.custom-logo-link img {
  display: block;
  width: auto;
  max-height: 58px;
}

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

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--gold-300);
}

.menu-toggle {
  display: none;
  color: var(--white);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 10px;
  padding: 0.6rem 0.75rem;
  font: inherit;
  font-weight: 800;
}

.button,
.wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.78rem 1.15rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.button:hover,
.wp-block-button__link:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: var(--forest-950);
  background: var(--gold-500);
}

.button-primary:hover {
  background: var(--gold-300);
}

.button-ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.46);
  background: rgba(255, 255, 255, 0.05);
}

.button-ghost:hover {
  border-color: var(--gold-300);
}

.button-dark {
  color: var(--white);
  background: var(--forest-900);
}

.hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 78% 15%, rgba(200, 166, 75, 0.22), transparent 28rem),
    linear-gradient(135deg, var(--forest-950), var(--forest-800));
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.13;
  background-image:
    linear-gradient(30deg, transparent 49.5%, var(--gold-300) 50%, transparent 50.5%),
    linear-gradient(-30deg, transparent 49.5%, var(--gold-300) 50%, transparent 50.5%);
  background-size: 84px 84px;
}

.hero-inner {
  position: relative;
  z-index: 1;
  min-height: 680px;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.98fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 6rem);
  padding-block: clamp(4.5rem, 9vw, 8rem);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1.1rem;
  color: var(--gold-300);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "★";
  font-size: 0.78rem;
}

.hero h1,
.section-heading h2,
.cta-panel h2 {
  font-family: Rockwell, "Roboto Slab", Georgia, serif;
  letter-spacing: -0.035em;
  line-height: 1.02;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(3rem, 7vw, 6.3rem);
}

.hero-copy > p:not(.eyebrow) {
  max-width: 670px;
  margin: 1.5rem 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1.08rem, 2vw, 1.32rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.3rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
  font-weight: 700;
}

.hero-proof li::before {
  content: "✓";
  margin-right: 0.45rem;
  color: var(--gold-300);
}

.hero-mark {
  position: relative;
  display: grid;
  min-height: 370px;
  place-items: center;
  padding: clamp(1.5rem, 4vw, 3.2rem);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(232, 212, 141, 0.32);
  border-radius: 42% 42% 18px 18px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.28);
}

.hero-mark::before {
  content: "TEXAS BARN SERIES";
  position: absolute;
  bottom: 1rem;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.2em;
}

.hero-mark img {
  width: min(100%, 620px);
  filter: drop-shadow(0 14px 20px rgba(0, 0, 0, 0.34));
}

.trust-strip {
  background: var(--gold-500);
  color: var(--forest-950);
}

.trust-strip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(7, 30, 22, 0.18);
}

.trust-item {
  min-height: 92px;
  display: grid;
  align-content: center;
  gap: 0.12rem;
  padding: 1rem clamp(0.8rem, 2vw, 1.5rem);
  background: var(--gold-500);
}

.trust-item strong {
  font-family: Rockwell, Georgia, serif;
  font-size: 1.05rem;
}

.trust-item span {
  font-size: 0.82rem;
  font-weight: 700;
  opacity: 0.78;
}

.section {
  padding-block: clamp(4.5rem, 9vw, 7.5rem);
}

.section-alt {
  background: var(--cream-200);
}

.section-dark {
  color: var(--white);
  background: var(--forest-900);
}

.section-heading {
  max-width: 770px;
  margin-bottom: 2.5rem;
}

.section-heading.centered {
  margin-inline: auto;
  text-align: center;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(2.15rem, 5vw, 4.4rem);
}

.section-heading p {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.section-dark .section-heading p {
  color: rgba(255, 255, 255, 0.7);
}

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

.benefit-card {
  position: relative;
  min-height: 260px;
  padding: clamp(1.4rem, 4vw, 2.25rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 34px rgba(7, 30, 22, 0.06);
}

.benefit-number {
  display: block;
  margin-bottom: 2.5rem;
  color: var(--rust);
  font-family: Rockwell, Georgia, serif;
  font-size: 1rem;
  font-weight: 900;
}

.benefit-card h3 {
  margin: 0;
  font-family: Rockwell, Georgia, serif;
  font-size: 1.5rem;
  line-height: 1.2;
}

.benefit-card p {
  margin: 0.75rem 0 0;
  color: var(--muted);
}

.method-grid {
  display: grid;
  grid-template-columns: 0.84fr 1.16fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.method-sticky {
  position: sticky;
  top: 110px;
}

.method-sticky h2 {
  margin: 0;
  font-family: Rockwell, Georgia, serif;
  font-size: clamp(2.2rem, 5vw, 4.3rem);
  line-height: 1.04;
}

.method-sticky p {
  color: var(--muted);
}

.steps {
  display: grid;
  gap: 0.85rem;
}

.step {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 1rem;
  padding: 1.4rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.step-badge {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  color: var(--gold-300);
  background: var(--forest-900);
  border-radius: 50%;
  font-family: Rockwell, Georgia, serif;
  font-weight: 900;
}

.step h3 {
  margin: 0;
  font-size: 1.15rem;
}

.step p {
  margin: 0.35rem 0 0;
  color: var(--muted);
}

.volume-card {
  margin-top: 1.5rem;
  overflow: hidden;
  color: var(--white);
  background: var(--forest-900);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.volume-card header {
  padding: 1.4rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.volume-card h3 {
  margin: 0;
  font-family: Rockwell, Georgia, serif;
  font-size: 1.35rem;
}

.formula {
  margin: 0.6rem 0 0;
  color: var(--gold-300);
  font-weight: 800;
}

.volume-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.volume-grid div {
  padding: 1.2rem 1.5rem;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.volume-grid div:last-child {
  border-right: 0;
}

.volume-grid strong,
.volume-grid span {
  display: block;
}

.volume-grid strong {
  color: var(--gold-300);
  font-size: 1.45rem;
}

.volume-grid span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.82rem;
}

.table-wrap {
  overflow-x: auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.comparison-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.comparison-table th,
.comparison-table td {
  padding: 1.05rem 1.15rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.comparison-table thead th {
  color: var(--white);
  background: var(--forest-900);
  font-family: Rockwell, Georgia, serif;
  font-size: 1rem;
}

.comparison-table thead th:nth-child(2) {
  color: var(--forest-950);
  background: var(--gold-500);
}

.comparison-table tbody th {
  width: 21%;
  color: var(--forest-800);
  font-size: 0.92rem;
}

.comparison-table tbody tr:last-child th,
.comparison-table tbody tr:last-child td {
  border-bottom: 0;
}

.comparison-note {
  max-width: 820px;
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.availability-grid {
  display: grid;
  grid-template-columns: 1fr 0.78fr;
  gap: 1rem;
}

.availability-card,
.truth-card {
  padding: clamp(1.4rem, 4vw, 2.4rem);
  border-radius: var(--radius);
}

.availability-card {
  color: var(--white);
  background: var(--forest-800);
}

.truth-card {
  background: var(--gold-500);
}

.availability-card h3,
.truth-card h3 {
  margin: 0;
  font-family: Rockwell, Georgia, serif;
  font-size: 1.7rem;
}

.availability-card p {
  color: rgba(255, 255, 255, 0.74);
}

.availability-card ul,
.truth-card ul {
  margin: 1rem 0 0;
  padding-left: 1.1rem;
}

.availability-card li,
.truth-card li {
  margin: 0.45rem 0;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.faq-item {
  padding: 1.2rem 1.35rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.faq-item summary {
  cursor: pointer;
  font-family: Rockwell, Georgia, serif;
  font-size: 1.08rem;
  font-weight: 900;
}

.faq-item p {
  margin: 0.8rem 0 0;
  color: var(--muted);
}

.source-list {
  margin: 2.2rem 0 0;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
}

.source-list a {
  color: var(--forest-700);
}

.cta-section {
  padding: clamp(1rem, 4vw, 3rem) 0 clamp(5rem, 10vw, 8rem);
}

.cta-panel {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 2rem;
  padding: clamp(2rem, 6vw, 4.5rem);
  color: var(--white);
  background: var(--rust);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.cta-panel::after {
  content: "★";
  position: absolute;
  right: 2rem;
  bottom: -5rem;
  color: rgba(255, 255, 255, 0.08);
  font-size: 16rem;
  line-height: 1;
}

.cta-panel > * {
  position: relative;
  z-index: 1;
}

.cta-panel h2 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 4.5rem);
}

.cta-panel p {
  max-width: 650px;
  margin: 0.9rem 0 0;
  color: rgba(255, 255, 255, 0.8);
}

.site-footer {
  color: rgba(255, 255, 255, 0.72);
  background: var(--forest-950);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  align-items: center;
  gap: 2rem;
  padding-block: 2.25rem;
}

.footer-logo {
  width: min(340px, 80vw);
}

.footer-meta {
  margin: 0.45rem 0 0;
  font-size: 0.82rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.86rem;
  font-weight: 700;
}

.footer-links a {
  text-decoration: none;
}

.content-page {
  min-height: 60vh;
  padding-block: 5rem;
}

.content-page h1 {
  font-family: Rockwell, Georgia, serif;
  font-size: clamp(2.4rem, 6vw, 5rem);
  line-height: 1.05;
}

@media (max-width: 960px) {
  .hero-inner,
  .method-grid,
  .availability-grid,
  .cta-panel {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    min-height: auto;
  }

  .hero-mark {
    min-height: 280px;
  }

  .method-sticky {
    position: static;
  }

  .trust-strip-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cta-panel {
    justify-items: start;
  }
}

@media (max-width: 760px) {
  body.admin-bar .site-header {
    top: 46px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    right: 1rem;
    left: 1rem;
    display: none;
    padding: 1rem;
    background: var(--forest-900);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 0 0 14px 14px;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    align-items: stretch;
    flex-direction: column;
  }

  .site-nav a {
    display: block;
    padding: 0.65rem;
  }

  .benefit-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 540px) {
  .site-shell {
    width: min(calc(100% - 1.2rem), var(--content));
  }

  .header-inner {
    min-height: 68px;
  }

  .brand-link img,
  .custom-logo-link img {
    max-height: 46px;
  }

  .hero h1 {
    font-size: clamp(2.75rem, 15vw, 4.4rem);
  }

  .hero-actions .button {
    width: 100%;
  }

  .trust-strip-grid,
  .volume-grid {
    grid-template-columns: 1fr;
  }

  .volume-grid div {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .step {
    grid-template-columns: 42px 1fr;
  }

  .step-badge {
    width: 42px;
    height: 42px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
