/* ==========================================================================
   Kreatif — styles (brand colours and fonts from the Kreatif brand manual)
   ========================================================================== */

/* ---------- Fonts (self-hosted for speed and privacy) ---------- */
@font-face { font-family: "Anton"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../assets/fonts/anton-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Anton"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../assets/fonts/anton-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Open Sauce Sans"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../assets/fonts/open-sauce-sans-latin-400-normal.woff") format("woff"); }
@font-face { font-family: "Open Sauce Sans"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../assets/fonts/open-sauce-sans-latin-700-normal.woff") format("woff"); }

/* ---------- Tokens ---------- */
:root {
  /* Brand palette (Kreatif brand manual) */
  --black: #000000;
  --navy: #00167a;
  --light: #ececea;
  --blue: #6a8aff;
  --cyan: #b2fbff;
  --gradient: linear-gradient(45deg, var(--blue), var(--cyan));
  /* Supporting tones */
  --card: #212121;
  --white: #ffffff;
  --grey: #b3b3b3;
  --line: rgba(255, 255, 255, 0.45);

  --display: "Anton", Impact, "Arial Narrow", sans-serif;
  --body: "Open Sauce Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;

  --container: 1340px;
  --radius: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--black); color: var(--white);
  font-family: var(--body); font-size: 18px; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 400; line-height: 1.05; margin: 0; }

.container { width: min(100% - 64px, var(--container)); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--white); color: var(--black); padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { left: 16px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.header-bar :focus-visible, .section-white :focus-visible, .section-blue :focus-visible { outline-color: var(--navy); }

/* ---------- Header (floating white bar) ---------- */
.site-header { position: sticky; top: 0; z-index: 50; padding: 28px 28px 0; pointer-events: none; }
.page-home .site-header { position: absolute; left: 0; right: 0; }
.header-bar {
  pointer-events: auto;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 32px;
  max-width: 1384px; margin: 0 auto;
  background: var(--light); color: var(--black);
  border-radius: 22px; padding: 14px 48px;
  min-height: 136px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}
.logo { display: block; flex: none; width: 112px; }
.logo img { width: 100%; height: auto; }
.header-bar .logo { width: 112px; }

.main-nav ul { display: flex; gap: clamp(24px, 5vw, 80px); list-style: none; margin: 0; padding: 0; }
.main-nav a {
  font-size: 20px; text-transform: uppercase; text-decoration: none; letter-spacing: 0.01em;
  text-underline-offset: 6px;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 1.5px; }

.nav-toggle { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; text-align: center;
  background: var(--gradient); color: var(--navy);
  border: 3px solid var(--black); border-radius: var(--radius);
  font-family: var(--body); font-weight: 700; text-transform: uppercase; text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}
.btn:hover { filter: brightness(1.08) saturate(1.1); transform: translateY(-2px); }
.btn-hero { width: 388px; min-height: 230px; padding: 24px 92px; font-size: 34px; line-height: 1.35; }
.btn-small {
  width: 250px; max-width: 100%; min-height: 114px; padding: 16px;
  border: 0; color: var(--navy); text-transform: none; font-weight: 400; font-size: 18px;
}

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; min-height: 1080px; max-height: 100vh;
  height: 1080px;
  display: grid; place-items: center; text-align: center; overflow: hidden;
  padding: 200px 24px 80px;
}
.hero-media, .hero-media video, .hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.35); }
.hero-content { position: relative; max-width: 1200px; }
.hero h1 { font-size: clamp(54px, 8vw, 108px); text-transform: uppercase; line-height: 0.95; margin-bottom: 44px; }
.hero h1 span { display: block; }
@media (min-width: 1000px) { .hero h1 span { white-space: nowrap; } }
.hero p { font-size: 20px; max-width: 700px; margin: 0 auto 56px; }

