/* ==========================================================================
   Sulutions Tech - Kyndryl-inspired flat editorial enterprise system
   Canvas: white | Ink: #141414 | Accent: #FF462D | Sharp edges, thin rules
   ========================================================================== */

:root {
  --ink: #141414;
  --ink-soft: #454440;
  --ink-muted: #6E6B66;
  --paper: #FFFFFF;
  --paper-tint: #F5F4F1;
  --paper-tint-2: #F8F7F5;
  --line: #E5E3DE;
  --line-strong: #141414;
  --accent: #FF462D;
  --accent-deep: #D93A24;
  --dark: #0E0E0E;
  --on-dark: #FFFFFF;
  --on-dark-soft: rgba(255, 255, 255, 0.75);
  --on-dark-muted: rgba(255, 255, 255, 0.55);
  --on-dark-line: rgba(255, 255, 255, 0.2);
  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Roboto", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Roboto Mono", "SFMono-Regular", Consolas, monospace;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --header-h: 72px;
}

/* ---- Reset ---- */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

ul,
ol {
  list-style: none;
}

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.1;
}

::selection {
  background: var(--accent);
  color: #fff;
}

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

[id] {
  scroll-margin-top: calc(var(--header-h) + 24px);
}

/* ---- Layout primitives ---- */

.container {
  max-width: 1320px;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 3rem);
}

.section {
  padding-block: clamp(4.5rem, 9vw, 7.5rem);
}

.section-tint {
  background: var(--paper-tint);
}

.section-head {
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  max-width: 46rem;
}

.section-head h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  letter-spacing: -0.02em;
}

.mono-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* ---- Buttons & links ---- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.25s var(--ease-out), color 0.25s var(--ease-out),
    border-color 0.25s var(--ease-out), transform 0.15s var(--ease-out);
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--ink);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent);
}

.btn-outline {
  border-color: var(--ink);
  color: var(--ink);
  background: transparent;
}

.btn-outline:hover {
  background: var(--ink);
  color: #fff;
}

.btn-outline-light {
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
  background: transparent;
}

.btn-outline-light:hover {
  background: #fff;
  color: var(--dark);
}

.btn-wide {
  width: 100%;
}

.text-link {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
  transition: color 0.25s var(--ease-out), border-color 0.25s var(--ease-out);
}

.text-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.as-button {
  background: none;
  border: none;
  border-bottom: 1px solid var(--ink);
  cursor: pointer;
  padding: 0 0 2px;
}

.as-button:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* ---- Skip link ---- */

.skip-link {
  position: absolute;
  top: -48px;
  left: 1rem;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 0.7rem 1.1rem;
  font-size: 0.9rem;
  text-decoration: none;
  transition: top 0.2s var(--ease-out);
}

.skip-link:focus-visible {
  top: 0;
}

/* ---- Header ---- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--ink);
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.brand-mark {
  flex: none;
}

.site-nav ul {
  display: flex;
  gap: 1.9rem;
}

.site-nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  padding: 0.4rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s var(--ease-out), color 0.2s var(--ease-out);
}

.site-nav a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.header-cta {
  margin-left: auto;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: none;
  color: var(--ink);
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle .icon-close {
  display: none;
}

.site-header.menu-open .nav-toggle .icon-open {
  display: none;
}

.site-header.menu-open .nav-toggle .icon-close {
  display: block;
}

.mobile-menu {
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.mobile-menu[hidden] {
  display: none;
}

.mobile-menu ul {
  padding: 0.75rem clamp(1.25rem, 4vw, 3rem) 1.75rem;
}

.mobile-menu a {
  display: block;
  padding: 0.9rem 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

.mobile-menu .btn {
  margin-top: 1.25rem;
  border-bottom: none;
}

/* ---- Hero ---- */

