/* ==================================================
   1. Theme
================================================== */

:root {
  --bg: #ffffff;
  --text: #111111;
  --muted: #555555;
  --accent: #e65a38;
  --soft: #f6f6f6;
  --warm: #f7f3ef;
  --border: #e6e6e6;

  --content-width: 760px;
  --services-width: 920px;
  --section-spacing: 90px;
  --heading-spacing: 40px;
}


/* ==================================================
   2. Base
================================================== */

* {
  box-sizing: border-box;
}

html,
body {
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.055em;
  margin-bottom: 28px;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.15;
  margin-bottom: 28px;
}

h3 {
  font-size: 1.25rem;
  margin-bottom: 14px;
}


/* ==================================================
   3. Layout helpers
================================================== */

.container {
  width: min(1100px, calc(100% - 40px));
  margin: 0 auto;
}

.content-width {
  max-width: var(--content-width);
  margin: 0 auto;
}

.services-container {
  width: min(var(--services-width), calc(100% - 40px));
  margin: 0 auto;
}

.section {
  padding: var(--section-spacing) 0;
}


/* ==================================================
   4. Header
================================================== */

.site-header {
  border-bottom: 1px solid var(--border);
  background: #fff;
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  color: var(--text);
  font-size: 1.35rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.site-nav {
  display: flex;
  gap: 24px;
}

.site-nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
}

.site-nav a:hover {
  color: var(--accent);
}


/* ==================================================
   5. Hero
================================================== */

.hero {
  padding: 90px 0 70px;
  background: #fff;
}

.hero-text {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.2rem;
  margin-bottom: 34px;
}


/* ==================================================
   6. Buttons
================================================== */

.button,
.button-secondary {
  display: inline-block;
  padding: 14px 24px;
  border-radius: 3px;
  text-decoration: none;
  font-weight: 700;
  transition: background-color 0.2s ease,
              color 0.2s ease,
              border-color 0.2s ease;
}

/* Primary button */
.button {
  background: #111827;
  color: #fff;
  border: 1px solid #111827;
}

.button:hover {
  background: #1f2937;
  border-color: #1f2937;
}

/* Secondary button */
.button-secondary {
  background: #fff;
  color: #111827;
  border: 1px solid #111827;
}

.button-secondary:hover {
  background: #111827;
  color: #fff;
  border-color: #111827;
}


/* ==================================================
   7. Services
================================================== */

#services {
  padding-top: 70px;
}

#services h2 {
  margin-bottom: var(--heading-spacing);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  background: #fff;
  padding: 28px;
  min-height: 230px;
  transition:
    transform .18s ease,
    box-shadow .18s ease,
    border-color .18s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0,0,0,.05);
  border-color: #ddd;
}

.card h3 {
  margin-bottom: 16px;
}

.card p {
  color: var(--muted);
  margin: 0;
}

.card-icon {
    width: 28px;
    height: 28px;
    display: block;
    margin-bottom: 20px;
    opacity: 0.9;
}


/* ==================================================
   8. Contact
================================================== */

.contact-section {
  background: var(--warm);
  text-align: center;
}

#contact h2 {
  margin-bottom: var(--heading-spacing);
}

.contact-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 24px;
}


/* ==================================================
   9. Footer
================================================== */

.site-footer {
    background: #ffffff;
    color: #777;
    border-top: 1px solid var(--border);
    padding: 32px 0;
    font-size: 0.85rem;
    text-align: center;
}

.site-footer p {
  margin: 0;
  line-height: 1.5;
}

.site-footer a {
  color: #555;
}

.site-footer a:hover {
  color: #111827;
}


/* ==================================================
   10. Responsive
================================================== */

@media (max-width: 760px) {
  .container,
  .services-container {
    width: min(100% - 32px, 100%);
  }

  .header-inner {
    min-height: 68px;
    gap: 20px;
  }

  .logo {
    font-size: 1.25rem;
    flex-shrink: 0;
  }

  .site-nav {
    gap: 14px;
    font-size: 0.9rem;
  }

  h1 {
    font-size: clamp(2.6rem, 13vw, 4rem);
    line-height: 1.05;
    letter-spacing: -0.06em;
    overflow-wrap: break-word;
  }

  h2 {
    font-size: clamp(2rem, 9vw, 2.8rem);
  }

  .hero {
    padding: 72px 0 56px;
  }

  .hero-text {
    font-size: 1.1rem;
    max-width: 100%;
  }

  .section {
    padding: 56px 0;
  }

  #services {
    padding-top: 56px;
  }

  .cards {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .card {
    min-height: auto;
  }

  .contact-actions {
    justify-content: center;
  }
}