/* =========================================================
   GradForward theme styles
   Brand colours are CSS variables, overridden from the
   Customizer (Appearance → Customize → Brand colours).
   ========================================================= */
:root {
  --gf-ink: #14110e;
  --gf-cream: #f4efe6;
  --gf-blue: #2f5fe0;
  --gf-yellow: #ffc833;
  --gf-orange: #ff5a1f;
  --gf-green: #1f9d61;
  --gf-body: #403b33;
  --gf-muted: #6b6458;
  --gf-faint: #9a9081;
  --gf-maxw: 1340px;
}

* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family:
    "Space Grotesk",
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    sans-serif;
  color: var(--gf-ink);
  background: var(--gf-cream);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
::selection {
  background: var(--gf-blue);
  color: #fff;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  text-decoration: none;
  color: inherit;
}

.gf-serif {
  font-family: "DM Serif Display", Georgia, serif;
  font-weight: 400;
}

/* skip link */
.gf-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--gf-ink);
  color: #fff;
  padding: 12px 18px;
  z-index: 200;
}
.gf-skip:focus {
  left: 8px;
  top: 8px;
}

/* containers */
.gf-wrap {
  max-width: var(--gf-maxw);
  margin: 0 auto;
}
.gf-pad {
  padding-left: clamp(16px, 4vw, 40px);
  padding-right: clamp(16px, 4vw, 40px);
}
.gf-section {
  max-width: var(--gf-maxw);
  margin: 0 auto;
  padding: clamp(40px, 6vw, 84px) clamp(16px, 4vw, 40px) 0;
}
.gf-section:last-child {
  padding-bottom: 0;
}

/* links + buttons */
.gf-link {
  transition: opacity 0.15s ease;
}
.gf-link:hover {
  opacity: 0.6;
}
.gf-link:focus-visible {
  outline: 2px solid var(--gf-blue);
  outline-offset: 3px;
  border-radius: 2px;
}
.gf-btn {
  display: inline-block;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
  cursor: pointer;
  font-weight: 600;
}
.gf-btn:hover {
  transform: translateY(-2px);
}
.gf-btn:focus-visible {
  outline: 3px solid var(--gf-blue);
  outline-offset: 3px;
}
.gf-btn--dark {
  background: var(--gf-ink);
  color: #fff;
  padding: 15px 28px;
  font-size: 16px;
  border: 2px solid var(--gf-ink);
}
.gf-btn--orange {
  background: var(--gf-orange);
  color: #fff;
  padding: 15px 28px;
  font-size: 16px;
  border: 2px solid var(--gf-ink);
}
.gf-btn--light {
  background: #fff;
  color: var(--gf-ink);
  padding: 15px 28px;
  font-size: 16px;
  border: 2px solid var(--gf-ink);
}
.gf-btn--sm {
  padding: 12px 22px;
  font-size: 15px;
}

/* ---------- header ---------- */
.gf-header {
  position: sticky;
  top: 0;
  z-index: 80;
  max-width: var(--gf-maxw);
  margin: 0 auto;
  padding: 14px clamp(16px, 4vw, 40px);
}
.gf-header__bar {
  border: 2px solid var(--gf-ink);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 26px;
  padding: 11px clamp(14px, 2vw, 22px);
  background: #fff;
  box-shadow: 6px 6px 0 rgba(20, 17, 14, 0.12);
}
.gf-logo img {
  height: clamp(60px, 7.2vw, 92px);
  width: auto;
}
.gf-logo .gf-logo__text {
  font-family: "DM Serif Display", serif;
  font-size: 24px;
}
.gf-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(12px, 2vw, 26px);
  font-size: 15px;
  font-weight: 500;
}
.gf-nav a {
  color: var(--gf-ink);
}
.gf-nav .current-menu-item > a,
.gf-nav a[aria-current="page"] {
  box-shadow: inset 0 -3px 0 var(--gf-orange);
  padding-bottom: 2px;
}
.gf-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: clamp(12px, 2vw, 26px);
  margin: 0;
  padding: 0;
}

/* scroll progress */
.gf-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: transparent;
  z-index: 90;
}
.gf-progress__bar {
  height: 100%;
  width: 0;
  background: linear-gradient(
    90deg,
    var(--gf-orange),
    var(--gf-yellow) 40%,
    var(--gf-blue) 75%,
    var(--gf-green)
  );
  transition: width 0.08s linear;
}

