/* =========================================
   1. DESIGN TOKENS (CUSTOM PROPERTIES)
   ========================================= */

:root {
  --colour-bg: #ffffff;          /* Pure white – clean, neutral foundation */
  --colour-nav: #195274;         /* Deep navy – premium header tone */
  --colour-text: #111111;        /* Almost-black – high-contrast body text */
  --colour-muted: #5fc0a1;       /* Mid-grey – subdued supporting text */
  --colour-primary: #4eaecd;     /* Strong blue – main action colour */
  --colour-accent: #f3c25b;      /* Warm gold – highlight / accent */

  --radius-pill: 999px;

  --space-xs: 4px;
  --space-s: 8px;
  --space-m: 16px;
  --space-l: 24px;
  --space-xl: 40px;

  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

/* =========================================
   2. BASE / RESET
   ========================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--colour-bg);
  color: var(--colour-text);
  line-height: 1.5;
}
html, body {
  overflow-x: hidden;
}

/* =========================================
   3. LAYOUT UTILITIES
   ========================================= */

.container {
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: 20px;
}

.section {
  padding-block: 60px;
}

/* generic grid helpers */

.grid {
  display: grid;
  gap: 24px;
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.grid-5 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

/* section spacing on larger screens */
@media (min-width: 900px) {
  .section {
    padding-block: 80px;
  }
}

.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 46px;
  height: 46px;

  border-radius: 50%;
  border: none;
  cursor: pointer;

  background: var(--colour-primary);
  color: #fff;
  font-size: 22px;
  line-height: 46px;
  text-align: center;

  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);

  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;

  transition:
    opacity 300ms ease,
    transform 300ms ease,
    background 200ms ease;
}

/* Visible state */
.back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Hover effect */
.back-to-top:hover {
  background: #003553; /* Slightly darker shade of your primary colour */
}


/* ============================
   GENERIC FADE-UP ANIMATION
   ============================ */

[data-fade] {
  opacity: 0;
  transform: translateY(28px);
  filter: blur(6px);
  transition:
    opacity 700ms ease-out,
    transform 700ms ease-out,
    filter 900ms ease-out;
}

[data-fade].is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}


/* =========================================
   4. COMPONENTS
   ========================================= */

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 26px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}

.btn-primary {
  background: var(--colour-primary);
  border-color: var(--colour-primary);
  color: #fff;
}

.btn-primary:hover {
  background: #003553;
  border-color: #003553;
}

.btn-ghost {
  background: transparent;
  border-color: #fff;
  color: #fff;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* ---------- Header / Navigation ---------- */

header.site-header {
  line-height: 60px;
  background: var(--colour-nav);

  position: sticky;
  top: 0;
  z-index: 1000;      /* stay above hero + content */

  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(10px);         /* nice glassy feel on supported browsers */
  transition:
    background 200ms ease,
    box-shadow 200ms ease,
    transform 200ms ease;
}

header.site-header a {
  color: var(--colour-bg);
  text-decoration: none;
}

header .nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1440px;
  margin: 0 auto;
  padding-block: 18px;
  transition: padding-block 200ms ease;
  line-height: 1rem;
}

header .nav-toggle {
  display: none;
}

header .main-nav {
  display: flex;
  gap: 24px;
  font-size: 14px;
}

.site-header.is-scrolled {
  background: var(--colour-nav);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.site-header.is-scrolled .nav-inner {
  padding-block: 10px;
}

.main-nav a {
  position: relative;
  padding: 0 6px;
  font-size: 0.95rem;
  text-decoration: none;
  color: #ffffff;
}

/* animated underline */
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.4);
  transform-origin: center;
  transform: scaleX(0);
  transition: transform 180ms ease-out;
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after {
  transform: scaleX(1);
}

/* ===========================
   MOBILE NAV (hamburger)
   =========================== */
@media (max-width: 900px) {
  header .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: transparent;
    color: #fff;
    border-radius: 999px;
    cursor: pointer;
  }

  header .main-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%; /* directly under sticky header */
    display: none; /* hidden until toggled */
    flex-direction: column;
    gap: 12px;

    padding: 18px 20px 22px;
    background: var(--colour-nav);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }

  /* Show when opened */
  header .main-nav.is-open {
    display: flex;
  }

  /* Make links easier to tap */
  header .main-nav a {
    padding: 10px 0;
  }

  /* Ensure the dropdown positions relative to the header container */
  header .nav-inner {
    position: relative;
  }
}



