/*
Theme Name: CoCGuy Authority
Theme URI: https://example.com/
Author: J.B. Beyneveldt
Description: Authority-first service provider theme (Black/White/Red with Solar Lime and Fence Yellow accents). Built for “Real Inspections” + transparent pricing.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cocguy-authority
Tags: custom-menu, featured-images, block-styles, wide-blocks
*/

/* ===== Design Tokens ===== */
:root{
  --bg:#0b0b0f;
  --fg:#111112;
  --text:#111112;
  --muted:#5c5c66;
  --white:#ffffff;

  --red:#d6001c;
  --lime:#a3ff12;     /* solar indicator */
  --yellow:#ffd400;   /* fence indicator */

  --border:#e7e7ee;
  --shadow: 0 8px 24px rgba(0,0,0,.12);

  --radius:18px;
  --radius-sm:12px;

  --max:1200px;
  --pad: clamp(16px, 3vw, 28px);

  --h1: clamp(34px, 4vw, 52px);
  --h2: clamp(26px, 3vw, 34px);
  --h3: 20px;
  --body: 16px;
  --small: 13.5px;
}

/* ===== Base ===== */
html{ scroll-behavior:smooth; }
body{
  margin:0;
  background: var(--white);
  color: var(--text);
  font-family: "Montserrat", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: var(--body);
  line-height: 1.6;
}
h1,h2,h3,h4{
  font-family: "IBM Plex Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.15;
  margin: 0 0 12px;
}
h1{ font-size: var(--h1); letter-spacing: -0.02em; }
h2{ font-size: var(--h2); letter-spacing: -0.01em; }
h3{ font-size: var(--h3); }
p{ margin: 0 0 14px; }
a{ color: inherit; text-decoration: none; }
a:hover{ opacity: .9; }
img{ max-width:100%; height:auto; border-radius: var(--radius-sm); }

/* ===== Layout ===== */
.container{
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}
.section{
  padding: clamp(34px, 5vw, 74px) 0;
}
.section.tight{ padding: clamp(22px, 3.5vw, 46px) 0; }
.section.dark{
  background: var(--bg);
  color: var(--white);
}
.section.border-top{
  border-top: 1px solid var(--border);
}
.grid-2{
  display:grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(18px, 3vw, 34px);
  align-items: start;
}
@media (max-width: 860px){
  .grid-2{ grid-template-columns: 1fr; }
}

