/*
Theme Name: Passive Solar Theme
Theme URI: https://www.passivesolarenergy.info/
Author: Forge for Paperclip
Author URI: https://www.passivesolarenergy.info/
Description: Lightweight WordPress block theme for Passive Solar Energy lead-generation pages. Includes templates and Gutenberg patterns for front page, money pages, offer page, knowledge articles and FAQ content.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.5
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: passive-solar-theme
Tags: block-theme, full-site-editing, custom-colors, custom-menu, editor-style, one-column, wide-blocks
*/

:root {
  --pse-bg: #fffaf0;
  --pse-surface: #ffffff;
  --pse-cream: #fff7ed;
  --pse-soft-orange: #ffedd5;
  --pse-line: #fed7aa;
  --pse-brand: #f97316;
  --pse-brand-dark: #9a3412;
  --pse-ink: #111827;
  --pse-text: #374151;
  --pse-muted: #6b7280;
  --pse-green: #15803d;
  --pse-blue: #2563eb;
  --pse-radius: 24px;
  --pse-shadow: 0 22px 65px rgba(154, 52, 18, .10);
}

html { scroll-behavior: smooth; }
body { background: linear-gradient(180deg, #fff7ed 0%, #fff 42%, #fffbeb 100%); }
a { text-underline-offset: .18em; }
.wp-site-blocks { overflow-x: hidden; }

.pse-site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--pse-line);
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(14px);
}
.pse-site-header .wp-block-navigation a { font-weight: 800; text-decoration: none; }
.pse-brand-mark {
  display: inline-block;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: radial-gradient(circle at 70% 30%, #fff7ed 0 17%, transparent 18%), linear-gradient(135deg, var(--pse-brand), #facc15);
  box-shadow: 0 10px 24px rgba(249,115,22,.25);
}
.pse-site-footer { border-top: 1px solid var(--pse-line); }

.pse-hero,
.pse-section,
.pse-final-cta,
.pse-form-panel,
.pse-card,
.pse-link-card,
.pse-trust-strip,
.pse-process-steps,
.pse-decision-cards,
.pse-price-wrapper,
.pse-faq {
  box-sizing: border-box;
}
.pse-hero {
  border: 1px solid var(--pse-line);
  border-radius: 34px;
  padding: clamp(2rem, 5vw, 4.5rem);
  background: linear-gradient(145deg, #ffffff 0%, #fff7ed 100%);
  box-shadow: var(--pse-shadow);
  position: relative;
  overflow: hidden;
}
.pse-hero:before {
  content: '';
  position: absolute;
  right: -5rem;
  top: -5rem;
  width: 16rem;
  height: 16rem;
  border-radius: 999px;
  background: radial-gradient(circle, #fed7aa 0, #ffedd5 38%, transparent 66%);
  pointer-events: none;
}
.pse-hero > * { position: relative; z-index: 1; }
.pse-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .42rem .8rem;
  border-radius: 999px;
  background: var(--pse-soft-orange);
  border: 1px solid var(--pse-line);
  color: var(--pse-brand-dark);
  font-size: .9rem;
  font-weight: 900;
  letter-spacing: .01em;
}
.pse-lead { color: var(--pse-text); font-size: clamp(1.08rem, 2vw, 1.25rem); line-height: 1.7; max-width: 760px; }
.pse-card,
.pse-link-card,
.pse-trust-strip > .wp-block-group,
.pse-process-steps > .wp-block-group,
.pse-decision-cards > .wp-block-group {
  background: var(--pse-surface);
  border: 1px solid var(--pse-line);
  border-radius: var(--pse-radius);
  box-shadow: 0 12px 34px rgba(154,52,18,.06);
}
.pse-card, .pse-link-card { padding: clamp(1.2rem, 3vw, 1.65rem); }
.pse-number {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: var(--pse-soft-orange);
  color: var(--pse-brand-dark);
  font-weight: 950;
}
.pse-trust-strip { gap: 1rem; }
.pse-trust-strip strong { display: block; color: var(--pse-ink); }
.pse-trust-strip span { color: var(--pse-muted); font-size: .92rem; }
.pse-process-steps, .pse-decision-cards, .pse-link-grid { gap: 1.1rem; }
.pse-price-wrapper { overflow-x: auto; border-radius: var(--pse-radius); }
.wp-block-table table { border-collapse: collapse; width: 100%; }
.wp-block-table th { background: var(--pse-cream); color: var(--pse-brand-dark); text-align: left; }
.wp-block-table th, .wp-block-table td { border: 1px solid var(--pse-line); padding: .9rem; }
.pse-faq details, details.wp-block-details {
  border: 1px solid var(--pse-line);
  border-radius: 18px;
  background: #fff;
  padding: 1rem 1.15rem;
  margin-block: .75rem;
}
.pse-faq summary, details.wp-block-details summary { cursor: pointer; font-weight: 850; color: var(--pse-ink); }
.pse-final-cta {
  border-radius: 34px;
  padding: clamp(2rem, 5vw, 4rem);
  background: linear-gradient(135deg, var(--pse-brand-dark), var(--pse-brand));
  color: white;
  box-shadow: 0 22px 65px rgba(249,115,22,.20);
}
.pse-final-cta h1, .pse-final-cta h2, .pse-final-cta h3, .pse-final-cta p { color: white; }
.pse-final-cta a:not(.wp-block-button__link) { color: #fff7ed; }
.pse-form-panel {
  border: 1px solid #bbf7d0;
  border-radius: 28px;
  background: #ecfdf5;
  padding: clamp(1.5rem, 4vw, 2.4rem);
}
.wp-block-button__link {
  font-weight: 900;
  box-shadow: 0 12px 26px rgba(249,115,22,.22);
}
.is-style-outline .wp-block-button__link {
  box-shadow: none;
  background: #fff;
}
.pse-muted { color: var(--pse-muted); }
.pse-check-list { list-style: none; padding-left: 0; }
.pse-check-list li { position: relative; padding-left: 1.8rem; margin: .6rem 0; }
.pse-check-list li:before { content: '✓'; position: absolute; left: 0; color: var(--pse-green); font-weight: 950; }
@media (max-width: 780px) {
  .pse-site-header { position: static; }
  .pse-hero { border-radius: 24px; }
  .pse-trust-strip, .pse-process-steps, .pse-decision-cards, .pse-link-grid { grid-template-columns: 1fr !important; }
}