/* ---------- Hero ---------- */

/* =======================
   HERO SECTION
   ======================= */

.hero {
  position: relative;
  height: 80vh;
  min-height: 480px;
  overflow: hidden;
}

/* hero slides container */
.hero-slides {
  position: absolute;
  inset: 0;
}

/* individual slide */
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.hero-slide.is-active {
  opacity: 1;
}

/* overlay content wrapper */
.hero-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  padding-inline: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
}

/* dark gradient overlay over the image */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.25),
    rgba(0, 0, 0, 0.45)
  );
  z-index: 1;
}

/* HERO TEXT + BUTTONS
   (with premium fade-up animation)
*/

.hero-content {
  text-align: center;

  /* initial state for animation */
  opacity: 0;
  transform: translateY(28px);
  filter: blur(4px);
  transition:
    opacity 800ms ease-out,
    transform 800ms ease-out,
    filter 900ms ease-out;
}

.hero-content.is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.hero-title {
  font-size: clamp(32px, 4vw, 54px);
  margin-bottom: 24px;

  /* initial state (slight offset) */
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 700ms ease-out 150ms,
    transform 700ms ease-out 150ms;
}

.hero-title.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-actions {
  display: inline-flex;
  gap: 12px;
  justify-content: center;

  /* initial state (slightly lower + later) */
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 700ms ease-out 350ms,
    transform 700ms ease-out 350ms;
}

.hero-actions.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* mobile tweaks */
@media (max-width: 600px) {
  .hero-actions {
    flex-wrap: wrap;
    gap: 8px;
  }
}


/* ---------- Home: About section ---------- */

.section-about {
  background: var(--colour-bg);
}

/* two-column layout on desktop, single column on mobile */
.about-layout {
  display: grid;
  gap: 40px;
  align-items: flex-start;
}

.about-copy {
  width: 100%;
}

.about-copy p {
  margin-top: 0;
  margin-bottom: 1.1rem;
  font-size: 1.2rem;
}

/* small label above headings */
.eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--colour-muted);
  margin-bottom: 1.5rem;
}

.about-stats {
  width: 100%;
}

.stat-block {
  background: #ffffff;
  border-radius: 12px;
  padding: 24px 28px;
  border: 1px solid #e1e5ea;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.stat-block h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-size: 1.4rem;
}

.stat-block p {
  margin-top: 0;
  margin-bottom: 1.5rem;
  color: var(--colour-text);
}

/* keep the button from stretching full-width */
.stat-block .btn {
  display: inline-flex;
}

/* layout tweaks for larger screens */
@media (min-width: 900px) {
  .about-layout {
    grid-template-columns: minmax(0, 2fr) minmax(0, 2fr);
  }

  .about-stats {
    margin-top: 3rem;
  }
}

/* ---------- Home: Case studies ---------- */

.section-case-studies {
  background: #ffffff;
}

.section-case-studies h2 {
  margin-bottom: 2.2rem;
  font-size: 2rem;
  font-weight: 600;
}

/* refine spacing inside grid */
.case-grid {
  gap: 32px;
}

/* card wrapper */
.case-card {
  display: block;
}

.case-card a {
  display: block;
  text-decoration: none;
  color: inherit;
}

/* visual card */
.case-card figure {
  margin: 0;
  overflow: hidden;
  border-radius: 12px;
  position: relative;
  background: var(--colour-bg);
}

/* image */
.case-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition:
    transform 0.5s ease,
    opacity 0.4s ease;
}

/* subtle zoom on hover */
.case-card:hover img {
  transform: scale(1.05);
  opacity: 0.9;
}

/* caption */
.case-card figcaption {
  padding: 16px 0 6px 0;
}

.case-card h3 {
  font-size: 1.2rem;
  margin: 0 0 4px 0;
  font-weight: 600;
}

.case-link {
  font-size: 0.93rem;
  color: var(--colour-primary);
  font-weight: 500;
  opacity: 0.9;
  transition: opacity 0.2s ease;
}

