/* ==========================================================================
   Nimbus Technology Solutions — site styles
   --------------------------------------------------------------------------
   HOW TO EDIT:
   - Change the brand look in ONE place: the :root variables just below.
   - Each visual section is labelled with a "=== BANNER ===" comment.
   - Pages share the same header + footer markup; styling lives here.
   ========================================================================== */

:root {
  /* ---- Brand palette (edit these to re-skin the entire site) ---- */
  /* Primary brand colors */
  --blue:       #0C3C78;  /* PRIMARY dark blue — headings, links, buttons */
  --orange:     #E94E1B;  /* PRIMARY bright orange — page background, accents */
  --orange-deep:#C23E16;  /* darker orange — CTA button hover            */

  --ink:        #0C3C78;  /* headings + primary text (brand dark blue) */
  --brand:      #0C3C78;  /* primary blue — links, buttons, accents   */
  --brand-deep: #082C5A;  /* darker blue — button/link hover          */
  --sky:        #5BA8F5;  /* light azure — gradients/focus            */
  --mist:       #F2F7FC;  /* soft blue section tint                   */
  --paper:      #FFFFFF;  /* component/card background (kept white)    */
  --page:       #E94E1B;  /* page background (bright orange)          */
  --slate:      #5A6B7B;  /* muted secondary text                     */
  --line:       #DCE6F0;  /* hairline borders                         */

  /* ---- Typefaces ---- */
  --display: 'Space Grotesk', system-ui, sans-serif;  /* headlines */
  --body:    'IBM Plex Sans', system-ui, sans-serif;  /* paragraphs */
  --mono:    'IBM Plex Mono', ui-monospace, monospace;/* small labels */

  /* ---- Layout ---- */
  --maxw: 1080px;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(11, 42, 74, .08);
}

/* === BASE ================================================================= */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--page);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--display); line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 700; letter-spacing: -.5px; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; letter-spacing: -.3px; }
h3 { font-size: 1.2rem; font-weight: 700; }
p  { margin: 0 0 1rem; }
a  { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-deep); text-decoration: underline; }
img { max-width: 100%; height: auto; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* Mono eyebrow label above section headings */
.eyebrow {
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--brand);
  margin: 0 0 .6rem;
}

/* Buttons */
.btn {
  display: inline-block;
  font-family: var(--display);
  font-weight: 500;
  font-size: 1rem;
  padding: .8rem 1.5rem;
  border-radius: 999px;
  border: 1.5px solid var(--brand);
  cursor: pointer;
  transition: background .15s ease, color .15s ease, transform .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-deep); border-color: var(--brand-deep); color: #fff; }
