/* =========================================================
   Painting Contractors Menifee -- "Refined Trust" design system
   Navy + restrained gold accent, Manrope / Inter typography.
   CSS-variable driven: one change re-themes the whole site.
   Fonts are loaded via <link> in the page head.
   ========================================================= */

:root {
  --navy:       #0f2a4a;   /* deep brand navy: footer, dark bands, hero */
  --navy-700:   #16365c;
  --brand:      #1d5393;   /* refined blue: links, buttons, accents */
  --brand-dark: #163f70;   /* hover */
  --gold:       #c8a24c;   /* restrained accent: checks, eyebrows */
  --gold-soft:  #e7d7ac;
  --ink:        #12223b;   /* headings + body ink */
  --ink-soft:   #4d5d71;   /* secondary text */
  --line:       #e5eaf1;   /* hairlines */
  --bg:         #ffffff;
  --bg-alt:     #f4f7fb;   /* alternating sections */
  --bg-dark:    #0f2a4a;
  --max:        1180px;
  --radius:     14px;
  --radius-sm:  10px;
  --shadow-sm:  0 1px 2px rgba(16,34,59,.06), 0 1px 3px rgba(16,34,59,.07);
  --shadow:     0 14px 36px -16px rgba(16,34,59,.22);
  --shadow-lg:  0 28px 56px -22px rgba(16,34,59,.30);
  --font-head:  'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  --font-body:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  line-height: 1.7;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 22px; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.1;
  color: var(--ink);
  letter-spacing: -.021em;
}
h1 { font-size: clamp(2.2rem, 5.2vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.45rem); font-weight: 800; margin-bottom: .5em; }
h3 { font-size: 1.22rem; font-weight: 700; margin-bottom: .4em; letter-spacing: -.012em; }
h4 { font-size: 1rem; font-weight: 700; }
p  { margin-bottom: 1rem; color: var(--ink-soft); }
p:last-child { margin-bottom: 0; }
a  { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
strong { font-weight: 700; color: var(--ink); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--brand); color: #fff;
  padding: 13px 26px; border-radius: var(--radius-sm);
  font-family: var(--font-head); font-weight: 700; font-size: .98rem; letter-spacing: -.01em;
  border: none; cursor: pointer;
  box-shadow: 0 8px 18px -8px rgba(29,83,147,.55);
  transition: transform .14s ease, box-shadow .14s ease, background .14s ease;
}
.btn:hover { background: var(--brand-dark); text-decoration: none; transform: translateY(-1px);
  box-shadow: 0 12px 24px -8px rgba(29,83,147,.6); }
