/*
Theme Name: Solar Co. — Wireframe Demo
Theme URI: https://phaseshift.example/demo
Author: Phaseshift
Author URI: https://phaseshift.example
Description: A low-fidelity grayscale wireframe of a generic solar-company homepage, used to pitch the Phaseshift Calculator plugin. Everything on the page is a gray placeholder — except the real, live calculator dropped into the center. The contrast shows a prospect exactly how the plugin would look embedded in their own site.
Version: 1.0.0
Requires at least: 6.0
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: solar-wireframe-demo
*/

/* ============================================================
   Solar Co. — Wireframe Demo theme
   All classes are namespaced .swf-* so nothing collides with the
   calculator widget (which is scoped under .phsc-root).

   Design intent: a deliberately LOW-FIDELITY, monochrome mockup.
   No brand color appears anywhere on the page — the only colored,
   polished, working element is the live plugin in the center.
   ============================================================ */

:root {
  /* Cool-neutral wireframe grays */
  --swf-page:      #f4f6f7;   /* page background                       */
  --swf-surface:   #ffffff;   /* nav / footer surfaces                 */
  --swf-box:       #e7eaec;   /* placeholder block fill                */
  --swf-box-2:     #eef1f2;   /* lighter placeholder fill              */
  --swf-bar:       #d8dde0;   /* "text" bars                           */
  --swf-bar-soft:  #e2e6e8;   /* fainter text bars                     */
  --swf-line:      #cdd3d7;   /* solid hairlines                       */
  --swf-dash:      #bcc3c8;   /* dashed outlines                       */
  --swf-ink:       #8b9298;   /* muted "real" text / headings          */
  --swf-ink-soft:  #a7aeb3;   /* fainter labels                        */
  --swf-ink-strong:#6d757b;   /* slightly darker heading ink           */
  --swf-mono: ui-monospace, 'SFMono-Regular', 'SF Mono', Menlo, Consolas, monospace;
  --swf-sans: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --swf-container: 1140px;
  --swf-radius: 10px;
}

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

html { -webkit-text-size-adjust: 100%; }

body.swf-body {
  margin: 0;
  background: var(--swf-page);
  color: var(--swf-ink);
  font-family: var(--swf-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* ---------- Layout ---------- */
.swf-container {
  max-width: var(--swf-container);
  margin: 0 auto;
  padding: 0 24px;
}

.swf-section { padding: 72px 0; }
.swf-section--tight { padding: 48px 0; }
.swf-section--alt { background: #eef1f2; }

.swf-center { text-align: center; }
.swf-mt-0 { margin-top: 0; }

/* ---------- Wireframe primitives ---------- */

/* "Text" rendered as gray bars — the classic mockup signal. Widths are set
   inline in the template so lines look naturally ragged. */
.swf-bar {
  height: 13px;
  background: var(--swf-bar);
  border-radius: 4px;
  margin: 0 0 10px;
}
.swf-bar--soft { background: var(--swf-bar-soft); }
.swf-bar--tall { height: 18px; }
.swf-bar--lg   { height: 26px; }
.swf-bars > .swf-bar:last-child { margin-bottom: 0; }
.swf-bars--center { display: flex; flex-direction: column; align-items: center; }

/* Real (muted) copy — used for recognizable solar section headings so a
   prospect reads the structure of their own site. Still obviously wireframe. */
.swf-eyebrow {
  font-family: var(--swf-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--swf-ink-soft);
  margin: 0 0 14px;
}
.swf-heading {
  font-family: var(--swf-sans);
  font-weight: 700;
  color: var(--swf-ink-strong);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
}
.swf-heading--xl { font-size: 40px; }
.swf-heading--lg { font-size: 30px; }
.swf-heading--md { font-size: 20px; }
.swf-subtext { color: var(--swf-ink-soft); margin: 0 0 24px; max-width: 52ch; }
.swf-center .swf-subtext { margin-left: auto; margin-right: auto; }

/* Image placeholder: gray box with a diagonal cross + a small mono label. */
.swf-img {
  position: relative;
  background-color: var(--swf-box);
  background-image:
    linear-gradient(45deg,  transparent calc(50% - 1px), var(--swf-dash) calc(50% - 1px), var(--swf-dash) calc(50% + 1px), transparent calc(50% + 1px)),
    linear-gradient(-45deg, transparent calc(50% - 1px), var(--swf-dash) calc(50% - 1px), var(--swf-dash) calc(50% + 1px), transparent calc(50% + 1px));
  border: 1px solid var(--swf-line);
  border-radius: var(--swf-radius);
  min-height: 160px;
}
.swf-img__label {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--swf-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--swf-ink-soft);
  background: var(--swf-page);
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.swf-img--hero  { min-height: 340px; }
.swf-img--wide  { min-height: 240px; }
.swf-img--tall  { min-height: 300px; }

/* Circles — avatars, step numbers, feature icons. */
.swf-circle {
  border-radius: 50%;
  background: var(--swf-box);
  border: 1px solid var(--swf-line);
  flex: 0 0 auto;
}
.swf-circle--sm { width: 40px;  height: 40px; }
.swf-circle--md { width: 56px;  height: 56px; }
.swf-circle--lg { width: 72px;  height: 72px; }

/* Buttons — outlined gray placeholders. */
.swf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--swf-sans);
  font-weight: 600;
  font-size: 15px;
  color: var(--swf-ink);
  background: var(--swf-box-2);
  border: 1px solid var(--swf-line);
  border-radius: 8px;
  padding: 12px 22px;
  min-height: 46px;
  cursor: default;
  text-decoration: none;
  white-space: nowrap;
}
.swf-btn--solid  { background: var(--swf-bar); border-color: var(--swf-dash); color: var(--swf-ink-strong); }
.swf-btn--outline{ background: transparent; border-style: dashed; border-color: var(--swf-dash); }
.swf-btn--block  { display: flex; width: 100%; }
.swf-btn-row { display: flex; gap: 12px; flex-wrap: wrap; }
.swf-center .swf-btn-row { justify-content: center; }

/* Small pill / chip. */
.swf-chip {
  display: inline-block;
  background: var(--swf-box);
  border: 1px solid var(--swf-line);
  border-radius: 999px;
  height: 22px;
  min-width: 64px;
}

/* ---------- Top navigation (header.php) ---------- */
.swf-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--swf-surface);
  border-bottom: 1px solid var(--swf-line);
}
.swf-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
}
.swf-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 132px;
  height: 40px;
  background: var(--swf-box);
  border: 1px dashed var(--swf-dash);
  border-radius: 6px;
  font-family: var(--swf-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--swf-ink-soft);
}
.swf-nav__links {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.swf-nav__link {
  font-size: 15px;
  color: var(--swf-ink);
  text-decoration: none;
  font-weight: 500;
}
.swf-nav__spacer { flex: 1; }
.swf-nav__burger { display: none; }

/* ---------- Hero ---------- */
.swf-hero { padding: 68px 0 76px; }
.swf-hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}
.swf-hero__copy { min-width: 0; }

