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

html, body {
  max-width: 100%;
  overflow-x: hidden;
}

:root{ --container:1200px; --pad-desktop:80px; --pad-tablet:40px; --pad-mobile:24px; }


body {
  margin: 0;
  background: transparent;
  font-family: 'DM Sans', serif;
  color: #000;
  position: relative;
}

.overflow-hidden {
  overflow: hidden !important;
}

.video-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1000;
}

.video-modal.is-visible {
  display: flex;
}

.video-modal__dialog {
  position: relative;
  width: min(90vw, 960px);
}

.video-modal__frame {
  position: relative;
  padding-top: 56.25%;
  background: #000;
  border-radius: 20px;
  overflow: hidden;
}

.video-modal__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-modal__close {
  position: absolute;
  top: -48px;
  right: 0;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease;
}

.video-modal__close svg {
  width: 28px;
  height: 28px;
}

.video-modal__close:hover,
.video-modal__close:focus {
  opacity: 0.8;
}

@media (max-width: 640px) {
  .video-modal {
    padding: 16px;
  }

  .video-modal__close {
    top: -40px;
  }
}

h1, h2, h3, h4, h5, h6, p {
  font-family: 'DM Sans', sans-serif;
}
/* h1 */
h1 {
  font-weight: 700;
  font-size: clamp(2.25rem, 6.5vw, 3.875rem);
}

/* h2 */
h2 {
  font-weight: 700;
  font-size: clamp(1.75rem, 4.5vw, 2.75rem);
}

/* h3 */
h3 {
  font-weight: 700;
  font-size: clamp(1.25rem, 3.2vw, 1.75rem);
}

/* h4 */
h4{
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  font-size: clamp(1.125rem, 3vw, 1.75rem);
  line-height: 1.3;
  color: #111;
  font-variation-settings: "wght" 400;
  font-synthesis-weight: none;
  font-optical-sizing: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: #676767;
}

/* base p */
p {
  font-weight: 400;
  font-size: clamp(1rem, 2.2vw, 1.25rem);
}

.navbar-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad-desktop);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.nav-links {
  display: flex;
  gap: 40px;
  padding: 0;
  margin: 0;
}

.nav-links a {
text-decoration: none;
  color: #000;
  font-weight: 500;
  display: inline-block;
  height: 2.2em;
  line-height: 2.2em;
  transition: transform 0.1s, color 0.2s;
  font-size: clamp(0.95rem, 2.2vw, 1rem);
  margin-right: 15px;
}

.logo {
  margin-left: -10px;
}

.navbar .logo a { display: block; line-height: 0; }

.navbar .logo img {
  width: clamp(140px, 18vw, 250px);
  height: auto;
  display: block;
}



.nav-links a:hover {
  color: #007bff;
}

.nav-links a.active {
    font-weight: bold;
    font-size: 1.2em;
    transition: font-size 0.1s, color 0.2s;
}

.nav-links a:hover {
    color: #007bff;
    transform: scale(1.2);
/* Remove duplicate .nav-links a:hover selector */
}

/* HERO SECTION */

.hero {
  padding: 0;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  top: -80px;              /* extend upwards into the navbar */
  left: 0;
  right: 0;
  bottom: -240px;          /* extend 240px past the hero bottom */
  background: url("images/BG/hero_line_2.svg") no-repeat center top;
  background-size: cover;
  z-index: 0;
}



.hero h1 {
  font-size: clamp(2.25rem, 8vw, 3.875rem);
  font-weight: 700;
  letter-spacing: -0.02em;   /* was -0.21875rem */
  line-height: 1.15;         /* tighter + unitless */
  font-optical-sizing: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 0 0 32px;          /* was 48px, ok to keep 32 for balance on small screens */
}

.hero h1 span {
 
  display: block;
  line-height: 1.4;
}