.hero {
  padding-block: clamp(3rem, 6.5vw, 5.5rem) clamp(3.5rem, 7vw, 6rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
}

.hero-title {
  font-size: clamp(2.4rem, 4.1vw, 3.7rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.accent-dot {
  color: var(--accent);
}

.hero-sub {
  margin-top: 1.4rem;
  font-size: 1.15rem;
  max-width: 34rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2.2rem;
}

.hero-media img {
  width: 100%;
  height: clamp(400px, 56vh, 560px);
  object-fit: cover;
}

/* Hero load-in (JS present, motion allowed) */

.js .hero-copy > * {
  opacity: 0;
  transform: translateY(22px);
  animation: rise 0.8s var(--ease-out) forwards;
}

.js .hero-copy > *:nth-child(1) { animation-delay: 0.05s; }
.js .hero-copy > *:nth-child(2) { animation-delay: 0.15s; }
.js .hero-copy > *:nth-child(3) { animation-delay: 0.25s; }

.js .hero-media {
  opacity: 0;
  animation: rise 0.9s var(--ease-out) 0.2s forwards;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---- Industries strip ---- */

.industries {
  border-block: 1px solid var(--line);
  padding-block: 1.6rem;
}

.industries-inner {
  display: flex;
  align-items: baseline;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.industries-label {
  flex: none;
}

.industries-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 2.2rem;
}

.industries-list li {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.98rem;
  color: var(--ink-muted);
}

/* ---- Services index ---- */

.section-head .mono-label {
  display: block;
  margin-bottom: 0.9rem;
}

.service-index {
  border-bottom: 1px solid var(--line);
}

.service-row {
  display: grid;
  grid-template-columns: 3.75rem 1fr 2.5rem;
  align-items: center;
  gap: 1.25rem;
  padding: 1.85rem clamp(0.75rem, 2vw, 1.5rem);
  border-top: 1px solid var(--line);
  text-decoration: none;
  transition: background-color 0.25s var(--ease-out);
}

.service-row:hover {
  background: var(--paper-tint-2);
}

.service-num {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--ink-muted);
}

.service-title {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  color: var(--ink);
  letter-spacing: -0.01em;
  transition: color 0.25s var(--ease-out);
}

.service-row:hover .service-title {
  color: var(--accent);
}

.service-desc {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.98rem;
  color: var(--ink-muted);
  max-width: 46rem;
}

.service-arrow {
  color: var(--ink);
  transition: transform 0.25s var(--ease-out), color 0.25s var(--ease-out);
}

.service-row:hover .service-arrow {
  transform: translateX(6px);
  color: var(--accent);
}

/* ---- Split sections (Consult / Apps) ---- */

.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

.split-media img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.split-copy h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  letter-spacing: -0.02em;
}

.split-copy > p {
  margin-top: 1.3rem;
  max-width: 36rem;
}

.value-list {
  margin-top: 2rem;
  border-bottom: 1px solid var(--line);
}

.value-list li {
  border-top: 1px solid var(--line);
  padding: 1.15rem 0;
}

.value-list h3 {
  font-size: 1.05rem;
}

.value-list p {
  margin-top: 0.25rem;
  font-size: 0.95rem;
  color: var(--ink-muted);
}

.split-copy .text-link {
  margin-top: 2rem;
}

/* ---- Dark band (Apps) ---- */

.section-dark {
  background: var(--dark);
  color: var(--on-dark-soft);
}

.section-dark h2 {
  color: #fff;
}

.section-dark .split-copy > p {
  color: var(--on-dark-soft);
}

.cap-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem 2.5rem;
  margin-top: 2.25rem;
}

.cap-item {
  border-top: 1px solid var(--on-dark-line);
  padding-top: 1rem;
}

.cap-item h3 {
  color: #fff;
  font-size: 1.02rem;
}

.cap-item p {
  margin-top: 0.3rem;
  font-size: 0.92rem;
  color: var(--on-dark-muted);
}

.section-dark .btn-outline-light {
  margin-top: 2.4rem;
}

/* ---- Ops cards (Cloud / Security) ---- */

.ops-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 3rem);
}

.ops-media img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.ops-body {
  padding-top: 1.4rem;
}

.ops-body h3 {
  font-size: 1.45rem;
  letter-spacing: -0.01em;
}

.ops-body p {
  margin-top: 0.5rem;
  max-width: 30rem;
}

.ops-body .text-link {
  margin-top: 1.1rem;
}

/* ---- Process ---- */

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
  counter-reset: step;
}

.process-step {
  border-top: 2px solid var(--ink);
  padding-top: 1.2rem;
}

.process-step h3 {
  font-size: 1.3rem;
  letter-spacing: -0.01em;
}

.process-step p {
  margin-top: 0.5rem;
  font-size: 0.95rem;
}

/* ---- FAQ ---- */

.faq-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: start;
}

