:root {
  --bg: #f7f4ee;
  --bg-soft: #fffdf8;
  --surface: #ffffff;
  --surface-strong: #fef7e8;
  --text: #112228;
  --muted: #4a5e64;
  --primary: #0a8a83;
  --primary-strong: #066a65;
  --accent: #f4a259;
  --line: #d6e0e3;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 12px 30px rgba(17, 34, 40, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Source Sans 3", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 0%, rgba(244, 162, 89, 0.16), transparent 36%),
    radial-gradient(circle at 90% 15%, rgba(10, 138, 131, 0.18), transparent 33%),
    var(--bg);
  line-height: 1.55;
}

h1,
h2,
h3,
h4,
.brand {
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: -0.01em;
  margin: 0 0 0.7rem;
  line-height: 1.2;
}

p {
  margin: 0 0 1rem;
}

a {
  color: var(--primary-strong);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  z-index: 999;
  background: var(--surface);
  color: var(--text);
  padding: 0.55rem 0.85rem;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.container {
  width: min(1120px, calc(100% - 2.4rem));
  margin-inline: auto;
}

.section {
  padding: 4.8rem 0;
}

.section-alt {
  background: linear-gradient(180deg, rgba(255, 253, 248, 0.84), rgba(247, 244, 238, 0.95));
}

.eyebrow {
  display: inline-block;
  margin-bottom: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.82rem;
  color: var(--primary-strong);
}

.section-intro {
  max-width: 74ch;
  color: var(--muted);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(247, 244, 238, 0.9);
  backdrop-filter: blur(9px);
  border-bottom: 1px solid rgba(17, 34, 40, 0.08);
}

.nav-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 0;
}

.brand {
  font-size: 1.32rem;
  color: var(--text);
  text-decoration: none;
  margin-right: auto;
}

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

.site-nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  padding: 0.3rem 0.55rem;
  border-radius: 8px;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: rgba(10, 138, 131, 0.12);
}

.site-nav--legal {
  flex-wrap: wrap;
  justify-content: center;
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 11px;
  padding: 0.48rem;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  margin: 4px 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  border-radius: 999px;
  padding: 0.72rem 1.15rem;
  font-weight: 700;
  font-family: "Space Grotesk", sans-serif;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
}

.btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  box-shadow: 0 8px 18px rgba(10, 138, 131, 0.28);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  box-shadow: 0 12px 22px rgba(10, 138, 131, 0.35);
}

.btn-secondary {
  color: var(--text);
  background: #fff6e9;
  border: 1px solid #f2d3ae;
}

.hero {
  padding-top: 5.4rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 1.5rem;
  align-items: start;
}

.hero h1 {
  font-size: clamp(2rem, 5.2vw, 3.3rem);
}

.hero-copy p {
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.4rem;
}

.hero-points {
  padding: 1.25rem;
  border-radius: var(--radius);
  background: linear-gradient(170deg, var(--surface), #fff8e9 72%);
  border: 1px solid rgba(17, 34, 40, 0.09);
  box-shadow: var(--shadow);
}

.hero-points ul {
  margin: 0;
  padding-left: 1.2rem;
}

.hero-points li {
  margin-bottom: 0.62rem;
}

.services-grid,
.products-grid,
.clients-grid,
.timeline {
  display: grid;
  gap: 1rem;
}

.services-grid {
  grid-template-columns: 1fr;
  margin-top: 1.5rem;
}

.card {
  background: var(--surface);
  border: 1px solid rgba(17, 34, 40, 0.08);
  border-radius: var(--radius);
  padding: 1.28rem;
  box-shadow: 0 8px 22px rgba(17, 34, 40, 0.08);
}

.card ul {
  margin: 0.35rem 0 0;
  padding-left: 1.15rem;
}

.card li {
  margin-bottom: 0.38rem;
}

.list-label {
  margin-top: 0.3rem;
  margin-bottom: 0.25rem;
  font-weight: 700;
}

.service-card h4 {
  margin-top: 1rem;
  margin-bottom: 0.45rem;
  font-size: 1.05rem;
}

.service-card {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.15fr);
  gap: 1.35rem;
  align-items: stretch;
  padding: 1.15rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.service-card:nth-child(even) .service-visual {
  order: 2;
}

.service-card:nth-child(even) .service-content {
  order: 1;
}

.service-card .service-details {
  order: 3;
}

.service-visual {
  position: relative;
  min-height: 260px;
  aspect-ratio: 16 / 10;
  margin: 0;
  padding: 1.2rem;
  border-radius: calc(var(--radius) - 4px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #ffffff;
  isolation: isolate;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.service-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.service-visual::before,
.service-visual::after {
  content: "";
  position: absolute;
  inset: auto;
  border-radius: 999px;
  opacity: 0.8;
  z-index: -1;
}

.service-visual::before {
  width: 220px;
  height: 220px;
  top: -70px;
  right: -35px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0));
}

.service-visual::after {
  width: 180px;
  height: 180px;
  bottom: -70px;
  left: -45px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0));
}

