/*
Theme Name: E-Z Solar
Author: Threele LLC
Description: Editorial WordPress theme for E-Z Solar — Central Florida solar. Paper palette, hub navigation, Fraunces + Figtree. Paste calculators into Custom HTML blocks.
Version: 1.4.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ezsolar
*/

:root {
  --ez-bg: #f2ede3;
  --ez-paper: #faf7f0;
  --ez-ink: #1a1814;
  --ez-muted: #6a6358;
  --ez-subtle: #8a8276;
  --ez-primary: #275c48;
  --ez-primary-fg: #f2ede3;
  --ez-border: rgba(26, 24, 20, 0.12);
  --ez-display: "Fraunces", "Times New Roman", serif;
  --ez-sans: "Figtree", "Segoe UI", system-ui, sans-serif;
  --ez-max: 72rem;
}

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

html {
  -webkit-font-smoothing: antialiased;
  background: var(--ez-bg);
}

body.ezsolar {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--ez-sans);
  color: var(--ez-ink);
  background: var(--ez-bg);
  line-height: 1.55;
}

.ez-shell {
  display: flex;
  min-height: 100dvh;
  flex-direction: column;
}

.ez-main { flex: 1; }

a { color: var(--ez-primary); }
a:hover { color: #1f4b3a; }

h1, h2, h3, h4 {
  font-family: var(--ez-display);
  letter-spacing: -0.03em;
  line-height: 1.15;
  font-weight: 600;
  text-wrap: balance;
}

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

.ez-wrap {
  width: min(var(--ez-max), calc(100% - 2rem));
  margin-inline: auto;
}

/* Header */
.ez-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--ez-border);
  background: color-mix(in srgb, var(--ez-bg) 90%, transparent);
  backdrop-filter: blur(10px);
}

.ez-header-top {
  display: flex;
  height: 3.5rem;
  align-items: center;
  justify-content: space-between;
}

.ez-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ez-ink);
  text-decoration: none;
}

.ez-mark {
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  border-radius: 6px;
  background: var(--ez-primary);
  color: var(--ez-primary-fg);
}

.ez-logo-name {
  display: block;
  font-family: var(--ez-display);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
}

.ez-logo-sub {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ez-muted);
}

.ez-util {
  display: none;
  align-items: center;
  gap: 1rem;
}

.ez-util ul { display: flex; gap: 1rem; margin: 0; padding: 0; list-style: none; }
.ez-util a { text-decoration: none; color: var(--ez-muted); font-size: 0.9rem; font-weight: 500; }
.ez-util a:hover { color: var(--ez-ink); }
.ez-mobile ul { margin: 0; padding: 0; list-style: none; }

.ez-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.25rem;
  padding: 0 0.9rem;
  border-radius: 8px;
  background: var(--ez-primary);
  color: var(--ez-primary-fg);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
}

.ez-btn:hover { background: #1f4b3a; color: var(--ez-primary-fg); }

.ez-toggle {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--ez-ink);
  cursor: pointer;
}

.ez-hubs {
  display: none;
  border-top: 1px solid var(--ez-border);
}

.ez-hubs ul,
.ez-hubs .ez-hub-list {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap;
  align-items: center;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  overflow-x: auto;
  gap: 0;
}