.hero p {
  font-family: 'DM Sans', sans-serif;
  max-width: 500px;
  max-height: 108px;
  font-weight: 400;
  font-size: clamp(1rem, 2.6vw, 1.6rem);
  line-height: 1.45;
  letter-spacing: -0.0625rem;
  font-optical-sizing: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.hero-buttons {
  display: flex;
  gap: clamp(12px, 3vw, 20px);   /* fluid spacing between buttons */
  flex-wrap: wrap;                /* allow wrap on very small screens */
}

.button {
  background: #F4C142;
  color: #000;
  text-decoration: none;
  font-weight: 700;
  border-radius: 9999px; /* fully pill and future-proof */
  display: inline-block;
  border: 2px solid #000;
  line-height: 1; /* remove extra vertical growth */

  /* Fluid sizing */
  font-size: clamp(0.9rem, 2.8vw, 1rem);
  padding: clamp(10px, 2.2vw, 15px) clamp(18px, 3.8vw, 30px);
}

.button.secondary {
  background: transparent;
  border: 2px solid #000;
  color: #000;
}

/* HERO PROFILE SECTION */

.hero-container {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 0 var(--pad-desktop);
  position: relative;
  z-index: 1;
}

.hero-text {
  flex: 1.5;
 
}
.hero-p-container {
  margin-bottom: 72px;
}

.hero-image {
  flex: 1;
}

.hero-image img {
  margin-top: -40px;
  max-width: 526px; /* or adjust to taste */
  height: 574.84px;
  width: 100%;
  height: auto;
  border-radius: 8px; /* optional, for style */
}

/* CLIENTS SECTION */

.clients {
  margin-top: 100px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 40px 0;
}

.client-logos img{
  padding: 40px;
  max-width: 100%;
  height: auto;
}


/* SERVICES SECTION */

.services {
  padding: 0px 40px;    /* add top space so it never touches featured-work */
  text-align: center;
  position: relative;
  z-index: 1;            /* paint above any lingering positioned children from featured-work */
}

.services-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad-desktop);
}

.services-container h2 {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  margin-bottom: 32px;
}


