
/*
Theme Name: Healing Thru Nature
Theme URI: https://healingthrunature.com/
Author: OpenAI
Author URI: https://openai.com/
Description: A classic WordPress theme for Healing Thru Nature with Navajo-inspired earthtone styling, flexible front page sections, custom templates, and Vimeo/Kajabi integration points.
Version: 1.0.4
Requires at least: 5.8
Tested up to: 6.6
Requires PHP: 7.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: healing-thru-nature
Tags: custom-logo, custom-menu, featured-images, one-column, two-columns, custom-background, custom-header, threaded-comments, translation-ready
*/

:root {
  --htn-sand: #d8c2a8;
  --htn-clay: #b67c52;
  --htn-terracotta: #9a5d38;
  --htn-canyon: #6f4e37;
  --htn-forest: #5c6b3c;
  --htn-sage: #8d9a64;
  --htn-cream: #f4efe8;
  --htn-charcoal: #2d241e;
  --htn-gold: #c89d43;
  --htn-shadow: 0 18px 45px rgba(45, 36, 30, 0.12);
  --htn-radius: 18px;
  --htn-content: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--htn-charcoal);
  background: linear-gradient(180deg, #f7f1e9 0%, #efe1d1 100%);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.7;
}
a { color: var(--htn-canyon); text-decoration: none; }
a:hover, a:focus { color: var(--htn-terracotta); }
img { max-width: 100%; height: auto; display: block; }
iframe { max-width: 100%; }
.screen-reader-text { position: absolute; left: -9999px; }
.skip-link { position: absolute; left: -9999px; top: 1rem; }
.skip-link:focus { left: 1rem; z-index: 9999; background: #fff; padding: .75rem 1rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(244, 239, 232, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(111, 78, 55, 0.12);
}
.header-inner, .site-footer-inner, .content-wrap, .section-inner {
  width: min(calc(100% - 2rem), var(--htn-content));
  margin: 0 auto;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 86px;
}
.site-branding { display: flex; align-items: center; gap: 1rem; min-width: 0; }
.site-title-wrap { min-width: 0; }
.site-title { font-size: 1.35rem; margin: 0; letter-spacing: .04em; text-transform: uppercase; }
.site-title a { color: var(--htn-charcoal); }
.site-description { margin: 0; font-size: .95rem; color: rgba(45, 36, 30, 0.72); }
.custom-logo-link img {
  width: auto;
  max-height: var(--htn-logo-max-height, 66px);
}
.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 1px solid rgba(111, 78, 55, 0.18);
  background: transparent;
  color: var(--htn-charcoal);
}
.menu-toggle .bar {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  margin: 3px 0;
}
.primary-navigation ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .25rem;
}
.primary-navigation a {
  display: inline-flex;
  padding: .75rem 1rem;
  border-radius: 999px;
  font-size: .98rem;
  font-weight: 600;
}
.primary-navigation a:hover,
.primary-navigation .current-menu-item > a,
.primary-navigation .current_page_item > a {
  background: rgba(200, 157, 67, 0.14);
}

.site-main { padding: 2rem 0 4rem; }
.page-header, .entry-content, .entry-header, .post-navigation, .comments-area {
  width: min(calc(100% - 2rem), 860px);
  margin: 0 auto 2rem;
}
.entry-card, .section-card, .archive-card {
  background: rgba(255,255,255,0.68);
  border: 1px solid rgba(111, 78, 55, 0.12);
  border-radius: var(--htn-radius);
  box-shadow: var(--htn-shadow);
}
.entry-card { padding: 2rem; }

.hero {
  position: relative;
  min-height: 78vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  background: #2f261f;
}
.hero-media,
.hero-overlay,
.hero-fallback {
  position: absolute;
  inset: 0;
}
.hero-media video,
.hero-fallback img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  background: linear-gradient(120deg, rgba(19, 14, 11, 0.92) 0%, rgba(19,14,11,0.44) 45%, rgba(19,14,11,0.82) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  width: min(calc(100% - 2rem), var(--htn-content));
  margin: 0 auto;
  color: #fff8f0;
  padding: 6rem 0;
}
.hero-kicker {
  display: inline-block;
  padding: .45rem .8rem;
  border-radius: 999px;
  background: rgba(200, 157, 67, 0.18);
  border: 1px solid rgba(255,255,255,0.18);
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .82rem;
}
.hero h1 {
  font-size: clamp(2.5rem, 6vw, 5.5rem);
  line-height: .98;
  margin: 1rem 0;
  max-width: 11ch;
}
.hero p { font-size: 1.15rem; max-width: 55ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.8rem; }
.button, button, input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .95rem 1.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--htn-canyon);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}
.button.secondary {
  background: transparent;
  border-color: rgba(255,255,255,0.45);
}
.button:hover, button:hover, input[type="submit"]:hover { opacity: .92; }

