:root {
  --teal-900: #04342C;
  --teal-800: #085041;
  --teal-600: #0F6E56;
  --teal-400: #1D9E75;
  --teal-200: #5DCAA5;
  --teal-100: #9FE1CB;
  --teal-50: #E1F5EE;
  --charcoal: #2C2C2A;
  --gray-600: #5F5E5A;
  --gray-200: #D3D1C7;
  --cream: #F1EFE8;
  --white: #FFFFFF;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

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

body {
  font-family: var(--font);
  color: var(--charcoal);
  background: var(--white);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }

/* Scroll reveal (progressive enhancement — content is visible with no JS) */
.reveal {
  opacity: 1;
  transform: none;
}

.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

.js .reveal:nth-child(2) { transition-delay: 0.08s; }
.js .reveal:nth-child(3) { transition-delay: 0.16s; }
.js .reveal:nth-child(4) { transition-delay: 0.24s; }
.js .reveal:nth-child(5) { transition-delay: 0.32s; }
.js .reveal:nth-child(6) { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  .js .reveal {
    transition: none;
  }
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.site-header {
  background: var(--teal-900);
  padding: 1.25rem 0;
  position: sticky;
  top: 0;
  z-index: 50;
  transition: padding 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  padding: 0.75rem 0;
  box-shadow: 0 4px 16px rgba(4, 52, 44, 0.25);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-text {
  font-weight: 700;
  font-size: 19px;
  display: inline-flex;
  align-items: center;
  color: var(--teal-50);
  transition: font-size 0.25s ease;
}

.is-scrolled .logo-text { font-size: 17px; }

.logo-text .accent { color: var(--teal-200); }

.main-nav {
  display: flex;
  gap: 2rem;
  font-size: 15px;
  color: var(--teal-100);
}

.main-nav a { transition: color 0.2s ease; }
.main-nav a:hover { color: var(--teal-50); }
.main-nav a.active { color: var(--teal-50); font-weight: 700; }

.header-mark {
  height: 64px;
  width: auto;
  transition: height 0.25s ease;
}

.is-scrolled .header-mark { height: 44px; }

.header-mark svg {
  height: 100%;
  width: auto;
  display: block;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--teal-50);
  font-size: 24px;
  cursor: pointer;
}

/* Hero */
.hero {
  background: var(--teal-900);
  padding: 3.5rem 0;
}

.hero h1 {
  font-size: 42px;
  font-weight: 700;
  color: var(--teal-50);
  line-height: 1.2;
  margin-bottom: 0.75rem;
  max-width: 600px;
}

.hero p {
  font-size: 17px;
  color: var(--teal-100);
  max-width: 500px;
  margin-bottom: 2rem;
}

.btn {
  display: inline-block;
  border: none;
  border-radius: 8px;
  padding: 13px 26px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font);
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.97); }

.btn-primary {
  background: var(--teal-200);
  color: var(--teal-900);
}

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

.btn-outline {
  background: transparent;
  color: var(--teal-50);
  border: 1.5px solid var(--teal-600);
}

.btn-outline:hover { border-color: var(--teal-200); }

/* Page hero (non-home pages) */
.page-hero {
  background: var(--teal-900);
  padding: 3rem 0;
}

.page-hero h1 {
  color: var(--teal-50);
  font-size: 34px;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.page-hero p {
  color: var(--teal-100);
  font-size: 16px;
  max-width: 560px;
}

/* Sections */
section {
  padding: 4rem 0;
}

.section-alt { background: var(--cream); }

h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--teal-900);
  margin-bottom: 0.75rem;
}

.section-intro {
  color: var(--gray-600);
  max-width: 560px;
  margin-bottom: 2.5rem;
  font-size: 16px;
}

/* Cards / grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--white);
  border: 0.5px solid var(--gray-200);
  border-radius: 12px;
  padding: 1.75rem;
  box-shadow: 0 1px 2px rgba(4, 52, 44, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
}

.section-alt .card { background: var(--white); }

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--teal-50);
  color: var(--teal-800);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 1rem;
}

.work-card h3 a {
  color: inherit;
  transition: color 0.2s ease;
}

.work-card h3 a:hover {
  color: var(--teal-600);
}

.card h3,
.work-card-body h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--teal-900);
  margin-bottom: 0.5rem;
}

.card p,
.work-card-body p {
  font-size: 15px;
  color: var(--gray-600);
}

/* Work / case studies */
.work-card {
  background: var(--white);
  border: 0.5px solid var(--gray-200);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(4, 52, 44, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.work-card:hover {
  transform: translateY(-3px);
}

.work-card-body { padding: 1.5rem; }

.work-thumb {
  height: 160px;
  background: var(--teal-50);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal-600);
  font-weight: 700;
  font-size: 14px;
}

.tag {
  display: inline-block;
  background: var(--teal-50);
  color: var(--teal-800);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 0.75rem;
}

.result-stat {
  font-size: 22px;
  font-weight: 700;
  color: var(--teal-600);
}

.result-label {
  font-size: 13px;
  color: var(--gray-600);
}

/* Process steps */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  counter-reset: step;
}

.step {
  position: relative;
  padding-top: 2.5rem;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: 0;
  left: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--teal-600);
  color: var(--teal-50);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}

@media (min-width: 900px) {
  .step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 15px;
    left: 32px;
    width: calc(100% - 32px + 1.5rem);
    height: 2px;
    background: var(--gray-200);
  }
}

.step h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--teal-900);
  margin-bottom: 0.4rem;
}

.step p {
  font-size: 14px;
  color: var(--gray-600);
}

/* About */
.values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

/* Contact */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

@media (max-width: 800px) {
  .contact-layout { grid-template-columns: 1fr; }
}

.form-group { margin-bottom: 1.25rem; }

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--teal-900);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 11px 12px;
  border: 0.5px solid var(--gray-200);
  border-radius: 8px;
  font-size: 15px;
  font-family: var(--font);
  background: var(--white);
}

.form-group textarea { resize: vertical; min-height: 120px; }

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--teal-400);
}

.contact-info-item {
  display: flex;
  gap: 12px;
  margin-bottom: 1.5rem;
}

.contact-info-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--teal-50);
  color: var(--teal-800);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}

.contact-info-item h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--teal-900);
  margin-bottom: 0.2rem;
}

.contact-info-item p {
  font-size: 14px;
  color: var(--gray-600);
}

.form-status {
  margin-top: 1rem;
  font-size: 14px;
  font-weight: 700;
  color: var(--teal-600);
  display: none;
}

/* Footer */
.site-footer {
  background: var(--teal-900);
  color: var(--teal-100);
  padding: 2.5rem 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  font-size: 14px;
}

.footer-links a:hover { color: var(--teal-50); }

.footer-copy {
  font-size: 13px;
  color: var(--teal-100);
  opacity: 0.7;
}

/* Mobile nav */
@media (max-width: 760px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--teal-900);
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 1.5rem 1.5rem;
    border-top: 0.5px solid var(--teal-600);
  }

  .main-nav.open { display: flex; }

  .main-nav a {
    padding: 0.75rem 0;
    border-bottom: 0.5px solid var(--teal-800);
  }

  .nav-toggle { display: block; }

  .header-mark { display: none; }

  .hero h1 { font-size: 32px; }

  .contact-layout { gap: 2rem; }
}