.case-card:hover .case-link {
  opacity: 1;
}

/* responsive adjustments */
@media (max-width: 900px) {
  .case-grid {
    gap: 28px;
  }
}

@media (max-width: 600px) {
  .case-grid {
    gap: 22px;
  }

  .case-card h3 {
    font-size: 1.1rem;
  }
}

/* Stack case study cards vertically on mobile */
@media (max-width: 768px) {
  .case-grid {
    grid-template-columns: 1fr !important;
    gap: 32px;
  }

  .case-card figure {
    border-radius: 10px;
  }

  .case-card h3 {
    font-size: 1.25rem;
  }
}


/* ---------- Home: Sectors ---------- */

.section-sectors {
  background: #ffffff;
}

.sectors-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr);
  gap: 64px;
  align-items: center;
}

.sectors-content {
  max-width: 540px;
}

/* general link colour inside sectors */
#sectors a {
  color: #212121;
}

/* sector rows */

.sector-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 10px;
  border-bottom: 1px solid #e0e4ea;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition:
    opacity 180ms ease,
    background 180ms ease;
}

.sector-item:first-of-type {
  border-top: 1px solid #e0e4ea;
}

/* inner pieces */

.plus {
  margin-right: 12px;
  font-size: 22px;
  font-weight: 300;
  width: 20px;
  flex-shrink: 0;
  transition:
    transform 180ms ease,
    opacity 180ms ease;
}

.text {
  flex-grow: 1;
  font-size: 2rem;
  font-weight: 500;
  transition: transform 180ms ease;
}

.arrow {
  font-size: 1.4rem;
  margin-left: 20px;
  flex-shrink: 0;
  transition:
    transform 180ms ease,
    opacity 180ms ease;
}

/* hover / focus states */

.sector-item:hover,
.sector-item:focus-visible {
  opacity: 0.9;
}

.sector-item:hover .text,
.sector-item:focus-visible .text {
  transform: translateX(2px);
}

.sector-item:hover .arrow,
.sector-item:focus-visible .arrow {
  transform: translateX(6px);
}

.sector-item:hover .plus,
.sector-item:focus-visible .plus {
  transform: translateY(-1px);
  opacity: 0.7;
}

/* active state (for filtered projects page) */

.sector-item.is-active .text {
  font-weight: 600;
}

.sector-item.is-active .arrow {
  transform: translateX(6px);
}

/* image column */

.sectors-image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
}

.sectors-image.small img {
  width: 70%;
  margin-left: auto;
} 

/* sectors responsive layout */

@media (max-width: 900px) {
  .sectors-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .sectors-image {
    width: 100%;
    align-items: center;
  }

  .sectors-image.small img {
    width: 100%;
  }
}

/* ---------- Home: Client logos ---------- */

.section-clients {
  background: #ffffff;
}

.section-clients h2 {
  margin-bottom: 2rem;
  font-size: 2rem;
  font-weight: 600;
}

/* refine grid for this section */
.clients-grid {
  gap: 20px;
  align-items: center;
  justify-items: center;
}

/* placeholder tiles */
.client-logo-placeholder {
  width: 265px;
  height: 130px;
  background: #f2f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: #9ba2a8;
}

/* actual logo wrapper */
.client-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}

.client-logo img,
.client-logo svg {
  max-width: 140px;
  max-height: 60px;
  width: auto;
  height: auto;
  filter: grayscale(100%) opacity(0.8);
  transition:
    filter 0.3s ease,
    opacity 0.3s ease;
}

.client-logo:hover img,
.client-logo:hover svg {
  filter: grayscale(0%) opacity(1);
}

/* client logos responsive tweaks */
@media (max-width: 900px) {
  .clients-grid {
    gap: 32px;
  }

  .client-logo-placeholder {
    width: 130px;
    height: 70px;
  }
}

@media (max-width: 600px) {
  .clients-grid {
    gap: 26px;
  }

  .client-logo-placeholder {
    width: 120px;
    height: 65px;
  }
}

/* Make client logos layout properly on small screens */
@media (max-width: 1400px) {
  .clients-grid {
    /* override the generic .grid-4 behaviour */
    grid-template-columns: repeat(4, minmax(0, 1fr));
    justify-items: stretch;
    gap: 16px;
  }

  .client-logo-placeholder,
  .client-logo {
    width: 100%;
    height: 120px;
  }
}