.btn--ghost { background: transparent; color: var(--brand); border: 1.5px solid var(--brand); box-shadow: none; }
.btn--ghost:hover { background: var(--brand); color: #fff; }
.btn--lg { padding: 17px 34px; font-size: 1.05rem; }
.muted { color: var(--ink-soft); font-size: .9rem; }

/* ---------- header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding: 13px 22px; max-width: var(--max); margin: 0 auto;
}
.nav__logo { display: flex; align-items: center; gap: 11px; }
.nav__logo:hover { text-decoration: none; }
.nav__mark {
  width: 36px; height: 36px; border-radius: 9px; flex: none;
  background: linear-gradient(160deg, var(--navy-700), var(--navy));
  color: #fff; font-family: var(--font-head); font-weight: 800; font-size: 1.15rem;
  display: flex; align-items: center; justify-content: center; position: relative;
  box-shadow: var(--shadow-sm);
}
.nav__mark::after { content: ""; position: absolute; top: 7px; right: 7px; width: 5px; height: 5px;
  border-radius: 50%; background: var(--gold); }
.nav__name { font-family: var(--font-head); font-weight: 800; color: var(--navy);
  font-size: 1.07rem; letter-spacing: -.02em; line-height: 1.05; }
.nav__name span { color: var(--brand); }
.nav__links { display: flex; align-items: center; gap: 22px; list-style: none; }
.nav__links > li > a { color: var(--ink); font-family: var(--font-head); font-weight: 600; font-size: .95rem; }
.nav__links > li > a:hover { color: var(--brand); text-decoration: none; }

.has-dropdown { position: relative; }
.dropdown {
  display: none; position: absolute; top: 100%; left: 0;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  min-width: 258px; padding: 8px 0; box-shadow: var(--shadow); margin-top: 8px;
}
.has-dropdown::after { content: ""; position: absolute; top: 100%; left: 0; right: 0; height: 16px; display: none; }
.has-dropdown:hover::after { display: block; }
.has-dropdown:hover .dropdown { display: block; }
.dropdown li { list-style: none; }
.dropdown a { display: block; padding: 10px 18px; font-size: .92rem; color: var(--ink); font-weight: 500; }
.dropdown a:hover { background: var(--bg-alt); color: var(--brand); text-decoration: none; }

.nav__call {
  background: var(--brand); color: #fff !important;
  padding: 10px 18px; border-radius: var(--radius-sm); font-family: var(--font-head); font-weight: 700;
  box-shadow: 0 8px 18px -8px rgba(29,83,147,.55);
}
.nav__call:hover { background: var(--brand-dark); text-decoration: none; }

.nav__toggle { display: none; background: none; border: 0; font-size: 1.6rem; cursor: pointer; color: var(--navy); }
@media (max-width: 960px) {
  .nav__links { display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 10px 22px; box-shadow: var(--shadow); }
  .nav__links.open { display: flex; }
  .nav__links li { width: 100%; padding: 9px 0; }
  .dropdown { position: static; display: block; box-shadow: none; border: 0; padding: 4px 0 4px 14px; min-width: 0; margin: 0; }
  .nav__toggle { display: block; }
}

/* ---------- trust bar (slim, honest, operator-only) ---------- */
.trustbar { background: var(--bg-alt); border-bottom: 1px solid var(--line); }
.trustbar ul {
  display: flex; flex-wrap: wrap; gap: 10px 30px; list-style: none;
  max-width: var(--max); margin: 0 auto; padding: 11px 22px;
}
.trustbar li {
  font-family: var(--font-head); font-size: .86rem; font-weight: 600; color: var(--navy);
  display: flex; align-items: center; gap: 8px;
}
.trustbar li::before {
  content: ""; width: 16px; height: 16px; flex: none; border-radius: 50%;
  background: var(--gold);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/13px no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/13px no-repeat;
}
@media (max-width: 720px) { .trustbar { display: none; } }

/* ---------- hero ---------- */
.hero { position: relative; color: #fff; isolation: isolate; }
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(104deg, rgba(10,28,48,.93) 0%, rgba(13,42,74,.86) 42%, rgba(15,42,74,.52) 100%); }
.hero__inner { position: relative; z-index: 2; max-width: var(--max); margin: 0 auto; padding: 104px 22px 100px; }
.hero__eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; font-weight: 700;
  font-family: var(--font-head); color: var(--gold-soft); display: inline-flex; align-items: center; gap: 9px; }
.hero__eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--gold); display: inline-block; }
.hero h1 { color: #fff; margin: 16px 0 16px; max-width: 16ch; letter-spacing: -.028em; }
.hero p { color: rgba(255,255,255,.9); font-size: 1.16rem; max-width: 50ch; }
.hero__cta { margin-top: 30px; display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

/* ---------- sections ---------- */
.section { padding: 76px 0; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--bg-dark); color: #fff; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark p { color: rgba(255,255,255,.82); }
.section__lead { max-width: 68ch; font-size: 1.06rem; }
.center { text-align: center; }
.center .section__lead { margin: 0 auto; }
.section h2 + .section__lead { margin-top: 2px; }
/* full-width section photos: crop to a clean band regardless of orientation */
.section .wrap > img { max-height: 460px; object-fit: cover; box-shadow: var(--shadow-sm); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: center; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; gap: 30px; } }

/* feature / why-us grid */
.grid { display: grid; gap: 22px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 920px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #d4deea; }
.section--alt .card { background: #fff; }
.card h3 { margin-bottom: .45em; color: var(--navy); }
.card h3 a, .card > a { color: var(--brand); font-family: var(--font-head); font-weight: 700; font-size: .95rem; }

/* service / area link list */
.linklist { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; list-style: none; }
@media (max-width: 820px) { .linklist { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .linklist { grid-template-columns: 1fr; } }
.linklist a {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 15px 18px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; color: var(--navy); font-family: var(--font-head); font-weight: 600; box-shadow: var(--shadow-sm);
  transition: border-color .14s ease, color .14s ease, transform .14s ease;
}
.linklist a::after { content: "\2192"; color: var(--brand); opacity: .55; transition: transform .14s ease, opacity .14s ease; }
.linklist a:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; transform: translateX(2px); }
.linklist a:hover::after { opacity: 1; transform: translateX(3px); }

/* tables */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: .96rem; }
th { background: var(--bg-alt); font-family: var(--font-head); font-weight: 700; color: var(--navy); }
tr:last-child td { border-bottom: 0; }

/* FAQ */
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 2px 22px; margin-bottom: 12px; box-shadow: var(--shadow-sm); }
.faq summary { cursor: pointer; font-family: var(--font-head); font-weight: 700; font-size: 1.08rem;
  color: var(--navy); padding: 18px 0; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--brand); font-size: 1.5rem; line-height: 1; font-weight: 400; }
