/* ==========================================================================
   Futureworks Creative — site stylesheet
   One file for the whole site. Colours and sizes live in the :root block
   below, so changing a brand colour there changes it everywhere.
   ========================================================================== */

/* ---------- Fonts (self-hosted, no Google/Hostinger calls) ---------- */
@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/schibsted-grotesk-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2");
}

/* ---------- Brand settings ---------- */
:root {
  --navy: #0f172a;          /* header, footer, dark heroes */
  --slate: #1e293b;         /* dark call-to-action bands */
  --ink: #0f172a;           /* main text */
  --ink-soft: #334155;      /* secondary text */
  --blue: #3b82f6;          /* buttons (logo accent blue) */
  --blue-dark: #2563eb;     /* blue text / hover */
  --blue-pale: #d0ddf8;     /* icon tiles */
  --sky: #93b4f5;           /* small labels on dark backgrounds */
  --bg: #f6f8fc;            /* page background */
  --grey: #e2e6ec;          /* grey sections */
  --white: #ffffff;
  --on-dark: #f6f8fc;
  --line-dark: rgba(246, 248, 252, 0.35);

  --font-head: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", Arial, sans-serif;

  --radius: 12px;
  --radius-lg: 16px;
  --wrap: 1064px;           /* content width */
  --wrap-wide: 1184px;      /* header width */
  --gutter: clamp(16px, 4vw, 32px);
  --section: clamp(64px, 9vw, 112px);
  --shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 110px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-dark); }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 500;
  color: inherit;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 5.2vw, 3.5rem); line-height: 1.2; letter-spacing: -0.01em; }
h2 { font-size: clamp(2rem, 4.4vw, 3.25rem); line-height: 1.15; }
h3 { font-size: clamp(1.6rem, 2.6vw, 2.125rem); line-height: 1.2; }
h4 { font-size: 1.125rem; line-height: 1.3; }
p { margin: 0 0 1em; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.section { padding-block: var(--section); }
.section--grey { background: var(--grey); }
.section--light { background: var(--bg); }
.section--white { background: var(--white); }
.section--dark { background: var(--slate); color: var(--on-dark); }
.section--navy { background: var(--navy); color: var(--on-dark); }
.eyebrow { font-size: 0.875rem; color: var(--ink-soft); margin-bottom: 1.25rem; }
.section--dark .eyebrow, .section--navy .eyebrow { color: var(--on-dark); }
.eyebrow--sky { color: var(--sky) !important; }
.lead { max-width: 46rem; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }
.accent { color: var(--blue-dark); }
.section--navy .accent { color: #2f6bea; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--white); color: var(--ink); padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--blue);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.9375rem;
  line-height: 1.2;
  text-decoration: none;
  padding: 18px 32px;
  border: 0;
  border-radius: var(--radius);
  box-shadow: 0 6px 16px rgba(59, 130, 246, 0.28);
  cursor: pointer;
  transition: background-color .2s ease, transform .2s ease;
}
.btn:hover { background: var(--blue-dark); transform: translateY(-1px); }
.btn-row { margin-top: 2rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--navy);
  color: var(--white);
}
.site-header .bar {
  width: min(100% - 2 * var(--gutter), var(--wrap-wide));
  margin-inline: auto;
  min-height: 100px;
  display: flex; align-items: center; justify-content: space-between;
}
.logo img { width: 200px; height: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 40px; }
.nav a {
  color: var(--white); text-decoration: none; font-size: 0.875rem;
  padding-bottom: 4px; border-bottom: 1px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--white); }
.menu-toggle {
  display: none; background: none; border: 0; color: var(--white);
  width: 44px; height: 44px; padding: 8px; cursor: pointer;
}
.menu-toggle svg { width: 28px; height: 28px; }