.btn-ghost { background: transparent; color: var(--brand); }
.btn-ghost:hover { background: var(--brand); color: #fff; }
.btn-cta { background: var(--orange); color: #fff; border-color: var(--orange); }
.btn-cta:hover { background: var(--orange-deep); border-color: var(--orange-deep); color: #fff; }

/* === HEADER / NAV ========================================================= */
/* Top utility bar (contact info) above the main nav */
.topbar { background: var(--ink); color: #fff; font-size: .9rem; }
.topbar-inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: 8px 24px;
  display: flex; justify-content: flex-end; align-items: center; gap: .9rem;
}
.topbar a { color: #fff; }
.topbar a:hover { color: #fff; text-decoration: underline; }
.topbar-sep { color: rgba(255, 255, 255, .35); }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 14px 24px; max-width: var(--maxw); margin: 0 auto; }
.brand { display: flex; align-items: center; gap: .55rem; font-family: var(--display); font-weight: 700; font-size: 1.25rem; color: var(--ink); }
.brand:hover { text-decoration: none; color: var(--ink); }
.brand svg { width: 30px; height: 30px; flex: none; }
.brand-logo { height: 80px; width: 180px; display: block; }

/* Desktop: links + CTA sit inline on the right */
.nav-menu { display: flex; align-items: center; gap: 1.4rem; }
.nav-links { display: flex; align-items: center; gap: 1.4rem; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--ink); font-weight: 500; }
.nav-links a:hover { color: var(--brand); text-decoration: none; }
.nav-links a[aria-current="page"] { color: var(--brand); }
.nav-cta { margin-left: .4rem; }

/* Hamburger — hidden on desktop, shown on mobile */
.nav-toggle {
  display: none;
  flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 0;
  background: transparent; border: 0; cursor: pointer;
}
.nav-toggle-bar { display: block; width: 24px; height: 2px; margin: 0 auto; background: var(--ink); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* === HERO ================================================================= */
.hero {
  position: relative;
  background:
    radial-gradient(900px 380px at 75% -10%, rgba(91, 168, 245, .35), transparent 70%),
    linear-gradient(180deg, var(--mist), var(--paper));
  padding: clamp(3.5rem, 9vw, 6.5rem) 0 clamp(3rem, 7vw, 5rem);
  overflow: hidden;
}
.hero .container { max-width: 780px; }
.hero h1 { margin-bottom: .4rem; }
.hero .lede { font-size: 1.2rem; color: var(--slate); max-width: 56ch; margin-bottom: 1.6rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }

/* === SECTIONS ============================================================= */
.section { padding: clamp(3rem, 7vw, 5rem) 0; }
.section-mist { background: var(--mist); }
.section-head { max-width: 640px; margin-bottom: 2.2rem; }
.section-head p { color: var(--slate); margin: 0; }

/* Plain sections are transparent, so the orange page shows through —
   any text sitting directly on it must read white. (Light --mist sections
   and the light hero keep their dark text; cards have their own colors.) */
.section:not(.section-mist) .section-head .eyebrow,
.section:not(.section-mist) .section-head h2,
.section:not(.section-mist) .section-head p,
.section:not(.section-mist) .about-grid > div > .eyebrow,
.section:not(.section-mist) .about-grid > div > h2,
.section:not(.section-mist) .about-grid > div > p,
.section:not(.section-mist) > .container > p { color: #fff; }
.section:not(.section-mist) .about-grid > div > p a { color: #fff; text-decoration: underline; }
.section:not(.section-mist) .about-grid .field label { color: #fff; }
.section:not(.section-mist) .about-grid .form-status { color: rgba(255, 255, 255, .9); }

/* About page: the bio sits on a clean white panel so its dark-blue headers read */
.about-grid .prose { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem 1.8rem; box-shadow: var(--shadow); }
.section:not(.section-mist) .about-grid .prose .eyebrow { color: var(--brand); }
.section:not(.section-mist) .about-grid .prose h2 { color: var(--ink); }
.section:not(.section-mist) .about-grid .prose p { color: var(--slate); }
.section:not(.section-mist) .about-grid .prose p a { color: var(--brand); }

/* Card grids */
.grid { display: grid; gap: 1.2rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

/* Cards use the blue shading site-wide, with white text */
.card {
  background: linear-gradient(120deg, var(--brand-deep), var(--brand));
  border: 1px solid var(--brand-deep);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  color: #fff;
}
.card h3 { margin-bottom: .4rem; color: #fff; }
.card p { color: rgba(255, 255, 255, .9); margin: 0; font-size: .97rem; }
.card .icon { width: 34px; height: 34px; color: #fff; margin-bottom: .9rem; }
.card a { color: #fff; text-decoration: underline; }

/* === PRICING ============================================================== */
.price-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; align-items: start; }
.plan {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem;
  background: var(--paper);
  box-shadow: var(--shadow);
}
.plan.featured { border-color: var(--brand); box-shadow: 0 14px 40px rgba(30, 111, 217, .16); }
.plan .price { font-family: var(--display); font-size: 2.1rem; font-weight: 700; color: var(--ink); }
.plan .price small { display: block; font-family: var(--body); font-size: .85rem; font-weight: 400; color: var(--slate); letter-spacing: .3px; }
.plan ul { list-style: none; margin: 1.1rem 0 0; padding: 0; }
.plan li { position: relative; padding: .35rem 0 .35rem 1.6rem; color: var(--slate); font-size: .95rem; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--brand); font-weight: 700; }
.plan li.group { margin-top: .8rem; padding-left: 0; color: var(--ink); font-weight: 600; font-family: var(--display); }
.plan li.group::before { content: ""; }

.addons { margin-top: 1.4rem; }
.addons .card p { color: rgba(255, 255, 255, .9); }
.addons strong { color: #fff; }

/* === ABOUT ================================================================ */
.about-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2.5rem; align-items: start; }
.partners { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .6rem; }
.tag { font-family: var(--mono); font-size: .8rem; padding: .35rem .7rem; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); background: var(--mist); }

/* Partners — homepage trust strip + footer line */
.partners-strip { padding: 2.2rem 0; text-align: center; }
.partners-strip .partners-label { font-family: var(--mono); font-size: .78rem; letter-spacing: 2px; text-transform: uppercase; color: #fff; margin: 0 0 1.1rem; }
.partners-strip .badge-grid { justify-content: center; }
.footer-partners { margin: 1.4rem 0 0; color: #9fb8d4; font-size: .9rem; }
.footer-partners strong { color: #fff; }

/* Partner badges — logo-ready, with a graceful text fallback until a logo
   file exists. script.js adds .has-logo once the image actually loads, so
   dropping partner-<name>.png into assets/images/ swaps it in automatically
   with no markup change. White pills read on both the orange page and the
   blue About card. */
.badge-grid { display: flex; flex-wrap: wrap; gap: .6rem; }
.badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: .55rem 1rem;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 1px 2px rgba(8, 44, 90, .06);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.badge:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(8, 44, 90, .14); border-color: var(--brand); }
.badge-logo { display: none; height: 26px; width: auto; }
.badge.has-logo { padding: .5rem 1.1rem; }
.badge.has-logo .badge-logo { display: block; }
.badge.has-logo .badge-text { display: none; }
.badge-text { font-family: var(--mono); font-size: .85rem; font-weight: 500; letter-spacing: .3px; color: var(--brand); white-space: nowrap; }

/* === FORMS ================================================================ */
.form { display: grid; gap: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field label { font-family: var(--display); font-weight: 500; font-size: .95rem; color: var(--ink); }
.field input, .field textarea {
  font-family: var(--body); font-size: 1rem; color: var(--ink);
  padding: .75rem .9rem;
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--paper);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(30, 111, 217, .15);
}
.field textarea { resize: vertical; min-height: 130px; }
.form .btn { justify-self: start; }
/* Honeypot — hidden from real users; bots that fill it are rejected server-side */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-size: .95rem; color: var(--slate); margin: .4rem 0 0; min-height: 1.2em; }
.form-status.is-error { color: #b3261e; }
.form-status.is-success { color: #1a7a4c; }

/* Service-area "nearby communities" links (sit on the orange page) */
.area-links { max-width: 72ch; line-height: 2; }
.area-links a { color: #fff; text-decoration: underline; }

/* === FAQ =================================================================== */
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-item { padding: 1.2rem 0; border-bottom: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 0; }
.faq-item h3 { margin: 0 0 .45rem; color: var(--ink); }
.faq-item p { margin: 0; color: var(--slate); }

/* === COMPARE (cloud-first vs traditional) ================================= */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; align-items: start; }
.compare .col { border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow); }
.compare .col h3 { margin: 0 0 .9rem; }
.compare .col ul { list-style: none; margin: 0; padding: 0; }
.compare .col li { position: relative; padding: .35rem 0 .35rem 1.6rem; font-size: .97rem; }
.compare .col li::before { position: absolute; left: 0; font-weight: 700; }
.compare .old { background: var(--paper); border: 1px solid var(--line); }
.compare .old h3 { color: var(--ink); }
.compare .old li { color: var(--slate); }
.compare .old li::before { content: "\2715"; color: #b3261e; }
.compare .new { background: linear-gradient(120deg, var(--brand-deep), var(--brand)); color: #fff; border: 1px solid var(--brand-deep); }
.compare .new h3 { color: #fff; }
.compare .new li::before { content: "\2713"; color: #7fe3b0; }

/* === PRICING ESTIMATOR ==================================================== */
.estimator {
  max-width: 540px; margin: 0 auto;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.8rem;
}
.estimator-form { display: grid; gap: 1.2rem; }
.field-hint { font-weight: 400; color: var(--slate); }
.field-label { font-family: var(--display); font-weight: 500; font-size: .95rem; color: var(--ink); }
.toggle-group { display: flex; gap: .6rem; }
.toggle {
  display: inline-flex; align-items: center; gap: .45rem;
  border: 1px solid var(--line); border-radius: 999px;
  padding: .55rem 1.1rem; cursor: pointer; font-size: .98rem; color: var(--ink);
  transition: border-color .15s ease, background .15s ease;
}
.toggle:has(input:checked) { border-color: var(--brand); background: var(--mist); }
.toggle input { accent-color: var(--brand); }
.estimator .btn { justify-self: start; }
.estimator-result {
  margin-top: 1.5rem; padding-top: 1.5rem;
  border-top: 1px solid var(--line); text-align: center;
}
.result-label { font-family: var(--mono); font-size: .76rem; letter-spacing: 2px; text-transform: uppercase; color: var(--slate); margin: 0 0 .3rem; }
.result-amount { font-family: var(--display); font-size: 2.6rem; font-weight: 700; color: var(--brand); margin: 0 0 .4rem; line-height: 1.1; }
.result-note { color: var(--slate); font-size: .95rem; max-width: 44ch; margin: 0 auto 1.2rem; }
.estimator-fineprint { color: #fff; max-width: 62ch; margin: 1.6rem auto 0; text-align: center; font-size: .92rem; }

/* === CALLOUT (CTA band) =================================================== */
.callout { background: linear-gradient(120deg, var(--brand-deep), var(--brand)); color: #fff; border-radius: var(--radius); padding: 2.4rem; text-align: center; }
.callout h2 { color: #fff; }
.callout p { color: rgba(255, 255, 255, .9); max-width: 50ch; margin: 0 auto 1.4rem; }
.callout .btn { background: #fff; color: var(--brand-deep); border-color: #fff; }
.callout .btn:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

/* === FOOTER =============================================================== */
.site-footer { background: var(--ink); color: #cfe0f2; padding: 3rem 0 2rem; margin-top: 1rem; }
.site-footer a { color: #fff; }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem; }
.footer-brand { font-family: var(--display); font-weight: 700; font-size: 1.2rem; color: #fff; display: flex; align-items: center; gap: .5rem; }
.footer-brand svg { width: 26px; height: 26px; }
/* LOGO RULE: on a BLUE background use the white "for blue" variant
   (NimbusforBLUE.png); on white/light backgrounds use NimbusLogo.png. */
.footer-logo { height: 56px; width: auto; display: block; }
.footer-contact p { margin: .2rem 0; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .15); margin-top: 2rem; padding-top: 1.2rem; font-size: .85rem; color: #9fb8d4; }

/* === RESPONSIVE =========================================================== */
@media (max-width: 820px) {
  .grid-2, .grid-3, .price-grid, .about-grid, .compare { grid-template-columns: 1fr; }

  /* Mobile navigation: hamburger reveals a dropdown panel under the bar */
  .nav-toggle { display: flex; }
  .nav-menu {
    position: absolute; top: 100%; left: 0; right: 0;
    display: none;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: .25rem 24px 1.1rem;
  }
  .nav-menu.is-open { display: flex; }
  .nav-links { flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
  .nav-links a { display: block; padding: .85rem .25rem; border-bottom: 1px solid var(--line); }
  .nav-cta { width: 100%; text-align: center; margin: 1rem 0 0; }
}
@media (max-width: 560px) {
  .form-row { grid-template-columns: 1fr; }
  .topbar-inner { justify-content: center; gap: 0; }
  .topbar-sep, .topbar-schedule { display: none; }
}

/* === ACCESSIBILITY ======================================================== */
:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