@media (max-width: 768px) {
  .clients-grid {
    /* override the generic .grid-4 behaviour */
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-items: stretch;
    gap: 16px;
  }

  .client-logo-placeholder,
  .client-logo {
    width: 100%;
    height: 80px;
  }
}

/* very small phones: single column */
@media (max-width: 480px) {
  .clients-grid {
    grid-template-columns: 1fr;
    wid
  }
}

/* ===========================
   CLIENT LOGOS - FIX MOBILE OVERFLOW
   =========================== */

.section-clients .clients-grid {
  /* Override the .grid-5 column rule for this section */
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  justify-items: center;
  align-items: center;
}

/* Mobile: 2 columns */
@media (max-width: 600px) {
  .section-clients .clients-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
}

.section-clients .client-logo,
.section-clients .client-logo-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #f2f4f6;
  display: grid;
  place-items: center;
  overflow: hidden;
}

/* Keep logos from “bleeding” out */
.section-clients .client-logo img,
.section-clients .client-logo svg {
  display: block;
  max-width: 100%;
  max-height: 60%;
  width: auto;
  height: auto;
}




/* ---------- Home: News ---------- */

/* ===========================
   NEWS CARDS
   =========================== */

.news-card a {
  display: block;
  color: #212121;
  text-decoration: none;
}

.news-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 8px;
  background: #f2f4f6;
  margin-bottom: 14px;
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 400ms ease, opacity 300ms ease;
}

/* subtle hover polish */
.news-card:hover .news-image img {
  transform: scale(1.04);
  opacity: 0.9;
}

.news-card h3 {
  font-size: 1.1rem;
  margin: 0 0 4px;
}

.news-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--colour-primary);
}

@media (max-width: 900px) {
  .news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }
}

@media (max-width: 600px) {
  .news-grid {
    grid-template-columns: 1fr; /* single column on mobile */
  }
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--colour-primary);
  padding: 60px 0 40px 0;
  border-top: 1px solid #e2e6ea;
  color: #fff;
  font-size: 0.95rem;
}

/* top footer layout (three columns) */
.footer-layout {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid #dcdfe3;
}

.footer-column h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #fff;
}

/* navigation list */
.footer-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-nav li {
  margin-bottom: 0.4rem;
}

.footer-nav a {
  text-decoration: none;
  color: #ffffff;
  transition: opacity 0.2s ease;
}

.footer-nav a:hover {
  opacity: 0.7;
}

/* contact / address text */
.footer-column p {
  margin: 0.4rem 0;
  line-height: 1.5;
}

.footer-column a {
  color: #ffffff;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.footer-column a:hover {
  opacity: 0.7;
}

/* bottom bar */
.footer-bottom {
  text-align: center;
  padding-top: 30px;
  font-size: 0.85rem;
  color: #fff;
}

.footer-bottom a {
  color: #fff;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.footer-bottom a:hover {
  opacity: 0.7;
}

/* footer responsive layout */
@media (max-width: 900px) {
  .footer-layout {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .footer-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .site-footer {
    text-align: center;
  }

  .footer-layout {
    text-align: center;              
    justify-items: center;          
  }

  .footer-column {
    display: flex;
    flex-direction: column;
    align-items: center;             
  }

  .footer-nav li {
    text-align: center;
  }

  .footer-bottom {
    text-align: center;
  }
}

/* ---------- About: About ---------- */

.section-about h2 {
  margin-bottom: 2rem;
  font-size: 2rem;
  font-weight: 600;
}

/* ---------- About: Testimonials ---------- */
.testimonials {
  background: #e6eef3;          /* pale blue / grey, tweak as needed */
  padding: 80px 40px;
}

.testimonials-inner {
  max-width: 900px;
  margin: 0 auto;
}

/* Heading */
.testimonials-label {
  font-size: 18px;
  margin: 0 0 24px 0;
}

/* Main copy */
.testimonials-text {
  font-size: 1.2em;
  line-height: 1.4;
  margin: 0 0 40px 0;
  max-width: 720px;             /* keeps line length comfortable */
  white-space: pre-line;
}

/* Controls */
.testimonials-controls {
  display: flex;
  gap: 16px;
}

/* Circular arrow buttons */
.testimonial-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid #111;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
}