/* First occurrence under Services Section */
.services p {
  font-weight: 500;
  font-size: clamp(1rem, 2.2vw, 1.125rem);
  line-height: 30px;
  font-optical-sizing: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Later occurrence below service-card h3 */
.services p {
  font-weight: 500;
  font-size: clamp(1rem, 2.2vw, 1.125rem);
  line-height: 30px;
}

.service-card {
  background: #fff;
  border: 4px solid #000;
  border-radius: 30px;
  padding: 20px 12px;
  flex: 1;
  max-width: 356px;
  position: relative;
}

.service-card img {
  height: 200px;
  margin-bottom: 10px;
  
}

.service-card h3 {
  margin-bottom: 15px;
  text-align: left;
}

/* Later occurrence below service-card h3 */


/* Shadows to mimic side colour accent */
.service-card.blue::after,
.service-card.yellow::after,
.service-card.red::after {
  content: "";
  position: absolute;
  bottom: -15px;
  right: -15px;
  width: 100%;
  height: 100%;
  border-radius: 40px;
  z-index: -1;
}

.service-card.blue::after {
  background: #133DC1; /* pick your exact blue */
}

.service-card.yellow::after {
  background: #FFBF00; /* pick your exact yellow */
}

.service-card.red::after {
  background: #E62C31; /* pick your exact red */
}



.service-cards { justify-content: flex-start; justify-items: start; } /* flex + grid */
.service-card { text-align: left; }
.service-card img { display: block; margin: 0; }


/* FEATURED WORK SECTION */
.featured-work {
  margin-top: 100px;
  padding: 40px 0 160px; /* extra bottom room so nothing clips the next section */
  text-align: center;
  position: relative; /* establish stacking context */
  isolation: isolate; /* keep internal z-index from leaking */
  z-index: 0;
}

/* Featured Work internals: create breathing room */
.fw-feature { margin-bottom: 40px; }

.featured-work h2 {
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
font-size: clamp(1.6rem, 3.8vw, 2.5rem);
  margin-bottom: 40px;
}

.featured-work h3 {
    font-family: 'DM Sans', sans-serif;
    font-weight: 400;
font-size: clamp(1.2rem, 3.2vw, 1.8rem);
    color: #555;  
    margin-bottom: 40px;
}



/* Featured Work Info + Buttons */


.info-left {
  display: flex;
  align-items: center;    /* centre horizontally */
  gap: 40px;              /* gap between title and dots */
}

.title-block {
    display: flex;
    flex-direction:column;
}

.title-block h3 {
  margin: 0;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
font-size: clamp(1.25rem, 3.5vw, 2rem);}

.title-block p {
  margin: 5px 0 0;
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  color: #555;
}

.video-trigger {
  cursor: pointer;
}

.video-trigger:focus {
  outline: 2px solid #3454D1;
  outline-offset: 4px;
}


.title-block p {
  margin: 5px 0 0;
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  color: #555;
}

/* RTBs */

/* === RTB Container === */


/* === CONTAINER === */
.rtb-container{
  display: flex;
  flex-wrap: nowrap;              /* stop dropping to a new line */
  justify-content: flex-start;
  align-items: flex-start;
  gap: 87px;                      /* your exact column gap */
  max-width: 1280px;              /* ensure there’s room */
  width: 100%;
  margin: 0 auto;                 /* center in page */
  box-sizing: border-box;
  /* if the parent has padding, keep it small, e.g. padding: 0 24px; */
}

/* === LEFT === */
/* === RTB (Why You Can Count On Me) === */
/* keep layout */
.rtb-left { flex: 0 0 40%; position: relative; }

/* kill the old full-yellow wrapper if present */
.rtb-shadow { background: transparent; padding: 0; }

/* card */
.rtb-box{
  position: relative;
  width: 100%;
  max-width: 536px;
  height: auto;
  padding: 42px;                  /* Figma */
  box-sizing: border-box;
  background: #FFF;
  border: 4px solid #1B1B1B;
  border-radius: 20px;

  /* stop DM Sans from “bulking up” */
  font-optical-sizing: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* services-style accent: shows on RIGHT side and BOTTOM edge only */
.rtb-box::after{
  content:"";
  position:absolute;
  bottom:-14px;
  right:-14px;
  width:100%;
  height:100%;
  background:#F4C142;
  border-radius:20px;
  z-index:-1;
}

/* heading spacing inside card */
.rtb-box h2{ margin: 0 0 24px; }

/* list spacing & type */
.rtb-box ul{
  margin:0;
  padding:0;
  list-style:none;
  display:flex;
  flex-direction:column;
  gap:32px;                       /* Figma gap */
}

.rtb-box li{
  position:relative;
  padding-left:40px;
  font-weight:400;                /* Regular */
  font-size:18px;                 /* Figma */
  line-height:1.55;
  color:#191A15;

  /* match weight rendering */
  font-optical-sizing: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* blue check bullet */
.rtb-box li::before{
  content:"✔";
  position:absolute;
  left:0;
  top:50%;
  transform:translateY(-50%);
  width:24px;
  height:24px;
  line-height:24px;
  text-align:center;
  background:#3454D1;
  color:#FFF;
  border-radius:50%;
  font-size:14px;
}

/* === RIGHT TESTIMONIALS === */

/* ===== TESTIMONIALS (right column) ===== */
/* ===== TESTIMONIALS (right column) ===== */
.rtb-right{
  width: 529px;
  min-height: 671.85px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}


/* Card */
.testimonial{
  position: relative;
  width: 100%;              /* fill column width */
  max-width: 100%;
  background: #FFFFFF;      /* white card */
  border: 4px solid #000;   /* black outline */
  margin: 0 0 40px 0;
  padding: 24px;            /* inner gutter for yellow tile */
  box-sizing: border-box;
  z-index: 0;
  isolation: isolate;
}

/* Top-right WHITE slab (same size, offset up/right) */

/* Bottom-left WHITE slab (same size, offset down/left) */


/* Inner yellow panel */
.testimonial-inner{
  position: static;          /* stay in flow so parent sizes correctly */
  background: #FFD352;       /* yellow tile */
  padding: 16px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* align testimonials across viewports */
.rtb-right .testimonial{ transform: none !important; margin-left: 0 !important; }

/* Stars */
.testimonial-inner .stars{
  width: 142px;
  height: 26px;
  display: block;
}

/* Copy */
.testimonial-inner p{
  margin: 0;
  line-height: 1.45;
}

.testimonial-quote{
  font-size: clamp(1rem, 2.2vw, 1.125rem);
  font-style: italic;
  font-weight: 500;
  color: #191A15;
}

.testimonial-name{
  font-style: normal;
  font-weight: 400;
  color: #5c677d;
}

.testimonial-role{
  font-style: normal;
  font-weight: 400;
  color: #5c677d;
  font-size: 0.95rem;
}

/* Stagger like mock */

/* Responsive */
@media (max-width: 1024px){
  .rtb-right{ width: 100%; }
  .rtb-right .testimonial{ transform: none; max-width: 100%; }
}


@media (max-width: 900px){
  .rtb-right .testimonial{ width: 100%; max-width: 100%; transform: none; }
}

@media (max-width: 768px){
  /* Stack with rtb-right above rtb-left */
  .rtb-container{ 
    flex-direction: column-reverse; 
    align-items: stretch; 
    gap: 24px; 
  }

  /* Ensure both columns fit device width and add breathing space */
  .rtb-left, .rtb-right{
    flex: 0 0 auto;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 16px;
  }

  /* Prevent the left card from overflowing */
  .rtb-left .rtb-box{
    width: 100% !important;
    max-width: 100% !important;
    height: auto; /* allow content to dictate height */
  }

  /* Prevent fixed widths from causing horizontal scroll */
  .rtb-right{ min-height: 0; }
  .rtb-right .testimonial{
    width: 100%;
    max-width: 100%;
    transform: none; /* ensure no horizontal offset */
  }
}

/* Enhanced navbar styling */
.navbar {
  padding: 0px;
}


/* Services section */

.service-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}


/* Testimonials section */
.testimonials-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

.why-count-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 32px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  padding: 32px;
  min-height: 420px;
}

.why-count-card h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.why-count-card ul {
  font-size: 1rem;
  line-height: 1.6;
}

.why-count-card li {
  margin-bottom: 12px;
}

.quotes-section {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.quotes-section h2 {
  font-size: 1.25rem;
  font-weight: 600;
}

.quote {
  padding: 24px;
  border-radius: 32px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
  background: white;
}

.quote p {
  font-size: 1rem;
  line-height: 1.6;
}

.footer { border-top:1px solid #e5e7eb; margin-top:80px; }
.footer__container { max-width:1200px; margin:0 auto; padding:48px 24px; }

.footer__grid {
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:64px;
  margin-bottom:32px;
}

/* LEFT — 320 × 220 */
.footer__left { flex:0 0 320px; min-height:220px; }
.footer__logo { display:inline-block; height: 72px; width:211px;}

.footer__cta {
  margin: 0px 0 16px;
  font-size: clamp(1rem, 2.2vw, 1.5rem);
  line-height:1.25;
  color:#6b7280;
}

/* Subscribe — 320 × 70, r=70 */
.footer__subscribe {
  width:320px; height:70px; border-radius:70px;
  background:#fff; border:2px solid #000;
  display:flex; align-items:center; gap:8px;
  padding:0 8px 0 24px; box-sizing:border-box;

}
.footer__subscribe input {
  flex:1; border:0; outline:0; background:transparent;
  font-size: clamp(1rem, 2vw, 1.125rem); color:#111827;
}
.footer__subscribe input::placeholder { color:#9ca3af; }
.footer__subscribe button {
  width:56px; height:56px; border-radius:50%;
  border:2px solid #000; background:#133DC1;
  display:grid; place-items:center; cursor:pointer;
}
.footer__subscribe button svg { width:24px; height:24px; stroke:#fff; stroke-width:2.5; }

/* RIGHT — 328 × 250 */
.footer__right {
  flex: 0 0 328px;
  min-height: 250px;
  display: flex;
  flex-direction: column;   /* stack nav and bottom */
  align-items: flex-end;     /* right-align content */
  gap: 16px;                 /* space between nav and bottom */
}

.footer__nav_container {
  display: flex;
  flex-direction: column;
  align-items: flex-end; /* right-align content */
  gap: 12px;             /* space between nav and legal/copy */
}
.footer__nav { display:flex; flex-direction:column; gap:12px; align-items:flex-end; text-align:right; margin-bottom: 72px; }
.footer__nav a { text-decoration:none; font-size: clamp(1rem, 2.4vw, 1.5rem); font-weight:600; color:#6b7280; }
.footer__nav a.is-active { color:#0b0c0d; font-weight:700; }

.footer__right a {
  color: #676767;
font-size: clamp(0.95rem, 1.9vw, 1.125rem)
}

/* Bottom row */
.footer__bottom { display: none; }
.footer__legal { display:flex; gap:16px; color:#4b5563; }
.footer__legal a { color:inherit; text-decoration:none; font-size: clamp(0.95rem, 1.9vw, 1.125rem)}
.footer__legal a:hover { text-decoration:underline; }
.footer__copy { font-size: clamp(0.8rem, 1.6vw, 0.875rem); color:#4b5563; }

/* Responsive */
@media (max-width: 900px){
  .footer__grid { flex-direction:column; gap:32px; }
  .footer__left, .footer__right { flex:0 0 auto; width:100%; min-height:auto; }
  .footer__nav { align-items:flex-start; text-align:left; }
  .footer__nav_container { align-items: flex-start; }
  .footer__right { align-items: flex-start; }
  .footer__subscribe { width:100%; max-width:480px; }
}
/* Desktop breakpoint */
@media (min-width: 768px) {
  .footer-desktop { display: flex; }
  .footer-mobile  { display: none; }
  .footer-bottom  { flex-direction: row; align-items: center; gap: 0; }
  .footer-copy    { text-align: right; }
}

/* Mobile logo size */
@media (max-width: 767.98px){
  .footer-logo .logo-footer { width: 211px; height: auto; }
}

@media (min-width: 1024px) {
  .service-cards {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .testimonials-container {
    grid-template-columns: 2fr 1fr;
  }
  
  .why-count-card h2 {
    font-size: 1.875rem;
  }
  
  .quotes-section h2 {
    font-size: 1.875rem;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 20px 40px;
  }
  .logo { margin-left: 0; }
  body, .site, .wrapper, main, #app, #__next {
    max-width: 100%;
    overflow-x: hidden;
  }
  /* === HERO: Option B (mobile) — image first, then text === */
  .hero-container{
    flex-direction: column-reverse;   /* put image first */
    align-items: center;              /* center content vertically */
    gap: 24px;                        /* breathing space */
  }
  .hero-text{ 
    width: 100%;
    text-align: center;        /* center headline + body copy */
  }
  .hero h1, .hero p{
    margin-left: auto;         /* center blocks within container */
    margin-right: auto;
  }
  .hero-buttons{
    justify-content: center;   /* center the buttons row */
  }
  .hero-image{ width: 100%; }
  .hero-image img{
    width: 100%;
    max-width: 520px;                /* cap so it doesn’t dominate */
    margin: 0 auto;                   /* centre the image block */
    display: block;
    border-radius: 20px;              /* keep the card feel */
  }
  .hero-text{ width: 100%; }
  .hero h1{
    max-width: 24ch;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }
  .hero p{ max-width: 34ch; }
  .hero-buttons{ gap: 12px; }

  /* Center service cards on mobile */
  .service-cards { 
    justify-items: center;       /* center items within the grid */
  }
  .service-card {
    width: min(100%, 356px);     /* cap to design width, shrink on small devices */
    justify-self: center;        /* ensure each card sits in the middle */
  }
}

@media (min-width: 769px) and (max-width: 1024px){
  /* === HERO: Option D (tablet) — side-by-side, 60/40 split === */
  .hero-container{
    flex-direction: row;              /* two columns */
    align-items: center;
    gap: 24px;
    padding: 0 var(--pad-tablet);
  }
  .hero-text{ flex: 0 0 60%; max-width: 60%; }
  .hero-image{ flex: 0 0 40%; max-width: 40%; }
  .hero-image img{
    width: 100%;
    max-width: 420px;                /* smaller than desktop */
    margin: 0;                       /* align with grid */
  }
}

/* FEATURED WORK */
.button{ background:#F4C142; border:2px solid #000; color:#000; font-weight:700; text-decoration:none; padding:12px 20px; border-radius:30px; display:inline-block; }
.button.secondary{ background:transparent; }


.fw-container{ max-width: var(--container); margin:0 auto; padding:0 var(--pad-desktop); }
.fw-container h2{ font-weight:400; font-size:2.5rem; margin:80px 0 62px; }


/* Featured hero case */
.fw-feature{ display:grid; grid-template-columns: 1.3fr 1fr; gap:40px; align-items:center; margin-bottom:40px; }
.fw-media{ display:block; position:relative; border:4px solid #000; border-radius:20px; overflow:hidden; background:#ddd; }
.fw-media::before{ content:""; display:block; aspect-ratio:16/9; }
.fw-media img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.fw-meta h3 { font-weight:700; font-size: clamp(1.25rem, 3.5vw, 2rem); margin:0 0 16px; }
.fw-meta p{ margin:0 0 16px; }


/* 3-up grid */
.fw-grid{ display:grid; grid-template-columns:1fr; gap:24px; }
.fw-card { 
  border: 4px solid #000; 
  border-radius: 20px; 
  padding: 16px; 
  background:#fff; 
  overflow: hidden;        /* ← add this */
} 
.fw-card .fw-media{ border:0; border-radius:12px; }
.fw-card h4 { margin:12px 0 4px; font-weight:700; font-size: clamp(1.05rem, 2.4vw, 1.25rem); }
.fw-card p{ margin:0 0 12px; }


.fw-more{ text-align:center; margin-top:24px; }


@media (max-width: 1024px){
.fw-feature{ grid-template-columns: 1fr; z-index: 0; }
}
@media (min-width:768px){
.fw-grid{ grid-template-columns: repeat(3, 1fr); gap:32px; }
}



/* BG OVERRIDE */
:root{
  /* existing colours */
  --yellow-1: #FFF6DD;              /* navbar */
  --yellow-2: #FEF8EA;              /* rest of page */
  --blue-r: 189; --blue-g: 201; --blue-b: 238; /* #BDC9EE */

  /* one control for strength */
  --blue-peak-alpha: 0.65;          /* tweak this only */
  --blue-shoulder-alpha: calc(var(--blue-peak-alpha) * 0.5);

  /* these are set by your JS; keep as fallbacks */
  --nav-end: 8%;
  --hero-end: 28%;
  --services-start: 40%;
  --services-end: 55%;
  --testimonials-end: 85%;
}

html{
  min-height:100%;
  background:
    /* Blue overlay with variable strength */
    linear-gradient(
      to bottom,
      rgba(var(--blue-r),var(--blue-g),var(--blue-b),0) 0%,
      rgba(var(--blue-r),var(--blue-g),var(--blue-b),0) var(--services-start),
      rgba(var(--blue-r),var(--blue-g),var(--blue-b),var(--blue-shoulder-alpha)) calc((var(--services-start) + var(--services-end)) / 2),
      rgba(var(--blue-r),var(--blue-g),var(--blue-b),var(--blue-peak-alpha)) var(--services-end),
      rgba(var(--blue-r),var(--blue-g),var(--blue-b),var(--blue-shoulder-alpha)) calc((var(--services-end) + var(--testimonials-end)) / 2),
      rgba(var(--blue-r),var(--blue-g),var(--blue-b),0) var(--testimonials-end),
      rgba(var(--blue-r),var(--blue-g),var(--blue-b),0) 100%
    ),
    /* Base yellow (nav → hero shift) */
    linear-gradient(
      to bottom,
      var(--yellow-1) 0%,
      var(--yellow-1) var(--nav-end),
      var(--yellow-2) var(--hero-end),
      var(--yellow-2) 100%
    );
  background-repeat:no-repeat,no-repeat;
  background-attachment:scroll,scroll;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.1);
}

body,.site,.wrapper,main,#app,#__next{ background:transparent !important; margin:0; }




/* 1) Lock the RTB box to the Figma height */
.rtb-left .rtb-box{
  min-height: 594px;
  box-sizing: border-box;
}

@media (max-width: 768px){
  .rtb-left .rtb-box{ min-height: 0; }
}

/* 2) Pull the testimonials up and tighten the heading gap */
.rtb-right{
  margin-top: -32px;        /* nudge the whole stack up; adjust -24 to -40 until it matches */
}

.rtb-right h2{
  font-weight: 700;
  font-size: clamp(1.6rem, 5vw, 2.75rem);
  margin: 0 0 24px;
  color: #0B0C0D;
}

/* ================================
   Contact CTA
================================== */
:root{
  --cta-blue: #1033A2;        /* panel background */
  --cta-ink: #0B0C0D;         /* borders/text */
  --cta-paper: #FFFFFF;       /* inputs */
  --cta-btn: #212529;         /* button */
  --cta-slab: rgba(16, 51, 162, 0.18); /* offset slab shadow */
}

/* section shell */
.contact-cta{
  padding: 80px 24px 120px;
  position: relative;
}
.contact-wrap{
  max-width: 920px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
}

/* card */
.contact-card{
  position: relative;
  width: 656px;               /* spec */
  height: 757px;              /* spec */
  padding: 32px 32px 24px;
  border-radius: 20px;
  background: var(--cta-blue);
  border: 3px solid var(--cta-ink);
  color: var(--cta-paper);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.08);
  isolation: isolate;
}

/* offset slab behind (bottom-right) */
.contact-card::after{
  content: "";
  position: absolute;
  inset: 0;
  transform: translate(18px, 18px);
  border-radius: 20px;
  background: var(--cta-slab);
  z-index: -1;
}

/* title */
.contact-title{
  margin: 4px 0 20px;
  text-align: center;
  font-weight: 700;
  font-size: 2rem;
  line-height: 1.15;
  color: var(--cta-paper);
}

/* fields */
.field{ margin: 18px 0; }
.field label{
  display: block;
  margin: 0 0 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.92);
}
.field input,
.field textarea{
  width: 100%;
  background: var(--cta-paper);
  border: 0;
  border-radius: 8px;
  padding: 14px 16px;
  font: 400 1rem/1.3 "DM Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: #222;
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.08) inset,
    0 1px 0 rgba(0,0,0,0.06);
}
.field input::placeholder,
.field textarea::placeholder{
  color: #C2C7D0;
  letter-spacing: 0.5px;
}

/* actions */
.actions{
  margin-top: 16px;
  text-align: center;
}
.btn-primary{
  display: inline-block;
  padding: 12px 28px;
  border-radius: 9999px;
  background: var(--cta-btn);   /* #212529 */
  color: #fff;
  border: 2px solid var(--cta-ink);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 0 rgba(0,0,0,0.25);
  transition: transform 120ms ease, box-shadow 120ms ease, filter 120ms ease;
}
.btn-primary:hover{ transform: translateY(-1px); box-shadow: 0 3px 0 rgba(0,0,0,0.25); }
.btn-primary:active{ transform: translateY(0); box-shadow: 0 1px 0 rgba(0,0,0,0.25); filter: brightness(0.95); }

.actions .alt{
  margin-top: 10px;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.8);
}


/* === Featured Work Responsive Fixes === */
@media (max-width: 900px){
  /* remove overlap */
 
  /* stack featured case */
  .fw-feature {
    grid-template-columns: 1fr;  /* single column */
    gap: 24px;
  }

  /* stack cards */
  .fw-grid {
    grid-template-columns: 1fr;  /* single column */
    gap: 20px;
  }

  .featured-work {
    margin-top: 40px;  /* ensure no overlap with next section */
    padding-bottom: 160px;
  }
}

/* Container padding steps */
@media (max-width: 1200px){
  .navbar-container,
  .hero-container,
  .services-container,
  .fw-container { padding: 0 var(--pad-tablet); }
}
@media (max-width: 768px){
  .navbar-container,
  .hero-container,
  .services-container,
  .fw-container {
    padding-right: var(--pad-mobile);
    padding-left: calc(var(--pad-mobile) / 2); /* 50% of left padding */
  }
}

/* === Mobile nav === */
.nav-toggle {
  display: none;
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer;
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;         /* show hamburger */
    z-index: 1001;
  }

  .nav-links {
    display: none;          /* hide links by default */
    flex-direction: column;
    position: absolute;
    top: 60px;              /* just under navbar */
    right: 20px;
    background: #FEF7E0;    /* match your background */
    border: 2px solid #000;
    border-radius: 12px;
    padding: 16px;
    gap: 12px;
    z-index: 1000;
    min-width: 140px;
  }

  .nav-links.show {
    display: flex;          /* show when toggled */
  }
  .nav-links a {
    display: block;        /* full-width clickable row */
    text-align: center;    /* center text inside the dropdown */
    width: 100%;
  }
}
@media (max-width: 360px){
  .button {
    font-size: clamp(0.85rem, 3.2vw, 0.95rem);
    padding: clamp(8px, 2.4vw, 12px) clamp(14px, 3.6vw, 22px);
  }
}