.service-visual-hosting {
  background:
    linear-gradient(150deg, rgba(7, 56, 79, 0.25), rgba(8, 138, 131, 0.1)),
    linear-gradient(135deg, #0f3443 0%, #0a8a83 55%, #46b7a9 100%);
}

.service-visual-consulting {
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0)),
    linear-gradient(135deg, #1c2d5b 0%, #285b8e 48%, #f4a259 100%);
}

.service-visual-legacy {
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0)),
    linear-gradient(135deg, #3b3f52 0%, #176b6a 52%, #87b86a 100%);
}

.service-visual-software {
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0)),
    linear-gradient(135deg, #1e2440 0%, #7c3d91 46%, #f08d49 100%);
}

.service-visual-copy {
  max-width: 24rem;
}

.service-kicker {
  display: inline-block;
  margin-bottom: 0.55rem;
  padding: 0.32rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.service-visual strong {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.3rem, 2vw, 1.75rem);
  line-height: 1.15;
}

.service-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.service-badges span {
  padding: 0.45rem 0.72rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-weight: 600;
  font-size: 0.92rem;
}

.service-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.service-details {
  grid-column: 1 / -1;
}

/* Service Cards - Interactive */
.service-header {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 0.8rem;
  position: relative;
}

.service-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
  opacity: 0.85;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
}

.service-card:hover .service-icon {
  transform: scale(1.15);
  opacity: 1;
}

.service-header h3 {
  flex: 1;
  margin: 0;
  color: var(--text);
  transition: color 0.2s ease;
}

.service-toggle {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  border: 2px solid rgba(10, 138, 131, 0.3);
  background: rgba(10, 138, 131, 0.05);
  color: var(--primary);
  cursor: pointer;
  font-weight: 700;
  font-size: 1.15rem;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  flex-shrink: 0;
}

.service-toggle:hover {
  border-color: var(--primary);
  background: rgba(10, 138, 131, 0.12);
  transform: scale(1.1);
}