.ez-hubs li {
  display: block;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ez-hubs a {
  display: block;
  padding: 0.65rem 0.75rem;
  border-bottom: 2px solid transparent;
  color: var(--ez-muted);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.ez-hubs a:hover { color: var(--ez-ink); }

.ez-hubs .current-menu-item > a,
.ez-hubs .current-menu-ancestor > a,
.ez-hubs .current_page_item > a {
  border-bottom-color: var(--ez-primary);
  color: var(--ez-primary);
}

.ez-mobile {
  display: none;
  border-top: 1px solid var(--ez-border);
  padding: 0.5rem 1rem 1rem;
}

.ez-mobile.is-open { display: block; }

.ez-mobile a {
  display: block;
  padding: 0.75rem 0.5rem;
  color: var(--ez-ink);
  text-decoration: none;
  font-weight: 500;
}

@media (min-width: 768px) {
  .ez-util { display: flex; }
  .ez-toggle { display: none; }
  .ez-hubs { display: block; }
  .ez-mobile { display: none !important; }
}

/* Content */
.ez-page {
  padding: 2.5rem 0 4rem;
}

.ez-kicker {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ez-primary);
}

.ez-title {
  margin: 0.75rem 0 0;
  max-width: 20ch;
  font-size: clamp(2rem, 4vw, 3rem);
}

.ez-lede {
  margin: 1rem 0 0;
  max-width: 40rem;
  font-size: 1.125rem;
  color: var(--ez-muted);
}

.ez-content {
  max-width: 42rem;
  font-size: 1.05rem;
  line-height: 1.7;
}

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

.ez-content h2 { margin: 2rem 0 0.6rem; font-size: 1.65rem; }
.ez-content h3 { margin: 1.5rem 0 0.5rem; font-size: 1.25rem; }
.ez-content p, .ez-content ul, .ez-content ol { margin: 0.9rem 0; }
.ez-content .alignwide,
.ez-content .wp-block-group,
.ez-content .ezs-hubs { max-width: none; }

.ez-article-head { margin-bottom: 1.75rem; }
.ez-meta { margin-top: 0.5rem; color: var(--ez-muted); font-size: 0.9rem; }

.ez-list { list-style: none; margin: 2rem 0 0; padding: 0; }
.ez-list li { border-top: 1px solid var(--ez-border); }
.ez-list a {
  display: block;
  padding: 1.1rem 0;
  color: var(--ez-ink);
  text-decoration: none;
}
.ez-list a:hover { color: var(--ez-primary); }
.ez-list h2 { margin: 0.25rem 0; font-size: 1.4rem; }
.ez-hub-notes { margin-top: 3rem; max-width: 42rem; }
.ez-hub-notes .ez-list { margin-top: 0.5rem; }

/* Footer */
.ez-footer {
  margin-top: auto;
  border-top: 1px solid var(--ez-border);
  background: var(--ez-paper);
  padding: 3rem 0 0;
}

.ez-footer-grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .ez-footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}

.ez-footer p { color: var(--ez-muted); font-size: 0.9rem; }
.ez-footer h2 {
  margin: 0;
  font-family: var(--ez-sans);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ez-muted);
}
.ez-footer ul { margin: 0.75rem 0 0; padding: 0; list-style: none; }
.ez-footer li { margin: 0.4rem 0; }
.ez-footer a { color: var(--ez-ink); text-decoration: none; font-size: 0.9rem; }
.ez-footer a:hover { color: var(--ez-primary); }

.ez-legal {
  margin-top: 2rem;
  border-top: 1px solid var(--ez-border);
  padding: 1rem 0;
  font-size: 0.75rem;
  color: var(--ez-muted);
}

.ez-404 { text-align: center; padding: 5rem 1rem; }

.ez-logo img,
.custom-logo-link img { height: 2.25rem; width: auto; }

.ez-btn-lg { height: 2.75rem; padding: 0 1.15rem; font-size: 1rem; }
.ez-btn-ghost {
  background: var(--ez-paper);
  color: var(--ez-ink);
  box-shadow: 0 0 0 1px var(--ez-border);
}
.ez-btn-ghost:hover { background: #fff; color: var(--ez-ink); }

.ez-hero {
  border-bottom: 1px solid var(--ez-border);
  padding: 3rem 0;
}
.ez-hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
.ez-hero-title {
  margin: 1rem 0 0;
  font-size: clamp(2.4rem, 5vw, 3.75rem);
  line-height: 1.08;
  max-width: 18ch;
}
.ez-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.75rem 0 0;
}
.ez-hero-note { margin: 1.5rem 0 0; font-size: 0.9rem; color: var(--ez-subtle); }
.ez-hero-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 0 0 1px rgba(26, 24, 20, 0.06), 0 2px 4px rgba(26, 24, 20, 0.04);
}
@media (min-width: 960px) {
  .ez-hero { padding: 4rem 0; }
  .ez-hero-grid { grid-template-columns: 1.05fr 0.95fr; }
}

