/* ============================================
   UNDERWOOD IT — Styles
   ============================================ */

:root {
  --navy: #0B1D3A;
  --navy-light: #122B52;
  --teal: #1A8A7D;
  --teal-light: #22B8A6;
  --white: #FFFFFF;
  --off-white: #F7F7F5;
  --grey-light: #E8E8E6;
  --grey-mid: #9A9A98;
  --text-dark: #0B1D3A;
  --text-body: #2C3E50;
  --text-light: #FFFFFFDD;

  --font-heading: 'DM Serif Display', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  --max-width: 1200px;
  --section-pad: 100px;
  --section-pad-mobile: 60px;
}

/* ── Reset ─────────────────────────────── */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--text-body);
  line-height: 1.7;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--teal);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--teal-light);
}

ul {
  list-style: none;
}

/* ── Typography ────────────────────────── */

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--text-dark);
  line-height: 1.2;
  font-weight: 400;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin-bottom: 1rem; }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); margin-bottom: 0.5rem; }

p + p { margin-top: 1rem; }

.section-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.75rem;
}

.section-intro {
  font-size: 1.15rem;
  color: var(--grey-mid);
  max-width: 640px;
  line-height: 1.8;
}

/* ── Layout ────────────────────────────── */

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: var(--section-pad) 0;
}

.bg-white { background: var(--white); }
.bg-off-white { background: var(--off-white); }
.bg-navy {
  background: var(--navy);
  color: var(--text-light);
}
.bg-navy h2, .bg-navy h3, .bg-navy h4 {
  color: var(--white);
}
.bg-navy .section-label {
  color: var(--teal-light);
}

/* ── Navigation ────────────────────────── */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--grey-light);
  transition: box-shadow 0.3s;
}

.nav.scrolled {
  box-shadow: 0 2px 24px rgba(0,0,0,0.08);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo img {
  height: 48px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  color: var(--navy);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}

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

.nav-cta {
  background: var(--teal);
  color: var(--white) !important;
  padding: 10px 24px;
  border-radius: 6px;
  font-weight: 600;
  transition: background 0.2s, transform 0.2s;
}

.nav-cta:hover {
  background: var(--teal-light);
  transform: translateY(-1px);
}

/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  margin: 6px 0;
  transition: transform 0.3s, opacity 0.3s;
}

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

/* ── Hero ──────────────────────────────── */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--navy);
  overflow: hidden;
  padding-top: 72px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url('images/hero-bg.webp') center center / cover no-repeat;
  background-image: image-set(url('images/hero-bg.webp') type('image/webp'), url('images/hero-bg.png') type('image/png'));
  opacity: 0.4;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 1.5rem;
}

.hero p {
  color: var(--text-light);
  font-size: 1.25rem;
  line-height: 1.8;
  margin-bottom: 2.5rem;
  max-width: 580px;
}

.btn {
  display: inline-block;
  padding: 16px 36px;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: all 0.25s;
  cursor: pointer;
  border: none;
}

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

.btn-primary:hover {
  background: var(--teal-light);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(26,138,125,0.3);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.3);
}

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

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ── Overview ──────────────────────────── */

.overview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.overview-text p {
  margin-bottom: 1rem;
}

.stat-row {
  display: flex;
  gap: 40px;
  margin-top: 2rem;
}

.stat {
  text-align: center;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  color: var(--teal);
  display: block;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--grey-mid);
  margin-top: 4px;
}

/* ── Health Check ──────────────────────── */

.health-check-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.health-check-image img {
  border-radius: 12px;
  box-shadow: 0 16px 48px rgba(11,29,58,0.1);
}

.checklist {
  margin-top: 1.5rem;
}

.checklist li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.checklist li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 5px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--teal);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 12 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2.5 6L5 8.5L9.5 3.5' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 12px;
  background-repeat: no-repeat;
  background-position: center;
}

.deliverables {
  margin-top: 2rem;
  padding: 24px;
  background: var(--off-white);
  border-radius: 10px;
  border-left: 4px solid var(--teal);
}

.deliverables h4 {
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}

.deliverables li {
  padding-left: 20px;
  position: relative;
  margin-bottom: 6px;
  font-size: 0.95rem;
}

.deliverables li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--teal);
  font-weight: 700;
}

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

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 3rem;
}