.faq-intro h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  letter-spacing: -0.02em;
  position: sticky;
  top: calc(var(--header-h) + 2rem);
}

.faq-list {
  border-bottom: 1px solid var(--line);
}

.faq-item {
  border-top: 1px solid var(--line);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.35rem 0.25rem 1.35rem 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.12rem;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  transition: color 0.2s var(--ease-out);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary:hover {
  color: var(--accent);
}

.faq-icon {
  flex: none;
  transition: transform 0.25s var(--ease-out);
}

.faq-item[open] .faq-icon {
  transform: rotate(45deg);
}

.faq-body {
  padding: 0 2.5rem 1.5rem 0;
}

.faq-body p {
  max-width: 56ch;
}

/* ---- Contact ---- */

.contact-grid {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

.contact-copy h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  letter-spacing: -0.02em;
}

.contact-copy > p {
  margin-top: 1.2rem;
  max-width: 28rem;
}

.contact-mail {
  display: inline-block;
  margin-top: 1.8rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 2px;
  transition: color 0.25s var(--ease-out);
}

.contact-mail:hover {
  color: var(--accent);
}

.contact-form-wrap {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: clamp(1.5rem, 3vw, 2.5rem);
}

.field {
  margin-bottom: 1.35rem;
}

.field label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 0.45rem;
}

.req {
  color: var(--accent);
}

.field input,
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid #D8D6D1;
  border-radius: 0;
  padding: 0.75rem 0.9rem;
  transition: border-color 0.2s var(--ease-out);
}

.field textarea {
  resize: vertical;
  min-height: 7rem;
}

.field input:hover,
.field textarea:hover {
  border-color: var(--ink-muted);
}

.field input:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -1px;
}

.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: var(--accent-deep);
}

.field-error {
  margin-top: 0.45rem;
  font-size: 0.85rem;
  color: #B0301C;
}

.form-note {
  margin-top: 0.9rem;
  font-size: 0.88rem;
  color: var(--ink-muted);
}

.form-success {
  border: 1px solid var(--ink);
  padding: clamp(1.5rem, 3vw, 2.25rem);
}

.form-success h3 {
  font-size: 1.4rem;
}

.form-success p {
  margin-top: 0.6rem;
}

.form-success .as-button {
  margin-top: 1.4rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
}

/* ---- Footer ---- */

.site-footer {
  background: var(--dark);
  color: var(--on-dark-soft);
  padding-top: clamp(3.5rem, 6vw, 5rem);
}

.footer-grid {
  display: grid;
  grid-template-columns: 4fr 2.5fr 2fr 2.5fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
}

.brand-light {
  color: #fff;
}

.footer-brand p {
  margin-top: 1.1rem;
  font-size: 0.95rem;
  color: var(--on-dark-muted);
  max-width: 20rem;
}

.footer-col h3 {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
  margin-bottom: 1rem;
}

.footer-col ul {
  display: grid;
  gap: 0.6rem;
}

.footer-col a {
  color: var(--on-dark-soft);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s var(--ease-out);
}

.footer-col a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  border-top: 1px solid var(--on-dark-line);
  padding-block: 1.5rem;
  font-size: 0.85rem;
  color: var(--on-dark-muted);
}

.footer-legal {
  display: flex;
  gap: 1.5rem;
}

.footer-legal a {
  color: var(--on-dark-muted);
  text-decoration: none;
}

.footer-legal a:hover {
  color: #fff;
}

/* ---- Scroll reveal ---- */

.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.js .reveal.in-view {
  opacity: 1;
  transform: none;
}

/* ---- Reduced motion ---- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .js .hero-copy > *,
  .js .hero-media,
  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ---- Responsive ---- */

@media (max-width: 1023px) {
  .site-nav,
  .header-cta {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }
}

@media (max-width: 900px) {
  .hero-grid,
  .split-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-media {
    order: 2;
  }

  .hero-media img {
    height: clamp(280px, 45vw, 420px);
  }

  .ops-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .faq-grid {
    grid-template-columns: 1fr;
  }

  .faq-intro h2 {
    position: static;
  }

  .process-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .process-grid,
  .cap-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .service-row {
    grid-template-columns: 2.5rem 1fr;
  }

  .service-arrow {
    display: none;
  }

  .service-title {
    font-size: 1.2rem;
  }

  .hero-actions .btn {
    flex: 1 1 auto;
    justify-content: center;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}