.service-toggle .toggle-icon {
  display: inline-block;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.service-card.is-expanded .service-toggle {
  border-color: var(--primary);
  background: rgba(10, 138, 131, 0.15);
  color: var(--primary-strong);
}

.service-card.is-expanded .service-toggle .toggle-icon {
  transform: rotate(45deg);
}

.service-brief {
  color: var(--text);
  margin: 0 0 0.6rem 0;
  font-weight: 500;
  transition: all 0.3s ease;
}

.service-details {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s ease, opacity 0.4s ease 0.05s, padding 0.4s ease;
  padding-top: 0;
  padding-bottom: 0;
}

.service-card.is-expanded .service-details {
  max-height: 1200px;
  opacity: 1;
  margin-top: 0.15rem;
  padding-top: 0.8rem;
  padding-bottom: 0.4rem;
  border-top: 1px solid rgba(10, 138, 131, 0.15);
}

.service-details .list-label {
  margin-top: 0.6rem;
  margin-bottom: 0.3rem;
}

.service-details .list-label:first-child {
  margin-top: 0;
}

.service-subsection {
  margin-top: 1rem;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.service-card:hover::before,
.service-card.is-expanded::before {
  transform: scaleX(1);
}

.service-card:hover {
  border-color: rgba(10, 138, 131, 0.2);
  box-shadow: 0 12px 36px rgba(10, 138, 131, 0.12);
  transform: translateY(-3px);
}

/* Odd expanded: narrow image left, wide text right */
.service-card.is-expanded {
  grid-template-columns: 220px minmax(0, 1fr);
}

/* Even expanded: wide text left, narrow image right (matches closed-state position) */
.service-card:nth-child(even).is-expanded {
  grid-template-columns: minmax(0, 1fr) 220px;
}

.service-card.is-expanded .service-visual {
  min-height: 160px;
  aspect-ratio: 4 / 3;
}

.service-card.is-expanded .service-visual-copy,
.service-card.is-expanded .service-badges {
  display: none;
}

.timeline {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 1.3rem;
}

.step {
  position: relative;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid rgba(17, 34, 40, 0.08);
  padding: 1rem;
}

.step-no {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  background: #ffe6c9;
  color: #7a3e00;
  margin-bottom: 0.6rem;
}

.products-grid {
  margin-top: 1.35rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.clients-grid {
  margin-top: 1.35rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.client-card {
  position: relative;
  border-left: 4px solid rgba(10, 138, 131, 0.35);
}

.client-card h3 {
  margin-bottom: 0.5rem;
}

.client-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.product-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
}

.about-wrap {
  max-width: 78ch;
}

.legal-page .site-header {
  position: sticky;
}

.legal-hero {
  padding-top: 4.2rem;
  padding-bottom: 2.3rem;
}

.legal-intro {
  max-width: 78ch;
}

.legal-content {
  max-width: 78ch;
}

.legal-grid,
.legal-stack {
  display: grid;
  gap: 1rem;
}

.legal-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.legal-stack {
  margin: 1rem 0 2rem;
}

.legal-card h2,
.legal-card h3 {
  margin-bottom: 0.55rem;
}

.legal-card p:last-child {
  margin-bottom: 0;
}

.cta-strip {
  position: relative;
}

.cta-strip::before {
  content: "";
  position: absolute;
  inset: 1rem 0;
  background: linear-gradient(120deg, rgba(10, 138, 131, 0.13), rgba(244, 162, 89, 0.2));
  z-index: -1;
}

.cta-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.4rem;
  background: var(--surface);
  border: 1px solid rgba(17, 34, 40, 0.07);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: var(--shadow);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  align-items: start;
}

.contact-form {
  background: var(--surface);
  border: 1px solid rgba(17, 34, 40, 0.08);
  border-radius: var(--radius);
  padding: 1.35rem;
  box-shadow: 0 10px 24px rgba(17, 34, 40, 0.08);
}

.contact-form label {
  font-weight: 700;
  display: block;
  margin-bottom: 0.35rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid #bfd0d5;
  border-radius: 10px;
  padding: 0.72rem;
  margin-bottom: 0.85rem;
  font: inherit;
  background: #fffefb;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid rgba(10, 138, 131, 0.35);
  border-color: var(--primary);
}

.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-weight: 500;
}

.consent-row input {
  width: auto;
  margin-top: 0.3rem;
}

.contact-form .cf-turnstile {
  margin: 0.4rem 0 0.9rem;
}

.form-note {
  margin-top: 0.9rem;
  padding: 0.7rem;
  border-radius: 10px;
  background: #e8f6f4;
  color: #075753;
  font-weight: 600;
}

.form-note.error {
  background: #fdebec;
  color: #8b1f23;
}

.contact-success {
  background: linear-gradient(160deg, #f4fbf7 0%, #ecf8f2 100%);
  border: 1px solid rgba(12, 124, 66, 0.28);
  border-radius: var(--radius);
  box-shadow: 0 12px 28px rgba(12, 124, 66, 0.16);
  padding: 2rem 1.2rem;
  text-align: center;
  align-self: stretch;
}

.success-checkmark {
  width: 120px;
  margin: 0 auto 1rem;
}

.success-checkmark svg {
  width: 100%;
  display: block;
}

.success-checkmark circle {
  fill: #ffffff;
  stroke: #12984f;
  stroke-width: 4;
}

.success-checkmark path {
  fill: none;
  stroke: #12984f;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 5;
  stroke-dasharray: 42;
  stroke-dashoffset: 42;
  animation: draw-check 0.65s ease forwards 0.2s;
}

.contact-success h3 {
  margin: 0;
  font-size: clamp(1.45rem, 2.3vw, 1.9rem);
}

.contact-success p {
  margin: 0.8rem 0 0;
  color: #1f5d3a;
  font-weight: 600;
}

@keyframes draw-check {
  to {
    stroke-dashoffset: 0;
  }
}

.site-footer {
  border-top: 1px solid rgba(17, 34, 40, 0.14);
  background: #faf9f7;
  padding-top: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: start;
  padding-bottom: 1rem;
}

.footer-links {
  display: grid;
  gap: 0.35rem;
}

.footer-links a {
  text-decoration: none;
  font-weight: 600;
}

.copyright {
  margin: 0;
  text-align: center;
  padding: 0.7rem 0 1.5rem;
  color: var(--muted);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1020px) {
  .nav-cta {
    display: none;
  }

  .timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-card,
  .service-card:nth-child(even),
  .service-card.is-expanded,
  .service-card:nth-child(even).is-expanded {
    grid-template-columns: 1fr;
  }

  .service-card:nth-child(even) .service-visual,
  .service-card:nth-child(even) .service-content {
    order: initial;
  }

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

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

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

@media (max-width: 860px) {
  .menu-toggle {
    display: inline-block;
    margin-left: auto;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 0.2rem);
    left: 1.2rem;
    right: 1.2rem;
    background: var(--surface);
    border: 1px solid rgba(17, 34, 40, 0.08);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
    padding: 0.75rem;
    flex-direction: column;
    gap: 0.4rem;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .site-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .hero-grid,
  .contact-grid,
  .legal-grid,
  .footer-grid,
  .cta-wrap {
    grid-template-columns: 1fr;
    display: grid;
  }

  .service-visual {
    min-height: 220px;
  }

  .cta-wrap {
    justify-items: start;
  }
}

@media (max-width: 560px) {
  .service-card {
    padding: 0.9rem;
    gap: 1rem;
  }

  .service-visual {
    min-height: 200px;
    padding: 1rem;
  }

  .service-badges span {
    font-size: 0.84rem;
  }
}

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