/* ---------- hero / banners ---------- */
.gf-hero {
  border: 2px solid var(--gf-ink);
  padding: clamp(34px, 5vw, 72px) clamp(24px, 4vw, 56px);
  position: relative;
  overflow: hidden;
}
.gf-hero--blue {
  background: var(--gf-blue);
  color: #fff;
}
.gf-hero--orange {
  background: var(--gf-orange);
  color: #fff;
}
.gf-hero--green {
  background: var(--gf-green);
  color: #fff;
}
.gf-hero--yellow {
  background: var(--gf-yellow);
  color: var(--gf-ink);
}
.gf-hero--ink {
  background: var(--gf-ink);
  color: var(--gf-cream);
}
.gf-eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 16px;
}
.gf-h1 {
  font-family: "DM Serif Display", serif;
  font-weight: 400;
  font-size: clamp(38px, 5.6vw, 76px);
  line-height: 1;
  letter-spacing: -0.01em;
  margin: 0;
}
.gf-h2 {
  font-family: "DM Serif Display", serif;
  font-weight: 400;
  font-size: clamp(30px, 4.4vw, 56px);
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin: 0;
}
.gf-lead {
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.6;
  margin: 18px 0 0;
  max-width: 54ch;
  text-align: justify;
  text-justify: inter-word;
}

/* floating accents */
.gf-float1 {
  animation: gf-float 5s ease-in-out infinite;
}
.gf-float2 {
  animation: gf-float 6.5s ease-in-out 0.8s infinite;
}
@keyframes gf-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-14px);
  }
}
.gf-accent {
  position: absolute;
}

