/* ==================== BASE ==================== */
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  background: #ffffff;
  color: #111;
  transition: 0.6s ease;
}

/* DARK MODE */
body.dark {
  background: #111;
  color: #fff;
}

/* ==================== NAVBAR ==================== */
header {
  position: fixed;
  top: 0;
  width: 100%;
  height: 70px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 32px;
  background: inherit;
  box-sizing: border-box;
  z-index: 1000;
}

.logo {
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.5px;
}

nav a {
  margin-left: 24px;
  text-decoration: none;
  color: inherit;
  font-size: 14px;
}

.nav-btn {
  padding: 7px 16px;
  border: 1px solid currentColor;
  border-radius: 4px;
}

/* ==================== HERO ==================== */
.hero {
  padding: 160px 24px 80px 24px;
  max-width: 900px;
  margin: auto;
}

.hero h1 {
  font-size: 48px;
  line-height: 1.1;
  margin-bottom: 18px;
}

.hero p {
  font-size: 18px;
  margin-bottom: 30px;
  max-width: 520px;
  opacity: 0.85;
}

.btn {
  background: #111;
  color: #fff;
  padding: 14px 28px;
  text-decoration: none;
  border-radius: 4px;
  transition: 0.3s ease;
}

.btn:hover {
  opacity: 0.85;
}

body.dark .btn {
  background: #fff;
  color: #111;
}

/* ==================== SERVICES TABLE ==================== */
.services {
  padding: 80px 24px;
  max-width: 1000px;
  margin: auto;
}

.services-table {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid rgba(0,0,0,0.1);
  border-left: 1px solid rgba(0,0,0,0.1);
  gap: 0;
}

.service-cell {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px;
  border-right: 1px solid rgba(0,0,0,0.1);
  border-bottom: 1px solid rgba(0,0,0,0.1);

  background: inherit; /* adapts to dark mode */
  color: inherit;
  
  text-decoration: none;
  cursor: pointer;

  /* Sequential reveal */
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.service-cell:hover {
  background: rgba(0,0,0,0.03);
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.05);
}

body.dark .service-cell:hover {
  background: rgba(255,255,255,0.05);
}

.service-cell h3 {
  margin-bottom: 10px;
  font-size: 18px;
}

.service-cell p {
  font-size: 15px;
  opacity: 0.75;
  line-height: 1.5;
}

/* ==================== CTA ==================== */
.cta {
  padding: 90px 24px;
  max-width: 750px;
  margin: auto;
}

.cta h2 {
  margin-bottom: 16px;
}

.cta p {
  margin-bottom: 24px;
  opacity: 0.85;
}

/* ==================== FOOTER ==================== */
footer {
  text-align: center;
  padding: 40px 20px;
  font-size: 14px;
  opacity: 0.6;
}

/* ==================== MOBILE ==================== */
@media (max-width: 768px) {
  .services-table {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 140px 20px 60px 20px;
  }

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

  .hero p {
    font-size: 16px;
  }

  nav a {
    margin-left: 16px;
    font-size: 13px;
  }
}

