/* ── WATTS MAKE CENTS — Shared Stylesheet ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --teal:       #1B7A6A;
  --teal-dark:  #0F5047;
  --teal-light: #E0F4F0;
  --teal-mid:   #229980;
  --sun:        #F5A623;
  --sun-light:  #FEF3DC;
  --sun-dark:   #B87918;
  --white:      #FFFFFF;
  --slate:      #2C3E50;
  --text:       #1C2B3A;
  --text-muted: #6B7C8F;
  --border:     #DCE3EC;
  --bg:         #F6F9FC;
  --radius:     12px;
  --radius-sm:  8px;
  --radius-lg:  16px;
  --red:        #E04B3A;
  --red-light:  #FDECEA;
  --green:      #2D9E6B;
  --green-light:#E5F7EF;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 15px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }

/* ── HILL COUNTRY SOLAR SPONSORED BANNER ── */
.hcs-banner {
  background: linear-gradient(135deg, #0F5047 0%, #1B7A6A 50%, #229980 100%);
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.hcs-banner-left {
  display: flex;
  align-items: center;
  gap: 14px;
}
.hcs-banner-sponsored {
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  white-space: nowrap;
  border: 1px solid rgba(255,255,255,0.2);
  padding: 2px 6px;
  border-radius: 4px;
}
.hcs-banner-logo {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: white;
  white-space: nowrap;
  text-decoration: none;
}
.hcs-banner-logo:hover { text-decoration: underline; color: var(--sun-light); }
.hcs-banner-logo span { color: var(--sun); }
.hcs-banner-tagline {
  font-size: 13px;
  color: rgba(255,255,255,0.78);
  white-space: nowrap;
}
.hcs-banner-divider {
  width: 1px;
  height: 28px;
  background: rgba(255,255,255,0.2);
  flex-shrink: 0;
}
.hcs-banner-cta {
  background: var(--sun);
  color: #3A2800;
  font-family: 'Sora', sans-serif;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  display: inline-block;
  flex-shrink: 0;
  transition: background 0.15s;
}
.hcs-banner-cta:hover { background: var(--sun-dark); color: white; text-decoration: none; }
@media (max-width: 600px) {
  .hcs-banner-tagline { display: none; }
  .hcs-banner-divider { display: none; }
}

/* ── QUOTE MODAL ── */
.quote-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: rgba(15,30,45,0.80);
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(3px);
}
.quote-modal-overlay.open { display: flex; }
.quote-modal {
  background: white;
  border-radius: 16px;
  max-width: 480px;
  width: 100%;
  box-shadow: 0 24px 64px rgba(0,0,0,0.35);
  overflow: hidden;
  max-height: 90vh;
  overflow-y: auto;
}
.quote-modal-header {
  background: linear-gradient(135deg, var(--teal-dark), var(--teal));
  padding: 20px 24px;
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
}
.quote-modal-header h2 { font-family: 'Sora', sans-serif; font-size: 17px; font-weight: 700; margin-bottom: 3px; }
.quote-modal-header p  { font-size: 13px; opacity: 0.8; margin: 0; }
.quote-modal-close {
  background: rgba(255,255,255,0.15);
  border: none;
  color: white;
  font-size: 20px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  flex-shrink: 0;
  line-height: 1;
}
.quote-modal-body { padding: 20px 24px 24px; display: flex; flex-direction: column; gap: 12px; }
.qm-success { display: none; padding: 32px 24px; text-align: center; }
.qm-success.show { display: block; }
.qm-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 400px) { .qm-form-row { grid-template-columns: 1fr; } }
.qm-group { display: flex; flex-direction: column; gap: 4px; }
.qm-label { font-size: 11px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.qm-input, .qm-select, .qm-textarea {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  background: white;
  width: 100%;
  transition: border-color 0.15s;
}
.qm-input:focus, .qm-select:focus, .qm-textarea:focus { outline: none; border-color: var(--teal); }
.qm-submit {
  background: var(--teal);
  color: white;
  border: none;
  padding: 13px;
  border-radius: var(--radius-sm);
  font-family: 'Sora', sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  transition: background 0.15s;
}
.qm-submit:hover:not(:disabled) { background: var(--teal-dark); }
.qm-submit:disabled { background: #B0BEC5; cursor: not-allowed; }
[data-fs-error] { display: none; background: var(--red-light); border: 1px solid #F5C8C3; border-radius: var(--radius-sm); padding: 10px 14px; font-size: 13px; color: var(--red); }

/* ── AD SLOTS ── */
.ad-slot { display: none; }
.ad-label { display: none; }
.ad-leaderboard { max-width: 728px; margin: 0 auto; }
.ad-rect        { width: 300px; height: 250px; }
.ad-wrap        { text-align: center; padding: 0; background: white; }
.ad-wrap-inline { text-align: center; margin: 0; }

/* ── SITE HEADER / NAV ── */
.site-header {
  background: var(--teal-dark);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo svg { width: 36px; height: 36px; }
.nav-logo-text { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 17px; color: white; line-height: 1.1; }
.nav-logo-text span { color: var(--sun); }
.nav-logo-sub { font-size: 10px; color: rgba(255,255,255,0.55); letter-spacing: 0.06em; text-transform: uppercase; display: block; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; flex: 1; flex-wrap: nowrap; }
.nav-links li { flex-shrink: 0; }
.nav-links a {
  color: rgba(255,255,255,0.78);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
  display: block;
}
.nav-links a:hover, .nav-links a.active { background: rgba(255,255,255,0.12); color: white; text-decoration: none; }
.nav-cta { background: var(--sun) !important; color: #3A2800 !important; font-weight: 700 !important; }
.nav-cta:hover { background: var(--sun-dark) !important; color: white !important; }
.nav-hamburger { display: none; background: none; border: none; cursor: pointer; padding: 8px; color: white; font-size: 22px; margin-left: auto; }
@media (max-width: 760px) {
  .nav-hamburger { display: block; }
  .nav-links { display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--teal-dark); padding: 12px 20px 20px; gap: 4px; box-shadow: 0 8px 24px rgba(0,0,0,0.2); z-index: 99; }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { width: 100%; }
}

/* ── HERO ── */
.hero {
  background: linear-gradient(135deg, var(--teal-dark) 0%, var(--teal) 60%, var(--teal-mid) 100%);
  color: white;
  padding: 64px 24px 72px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before { content: ''; position: absolute; top: -80px; right: -80px; width: 320px; height: 320px; background: rgba(255,255,255,0.04); border-radius: 50%; }
.hero::after  { content: ''; position: absolute; bottom: -60px; left: -60px; width: 220px; height: 220px; background: rgba(255,255,255,0.04); border-radius: 50%; }
.hero-badge { display: inline-block; background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.25); border-radius: 100px; padding: 4px 16px; font-size: 12px; font-weight: 500; letter-spacing: 0.07em; margin-bottom: 20px; text-transform: uppercase; }
.hero h1 { font-family: 'Sora', sans-serif; font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 700; line-height: 1.15; margin-bottom: 16px; max-width: 700px; margin-left: auto; margin-right: auto; }
.hero h1 .accent { color: var(--sun); }
.hero p { font-size: 1.1rem; opacity: 0.85; max-width: 540px; margin: 0 auto 32px; }
.btn { display: inline-block; padding: 13px 28px; border-radius: var(--radius-sm); font-weight: 700; font-size: 15px; cursor: pointer; text-decoration: none; transition: all 0.15s; border: none; font-family: inherit; }
.btn-sun { background: var(--sun); color: #3A2800; }
.btn-sun:hover { background: var(--sun-dark); color: white; text-decoration: none; }
.btn-outline { background: rgba(255,255,255,0.12); color: white; border: 1px solid rgba(255,255,255,0.3); }
.btn-outline:hover { background: rgba(255,255,255,0.22); text-decoration: none; }
.hero-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── PAGE WRAP ── */
.page-wrap { max-width: 1100px; margin: 0 auto; padding: 40px 20px 60px; }
.page-wrap-narrow { max-width: 780px; margin: 0 auto; padding: 40px 20px 60px; }

/* ── SECTION TITLES ── */
.section-title { font-family: 'Sora', sans-serif; font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 700; margin-bottom: 8px; color: var(--text); }
.section-sub { font-size: 15px; color: var(--text-muted); margin-bottom: 36px; max-width: 560px; }

/* ── FEATURE CARDS ── */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-bottom: 48px; }
.feature-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.feature-icon { font-size: 32px; margin-bottom: 12px; display: block; }
.feature-card h3 { font-family: 'Sora', sans-serif; font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* ── ARTICLE CARDS ── */
.articles-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; margin-bottom: 40px; }
.article-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow 0.2s, transform 0.2s; }
.article-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.08); transform: translateY(-2px); }
.article-card-img { height: 160px; background: linear-gradient(135deg, var(--teal-dark), var(--teal-mid)); display: flex; align-items: center; justify-content: center; font-size: 48px; }
.article-card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.article-tag { display: inline-block; background: var(--teal-light); color: var(--teal-dark); font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 100px; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 10px; }
.article-card h3 { font-family: 'Sora', sans-serif; font-size: 16px; font-weight: 600; margin-bottom: 8px; line-height: 1.3; color: var(--text); }
.article-card p { font-size: 13px; color: var(--text-muted); flex: 1; margin-bottom: 16px; line-height: 1.6; }
.article-card-footer { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--text-muted); border-top: 1px solid var(--border); padding-top: 12px; margin-top: auto; }
.article-card-link { color: var(--teal); font-weight: 600; font-size: 13px; }