.ez-section { padding: 3.5rem 0; }
.ez-section-title {
  margin: 0.5rem 0 0;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
}
.ez-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.ez-hub-grid {
  display: grid;
  gap: 0.75rem;
  margin-top: 2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .ez-hub-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .ez-hub-grid { grid-template-columns: repeat(4, 1fr); } }
.ez-hub-grid-2 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .ez-hub-grid-2 { grid-template-columns: 1fr 1fr !important; } }

.ez-card {
  display: flex;
  flex-direction: column;
  padding: 1.25rem;
  border-radius: 16px;
  background: var(--ez-paper);
  color: var(--ez-ink);
  text-decoration: none;
  box-shadow: 0 0 0 1px rgba(26, 24, 20, 0.06), 0 1px 2px rgba(26, 24, 20, 0.04);
}
.ez-card:hover {
  color: var(--ez-ink);
  box-shadow: 0 0 0 1px rgba(26, 24, 20, 0.1), 0 8px 20px -8px rgba(26, 24, 20, 0.12);
}
.ez-card h3 {
  margin: 0.5rem 0 0;
  font-size: 1.5rem;
}
.ez-card p {
  margin: 0.5rem 0 0;
  flex: 1;
  color: var(--ez-muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.ez-tools-band {
  background: var(--ez-ink);
  color: var(--ez-paper);
  padding: 3.5rem 0;
}
.ez-tools-band .ez-section-title { color: var(--ez-paper); }
.ez-kicker-on-ink { color: rgba(250, 247, 240, 0.55); }
.ez-tools-copy {
  margin: 0.75rem 0 0;
  max-width: 36rem;
  color: rgba(250, 247, 240, 0.7);
  font-size: 0.95rem;
}
.ez-tools-grid,
.ez-notes-grid {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}
@media (min-width: 768px) {
  .ez-tools-grid { grid-template-columns: 1fr 1fr; }
  .ez-notes-grid { grid-template-columns: 1fr 1fr 1fr; }
}

.ez-more {
  margin-top: 1rem;
  color: var(--ez-primary);
  font-size: 0.9rem;
  font-weight: 650;
  text-decoration: none;
}
.ez-card .ez-more { display: inline-block; }

.ez-page .alignfull { margin-left: 0; }
body.ezsolar .wp-block-group { padding: 0; }

.ez-content table,
.ez-content .wp-block-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.ez-content th,
.ez-content td {
  border-bottom: 1px solid var(--ez-border);
  padding: 0.55rem 0.4rem;
  text-align: left;
  vertical-align: top;
}
.ez-content th { color: var(--ez-muted); font-size: 0.75rem; letter-spacing: 0.04em; text-transform: uppercase; }
.ez-content .wp-block-button__link,
.ez-content .wp-element-button {
  display: inline-flex;
  background: var(--ez-primary);
  color: var(--ez-primary-fg);
  border-radius: 8px;
  text-decoration: none;
  padding: 0.6rem 1rem;
}
.ez-lede-block,
.ez-lede-block p {
  margin: 1rem 0 0;
  max-width: 40rem;
  font-size: 1.125rem;
  color: var(--ez-muted);
}
.ez-hub-body .ez-lede { margin-top: 1rem; }
.ez-home .ez-hero { margin: 0; }

.ez-widget-embed { margin-top: 2rem; max-width: 52rem; }
.ez-widget-embed .ezs-widget { max-width: 100%; }

.ez-footer .ez-hub-list {
  display: block;
}
.ez-footer .ez-hub-list li { margin: 0.4rem 0; }


