/* ============================================================
   Wash Authority — shared design system
   Loaded on every page. Page-specific styles remain inline.
   ============================================================ */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #333;
  line-height: 1.6;
  overflow-x: hidden;
  background: #fff;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }

:root {
  --blue-dark: #006ED1;
  --blue-mid: #257FC3;
  --red: #FF1A1A;
  --white: #FFFFFF;
  --off-white: #F5F8FC;
  --gray-light: #E8EDF2;
  --gray-text: #555;
  --dark: #1A2B3D;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section-padding { padding: 80px 0; }
.text-center { text-align: center; }
.section-label { display: inline-block; font-size: 0.8rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--red); margin-bottom: 10px; }
.section-title { font-size: 2.2rem; font-weight: 800; color: var(--dark); margin-bottom: 16px; line-height: 1.2; }
.section-subtitle { font-size: 1.1rem; color: var(--gray-text); max-width: 650px; margin: 0 auto 48px; line-height: 1.7; }

/* BUTTONS */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 16px 36px; border-radius: 6px; font-family: 'Montserrat', sans-serif; font-size: 1.05rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; cursor: pointer; transition: all 0.3s ease; border: none; }
.btn-red { background: var(--red); color: var(--white); box-shadow: 0 4px 15px rgba(255, 26, 26, 0.35); }
.btn-red:hover { background: #E01515; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(255, 26, 26, 0.45); }
.btn-white { background: var(--white); color: var(--blue-dark); box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15); }
.btn-white:hover { background: var(--off-white); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2); }
.btn-outline { background: transparent; color: var(--white); border: 2px solid var(--white); }
.btn-outline:hover { background: var(--white); color: var(--blue-dark); }
.btn-blue { background: var(--blue-dark); color: var(--white); box-shadow: 0 4px 15px rgba(0, 110, 209, 0.3); }
.btn-blue:hover { background: #0060B8; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0, 110, 209, 0.4); }
.btn svg { width: 20px; height: 20px; fill: currentColor; }
.btn-sm { padding: 12px 24px; font-size: 0.85rem; }

/* TOP BAR */
.top-bar { background: var(--dark); color: var(--white); padding: 8px 0; font-size: 0.85rem; }
.top-bar .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.top-bar a { color: var(--white); transition: color 0.2s; }
.top-bar a:hover { color: var(--red); }
.top-bar-right { display: flex; align-items: center; gap: 20px; }

/* HEADER + PRIMARY NAV */
.header { background: var(--white); box-shadow: 0 2px 12px rgba(0,0,0,0.08); position: sticky; top: 0; z-index: 1000; }
.header .container { display: flex; justify-content: space-between; align-items: center; padding-top: 12px; padding-bottom: 12px; gap: 20px; }
.logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.logo img { height: 55px; width: auto; }

.primary-nav { display: flex; align-items: center; gap: 6px; }
.primary-nav > ul { display: flex; align-items: center; gap: 4px; list-style: none; }
.primary-nav > ul > li { position: relative; }
.primary-nav > ul > li > a,
.primary-nav > ul > li > button {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 14px; border-radius: 6px;
  font-size: 0.92rem; font-weight: 600; color: var(--dark);
  background: transparent; border: none; cursor: pointer; font-family: inherit;
  transition: background 0.2s, color 0.2s;
}
.primary-nav > ul > li > a:hover,
.primary-nav > ul > li > button:hover,
.primary-nav > ul > li.active > a { color: var(--blue-dark); background: var(--off-white); }
.primary-nav .caret { width: 10px; height: 10px; fill: currentColor; }

.primary-nav .has-dropdown .dropdown {
  position: absolute; top: 100%; left: 0; min-width: 260px;
  background: var(--white); border-radius: 10px; box-shadow: 0 12px 40px rgba(0,0,0,0.12);
  padding: 10px; list-style: none;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0.18s;
  z-index: 1001;
}
.primary-nav .has-dropdown:hover .dropdown,
.primary-nav .has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); transition-delay: 0s; }
.primary-nav .dropdown li a { display: block; padding: 10px 14px; border-radius: 6px; font-size: 0.92rem; font-weight: 500; color: var(--dark); transition: background 0.15s, color 0.15s; }
.primary-nav .dropdown li a:hover { background: var(--off-white); color: var(--blue-dark); }

