/* ============================================================
   CMIS — Carrigan Municipal Information System
   Shared stylesheet  ·  carrigantechnologies.com
   Brand: navy / blue / green / orange   Fonts: Georgia + system sans
   ============================================================ */

:root {
  --bg: #ffffff;
  --surface: #f5f8fb;
  --surface-2: #eaf1f8;
  --ink: #17222f;
  --ink-soft: #46535f;
  --ink-faint: #74818e;
  --line: #dde5ee;
  --navy: #1f3a5f;
  --navy-deep: #16304f;
  --blue: #2e6ca4;
  --blue-soft: #e7f0f8;
  --green: #1e7d5a;
  --green-soft: #e4f3ec;
  --orange: #d9822b;
  --orange-soft: #fbeeda;
  --radius: 16px;
  --shadow-sm: 0 1px 2px rgba(23,34,47,.06), 0 4px 14px rgba(23,34,47,.05);
  --shadow-lg: 0 10px 40px rgba(23,34,47,.13);
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
  --maxw: 1140px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f141b; --surface: #161d26; --surface-2: #1d2630;
    --ink: #eef3f8; --ink-soft: #b4bfca; --ink-faint: #87939f;
    --line: #28323e;
    --navy: #22416a; --navy-deep: #182f4c;
    --blue: #4f8fc9; --blue-soft: #18293a;
    --green: #38b483; --green-soft: #142a20;
    --orange: #e2954a; --orange-soft: #2c2415;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.3), 0 4px 14px rgba(0,0,0,.3);
    --shadow-lg: 0 10px 40px rgba(0,0,0,.45);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f141b; --surface: #161d26; --surface-2: #1d2630;
  --ink: #eef3f8; --ink-soft: #b4bfca; --ink-faint: #87939f;
  --line: #28323e;
  --navy: #22416a; --navy-deep: #182f4c;
  --blue: #4f8fc9; --blue-soft: #18293a;
  --green: #38b483; --green-soft: #142a20;
  --orange: #e2954a; --orange-soft: #2c2415;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.3), 0 4px 14px rgba(0,0,0,.3);
  --shadow-lg: 0 10px 40px rgba(0,0,0,.45);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); line-height: 1.6; -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--serif); line-height: 1.14; text-wrap: balance; }