/* ---------- Generic sections ---------- */
.section { padding: 64px 0 72px; }
.section-title { font-size: clamp(44px, 6vw, 81px); text-transform: uppercase; margin-bottom: 36px; }
.section-white { background: var(--light); color: var(--black); }
.section-blue { background: var(--gradient); color: var(--navy); }

/* Anton headings on dark backgrounds get the brand gradient, as in the brand manual */
.section-title, .page-hero h1, .about h1, .team h1, .not-found h1 {
  background: var(--gradient); -webkit-background-clip: text; background-clip: text;
  color: var(--blue); -webkit-text-fill-color: transparent;
  width: fit-content; max-width: 100%;
}
.center .section-title, .contact-band .section-title, .about h1, .not-found h1 { margin-inline: auto; }
.section-white .section-title, .section-blue .section-title {
  background: none; -webkit-text-fill-color: currentColor; color: var(--navy);
}
.center { text-align: center; }

/* Home: services cards */
.service-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; list-style: none; margin: 0; padding: 0; }
.service-card {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 434px; padding: 44px; border-radius: var(--radius);
  background: var(--card); text-decoration: none; transition: background 0.25s, transform 0.25s;
}
.service-card.is-featured, .service-card:hover { background: var(--gradient); color: var(--navy); }
.service-card:hover { transform: translateY(-4px); }
.service-card h3 { font-size: 36px; text-transform: uppercase; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.service-card p { margin: 12px 0 0; font-size: 16px; opacity: 0.85; }

/* Home: why us */
.why-us p { max-width: 960px; margin: 0 auto; font-size: 20px; }

/* Contact band */
.contact-band { text-align: center; padding: 72px 0 84px; scroll-margin-top: 180px; }
.contact-band .section-title { margin-bottom: 28px; }
.contact-band address { font-style: normal; font-size: 20px; line-height: 1.4; }
.contact-band a { text-decoration: none; }
.contact-band a:hover { text-decoration: underline; }

/* Quick links */
.quick-links { padding: 64px 0 40px; }
.quick-links .section-title { letter-spacing: 0.05em; }
.quick-links ul {
  list-style: none; margin: 0 auto; padding: 0; max-width: 640px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px 24px; text-align: center;
}
.quick-links a { font-size: 20px; text-underline-offset: 4px; }

/* ---------- Footer ---------- */
.site-footer { text-align: center; padding: 120px 0 36px; }
.site-footer .logo { width: 62px; margin: 0 auto 18px; }
.social { display: inline-flex; align-items: center; gap: 18px; font-size: 18px; text-underline-offset: 4px; }
.social-icon { width: 28px; height: 28px; border-radius: 50%; background: var(--gradient); display: grid; place-items: center; }
.social-icon svg { width: 15px; height: 15px; }
.copyright { margin: 80px 0 0; color: var(--grey); font-size: 15.75px; }

/* ---------- Inner pages ---------- */
.page-hero { padding: 40px 0 60px; }
.page-hero h1 { font-size: clamp(56px, 7.5vw, 108px); }
.eyebrow { font-family: var(--body); font-size: 20px; margin: 0 0 4px; color: var(--blue); }
.subhead { font-size: 36px; margin-bottom: 40px; }

/* Services: specialised areas */
.areas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; padding-bottom: 120px; }
.areas article { scroll-margin-top: 200px; }
.areas h3 { font-family: var(--body); font-size: 18px; margin-bottom: 18px; line-height: 1.4; }
.areas h3 span { margin-right: 12px; }
.areas p { font-size: 17px; text-align: justify; }

/* Services: solutions list */
.solutions { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line); }
.solution {
  display: grid; grid-template-columns: 1fr 1.25fr 1fr; gap: 56px; align-items: start;
  border-top: 1px solid var(--line); padding: 14px 0 100px;
}
.solution-num { font-size: 18px; margin: 0 0 14px; }
.solution h3 { font-size: 20.25px; margin-bottom: 16px; }
.solution p { font-size: 17px; margin: 0; }
.solution img { width: 100%; height: auto; max-width: 330px; aspect-ratio: 3 / 2; object-fit: cover; justify-self: end; }