.nav-cta { background: var(--red); color: var(--white) !important; padding: 10px 18px !important; border-radius: 6px; }
.nav-cta:hover { background: #E01515 !important; }

.header-phone { display: flex; align-items: center; gap: 10px; font-size: 1.05rem; font-weight: 800; color: var(--blue-dark); transition: color 0.2s; flex-shrink: 0; }
.header-phone:hover { color: var(--red); }
.header-phone svg { width: 24px; height: 24px; fill: var(--red); }
.header-phone-label { display: block; font-size: 0.68rem; font-weight: 600; color: var(--gray-text); text-transform: uppercase; letter-spacing: 1px; line-height: 1.1; }

.nav-toggle { display: none; background: transparent; border: 2px solid var(--gray-light); border-radius: 6px; padding: 8px 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--dark); margin: 4px 0; border-radius: 2px; }

@media (max-width: 1024px) {
  .header .container { flex-wrap: wrap; }
  .nav-toggle { display: inline-block; order: 3; }
  .header-phone { order: 2; }
  .primary-nav { order: 4; flex-basis: 100%; display: none; padding-top: 12px; border-top: 1px solid var(--gray-light); margin-top: 12px; }
  .primary-nav.open { display: block; }
  .primary-nav > ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .primary-nav > ul > li > a,
  .primary-nav > ul > li > button { width: 100%; justify-content: space-between; padding: 12px 10px; }
  .primary-nav .has-dropdown .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; padding: 4px 0 4px 16px; transition: none; max-height: 0; overflow: hidden; }
  .primary-nav .has-dropdown.open .dropdown { max-height: 600px; padding: 4px 0 8px 16px; }
}

/* MOBILE STICKY CALL BAR */
.mobile-cta { display: none; position: fixed; bottom: 0; left: 0; right: 0; background: var(--red); color: var(--white); text-align: center; padding: 14px; font-weight: 700; font-size: 1.05rem; z-index: 999; box-shadow: 0 -4px 16px rgba(0,0,0,0.15); }
@media (max-width: 768px) {
  .mobile-cta { display: block; }
  body { padding-bottom: 60px; }
}

/* QUOTE CTA STRIP (service pages) */
.quote-strip { background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue-mid) 100%); color: var(--white); padding: 64px 0; }
.quote-strip .strip-inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.quote-strip h2 { font-size: 2rem; font-weight: 900; margin-bottom: 12px; line-height: 1.2; }
.quote-strip p { font-size: 1.05rem; line-height: 1.7; opacity: 0.92; margin-bottom: 20px; }
.quote-strip .strip-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.quote-strip .strip-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.quote-strip .strip-stat { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15); border-radius: 12px; padding: 24px; backdrop-filter: blur(4px); }
.quote-strip .strip-stat-num { font-size: 2rem; font-weight: 900; line-height: 1; margin-bottom: 6px; }
.quote-strip .strip-stat-lbl { font-size: 0.82rem; opacity: 0.85; text-transform: uppercase; letter-spacing: 1px; }
@media (max-width: 900px) {
  .quote-strip .strip-inner { grid-template-columns: 1fr; text-align: center; }
  .quote-strip .strip-ctas { justify-content: center; }
}

