/* ===== RESET & BASE ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --purple: #8e1dae;
  --purple-light: #a84dc4;
  --purple-dark: #6b1584;
  --purple-faint: rgba(142, 29, 174, 0.04);
  --black: #1a1a1a;
  --grey-dark: #333;
  --grey-mid: #666;
  --grey-light: #f7f6f8;
  --white: #ffffff;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.06), 0 1px 4px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
  --radius: 12px;
}

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

body {
  font-family: var(--font-body);
  color: var(--black);
  background: var(--grey-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--purple);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--purple-dark);
}

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

/* ===== LAYOUT ===== */
.container {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

main {
  flex: 1;
}

/* ===== NAV ===== */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.nav-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 1.25rem;
  padding-bottom: 0.75rem;
  gap: 0.75rem;
}

.nav-logo {
  flex-shrink: 0;
}

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

.nav-links {
  display: flex;
  gap: 2.25rem;
  list-style: none;
}

.nav-links-logo {
  display: none;
}

.nav-links a {
  color: var(--grey-dark);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  position: relative;
  padding: 0.25rem 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--purple);
  transition: width var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--purple);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* Mobile hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 28px;
  height: 22px;
  position: relative;
  flex-shrink: 0;
  z-index: 110;
  -webkit-tap-highlight-color: transparent;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--black);
  position: absolute;
  left: 0;
  transition: var(--transition);
  border-radius: 1px;
}

.nav-toggle span:nth-child(1) { top: 0; }
.nav-toggle span:nth-child(2) { top: 10px; }
.nav-toggle span:nth-child(3) { top: 20px; }

/* Animate to X when open */
.nav-toggle.active span:nth-child(1) {
  top: 10px;
  transform: rotate(45deg);
}
.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
  top: 10px;
  transform: rotate(-45deg);
}

/* ===== HERO (Welcome Page) ===== */
.hero {
  padding: 3rem 0;
  text-align: center;
}

.hero-tagline {
  font-size: 1.125rem;
  color: var(--grey-mid);
  font-weight: 400;
  max-width: 480px;
  margin: 0 auto;
  letter-spacing: 0.01em;
}

/* ===== ABOUT SECTION ===== */
.about {
  padding: 4rem 0 5rem;
}

.about-card {
  max-width: 640px;
  margin: 0 auto;
}

.about-card h2 {
  font-size: 1.375rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  color: var(--black);
}

.about-card p {
  color: var(--grey-dark);
  margin-bottom: 1rem;
  font-size: 0.9375rem;
  line-height: 1.75;
}

.about-card p:last-of-type {
  margin-bottom: 0;
}

.cta-line {
  color: var(--purple) !important;
  font-weight: 500;
}

/* ===== SERVICES ===== */
.services-header {
  padding: 4rem 0 2.5rem;
  text-align: center;
}

.services-header h1 {
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.services-header p {
  color: var(--grey-mid);
  font-size: 0.9375rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 1.25rem;
  margin-bottom: 5rem;
}

.service-card {
  background: var(--white);
  padding: 2rem 1.75rem;
  border-radius: var(--radius);
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}

.service-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.service-card h3 {
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 0.625rem;
  color: var(--black);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.service-card h3::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--purple);
  border-radius: 50%;
  flex-shrink: 0;
}

.service-card p,
.service-card ul {
  font-size: 0.8125rem;
  color: var(--grey-mid);
  line-height: 1.65;
}

.service-card ul {
  list-style: none;
  padding-left: 0;
  margin-top: 0.5rem;
}

.service-card ul li {
  padding: 0.2rem 0;
  padding-left: 1rem;
  position: relative;
}

.service-card ul li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--purple-light);
  font-size: 0.75rem;
}

/* ===== CONTACT ===== */
.contact-header {
  padding: 4rem 0 2.5rem;
  text-align: center;
}

.contact-header h1 {
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.contact-header p {
  color: var(--grey-mid);
  font-size: 0.9375rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 2rem;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.contact-block {
  background: var(--white);
  padding: 2rem 1.75rem;
  border-radius: var(--radius);
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}

.contact-block:hover {
  box-shadow: var(--shadow-md);
}

.contact-block h3 {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--purple);
  margin-bottom: 0.75rem;
}

.contact-block p {
  font-size: 0.9375rem;
  color: var(--grey-dark);
  line-height: 1.7;
}

.contact-block a {
  font-weight: 500;
}

.contact-note {
  text-align: center;
  max-width: 480px;
  margin: 0 auto 5rem;
  font-size: 0.8125rem;
  color: var(--grey-mid);
  font-style: italic;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--white);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  padding: 2.5rem 0;
  margin-top: auto;
}

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

.footer-copy {
  font-size: 0.75rem;
  color: var(--grey-mid);
}

.footer-partners {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.footer-partners img,
.footer-partners svg {
  height: 28px;
  width: auto;
  opacity: 0.5;
  transition: opacity var(--transition), filter var(--transition);
  filter: grayscale(100%);
}

.footer-partners img:hover,
.footer-partners svg:hover {
  opacity: 0.85;
  filter: grayscale(0%);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav-inner {
    flex-direction: row;
    justify-content: space-between;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    gap: 0;
  }

  .nav-logo img {
    height: 42px;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition), visibility var(--transition);
    z-index: 105;
  }

  .nav-links.open {
    opacity: 1;
    visibility: visible;
  }

  .nav-links-logo {
    display: list-item;
    margin-bottom: 1.5rem;
  }

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

  .nav-links a {
    padding: 0.5rem 0;
    font-size: 1.125rem;
    letter-spacing: 0.08em;
  }

  .nav-links a::after {
    bottom: 0.25rem;
  }

  .hero {
    padding: 2rem 0 2rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}
