@font-face {
  font-family: "Eyesome Script";
  src: url("../font/EyesomeScript.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* =========================
   COLOR SYSTEM
========================= */

:root {
  --bg: #f6f3ee;
  --soft: #efe9e0;
  --readable: #f3efe8;

  --ink: #2a2623;
  --text: #2a2623;
  --muted: #6f6760;

  --accent: #8a6f5a;

  --border: #e5ddd2;

  --soft-light-text: #e7ded3;
}

/* =========================
   BASE
========================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
}

/* =========================
   TYPOGRAPHY
========================= */

h1 {
  font-size: 64px;
  font-weight: 500;
  letter-spacing: 1.5px;
  margin-bottom: 10px;
  color: var(--ink);
}

h2 {
  font-size: 42px;
  font-weight: 400;
  letter-spacing: -0.5px;
  line-height: 1.15;
  margin-bottom: 24px;
  color: var(--ink);
}

p {
  font-size: 16px;
  margin-bottom: 18px;
  max-width: 70ch;
}

/* Lead paragraph */
.section .lead {
  font-size: 21px;
  line-height: 1.55;
  font-weight: 350;
  max-width: 620px;
  margin-bottom: 34px;
  color: var(--text);
}

/* =========================
   LAYOUT
========================= */

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* SECTION SYSTEM */
.section {
  padding: 100px 0;
  background: var(--readable);
  color: var(--text);
  border-top: 1px solid var(--border);
}

.section:first-of-type {
  border-top: none;
}

.section.soft {
  background: var(--soft);
}

.section.dark {
  background: var(--ink);
  color: var(--soft-light-text);
}

.section.dark h1,
.section.dark h2,
.section.dark p {
  color: var(--soft-light-text);
}

/* spacing rhythm */
.section h2 {
  margin-bottom: 24px;
}

.section p {
  margin-bottom: 22px;
  line-height: 1.75;
}

/* =========================
   HERO
========================= */

.hero {
  position: relative;
  height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;

  background: var(--ink);
  color: var(--soft-light-text);
  padding: 0 20px;
}

.hero-image {
  position: absolute;
  inset: 0;
  background-image: url("../images/hero.png");
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.hero .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.18);
}

.hero-content {
  position: relative;
  max-width: 850px;
  padding: 28px 18px;
}

.hero h1 {
  font-family: "Eyesome Script";
  font-size: 72px;
  font-weight: normal;
  line-height: 1;
  margin-bottom: 10px;
  color: var(--soft-light-text);
}

.hero h2 {
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #cfc6bb;
}

.hero p {
  font-size: 20px;
  line-height: 1.7;
  max-width: 700px;
  color: #d8cfc2;
}

/* =========================
   BUTTONS
========================= */

.buttons {
  display: flex;
  gap: 16px;
  margin-top: 35px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 14px 28px;

  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.8px;
  text-transform: uppercase;

  text-decoration: none;

  border-radius: 2px;

  transition: all 0.25s ease;
}

/* primary */
.btn.primary,
.button.primary {
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
}

.btn.primary:hover,
.button.primary:hover {
  background: transparent;
  color: var(--accent);
  transform: translateY(-2px);
}

/* secondary */
.btn.secondary,
.button.secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn.secondary:hover,
.button.secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

/* dark section buttons */
.section.dark .button.secondary {
  color: var(--soft-light-text);
  border-color: #cfc6bb;
}

/* =========================
   CTA GROUP
========================= */

.cta-group {
  display: flex;
  gap: 16px;
  margin-top: 40px;
  flex-wrap: wrap;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 900px) {
  h1 {
    font-size: 44px;
  }

  h2 {
    font-size: 28px;
  }

  p, .lead {
    max-width: 100%;
  }
}

/* =========================
   SECTION BACKGROUND IMAGES (FIXED + SAFE CLICK LAYERING)
========================= */

/* shared base fix for all image sections */
.challenges-section,
.howwework-section,
.contact-section {
  position: relative;
  overflow: hidden;
}

/* ensure content is always above overlays */
.challenges-section .container,
.howwework-section .container,
.contact-section .container {
  position: relative;
  z-index: 2;
}

/* =========================
   CHALLENGES
========================= */

.challenges-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../images/challenges.png");
  background-size: cover;
  background-position: center;
  z-index: 0;
  opacity: 0.35;
}

.challenges-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 1;
  pointer-events: none;
}

/* =========================
   HOW WE WORK
========================= */

.howwework-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../images/howwework.png");
  background-size: cover;
  background-position: center;
  z-index: 0;
  opacity: 0.35;
}

.howwework-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 1;
  pointer-events: none;
}

/* =========================
   CONTACT
========================= */

.contact-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../images/contact.png");
  background-size: cover;
  background-position: center;
  z-index: 0;
  opacity: 0.35;
}

.contact-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 1;
  pointer-events: none;
}