@media (max-width: 820px) {
  .site-header .bar { min-height: 66px; flex-wrap: wrap; }
  .logo img { width: 128px; }
  /* Without JavaScript the menu simply shows as a list under the logo */
  .nav { width: 100%; padding-bottom: 12px; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav a { display: block; padding: 14px 0; font-size: 1.0625rem; border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav a[aria-current="page"] { color: var(--sky); border-bottom-color: rgba(255,255,255,.08); }
  /* With JavaScript: hamburger button opens/closes it */
  .js .site-header .bar { flex-wrap: nowrap; }
  .js .menu-toggle { display: block; }
  .js .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--navy); padding: 8px var(--gutter) 24px; }
  .js .nav.is-open { display: block; }
}

/* ---------- Split layout (text + image) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 48px); align-items: center; }
.split--hero { grid-template-columns: 1fr 1.05fr; }
.split img { border-radius: var(--radius-lg); width: 100%; }
.split--reverse > :first-child { order: 2; }
@media (max-width: 820px) {
  .split, .split--hero { grid-template-columns: 1fr; }
  .split--reverse > :first-child { order: 0; }
}

/* Home hero */
.hero { background: var(--white); padding-block: clamp(48px, 7vw, 72px) clamp(64px, 9vw, 120px); }
.hero .wrap { width: min(100% - 2 * var(--gutter), var(--wrap-wide)); }
.hero h1 { color: #1d1e20; }
.hero .eyebrow { color: #1d1e20; font-size: 0.8125rem; }

/* Dark heroes (Services, Contact) */
.hero-dark { background: var(--navy); color: var(--on-dark); padding-block: clamp(72px, 9vw, 112px); }
.hero-dark h1 { font-size: clamp(2.5rem, 5.6vw, 4.5rem); line-height: 1.1; text-wrap: wrap; }
.hero-dark .lead { max-width: 60rem; }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 2.5rem; }
.card {
  background: var(--bg); border-radius: var(--radius-lg); padding: 24px 24px 32px;
  box-shadow: var(--shadow);
}
.card .icon { width: 48px; height: 48px; margin-bottom: 18px; color: var(--navy); }
.card h3 { margin-bottom: 1.4rem; }
.card p { margin: 0; font-size: 0.9375rem; }
@media (max-width: 820px) { .cards { grid-template-columns: 1fr; gap: 16px; } .card { text-align: center; } .card .icon { margin-inline: auto; } }

/* Services: image cards */
.offer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 2.5rem; }
.offer img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin-bottom: 1rem; }
.offer h3 { margin-bottom: 1.25rem; }
.offer p { font-size: 0.9375rem; }
@media (max-width: 820px) { .offer-grid { grid-template-columns: 1fr; gap: 40px; } }

/* Home: what I do rows */
.feature-rows { display: grid; gap: 24px; margin-top: 2.5rem; }
.feature-rows .split img { border-radius: 0; aspect-ratio: 4 / 3; object-fit: cover; }
.feature-rows h3 { margin-bottom: 1.25rem; }