img { max-width: 100%; }
a { color: var(--blue); }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; background: var(--navy); color: #fff; text-decoration: none;
  font-weight: 600; font-size: 14.5px; padding: 11px 20px; border-radius: 10px; border: 0; cursor: pointer;
}
.btn:hover { background: var(--navy-deep); }
.btn.orange { background: var(--orange); }
.btn.orange:hover { filter: brightness(.95); }
.btn.ghost { background: transparent; color: var(--navy); border: 1.5px solid var(--navy); }
.btn.on-dark { border-color: rgba(255,255,255,.5); color: #fff; }
.btn.lg { font-size: 16px; padding: 14px 28px; }
:root[data-theme="dark"] .btn.ghost { color: var(--ink); border-color: var(--line); }
@media (prefers-color-scheme: dark){ :root:not([data-theme="light"]) .btn.ghost { color: var(--ink); border-color: var(--line);} }

/* ---------- Top bar ---------- */
nav.site {
  display: flex; align-items: center; justify-content: space-between;
  padding-block: 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap; gap: 12px;
}
.logo { display: flex; align-items: baseline; gap: 9px; text-decoration: none; }
.logo .mark { font-family: var(--serif); font-weight: 700; font-size: 26px; color: var(--navy); }
.logo .full { font-size: 13px; color: var(--ink-faint); }
.navlinks { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.navlinks a { color: var(--ink-soft); text-decoration: none; font-size: 14.5px; font-weight: 500; }
.navlinks a:hover, .navlinks a.active { color: var(--blue); }

/* ---------- Hero (home) ---------- */
.hero { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 68%); color: #fff; position: relative; overflow: hidden; }
.hero::after { content:""; position:absolute; right:-140px; top:-120px; width:460px; height:460px; border-radius:50%;
  background: radial-gradient(circle at 35% 35%, rgba(46,108,164,.5), transparent 62%); pointer-events:none; }
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 42px; align-items: center; padding-block: 60px 66px; }
.eyebrow { display:inline-block; font-size:12.5px; font-weight:600; letter-spacing:.13em; text-transform:uppercase; color:#9ec4e8; border:1px solid rgba(158,196,232,.4); border-radius:999px; padding:5px 13px; margin-bottom:20px; }
.hero h1 { font-size: clamp(32px, 4.8vw, 50px); margin: 0 0 18px; color: #fff; }
.hero .sub { font-size: clamp(16px, 2vw, 19px); color: #cddcec; margin: 0 0 28px; max-width: 54ch; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .trust { margin-top: 26px; font-size: 13.5px; color: #8fb2d4; }

/* ---------- Inner-page header ---------- */
.page-head { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 72%); color: #fff; }
.page-head .wrap { padding-block: 48px 52px; position: relative; z-index: 1; }
.crumb { font-size: 13px; color: #9ec4e8; margin-bottom: 12px; }
.crumb a { color: #9ec4e8; text-decoration: none; }
.page-head h1 { font-size: clamp(28px, 4vw, 40px); margin: 0 0 14px; color:#fff; }
.page-head p { color: #cddcec; font-size: 18px; max-width: 60ch; margin: 0; }

/* ---------- Screenshot placeholder ---------- */
.shot { background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  aspect-ratio: 16/10; display: grid; place-content: center; text-align: center; gap: 6px;
  color: var(--ink-faint); padding: 20px; box-shadow: var(--shadow-lg); }
.shot .ic { font-size: 26px; }
.shot .t { font-weight: 600; color: var(--ink-soft); font-size: 14px; }
.shot .d { font-size: 12.5px; }
.hero .shot { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.18); color: #bcd3e8; }
.hero .shot .t { color: #e4eef7; }

/* ---------- Generic sections ---------- */
section { padding-block: 60px; }
.center { text-align: center; }
.eyebrow2 { font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--orange); margin: 0 0 10px; }
h2.title { font-size: clamp(25px, 3.4vw, 34px); color: var(--navy); margin: 0 0 14px; }
.center h2.title { margin-inline: auto; max-width: 22ch; }
.lede { color: var(--ink-soft); font-size: 17px; max-width: 64ch; margin: 0 auto; }

/* problem band */
.alt { background: var(--surface); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 42px; align-items: center; }
.two h2 { font-size: clamp(23px,3vw,30px); color: var(--navy); margin: 0 0 14px; }
.two p { color: var(--ink-soft); font-size: 16.5px; margin: 0 0 12px; }
.turn { color: var(--navy); font-weight: 600; font-family: var(--serif); font-size: 18px; }
.stack-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.stack-list li { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 12px 15px; font-size: 14.5px; color: var(--ink-soft); display: flex; gap: 10px; align-items: center; }
.stack-list li .x { color: var(--orange); font-weight: 700; flex: none; }

/* spine / hub */
.spine { background: linear-gradient(170deg, var(--blue-soft), var(--bg) 85%); }
.hub { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px,1fr)); gap: 14px; margin-top: 36px; }
.hub .core { grid-column: 1 / -1; text-align: center; }
.hub .core .disc { display:inline-block; background: var(--green); color:#fff; font-family:var(--serif); font-weight:700; padding: 16px 28px; border-radius: 14px; font-size: 18px; box-shadow: var(--shadow-sm); }
.spoke { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px; text-align: center; font-size: 14px; font-weight: 600; color: var(--navy); box-shadow: var(--shadow-sm); }
.spoke span { display: block; font-weight: 400; font-size: 12.5px; color: var(--ink-faint); margin-top: 2px; }

/* module tiles */
.mods { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px,1fr)); gap: 16px; margin-top: 40px; text-align: left; }
.mod { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); transition: transform .15s ease; text-decoration: none; display: block; color: inherit; }
.mod:hover { transform: translateY(-3px); }
.mod .ic { width: 42px; height: 42px; border-radius: 10px; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; font-size: 20px; margin-bottom: 13px; }
.mod h3 { font-size: 17.5px; color: var(--navy); margin: 0 0 6px; }
.mod p { font-size: 14px; color: var(--ink-soft); margin: 0; }
.mod .more { display:inline-block; margin-top:10px; font-size:13px; font-weight:600; color:var(--blue); }

/* proof strip */
.proof { background: var(--navy); color: #fff; }
.proof .grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px,1fr)); gap: 26px; text-align: center; }
.proof .n { font-family: var(--serif); font-size: clamp(30px,4vw,42px); font-weight: 700; color: #fff; }
.proof .l { color: #a9c6e2; font-size: 14.5px; margin-top: 4px; }

/* value cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: 16px; margin-top: 38px; text-align: left; }
.vcard { background: var(--green-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.vcard h3 { color: var(--green); font-size: 17px; margin: 0 0 7px; }
.vcard p { margin: 0; color: var(--ink-soft); font-size: 14.5px; }

/* feature list (module inner pages) */
.feat { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: 14px; margin-top: 10px; }
.feat .f { background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--green); border-radius: 10px; padding: 16px 18px; }
.feat .f h4 { margin: 0 0 5px; font-family: var(--sans); font-size: 15px; color: var(--navy); font-weight: 700; }
.feat .f p { margin: 0; font-size: 14px; color: var(--ink-soft); }
.connects { background: var(--blue-soft); border-radius: var(--radius); padding: 20px 24px; margin-top: 30px; }
.connects b { color: var(--navy); }
.connects .chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.connects .chip { background: var(--bg); border: 1px solid var(--line); color: var(--blue); font-size: 13px; font-weight: 600; border-radius: 999px; padding: 6px 13px; }

/* closing CTA */
.close { background: linear-gradient(160deg, var(--navy-deep), var(--navy)); color: #fff; text-align: center; }
.close h2 { font-size: clamp(26px,3.6vw,36px); color: #fff; margin: 0 auto 14px; max-width: 20ch; }
.close p { color: #cddcec; font-size: 17px; margin: 0 auto 26px; max-width: 52ch; }

/* form (demo page) */
.form { max-width: 620px; margin: 0 auto; display: grid; gap: 16px; }
.form .field { display: grid; gap: 6px; text-align: left; }
.form label { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.form input, .form select, .form textarea {
  font: inherit; font-size: 15px; padding: 11px 13px; border: 1px solid var(--line);
  border-radius: 10px; background: var(--bg); color: var(--ink); width: 100%;
}
.form textarea { min-height: 110px; resize: vertical; }
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* footer */
footer.site { background: var(--surface); border-top: 1px solid var(--line); padding-block: 34px; }
footer.site .row { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: flex-start; }
footer.site .mark { font-family: var(--serif); font-weight: 700; font-size: 22px; color: var(--navy); }
footer.site .meta { font-size: 13.5px; color: var(--ink-faint); line-height: 1.7; margin-top: 8px; }
footer.site .cols { display: flex; gap: 42px; flex-wrap: wrap; }
footer.site .cols b { display: block; font-size: 13px; color: var(--ink); margin-bottom: 8px; }
footer.site .cols a { display: block; color: var(--ink-soft); text-decoration: none; font-size: 13.5px; margin-bottom: 5px; }
footer.site .legal { max-width: var(--maxw); margin: 20px auto 0; padding-inline: 22px; font-size: 12px; color: var(--ink-faint); }

@media (max-width: 760px) {
  .hero .wrap, .two { grid-template-columns: 1fr; }
  .hero .wrap { padding-block: 44px 48px; gap: 30px; }
  .form .row2 { grid-template-columns: 1fr; }
}