.service-card {
  background: var(--white);
  border-radius: 12px;
  padding: 40px 32px;
  border: 1px solid var(--grey-light);
  transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(11,29,58,0.08);
}

.service-number {
  font-family: var(--font-heading);
  font-size: 3rem;
  color: var(--teal);
  opacity: 0.3;
  line-height: 1;
  margin-bottom: 1rem;
}

.service-card h3 {
  color: var(--navy);
}

.service-card p {
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.service-list li {
  padding-left: 20px;
  position: relative;
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.service-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--teal);
}

/* ── Specialist Areas ──────────────────── */

.specialist-section {
  position: relative;
  overflow: hidden;
}

.specialist-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('images/pattern-bg.webp') center / cover;
  background-image: image-set(url('images/pattern-bg.webp') type('image/webp'), url('images/pattern-bg.png') type('image/png'));
  opacity: 0.3;
}

.specialist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 3rem;
  position: relative;
}

.specialist-card {
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 32px;
  transition: background 0.3s, border-color 0.3s;
}

.specialist-card:hover {
  background: rgba(255,255,255,0.08);
  border-color: var(--teal);
}

.specialist-icon {
  width: 48px;
  height: 48px;
  background: var(--teal);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.4rem;
}

.specialist-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.specialist-card p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
}

/* ── How I Work ────────────────────────── */

.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
  margin-top: 3rem;
}

.work-card {
  display: flex;
  gap: 20px;
  padding: 28px;
  background: var(--white);
  border-radius: 10px;
  border: 1px solid var(--grey-light);
  transition: border-color 0.3s;
}

.work-card:hover {
  border-color: var(--teal);
}

.work-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: var(--navy);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.work-card h3 {
  font-size: 1.1rem;
}

.work-card p {
  font-size: 0.9rem;
  margin-top: 0.4rem;
}

/* ── Who This Is For ───────────────────── */

.audience-list {
  max-width: 720px;
  margin-top: 2rem;
}

.audience-list li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-size: 1.05rem;
}

.audience-check {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: var(--teal);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.audience-check svg {
  width: 14px;
  height: 14px;
}

/* ── Engagement ────────────────────────── */

.engagement-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 3rem;
}

.engagement-card {
  text-align: center;
  padding: 36px 24px;
  background: var(--off-white);
  border-radius: 10px;
  border: 1px solid var(--grey-light);
  transition: transform 0.3s, border-color 0.3s;
}

.engagement-card:hover {
  transform: translateY(-3px);
  border-color: var(--teal);
}

.engagement-icon {
  width: 56px;
  height: 56px;
  background: var(--navy);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  font-size: 1.5rem;
}

.engagement-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.engagement-card p {
  font-size: 0.88rem;
  color: var(--grey-mid);
}

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

.footer {
  padding: 80px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 64px;
  margin-bottom: 48px;
}

.footer-brand p {
  margin-top: 1rem;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.6);
  max-width: 360px;
}

.footer h4 {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: var(--white);
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
}

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

.contact-detail {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
}

.contact-detail svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: 0.6;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
}

.footer-cta-section {
  text-align: center;
  padding-bottom: 64px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 48px;
}

.footer-cta-section h2 {
  color: var(--white);
  margin-bottom: 1rem;
}

.footer-cta-section p {
  color: rgba(255,255,255,0.7);
  font-size: 1.1rem;
  margin-bottom: 2rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Industries ────────────────────────── */

.industries {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 1.5rem;
}

.industry-tag {
  padding: 8px 18px;
  background: var(--off-white);
  border-radius: 100px;
  font-size: 0.85rem;
  color: var(--text-body);
  border: 1px solid var(--grey-light);
}

/* ── Scroll Reveal ─────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.22,1,0.36,1),
              transform 0.7s cubic-bezier(0.22,1,0.36,1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

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

@media (max-width: 1024px) {
  .services-grid { grid-template-columns: 1fr; }
  .engagement-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  section { padding: var(--section-pad-mobile) 0; }

  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--grey-light);
  }
  .nav-toggle { display: block; }

  .overview-grid,
  .health-check-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .stat-row { gap: 24px; }

  .specialist-grid { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: 1fr; }
  .engagement-grid { grid-template-columns: 1fr; }

  .hero-content { padding: 40px 0; }
  .hero { min-height: auto; padding: 120px 0 80px; }

  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}