/* ── ARTICLE PAGE ── */
.article-header { background: linear-gradient(135deg, var(--teal-dark), var(--teal)); color: white; padding: 56px 24px 48px; }
.article-header .article-tag { background: rgba(255,255,255,0.15); color: white; }
.article-header h1 { font-family: 'Sora', sans-serif; font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 700; line-height: 1.2; margin: 12px 0 16px; max-width: 680px; }
.article-meta { font-size: 13px; opacity: 0.75; }
.article-body { max-width: 720px; margin: 0 auto; padding: 40px 20px 60px; }
.article-body h2 { font-family: 'Sora', sans-serif; font-size: 1.4rem; font-weight: 600; margin: 36px 0 12px; }
.article-body h3 { font-family: 'Sora', sans-serif; font-size: 1.1rem; font-weight: 600; margin: 24px 0 8px; }
.article-body p { margin-bottom: 18px; line-height: 1.8; font-size: 16px; }
.article-body ul, .article-body ol { margin: 0 0 18px 24px; }
.article-body li { margin-bottom: 8px; line-height: 1.7; font-size: 16px; }
.article-body blockquote { border-left: 4px solid var(--teal); padding: 12px 20px; background: var(--teal-light); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: 24px 0; font-size: 15px; color: var(--teal-dark); }
.article-cta { background: linear-gradient(135deg, var(--teal-dark), var(--teal)); border-radius: var(--radius); padding: 28px 32px; color: white; margin: 36px 0; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.article-cta h3 { font-family: 'Sora', sans-serif; font-size: 17px; font-weight: 600; margin-bottom: 6px; }
.article-cta p { font-size: 13px; opacity: 0.85; margin: 0; }

/* ── SIDEBAR LAYOUT ── */
.content-with-sidebar { display: grid; grid-template-columns: 1fr 300px; gap: 32px; max-width: 1100px; margin: 0 auto; padding: 40px 20px 60px; align-items: start; }
@media (max-width: 860px) { .content-with-sidebar { grid-template-columns: 1fr; } .sidebar-col { display: none; } }
.sidebar-col { display: flex; flex-direction: column; gap: 20px; }

/* ── CONTACT FORM ── */
.contact-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.contact-card-header { background: linear-gradient(135deg, var(--teal-dark), var(--teal)); padding: 24px 28px; color: white; }
.contact-card-header h2 { font-family: 'Sora', sans-serif; font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.contact-card-header p { font-size: 13px; opacity: 0.8; }
.contact-form { padding: 24px 28px; display: flex; flex-direction: column; gap: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 500px) { .form-row { grid-template-columns: 1fr; } }
.form-group { display: flex; flex-direction: column; gap: 5px; }
.form-label { font-size: 12px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.form-input, .form-select, .form-textarea { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 14px; font-size: 14px; font-family: inherit; color: var(--text); background: var(--white); transition: border-color 0.15s; width: 100%; }
.form-input:focus, .form-select:focus, .form-textarea:focus { outline: none; border-color: var(--teal); }
.form-textarea { resize: vertical; }
.form-submit { background: var(--teal); color: white; border: none; padding: 13px; border-radius: var(--radius-sm); font-family: 'Sora', sans-serif; font-size: 15px; font-weight: 600; cursor: pointer; transition: background 0.15s; width: 100%; }
.form-submit:hover:not(:disabled) { background: var(--teal-dark); }
.form-submit:disabled { background: #B0BEC5; cursor: not-allowed; }
[data-fs-success] { display: none; padding: 32px; text-align: center; }

/* ── PROSE ── */
.prose h2 { font-family: 'Sora', sans-serif; font-size: 1.3rem; font-weight: 600; margin: 32px 0 10px; }
.prose h3 { font-family: 'Sora', sans-serif; font-size: 1.05rem; font-weight: 600; margin: 20px 0 6px; }
.prose p { margin-bottom: 14px; line-height: 1.8; }
.prose ul { margin: 0 0 14px 22px; }
.prose li { margin-bottom: 6px; line-height: 1.7; }

/* ── COMING SOON ── */
.coming-soon { background: var(--white); border: 2px dashed var(--border); border-radius: var(--radius); padding: 40px; text-align: center; color: var(--text-muted); }
.coming-soon .cs-icon { font-size: 40px; margin-bottom: 12px; display: block; }
.coming-soon h3 { font-family: 'Sora', sans-serif; font-size: 17px; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.coming-soon p { font-size: 14px; max-width: 360px; margin: 0 auto; }

/* ── FOOTER ── */
.site-footer { background: var(--slate); color: rgba(255,255,255,0.55); padding: 36px 20px 24px; font-size: 13px; }
.footer-inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: start; margin-bottom: 24px; }
@media (max-width: 600px) { .footer-inner { grid-template-columns: 1fr; } }
.footer-brand { font-family: 'Sora', sans-serif; font-size: 15px; font-weight: 700; color: white; margin-bottom: 6px; }
.footer-brand span { color: var(--sun); }
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-links a { color: rgba(255,255,255,0.65); text-decoration: none; }
.footer-links a:hover { color: white; }
.footer-bottom { max-width: 1100px; margin: 0 auto; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.1); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* ── FILTER BUTTONS ── */
.filter-btn { padding: 6px 14px; border-radius: 100px; border: 1px solid var(--border); background: var(--white); font-size: 13px; font-weight: 500; cursor: pointer; color: var(--text-muted); font-family: inherit; transition: all 0.15s; }
.filter-btn.active { background: var(--teal); color: white; border-color: var(--teal); }
.filter-btn:hover:not(.active) { border-color: var(--teal); color: var(--teal); }