.faq details[open] summary::after { content: "\2013"; }
.faq details > p { padding-bottom: 18px; margin-bottom: 0; }

/* CTA band */
.cta-band { background: linear-gradient(120deg, var(--navy) 0%, var(--navy-700) 60%, var(--brand) 140%);
  color: #fff; text-align: center; padding: 70px 22px; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.88); }
.cta-band .btn { background: #fff; color: var(--navy); box-shadow: 0 10px 26px -10px rgba(0,0,0,.5); }
.cta-band .btn:hover { background: #f1f5fa; color: var(--navy); }

/* forms */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.field { margin-bottom: 16px; }
.field label { display: block; font-family: var(--font-head); font-weight: 600; font-size: .88rem; margin-bottom: 6px; color: var(--navy); }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: 1rem; background: #fff; color: var(--ink); transition: border-color .14s ease, box-shadow .14s ease;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(29,83,147,.14);
}
.field textarea { min-height: 130px; resize: vertical; }

/* footer */
.site-footer { background: var(--bg-dark); color: rgba(255,255,255,.76); padding: 62px 0 30px; }
.site-footer h4 { color: #fff; margin-bottom: 15px; font-family: var(--font-head); font-size: 1rem; letter-spacing: .01em; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 38px; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: rgba(255,255,255,.76); font-size: .93rem; }
.site-footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); margin-top: 44px; padding-top: 22px; font-size: .85rem; color: rgba(255,255,255,.52); }
.footer-disclaimer { font-size: .83rem; color: rgba(255,255,255,.58); margin-top: 12px; line-height: 1.6; }

/* article pages (about, FAQ, legal) */
.article { max-width: 840px; }
.article h1 { margin-bottom: 16px; }
.article h2 { margin-top: 44px; color: var(--navy); }
.article h3 { margin-top: 28px; }
.article ul, .article ol { margin: 0 0 1rem 1.3em; color: var(--ink-soft); }
.article li { margin-bottom: .5rem; }
.faq-page h2 { font-size: 1.4rem; margin-top: 36px; }
.contact-list { list-style: none; margin: 24px 0; }
.contact-list li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact-list li:last-child { border-bottom: 0; }

/* phone link -- stable hook for WhatConverts dynamic number insertion */
.wc-phone { font-weight: 700; }

/* ---------- sticky mobile call bar ---------- */
.callbar { display: none; }
@media (max-width: 720px) {
  .callbar {
    display: flex; align-items: center; justify-content: center; gap: 9px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
    background: linear-gradient(120deg, var(--navy), var(--brand));
    color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 1.02rem;
    padding: 14px 16px; box-shadow: 0 -8px 24px -10px rgba(16,34,59,.4);
  }
  .callbar::before { content: ""; width: 19px; height: 19px; background: #fff;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M6.6 10.8a15.5 15.5 0 0 0 6.6 6.6l2.2-2.2a1 1 0 0 1 1-.25 11.4 11.4 0 0 0 3.6.57 1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1 11.4 11.4 0 0 0 .57 3.6 1 1 0 0 1-.25 1z'/%3E%3C/svg%3E") center/contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M6.6 10.8a15.5 15.5 0 0 0 6.6 6.6l2.2-2.2a1 1 0 0 1 1-.25 11.4 11.4 0 0 0 3.6.57 1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1 11.4 11.4 0 0 0 .57 3.6 1 1 0 0 1-.25 1z'/%3E%3C/svg%3E") center/contain no-repeat; }
  .callbar:hover { text-decoration: none; color: #fff; }
  body { padding-bottom: 58px; }
}
