/*
Theme Name: Northern Indiana Power Wash
Theme URI: https://example.com/
Author: Ken Miller Media War Room
Author URI: https://example.com/
Description: Lightweight, conversion-focused theme (fast + clean) designed to let you control page layouts from the editor (no hardcoded sections).
Version: 1.1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nipw
Tags: custom-colors, custom-logo, editor-style, featured-images, translation-ready, block-styles
*/

/* =========================================================
   DESIGN TOKENS (your colors)
   ======================================================= */
:root{
  --primary:#3B2A24;
  --secondary:#B57A4B;
  --accent:#C47A2C;
  --background:#F5EFE8;
  --text:#1C1B1A;

  --radius:14px;
  --shadow:0 10px 30px rgba(0,0,0,.08);
  --container:1140px;
  --section-pad:3.5rem;

  --focus:0 0 0 3px rgba(196,122,44,.35);

  /* Performance Mode overrides get applied via body class */
}

/* =========================================================
   BASE
   ======================================================= */
*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  background:var(--background);
  color:var(--text);
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  line-height:1.6;
}
img{ max-width:100%; height:auto; }
a{ color:var(--primary); text-decoration:none; }
a:hover{ text-decoration:underline; }
:focus-visible{ outline:none; box-shadow:var(--focus); border-radius:8px; }

/* Prevent layout shift + nicer media */
.entry-content img,
.wp-block-image img{
  border-radius:var(--radius);
}
.is-style-nipw-shadow img,
.is-style-nipw-shadow{
  box-shadow:var(--shadow);
}

/* =========================================================
   LAYOUT HELPERS
   ======================================================= */
.container{ width:min(var(--container), calc(100% - 2rem)); margin-inline:auto; }
.section{ padding:var(--section-pad) 0; }
.stack > * + *{ margin-top:1rem; } /* simple vertical rhythm */
.flow > * + *{ margin-top:.75rem; } /* tighter */

.card{
  background:#fff;
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:1.25rem;
  border:1px solid rgba(0,0,0,.05);
}
.card--tight{ padding:1rem; }
.card--soft{
  background:rgba(255,255,255,.82);
  backdrop-filter:blur(8px);
}

.grid{ display:grid; gap:1rem; }
.cols-2{ grid-template-columns:repeat(2,minmax(0,1fr)); }
.cols-3{ grid-template-columns:repeat(3,minmax(0,1fr)); }
@media (max-width: 900px){
  .cols-2, .cols-3{ grid-template-columns:1fr; }
}

/* =========================================================
   HEADER
   ======================================================= */
.skip-link{
  position:absolute;
  top:-100px;
  left:1rem;
  background:#fff;
  color:var(--primary);
  padding:.6rem .9rem;
  border-radius:12px;
  box-shadow:var(--shadow);
  z-index:10000;
}
.skip-link:focus{ top:1rem; }

.site-header{
  position:sticky;
  top:0;
  z-index:1000;
  border-bottom:1px solid rgba(0,0,0,.06);
}
.site-header.header--glass{
  background:rgba(245,239,232,.92);
  backdrop-filter:blur(10px);
}
.site-header.header--solid{
  background:var(--background);
}

