/*
Theme Name: JAC Builders
Theme URI: https://jac.builders/
Author: JAC Builders LLC
Description: A fast, responsive contractor theme built for JAC Builders LLC.
Version: 1.2.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: jac-builders
*/

:root {
  --navy: #11263d;
  --navy-2: #183957;
  --orange: #e66b2e;
  --orange-dark: #bb4c17;
  --cream: #f5f1e9;
  --white: #fff;
  --ink: #18212a;
  --muted: #5c6873;
  --line: #d9dee3;
  --shadow: 0 18px 48px rgba(17, 38, 61, .14);
  --radius: 14px;
  --max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--white); font: 16px/1.65 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
.container { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 100; padding: 10px 14px; background: #fff; }
.skip-link:focus { left: 8px; }
.eyebrow { margin: 0 0 12px; color: var(--orange); font-size: .78rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
h1,h2,h3 { margin: 0 0 .6em; color: var(--navy); line-height: 1.1; letter-spacing: -.025em; }
h1 { max-width: 820px; font-size: clamp(2.45rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1.2em; }
.lede { max-width: 720px; font-size: clamp(1.08rem, 2vw, 1.3rem); color: var(--muted); }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 12px 22px; border: 2px solid var(--orange); border-radius: 8px; background: var(--orange); color: #fff; font-weight: 800; text-decoration: none; cursor: pointer; transition: .2s ease; }
.btn:hover,.btn:focus-visible { border-color: var(--orange-dark); background: var(--orange-dark); transform: translateY(-1px); }
.btn-secondary { border-color: rgba(255,255,255,.55); background: transparent; }
.btn-secondary:hover,.btn-secondary:focus-visible { border-color: #fff; background: #fff; color: var(--navy); }
.btn-dark { border-color: var(--navy); background: var(--navy); }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid rgba(17,38,61,.1); background: rgba(255,255,255,.96); backdrop-filter: blur(12px); }
.header-inner { display: flex; min-height: 78px; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--navy); font-weight: 900; letter-spacing: -.02em; text-decoration: none; }
.brand-wrap { display: flex; min-width: 0; align-items: center; }
.brand-mark { display: grid; flex: 0 0 46px; width: 46px; height: 46px; padding: 5px; place-items: center; overflow: hidden; border-radius: 8px; background: var(--navy); color: #fff; font-size: .9rem; letter-spacing: .04em; }
.brand-logo { width: 100%; height: 100%; object-fit: contain; }
.brand small { display: block; color: var(--muted); font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.menu { display: flex; align-items: center; gap: 26px; padding: 0; margin: 0; list-style: none; }
.menu > li { position: relative; }
.menu a { color: var(--navy); font-weight: 750; text-decoration: none; }
.menu a:hover,.menu a:focus-visible { color: var(--orange-dark); }
.menu .sub-menu { display: none; position: absolute; top: calc(100% + 14px); left: -18px; width: max-content; min-width: 245px; padding: 10px; margin: 0; border: 1px solid var(--line); border-radius: 10px; background: #fff; box-shadow: var(--shadow); list-style: none; }
.menu .sub-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 18px; }
.menu .sub-menu a { display: block; padding: 10px 12px; border-radius: 6px; white-space: nowrap; }
.menu .sub-menu a:hover,.menu .sub-menu a:focus-visible { background: var(--cream); }
.menu li:hover > .sub-menu,.menu li:focus-within > .sub-menu { display: block; }
.menu-item-has-children > a::after { content: "⌄"; display: inline-block; margin-left: 6px; color: var(--orange-dark); font-size: .85em; }
.menu-toggle { display: none; border: 0; background: transparent; color: var(--navy); font: inherit; font-weight: 800; }

.hero { position: relative; overflow: hidden; padding: clamp(78px, 11vw, 150px) 0; background: linear-gradient(112deg, rgba(13,31,50,.98), rgba(17,38,61,.84)), linear-gradient(45deg, #1a3e5d, #11263d); color: #fff; }
.hero::after { content: ""; position: absolute; right: -10%; bottom: -55%; width: 50vw; height: 50vw; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; box-shadow: 0 0 0 80px rgba(255,255,255,.03), 0 0 0 160px rgba(255,255,255,.025); }
.hero .container { position: relative; z-index: 1; }
.hero h1,.hero .lede { color: #fff; }
.hero .lede { max-width: 650px; color: rgba(255,255,255,.82); }
.trust-row { display: flex; flex-wrap: wrap; gap: 22px; padding: 18px 0; background: var(--cream); color: var(--navy); font-size: .92rem; font-weight: 750; }
.trust-row .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
.trust-item::before { content: "✓"; margin-right: 8px; color: var(--orange-dark); font-weight: 900; }
section { padding: clamp(68px, 9vw, 112px) 0; }
.section-head { max-width: 760px; margin-bottom: 42px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: 0 8px 30px rgba(17,38,61,.06); }
.card-number { display: grid; width: 44px; height: 44px; margin-bottom: 22px; place-items: center; border-radius: 50%; background: var(--cream); color: var(--orange-dark); font-weight: 900; }
.card a { color: var(--orange-dark); font-weight: 800; text-decoration: none; }
.band { background: var(--cream); }
.split { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: clamp(40px, 7vw, 90px); }
.feature-panel { min-height: 430px; padding: clamp(32px, 5vw, 60px); border-radius: var(--radius); background: var(--navy); color: #fff; box-shadow: var(--shadow); }
.feature-panel h2,.feature-panel h3 { color: #fff; }
.checklist { display: grid; gap: 12px; padding: 0; list-style: none; }
.checklist li { position: relative; padding-left: 28px; }
.checklist li::before { content: "✓"; position: absolute; left: 0; color: var(--orange); font-weight: 900; }
.steps { counter-reset: steps; }
.steps .card { position: relative; }
.steps .card::before { counter-increment: steps; content: "0" counter(steps); display: block; margin-bottom: 18px; color: var(--orange-dark); font-weight: 900; letter-spacing: .08em; }
.cta { padding: 64px 0; background: var(--orange); color: #fff; }
.cta h2 { color: #fff; }
.cta .container { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.cta .btn { border-color: #fff; background: #fff; color: var(--navy); }

.page-hero { padding: 74px 0; background: var(--navy); color: #fff; }
.page-hero h1 { font-size: clamp(2.5rem, 5vw, 4.2rem); color: #fff; }
.page-content { min-height: 45vh; }
.content-narrow { max-width: 800px; }
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(35px, 6vw, 74px); }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 6px; }
.field-full { grid-column: 1 / -1; }
label { color: var(--navy); font-weight: 800; }
input,select,textarea { width: 100%; min-height: 48px; padding: 11px 13px; border: 1px solid #aeb8c1; border-radius: 7px; background: #fff; color: var(--ink); font: inherit; }
textarea { min-height: 145px; resize: vertical; }
input:focus,select:focus,textarea:focus { outline: 3px solid rgba(230,107,46,.22); border-color: var(--orange); }
.notice { padding: 14px 18px; margin-bottom: 24px; border-radius: 7px; background: #e8f4eb; color: #205b2c; }
.site-footer { padding: 56px 0 24px; background: #0b1c2c; color: rgba(255,255,255,.75); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 50px; }
.site-footer h2,.site-footer h3 { color: #fff; }
.site-footer a { color: #fff; }
.footer-bottom { display: flex; padding-top: 28px; margin-top: 36px; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid rgba(255,255,255,.14); font-size: .85rem; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 18px; }
.mobile-call { display: none; }

@media (max-width: 820px) {
  .menu-toggle { display: block; }
  .primary-nav { display: none; position: absolute; top: 78px; left: 0; right: 0; padding: 18px 20px 24px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .primary-nav.open { display: block; }
  .menu { align-items: stretch; flex-direction: column; gap: 0; }
  .menu > li { width: 100%; }
  .menu a { display: block; padding: 12px 0; }
  .menu .sub-menu { display: block; position: static; width: auto; min-width: 0; padding: 0 0 6px 18px; border: 0; border-left: 2px solid var(--orange); border-radius: 0; background: transparent; box-shadow: none; }
  .menu .sub-menu::before { display: none; }
  .menu .sub-menu a { padding: 8px 10px; white-space: normal; }
  .menu-item-has-children > a::after { content: ""; }
  .grid { grid-template-columns: 1fr; }
  .split,.contact-grid,.footer-grid { grid-template-columns: 1fr; }
  .cta .container { align-items: flex-start; flex-direction: column; }
  .footer-bottom { align-items: flex-start; flex-direction: column; }
  body { padding-bottom: 58px; }
  .mobile-call { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; min-height: 58px; align-items: center; justify-content: center; background: var(--orange); color: #fff; font-weight: 900; text-decoration: none; box-shadow: 0 -6px 20px rgba(0,0,0,.16); }
}

@media (max-width: 560px) {
  .container { width: min(calc(100% - 28px), var(--max)); }
  .brand-text small { display: none; }
  .hero { padding: 72px 0; }
  .contact-form { grid-template-columns: 1fr; }
  .field-full { grid-column: auto; }
  .button-row .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
