/* ===================================================================
   Chuck Miller Consulting - shared stylesheet (design system + chrome)
   Cloned 1:1 from https://www.chuckmillerconsulting.com (Wix source).
   OWNED BY ORCHESTRATOR. Page subagents add page-scoped CSS inline in
   their own page <head> under a "page:" style block - they never edit
   this file (parallel-safe). Fonts are loaded per page via a <link> in
   the head, never via @import here.
   =================================================================== */

:root {
  --orange: #e9600f;
  --orange-dark: #cf540c;
  --navy: #0e2a4e;
  --navy-2: #12305c;
  --navy-card: #143061;
  --hero-navy: #16294a;
  --heading: #16233f;
  --text: #4a4a4a;
  --muted: #6b7280;
  --line: #e5e7eb;
  --bg-soft: #f4f5f7;
  --white: #ffffff;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Poppins", "Helvetica Neue", Arial, sans-serif;
  --container: 1200px;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(16, 35, 63, 0.12);
}

/* ---------- reset ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  font-size: 16px;
  line-height: 1.7;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--serif);
  color: var(--heading);
  line-height: 1.15;
  margin: 0 0 .5em;
  font-weight: 700;
}
p { margin: 0 0 1rem; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--orange);
  color: #fff; padding: 10px 16px; z-index: 1000;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; background: var(--orange); color: #fff;
  font-family: var(--serif); font-weight: 700; font-size: 1rem;
  padding: 14px 34px; border-radius: 40px; border: 0; cursor: pointer;
  transition: background .25s ease, transform .25s ease;
}
.btn:hover { background: var(--orange-dark); transform: translateY(-2px); }
.btn-lg { padding: 16px 40px; font-size: 1.05rem; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--orange); font-weight: 600; font-family: var(--sans);
  letter-spacing: .04em; text-transform: none; font-size: .95rem; margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 26px; height: 3px; background: var(--orange); display: inline-block; border-radius: 2px; }
.eyebrow.center { justify-content: center; }

/* ---------- top bar ---------- */
.topbar { background: var(--orange); color: #fff; font-size: .85rem; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; padding: 8px 24px; gap: 16px; flex-wrap: wrap; }
.topbar-contact { display: flex; gap: 26px; flex-wrap: wrap; }
.topbar-contact a { display: inline-flex; align-items: center; gap: 8px; color: #fff; }
.topbar-contact img { filter: brightness(0) invert(1); }
.topbar-social { display: inline-flex; align-items: center; gap: 12px; }
.topbar-social img { filter: brightness(0) invert(1); }
.topbar-social a { display: inline-flex; }

/* ---------- header / nav ---------- */
.site-header { background: #fff; position: sticky; top: 0; z-index: 500; box-shadow: 0 2px 14px rgba(0,0,0,.06); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 12px 24px; gap: 20px; }
.logo img { height: 54px; width: auto; }
.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav > ul { list-style: none; display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; }
.main-nav a {
  font-family: var(--serif); font-size: 1.02rem; color: var(--heading);
  padding: 10px 14px; display: inline-block; border-radius: 6px; transition: color .2s ease;
}
.main-nav a:hover, .main-nav .current > a { color: var(--orange); }
.has-sub { position: relative; }
.has-sub > a::after { content: " \25be"; font-size: .8em; color: var(--orange); }
.submenu {
  list-style: none; margin: 0; padding: 8px 0; position: absolute; left: 0; top: 100%;
  min-width: 250px; background: #fff; box-shadow: var(--shadow); border-radius: 8px;
  border-top: 3px solid var(--orange);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.has-sub:hover > .submenu, .has-sub:focus-within > .submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.submenu a { display: block; padding: 9px 20px; font-size: .95rem; border-radius: 0; white-space: nowrap; }
.submenu a:hover { background: var(--bg-soft); color: var(--orange); }
.nav-cta { margin-left: 8px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 26px; height: 3px; background: var(--heading); margin: 5px 0; border-radius: 2px; transition: .3s; }

/* ---------- inner page hero band ---------- */
.page-hero {
  position: relative; min-height: 340px; display: flex; align-items: center; justify-content: center;
  text-align: center; overflow: hidden; background: var(--hero-navy);
}
.page-hero .page-hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .28; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,42,78,.72), rgba(14,42,78,.82)); }
.page-hero h1 { position: relative; z-index: 2; color: #fff; font-size: clamp(2.2rem, 5vw, 4rem); margin: 0; padding: 40px 20px; }

/* ---------- generic section ---------- */
.section { padding: 76px 0; }
.section.soft { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 780px; margin: 0 auto 46px; }
.section-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.lead { color: var(--muted); font-size: 1.02rem; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy); color: #cfd8e6; padding: 60px 0 0; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1.2fr; gap: 40px; }
.site-footer h3 { color: #fff; font-size: 1.3rem; margin-bottom: 20px; }
.footer-logo { background: #fff; display: inline-block; padding: 10px 14px; border-radius: 8px; margin-bottom: 16px; }
.footer-logo img { height: 66px; width: auto; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a:hover { color: var(--orange); }
.footer-social { display: flex; gap: 14px; margin-top: 14px; }
.footer-social img { filter: brightness(0) invert(1); opacity: .85; }
.footer-social a:hover img { opacity: 1; }
.footer-bar { background: var(--orange); color: #fff; text-align: center; padding: 14px; margin-top: 50px; font-size: .9rem; }

/* ---------- cards ---------- */
.card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }

/* ---------- leaflet map ---------- */
#map { width: 100%; height: 340px; border-radius: var(--radius); z-index: 0; }

/* ---------- forms ---------- */
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 500; margin-bottom: 6px; color: var(--heading); font-size: .95rem; }
.field input, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px;
  font-family: var(--sans); font-size: 1rem; color: var(--heading); background: #fff;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--orange); border-color: var(--orange); }
.hp-field { position: absolute; left: -9999px; overflow: hidden; width: 1px; height: 1px; }

/* ===================================================================
   Motion - plain CSS keyframes ported from the Wix source (fade/rise
   reveals, hover lifts, pulsing accent). On-load animations use
   animation-fill-mode: both so the element ALWAYS ends visible - no
   stylesheet rule ever hides real content.
   =================================================================== */
@keyframes fadeUp { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes zoomIn { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(233, 96, 15, .5); }
  70% { box-shadow: 0 0 0 16px rgba(233, 96, 15, 0); }
  100% { box-shadow: 0 0 0 0 rgba(233, 96, 15, 0); }
}

.animate { animation: fadeUp .8s ease both; }
.animate-in { animation: fadeIn 1s ease both; }
.animate-zoom { animation: zoomIn .8s ease both; }
.d1 { animation-delay: .12s; }
.d2 { animation-delay: .24s; }
.d3 { animation-delay: .36s; }
.d4 { animation-delay: .48s; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* === shared components for the rebuilt pages - BEGIN === */
/* ---------- contact block (home #contact and the Contact page) ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 50px; align-items: start; }
.contact-info .ci { margin-bottom: 18px; }
.contact-info .ci span { display: block; color: var(--orange); font-weight: 600; }
.contact-info .ci a, .contact-info .ci p { color: var(--heading); font-weight: 500; margin: 2px 0 0; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .82rem; color: var(--muted); margin: 6px 0 16px; }
.consent input { margin-top: 4px; }

/* ---------- wide "Blogs" dropdown (34 categories) ---------- */
.submenu.mega {
  display: grid; grid-template-columns: repeat(3, minmax(190px, 1fr));
  min-width: 640px; left: auto; right: 0; padding: 12px 0;
  max-height: 72vh; overflow-y: auto;
}
.submenu.mega a { padding: 7px 18px; font-size: .9rem; }

/* ---------- article / long-form page body ---------- */
.prose { max-width: 900px; margin: 0 auto; }
.prose > p { margin-bottom: 18px; }
.prose h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); color: var(--heading); margin: 34px 0 14px; }
.prose h2:first-child { margin-top: 0; }
.prose ul { margin: 0 0 20px; padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose .lede { font-family: var(--serif); font-size: 1.3rem; color: var(--heading); margin-bottom: 22px; }
.prose blockquote { margin: 24px 0; padding: 14px 22px; border-left: 4px solid var(--orange);
  background: var(--bg-soft); font-style: italic; color: var(--heading); }
.prose .float-right { float: right; margin: 4px 0 20px 28px; max-width: 40%; }
.prose .figrow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 8px 0 26px; clear: both; }
.prose .figrow figure { margin: 0; }
.prose .figrow img { width: 100%; border: 1px solid var(--line); border-radius: 6px; }
.prose .figrow figcaption { font-size: .82rem; color: var(--muted); margin-top: 8px; }

/* ---------- service page (short "what we do" pages) ---------- */
.svc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.svc-copy .plans { color: var(--heading); font-size: 1.02rem; margin-bottom: 14px; }
.svc-copy .plans strong { color: var(--orange); }
.svc-list { list-style: none; margin: 0 0 30px; padding: 0; }
.svc-list li { margin-bottom: 10px; color: var(--text); }
.svc-media { position: relative; }
.svc-media .main-img { border-radius: 14px; width: 100%; box-shadow: var(--shadow); }
.svc-media.stacked { padding-top: 100px; }
.svc-media.stacked .float-img { position: absolute; left: 0; top: 0; width: 46%;
  border-radius: 12px; border: 6px solid #fff; box-shadow: var(--shadow); }

/* ---------- blog / category post listing ---------- */
.postlist { max-width: 780px; margin: 0 auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.postlist .post { padding: 30px 32px; border-bottom: 1px solid var(--line); }
.postlist .post:last-child { border-bottom: 0; }
.post-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.post-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--orange);
  color: #fff; font-family: var(--sans); font-size: .9rem; font-weight: 600;
  display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.post-byline { font-size: .82rem; color: var(--muted); line-height: 1.35; }
.post-byline strong { display: block; color: var(--heading); font-weight: 500; }
.postlist h2 { font-size: 1.45rem; margin: 0 0 10px; }
.postlist h2 a { color: var(--heading); }
.postlist h2 a:hover { color: var(--orange); }
.postlist .excerpt { margin: 0; color: var(--text); }
.postlist .empty { padding: 40px 32px; color: var(--muted); text-align: center; }

/* ---------- FAQ tabs + accordion ---------- */
.faq { max-width: 900px; margin: 0 auto; }
.faq-tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 10px; }
.faq-tab { background: none; border: 0; border-bottom: 3px solid transparent; cursor: pointer;
  padding: 14px 18px; font-family: var(--sans); font-size: .95rem; color: var(--muted); }
.faq-tab[aria-selected="true"] { color: var(--heading); border-bottom-color: var(--orange); font-weight: 600; }
.faq-panel[hidden] { display: none; }
.faq-q { width: 100%; background: none; border: 0; border-bottom: 1px solid var(--line); cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 20px; text-align: left;
  padding: 22px 4px; font-family: var(--sans); font-size: 1.05rem; color: var(--heading); }
.faq-q::after { content: "\25be"; color: var(--muted); transition: transform .2s ease; flex: 0 0 auto; }
.faq-q[aria-expanded="true"]::after { transform: rotate(180deg); }
.faq-a { padding: 4px 4px 22px; border-bottom: 1px solid var(--line); }
.faq-a > p { margin-bottom: 14px; }
.faq-a > p:last-child { margin-bottom: 0; }
.faq-a ul { margin: 0 0 14px; padding-left: 22px; }

@media (max-width: 960px) {
  .submenu.mega { grid-template-columns: 1fr; min-width: 0; max-height: 320px; padding: 0 0 6px 14px; }
  .svc-grid, .contact-grid { grid-template-columns: 1fr; }
  .svc-media.stacked { padding-top: 84px; margin-top: 20px; }
  .prose .figrow { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .prose .float-right { float: none; display: block; margin: 0 auto 22px; max-width: 70%; }
  .prose .figrow { grid-template-columns: 1fr; }
}
/* === shared components for the rebuilt pages - END === */

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-toggle { display: block; }
  .main-nav { position: fixed; inset: 0 0 0 auto; width: min(320px, 82vw); background: #fff;
    flex-direction: column; align-items: stretch; padding: 80px 20px 20px; transform: translateX(100%);
    transition: transform .3s ease; box-shadow: -8px 0 30px rgba(0,0,0,.15); overflow-y: auto; z-index: 600; }
  .main-nav.open { transform: none; }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
  .submenu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none;
    border-top: 0; padding: 0 0 6px 14px; min-width: 0; }
  .has-sub > a::after { float: right; }
  .nav-cta { margin: 12px 0 0; }
}
@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; }
  .topbar-inner { justify-content: center; text-align: center; }
  .section { padding: 54px 0; }
}