.front-section { padding: 1rem 0; }
.front-section .section-card {
  display: grid;
  gap: 2rem;
  padding: clamp(1.5rem, 4vw, 3rem);
  overflow: hidden;
}
.front-section.alt .section-card {
  background: linear-gradient(180deg, rgba(255,255,255,.78) 0%, rgba(239,225,209,.82) 100%);
}
.section-header { max-width: 60ch; }
.section-eyebrow {
  display: inline-block;
  margin-bottom: .75rem;
  color: var(--htn-terracotta);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .8rem;
  font-weight: 700;
}
.section-title { font-size: clamp(1.8rem, 4vw, 3rem); line-height: 1.05; margin: 0 0 .75rem; }
.section-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(1.5rem, 3vw, 3rem); align-items: center; }
.front-section.media-left .section-grid { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); }
.front-section.no-media .section-grid { grid-template-columns: 1fr; }
.section-copy, .section-media { min-width: 0; }
.section-media { width: 100%; }
.media-frame {
  border-radius: calc(var(--htn-radius) + 4px);
  overflow: hidden;
  background: linear-gradient(135deg, rgba(182,124,82,.45), rgba(92,107,60,.4));
  min-height: 320px;
}
.media-frame > img { width: 100%; height: 100%; object-fit: cover; }
.media-frame.embed { min-height: 0; }
.video-embed-ratio {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  overflow: hidden;
  background: #000;
}
.video-embed-ratio iframe,
.video-embed-ratio video,
.video-embed-ratio object,
.video-embed-ratio embed {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  min-height: 0;
  display: block;
  border: 0;
}
.video-embed-generic iframe { position: absolute; inset: 0; }
.callout-list {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: .8rem;
}
.callout-list li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: .8rem;
  align-items: start;
}
.callout-list li::before {
  content: "";
  width: 12px;
  height: 12px;
  margin-top: .45rem;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--htn-gold), var(--htn-clay));
}

.template-grid, .card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}
.info-card {
  padding: 1.5rem;
  border-radius: 20px;
  background: rgba(255,255,255,0.68);
  border: 1px solid rgba(111, 78, 55, 0.1);
  box-shadow: var(--htn-shadow);
}
.info-card h3 { margin-top: 0; }

.form-row { margin-bottom: 1rem; }
input[type="text"], input[type="email"], textarea, select {
  width: 100%;
  padding: .85rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(111, 78, 55, .22);
  background: rgba(255,255,255,.9);
  font: inherit;
}
textarea { min-height: 150px; }

.site-footer {
  background: #2d241e;
  color: rgba(255, 248, 240, 0.88);
  padding: 3rem 0;
}
.site-footer a { color: #fff8f0; }
.site-footer-inner {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}
.site-footer-inner.footer-layout-two-column {
  grid-template-columns: minmax(0, 1.3fr) minmax(260px, .7fr);
}
.site-footer-inner.footer-layout-one-column {
  grid-template-columns: minmax(0, 1fr);
}
.footer-column { min-width: 0; }
.footer-branding h2,
.footer-secondary-title { margin-top: 0; }
.footer-content p:first-child,
.footer-secondary-content p:first-child { margin-top: 0; }
.footer-content p:last-child,
.footer-secondary-content p:last-child { margin-bottom: 0; }
.footer-content a,
.footer-secondary-content a { text-decoration: underline; text-underline-offset: 0.16em; }
.footer-meta {
  color: rgba(255, 248, 240, 0.68);
  font-size: .95rem;
  margin-bottom: 1rem;
}
.footer-copyright {
  margin: 1rem 0 0;
  color: rgba(255, 248, 240, 0.82);
  font-size: .95rem;
}
.footer-secondary {
  display: grid;
  gap: 1.25rem;
  justify-items: start;
}
.footer-secondary-title {
  font-size: 1rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255, 248, 240, 0.72);
  margin-bottom: 0;
}
.footer-secondary-content {
  width: 100%;
}
.footer-widgets {
  width: 100%;
}
.footer-widgets .widget:first-child {
  margin-top: 0;
}

.alignwide { width: min(calc(100% - 2rem), 1100px); margin-left: auto; margin-right: auto; }
.alignfull { width: 100%; }

@media (max-width: 960px) {
  .section-grid, .front-section.media-left .section-grid, .site-footer-inner, .template-grid, .card-grid { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .menu-toggle { display: inline-flex; }
  .primary-navigation {
    position: absolute;
    top: calc(100% + .5rem);
    left: 1rem;
    right: 1rem;
    display: none;
    background: rgba(244, 239, 232, 0.98);
    border: 1px solid rgba(111, 78, 55, 0.12);
    border-radius: 20px;
    box-shadow: var(--htn-shadow);
    padding: .75rem;
  }
  .primary-navigation.is-open { display: block; }
  .primary-navigation ul { display: block; }
  .primary-navigation a { display: block; }
  .site-description { display: none; }
}

@media (max-width: 600px) {
  .hero { min-height: 72vh; }
  .hero-content { padding: 5rem 0 4rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .entry-card, .front-section .section-card { padding: 1.25rem; }
}