.icon-arrow {
  width: 20px;    /* control size here */
  height: 20px;
}

.icon-arrow svg {
  display: block;
  width: 100%;
  height: 100%;
  /* tiny nudge if you want it absolutely pixel-perfect: */
  /* transform: translateY(0.5px); */
}


/* hover (keep what you had, just referencing the same class) */
.testimonial-btn:hover,
.testimonial-btn:focus-visible {
  background: rgba(0, 0, 0, 0.03);
  transform: translateY(-1px);
  opacity: 0.9;
}

.testimonial-btn:focus-visible {
  outline: 2px solid #111;
  outline-offset: 3px;
}



.testimonial-btn:hover,
.testimonial-btn:focus-visible {
  background: rgba(0, 0, 0, 0.03);
  transform: translateY(-1px);
  opacity: 0.9;
}

/* Optional: make focus visible for keyboard users */
.testimonial-btn:focus-visible {
  outline: 2px solid #111111;
  outline-offset: 3px;
}

/* Transitions */
.testimonials-text {
  opacity: 1;
  transition: opacity 0.4s ease;
}

.testimonials-text.fade-out {
  opacity: 0;
}


/* ---------- Contact: Contact ---------- */

.section-contact ul {
  font-size: 1.5rem;
  padding: 0;

}
.section-contact ul li {
  list-style: none;
}



/* ---------- Services: Services ---------- */

.section-services {
  background: #ffffff;
}

.section-services h2 {
  margin-bottom: 2rem;
  font-size: 2.2rem;
  font-weight: 600;
}

/* refine grid for this section */
.services-grid {
  gap: 24px;
}

/* card base */
.service-card a {
  display: block;
  text-decoration: none;
  color: inherit;
}

.service-card figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
}

/* image */
.service-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

/* dark gradient + caption */
.service-card figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.55) 0%,
    rgba(0, 0, 0, 0.0) 55%
  );
  pointer-events: none;
}

.service-card figcaption {
  position: absolute;
  left: 20px;
  bottom: 16px;
  right: 20px;
  z-index: 1;
  color: #ffffff;
  font-size: 1.4rem;
  font-weight: 500;
}

/* hover – subtle zoom */
.service-card:hover img {
  transform: scale(1.05);
}

/* responsive layout: 3 → 2 → 1 columns */
@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-card figcaption {
    font-size: 1.2rem;
  }
}



/* ---------- Services: Approach ---------- */
.section-approach {
  background: var(--colour-nav);
  color: #fff;
}

.approach-header {
  max-width: 62ch;
  margin-bottom: 36px;
}

.approach-header h2 {
  margin: 0 0 10px;
  font-size: clamp(28px, 3vw, 44px);
  letter-spacing: -0.02em;
}

.approach-lead {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.05rem;
  line-height: 1.6;
}

/* Grid that becomes 1 column on mobile */
.approach-timeline {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 28px;
  position: relative;
}

/* Card */
.approach-step {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  padding: 18px 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(10px);
  transition: transform 200ms ease, background 200ms ease, border-color 200ms ease;
}

.approach-step:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
}

.approach-badge {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(0, 0, 0, 0.12);
}

.approach-body h3 {
  margin: 2px 0 6px;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}

.approach-body p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.6;
}