/* ===== Header ===== */
.site-header{
  position: sticky;
  top:0;
  z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner{
  display:flex;
  align-items:center;
  justify-content: space-between;
  padding: 14px var(--pad);
  max-width: var(--max);
  margin: 0 auto;
}
.brand{
  display:flex;
  align-items:center;
  gap: 10px;
}
.brand .mark{
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--bg);
  display:grid;
  place-items:center;
}
.brand .mark span{
  width: 14px; height: 14px;
  border-radius: 4px;
  background: var(--red);
  display:block;
}
.brand .name{
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.nav{
  display:flex;
  align-items:center;
  gap: 18px;
}
.nav a{
  font-size: 14px;
  color: var(--text);
  opacity:.86;
}
.nav a:hover{ opacity:1; }
.nav .cta{ margin-left: 10px; }

.menu-toggle{
  display:none;
  border:1px solid var(--border);
  background: var(--white);
  border-radius: 12px;
  padding: 10px 12px;
  font-weight: 600;
}
@media (max-width: 980px){
  .nav{ display:none; }
  .menu-toggle{ display:block; }
  .mobile-panel{
    display:none;
    border-top:1px solid var(--border);
    background: var(--white);
  }
  .mobile-panel.open{ display:block; }
  .mobile-panel .container{
    padding-top: 12px;
    padding-bottom: 12px;
  }
  .mobile-panel a{
    display:block;
    padding: 12px 10px;
    border-radius: 12px;
  }
  .mobile-panel a:hover{ background: #f5f5fb; }
}

/* ===== Buttons ===== */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 14px;
  font-family: "Montserrat", system-ui, sans-serif;
  font-weight: 600;
  font-size: 14px;
  border: 1px solid transparent;
  cursor:pointer;
  transition: transform .08s ease, box-shadow .2s ease, opacity .2s ease;
  user-select:none;
}
.btn:active{ transform: translateY(1px); }
.btn.primary{ background: var(--red); color: var(--white); }
.btn.outline{ background: transparent; border-color: rgba(255,255,255,.3); color: var(--white); }
.section:not(.dark) .btn.outline{ border-color: var(--text); color: var(--text); }
.btn.ghost{ background: #f5f5fb; border-color: var(--border); color: var(--text); }
.btn.small{ padding: 9px 12px; border-radius: 12px; font-size: 13px; }

.tag{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-size: 12.5px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fafaff;
  color: var(--text);
}
.tag .dot{ width:8px; height:8px; border-radius: 999px; background: var(--red); }
.tag.solar .dot{ background: var(--lime); }
.tag.fence .dot{ background: var(--yellow); }
.tag.pass .dot{ background: #19b36a; }
.tag.fail .dot{ background: var(--red); }

/* ===== Hero ===== */
.hero{
  padding: clamp(40px, 6vw, 92px) 0;
}
.hero h1{ margin-bottom: 10px; }
.hero p{ color: rgba(255,255,255,.82); max-width: 60ch; }
.hero .actions{ display:flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.hero .meta{
  margin-top: 22px;
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  color: rgba(255,255,255,.82);
  font-size: 13.5px;
}
.pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.06);
}

/* ===== Cards ===== */
.cards{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 980px){
  .cards{ grid-template-columns: 1fr; }
}
.card{
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: none;
  overflow:hidden;
}
.card.pad{ padding: 18px; }
.card h3{ margin: 0 0 6px; }
.card p{ color: var(--muted); font-size: 14px; }
.card .card-actions{ margin-top: 14px; display:flex; gap:10px; flex-wrap: wrap; }

.card.inspection{
  position:relative;
}
.card.inspection .top{
  display:flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}
.card.inspection .title{
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.card.inspection .outcome{
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fafaff;
}

/* ===== Lists ===== */
.ul-clean{
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}
.ul-clean li{
  padding: 10px 0;
  border-bottom: 1px dashed var(--border);
}
.ul-clean li:last-child{ border-bottom: none; }

/* ===== Pricing Table ===== */
.table{
  width:100%;
  border-collapse: collapse;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow:hidden;
}
.table th, .table td{
  padding: 14px 12px;
  border-bottom: 1px solid var(--border);
  text-align:left;
  vertical-align: top;
  font-size: 14px;
}
.table th{
  background: #f5f5fb;
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  font-weight: 700;
}
.table tr:last-child td{ border-bottom:none; }
.table .muted{ color: var(--muted); font-size: 13px; }

/* ===== Footer ===== */
.site-footer{
  background: #0b0b0f;
  color: rgba(255,255,255,.9);
  padding: 46px 0;
}
.footer-grid{
  display:grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 22px;
}
@media (max-width: 860px){
  .footer-grid{ grid-template-columns: 1fr; }
}
.site-footer h3{ margin-bottom: 8px; }
.site-footer a{ color: rgba(255,255,255,.86); }
.site-footer a:hover{ color: var(--white); }
.small{ font-size: var(--small); color: rgba(255,255,255,.72); margin-top: 10px; }

/* ===== Content pages ===== */
.page-hero{
  padding: 48px 0 26px;
  border-bottom: 1px solid var(--border);
}
.breadcrumbs{
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 10px;
}
.content{
  padding: 30px 0 70px;
}
.content .prose{
  max-width: 75ch;
}

/* ===== Filters ===== */
.filters{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 14px 0 20px;
}
.filter{
  border:1px solid var(--border);
  background:#fafaff;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 13px;
  cursor:pointer;
}
.filter.active{
  border-color: var(--text);
  background: #f0f0fa;
}

/* ===== Utilities ===== */
.muted{ color: var(--muted); }
.hr{ height:1px; background: var(--border); margin: 20px 0; }