/* home hero split */
.gf-home-hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  border: 2px solid var(--gf-ink);
  background: #fff;
  overflow: hidden;
}
.gf-home-hero__text {
  padding: clamp(28px, 4vw, 60px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(18px, 2.5vw, 28px);
}
.gf-home-hero__media {
  border-left: 2px solid var(--gf-ink);
  min-height: clamp(280px, 40vw, 560px);
  position: relative;
  overflow: hidden;
  background: var(--gf-orange);
}
.gf-home-hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* assurance row */
.gf-assure {
  border: 2px solid var(--gf-ink);
  border-top: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  background: #fff;
}
.gf-assure > div {
  padding: clamp(26px, 3vw, 40px) clamp(20px, 2.4vw, 32px);
  border-right: 2px solid var(--gf-ink);
}
.gf-assure > div:last-child {
  border-right: none;
}
.gf-assure__big {
  font-family: "DM Serif Display", serif;
  font-size: clamp(30px, 3.4vw, 44px);
  margin: 0 0 8px;
  line-height: 1;
}

/* steps (how it works) */
.gf-steps {
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2vw, 22px);
}
.gf-step {
  border: 2px solid var(--gf-ink);
  background: #fff;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.gf-step__num {
  border-right: 2px solid var(--gf-ink);
  padding: clamp(24px, 3vw, 40px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  min-height: 200px;
}
.gf-step__num span:first-child {
  font-family: "DM Serif Display", serif;
  font-size: clamp(48px, 6vw, 80px);
  line-height: 0.9;
}
.gf-step__num span:last-child {
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.gf-step__body {
  grid-column: span 2;
  padding: clamp(24px, 3vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: center;
}

/* cards grid */
.gf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(16px, 2vw, 22px);
}
.gf-grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.gf-card {
  border: 2px solid var(--gf-ink);
  background: #fff;
  padding: clamp(24px, 2.6vw, 34px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: justify;
  text-justify: inter-word;
}
.gf-card--lift {
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
}
.gf-card--lift:hover {
  transform: translateY(-4px);
  box-shadow: 8px 8px 0 rgba(20, 17, 14, 0.14);
}
.gf-chip {
  width: 26px;
  height: 26px;
  border: 2px solid var(--gf-ink);
}
.gf-card h3 {
  font-family: "DM Serif Display", serif;
  font-weight: 400;
  font-size: 24px;
  margin: 0;
}
.gf-card p {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--gf-body);
  margin: 0;
}

/* split colour panel */
.gf-panel {
  border: 2px solid var(--gf-ink);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.gf-panel__text {
  padding: clamp(30px, 4vw, 60px);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.gf-panel__media {
  border-left: 2px solid var(--gf-ink);
  min-height: 320px;
  position: relative;
  overflow: hidden;
}
.gf-panel__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* image placeholder */
.gf-ph {
  display: flex;
  align-items: flex-end;
  padding: 16px;
  background-image: repeating-linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.05) 0,
    rgba(0, 0, 0, 0.05) 13px,
    transparent 13px,
    transparent 26px
  );
}
.gf-ph__tag {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  color: #fff;
  background: rgba(20, 17, 14, 0.5);
  padding: 6px 9px;
}

/* reviews slider */
.gf-reviews {
  overflow: hidden;
  border-top: 2px solid var(--gf-ink);
  border-bottom: 2px solid var(--gf-ink);
  background: #fff;
  padding: clamp(22px, 3vw, 34px) 0;
}
.gf-review-track {
  display: inline-flex;
  gap: 20px;
  padding: 4px;
  will-change: transform;
  animation: gf-marquee 48s linear infinite;
}
.gf-reviews:hover .gf-review-track {
  animation-play-state: paused;
}
.gf-review {
  flex: 0 0 auto;
  width: clamp(280px, 80vw, 360px);
  border: 2px solid var(--gf-ink);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.gf-review__stars {
  font-size: 18px;
  letter-spacing: 2px;
  color: var(--gf-yellow);
}
.gf-review__quote {
  font-family: "DM Serif Display", serif;
  font-style: italic;
  font-size: 19px;
  line-height: 1.35;
  margin: 0;
  text-align: justify;
  text-justify: inter-word;
}
.gf-review__who {
  font-size: 13.5px;
  margin: auto 0 0;
}

/* marquee */
.gf-marquee {
  overflow: hidden;
}
.gf-marquee-track {
  display: inline-flex;
  white-space: nowrap;
  will-change: transform;
  animation: gf-marquee 24s linear infinite;
}
.gf-marquee:hover .gf-marquee-track {
  animation-play-state: paused;
}
@keyframes gf-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* CTA */
.gf-cta {
  border: 2px solid var(--gf-ink);
  background: var(--gf-ink);
  color: var(--gf-cream);
  position: relative;
  overflow: hidden;
  padding: clamp(40px, 6vw, 86px) clamp(24px, 4vw, 56px);
}
.gf-cta__grid {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 46%;
  background-image:
    linear-gradient(rgba(244, 239, 230, 0.13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 239, 230, 0.13) 1px, transparent 1px);
  background-size: 46px 46px;
}

/* FAQ */
.gf-faq {
  border: 2px solid var(--gf-ink);
  background: #fff;
  transition: box-shadow 0.18s ease;
}
.gf-faq:hover {
  box-shadow: 5px 5px 0 rgba(20, 17, 14, 0.1);
}
.gf-faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: clamp(20px, 2.4vw, 28px);
  transition: background 0.15s ease;
}
.gf-faq summary::-webkit-details-marker {
  display: none;
}
.gf-faq summary:hover {
  background: #fff7e0;
}
.gf-faq[open] > summary {
  background: #fff7e0;
}
.gf-faq summary:focus-visible {
  outline: 3px solid var(--gf-blue);
  outline-offset: -3px;
}
.gf-faq__q {
  font-family: "DM Serif Display", serif;
  font-size: clamp(19px, 2.2vw, 26px);
  line-height: 1.2;
}
.gf-plus {
  flex: none;
  font-size: 26px;
  line-height: 1;
  color: var(--gf-orange);
  transition: transform 0.25s cubic-bezier(0.34, 1.46, 0.5, 1);
}
.gf-faq[open] .gf-plus {
  transform: rotate(135deg);
  color: var(--gf-blue);
}
.gf-faq__a {
  padding: 0 clamp(20px, 2.4vw, 28px) clamp(22px, 2.4vw, 28px);
}
.gf-faq__a p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--gf-body);
  margin: 0;
  text-align: justify;
  text-justify: inter-word;
}
.gf-faq[open] .gf-faq__a {
  animation: gf-answer 0.35s ease both;
}
@keyframes gf-answer {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* form */
.gf-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.gf-field {
  font-family: inherit;
  font-size: 16px;
  color: var(--gf-ink);
  background: #fff;
  border: 2px solid var(--gf-ink);
  padding: 13px 14px;
  width: 100%;
  outline: none;
}
.gf-field::placeholder {
  color: var(--gf-faint);
}
.gf-field:focus {
  box-shadow: 4px 4px 0 rgba(47, 95, 224, 0.35);
}
.gf-label {
  font-size: 14px;
  font-weight: 600;
  display: block;
  margin-bottom: 7px;
}
.gf-req {
  color: var(--gf-orange);
}
.gf-consent {
  border: 2px solid var(--gf-ink);
  background: #fff7e0;
  padding: 16px 18px;
}
.gf-consent label {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  cursor: pointer;
}
.gf-consent input {
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  accent-color: var(--gf-blue);
}
.gf-formrow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
}
.gf-alert {
  margin: 0;
  font-size: 14.5px;
  color: #c23a12;
  font-weight: 600;
}
.gf-notice {
  border: 2px solid var(--gf-ink);
  background: var(--gf-green);
  color: #fff;
  padding: 16px 18px;
  font-size: 15.5px;
}

/* blog */
.gf-postcard {
  border: 2px solid var(--gf-ink);
  background: #fff;
  color: var(--gf-ink);
  display: flex;
  flex-direction: column;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
}
.gf-postcard:hover {
  transform: translateY(-5px);
  box-shadow: 9px 9px 0 rgba(20, 17, 14, 0.16);
}
.gf-postcard__media {
  border-bottom: 2px solid var(--gf-ink);
  height: 170px;
  position: relative;
  overflow: hidden;
  border-bottom: 2px solid var(--gf-ink);
  height: 260px;
  position: relative;
  overflow: hidden;
}
.gf-postcard__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gf-postcard__body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  text-align: justify;
  text-justify: inter-word;
}
.gf-tag {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--gf-orange);
}
.gf-postcard h3 {
  font-family: "DM Serif Display", serif;
  font-weight: 400;
  font-size: 22px;
  line-height: 1.15;
  margin: 0;
}
.gf-meta {
  font-size: 12.5px;
  color: var(--gf-muted);
  margin-top: auto;
}