/* About */
.about { text-align: center; padding: 160px 0 60px; }
.about h1 { font-size: clamp(56px, 6vw, 81px); text-transform: uppercase; margin-bottom: 32px; }
.about p { max-width: 1160px; margin: 0 auto 1.4em; font-size: 20px; line-height: 1.38; }

/* Team */
.team { padding: 60px 0 40px; }
.panel { border: 1px solid var(--line); background: var(--card); padding: 36px 44px 20px; }
.panel + .panel { margin-top: 8px; padding-bottom: 110px; }
.team h1 { font-size: clamp(64px, 7.5vw, 108px); text-transform: uppercase; margin-bottom: 40px; }
.team .panel > p { max-width: 540px; font-size: 18px; }
.member { width: 414px; max-width: 100%; }
.member h2 { font-size: 30px; margin: 30px 22px 4px; }
.member .role { margin: 0 22px 20px; }
.member-photo { position: relative; }
.member-photo img { width: 100%; height: auto; border-radius: 4px; }
.member-social {
  position: absolute; left: 22px; bottom: -48px; width: 330px; max-width: calc(100% - 44px);
  min-height: 114px; display: grid; place-items: center;
  background: var(--gradient); color: var(--navy); border-radius: var(--radius);
  text-decoration: none; font-size: 18px;
}
.member-social:hover { filter: brightness(1.08) saturate(1.1); }

/* 404 */
.not-found { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 120px 0; }
.not-found h1 { font-size: clamp(80px, 14vw, 180px); }
.not-found .btn { width: auto; min-height: 0; padding: 18px 32px; font-size: 20px; margin-top: 24px; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .service-cards { grid-template-columns: 1fr; }
  .service-card { min-height: 0; padding: 24px 28px; }
  .areas { grid-template-columns: 1fr; padding-bottom: 60px; }
  .areas p { text-align: left; }
  .solution { grid-template-columns: 1fr; gap: 20px; padding-bottom: 56px; }
  .solution img { justify-self: start; max-width: 520px; }
}

@media (max-width: 820px) {
  body { font-size: 16px; }
  .container { width: min(100% - 48px, var(--container)); }
  .site-header { padding: 14px 14px 0; }
  .header-bar {
    display: flex; justify-content: space-between;
    position: relative; min-height: 64px; padding: 6px 18px 6px 28px;
    border: 3px solid var(--black); border-radius: 999px;
  }
  .header-bar .logo { width: 40px; }
  .nav-toggle {
    display: grid; gap: 6px; place-content: center;
    width: 44px; height: 44px; background: none; border: 0; cursor: pointer; padding: 0;
  }
  .nav-toggle span { display: block; width: 26px; height: 2px; background: var(--black); transition: transform 0.25s, opacity 0.25s; }
  .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); }
  .main-nav {
    position: absolute; top: calc(100% + 10px); left: 0; right: 0;
    background: var(--light); border-radius: 24px; padding: 20px 28px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
    display: none;
  }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; gap: 6px; }
  .main-nav a { display: block; padding: 10px 0; font-size: 18px; }

  .hero { height: auto; min-height: 760px; max-height: none; padding: 140px 24px 80px; }
  .hero p { font-size: 17px; margin-bottom: 40px; }
  .btn-hero { width: 100%; max-width: 320px; min-height: 0; padding: 18px; font-size: 26px; }
  .section { padding: 72px 0; }
  .why-us p, .contact-band address, .about p { font-size: 17px; }
  .quick-links ul { grid-template-columns: 1fr; gap: 18px; }
  .site-footer .logo { width: 120px; }
  .page-hero { padding: 64px 0 32px; }
  .subhead { font-size: 30px; }
  .about { padding-top: 100px; }
  .panel { padding: 28px 22px 20px; }
  .member h2 { margin-inline: 0; }
  .member .role { margin-inline: 0; }
  .member-social { left: 16px; min-height: 80px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
