/* =========================================================
   TechStratus — styles.css
   Brand: blues from the logo + cyan accent
   ========================================================= */

:root {
  /* Official TechStratus palette — see "Brand & Marketing Overview" */
  --blue:        #2070af;   /* TechStratus Blue — primary: headings, buttons, links, CTAs */
  --blue-dark:   #1a5c92;   /* hover / deeper */
  --sky:         #78c9db;   /* Sky Blue — highlights & accents */
  --cyan:        #78c9db;   /* alias for --sky (kept for existing rules) */
  --ink:         #355063;   /* TechStratus Slate — headings (bold weight adds contrast) */
  --slate:       #355063;   /* Slate — body text & dark areas */
  --muted:       #6b8190;   /* lighter slate — secondary text */
  --bg:          #ffffff;
  --bg-alt:      #eef5f9;   /* very light sky tint for alt sections */
  --border:      #dbe6ee;
  --white:       #ffffff;

  --radius:      14px;
  --radius-sm:   8px;
  --shadow:      0 1px 3px rgba(53, 80, 99, .08), 0 8px 24px rgba(53, 80, 99, .07);
  --shadow-lg:   0 12px 40px rgba(32, 112, 175, .20);
  --container:   1180px;
  --gap:         clamp(1.5rem, 3vw, 2.5rem);

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--slate);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg, video { display: block; max-width: 100%; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2.1rem, 5vw, 3.25rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); letter-spacing: -.01em; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.05rem; color: var(--blue); font-weight: 600; }
p  { margin: 0 0 1rem; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 clamp(1.2rem, 4vw, 2rem); }
.container-narrow { max-width: 820px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 1000;
  background: var(--blue); color: #fff; padding: .75rem 1.25rem; border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: inherit; font-weight: 600; font-size: 1rem; line-height: 1;
  padding: .9rem 1.75rem; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .15s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.btn-sm { padding: .6rem 1.2rem; font-size: .95rem; }
.btn-primary { background: linear-gradient(135deg, var(--sky), var(--blue)); background-origin: border-box; color: #fff; border-color: transparent; text-shadow: 0 1px 1px rgba(0,0,0,.15); }
.btn-primary:hover { background: linear-gradient(135deg, var(--blue), var(--blue-dark)); background-origin: border-box; border-color: transparent; color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-ghost { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn-ghost:hover { background: var(--blue); color: #fff; transform: translateY(-2px); }

.link-arrow { font-weight: 600; display: inline-flex; align-items: center; gap: .4rem; margin-top: .5rem; }
.link-arrow span { transition: transform .2s ease; }
.link-arrow:hover span { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.9); backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: .6rem; color: var(--ink); font-weight: 800; }
.brand:hover { color: var(--ink); }
.brand-logo { width: 42px; height: 42px; object-fit: contain; }
.brand-name { font-size: 1.35rem; letter-spacing: -.02em; }

.nav-menu { list-style: none; display: flex; align-items: center; gap: 1.75rem; margin: 0; padding: 0; }
.nav-menu a { color: var(--slate); font-weight: 600; font-size: .98rem; }
.nav-menu a:hover { color: var(--blue); }
.nav-cta a { color: #fff; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 88vh; display: flex; align-items: center;
  color: var(--slate); overflow: hidden; text-align: center;
}
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero-overlay {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(160deg, rgba(255,255,255,.9), rgba(255,255,255,.78));
}
.hero-content { max-width: 820px; margin: 0 auto; padding-top: 4rem; padding-bottom: 4rem; }
.hero h1 { color: var(--ink); margin-bottom: 1rem; }
.hero h1 .accent { color: var(--blue); }
.hero-sub { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--slate); max-width: 620px; margin: 0 auto 2rem; }
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.pill {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(32,112,175,.1); border: 1px solid rgba(32,112,175,.28);
  color: var(--blue); font-weight: 600; font-size: .9rem; padding: .5rem 1.1rem; border-radius: 999px; margin-bottom: 1.5rem;
}

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto clamp(2rem, 4vw, 3.5rem); }
.section-head p { font-size: 1.15rem; color: var(--muted); margin: 0; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; font-weight: 700; color: var(--blue); margin: 1.25rem 0 .5rem; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: var(--gap); align-items: center; }
.about-media { display: flex; justify-content: center; }
.about-media img { width: 100%; height: auto; border-radius: var(--radius); box-shadow: 0 18px 40px rgba(32,112,175,.18); transition: transform .25s ease, box-shadow .25s ease; }
.about-media img:hover { transform: translateY(-6px); box-shadow: 0 26px 55px rgba(32,112,175,.3); }
.area-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.area-list li {
  background: var(--white); border: 1px solid var(--border); color: var(--slate);
  font-weight: 600; font-size: .95rem; padding: .4rem 1rem; border-radius: 999px;
}
.section-alt .area-list li { background: #fff; }

/* ---------- Cards ---------- */
.cards { display: grid; gap: var(--gap); }
.cards-2 { grid-template-columns: repeat(2, 1fr); }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--white); color: var(--slate); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 2.25rem 2rem; box-shadow: var(--shadow); display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card h3 { margin-bottom: .15rem; }
.card h4 { margin-bottom: .9rem; }
.card-icon {
  width: 64px; height: 64px;
  background: linear-gradient(135deg, var(--blue), var(--sky));
  color: #fff; display: grid; place-items: center; margin-bottom: 1.25rem;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  filter: drop-shadow(0 8px 16px rgba(32,112,175,.28));
}
.card .link-arrow { margin-top: auto; padding-top: 1rem; }

.checklist { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .6rem; }
.checklist li { position: relative; padding-left: 1.9rem; color: var(--slate); }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 1.2rem; height: 1.2rem;
  background: var(--cyan); border-radius: 50%;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9 16.2l-3.5-3.5L4 14.2 9 19.2 20 8.2l-1.5-1.5z'/%3E%3C/svg%3E") center / 80% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9 16.2l-3.5-3.5L4 14.2 9 19.2 20 8.2l-1.5-1.5z'/%3E%3C/svg%3E") center / 80% no-repeat;
}
.muted-line { color: var(--muted); font-style: italic; margin-top: .5rem; }

/* ---------- Steps ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); counter-reset: step; }
.step { text-align: center; }
.step-icon {
  width: 84px; height: 84px; margin: 0 auto 1rem;
  background: linear-gradient(135deg, var(--blue), var(--sky)); color: #fff; display: grid; place-items: center;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  filter: drop-shadow(0 10px 22px rgba(32,112,175,.32));
}
.step-num { display: inline-block; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--blue); margin-bottom: .25rem; }
.step h3 { font-size: 1.15rem; margin-bottom: .35rem; }
.step p { color: var(--muted); margin: 0; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 1rem; }
.faq-item { background: var(--white); color: var(--slate); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
.faq-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.faq-item summary {
  cursor: pointer; list-style: none; padding: 1.25rem 1.5rem; font-weight: 600; color: var(--ink); font-size: 1.08rem;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.6rem; font-weight: 400; color: var(--blue); transition: transform .2s ease; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-body { padding: 0 1.5rem 1.4rem; color: var(--slate); }
.faq-body ul { margin: .5rem 0; padding-left: 1.2rem; }
.faq-body p:last-child { margin-bottom: 0; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: var(--gap); align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 1rem; }
.contact-list li { display: flex; align-items: center; gap: .9rem; font-size: 1.05rem; }
.contact-ico { flex: 0 0 46px; width: 46px; height: 46px; background: var(--blue); color: #fff; display: grid; place-items: center; clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%); }
.contact-list a { color: var(--slate); font-weight: 600; }
.contact-list a:hover { color: var(--blue); }

.contact-form-wrap { background: var(--white); color: var(--slate); border: 1px solid var(--border); border-radius: var(--radius); padding: 2.25rem; box-shadow: var(--shadow); }
.contact-form { display: grid; gap: 1.1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form-field { display: grid; gap: .35rem; }
.form-field label { font-size: .9rem; font-weight: 600; color: var(--ink); }
.req { color: var(--blue); }
.contact-form input, .contact-form textarea {
  font-family: inherit; font-size: 1rem; color: var(--slate);
  padding: .8rem 1rem; border: 1px solid var(--border); border-radius: var(--radius-sm); background: #fff; width: 100%;
}
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px rgba(32,112,175,.15); }
.contact-form textarea { resize: vertical; }
.form-note { margin: 0; font-size: .95rem; font-weight: 600; min-height: 1.2em; }
.form-note.ok { color: #15803d; }
.form-note.err { color: #b91c1c; }

/* ---------- Footer ---------- */
.site-footer { background: var(--blue); color: #fff; padding: 3rem 0; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 1.25rem; text-align: center; }
.footer-brand img { width: 96px; height: auto; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem; }
.footer-nav a { color: rgba(255,255,255,.92); font-weight: 600; }
.footer-nav a:hover { color: #fff; text-decoration: underline; }
.footer-copy { margin: 0; color: rgba(255,255,255,.8); font-size: .92rem; }

/* ---------- Scroll-to-top ---------- */
.to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 90;
  width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(135deg, var(--sky), var(--blue)); color: #fff;
  display: grid; place-items: center; box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: .25s;
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: linear-gradient(135deg, var(--blue), var(--blue-dark)); color: #fff; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .cards-2, .cards-3 { grid-template-columns: 1fr; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-media { order: -1; }
  .steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--border);
    padding: .5rem 1.2rem 1.2rem; box-shadow: var(--shadow);
    display: none;
  }
  .nav-menu.open { display: flex; }
  .nav-menu li { padding: .35rem 0; }
  .nav-menu a { display: block; padding: .6rem 0; }
  .nav-cta { padding-top: .5rem; }
  .nav-cta a { display: inline-flex; }
}