/* Mobile */
@media (max-width: 900px) {
  .approach-timeline {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .approach-header {
    margin-bottom: 22px;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .approach-step {
    transition: none;
  }
  .approach-step:hover {
    transform: none;
  }
}




/* ---------- Projects: Projects ---------- */

.section-projects {
  background: #ffffff;
}

.section-projects h2 {
  margin-bottom: 1.8rem;
  font-size: 2.2rem;
  font-weight: 600;
}

/* Filter pills row */
.project-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.filter-pill {
  padding: 6px 18px;
  border-radius: 999px;
  border: 1px solid #c2ccd5;
  background: #ffffff;
  color: #12212c;
  font-size: 0.9rem;
  cursor: pointer;

  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.filter-pill:hover {
  border-color: var(--colour-primary);
  box-shadow: 0 0 0 1px rgba(0, 74, 115, 0.1);
}

.filter-pill.is-active {
  background: var(--colour-primary);
  border-color: var(--colour-primary);
  color: #ffffff;
}

/* project cards – reusing case-study style */
.project-grid {
  gap: 32px;
}

.project-card a {
  display: block;
  text-decoration: none;
  color: inherit;
}

.project-card figure {
  margin: 0;
  overflow: hidden;
  border-radius: 12px;
}

.project-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    transform 0.5s ease,
    opacity 0.4s ease;
}

.project-card:hover img {
  transform: scale(1.05);
  opacity: 0.9;
}

.project-card figcaption {
  padding: 14px 0 4px 0;
}

.project-card h3 {
  font-size: 1.1rem;
  margin: 0 0 4px 0;
  font-weight: 500;
}

.project-link {
  font-size: 0.9rem;
  color: var(--colour-primary);
}

/* simple hide class used by JS */
.project-card.is-hidden {
  display: none;
}

/* responsive grid */
@media (max-width: 900px) {
  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }
}

@media (max-width: 600px) {
  .project-grid {
    grid-template-columns: 1fr;
  }
}


/* ===========================
   PROJECT PAGE SINGLE
   =========================== */

.project-hero {
  padding-block: 56px 28px;
}

.project-title {
  margin: 10px 0 10px;
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.1;
}

.project-intro {
  max-width: 70ch;
  margin: 0 0 18px;
  color: var(--colour-muted);
  font-size: 1.05rem;
}

.project-meta {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  color: var(--colour-text);
  font-size: 0.95rem;
}

.project-meta strong {
  font-weight: 600;
}

/* ===========================
   PROJECT PAGE SINGLE: MASONRY GALLERY
   =========================== */

/* Premium: CSS columns masonry (fast, no JS) */
.masonry {
  column-count: 3;
  column-gap: 18px;
}

.masonry-item {
  break-inside: avoid;
  margin: 0 0 18px;
  border-radius: 14px;
  overflow: hidden;
  background: #f2f4f6;
  box-shadow: 0 10px 26px rgba(0,0,0,0.06);
}

/* Images keep their natural ratio and fill the column width */
.masonry-item img {
  display: block;
  width: 100%;
  height: auto;
}

/* Subtle hover for desktop */
@media (hover: hover) {
  .masonry-item img {
    transition: transform 220ms ease, opacity 220ms ease;
  }

  .masonry-item:hover img {
    transform: scale(1.02);
    opacity: 0.96;
  }
}

/* ===========================
   PROJECT PAGE SINGLE: RESPONSIVE
   =========================== */

@media (max-width: 1000px) {
  .masonry {
    column-count: 2;
  }
}

@media (max-width: 600px) {
  .project-hero {
    padding-block: 44px 18px;
  }

  .project-meta {
    flex-direction: column;
    gap: 6px;
  }

  .masonry {
    column-count: 1;   /* stacks neatly */
    column-gap: 0;
  }

  .masonry-item {
    margin-bottom: 14px;
    border-radius: 12px;
  }
}



/* ===========================
   404 PAGE
   =========================== */

.section-404 {
  background: var(--colour-bg);
}

.error-card {
  max-width: 760px;
  margin-inline: auto;
  padding: 56px 36px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid #e1e5ea;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.06);
  text-align: center;
}

.error-title {
  font-size: clamp(28px, 3.2vw, 44px);
  margin: 10px 0 14px;
}

.error-text {
  font-size: 1.1rem;
  color: var(--colour-muted);
  margin: 0 auto 26px;
  max-width: 52ch;
}

.error-actions {
  display: inline-flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

/* ghost button on light background (so it doesn't disappear) */
.error-ghost {
  border-color: var(--colour-primary);
  color: var(--colour-primary);
}

.error-ghost:hover {
  background: rgba(0, 74, 115, 0.08);
}

.error-small {
  margin: 0;
  font-size: 0.95rem;
  color: var(--colour-muted);
}

.error-small a {
  color: var(--colour-primary);
  text-decoration: none;
}

.error-small a:hover {
  text-decoration: underline;
}

@media (max-width: 600px) {
  .error-card {
    padding: 40px 22px;
  }
}

