:root {
  --navy-950: #041321;
  --navy-900: #071b2d;
  --navy-800: #0c2942;
  --navy-700: #123954;
  --cyan: #27c5e8;
  --cyan-soft: #9cecff;
  --blue: #1d7cf2;
  --ink: #102638;
  --slate: #526575;
  --line: #dbe4ea;
  --cloud: #eff5f8;
  --white: #ffffff;
  --radius: 18px;
  --shadow: 0 24px 70px rgba(4, 19, 33, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "DM Sans", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: "Manrope", Arial, sans-serif; line-height: 1.08; letter-spacing: -0.035em; }
h1 { font-size: clamp(3rem, 6.2vw, 6rem); max-width: 920px; margin-bottom: 1.5rem; }
h2 { font-size: clamp(2.2rem, 4vw, 4rem); margin-bottom: 1.5rem; }
h3 { font-size: 1.4rem; margin-bottom: 0.8rem; }

.shell { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.section { padding: 7rem 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -100px; left: 1rem; z-index: 2000; background: white; color: var(--navy-950); padding: 0.75rem 1rem; border-radius: 8px; }
.skip-link:focus { top: 1rem; }

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  color: var(--white);
  border-bottom: 1px solid rgba(255,255,255,.18);
  transition: background .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.site-header.scrolled { background: rgba(4,19,33,.94); border-color: transparent; box-shadow: 0 10px 30px rgba(0,0,0,.15); backdrop-filter: blur(14px); }
.nav-wrap { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { display: inline-flex; align-items: center; gap: .75rem; flex-shrink: 0; }
.brand-mark { width: 42px; height: 42px; display: grid; gap: 4px; place-content: center; border: 1px solid rgba(255,255,255,.28); border-radius: 12px; background: rgba(255,255,255,.08); }
.brand-mark i { display: block; width: 20px; height: 3px; border-radius: 99px; background: var(--cyan); }
.brand-mark i:nth-child(2) { width: 13px; background: var(--white); }
.brand-copy { display: grid; line-height: 1.05; text-transform: uppercase; letter-spacing: .09em; font-size: .68rem; }
.brand-copy strong { font: 800 1rem/1 "Manrope", sans-serif; letter-spacing: -.015em; text-transform: none; margin-bottom: .28rem; }
.site-nav { display: flex; align-items: center; gap: 2rem; font-size: .92rem; font-weight: 600; }
.site-nav > a:not(.nav-cta) { position: relative; padding: .75rem 0; }
.site-nav > a:not(.nav-cta)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: .38rem; height: 2px; background: var(--cyan); transition: right .2s ease; }
.site-nav > a:hover::after { right: 0; }
.nav-cta { padding: .78rem 1.1rem; border-radius: 999px; background: var(--cyan); color: var(--navy-950); }
.menu-toggle { display: none; width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.3); background: transparent; border-radius: 10px; padding: 10px; }
.menu-toggle span:not(.sr-only) { display: block; height: 2px; background: white; margin: 5px 0; }

.hero { min-height: 860px; position: relative; display: grid; align-items: end; color: var(--white); overflow: hidden; background: var(--navy-950); }
.hero-media { position: absolute; inset: 0; background: url("assets/south-shore-it-hero.png") center / cover no-repeat; transform: scale(1.01); }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(3,15,26,.98) 0%, rgba(3,15,26,.86) 34%, rgba(3,15,26,.36) 67%, rgba(3,15,26,.18) 100%), linear-gradient(0deg, rgba(3,15,26,.9) 0%, transparent 48%); }
.hero-content { position: relative; z-index: 2; padding: 11rem 0 4rem; }
.eyebrow { display: flex; align-items: center; gap: .7rem; font-size: .76rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--cyan-soft); margin-bottom: 1.6rem; }
.eyebrow span { width: 34px; height: 2px; background: var(--cyan); }
.eyebrow.dark { color: var(--blue); }
.hero-lede { max-width: 660px; font-size: clamp(1.1rem, 2vw, 1.35rem); color: #d8e8f2; line-height: 1.55; margin-bottom: 2.1rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; }
.button { min-height: 54px; display: inline-flex; align-items: center; justify-content: center; gap: 1.5rem; border-radius: 999px; padding: .9rem 1.45rem; font-weight: 700; transition: transform .2s ease, background .2s ease, border-color .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: var(--navy-950); background: var(--cyan); }
.button-primary:hover { background: #57d8f2; }
.button-ghost { border: 1px solid rgba(255,255,255,.45); color: white; background: rgba(255,255,255,.06); }
.button-ghost:hover { background: rgba(255,255,255,.13); border-color: white; }
.hero-proof { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 780px; margin-top: 5rem; border-top: 1px solid rgba(255,255,255,.25); padding-top: 1.6rem; }
.hero-proof div { display: grid; gap: .18rem; padding-right: 1.5rem; }
.hero-proof div + div { border-left: 1px solid rgba(255,255,255,.2); padding-left: 1.5rem; }
.hero-proof strong { font: 700 1.25rem/1.2 "Manrope", sans-serif; }
.hero-proof span { color: #b9cbd6; font-size: .9rem; }

.trust-strip { background: var(--cloud); border-bottom: 1px solid var(--line); }
.trust-row { min-height: 100px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.trust-row > p { margin: 0; font-weight: 700; color: var(--navy-800); white-space: nowrap; }
.industry-list { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: .7rem; }
.industry-list span { padding: .45rem .8rem; background: white; border: 1px solid var(--line); border-radius: 999px; color: var(--slate); font-size: .82rem; font-weight: 600; }

.section-heading { margin-bottom: 3.3rem; }
.split-heading { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, .65fr); align-items: end; gap: 5rem; }
.split-heading h2 { max-width: 790px; margin-bottom: 0; }
.split-heading > p { color: var(--slate); margin: 0 0 .55rem; font-size: 1.05rem; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.service-card { min-height: 315px; padding: 2rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: white; transition: background .25s ease, color .25s ease, transform .25s ease; }
.service-card:hover { background: var(--navy-900); color: white; transform: translateY(-3px); }
.feature-card { grid-row: span 2; min-height: 630px; display: flex; flex-direction: column; justify-content: flex-start; background: var(--navy-900); color: white; }
.card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4rem; }
.service-code { color: var(--blue); font: 700 .78rem/1 "Manrope", sans-serif; letter-spacing: .1em; }
.service-card:hover .service-code, .feature-card .service-code { color: var(--cyan); }
.card-arrow { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid currentColor; border-radius: 50%; opacity: .7; }
.service-card p { color: var(--slate); margin-bottom: 0; }
.service-card:hover p, .feature-card p { color: #bdd0dc; }
.service-card ul { list-style: none; margin: auto 0 0; padding: 2rem 0 0; border-top: 1px solid rgba(255,255,255,.18); }
.service-card li { padding: .55rem 0; color: #d6e7f0; }
.service-card li::before { content: "—"; color: var(--cyan); margin-right: .65rem; }

.approach { color: white; background: var(--navy-900); position: relative; overflow: hidden; }
.approach::before { content: ""; position: absolute; width: 560px; height: 560px; border: 1px solid rgba(39,197,232,.16); border-radius: 50%; left: -260px; top: -150px; box-shadow: 0 0 0 80px rgba(39,197,232,.035), 0 0 0 160px rgba(39,197,232,.02); }
.approach-grid { position: relative; display: grid; grid-template-columns: .8fr 1.2fr; gap: 7rem; align-items: start; }
.approach-copy { position: sticky; top: 130px; }
.approach-copy > p:not(.eyebrow) { color: #b7cbd7; font-size: 1.1rem; }
.text-link { display: inline-flex; gap: 1.2rem; align-items: center; margin-top: 1rem; color: var(--cyan); font-weight: 700; border-bottom: 1px solid rgba(39,197,232,.45); padding-bottom: .35rem; }
.process-list { list-style: none; margin: 0; padding: 0; }
.process-list li { display: grid; grid-template-columns: 70px 1fr; gap: 1.2rem; padding: 2.2rem 0; border-top: 1px solid rgba(255,255,255,.18); }
.process-list li:last-child { border-bottom: 1px solid rgba(255,255,255,.18); }
.process-list > li > span { color: var(--cyan); font: 700 .8rem/1.4 "Manrope", sans-serif; letter-spacing: .1em; }
.process-list h3 { font-size: 1.65rem; }
.process-list p { margin: 0; color: #b7cbd7; max-width: 560px; }

.about { background: var(--cloud); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6rem; align-items: center; }
.about-panel { min-height: 470px; padding: 3rem; display: flex; flex-direction: column; justify-content: space-between; color: white; border-radius: var(--radius); background: linear-gradient(145deg, #0e3956, #061b2d 70%); box-shadow: var(--shadow); position: relative; overflow: hidden; }
.about-panel::after { content: ""; position: absolute; width: 330px; height: 330px; right: -105px; bottom: -120px; border: 54px solid rgba(39,197,232,.16); border-radius: 50%; }
.about-panel h2 { position: relative; z-index: 1; max-width: 520px; margin: auto 0 0; }
.mini-label { font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; color: var(--cyan-soft); font-weight: 700; }
.about-copy > p { color: var(--slate); font-size: 1.18rem; margin-bottom: 2.2rem; }
.values { display: grid; gap: 1.5rem; }
.values div { display: grid; gap: .3rem; padding-left: 1.2rem; border-left: 3px solid var(--cyan); }
.values strong { font: 700 1.05rem/1.4 "Manrope", sans-serif; }
.values span { color: var(--slate); }

.fit-section { padding: 5rem 0; }
.fit-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 7rem; }
.fit-grid h2 { margin: 0; }
.check-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.check-list p { margin: 0; padding: 1.25rem 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
.check-list span { display: inline-grid; place-items: center; width: 28px; height: 28px; margin-right: .8rem; background: #dff8fc; color: #087894; border-radius: 50%; font-weight: 700; }

.faq { background: #f8fafb; border-top: 1px solid var(--line); }
.faq-grid { display: grid; grid-template-columns: .78fr 1.22fr; gap: 7rem; }
.faq-intro { position: sticky; top: 130px; align-self: start; }
.faq-intro p:last-child { color: var(--slate); }
.accordion { border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary { list-style: none; cursor: pointer; padding: 1.7rem 0; display: flex; justify-content: space-between; gap: 1rem; font: 700 1.1rem/1.4 "Manrope", sans-serif; }
summary::-webkit-details-marker { display: none; }
summary span { color: var(--blue); font-size: 1.4rem; transition: transform .2s ease; }
details[open] summary span { transform: rotate(45deg); }
details p { color: var(--slate); margin: -.5rem 0 1.8rem; max-width: 670px; }

.cta-section { padding: 0 0 7rem; background: #f8fafb; }
.cta-card { padding: 3.7rem 4rem; border-radius: var(--radius); background: linear-gradient(115deg, #0b3450 0%, #071b2d 68%); color: white; display: flex; align-items: center; justify-content: space-between; gap: 3rem; box-shadow: var(--shadow); }
.cta-card h2 { margin-bottom: .7rem; }
.cta-card p:last-child { margin: 0; color: #bcd0dc; }
.button-light { flex-shrink: 0; background: white; color: var(--navy-950); }
.button-light:hover { background: var(--cyan); }

.site-footer { background: var(--navy-950); color: white; padding: 4.5rem 0 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr .7fr 1fr; gap: 5rem; }
.footer-brand { margin-bottom: 1.4rem; }
.footer-grid > div:first-child > p { color: #94acba; max-width: 420px; }
.footer-links { display: flex; flex-direction: column; align-items: flex-start; gap: .7rem; }
.footer-links > span { color: var(--cyan); font-size: .75rem; text-transform: uppercase; letter-spacing: .14em; font-weight: 700; margin-bottom: .5rem; }
.footer-links a, .footer-links p { color: #bed0da; margin: 0; overflow-wrap: anywhere; }
.footer-links a:hover { color: white; }
.footer-bottom { margin-top: 4rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.13); display: flex; justify-content: space-between; color: #7f98a7; font-size: .82rem; }

:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }

@media (max-width: 960px) {
  .site-nav { position: fixed; inset: 88px 0 auto 0; min-height: calc(100vh - 88px); padding: 2rem 24px; flex-direction: column; align-items: stretch; gap: .3rem; background: var(--navy-950); transform: translateX(100%); transition: transform .25s ease; }
  .site-nav.open { transform: translateX(0); }
  .site-nav a { font-size: 1.25rem; padding: 1rem 0; border-bottom: 1px solid rgba(255,255,255,.12); }
  .site-nav .nav-cta { margin-top: 1rem; padding: 1rem 1.2rem; text-align: center; border: 0; }
  .menu-toggle { display: block; }
  .hero { min-height: 820px; }
  .hero-content { padding-top: 10rem; }
  .split-heading, .about-grid, .fit-grid, .faq-grid, .approach-grid { grid-template-columns: 1fr; gap: 3rem; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-card { grid-row: auto; min-height: 430px; }
  .approach-copy, .faq-intro { position: static; }
  .footer-grid { grid-template-columns: 1.4fr .7fr; }
  .footer-grid > div:last-child { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  .shell { width: min(100% - 32px, 1180px); }
  .section { padding: 5rem 0; }
  .nav-wrap { min-height: 76px; }
  .site-nav { top: 76px; }
  .brand-mark { width: 38px; height: 38px; }
  .brand-copy strong { font-size: .9rem; }
  .hero { min-height: 780px; }
  .hero-media { background-position: 64% center; opacity: .68; }
  .hero-shade { background: linear-gradient(90deg, rgba(3,15,26,.97), rgba(3,15,26,.66)), linear-gradient(0deg, rgba(3,15,26,.95), transparent 60%); }
  .hero-content { padding: 8.5rem 0 2.5rem; }
  h1 { font-size: clamp(2.65rem, 13vw, 4rem); }
  h2 { font-size: clamp(2rem, 9vw, 3rem); }
  .hero-actions { display: grid; }
  .button { width: 100%; }
  .hero-proof { grid-template-columns: 1fr; gap: .85rem; margin-top: 3rem; }
  .hero-proof div, .hero-proof div + div { border-left: 0; padding: .75rem 0; border-bottom: 1px solid rgba(255,255,255,.15); }
  .trust-row { padding: 1.5rem 0; display: block; }
  .trust-row > p { white-space: normal; margin-bottom: 1rem; }
  .industry-list { justify-content: flex-start; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card, .feature-card { min-height: auto; padding: 1.6rem; }
  .feature-card { min-height: 430px; }
  .card-top { margin-bottom: 3rem; }
  .about-panel { min-height: 390px; padding: 2rem; }
  .process-list li { grid-template-columns: 46px 1fr; }
  .cta-card { padding: 2.3rem 1.5rem; display: block; }
  .cta-card .button { margin-top: 2rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-grid > div:last-child { grid-column: auto; }
  .footer-bottom { display: grid; gap: .5rem; }
}

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

/* Contact section with embedded Microsoft Form */
.contact-section { padding: 0 0 7rem; scroll-margin-top: 90px; }
.contact-card { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 3rem; align-items: start; padding: 3.5rem; border-radius: var(--radius); background: linear-gradient(115deg, #0b3450 0%, #071b2d 68%); color: white; box-shadow: var(--shadow); }
.contact-copy { position: sticky; top: 110px; }
.contact-copy h2 { margin-bottom: .9rem; }
.contact-copy > p { color: #bcd0dc; }
.contact-steps { list-style: none; margin: 2rem 0; padding: 0; display: grid; gap: 1.1rem; }
.contact-steps li { display: flex; gap: 1rem; align-items: flex-start; }
.contact-steps li > span { flex: none; width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid rgba(156, 236, 255, .35); border-radius: 10px; color: var(--cyan-soft); font: 700 .78rem "Manrope", Arial, sans-serif; }
.contact-steps strong { display: block; font-family: "Manrope", Arial, sans-serif; }
.contact-steps small { display: block; color: #9fb7c6; font-size: .9rem; }
.contact-alt { margin: 0; font-size: .95rem; color: #bcd0dc; }
.contact-alt a { color: var(--cyan-soft); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.form-frame { background: white; border-radius: 14px; padding: .5rem; box-shadow: 0 18px 50px rgba(0, 0, 0, .25); }
.form-frame iframe { display: block; width: 100%; height: 900px; border: 0; border-radius: 10px; background: white; }
.form-fallback { margin: .6rem .6rem .3rem; font-size: .85rem; color: var(--slate); }
.form-fallback a { color: var(--blue); text-decoration: underline; }
@media (max-width: 960px) {
  .contact-card { grid-template-columns: 1fr; gap: 2rem; padding: 2.5rem; }
  .contact-copy { position: static; }
  .contact-steps { grid-template-columns: repeat(3, 1fr); }
  .contact-steps li { flex-direction: column; gap: .5rem; }
}
@media (max-width: 680px) {
  .contact-card { padding: 1.75rem 1rem; border-radius: 14px; }
  .contact-steps { grid-template-columns: 1fr; }
  .contact-steps li { flex-direction: row; }
  .form-frame { padding: .25rem; }
  .form-frame iframe { height: 1050px; }
}
