/* Greenville IT Consulting — design system
   Brand: #116530 green · #18A558 kelly · #21B6A8 blue-green · #A3EBB1 neon
   Logo greens: #186634 / #12a657 */
:root {
  --green-900: #0b3d20;
  --green-800: #0e4f29;
  --green-700: #116530;
  --green-600: #18a558;
  --teal-500: #21b6a8;
  --teal-600: #0f766e;
  --neon-300: #a3ebb1;
  --neon-100: #e8fbee;
  --ink: #0f1f17;
  --muted: #52607a;
  --bg: #ffffff;
  --bg-soft: #f3fbf5;
  --line: #e3e9e5;
  --white: #ffffff;
  --shadow-sm: 0 1px 2px rgba(11, 61, 32, .06), 0 1px 3px rgba(11, 61, 32, .08);
  --shadow-md: 0 10px 30px rgba(11, 61, 32, .10);
  --shadow-lg: 0 24px 60px rgba(11, 61, 32, .16);
  --radius: 14px;
  --radius-lg: 22px;
  --maxw: 1140px;
  --header-h: 70px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.6; font-size: 17px; -webkit-font-smoothing: antialiased; overflow-wrap: break-word; }
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; color: var(--green-900); font-weight: 800; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.55rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1rem; color: var(--muted); }
a { color: var(--teal-600); text-decoration: none; }
a:hover { color: var(--green-700); }
img, svg { max-width: 100%; }
:focus-visible { outline: 3px solid rgba(33, 182, 168, .55); outline-offset: 2px; border-radius: 6px; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 700; color: var(--teal-600); margin-bottom: .6rem; }
.lead { font-size: 1.18rem; color: var(--muted); }
.center { text-align: center; }
.muted { color: var(--muted); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; font-weight: 700; font-size: 1rem;
  padding: .85rem 1.5rem; border-radius: 999px; border: 1.5px solid transparent; cursor: pointer;
  transition: transform .12s ease, box-shadow .2s ease, background .2s ease; line-height: 1.2; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: linear-gradient(135deg, var(--green-700), var(--teal-600)); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { color: #fff; box-shadow: var(--shadow-md); transform: translateY(-1px); }
.btn-dark { background: var(--green-800); color: #fff; }
.btn-dark:hover { background: var(--green-900); color: #fff; }
.btn-ghost { background: #fff; color: var(--green-700); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--green-600); color: var(--green-700); }
.btn-lg { padding: 1rem 1.7rem; font-size: 1.05rem; }

/* header / nav */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .88); backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; flex: 0 0 auto; }
.brand img { height: 33px; width: auto; display: block; }
.nav-menu { display: flex; align-items: center; gap: 2rem; }
.nav-links { display: flex; align-items: center; gap: 1.8rem; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--ink); font-weight: 600; font-size: .98rem; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--green-700); }
.nav-cta { display: flex; align-items: center; gap: .7rem; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: .5rem; margin: -.5rem; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--green-900); margin: 5px 0; border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* hero */
.hero { position: relative; overflow: hidden; padding: 0; background:
   radial-gradient(1100px 500px at 85% -10%, rgba(33, 182, 168, .16), transparent 60%),
   radial-gradient(900px 500px at 0% 0%, rgba(163, 235, 177, .30), transparent 55%), var(--bg); }
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; padding-block: 5rem 4.5rem; }
.hero h1 span { background: linear-gradient(120deg, var(--green-700), var(--teal-500)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { max-width: 40ch; }
.hero-cta { display: flex; gap: .9rem; flex-wrap: wrap; margin-top: 1.6rem; }
.hero-trust { margin-top: 1.8rem; display: flex; gap: 1.4rem; flex-wrap: wrap; color: var(--muted); font-size: .9rem; font-weight: 600; }
.hero-trust b { color: var(--green-700); }

.scan-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.6rem; box-shadow: var(--shadow-lg); }
.scan-card h3 { color: var(--green-900); margin-bottom: .25rem; }
.scan-card .pill { display: inline-flex; align-items: center; gap: .4rem; background: var(--neon-100); color: var(--green-700); font-weight: 700; font-size: .78rem; padding: .3rem .7rem; border-radius: 999px; margin-bottom: .9rem; }

/* sections */
section { padding: 4.5rem 0; }
.section-soft { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 640px; margin: 0 auto 2.6rem; text-align: center; }
/* spacing: keep section top/bottom symmetric — strip trailing margins that pile onto the bottom padding */
section > .container > :last-child { margin-bottom: 0; }
section .grid > div > :last-child { margin-bottom: 0; }
.section-head:last-child, .section-head > :last-child { margin-bottom: 0; }
/* secondary text CTA (e.g. "Book a free 30-minute call →") — bold, tappable, never breaks mid-phrase */
.form-note .text-cta { display: inline-block; font-weight: 700; color: var(--teal-600); white-space: nowrap; padding: .15rem 0; }
.form-note .text-cta:hover, .form-note .text-cta:focus-visible { text-decoration: underline; }

/* grids / cards — fluid across all widths */
.grid { display: grid; gap: 1.3rem; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(248px, 100%), 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow-sm); transition: transform .15s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card .ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 1rem; background: linear-gradient(135deg, var(--neon-300), var(--teal-500)); color: var(--green-900); }
.card .ico svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: .35rem; }
.card p { margin: 0; font-size: .97rem; }