/* Numbered steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 2.5rem; list-style: none; padding: 0; }
.steps--3 { grid-template-columns: repeat(3, 1fr); }
.steps .num { font-size: 0.8125rem; color: var(--ink-soft); display: block; margin-bottom: 1.75rem; }
.section--dark .steps .num { color: var(--on-dark); }
.steps h3 { font-size: 1.125rem; margin-bottom: 1.5rem; }
.steps p { font-size: 0.875rem; line-height: 1.55; margin: 0; }
@media (max-width: 900px) { .steps, .steps--3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps, .steps--3 { grid-template-columns: 1fr; text-align: center; } .steps .num { margin-bottom: .75rem; } }

/* Ways to work together */
.ways { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; margin-top: 2.5rem; align-items: stretch; }
.way { border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow); }
.way--main { background: #c9ced8; }
.way--alt { background: var(--grey); }
.way p { margin-bottom: 1.5rem; }
@media (max-width: 820px) { .ways { grid-template-columns: 1fr; } .way { padding: 28px 24px; } }

/* CTA strip (services) */
.cta-strip { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-strip h2 { font-size: clamp(1.75rem, 3vw, 2.125rem); }
.cta-strip p { margin: 0; font-size: 0.875rem; }

/* ---------- Contact form ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }
.form label { display: block; font-size: 0.875rem; margin-bottom: 6px; }
.form .field { margin-bottom: 18px; }
.form input, .form textarea {
  width: 100%; font: inherit; color: var(--ink);
  background: #eceef1; border: 1px solid #d5d9e0; border-radius: var(--radius);
  padding: 12px 14px;
}
.form textarea { min-height: 120px; resize: vertical; }
.form input:focus, .form textarea:focus { outline: 3px solid var(--blue); outline-offset: 1px; background: var(--white); }
.form .hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form .small { font-size: 0.8125rem; color: var(--ink-soft); margin-top: 12px; }
.promise { font-family: var(--font-head); font-size: clamp(1.125rem, 2vw, 1.25rem); line-height: 1.4; max-width: 46rem; margin-inline: auto; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: var(--on-dark); padding-block: 64px 48px; }
.site-footer .top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer-brand { max-width: 26rem; }
.footer-brand::before { content: ""; display: block; width: 48px; height: 3px; background: var(--blue-dark); margin-bottom: 24px; }
.footer-title { font-family: var(--font-head); font-size: clamp(1.75rem, 3vw, 2.125rem); line-height: 1.2; margin: 0 0 12px; }
.footer-brand p { color: #cbd5e1; }
.footer-info { text-align: right; }
.footer-nav ul { list-style: none; margin: 0 0 12px; padding: 0; display: flex; justify-content: flex-end; flex-wrap: wrap; }
.footer-nav li + li::before { content: "·"; margin: 0 12px; color: #64748b; }
.footer-nav a, .footer-label { color: var(--on-dark); text-decoration: none; text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.8125rem; }
.footer-nav a:hover { color: var(--sky); }
.footer-label { color: #60a5fa; display: block; margin-bottom: 6px; }
.footer-info p { margin: 0 0 6px; }
.footer-info a { color: var(--on-dark); text-decoration: none; }
.footer-info a:hover { text-decoration: underline; }
.site-footer .bottom {
  margin-top: 48px; padding-top: 18px; border-top: 1px solid var(--line-dark);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 0.75rem; color: #94a3b8;
}
.site-footer .bottom span + span { margin-left: 24px; }
.footer-motto { color: #60a5fa; letter-spacing: 0.12em; text-transform: uppercase; }
@media (max-width: 820px) {
  .site-footer { text-align: center; }
  .site-footer .top { justify-content: center; }
  .footer-brand::before { margin-inline: auto; }
  .footer-info { text-align: center; width: 100%; }
  .footer-nav ul { justify-content: center; }
  .site-footer .bottom { justify-content: center; text-align: center; }
  .site-footer .bottom span + span { margin-left: 0; display: block; }
}

/* About: story block (photo + text) */
.split--story { grid-template-columns: 0.75fr 1.25fr; align-items: start; }
@media (max-width: 820px) { .split--story { grid-template-columns: 1fr; } .split--story img { max-width: 433px; } }

/* Footer privacy link */
.footer-privacy { color: #94a3b8; margin-right: 24px; }
.footer-privacy:hover { color: var(--on-dark); }

/* Text pages (privacy) */
.prose { max-width: 46rem; }
.prose h2 { font-size: 1.5rem; margin-top: 2rem; }
.prose .small { font-size: 0.8125rem; color: var(--ink-soft); }
.pt-0 { padding-top: 0; }
.divider { border-top: 1px solid rgba(255, 255, 255, 0.06); }
.on-dark-link { color: var(--white); }
.hero-dark .btn-row .btn { margin: 0 8px 8px 0; }
