/* 
  The star selector applies to every element.
  border-box makes sizing easier and more predictable.
*/
* {
  box-sizing: border-box;
}

/*
  Smooth scrolling makes navigation links glide to sections
  instead of jumping instantly.
*/
html {
  scroll-behavior: smooth;
}

/*
  Body styles apply to the whole visible page.
*/
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: #172033;
  background: #f7f4ef;
  line-height: 1.6;
}

/*
  A reusable container that keeps content centered
  and prevents it from stretching too wide.
*/
.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

/*
  Header styles.
  position: sticky keeps the header visible at the top
  while the user scrolls.
*/
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(247, 244, 239, 0.92);
  border-bottom: 1px solid rgba(23, 32, 51, 0.12);
  backdrop-filter: blur(12px);
}

/*
  Makes the logo and nav links sit side by side.
*/
.header-content {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/*
  Logo styling.
*/
.logo {
  color: #172033;
  font-size: 1.3rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -0.03em;
}

/*
  Navigation link layout.
*/
.nav-links {
  display: flex;
  gap: 24px;
}

/*
  Navigation link styling.
*/
.nav-links a {
  color: #3f4a5f;
  text-decoration: none;
  font-size: 0.95rem;
}

/*
  Hover effect for navigation links.
*/
.nav-links a:hover {
  color: #172033;
}

/*
  Hero section: the large first section.
*/
.hero {
  padding: 120px 0 96px;
}

/*
  Limits the hero text width so it is easier to read.
*/
.hero-content {
  max-width: 760px;
}

/*
  Small uppercase label above headings.
*/
.eyebrow {
  margin: 0 0 12px;
  color: #4d6b57;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/*
  Main page heading.
*/
h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(2.7rem, 7vw, 5.8rem);
  line-height: 0.95;
  letter-spacing: -0.08em;
}

/*
  Section headings.
*/
h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1.05;
  letter-spacing: -0.06em;
}

/*
  Card headings.
*/
h3 {
  margin: 0 0 12px;
  font-size: 1.25rem;
}

/*
  Hero paragraph under the main heading.
*/
.hero-text {
  max-width: 620px;
  margin: 28px 0 0;
  color: #4b5568;
  font-size: 1.2rem;
}

/*
  Button container.
*/
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

/*
  Base button style shared by both button types.
*/
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
}

/*
  Main call-to-action button.
*/
.primary-button {
  color: #ffffff;
  background: #172033;
}

/*
  Secondary button.
*/
.secondary-button {
  color: #172033;
  border: 1px solid rgba(23, 32, 51, 0.24);
}

/*
  Hover effect for buttons.
*/
.button:hover {
  transform: translateY(-1px);
}

/*
  Reusable spacing for main sections.
*/
.section {
  padding: 88px 0;
}

/*
  Heading area inside a section.
*/
.section-heading {
  max-width: 720px;
  margin-bottom: 36px;
}

/*
  Grid layout for service cards.
*/
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

/*
  Individual service card.
*/
.service-card {
  padding: 28px;
  background: #ffffff;
  border: 1px solid rgba(23, 32, 51, 0.1);
  border-radius: 24px;
  box-shadow: 0 18px 50px rgba(23, 32, 51, 0.06);
}

/*
  Paragraphs inside service cards.
*/
.service-card p {
  margin: 0;
  color: #586174;
}

/*
  Slightly different background section.
*/
.muted-section {
  background: #e9e3d8;
}

/*
  Two-column layout used in the About section.
*/
.two-column {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: start;
}

/*
  Paragraphs in the two-column section.
*/
.two-column p {
  margin-top: 0;
  color: #4b5568;
  font-size: 1.05rem;
}

/*
  Contact section alignment.
*/
.contact-section {
  text-align: center;
}

/*
  Contact card.
*/
.contact-card {
  max-width: 760px;
  padding: 56px;
  background: #ffffff;
  border: 1px solid rgba(23, 32, 51, 0.1);
  border-radius: 32px;
  box-shadow: 0 24px 70px rgba(23, 32, 51, 0.08);
}

/*
  Contact paragraph.
*/
.contact-card p {
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  color: #4b5568;
}

/*
  Footer.
*/
.site-footer {
  padding: 28px 0;
  border-top: 1px solid rgba(23, 32, 51, 0.12);
}

/*
  Footer text.
*/
.footer-content {
  color: #667085;
  font-size: 0.9rem;
}

/*
  Responsive styles.
  These apply when the screen is 850px wide or smaller.
*/
@media (max-width: 850px) {
  .header-content {
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    padding: 16px 0;
  }

  .nav-links {
    gap: 16px;
  }

  .hero {
    padding: 80px 0 72px;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .two-column {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .contact-card {
    padding: 36px 24px;
  }
}
