/* ============================================
   1. SETUP — colors, fonts, and resets
   ============================================ */

:root {
  --color-dark: #12121b;      /* near-black navy, used for header/hero/footer */
  --color-dark-alt: #1b1b29;  /* slightly lighter dark, for contrast within dark sections */
  --color-light: #fafafa;     /* main page background */
  --color-light-alt: #f0f0f5; /* soft gray band background */
  --color-text: #1c1c24;      /* body text on light sections */
  --color-text-muted: #6b6b7b;
  --color-white: #ffffff;
  --color-accent: #6c63ff;    /* the brand accent color, used for highlights and buttons */
  --color-accent-hover: #564fd6;

  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
}

/* The "universal reset": browsers add their own spacing/sizing by default,
   this removes it so we get consistent results everywhere. */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-light);
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Keeps content from stretching edge-to-edge on wide screens,
   and adds side padding on narrow screens. */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Reusable button style */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 6px;
  font-weight: 600;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

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

.btn-primary:hover {
  background-color: var(--color-accent-hover);
  transform: translateY(-2px);
}


/* ============================================
   2. HEADER
   ============================================ */

.site-header {
  background-color: var(--color-dark);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  padding-bottom: 20px;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-white);
  letter-spacing: 0.5px;
}

.nav {
  display: flex;
  gap: 32px;
}

.nav a {
  color: var(--color-white);
  font-weight: 500;
  font-size: 0.95rem;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.nav a:hover {
  opacity: 1;
}


/* ============================================
   3. HERO
   ============================================ */

.hero {
  background-color: var(--color-dark);
  color: var(--color-white);
  padding: 120px 0;
  text-align: center;
}

.hero h1 {
  font-size: 3rem;
  max-width: 700px;
  margin: 0 auto 24px;
}

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

.hero-tagline {
  max-width: 560px;
  margin: 0 auto 40px;
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.75);
}


/* ============================================
   4. SERVICES
   ============================================ */

.services {
  padding: 100px 0;
  text-align: center;
}

.services h2 {
  font-size: 2.25rem;
  margin-bottom: 12px;
}

.section-intro {
  color: var(--color-text-muted);
  margin-bottom: 56px;
  font-size: 1.05rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  text-align: left;
}

.service-card {
  background-color: var(--color-white);
  border: 1px solid #e8e8ee;
  border-radius: 10px;
  padding: 36px 28px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(18, 18, 27, 0.08);
}

.service-card h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
  color: var(--color-accent);
}

.service-card p {
  color: var(--color-text-muted);
}


/* ============================================
   5. ABOUT
   ============================================ */

.about {
  background-color: var(--color-light-alt);
  padding: 100px 0;
}

.about-inner {
  max-width: 700px;
  text-align: center;
}

.about h2 {
  font-size: 2.25rem;
  margin-bottom: 24px;
}

.about p {
  color: var(--color-text-muted);
  font-size: 1.05rem;
}


/* ============================================
   6. CONTACT
   ============================================ */

.contact {
  background-color: var(--color-dark);
  color: var(--color-white);
  padding: 100px 0;
  text-align: center;
}

.contact h2 {
  font-size: 2.25rem;
  margin-bottom: 12px;
}

.contact .section-intro {
  color: rgba(255, 255, 255, 0.75);
}

.email-link {
  color: var(--color-accent);
  font-weight: 600;
}

.contact-form {
  max-width: 480px;
  margin: 0 auto;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-form label {
  font-size: 0.9rem;
  font-weight: 500;
  margin-top: 12px;
}

.contact-form input,
.contact-form textarea {
  background-color: var(--color-dark-alt);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  padding: 12px 14px;
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 1rem;
}

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

.contact-form button {
  margin-top: 24px;
  align-self: flex-start;
}


/* ============================================
   7. FOOTER
   ============================================ */

.site-footer {
  background-color: #0a0a10;
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
  padding: 28px 0;
  font-size: 0.9rem;
}


/* ============================================
   8. RESPONSIVE — adjustments for smaller screens
   ============================================ */

@media (max-width: 800px) {
  .services-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 2.25rem;
  }

  .header-inner {
    flex-direction: column;
    gap: 12px;
  }
}
