/*
Theme Name: Chaparral Controls v3
Theme URI: https://www.chaparralcontrols.com/
Author: Chaparral Controls
Description: Custom theme for Chaparral Controls, Home Technology Service Specialists.
Version: 3.0.0
Text Domain: chaparral-controls
*/

:root {
  --olive:#78815a;
  --olive2:#607043;
  --ink:#162432;
  --charcoal:#1b2220;
  --cream:#f5f3ec;
  --soft:#eef0ea;
  --line:#dfe3d8;
  --muted:#5d665f;
  --white:#ffffff;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:Arial,Helvetica,sans-serif;color:var(--ink);background:#fff;line-height:1.45}
img{display:block;max-width:100%}
a{color:inherit}
.wrap{width:min(1360px,94vw);margin:auto}
header{position:sticky;top:0;z-index:30;background:rgba(255,255,255,.97);border-bottom:1px solid #e5e8e1}
.nav{min-height:80px;display:flex;align-items:center;gap:28px}
.brand{width:310px;max-width:38vw}
.brand img{width:100%;height:auto}
nav{margin-left:auto;display:flex;gap:30px;font-size:14px}
nav a{text-decoration:none}
nav a:hover{color:var(--olive2)}
.phone{font-size:14px;font-weight:700;white-space:nowrap}
.btn{display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:0 22px;text-decoration:none;border-radius:3px;font-size:13px;font-weight:800;letter-spacing:.03em;border:1px solid var(--olive2)}
.btn.green{background:var(--olive);color:#fff}
.btn.outline{background:transparent;color:#fff;border-color:#fff}

.hero{background:#18201f;color:#fff}
.hero-grid{display:grid;grid-template-columns:.95fr 1.35fr;min-height:530px}
.hero-copy{padding:54px 50px 54px max(3vw,22px);background:linear-gradient(90deg,#1a2221 0%,#1a2221 82%,rgba(26,34,33,.94) 100%)}
.kicker{font-size:12px;letter-spacing:.2em;text-transform:uppercase;color:#d5dac4;font-weight:800;margin-bottom:12px}
.hero h1{font-size:clamp(44px,4.3vw,72px);line-height:1.02;margin:0 0 20px;font-weight:800}
.hero h1 span{color:#a5b27e}
.hero p{font-size:18px;color:#e2e5de;max-width:690px;margin:0}
.hero-actions{display:flex;gap:14px;margin-top:30px}
.hero-photo{position:relative;overflow:hidden;background:#111}
.hero-photo img{width:100%;height:100%;object-fit:cover;object-position:center 38%;filter:saturate(.92) contrast(1.03)}
.hero-photo:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(24,32,31,.18),transparent 22%)}

.problem{padding:26px 0;border-bottom:1px solid var(--line)}
.problem-grid{display:grid;grid-template-columns:1.35fr .65fr;gap:35px;align-items:center}
.problem h2{font-size:30px;margin:0 0 8px}
.problem p{margin:0;color:var(--muted)}
.problem strong{color:var(--ink)}
.pillars{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.pillar{border-left:1px solid #cbd2c4;padding-left:20px}
.icon{width:42px;height:42px;border:3px solid var(--olive);border-radius:50%;display:grid;place-items:center;color:var(--olive);font-size:20px;font-weight:800;margin-bottom:8px}
.pillar b{display:block}
.pillar small{color:var(--muted)}

.services{padding:22px 0 16px}
.section-top{display:flex;justify-content:space-between;align-items:end;margin-bottom:10px}
.section-top h2{margin:0;font-size:28px}
.section-top a{font-size:13px;color:var(--olive2);font-weight:700;text-decoration:none}
.service-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:10px}
.service-card{min-width:0}
.service-img{height:155px;background:linear-gradient(135deg,#e8ebdf,#d9dfce);overflow:hidden}
.service-img img{width:100%;height:100%;object-fit:cover}
.service-card h3{font-size:17px;line-height:1.1;margin:8px 0 5px}
.service-card p{font-size:13px;line-height:1.32;color:var(--muted);margin:0 0 6px}
.service-card a{font-size:13px;font-weight:800;color:var(--olive2);text-decoration:none}
.visual-placeholder{height:100%;display:grid;place-items:center;text-align:center;padding:10px;color:#6f7958;font-weight:800;font-size:12px;letter-spacing:.06em;text-transform:uppercase}

.feature{margin-top:10px;background:var(--cream);border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.feature-grid{display:grid;grid-template-columns:340px 1fr 180px;gap:26px;align-items:center}
.feature-photo{height:290px;overflow:hidden}
.feature-photo img{width:100%;height:100%;object-fit:cover}
.feature-copy{padding:28px 0}
.feature-copy h2{font-size:30px;margin:0 0 10px}
.feature-copy p{margin:0 0 9px;color:var(--muted)}
.feature-side{padding:30px 22px;border-left:1px solid #bbbfae;font-size:28px;line-height:1.05}
.feature-side small{display:block;font-size:11px;letter-spacing:.12em;margin-top:18px;color:var(--muted)}

.experience{display:grid;grid-template-columns:340px 1fr}
.landscape{min-height:280px;background:
linear-gradient(rgba(80,95,60,.12),rgba(80,95,60,.12)),
linear-gradient(150deg,#d7c49e 0%,#8c7b54 38%,#637150 70%,#46513b 100%);}
.exp-copy{padding:28px 34px}
.exp-copy h2{font-size:29px;margin:0 0 8px}
.exp-copy p{color:var(--muted);margin:0}
.benefits{display:grid;grid-template-columns:repeat(3,1fr);gap:28px;margin-top:24px}
.benefit{display:grid;grid-template-columns:46px 1fr;gap:10px}
.benefit .icon{margin:0}
.benefit b{display:block;font-size:14px}
.benefit small{color:var(--muted)}

.cta-strip{background:linear-gradient(90deg,#728251,#53673e);color:#fff;padding:18px 0}
.cta-grid{display:grid;grid-template-columns:1fr 1fr auto;gap:28px;align-items:center}
.cta-grid b{display:block}
.cta-grid small{color:#edf2e7}

.contact{padding:64px 0;background:#f7f8f5}
.contact h2{font-size:38px;margin:0 0 8px;text-align:center}
.contact .lead{text-align:center;color:var(--muted);max-width:760px;margin:0 auto 28px}
form{max-width:800px;margin:auto;display:grid;gap:14px}
.row{display:grid;grid-template-columns:1fr 1fr;gap:14px}
label{font-size:13px;font-weight:700}
input,select,textarea{width:100%;padding:13px;border:1px solid #cbd2c5;border-radius:3px;font:inherit;background:#fff}
textarea{min-height:120px}

footer{background:#132029;color:#cbd3d7;padding:28px 0}
.footer-grid{display:grid;grid-template-columns:260px 1fr auto;align-items:center;gap:30px}
footer .brand{width:230px;filter:brightness(0) invert(1);opacity:.95}
.footer-links{display:flex;gap:24px;justify-content:center;font-size:12px}
.footer-links a{text-decoration:none}
.tagline{font-style:italic;color:#a8b486;font-size:13px}

@media(max-width:1100px){
  nav,.phone{display:none}
  .hero-grid{grid-template-columns:1fr}
  .hero-photo{height:390px}
  .problem-grid,.feature-grid,.experience,.cta-grid{grid-template-columns:1fr}
  .pillars{margin-top:20px}
  .service-grid{grid-template-columns:repeat(3,1fr)}
  .feature-side{border-left:0;border-top:1px solid #bbbfae}
  .feature-photo{height:330px}
}
@media(max-width:680px){
  .brand{width:220px;max-width:55vw}
  header .btn{padding:0 12px;font-size:11px}
  .hero-copy{padding:42px 5vw}
  .hero h1{font-size:42px}
  .service-grid{grid-template-columns:1fr 1fr}
  .pillars,.benefits,.row{grid-template-columns:1fr}
  .footer-grid{grid-template-columns:1fr;text-align:center}
  .footer-grid .brand{margin:auto}
  .footer-links{flex-wrap:wrap}
}

/* WordPress-specific additions */
body.admin-bar header{top:32px}
.screen-reader-text{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.notice-success,.notice-error{padding:14px 16px;margin:0 0 18px;border-radius:3px;font-weight:700}
.notice-success{background:#e7efe0;color:#334221;border:1px solid #b9c8a7}
.notice-error{background:#f7e7e5;color:#6e2e29;border:1px solid #dfb8b3}
.hp-field{position:absolute!important;left:-9999px!important;opacity:0!important;height:1px!important;width:1px!important;overflow:hidden!important}
.file-help{font-size:12px;color:var(--muted);margin-top:5px}
.contact input[type=file]{padding:9px;background:#fff}
@media (max-width:782px){body.admin-bar header{top:46px}}

/* Version 2: dedicated service pages */
.service-page{background:#fff}
.service-hero{background:#18201f;color:#fff;border-bottom:1px solid #2d3734}
.service-hero-grid{display:grid;grid-template-columns:1.05fr .95fr;min-height:470px}
.service-hero-copy{padding:64px 58px 58px max(3vw,28px);display:flex;flex-direction:column;justify-content:center}
.service-hero h1{font-size:clamp(40px,4vw,64px);line-height:1.04;margin:0 0 18px}
.service-hero p{font-size:18px;color:#e1e6df;max-width:720px;margin:0}
.service-hero-photo{min-height:420px;overflow:hidden;background:#101514}
.service-hero-photo img{width:100%;height:100%;object-fit:cover}
.service-body{padding:54px 0}
.service-intro{display:grid;grid-template-columns:1.25fr .75fr;gap:60px;align-items:start}
.service-intro h2,.service-section h2{font-size:34px;line-height:1.12;margin:0 0 14px}
.service-intro p,.service-section p{color:var(--muted);font-size:16px;margin:0 0 13px}
.service-points{background:var(--cream);border:1px solid var(--line);padding:26px}
.service-points h3{margin:0 0 14px;font-size:19px}
.service-points ul{margin:0;padding-left:20px;color:var(--muted)}
.service-points li{margin:8px 0}
.service-section{padding:52px 0;border-top:1px solid var(--line)}
.service-split{display:grid;grid-template-columns:.9fr 1.1fr;gap:48px;align-items:center}
.service-split.reverse{grid-template-columns:1.1fr .9fr}
.service-photo{overflow:hidden;background:#e8ebe2;min-height:330px}
.service-photo img{width:100%;height:100%;object-fit:cover}
.service-eyebrow{font-size:12px;letter-spacing:.18em;text-transform:uppercase;font-weight:800;color:var(--olive2);margin-bottom:10px}
.service-feature-list{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-top:26px}
.service-feature{border-top:3px solid var(--olive);padding:16px 4px 0}
.service-feature b{display:block;margin-bottom:5px}
.service-feature small{color:var(--muted);font-size:13px}
.repair-callout{background:var(--cream);padding:42px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.repair-callout-grid{display:grid;grid-template-columns:1fr auto;gap:30px;align-items:center}
.repair-callout h2{font-size:31px;margin:0 0 6px}
.repair-callout p{margin:0;color:var(--muted)}
.service-nav{padding:24px 0;background:#f7f8f5;border-top:1px solid var(--line)}
.service-nav-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:8px}
.service-nav a{display:block;padding:12px 8px;text-align:center;text-decoration:none;background:#fff;border:1px solid var(--line);font-size:12px;font-weight:800;color:var(--olive2)}
.services-landing{padding:54px 0}
.services-landing h1{font-size:46px;margin:0 0 12px}
.services-landing .lead{max-width:850px;color:var(--muted);font-size:18px;margin:0 0 32px}
.services-landing-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.services-landing-card{border:1px solid var(--line);background:#fff}
.services-landing-card .service-img{height:210px}
.services-landing-card .card-copy{padding:20px}
.services-landing-card h2{font-size:23px;margin:0 0 8px}
.services-landing-card p{color:var(--muted);margin:0 0 12px}
.unity-detail{background:var(--cream)}
.unity-facts{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-top:26px}
.unity-fact{background:#fff;border:1px solid var(--line);padding:20px}
.unity-fact b{display:block;font-size:17px;margin-bottom:6px}
.unity-fact small{color:var(--muted)}
@media(max-width:1000px){.service-hero-grid,.service-intro,.service-split,.service-split.reverse,.repair-callout-grid{grid-template-columns:1fr}.service-hero-photo{min-height:340px}.service-feature-list,.services-landing-grid{grid-template-columns:1fr 1fr}.service-nav-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:680px){.service-hero-copy{padding:42px 5vw}.service-feature-list,.services-landing-grid,.unity-facts,.service-nav-grid{grid-template-columns:1fr}.service-body,.service-section{padding:38px 0}}
