@font-face {
  font-family: "29LT Zarid Display";
  src: url("../fonts/29LT-Zarid-Display-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --dark: #232323;
  --off-white: #faf9f7;
  --blue-primary: #24477C;
  --blue-accent: #266FA5;

  --font-heading: "Montserrat", sans-serif;
  --font-zarid: "29LT Zarid Display", serif;

  --nav-height: 76px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html, body {
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 400;
  color: var(--dark);
  background: var(--off-white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, form {
  margin: 0;
}

.section__inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 32px;
}

section {
  padding: 120px 0;
}

@media (max-width: 640px) {
  section {
    padding: 80px 0;
  }
}

/* ---------- Shared brand mark ---------- */

.logo-mark {
  display: inline-block;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  background-color: var(--off-white);
  -webkit-mask-image: url("../assets/zafira-z-final.svg");
  mask-image: url("../assets/zafira-z-final.svg");
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.gem-mark-step {
  display: inline-block;
  width: 50px;
  height: 50px;
  flex-shrink: 0;
}

.gem-mark {
  display: inline-block;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}

.nav__brand,
.footer .nav__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35em;
  font-size: 1.15rem;
  line-height: 1;
}

.wordmark__zafira {
  font-family: var(--font-heading);
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--off-white);
}

.wordmark__digital {
  font-family: var(--font-zarid);
  font-weight: 400;
  text-transform: lowercase;
  color: var(--off-white);
  font-size: 1.05em;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 12px 26px;
  border-radius: 4px;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
  border: 1px solid transparent;
}

.btn--outline {
  border-color: var(--off-white);
  color: var(--off-white);
  background: transparent;
}

.btn--outline:hover {
  background: var(--blue-accent);
  border-color: var(--blue-accent);
  color: var(--off-white);
}

.btn--solid {
  background: var(--blue-accent);
  color: var(--off-white);
  border-color: var(--blue-accent);
  margin-top: 44px;
}

.btn--solid:hover {
  background: var(--off-white);
  color: var(--blue-accent);
  border-color: var(--blue-accent);
}

.btn--submit {
  background: var(--blue-primary);
  color: var(--off-white);
  border: none;
  font-size: 1rem;
  padding: 14px 32px;
}

.btn--submit:hover {
  background: var(--blue-accent);
}

/* ---------- Nav ---------- */

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

.nav__inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 32px;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ---------- Hero ---------- */

.hero {
  background: var(--dark);
  padding-top: 140px;
  padding-bottom: 140px;
}

.hero__grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}

.hero__content {
  flex: 1 1 auto;
}

.hero__mark {
  flex-shrink: 0;
  width: clamp(140px, 18vw, 240px);
  height: auto;
}

.hero__mark svg {
  width: 100%;
  height: auto;
  display: block;
}

.hero__mark .mark-top {
  fill: var(--off-white);
}

.hero__mark .mark-bottom {
  fill: var(--blue-primary);
}

@media (max-width: 800px) {
  .hero__grid {
    flex-direction: column;
    align-items: flex-start;
    gap: 40px;
  }

  .hero__mark {
    width: clamp(100px, 30vw, 160px);
    align-self: center;
    order: -1;
  }
}

.hero__headline {
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--off-white);
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  max-width: min(16ch, 100%);
}

.hero__sub {
  font-family: var(--font-zarid);
  font-weight: 400;
  color: var(--off-white);
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  line-height: 1.6;
  max-width: 42ch;
  margin-top: 32px;
  opacity: 0.92;
}

/* ---------- Section headlines (shared) ---------- */

.section__headline {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.9rem, 3.6vw, 2.6rem);
  color: var(--dark);
  max-width: min(18ch, 100%);
  line-height: 1.2;
}

.section__headline--light {
  color: var(--off-white);
}

/* ---------- Problem ---------- */

.problem {
  background: var(--off-white);
}

.problem__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 64px;
}

.problem__point {
  font-family: var(--font-zarid);
  font-style: italic;
  font-weight: 400;
  font-size: 1.5rem;
  line-height: 1.6;
  color: var(--dark);
}

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

/* ---------- How it works ---------- */

.how {
  background: var(--dark);
}

.how__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  margin-top: 64px;
}

.how__step p {
  font-family: var(--font-heading);
  font-weight: 400;
  color: var(--off-white);
  font-size: 1.05rem;
  line-height: 1.6;
  opacity: 0.92;
}

.how__number {
  display: block;
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--blue-accent);
  font-size: 2.2rem;
  margin-bottom: 18px;
}

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

/* ---------- What you get ---------- */

.get {
  background: var(--off-white);
}

.get__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 64px;
}

.get__card {
  border: 1.5px solid var(--dark);
  border-radius: 4px;
  padding: 32px 24px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--dark);
  min-height: 120px;
  display: flex;
  align-items: center;
}

@media (max-width: 900px) {
  .get__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* ---------- For who ---------- */

.forwho {
  background: var(--blue-primary);
}

.forwho .section__headline {
  color: var(--off-white);
  max-width: min(22ch, 100%);
}

.forwho__body {
  font-family: var(--font-heading);
  font-weight: 400;
  color: var(--off-white);
  font-size: 1.15rem;
  line-height: 1.65;
  max-width: 56ch;
  margin-top: 28px;
  opacity: 0.95;
}

/* ---------- Contact ---------- */

.contact {
  background: var(--off-white);
}

.contact__form {
  margin-top: 56px;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field label {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--dark);
}

.field input,
.field textarea {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 1rem;
  color: var(--dark);
  background: transparent;
  border: none;
  border-bottom: 1.5px solid var(--dark);
  padding: 10px 2px;
  resize: vertical;
  transition: border-color 0.2s ease;
}

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

.btn--submit {
  align-self: flex-start;
  margin-top: 8px;
}

/* ---------- Footer ---------- */

.footer {
  background: var(--dark);
  padding: 40px 0;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer__meta {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--off-white);
  opacity: 0.75;
}

.footer__contact {
  display: flex;
  gap: 24px;
  align-items: center;
}

.footer__link {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 0.9rem;
  color: var(--off-white);
  text-decoration: none;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.footer__link:hover {
  opacity: 1;
}

/* ---------- Light-background logo/wordmark override ---------- */

.get .logo-mark,
.problem .logo-mark,
.contact .logo-mark {
  background-color: var(--blue-primary);
}

/* ---------- Links / hover states ---------- */

a {
  color: inherit;
}

a:hover {
  color: var(--blue-accent);
}

.nav__brand:hover .wordmark__zafira,
.nav__brand:hover .wordmark__digital {
  color: inherit;
}

/* ---------- Scroll offset for sticky nav ---------- */

section[id] {
  scroll-margin-top: var(--nav-height);
}

/* ---------- Mobile nav tweaks ---------- */

@media (max-width: 480px) {
  .wordmark {
    font-size: 1rem;
  }

  .nav__inner {
    padding: 0 20px;
  }

  .btn--outline {
    padding: 10px 18px;
    font-size: 0.85rem;
  }
}
