/* ─────────────────────────────────────────────────────────────────────────────
   what-we-do.css — What We Do page styles
   Pixel-faithful translation of Figma node 2:2
   ───────────────────────────────────────────────────────────────────────────── */

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

:root {
  --primary:      #076476;
  --primary-dark: #054e5c;
  --primary-deep: #004b59;
  --white:        #ffffff;
  --text-body:    #3f484b;
  --text-heading: #1a1c1c;
  --bg-page:      #f9f9f9;
  --border-nav:   #f3f4f6;
  --font-display: 'Manrope', sans-serif;
  --font-body:    'Inter', sans-serif;
}

/* ── Base ───────────────────────────────────────────────────────────────────── */

body {
  font-family: var(--font-display);
  color: var(--text-body);
  background: var(--bg-page);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.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;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Header / Nav ───────────────────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border-nav);
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 16px 24px;
  max-width: 1280px;
  margin: 0 auto;
}

.nav-logo img {
  height: 32px;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin-left: auto;
}

.nav-links a {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-body);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s;
}

.nav-links a:hover,
.nav-link--active {
  color: var(--primary) !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: auto;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text-heading);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  display: none;
  flex-direction: column;
  list-style: none;
  background: var(--white);
  border-top: 1px solid var(--border-nav);
  padding: 8px 0;
}

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

.nav-mobile a {
  display: block;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-body);
  text-decoration: none;
}

.nav-mobile a:hover { color: var(--primary); }

/* ── Services Section ───────────────────────────────────────────────────────── */

.services-section {
  background: var(--bg-page);
  padding: 96px 24px;
}

.services-grid {
  max-width: 1232px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ── Service Card ───────────────────────────────────────────────────────────── */

.service-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  min-height: 247px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0px 10px 15px -3px rgba(0, 0, 0, 0.1),
    0px 4px 6px -4px rgba(0, 0, 0, 0.1);
  /* Subtle lift on hover */
  transition: transform 0.2s, box-shadow 0.2s;
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow:
    0px 20px 25px -5px rgba(0, 0, 0, 0.12),
    0px 8px 10px -6px rgba(0, 0, 0, 0.1);
}

.service-card-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  border-radius: 12px;
}

.service-card-img {
  position: absolute;
  left: 0;
  width: 100%;
  height: 160%;
  top: -30%;
  max-width: none;
  object-fit: cover;
}

.service-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.service-card-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 32px;
  text-align: center;
}

.service-card-title {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
  color: var(--white);
  line-height: 36px;
}

.service-card-btn {
  display: inline-block;
  background: var(--white);
  color: var(--primary);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  padding: 10px 32px;
  border-radius: 4px;
  box-shadow: 0px 1px 1px rgba(0, 0, 0, 0.05);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}

.service-card-btn:hover {
  background: var(--primary);
  color: var(--white);
}

/* ── Footer ─────────────────────────────────────────────────────────────────── */

.site-footer {
  background: var(--primary-deep);
  color: var(--white);
  padding: 64px 0 32px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.footer-top {
  display: flex;
  gap: 64px;
  align-items: flex-start;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 24px;
  flex-shrink: 0;
}

.footer-logo img {
  height: 36px;
  display: block;
}

.btn-primary {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.15s;
  white-space: nowrap;
}

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

.footer-links {
  display: flex;
  gap: 48px;
  flex: 1;
  justify-content: flex-end;
}

.footer-col { display: flex; flex-direction: column; gap: 16px; }

.footer-col-title {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.5);
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  font-family: var(--font-display);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-col a:hover { color: var(--white); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-copy {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

.footer-legal {
  display: flex;
  gap: 24px;
}

.footer-legal a {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-legal a:hover { color: var(--white); }

/* ── Responsive ─────────────────────────────────────────────────────────────── */

@media (max-width: 1024px) {
  .services-section { padding: 72px 24px; }
}

@media (max-width: 768px) {
  .nav-links  { display: none; }
  .nav-toggle { display: flex; }

  .services-section { padding: 48px 20px; }
  .services-grid    { grid-template-columns: repeat(2, 1fr); }

  .footer-top   { flex-direction: column; gap: 40px; }
  .footer-links { flex-wrap: wrap; gap: 32px; justify-content: flex-start; }
}

@media (max-width: 540px) {
  .services-grid         { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .service-card-title    { font-size: 26px; line-height: 32px; }
  .footer-bottom         { flex-direction: column; gap: 16px; text-align: center; }
  .footer-legal          { flex-wrap: wrap; justify-content: center; }
}
