/* Nala Studio — nalastudio.co.za */

:root {
  --blue: #2445f5;
  --blue-deep: #1a35d6;
  --lime: #d6ff3f;
  --cream: #f4f3ee;
  --ink: #0d0d0d;
  --body: #2b2b2b;
  --rule: #c4c4c4;
  --rule-on-blue: rgba(244, 243, 238, 0.35);

  --container: 1200px;
  --gutter: clamp(20px, 4.4vw, 56px);
  --section-y: clamp(72px, 10vw, 128px);

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

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

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--lime);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 12px;
}

:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 3px;
}
.on-cream :focus-visible,
.contact :focus-visible {
  outline-color: var(--blue);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Type ---------- */

.display {
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.display--xl {
  font-size: clamp(3rem, 9.2vw, 8.25rem);
}

.display--lg {
  font-size: clamp(2.5rem, 6.4vw, 5.25rem);
}

.lead {
  font-size: clamp(1.0625rem, 1.6vw, 1.3125rem);
  line-height: 1.6;
}

.eyebrow {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.num {
  font-size: 0.875rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.c-blue {
  color: var(--blue);
}
.c-lime {
  color: var(--lime);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  padding: 22px 30px;
  border: 0;
  font: inherit;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background-color 0.25s, color 0.25s;
}
.btn svg {
  width: 14px;
  height: 14px;
  flex: none;
  transition: transform 0.25s var(--ease);
}
.btn:hover svg,
.btn:focus-visible svg {
  transform: translate(3px, -3px);
}

.btn--lime {
  background: var(--lime);
  color: var(--ink);
}
.btn--lime:hover {
  background: #e4ff73;
}

.btn--blue {
  background: var(--blue);
  color: var(--cream);
}
.btn--blue:hover {
  background: var(--blue-deep);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--blue);
  color: var(--cream);
  transition: box-shadow 0.3s;
}
.site-header.is-scrolled {
  box-shadow: 0 1px 0 var(--rule-on-blue);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 88px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  font-size: 1.95rem;
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1;
}
.brand svg {
  width: 36px;
  height: 36px;
  fill: var(--lime);
  transition: transform 0.5s var(--ease);
}
.brand:hover svg {
  transform: rotate(-90deg);
}

.nav__links {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__links a {
  position: relative;
  font-size: 1.0625rem;
  text-decoration: none;
  padding-block: 6px;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav__links a:hover::after,
.nav__links a[aria-current="true"]::after {
  transform: scaleX(1);
}

.nav__toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--cream);
  cursor: pointer;
}
.nav__toggle span {
  display: block;
  width: 26px;
  height: 2px;
  margin: 6px auto;
  background: currentColor;
  transition: transform 0.3s var(--ease), opacity 0.2s;
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.nav__toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav__toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 720px) {
  .nav {
    height: 72px;
  }
  .brand {
    font-size: 1.6rem;
  }
  .brand svg {
    width: 30px;
    height: 30px;
  }
  .nav__toggle {
    display: block;
  }
  .nav__links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 8px var(--gutter) 28px;
    background: var(--blue);
    border-top: 1px solid var(--rule-on-blue);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.25s, transform 0.25s var(--ease), visibility 0.25s;
  }
  .nav__links.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
  }
  .nav__links a {
    display: block;
    padding: 16px 0;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    border-bottom: 1px solid var(--rule-on-blue);
  }
  .nav__links a::after {
    display: none;
  }
  html {
    scroll-padding-top: 72px;
  }
}

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

.hero {
  background: var(--blue);
  color: var(--cream);
  padding: clamp(48px, 7vw, 96px) 0 clamp(64px, 8vw, 104px);
}
.hero h1 .line {
  display: block;
}
.hero .lead {
  max-width: 54ch;
  margin-top: clamp(28px, 4vw, 48px);
}
.hero .btn {
  margin-top: clamp(28px, 3.5vw, 44px);
}

/* ---------- Value ---------- */

.value {
  padding: var(--section-y) 0 calc(var(--section-y) * 0.6);
}
.value .lead {
  max-width: 62ch;
  margin-top: 36px;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: clamp(40px, 5vw, 56px);
}
.pillar {
  padding-top: 26px;
  border-top: 1px solid var(--rule);
}
.pillar .num {
  color: var(--blue);
}
.pillar h3 {
  margin-top: 24px;
  font-size: clamp(1.5rem, 2.3vw, 1.875rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--blue);
}
.pillar p {
  margin-top: 20px;
  color: var(--body);
  max-width: 30ch;
}

.banner {
  margin-top: clamp(56px, 7vw, 80px);
  padding: clamp(28px, 3vw, 36px) clamp(24px, 3vw, 34px);
  background: var(--lime);
}
.banner h3 {
  font-size: clamp(1.375rem, 2.6vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.15;
}
.banner p {
  margin-top: 8px;
  font-size: 1.125rem;
}

@media (max-width: 860px) {
  .pillars {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .pillar p {
    max-width: 48ch;
  }
}

/* ---------- Services ---------- */

.services {
  background: var(--blue);
  color: var(--cream);
  padding: var(--section-y) 0 calc(var(--section-y) * 0.8);
}
.services h2 {
  margin-top: 28px;
}

.service-list {
  list-style: none;
  margin: clamp(40px, 5vw, 56px) 0 0;
  padding: 0;
}
.service {
  display: grid;
  grid-template-columns: 70px 1fr 1fr;
  gap: 24px;
  padding: 40px 0 44px;
  border-top: 1px solid var(--rule-on-blue);
}
.service .num {
  padding-top: 0.9em;
}
.service h3 {
  font-size: clamp(1.625rem, 3vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.15;
  transition: color 0.3s;
}
.service:hover h3 {
  color: var(--lime);
}
.service p {
  font-size: 1.1875rem;
  line-height: 1.7;
}

@media (max-width: 860px) {
  .service {
    grid-template-columns: 48px 1fr;
    row-gap: 14px;
    padding: 32px 0;
  }
  .service p {
    grid-column: 2;
    font-size: 1.0625rem;
  }
  .service .num {
    padding-top: 0.6em;
  }
}

/* ---------- Approach ---------- */

.approach {
  padding: var(--section-y) 0;
}
.approach .lead {
  margin-top: 36px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(24px, 3vw, 38px);
  list-style: none;
  margin: clamp(36px, 4vw, 48px) 0 0;
  padding: 0;
  counter-reset: step;
}
.step {
  position: relative;
}
.step__card {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 189 / 104;
  border-radius: 16px;
  background: var(--lime);
  transition: transform 0.35s var(--ease);
}
.step:hover .step__card {
  transform: translateY(-4px);
}
.step__card .num {
  position: absolute;
  top: 16px;
  left: 16px;
  color: var(--blue);
}
.step__card svg {
  width: clamp(56px, 6.5vw, 80px);
  height: auto;
  fill: var(--blue);
}
.step:not(:last-child) .step__card::after {
  content: "";
  position: absolute;
  top: 50%;
  right: calc(clamp(24px, 3vw, 38px) / -2);
  width: 20px;
  height: 20px;
  transform: translate(50%, -50%);
  background: var(--blue);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M3 10h13M11 5l5 5-5 5' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M3 10h13M11 5l5 5-5 5' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.step h3 {
  margin-top: 28px;
  font-size: clamp(1.5rem, 2.3vw, 1.875rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--blue);
}
.step p {
  margin-top: 16px;
  color: var(--body);
  max-width: 26ch;
}

@media (max-width: 960px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 48px;
  }
  .step:nth-child(2) .step__card::after {
    display: none;
  }
}
@media (max-width: 560px) {
  .steps {
    grid-template-columns: 1fr;
  }
  .step .step__card::after {
    display: none;
  }
  .step__card {
    aspect-ratio: 16 / 7;
  }
}

/* ---------- Outcomes ---------- */

.outcomes {
  background: var(--blue);
  color: var(--cream);
  padding: clamp(64px, 7vw, 96px) 0;
}
.outcomes__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(40px, 6vw, 96px);
}
.outcomes .lead {
  margin-top: 40px;
  max-width: 32ch;
}
.outcome-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.outcome {
  padding: 20px 0 30px;
  border-top: 1px solid var(--rule-on-blue);
}
.outcome h3 {
  font-size: clamp(1.5rem, 2.4vw, 1.95rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--lime);
}
.outcome p {
  margin-top: 14px;
  font-size: 1.1875rem;
  line-height: 1.65;
}

@media (max-width: 860px) {
  .outcomes__grid {
    grid-template-columns: 1fr;
  }
  .outcome p {
    font-size: 1.0625rem;
  }
}

/* ---------- FAQ ---------- */

.faq {
  padding: var(--section-y) 0;
}
.faq-list {
  margin-top: clamp(40px, 4vw, 52px);
  border-bottom: 1px solid var(--rule);
}
.faq-item {
  border-top: 1px solid var(--rule);
}
.faq-item summary {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 24px;
  padding: 34px 0;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item h3 {
  max-width: 24ch;
  font-size: clamp(1.375rem, 2.3vw, 1.875rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.25;
  color: var(--blue);
}
.faq-item__icon {
  position: relative;
  width: 22px;
  height: 22px;
  margin-top: 8px;
  color: var(--blue);
}
.faq-item__icon::before,
.faq-item__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  margin-top: -1px;
  background: currentColor;
  transition: transform 0.3s var(--ease);
}
.faq-item__icon::after {
  transform: rotate(90deg);
}
.faq-item[open] .faq-item__icon::after {
  transform: rotate(0deg);
}
.faq-item__answer {
  padding: 0 0 36px;
  color: var(--body);
  font-size: 1.1875rem;
  line-height: 1.7;
  max-width: 54ch;
}

/* On wide screens the design shows questions and answers side by side, always visible */
@media (min-width: 861px) {
  .faq-item {
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    gap: 48px;
  }
  .faq-item summary {
    display: block;
    cursor: default;
    pointer-events: none;
  }
  .faq-item__icon {
    display: none;
  }
  .faq-item__answer {
    padding: 34px 0;
  }
  .faq-item h3 {
    max-width: 20em;
  }
}

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

.contact {
  background: var(--lime);
  color: var(--ink);
  padding: clamp(64px, 8vw, 104px) 0;
}
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
}
.contact h2 {
  font-size: clamp(2.5rem, 5.6vw, 4.5rem);
}
.contact .lead {
  margin-top: 40px;
  max-width: 34ch;
}

.form {
  display: grid;
  gap: 22px;
}
.field label {
  display: block;
  font-size: 1.125rem;
  font-weight: 500;
}
.field input,
.field textarea {
  display: block;
  width: 100%;
  margin-top: 4px;
  padding: 14px 0;
  border: 0;
  border-bottom: 2px solid rgba(13, 13, 13, 0.6);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 1.125rem;
  transition: border-color 0.2s;
}
.field textarea {
  min-height: 120px;
  resize: vertical;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--blue);
}
.field input:focus-visible,
.field textarea:focus-visible {
  outline: none;
}
.field.has-error input,
.field.has-error textarea {
  border-bottom-color: #c2160b;
}
.field__error {
  display: none;
  margin-top: 6px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #a3130a;
}
.field.has-error .field__error {
  display: block;
}
.hp {
  position: absolute;
  left: -9999px;
}

.form .btn {
  justify-self: stretch;
  margin-top: 8px;
}
.form .btn[disabled] {
  opacity: 0.7;
  cursor: progress;
}
.form__status {
  min-height: 1.6em;
  font-weight: 500;
}

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

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

.site-footer {
  background: var(--blue);
  color: var(--cream);
  padding: 36px 0;
}
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  font-size: 0.9375rem;
}
.site-footer strong {
  font-size: 1.0625rem;
  font-weight: 600;
}
.site-footer nav {
  display: flex;
  gap: 24px;
}
.site-footer a {
  text-decoration: none;
  opacity: 0.85;
}
.site-footer a:hover {
  opacity: 1;
  text-decoration: underline;
}

/* ---------- Motion ---------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
.no-js .reveal {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 520px) {
  .display--xl {
    font-size: clamp(2.25rem, 11.5vw, 3rem);
  }
}