/* single post */
.gf-article {
  max-width: 760px;
  margin: 0 auto;
}
.gf-article h1 {
  font-family: "DM Serif Display", serif;
  font-weight: 400;
  font-size: clamp(30px, 4.4vw, 54px);
  line-height: 1.05;
  margin: 0 0 16px;
}
.gf-prose {
  font-size: 17px;
  line-height: 1.7;
  color: var(--gf-body);
  text-align: justify;
  text-justify: inter-word;
}
.gf-prose h2 {
  font-family: "DM Serif Display", serif;
  font-weight: 400;
  font-size: clamp(24px, 3vw, 34px);
  margin: 1.6em 0 0.5em;
  color: var(--gf-ink);
}
.gf-prose h3 {
  font-family: "DM Serif Display", serif;
  font-weight: 400;
  font-size: clamp(20px, 2.4vw, 26px);
  margin: 1.4em 0 0.5em;
  color: var(--gf-ink);
}
.gf-prose a {
  color: var(--gf-blue);
  text-decoration: underline;
}
.gf-prose img {
  border: 2px solid var(--gf-ink);
  margin: 1.2em 0;
}
.gf-prose blockquote {
  border-left: 4px solid var(--gf-yellow);
  margin: 1.2em 0;
  padding: 0.4em 0 0.4em 1.2em;
  font-family: "DM Serif Display", serif;
  font-style: italic;
  font-size: 1.2em;
  color: var(--gf-ink);
}

/* footer */
.gf-footer {
  max-width: var(--gf-maxw);
  margin: 0 auto;
  padding: clamp(40px, 6vw, 84px) clamp(16px, 4vw, 40px) 40px;
}
.gf-footer__top {
  border-top: 2px solid var(--gf-ink);
  padding-top: clamp(30px, 4vw, 48px);
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.gf-footer__brand {
  max-width: 520px;
  grid-column: auto;
}
.gf-footer__brand img {
  height: 88px;
  width: auto;
}
.gf-footer h4 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gf-faint);
  margin: 0 0 16px;
}
.gf-footer__col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.gf-footer__legal {
  font-size: 13px;
  color: var(--gf-faint);
  margin: 24px 0 0;
}
.gf-social {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  flex-wrap: wrap;
}
.gf-social a,
.gf-social span {
  font-family: ui-monospace, monospace;
  font-size: 11px;
  color: var(--gf-muted);
  border: 1px solid rgba(21, 18, 14, 0.25);
  padding: 5px 8px;
}
.gf-social__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 2px solid var(--gf-ink);
  background: #fff;
  color: var(--gf-ink);
  transition:
    transform 0.15s ease,
    background 0.15s ease,
    color 0.15s ease;
}
.gf-social__btn:hover {
  transform: translateY(-2px);
  background: var(--gf-ink);
  color: #fff;
}
.gf-social__btn:focus-visible {
  outline: 3px solid var(--gf-blue);
  outline-offset: 2px;
}
.gf-social__btn--empty {
  opacity: 0.45;
  cursor: default;
}
.gf-footer .gf-social__btn {
  border-color: rgba(21, 18, 14, 0.3);
}

/* utility text colours for dark/light contexts */
.gf-on-dark {
  color: var(--gf-cream);
}
.gf-muted {
  color: var(--gf-body);
}

/* reveal animation initial state (JS adds .is-in) */
.gf-reveal {
  opacity: 0;
  transform: translateY(34px);
  transition:
    opacity 0.7s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: opacity, transform;
}
.gf-reveal.is-in {
  opacity: 1;
  transform: none;
}
.gf-reveal--left {
  transform: translateX(-46px);
}
.gf-reveal--right {
  transform: translateX(46px);
}
.gf-reveal--pop {
  transform: translateY(30px) scale(0.94);
  transition:
    opacity 0.78s cubic-bezier(0.34, 1.46, 0.5, 1),
    transform 0.78s cubic-bezier(0.34, 1.46, 0.5, 1);
}
.gf-reveal--left.is-in,
.gf-reveal--right.is-in,
.gf-reveal--pop.is-in {
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .gf-marquee-track,
  .gf-review-track,
  .gf-float1,
  .gf-float2 {
    animation: none;
  }
  .gf-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .gf-faq[open] .gf-faq__a {
    animation: none;
  }
  .gf-plus {
    transition: none;
  }
}