/* ---------- Trust strip ---------- */
.swf-trust {
  border-top: 1px solid var(--swf-line);
  border-bottom: 1px solid var(--swf-line);
  background: var(--swf-surface);
  padding: 26px 0;
}
.swf-trust__inner {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  justify-content: center;
}
.swf-trust__label {
  font-family: var(--swf-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--swf-ink-soft);
}
.swf-logo-box {
  width: 116px;
  height: 34px;
  background: var(--swf-box);
  border: 1px solid var(--swf-line);
  border-radius: 5px;
}

/* ============================================================
   ★ CALCULATOR SECTION — the one real, polished element.
   The card lifts off the flat wireframe with a genuine shadow.
   ============================================================ */
.swf-calc {
  padding: 78px 0;
  background:
    linear-gradient(180deg, transparent 0 140px, #e9edee 140px 100%);
}
.swf-calc__head { max-width: 640px; margin: 0 auto 36px; text-align: center; }
.swf-calc__card {
  max-width: 960px;
  margin: 0 auto;
  background: var(--swf-surface);
  border-radius: 18px;
  box-shadow:
    0 2px 6px rgba(15, 33, 37, 0.06),
    0 18px 50px rgba(15, 33, 37, 0.16);
  padding: 10px;
  overflow: hidden;
}
.swf-calc__inner {
  background: var(--swf-page);
  border-radius: 12px;
  overflow: hidden;
}

/* ---------- How it works ---------- */
.swf-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-top: 44px;
}
.swf-step { text-align: center; }
.swf-step__num {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--swf-box);
  border: 1px dashed var(--swf-dash);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
  font-family: var(--swf-mono);
  font-size: 18px;
  color: var(--swf-ink-soft);
}

/* ---------- Benefits / feature rows ---------- */
.swf-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.swf-feature + .swf-feature { margin-top: 64px; }
.swf-feature--reverse .swf-feature__media { order: -1; }

/* ---------- Testimonials ---------- */
.swf-quotes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 44px;
}
.swf-quote {
  background: var(--swf-surface);
  border: 1px solid var(--swf-line);
  border-radius: 12px;
  padding: 26px 24px;
}
.swf-quote__stars {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
}
.swf-quote__star { width: 16px; height: 16px; border-radius: 3px; background: var(--swf-bar); }
.swf-quote__author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}

/* ---------- CTA band ---------- */
.swf-ctaband {
  background: #e4e8ea;
  border-top: 1px solid var(--swf-line);
  border-bottom: 1px solid var(--swf-line);
  padding: 56px 0;
}
.swf-ctaband__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

/* ---------- Footer ---------- */
.swf-footer {
  background: var(--swf-surface);
  border-top: 1px solid var(--swf-line);
  padding: 56px 0 0;
}
.swf-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 44px;
}
.swf-footer__col .swf-bar { max-width: 150px; }
.swf-footer__links { list-style: none; margin: 16px 0 0; padding: 0; }
.swf-footer__links li { margin-bottom: 12px; }
.swf-footer__bottom {
  border-top: 1px solid var(--swf-line);
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 960px) {
  .swf-hero__grid { grid-template-columns: 1fr; gap: 36px; }
  .swf-hero__media { order: -1; }
  .swf-steps { grid-template-columns: repeat(2, 1fr); gap: 32px 24px; }
  .swf-feature { grid-template-columns: 1fr; gap: 28px; }
  .swf-feature--reverse .swf-feature__media { order: 0; }
  .swf-quotes { grid-template-columns: 1fr; }
  .swf-footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .swf-heading--xl { font-size: 32px; }
}

@media (max-width: 680px) {
  .swf-nav__links { display: none; }
  .swf-nav__burger {
    display: flex;
    width: 42px; height: 42px;
    border: 1px solid var(--swf-line);
    border-radius: 8px;
    background: var(--swf-box-2);
    align-items: center; justify-content: center;
  }
  .swf-nav__burger span {
    width: 18px; height: 2px; background: var(--swf-ink);
    box-shadow: 0 -5px 0 var(--swf-ink), 0 5px 0 var(--swf-ink);
  }
  .swf-section { padding: 52px 0; }
  .swf-calc { padding: 52px 0; }
  .swf-calc__card { border-radius: 14px; }
  .swf-footer__grid { grid-template-columns: 1fr; }
  .swf-ctaband__inner { flex-direction: column; align-items: flex-start; }
  .swf-container { padding: 0 18px; }
}