@media (max-width: 540px) {
  .steps { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero { min-height: 92vh; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; }
}

/* =========================================================
   Service groups, feature card, Why section, AI note
   ========================================================= */

/* ---- Service groups ---- */
.service-group { margin-top: clamp(4rem, 8vw, 7rem); }
.service-group:first-of-type { margin-top: 0; }
.group-head { text-align: center; margin-bottom: 2.75rem; }
.group-label {
  display: inline-block; text-transform: uppercase; letter-spacing: .15em;
  font-size: .9rem; font-weight: 800; color: var(--blue);
  background: rgba(32,112,175,.1); padding: .45rem 1.25rem; border-radius: 999px; margin-bottom: 1rem;
}
.group-title {
  font-size: clamp(1.7rem, 3.2vw, 2.2rem); font-weight: 800; color: var(--ink);
  margin: 0; padding-bottom: .7rem; position: relative;
}
.group-title::after {
  content: ""; display: block; width: 64px; height: 4px; border-radius: 2px;
  background: var(--sky); margin: .7rem auto 0;
}

/* ---- Card title + tagline (higher specificity than base h4) ---- */
.card .card-title { font-size: 1.3rem; color: var(--ink); margin: 0 0 .15rem; }
.card .card-tagline { color: var(--blue); font-weight: 600; font-size: 1.02rem; margin: 0 0 .9rem; }

/* ---- Business feature card (single, wide) ---- */
.card-feature { display: grid; grid-template-columns: 270px 1fr; gap: 2.25rem; align-items: start; max-width: 980px; margin: 0 auto; }
.card-feature .card-icon { width: 70px; height: 70px; }
.card-feature-body p:first-child { margin-top: 0; }
.checklist-2col { grid-template-columns: repeat(2, 1fr); }

/* ---- Responsible-AI note ---- */
.ai-note {
  display: flex; gap: .8rem; align-items: flex-start; max-width: 920px; margin: 2.25rem auto 0;
  padding: 1.1rem 1.4rem; background: rgba(120,201,219,.12);
  border: 1px solid rgba(32,112,175,.16); border-radius: var(--radius);
  color: var(--slate); font-size: .98rem; line-height: 1.55;
}
.ai-note-icon { flex: 0 0 auto; color: var(--blue); margin-top: 1px; }
.ai-note a { font-weight: 600; white-space: nowrap; }

/* ---- Why TechStratus (commitment cards) ---- */
.commitments {
  list-style: none; padding: 0; margin: 0 auto; max-width: 1040px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem;
}
.commitment {
  background: var(--white); color: var(--slate);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 2rem 1.75rem; box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.commitment:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.commitment-icon {
  display: grid; place-items: center; width: 58px; height: 58px; margin-bottom: 1.1rem;
  background: linear-gradient(135deg, var(--blue), var(--sky)); color: #fff;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  filter: drop-shadow(0 8px 16px rgba(32,112,175,.25));
}
.commitment h3 { font-size: 1.18rem; color: var(--ink); margin: 0 0 .4rem; }
.commitment p { color: var(--muted); margin: 0; font-size: .97rem; line-height: 1.55; }
.brand-promise {
  text-align: center; max-width: 780px; margin: clamp(2.5rem, 5vw, 3.5rem) auto 0;
  font-size: clamp(1.2rem, 2.4vw, 1.6rem); font-weight: 700; color: var(--blue); line-height: 1.4;
}

/* ---- Footer tagline ---- */
.footer-tagline { margin: 0; color: #fff; font-weight: 600; font-size: 1.05rem; max-width: 480px; line-height: 1.5; }

/* ---- Responsive (new components) ---- */
@media (max-width: 900px) {
  .commitments { grid-template-columns: repeat(2, 1fr); }
  .card-feature { grid-template-columns: 1fr; gap: 1.25rem; }
  .card-feature-aside { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
  .card-feature-aside .card-icon { margin-bottom: 0; }
}
@media (max-width: 540px) {
  .commitments { grid-template-columns: 1fr; gap: 1.5rem; }
  .checklist-2col { grid-template-columns: 1fr; }
  .ai-note { flex-direction: column; }
  .ai-note a { white-space: normal; }
}

/* =========================================================
   Alternating blue sections (white -> TechStratus Blue)
   Section order: About(white) · Services(blue) · Why(white)
   · How It Works(blue) · FAQ(white) · Contact(blue)
   ========================================================= */
.section-blue { background: var(--blue); color: #fff; }
.section-blue .section-head h2 { color: #fff; }
.section-blue .section-head p { color: rgba(255,255,255,.9); }

/* Service-group headings on blue */
.section-blue .group-label { background: rgba(255,255,255,.16); color: #fff; }
.section-blue .group-title { color: #fff; }

/* Responsible-AI note on blue */
.section-blue .ai-note { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.3); color: rgba(255,255,255,.95); }
.section-blue .ai-note-icon { color: #fff; }
.section-blue .ai-note a { color: #fff; text-decoration: underline; }

/* How It Works on blue — white hexagons with blue icons */
.section-blue .step-icon { background: #fff; color: var(--blue); filter: drop-shadow(0 10px 22px rgba(0,0,0,.18)); }
.section-blue .step-num { color: var(--sky); }
.section-blue .step h3 { color: #fff; }
.section-blue .step p { color: rgba(255,255,255,.85); }

/* Contact on blue (the form card stays white) */
.section-blue .contact-info h2 { color: #fff; }
.section-blue .contact-info > p { color: rgba(255,255,255,.9); }
.section-blue .contact-list li { color: #fff; }
.section-blue .contact-list a { color: #fff; }
.section-blue .contact-list a:hover { color: var(--sky); }
.section-blue .contact-ico { background: #fff; color: var(--blue); }

/* White hover shadow so the card lift reads against the blue background */
.section-blue .card:hover,
.section-blue .faq-item:hover { box-shadow: 0 16px 40px rgba(255,255,255,.5); }
