/* ── Reset & Custom Properties ── */

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

:root {
  --white: #FFFFFF;
  --light-gray: #F7F8FA;
  --border: #E8EAED;
  --charcoal: #1A1A2E;
  --muted: #5F6368;
  --accent: #0A7C8C;
  --accent-dark: #065F6C;
  --accent-light: #E8F4F5;
  --heading-font: 'Space Grotesk', -apple-system, sans-serif;
  --body-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-width: 1060px;
  --radius: 16px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--body-font);
  color: var(--charcoal);
  background: var(--light-gray) url('../assets/bg-light-mesh.png') repeat;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 1.5rem;
}

/* ── Page Wrapper (Contained Card) ── */

.page-wrapper {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--max-width);
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 8px 32px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}

/* ── Nav ── */

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 2.5rem;
  border-bottom: 1px solid var(--border);
}

.wordmark {
  font-family: var(--heading-font);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--charcoal);
  text-decoration: none;
}

.wordmark .accent {
  color: var(--accent);
}

.nav-link {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--accent);
}

/* ── Hero ── */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  padding: 4rem 2.5rem;
  gap: 1rem;
  overflow: visible;
}

.hero-content {
  flex: 1;
  position: relative;
  z-index: 2;
}

.hero-visual {
  flex: 0 0 auto;
  position: relative;
  z-index: 1;
  margin-right: -3rem;
  margin-top: -2rem;
  margin-bottom: -2rem;
}

.hero-visual img {
  width: 420px;
  height: auto;
  display: block;
  filter: drop-shadow(0 8px 24px rgba(10, 124, 140, 0.08));
}

h1 {
  font-family: var(--heading-font);
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.04em;
  margin-bottom: 1rem;
  color: var(--charcoal);
}

.tagline {
  font-size: 1rem;
  color: var(--muted);
  max-width: 420px;
  margin-bottom: 1.75rem;
  line-height: 1.65;
}

.cta-button {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  background: var(--accent);
  color: var(--white);
  text-decoration: none;
  border-radius: 8px;
  font-family: var(--heading-font);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: -0.01em;
  transition: background 0.2s, transform 0.15s;
}

.cta-button:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

/* ── Services ── */

.services {
  padding: 3.5rem 2.5rem;
  background: var(--light-gray);
}

.services h2,
.reach h2 {
  font-family: var(--heading-font);
  font-size: 1.625rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 2rem;
  text-align: center;
}

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

.service-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(10, 124, 140, 0.03), transparent);
  transition: left 0.6s ease;
}

.service-card:hover::before {
  left: 100%;
}

.service-icon {
  margin-bottom: 1rem;
}

.service-card h3 {
  font-family: var(--heading-font);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.service-card p {
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.65;
}

/* ── Reach ── */

.reach {
  position: relative;
  padding: 3.5rem 2.5rem;
  overflow: visible;
}

.reach-content {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.reach-text {
  flex: 1;
  position: relative;
  z-index: 2;
}

.reach-text h2 {
  text-align: left;
}

.reach-text p {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 380px;
}

.reach-visual {
  flex: 0 0 auto;
  position: relative;
  z-index: 1;
  margin-right: -2.5rem;
  margin-top: -1.5rem;
  margin-bottom: -2.5rem;
}

.reach-visual img {
  width: 360px;
  height: auto;
  display: block;
  filter: drop-shadow(0 6px 20px rgba(10, 124, 140, 0.06));
}

/* ── Footer ── */

.footer {
  background: var(--charcoal);
  padding: 2rem 2.5rem;
  border-radius: 0 0 var(--radius) var(--radius);
}

.footer-content {
  text-align: center;
}

.footer p {
  margin-bottom: 0.375rem;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.5);
}

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

.footer a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: color 0.2s;
}

.footer a:hover {
  color: #fff;
}

.footer .copyright {
  margin-top: 0.75rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.35);
}

/* ── Contact Form ── */

.contact-heading {
  font-family: var(--heading-font);
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--white);
  margin-bottom: 1.25rem;
}

.contact-form {
  max-width: 400px;
  margin: 0 auto 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.625rem 0.875rem;
  font-family: var(--body-font);
  font-size: 0.875rem;
  color: var(--charcoal);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  outline: none;
  transition: border-color 0.2s;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--muted);
}

.contact-form button {
  align-self: flex-start;
  cursor: pointer;
  border: none;
}

.contact-form button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.form-status {
  font-size: 0.8125rem;
  min-height: 1.25rem;
}

.form-status.success {
  color: #4ade80;
}

.form-status.error {
  color: #f87171;
}

/* ── Scroll Reveal ── */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.service-card:nth-child(2) { transition-delay: 0.1s; }
.service-card:nth-child(3) { transition-delay: 0.2s; }

/* ── Reduced Motion ── */

@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none; opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ── Responsive ── */

@media (max-width: 768px) {
  body { padding: 0; }

  .page-wrapper {
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
  }

  .nav { padding: 1rem 1.5rem; }

  .hero {
    flex-direction: column;
    text-align: center;
    padding: 2.5rem 1.5rem;
    gap: 1rem;
    overflow: hidden;
  }

  .hero .tagline {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-visual {
    margin: 0;
  }

  .hero-visual img { width: 280px; }

  .services { padding: 2.5rem 1.5rem; }
  .services-grid { grid-template-columns: 1fr; }

  .reach { padding: 2.5rem 1.5rem; overflow: hidden; }
  .reach-content { flex-direction: column; text-align: center; }
  .reach-text h2 { text-align: center; }
  .reach-text p { margin: 0 auto; }
  .reach-visual { margin: 0; }
  .reach-visual img { width: 240px; }

  .footer { padding: 1.5rem; border-radius: 0; }
}

@media (max-width: 480px) {
  h1 { font-size: 1.75rem; }
  .hero-visual img { width: 240px; }
}