.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
  padding:.9rem 0;
}
.brand{
  display:flex;
  align-items:center;
  gap:.75rem;
  min-width:0;
}
.brand-title{
  font-weight:900;
  letter-spacing:.2px;
  color:var(--primary);
  font-size:1.05rem;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.brand-logo img{ max-height:56px; width:auto; }

.site-nav ul{
  list-style:none;
  display:flex;
  gap:1rem;
  padding:0;
  margin:0;
  align-items:center;
}
.site-nav a{
  display:inline-block;
  padding:.45rem .6rem;
  border-radius:10px;
  font-weight:700;
}
.site-nav a:hover{
  background:rgba(181,122,75,.14);
  text-decoration:none;
}

/* Mobile nav */
.menu-toggle{
  display:none;
  border:1px solid rgba(0,0,0,.12);
  background:#fff;
  border-radius:12px;
  padding:.5rem .7rem;
  cursor:pointer;
  font-weight:800;
}
@media (max-width: 900px){
  .menu-toggle{ display:inline-flex; }
  .site-nav{ display:none; }
  .site-nav.is-open{ display:block; }
  .site-nav ul{
    flex-direction:column;
    align-items:flex-start;
    padding:.75rem;
    background:#fff;
    border-radius:var(--radius);
    box-shadow:var(--shadow);
  }
}

/* =========================================================
   BUTTONS
   ======================================================= */
.btn,
.button-primary,
.wp-block-button__link,
.button,
button,
input[type="submit"]{
  appearance:none;
  border:none;
  border-radius:14px;
  padding:.85rem 1.05rem;
  font-weight:900;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.5rem;
  text-decoration:none;
  transition:transform .08s ease, background .15s ease, opacity .15s ease, box-shadow .15s ease;
}
.btn:active,
.button-primary:active,
.wp-block-button__link:active,
button:active,
input[type="submit"]:active{
  transform:translateY(0);
}
.btn--primary,
.button-primary,
.wp-block-button__link,
input[type="submit"]{
  background:var(--secondary);
  color:#fff;
}
.btn--primary:hover,
.button-primary:hover,
.wp-block-button__link:hover,
input[type="submit"]:hover{
  background:var(--accent);
  transform:translateY(-1px);
  text-decoration:none;
}

.btn--outline,
.button-outline{
  background:transparent;
  color:var(--primary);
  border:2px solid rgba(59,42,36,.25);
}
.btn--outline:hover,
.button-outline:hover{
  border-color:rgba(196,122,44,.65);
  background:rgba(196,122,44,.10);
  text-decoration:none;
}

/* =========================================================
   CONTENT
   ======================================================= */
.entry-title{ color:var(--primary); margin-top:0; }
.entry-content h2, .entry-content h3, .entry-content h4{ color:var(--primary); }
.entry-content a{ text-decoration:underline; text-underline-offset:2px; }
.entry-content ul{ padding-left:1.2rem; }
.entry-content li + li{ margin-top:.35rem; }

/* WP blocks minor polish */
.wp-block-group{ margin:0; }
.wp-block-columns{ gap:1rem; }

/* Forms */
input, textarea, select{
  width:100%;
  padding:.8rem .9rem;
  border-radius:12px;
  border:1px solid rgba(0,0,0,.12);
  background:#fff;
  font:inherit;
}
label{ font-weight:800; color:var(--primary); }

/* =========================================================
   FOOTER
   ======================================================= */
.site-footer{
  border-top:1px solid rgba(0,0,0,.06);
  padding:2.5rem 0;
}
.footer-grid{
  display:grid;
  gap:1rem;
  grid-template-columns:1.2fr .8fr;
}
@media (max-width: 900px){
  .footer-grid{ grid-template-columns:1fr; }
}
.small{ font-size:.92rem; opacity:.88; }
.badges{ display:flex; gap:.5rem; flex-wrap:wrap; }
.badge{
  background:rgba(59,42,36,.08);
  color:var(--primary);
  padding:.25rem .55rem;
  border-radius:999px;
  font-weight:900;
  font-size:.82rem;
}

/* =========================================================
   UTILITIES
   ======================================================= */
.mt-0{ margin-top:0; }
.mb-0{ margin-bottom:0; }
.hidden{ display:none !important; }

/* =========================================================
   PERFORMANCE MODE
   ======================================================= */
body.nipw-perf-mode{
  /* reduce “pretty” that can cost GPU/paint */
}
body.nipw-perf-mode html{ scroll-behavior:auto; }
body.nipw-perf-mode .card,
body.nipw-perf-mode .site-nav ul,
body.nipw-perf-mode .badge{ box-shadow:none; }
body.nipw-perf-mode .site-header.header--glass{
  backdrop-filter:none;
  background:var(--background);
}