.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.checks li { display: flex; gap: .65rem; align-items: flex-start; color: var(--ink); font-weight: 500; }
.checks li::before { content: "✓"; color: #fff; background: var(--green-700); border-radius: 50%; width: 22px; height: 22px; display: grid; place-items: center; font-size: .8rem; font-weight: 800; flex: 0 0 22px; margin-top: 2px; }

.cta-band { background: linear-gradient(135deg, var(--green-800), var(--teal-600)); color: #fff; border-radius: var(--radius-lg); padding: 3rem; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, .92); }

/* forms */
.form { display: grid; gap: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .35rem; color: var(--green-900); }
.field input, .field textarea { width: 100%; padding: .8rem .9rem; border: 1.5px solid var(--line); border-radius: 10px; font: inherit; color: var(--ink); background: #fff; transition: border .15s ease, box-shadow .15s ease; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--green-600); box-shadow: 0 0 0 3px rgba(24, 165, 88, .15); }
.field textarea { min-height: 120px; resize: vertical; }
.consent { display: flex; gap: .6rem; align-items: flex-start; font-size: .9rem; color: var(--muted); }
.consent input { margin-top: 4px; flex: 0 0 auto; width: 18px; height: 18px; }
.hp { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.form-note { font-size: .85rem; color: var(--muted); }
.form-status { font-weight: 600; }
.form-status.err { color: #c0392b; }
.form-status.ok { color: var(--green-700); }

/* scan results */
.result { display: none; margin-top: 2rem; scroll-margin-top: calc(var(--header-h) + 18px); }
.result.show { display: block; animation: fade .35s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.grade-hero { display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap; padding: 1.5rem; border-radius: var(--radius); background: var(--bg-soft); border: 1px solid var(--line); }
.grade-badge { width: 92px; height: 92px; border-radius: 20px; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 2.9rem; box-shadow: var(--shadow-md); flex: 0 0 92px; }
.grade-A { background: linear-gradient(135deg, #16a34a, #15803d); }
.grade-B { background: linear-gradient(135deg, #65a30d, #16a34a); }
.grade-C { background: linear-gradient(135deg, #a16207, #854d0e); }
.grade-D { background: linear-gradient(135deg, #ea580c, #c2410c); }
.grade-F { background: linear-gradient(135deg, #dc2626, #991b1b); }
.findings { list-style: none; margin: 1.4rem 0 0; padding: 0; display: grid; gap: .7rem; }
.finding { display: grid; grid-template-columns: 28px 1fr; gap: .8rem; padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.finding .badge { font-size: 1.2rem; line-height: 1.4; }
.finding b { color: var(--green-900); }
.finding .val { font-weight: 600; color: var(--ink); }
.finding b, .finding .val, .finding small { overflow-wrap: anywhere; }
.finding small { color: var(--muted); display: block; margin-top: .2rem; }
.finding.fail { border-left: 4px solid #dc2626; }
.finding.warn { border-left: 4px solid #ea580c; }
.finding.pass { border-left: 4px solid #16a34a; }
.finding.info { border-left: 4px solid var(--teal-500); }
.result-actions { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.4rem; }
.spinner { display: none; align-items: center; gap: .7rem; color: var(--muted); font-weight: 600; margin-top: 1rem; }
.spinner.show { display: flex; }
.spinner .dot { width: 18px; height: 18px; border: 3px solid var(--neon-300); border-top-color: var(--green-600); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* footer */
.site-footer { background: var(--green-900); color: #cfe9d8; padding: 3.5rem 0 2rem; }
.site-footer h4 { color: #fff; font-size: .95rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 1rem; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr; gap: 2.5rem; }
.foot-logo { height: 44px; width: auto; display: block; }
.site-footer a { color: #cfe9d8; display: block; margin-bottom: .55rem; font-weight: 500; }
.site-footer a:hover { color: var(--neon-300); }
.foot-bottom { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 2.5rem; padding-top: 1.4rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .85rem; color: #9dc4ac; }

/* interior page hero */
.page-hero { background:
  radial-gradient(800px 380px at 90% -20%, rgba(33, 182, 168, .14), transparent 60%),
  radial-gradient(700px 360px at 0% 0%, rgba(163, 235, 177, .28), transparent 55%), var(--bg);
  padding: 3.6rem 0 2.4rem; border-bottom: 1px solid var(--line); }
.page-hero .lead { max-width: 60ch; }

/* prose — legal & long-form */
.prose { max-width: 760px; }
.prose h2 { margin-top: 2.2rem; font-size: 1.4rem; }
.prose h3 { margin-top: 1.5rem; font-size: 1.12rem; }
.prose p, .prose li { color: var(--muted); }
.prose ul { padding-left: 1.2rem; margin: 0 0 1rem; }
.prose li { margin-bottom: .45rem; }
.prose a { color: var(--teal-600); text-decoration: underline; }
.prose strong { color: var(--ink); }
.updated { color: var(--muted); font-size: .9rem; margin-bottom: 1.8rem; }
.notice { background: var(--neon-100); border: 1px solid var(--neon-300); border-radius: 12px; padding: 1rem 1.2rem; margin: 1.6rem 0; font-size: .95rem; color: var(--green-900); }
.notice p { color: var(--green-900); margin: 0; }

/* FAQ accordion */
.faq { max-width: 820px; display: grid; gap: .8rem; }
.faq details { border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: var(--shadow-sm); }
.faq summary { list-style: none; cursor: pointer; padding: 1.1rem 1.3rem; font-weight: 700; color: var(--green-900); display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; color: var(--green-600); transition: transform .2s ease; line-height: 1; flex: 0 0 auto; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 1.3rem 1.2rem; }
.faq details > div p { margin: 0; color: var(--muted); }

/* feedback star rating */
.rating { display: inline-flex; gap: .2rem; position: relative; }
.rating input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.rating label { font-size: 2rem; color: var(--line); cursor: pointer; line-height: 1; transition: color .12s ease; }
.rating label.lit { color: var(--green-600); }
.rating input:focus-visible + label { outline: 3px solid rgba(33, 182, 168, .55); outline-offset: 2px; border-radius: 4px; }

.foot-legal a { display: inline; margin: 0; }
.foot-tag { color: #fff; font-weight: 700; font-size: 1.05rem; margin: 1rem 0 .4rem; }

/* skip link (a11y) */
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--green-700); color: #fff; padding: .7rem 1.1rem; border-radius: 0 0 10px 0; font-weight: 700; }
.skip-link:focus { left: 0; color: #fff; }

/* required marker + fieldsets + radio groups */
.req { color: #c0392b; }
.field fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.field legend { font-weight: 600; font-size: .9rem; margin-bottom: .5rem; color: var(--green-900); padding: 0; }
.radio-group { display: flex; flex-wrap: wrap; gap: .6rem; }
.radio-group label { display: inline-flex; align-items: center; gap: .5rem; padding: .6rem 1rem; border: 1.5px solid var(--line); border-radius: 10px; cursor: pointer; font-weight: 600; font-size: .95rem; color: var(--ink); transition: border-color .15s, background .15s; }
.radio-group input { accent-color: var(--green-600); width: 17px; height: 17px; margin: 0; }
.radio-group label:hover { border-color: var(--green-600); }
.radio-group label:has(input:checked) { border-color: var(--green-600); background: var(--neon-100); }

/* team / headshot */
.team { display: flex; align-items: center; gap: 1.3rem; flex-wrap: wrap; }
.team img { width: 116px; height: 116px; border-radius: 18px; object-fit: cover; box-shadow: var(--shadow-md); }
.team .role { color: var(--teal-600); font-weight: 700; font-size: .95rem; margin: .1rem 0 0; }
.value-num { font-size: 2rem; font-weight: 800; color: var(--green-700); line-height: 1; margin-bottom: .4rem; }
.card .more { display: inline-block; margin-top: .8rem; font-weight: 700; color: var(--teal-600); }

/* video hero */
.hero-video-wrap { position: relative; background-size: cover; background-position: center; overflow: hidden; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; border: 0; }
.hero-overlay { position: absolute; inset: 0; z-index: 1; background: linear-gradient(100deg, rgba(11,61,32,.95) 0%, rgba(11,61,32,.80) 42%, rgba(11,61,32,.42) 100%); }
.hero-video-wrap .hero-inner { position: relative; z-index: 2; }
.hero-video-wrap .eyebrow { color: var(--neon-300); }
.hero-video-wrap h1 { color: #fff; }
.hero-video-wrap h1 span { background: linear-gradient(120deg, #a3ebb1, #7fe0d6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-video-wrap .lead { color: rgba(255,255,255,.92); }
.hero-video-wrap .hero-trust { color: rgba(255,255,255,.85); }
.hero-video-wrap .hero-trust b { color: var(--neon-300); }
.hero-video-wrap .btn-ghost { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.5); }
.hero-video-wrap .btn-ghost:hover { background: rgba(255,255,255,.18); color: #fff; border-color: #fff; }
@media (prefers-reduced-motion: reduce) { .hero-video { display: none; } }
/* mobile: lighter, vertical overlay so the drone footage reads */
@media (max-width: 760px) {
  .hero-overlay { background: linear-gradient(180deg, rgba(11,61,32,.86) 0%, rgba(11,61,32,.62) 34%, rgba(11,61,32,.36) 60%, rgba(11,61,32,.5) 100%); }
  .hero-video-wrap { min-height: auto; }
  .hero-video-wrap .hero-inner { min-height: auto; align-items: start; padding-block: 1.6rem 2.4rem; }
}

/* audit fixes: contact grid, white CTA, star fallback */
.contact-grid { gap: 3rem; }
.btn-white { background: #fff; color: var(--green-800); }
.btn-white:hover { background: var(--neon-100); color: var(--green-800); }
.rating input:checked + label { color: var(--green-600); }
@media (max-width: 680px) { .contact-grid { gap: 1.5rem; } }

/* contact info list (purpose-built, wraps cleanly on mobile) */
.contact-info { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.contact-info li { display: flex; gap: .7rem; align-items: flex-start; }
.contact-info .ci-ico { color: #fff; background: var(--green-700); border-radius: 50%; width: 22px; height: 22px; display: grid; place-items: center; font-size: .78rem; font-weight: 800; flex: 0 0 22px; margin-top: 2px; }
.contact-info > li > div { min-width: 0; overflow-wrap: anywhere; color: var(--muted); line-height: 1.45; }
.contact-info b { color: var(--green-900); }
.contact-info a { font-weight: 600; }

/* testimonials */
.tcard { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.tcard .quote { color: var(--ink); font-size: 1.02rem; line-height: 1.6; margin: 0 0 1.1rem; }
.tcard .stars { color: var(--green-600); letter-spacing: 2px; margin-bottom: .7rem; font-size: .95rem; }
.tcard .who { margin-top: auto; display: flex; align-items: center; gap: .7rem; }
.tcard .who .nm { font-weight: 700; color: var(--green-900); font-size: .95rem; }
.tcard .who .co { color: var(--muted); font-size: .85rem; }
.tcard .avatar { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, var(--neon-300), var(--teal-500)); color: var(--green-900); display: grid; place-items: center; font-weight: 800; flex: 0 0 40px; overflow: hidden; }
.tcard .avatar:has(img) { background: #fff; border: 1px solid var(--line); }
.tcard .avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---- responsive ---- */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 2.2rem; padding-block: 3.2rem; }
}
/* collapse nav to a menu well before the desktop links would overflow */
@media (max-width: 920px) {
  .nav-toggle { display: block; }
  .nav-menu { display: none; position: absolute; top: var(--header-h); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: .6rem; background: #fff; padding: 1rem 22px 1.5rem; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md); }
  .nav-menu.open { display: flex; }
  .nav-links { flex-direction: column; gap: 0; }
  .nav-links a { display: block; padding: .85rem .2rem; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
  .nav-cta { flex-direction: column; gap: .7rem; margin-top: .6rem; }
  .nav-cta .btn { width: 100%; padding: .95rem; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .form-row { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; gap: 1.7rem; }
  .cta-band { padding: 2rem 1.4rem; }
  section { padding: 3rem 0; }
  .hero-inner { padding-block: 2.6rem; }
  .grade-badge { width: 76px; height: 76px; font-size: 2.3rem; flex-basis: 76px; }
  .foot-bottom { flex-direction: column; gap: .5rem; }
  .foot-legal a { display: inline-block; padding: .5rem .35rem; }
}
@media (max-width: 380px) {
  .brand img { height: 28px; }
}

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