/* TRUST / REVIEWS BLOCK */
.trust-block { background: var(--off-white); padding: 64px 0; }
.trust-block .trust-header { text-align: center; margin-bottom: 40px; }
.trust-block .trust-rating { display: inline-flex; align-items: center; gap: 10px; background: var(--white); padding: 10px 20px; border-radius: 50px; box-shadow: 0 4px 16px rgba(0,0,0,0.06); margin-bottom: 16px; }
.trust-block .trust-stars { color: #FFB800; font-size: 1.2rem; letter-spacing: 2px; }
.trust-block .trust-score { font-weight: 800; color: var(--dark); }
.trust-block .trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.trust-review { background: var(--white); border-radius: 12px; padding: 28px; box-shadow: 0 4px 20px rgba(0,0,0,0.05); }
.trust-review .review-stars { color: #FFB800; letter-spacing: 2px; margin-bottom: 12px; font-size: 1rem; }
.trust-review p { color: var(--dark); line-height: 1.7; margin-bottom: 16px; font-style: italic; font-size: 0.95rem; }
.trust-review .reviewer { font-size: 0.85rem; font-weight: 700; color: var(--blue-dark); }
.trust-review .reviewer-meta { font-size: 0.8rem; color: var(--gray-text); font-weight: 500; }
@media (max-width: 900px) {
  .trust-block .trust-grid { grid-template-columns: 1fr; }
}

/* INLINE QUOTE FORM (embedded on service pages, full on /quote/) */
.wa-estimate-form { background: var(--white); border-radius: 14px; padding: 32px; box-shadow: 0 8px 32px rgba(0,0,0,0.08); }
.wa-estimate-form h3 { font-size: 1.35rem; font-weight: 800; color: var(--dark); margin-bottom: 6px; }
.wa-estimate-form .helper { color: var(--gray-text); font-size: 0.95rem; margin-bottom: 20px; }
.wa-estimate-form .field { margin-bottom: 14px; }
.wa-estimate-form label { display: block; font-size: 0.85rem; font-weight: 700; color: var(--dark); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.5px; }
.wa-estimate-form label .req { color: var(--red); }
.wa-estimate-form input, .wa-estimate-form select, .wa-estimate-form textarea {
  width: 100%; padding: 12px 14px;
  border: 1.5px solid var(--gray-light); border-radius: 6px;
  font-family: inherit; font-size: 1rem; color: var(--dark);
  transition: border-color 0.15s, box-shadow 0.15s;
  background: var(--white);
}
.wa-estimate-form input:focus, .wa-estimate-form select:focus, .wa-estimate-form textarea:focus {
  outline: none; border-color: var(--blue-dark); box-shadow: 0 0 0 3px rgba(0,110,209,0.12);
}
.wa-estimate-form textarea { resize: vertical; min-height: 90px; }
.wa-estimate-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .wa-estimate-form .row { grid-template-columns: 1fr; } }
.wa-estimate-form .submit { margin-top: 6px; width: 100%; justify-content: center; }
.wa-estimate-form .submit[disabled] { opacity: 0.65; cursor: wait; }
.wa-estimate-form .fine { font-size: 0.8rem; color: var(--gray-text); margin-top: 12px; text-align: center; }
.wa-estimate-form .fine a { color: var(--blue-dark); font-weight: 700; }
.wa-estimate-form .hp { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }
.wa-estimate-form .err-msg { color: var(--red); font-size: 0.9rem; margin-top: 12px; display: none; font-weight: 600; }
.wa-estimate-form .err-msg.show { display: block; }

.wa-estimate-success { display: none; background: var(--white); border-radius: 14px; padding: 40px 32px; box-shadow: 0 8px 32px rgba(0,0,0,0.08); text-align: center; border: 2px solid #2BB673; }
.wa-estimate-success.show { display: block; }
.wa-estimate-success .check-circle {
  width: 64px; height: 64px; border-radius: 50%;
  background: #2BB673; color: var(--white);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.wa-estimate-success .check-circle svg { width: 32px; height: 32px; }
.wa-estimate-success h3 { font-size: 1.4rem; font-weight: 800; color: var(--dark); margin-bottom: 10px; }
.wa-estimate-success p { color: var(--gray-text); line-height: 1.7; margin-bottom: 8px; }
.wa-estimate-success .phone-line a { color: var(--blue-dark); font-weight: 800; }

/* SITE FOOTER */
.site-footer { background: var(--dark); color: var(--white); padding: 64px 0 24px; }
.site-footer .footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.site-footer h4 { font-size: 0.95rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 18px; color: var(--white); }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: rgba(255,255,255,0.75); font-size: 0.92rem; transition: color 0.15s; }
.site-footer a:hover { color: var(--white); }
.site-footer .brand-block p { color: rgba(255,255,255,0.7); font-size: 0.9rem; line-height: 1.7; margin: 14px 0; }
.site-footer .brand-block img { height: 50px; width: auto; background: var(--white); padding: 6px 10px; border-radius: 6px; }
.site-footer .footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 0.82rem; color: rgba(255,255,255,0.6); }
.site-footer .footer-bottom a { color: rgba(255,255,255,0.75); }
@media (max-width: 900px) {
  .site-footer .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .site-footer .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}
