/* ============================================
   CO Communications — Main Stylesheet
   Ported from React globals.css
   ============================================ */

/* ── Transforma Mix Font ── */
@font-face {
  font-family: "Transforma Mix";
  src: url("../fonts/TransformaMix_Trial-ExtraLight.woff2") format("woff2"),
       url("../fonts/TransformaMix_Trial-ExtraLight.woff") format("woff");
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Transforma Mix";
  src: url("../fonts/TransformaMix_Trial-Light.woff2") format("woff2"),
       url("../fonts/TransformaMix_Trial-Light.woff") format("woff");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Transforma Mix";
  src: url("../fonts/TransformaMix_Trial-Regular.woff2") format("woff2"),
       url("../fonts/TransformaMix_Trial-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Transforma Mix";
  src: url("../fonts/TransformaMix_Trial-Medium.woff2") format("woff2"),
       url("../fonts/TransformaMix_Trial-Medium.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Transforma Mix";
  src: url("../fonts/TransformaMix_Trial-SemiBold.woff2") format("woff2"),
       url("../fonts/TransformaMix_Trial-SemiBold.woff") format("woff");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* ── CSS Custom Properties (Brand Tokens) ── */
:root {
  --brand-blue:        #025bdf;
  --brand-blue-light:  #3a7ee8;
  --brand-blue-dark:   #0148b3;
  --brand-navy:        #070c48;
  --brand-navy-light:  #0f1560;
  --brand-secondary:   #19eba0;
  --brand-dark:        #ffffff;
  --brand-charcoal:    #1a1a1a;
  --brand-mid-gray:    #6b6b6b;
  --brand-light-gray:  #e2e6ee;
  --brand-off-white:   #f4f6fa;
  --brand-white:       #ffffff;
  --brand-cool-gray:   #edf0f7;
  --font-display:      "Transforma Mix", "Playfair Display", Georgia, serif;
  --font-body:         Helvetica, "Helvetica Neue", Arial, sans-serif;
  --hero-bg:           #070c48;
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: auto; } /* Lenis handles smooth scroll */

body {
  font-family: var(--font-body);
  color: var(--brand-charcoal);
  background-color: var(--brand-white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  cursor: auto;
}

img { max-width: 100%; height: auto; display: block; transition: opacity 0.3s ease; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 600;
}

a { text-decoration: none; color: inherit; }

::selection { background-color: var(--brand-blue); color: #fff; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: #f0f0f0; }
::-webkit-scrollbar-thumb { background: var(--brand-blue); border-radius: 2px; }

/* ── Focus ── */
*:focus-visible { outline: 2px solid var(--brand-blue); outline-offset: 2px; }

/* ============================================
   Layout Utilities
   ============================================ */
.co-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
@media (min-width: 1024px) {
  .co-container { padding: 0 4rem; }
}

.co-section { padding: 3rem 0; }
@media (min-width: 768px) { .co-section { padding: 6rem 0; } }

.section-tinted { background-color: var(--brand-off-white); }
.bg-white       { background-color: #fff; }
.bg-navy        { background-color: var(--brand-navy); }

/* ── Min-height hero ── */
.co-hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: flex-end;
  padding-bottom: 6rem;
  padding-top: 10rem;
  overflow: hidden;
}
@media (min-width: 768px) {
  .co-hero { padding-bottom: 8rem; }
}

/* ── Hero canvas background ── */
.hero-canvas-wrap {
  position: absolute;
  inset: 0;
  background: var(--hero-bg);
}
.hero-canvas-wrap canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-noise {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.02;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 128px 128px;
}

/* ============================================
   Typography Utilities
   ============================================ */
.font-display { font-family: var(--font-display) !important; }
.font-body    { font-family: var(--font-body) !important; }

.text-white       { color: #fff; }
.text-white-60    { color: rgba(255,255,255,0.6); }
.text-white-50    { color: rgba(255,255,255,0.5); }
.text-navy        { color: var(--brand-navy); }
.text-navy-50     { color: rgba(7,12,72,0.5); }
.text-navy-40     { color: rgba(7,12,72,0.4); }
.text-blue        { color: var(--brand-blue); }
.text-secondary   { color: var(--brand-secondary); }

.text-hero {
  font-size: clamp(2.5rem, 6vw, 7rem);
  line-height: 0.95;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-family: var(--font-display);
}

.text-display {
  font-size: clamp(2rem, 4vw, 4.5rem);
  line-height: 0.95;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.text-section-title {
  font-size: clamp(2.5rem, 4vw, 4rem);
  line-height: 0.95;
  font-weight: 700;
}

.text-eyebrow {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* ============================================
   Gradient Text
   ============================================ */
.gradient-text {
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.gradient-text-secondary {
  background: linear-gradient(135deg, var(--brand-secondary), var(--brand-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================
   Cards
   ============================================ */
.card-elevated {
  background: #fff;
  border-radius: 1.25rem;
  box-shadow: 0 1px 3px rgba(7,12,72,0.04), 0 4px 12px rgba(7,12,72,0.03);
  border: 1px solid rgba(7,12,72,0.04);
  transition: box-shadow 0.4s ease, border-color 0.4s ease, transform 0.4s ease;
}
.card-elevated:hover {
  box-shadow: 0 4px 16px rgba(2,91,223,0.08), 0 12px 40px rgba(7,12,72,0.06);
  border-color: rgba(2,91,223,0.12);
  transform: translateY(-2px);
}

/* ── Tilt card ── */
.tilt-card { transform-style: preserve-3d; perspective: 1000px; transition: transform 0.3s ease; }
.tilt-card-shine {
  position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: radial-gradient(circle at var(--shine-x, 50%) var(--shine-y, 50%), rgba(255,255,255,0.06) 0%, transparent 60%);
  opacity: 0; transition: opacity 0.3s ease;
}
.tilt-card:hover .tilt-card-shine { opacity: 1; }

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.875rem 2rem; border-radius: 9999px;
  font-size: 0.8125rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  transition: all 0.3s ease; cursor: pointer; border: none;
  font-family: var(--font-body);
}
.btn-primary {
  background: #fff; color: var(--brand-navy);
}
.btn-primary:hover { background: var(--brand-secondary); }

.btn-outline {
  background: transparent; color: #fff;
  border: 1px solid rgba(255,255,255,0.25);
}
.btn-outline:hover { border-color: rgba(255,255,255,0.5); background: rgba(255,255,255,0.05); }

.btn-outline-navy {
  background: transparent; color: rgba(7,12,72,0.7);
  border: 1px solid rgba(7,12,72,0.15);
}
.btn-outline-navy:hover { border-color: var(--brand-blue); color: var(--brand-blue); }

.btn-blue { background: var(--brand-blue); color: #fff; }
.btn-blue:hover { background: var(--brand-blue-light); }

/* ── Magnetic button wrapper ── */
.magnetic-wrap { display: inline-block; transition: transform 0.3s ease; }

/* ── Magnetic inner effect ── */
.magnetic-btn {
  position: relative; overflow: hidden;
}
.magnetic-btn::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), rgba(255,255,255,0.15) 0%, transparent 60%);
  opacity: 0; transition: opacity 0.3s ease;
}
.magnetic-btn:hover::before { opacity: 1; }

/* ============================================
   Navbar
   ============================================ */
#co-navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: all 0.7s ease;
}
#co-navbar.scrolled {
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(7,12,72,0.06);
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.co-nav-inner {
  max-width: 1400px; margin: 0 auto;
  padding: 0 1.5rem; height: 6rem;
  display: flex; align-items: center; justify-content: space-between;
}
@media (min-width: 1024px) {
  .co-nav-inner { padding: 0 4rem; height: 7rem; }
}
.co-nav-logo { height: 5rem; width: auto; }
@media (min-width: 1024px) { .co-nav-logo { height: 6rem; } }

.co-nav-links { display: none; gap: 2.5rem; align-items: center; }
@media (min-width: 1024px) { .co-nav-links { display: flex; } }

.co-nav-link {
  font-size: 13px; font-weight: 500;
  letter-spacing: 0.15em; text-transform: uppercase;
  position: relative; transition: color 0.3s ease;
}
.co-nav-link::after {
  content: ""; position: absolute; bottom: -4px; left: 0;
  height: 1px; width: 0; background: var(--brand-blue);
  transition: width 0.5s ease;
}
.co-nav-link:hover::after, .co-nav-link.active::after { width: 100%; }

/* Dark hero — white links */
#co-navbar:not(.scrolled) .co-nav-link { color: rgba(255,255,255,0.5); }
#co-navbar:not(.scrolled) .co-nav-link:hover,
#co-navbar:not(.scrolled) .co-nav-link.active { color: #fff; }

/* Scrolled — navy links */
#co-navbar.scrolled .co-nav-link { color: rgba(7,12,72,0.4); }
#co-navbar.scrolled .co-nav-link:hover,
#co-navbar.scrolled .co-nav-link.active { color: var(--brand-navy); }

.co-nav-cta {
  display: none; align-items: center; gap: 0.5rem;
  padding: 0.625rem 1.5rem; border-radius: 9999px;
  font-size: 13px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase;
  transition: all 0.3s ease;
}
@media (min-width: 1024px) { .co-nav-cta { display: flex; } }

#co-navbar:not(.scrolled) .co-nav-cta {
  border: 1px solid rgba(255,255,255,0.25); color: rgba(255,255,255,0.8);
}
#co-navbar:not(.scrolled) .co-nav-cta:hover {
  border-color: rgba(255,255,255,0.5); color: #fff; background: rgba(255,255,255,0.05);
}
#co-navbar.scrolled .co-nav-cta {
  border: 1px solid rgba(7,12,72,0.15); color: rgba(7,12,72,0.7);
}
#co-navbar.scrolled .co-nav-cta:hover {
  border-color: var(--brand-blue); color: var(--brand-blue); background: rgba(2,91,223,0.05);
}

/* ── Mobile hamburger ── */
.co-hamburger {
  display: flex; flex-direction: column; gap: 6px;
  width: 40px; height: 40px; align-items: center; justify-content: center;
  background: none; border: none; cursor: pointer; z-index: 60;
}
@media (min-width: 1024px) { .co-hamburger { display: none; } }

.co-hamburger span {
  display: block; width: 24px; height: 1px;
  transition: all 0.4s ease;
}
#co-navbar:not(.scrolled) .co-hamburger span { background: #fff; }
#co-navbar.scrolled .co-hamburger span { background: var(--brand-navy); }

.co-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); background: var(--brand-navy) !important; }
.co-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.co-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); background: var(--brand-navy) !important; }

/* ── Mobile menu overlay ── */
#co-mobile-menu {
  position: fixed; inset: 0; z-index: 50;
  background: var(--brand-navy);
  display: flex; flex-direction: column;
  align-items: flex-start; justify-content: center;
  padding: 2rem 2rem;
  clip-path: circle(0% at calc(100% - 44px) 40px);
  transition: clip-path 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}
#co-mobile-menu.open {
  clip-path: circle(150% at calc(100% - 44px) 40px);
  pointer-events: all;
}
.co-mobile-links { display: flex; flex-direction: column; gap: 1rem; }
.co-mobile-link {
  font-family: var(--font-display); font-size: clamp(2.5rem, 10vw, 4.5rem);
  font-weight: 700; color: rgba(255,255,255,0.3);
  transition: color 0.3s ease;
  opacity: 0; transform: translateX(-40px);
  transition: opacity 0.5s ease, transform 0.5s ease, color 0.3s ease;
}
#co-mobile-menu.open .co-mobile-link { opacity: 1; transform: translateX(0); }
#co-mobile-menu.open .co-mobile-link:nth-child(1) { transition-delay: 0.1s; }
#co-mobile-menu.open .co-mobile-link:nth-child(2) { transition-delay: 0.18s; }
#co-mobile-menu.open .co-mobile-link:nth-child(3) { transition-delay: 0.26s; }
#co-mobile-menu.open .co-mobile-link:nth-child(4) { transition-delay: 0.34s; }
#co-mobile-menu.open .co-mobile-link:nth-child(5) { transition-delay: 0.42s; }
.co-mobile-link:hover, .co-mobile-link.active { color: #fff; }
.co-mobile-footer {
  position: absolute; bottom: 2.5rem; left: 2rem; right: 2rem;
  display: flex; justify-content: space-between;
  color: rgba(255,255,255,0.2); font-size: 0.875rem;
}

/* ============================================
   Footer
   ============================================ */
#co-footer { background: #0a0c48; color: #fff; position: relative; overflow: hidden; }

.co-footer-cta { border-bottom: 1px solid rgba(255,255,255,0.04); }
.co-footer-cta-inner {
  max-width: 1400px; margin: 0 auto; padding: 4rem 1.5rem;
  display: flex; flex-direction: column; gap: 3rem;
}
@media (min-width: 1024px) {
  .co-footer-cta-inner { flex-direction: row; align-items: flex-end; justify-content: space-between; padding: 8rem 4rem; }
}
.co-footer-cta-tag {
  font-size: 12px; font-weight: 600; letter-spacing: 0.25em;
  text-transform: uppercase; color: var(--brand-secondary); margin-bottom: 1.5rem;
}
.co-footer-cta-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.5rem, 8vw, 5.5rem); line-height: 0.9; color: #fff;
}
.co-footer-cta-btn {
  display: inline-flex; align-items: center; gap: 0.75rem;
  padding: 1.25rem 2.5rem; background: var(--brand-secondary);
  color: #fff; border-radius: 9999px; font-weight: 600;
  font-size: 0.8125rem; letter-spacing: 0.1em; text-transform: uppercase;
  transition: all 0.3s ease; white-space: nowrap;
}
.co-footer-cta-btn:hover { background: #fff; color: var(--brand-navy); }

.co-footer-main {
  max-width: 1400px; margin: 0 auto; padding: 5rem 1.5rem 2.5rem;
}
@media (min-width: 1024px) { .co-footer-main { padding: 5rem 4rem 2.5rem; } }

.co-footer-top {
  display: flex; flex-direction: column; gap: 4rem; margin-bottom: 5rem;
}
@media (min-width: 1024px) {
  .co-footer-top { flex-direction: row; align-items: flex-start; justify-content: space-between; }
}
.co-footer-logo { height: 8rem; width: auto; margin-bottom: 1.5rem; }
.co-footer-tagline { color: rgba(255,255,255,0.9); font-size: 0.875rem; line-height: 1.8; max-width: 28rem; }

.co-footer-email-label { color: rgba(255,255,255,0.8); font-size: 11px; letter-spacing: 0.25em; text-transform: uppercase; margin-bottom: 0.75rem; }
.co-footer-email {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(1.25rem, 2.5vw, 2.25rem);
  color: #fff; transition: color 0.5s ease;
}
.co-footer-email:hover { color: var(--brand-secondary); }

.co-footer-divider { height: 1px; background: rgba(255,255,255,0.06); margin-bottom: 4rem; }

.co-footer-links {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.5rem;
  margin-bottom: 5rem;
}
@media (min-width: 768px) { .co-footer-links { grid-template-columns: repeat(4, 1fr); } }

.co-footer-col-title {
  color: rgba(255,255,255,0.9); font-size: 11px; font-weight: 500;
  letter-spacing: 0.25em; text-transform: uppercase; margin-bottom: 1.5rem;
}
.co-footer-col-links { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; }
.co-footer-col-link {
  display: inline-flex; align-items: center; gap: 0.5rem;
  color: rgba(255,255,255,0.85); font-size: 0.875rem;
  transition: color 0.3s ease;
}
.co-footer-col-link:hover { color: #fff; }

.co-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06); padding-top: 2rem;
  display: flex; flex-direction: column; align-items: center; gap: 1rem;
}
@media (min-width: 768px) { .co-footer-bottom { flex-direction: row; justify-content: space-between; } }
.co-footer-copy { color: rgba(255,255,255,0.7); font-size: 0.75rem; letter-spacing: 0.05em; }
.co-footer-legal { display: flex; align-items: center; gap: 1.5rem; }
.co-footer-legal a { color: rgba(255,255,255,0.7); font-size: 0.75rem; transition: color 0.3s ease; }
.co-footer-legal a:hover { color: #fff; }
.co-footer-built { color: rgba(255,255,255,0.4); font-size: 0.75rem; transition: color 0.3s ease; }
.co-footer-built:hover { color: var(--brand-secondary); }

/* ============================================
   Preloader
   ============================================ */
#co-preloader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--hero-bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  transition: opacity 0.5s ease;
}
#co-preloader.exit { opacity: 0; pointer-events: none; }
#co-preloader-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
#co-preloader-logo { position: relative; z-index: 10; }
#co-preloader-logo svg { height: 10rem; width: auto; }
@media (min-width: 768px) { #co-preloader-logo svg { height: 12rem; } }
#co-preloader-bar-wrap {
  position: relative; z-index: 10; margin-top: 2.5rem;
  width: 12rem; height: 2px; background: rgba(255,255,255,0.1); border-radius: 9999px; overflow: hidden;
}
#co-preloader-bar {
  height: 100%; background: var(--brand-blue); border-radius: 9999px;
  width: 0%; transition: width 2s cubic-bezier(0.22, 1, 0.36, 1);
}
#co-preloader-tagline {
  position: relative; z-index: 10; margin-top: 1.5rem;
  color: rgba(255,255,255,0.3); font-size: 0.75rem;
  letter-spacing: 0.3em; text-transform: uppercase;
}

/* ============================================
   Grain Overlay
   ============================================ */
.grain-overlay {
  position: fixed; inset: 0; z-index: 9990; pointer-events: none; opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat; background-size: 256px 256px;
}

/* ============================================
   Animations — SplitLine, Reveal
   ============================================ */
.split-line { display: block; overflow: hidden; }
.split-line-inner {
  display: block;
  transform: translateY(110%) rotate(3deg);
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.split-line-inner.in-view { transform: translateY(0) rotate(0deg); }

.reveal-item {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-item.in-view { opacity: 1; transform: translateY(0); }

.reveal-mask { overflow: hidden; }
.reveal-mask-inner {
  transform: translateX(-101%);
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-mask.in-view .reveal-mask-inner { transform: translateX(0); }

/* ============================================
   Marquee
   ============================================ */
@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.marquee-track { animation: marquee 30s linear infinite; display: flex; width: max-content; }
.marquee-track:hover { animation-play-state: paused; }

.text-stroke {
  -webkit-text-stroke: 1.5px rgba(7,12,72,0.12);
  -webkit-text-fill-color: transparent;
}

/* ============================================
   Floating CTA
   ============================================ */
.co-floating-cta {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 40;
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.875rem 1.5rem;
  background: var(--brand-blue); color: #fff;
  border-radius: 9999px; font-size: 0.8125rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  box-shadow: 0 4px 24px rgba(2,91,223,0.3);
  transition: all 0.3s ease;
  opacity: 0; transform: translateY(1rem); pointer-events: none;
}
.co-floating-cta.visible { opacity: 1; transform: translateY(0); pointer-events: all; }
.co-floating-cta:hover { background: var(--brand-navy); box-shadow: 0 8px 32px rgba(7,12,72,0.3); }

/* ============================================
   Accent elements
   ============================================ */
.accent-bar {
  width: 4px; height: 60px;
  background: linear-gradient(to bottom, var(--brand-blue), transparent);
  border-radius: 2px;
}
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(2,91,223,0.3) 20%, rgba(2,91,223,0.3) 80%, transparent 100%);
}
.section-glow {
  position: absolute; inset: 0; pointer-events: none; overflow: hidden;
}
.section-glow::before {
  content: "";
  position: absolute; top: -25%; left: -25%; width: 75%; height: 75%;
  border-radius: 50%; background: rgba(2,91,223,0.03); filter: blur(120px);
}
.section-glow::after {
  content: "";
  position: absolute; bottom: -25%; right: -25%; width: 75%; height: 75%;
  border-radius: 50%; background: rgba(2,91,223,0.04); filter: blur(120px);
}

/* ============================================
   Animated Counter
   ============================================ */
.animated-counter {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.animated-counter.in-view { opacity: 1; transform: translateY(0); }

/* ============================================
   Services accordion
   ============================================ */
.service-row { border-top: 1px solid rgba(7,12,72,0.06); }
.service-row:last-child { border-bottom: 1px solid rgba(7,12,72,0.06); }
.service-details {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows 0.5s ease;
}
.service-details.open { grid-template-rows: 1fr; }
.service-details-inner { overflow: hidden; }

/* ============================================
   Contact Form
   ============================================ */
.co-input {
  width: 100%; padding: 1rem 1.25rem; border-radius: 0.75rem;
  border: 1px solid rgba(7,12,72,0.08);
  background: rgba(255,255,255,0.6);
  color: var(--brand-navy); font-family: var(--font-body); font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  outline: none;
}
.co-input:focus {
  border-color: rgba(2,91,223,0.6);
  box-shadow: 0 0 0 3px rgba(2,91,223,0.1);
}
.co-input.error { border-color: rgba(239,68,68,0.6); }
.co-input::placeholder { color: rgba(7,12,72,0.3); }
.co-label {
  display: block; font-size: 13px; font-weight: 500;
  color: rgba(7,12,72,0.6); letter-spacing: 0.1em;
  text-transform: uppercase; margin-bottom: 0.5rem;
}

/* ============================================
   Gallery / Lightbox
   ============================================ */
.co-gallery-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem;
}
@media (min-width: 768px) { .co-gallery-grid { grid-template-columns: repeat(3, 1fr); } }

.co-gallery-item {
  position: relative; aspect-ratio: 4/3; border-radius: 1rem;
  overflow: hidden; cursor: pointer;
  background: var(--brand-off-white);
}
.co-gallery-item img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; transition: transform 0.7s ease;
}
.co-gallery-item:hover img { transform: scale(1.05); }
.co-gallery-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(7,12,72,0.8) 0%, rgba(7,12,72,0.2) 50%, transparent 100%);
  opacity: 0; transition: opacity 0.4s ease;
  display: flex; align-items: flex-end; padding: 1.25rem;
}
.co-gallery-item:hover .co-gallery-overlay { opacity: 1; }

#co-lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.95); backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
  opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
}
#co-lightbox.open { opacity: 1; pointer-events: all; }
#co-lightbox img { max-height: 80vh; max-width: 100%; object-fit: contain; border-radius: 1rem; }

/* ============================================
   Blog tabs
   ============================================ */
.co-tabs { border-bottom: 1px solid rgba(7,12,72,0.06); position: sticky; top: 6rem; z-index: 30; background: #fff; backdrop-filter: blur(20px); }
.co-tabs-inner { max-width: 1400px; margin: 0 auto; padding: 0 1.5rem; display: flex; gap: 2.5rem; }
@media (min-width: 1024px) { .co-tabs-inner { padding: 0 4rem; } }
.co-tab {
  position: relative; padding: 1.25rem 0;
  font-size: 13px; font-weight: 500; letter-spacing: 0.15em; text-transform: uppercase;
  color: rgba(7,12,72,0.3); background: none; border: none; cursor: pointer;
  transition: color 0.3s ease;
}
.co-tab.active { color: var(--brand-blue); }
.co-tab::after {
  content: ""; position: absolute; bottom: 0; left: 0; right: 0;
  height: 2px; background: var(--brand-blue);
  transform: scaleX(0); transition: transform 0.3s ease;
}
.co-tab.active::after { transform: scaleX(1); }

/* ============================================
   Hero page transitions (fade-slide)
   ============================================ */
.co-page-content {
  opacity: 0; transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.co-page-content.loaded { opacity: 1; transform: translateY(0); }

/* ============================================
   About page — Team member portrait
   ============================================ */
.co-portrait {
  aspect-ratio: 3/4; border-radius: 1.5rem; overflow: hidden;
  border: 1px solid rgba(7,12,72,0.06);
  box-shadow: 0 20px 60px rgba(7,12,72,0.08);
}
.co-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.co-portrait-badge {
  position: absolute; bottom: 1.25rem; left: 1.25rem; right: 1.25rem;
  background: rgba(255,255,255,0.9); backdrop-filter: blur(8px);
  border-radius: 1rem; padding: 0.75rem 1.25rem;
  border: 1px solid rgba(7,12,72,0.06);
}

/* ============================================
   Responsive helpers
   ============================================ */
@media (max-width: 767px) {
  .hide-mobile { display: none !important; }
  .co-hero { padding-top: 6rem; }
  .co-section { padding: 4rem 0; }
}
@media (min-width: 768px) { .hide-desktop { display: none !important; } }

/* ============================================
   Logo swap — light on dark hero, dark on white
   ============================================ */
.co-logo-wrap { position: relative; display: inline-flex; }
.co-logo-light { opacity: 1; }
.co-logo-dark  { opacity: 0; }

#co-navbar.scrolled .co-logo-light { opacity: 0; }
#co-navbar.scrolled .co-logo-dark  { opacity: 1; }

/* Preloader SVG path animations */
.co-preloader-c,
.co-preloader-o {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    transition: stroke-dashoffset 1s cubic-bezier(0.22,1,0.36,1);
}
#co-preloader.animating .co-preloader-c {
    stroke-dashoffset: 0;
    transition-delay: 0.2s;
}
#co-preloader.animating .co-preloader-o {
    stroke-dashoffset: 0;
    transition-delay: 0.4s;
}
#co-preloader.animating .co-preloader-dot {
    transform: scale(1) !important;
    opacity: 1 !important;
    transition: transform 0.6s cubic-bezier(0.22,1,0.36,1) 1.2s,
                opacity 0.6s ease 1.2s !important;
}

/* ============================================
   BREAKDANCE OVERRIDE FIXES
   Higher specificity to beat Breakdance reset
   ============================================ */

/* Force navbar fixed positioning */
header#co-navbar,
#co-navbar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 9999 !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    transition: background 0.7s ease, box-shadow 0.7s ease, border-color 0.7s ease !important;
}

header#co-navbar.scrolled,
#co-navbar.scrolled {
    background: rgba(255,255,255,0.92) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-bottom: 1px solid rgba(7,12,72,0.06) !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05) !important;
}

/* Nav inner layout */
#co-navbar .co-nav-inner {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    max-width: 1400px !important;
    margin: 0 auto !important;
    padding: 0 1.5rem !important;
    height: 6rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

@media (min-width: 1024px) {
    #co-navbar .co-nav-inner {
        padding: 0 4rem !important;
        height: 7rem !important;
    }
}

/* Logo sizing */
#co-navbar .co-nav-logo {
    height: 4rem !important;
    width: auto !important;
    display: block !important;
    max-width: none !important;
}

@media (min-width: 1024px) {
    #co-navbar .co-nav-logo {
        height: 5rem !important;
    }
}

/* Logo wrap */
#co-navbar .co-logo-wrap {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    z-index: 60 !important;
    flex-shrink: 0 !important;
}

/* Desktop nav links */
#co-navbar .co-nav-links {
    display: none !important;
    gap: 2.5rem !important;
    align-items: center !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

@media (min-width: 1024px) {
    #co-navbar .co-nav-links {
        display: flex !important;
    }
}

/* Nav link styles */
#co-navbar .co-nav-link {
    font-size: 13px !important;
    font-weight: 500 !important;
    letter-spacing: 0.15em !important;
    text-transform: uppercase !important;
    position: relative !important;
    transition: color 0.3s ease !important;
    text-decoration: none !important;
    white-space: nowrap !important;
}

#co-navbar .co-nav-link::after {
    content: "" !important;
    position: absolute !important;
    bottom: -4px !important;
    left: 0 !important;
    height: 1px !important;
    width: 0 !important;
    background: var(--brand-blue) !important;
    transition: width 0.5s ease !important;
}

#co-navbar .co-nav-link:hover::after,
#co-navbar .co-nav-link.active::after {
    width: 100% !important;
}

/* Link colours — not scrolled (dark hero) */
header#co-navbar:not(.scrolled) .co-nav-link,
#co-navbar:not(.scrolled) .co-nav-link {
    color: rgba(255,255,255,0.55) !important;
}

header#co-navbar:not(.scrolled) .co-nav-link:hover,
header#co-navbar:not(.scrolled) .co-nav-link.active,
#co-navbar:not(.scrolled) .co-nav-link:hover,
#co-navbar:not(.scrolled) .co-nav-link.active {
    color: #ffffff !important;
}

/* Link colours — scrolled (white bg) */
header#co-navbar.scrolled .co-nav-link,
#co-navbar.scrolled .co-nav-link {
    color: rgba(7,12,72,0.45) !important;
}

header#co-navbar.scrolled .co-nav-link:hover,
header#co-navbar.scrolled .co-nav-link.active,
#co-navbar.scrolled .co-nav-link:hover,
#co-navbar.scrolled .co-nav-link.active {
    color: var(--brand-navy) !important;
}

/* CTA button */
#co-navbar .co-nav-cta {
    display: none !important;
    align-items: center !important;
    gap: 0.5rem !important;
    padding: 0.625rem 1.5rem !important;
    border-radius: 9999px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
}

@media (min-width: 1024px) {
    #co-navbar .co-nav-cta {
        display: flex !important;
    }
}

#co-navbar:not(.scrolled) .co-nav-cta {
    border: 1px solid rgba(255,255,255,0.3) !important;
    color: rgba(255,255,255,0.85) !important;
    background: transparent !important;
}

#co-navbar:not(.scrolled) .co-nav-cta:hover {
    border-color: rgba(255,255,255,0.6) !important;
    color: #fff !important;
    background: rgba(255,255,255,0.07) !important;
}

#co-navbar.scrolled .co-nav-cta {
    border: 1px solid rgba(7,12,72,0.18) !important;
    color: rgba(7,12,72,0.75) !important;
    background: transparent !important;
}

#co-navbar.scrolled .co-nav-cta:hover {
    border-color: var(--brand-blue) !important;
    color: var(--brand-blue) !important;
    background: rgba(2,91,223,0.05) !important;
}

/* Hamburger */
#co-hamburger,
.co-hamburger {
    display: flex !important;
    flex-direction: column !important;
    gap: 5px !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    height: 40px !important;
    background: none !important;
    border: none !important;
    cursor: pointer !important;
    z-index: 60 !important;
    flex-shrink: 0 !important;
    padding: 0 !important;
}

@media (min-width: 1024px) {
    #co-hamburger,
    .co-hamburger {
        display: none !important;
    }
}

#co-hamburger span,
.co-hamburger span {
    display: block !important;
    width: 24px !important;
    height: 1.5px !important;
    border-radius: 2px !important;
    transition: all 0.4s ease !important;
}

#co-navbar:not(.scrolled) #co-hamburger span,
#co-navbar:not(.scrolled) .co-hamburger span {
    background: #fff !important;
}

#co-navbar.scrolled #co-hamburger span,
#co-navbar.scrolled .co-hamburger span {
    background: var(--brand-navy) !important;
}

.co-hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translate(4.5px, 4.5px) !important;
    background: var(--brand-navy) !important;
}
.co-hamburger.open span:nth-child(2) {
    opacity: 0 !important;
    transform: scaleX(0) !important;
}
.co-hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(4.5px, -4.5px) !important;
    background: var(--brand-navy) !important;
}

/* ============================================
   Footer overrides
   ============================================ */
#co-footer,
footer#co-footer {
    background: #0a0c48 !important;
    color: #fff !important;
    position: relative !important;
    overflow: hidden !important;
    padding: 0 !important;
    margin: 0 !important;
}

#co-footer * {
    box-sizing: border-box !important;
}

/* Footer CTA */
#co-footer .co-footer-cta {
    border-bottom: 1px solid rgba(255,255,255,0.05) !important;
}

#co-footer .co-footer-cta-inner {
    max-width: 1400px !important;
    margin: 0 auto !important;
    padding: 4rem 1.5rem !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 3rem !important;
}

@media (min-width: 1024px) {
    #co-footer .co-footer-cta-inner {
        flex-direction: row !important;
        align-items: flex-end !important;
        justify-content: space-between !important;
        padding: 8rem 4rem !important;
    }
}

#co-footer .co-footer-cta-tag {
    font-size: 12px !important;
    font-weight: 600 !important;
    letter-spacing: 0.25em !important;
    text-transform: uppercase !important;
    color: var(--brand-secondary) !important;
    margin-bottom: 1.5rem !important;
    display: block !important;
}

#co-footer .co-footer-cta-title {
    font-family: var(--font-display) !important;
    font-weight: 700 !important;
    font-size: clamp(2.5rem, 8vw, 5.5rem) !important;
    line-height: 0.9 !important;
    color: #fff !important;
    margin: 0 !important;
}

#co-footer .co-footer-cta-title .split-line {
    display: block !important;
    overflow: hidden !important;
}

#co-footer .co-footer-cta-title .split-line-inner {
    display: block !important;
}

#co-footer .co-footer-cta-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
    padding: 1.25rem 2.5rem !important;
    background: var(--brand-secondary) !important;
    color: #fff !important;
    border-radius: 9999px !important;
    font-weight: 600 !important;
    font-size: 0.8125rem !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    white-space: nowrap !important;
    border: none !important;
}

#co-footer .co-footer-cta-btn:hover {
    background: #fff !important;
    color: var(--brand-navy) !important;
}

/* Footer main */
#co-footer .co-footer-main {
    max-width: 1400px !important;
    margin: 0 auto !important;
    padding: 5rem 1.5rem 2.5rem !important;
}

@media (min-width: 1024px) {
    #co-footer .co-footer-main {
        padding: 5rem 4rem 2.5rem !important;
    }
}

/* Footer top row */
#co-footer .co-footer-top {
    display: flex !important;
    flex-direction: column !important;
    gap: 3rem !important;
    margin-bottom: 4rem !important;
}

@media (min-width: 1024px) {
    #co-footer .co-footer-top {
        flex-direction: row !important;
        align-items: flex-start !important;
        justify-content: space-between !important;
    }
}

#co-footer .co-footer-logo {
    height: 6rem !important;
    width: auto !important;
    margin-bottom: 1.5rem !important;
    display: block !important;
}

#co-footer .co-footer-tagline {
    color: rgba(255,255,255,0.85) !important;
    font-size: 0.875rem !important;
    line-height: 1.8 !important;
    max-width: 28rem !important;
    margin: 0 !important;
}

#co-footer .co-footer-email-label {
    color: rgba(255,255,255,0.5) !important;
    font-size: 11px !important;
    letter-spacing: 0.25em !important;
    text-transform: uppercase !important;
    margin-bottom: 0.75rem !important;
    display: block !important;
}

#co-footer .co-footer-email {
    font-family: var(--font-display) !important;
    font-weight: 300 !important;
    font-size: clamp(1.25rem, 2.5vw, 2.25rem) !important;
    color: #fff !important;
    text-decoration: none !important;
    transition: color 0.4s ease !important;
    display: block !important;
}

#co-footer .co-footer-email:hover {
    color: var(--brand-secondary) !important;
}

/* Footer divider */
#co-footer .co-footer-divider {
    height: 1px !important;
    background: rgba(255,255,255,0.06) !important;
    margin-bottom: 3rem !important;
}

/* Footer links grid */
#co-footer .co-footer-links {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 2.5rem !important;
    margin-bottom: 4rem !important;
}

@media (min-width: 768px) {
    #co-footer .co-footer-links {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}

#co-footer .co-footer-col-title {
    color: rgba(255,255,255,0.9) !important;
    font-size: 11px !important;
    font-weight: 500 !important;
    letter-spacing: 0.25em !important;
    text-transform: uppercase !important;
    margin-bottom: 1.25rem !important;
    display: block !important;
}

#co-footer .co-footer-col-links {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0.75rem !important;
}

#co-footer .co-footer-col-link {
    color: rgba(255,255,255,0.7) !important;
    font-size: 0.875rem !important;
    text-decoration: none !important;
    transition: color 0.3s ease !important;
    display: inline-block !important;
}

#co-footer .co-footer-col-link:hover {
    color: #fff !important;
}

/* Footer bottom */
#co-footer .co-footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.06) !important;
    padding-top: 2rem !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 1rem !important;
    text-align: center !important;
}

@media (min-width: 768px) {
    #co-footer .co-footer-bottom {
        flex-direction: row !important;
        justify-content: space-between !important;
        text-align: left !important;
    }
}

#co-footer .co-footer-copy {
    color: rgba(255,255,255,0.5) !important;
    font-size: 0.75rem !important;
    margin: 0 !important;
}

#co-footer .co-footer-legal {
    display: flex !important;
    align-items: center !important;
    gap: 1.5rem !important;
}

#co-footer .co-footer-legal a {
    color: rgba(255,255,255,0.5) !important;
    font-size: 0.75rem !important;
    text-decoration: none !important;
    transition: color 0.3s ease !important;
}

#co-footer .co-footer-legal a:hover {
    color: #fff !important;
}

#co-footer .co-footer-built {
    color: rgba(255,255,255,0.3) !important;
    font-size: 0.75rem !important;
    text-decoration: none !important;
    transition: color 0.3s ease !important;
}

#co-footer .co-footer-built:hover {
    color: var(--brand-secondary) !important;
}

/* ============================================
   Floating CTA override
   ============================================ */
.co-floating-cta {
    position: fixed !important;
    bottom: 2rem !important;
    right: 2rem !important;
    z-index: 9998 !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
    padding: 0.875rem 1.5rem !important;
    background: var(--brand-blue) !important;
    color: #fff !important;
    border-radius: 9999px !important;
    font-size: 0.8125rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    box-shadow: 0 4px 24px rgba(2,91,223,0.35) !important;
    transition: opacity 0.4s ease, transform 0.4s ease, background 0.3s ease !important;
    opacity: 0 !important;
    transform: translateY(1rem) !important;
    pointer-events: none !important;
}

.co-floating-cta.visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
    pointer-events: all !important;
}

.co-floating-cta:hover {
    background: var(--brand-navy) !important;
}

/* ============================================
   Mobile menu override
   ============================================ */
#co-mobile-menu {
    position: fixed !important;
    inset: 0 !important;
    z-index: 9997 !important;
    background: var(--brand-navy) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: center !important;
    padding: 2rem !important;
    clip-path: circle(0% at calc(100% - 44px) 44px) !important;
    transition: clip-path 0.6s cubic-bezier(0.22, 1, 0.36, 1) !important;
    pointer-events: none !important;
}

#co-mobile-menu.open {
    clip-path: circle(150% at calc(100% - 44px) 44px) !important;
    pointer-events: all !important;
}

#co-mobile-menu .co-mobile-links {
    display: flex !important;
    flex-direction: column !important;
    gap: 1rem !important;
    width: 100% !important;
}

#co-mobile-menu .co-mobile-link {
    font-family: var(--font-display) !important;
    font-size: clamp(2.5rem, 10vw, 4.5rem) !important;
    font-weight: 700 !important;
    color: rgba(255,255,255,0.3) !important;
    text-decoration: none !important;
    display: block !important;
    opacity: 0 !important;
    transform: translateX(-40px) !important;
    transition: opacity 0.5s ease, transform 0.5s ease, color 0.3s ease !important;
}

#co-mobile-menu.open .co-mobile-link {
    opacity: 1 !important;
    transform: translateX(0) !important;
}

#co-mobile-menu.open .co-mobile-link:nth-child(1) { transition-delay: 0.1s !important; }
#co-mobile-menu.open .co-mobile-link:nth-child(2) { transition-delay: 0.18s !important; }
#co-mobile-menu.open .co-mobile-link:nth-child(3) { transition-delay: 0.26s !important; }
#co-mobile-menu.open .co-mobile-link:nth-child(4) { transition-delay: 0.34s !important; }
#co-mobile-menu.open .co-mobile-link:nth-child(5) { transition-delay: 0.42s !important; }

#co-mobile-menu .co-mobile-link:hover,
#co-mobile-menu .co-mobile-link.active {
    color: #fff !important;
}

#co-mobile-menu .co-mobile-footer {
    position: absolute !important;
    bottom: 2.5rem !important;
    left: 2rem !important;
    right: 2rem !important;
    display: flex !important;
    justify-content: space-between !important;
    color: rgba(255,255,255,0.2) !important;
    font-size: 0.875rem !important;
}

/* ============================================
   Page body padding — push content below
   fixed navbar
   ============================================ */
body {
    padding-top: 0 !important;
}

/* Breakdance page content wrapper */
body .bde-page,
body [data-breakdance-type="page"] {
    padding-top: 0 !important;
}

/* Push Breakdance content below our fixed navbar */
body #breakdance-app > *:first-child,
body .bde-root > *:first-child {
    padding-top: 0 !important;
}

/* ============================================
   CRITICAL — Navbar must overlay page content
   Breakdance wraps content in .bde-page which
   needs no top margin/padding
   ============================================ */

/* Remove any gap Breakdance adds for fixed headers */
html body {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Breakdance page wrapper — no top offset */
body .bde-page,
body #breakdance-canvas,
body [class*="bde-"],
body .breakdance {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* The navbar must be above everything */
header#co-navbar {
    z-index: 99999 !important;
}

/* Preloader above everything */
#co-preloader {
    z-index: 999999 !important;
}

/* Grain overlay */
.grain-overlay {
    z-index: 99998 !important;
}

/* ============================================
   Navbar — transparent on hero, white scrolled
   The key issue: background must start
   completely transparent so hero shows through
   ============================================ */
header#co-navbar:not(.scrolled) {
    background: transparent !important;
    box-shadow: none !important;
    border-bottom: none !important;
}

/* Logo — show light on dark, dark on white */
header#co-navbar:not(.scrolled) .co-logo-light { opacity: 1 !important; }
header#co-navbar:not(.scrolled) .co-logo-dark  { opacity: 0 !important; }
header#co-navbar.scrolled .co-logo-light        { opacity: 0 !important; }
header#co-navbar.scrolled .co-logo-dark         { opacity: 1 !important; }

/* Nav opacity — show after preloader */
header#co-navbar {
    opacity: 1 !important;
    transition: opacity 0.8s ease, background 0.7s ease,
                box-shadow 0.7s ease, border-color 0.7s ease !important;
}

/* ============================================
   Footer social links with icons
   ============================================ */
#co-footer .co-footer-social-link {
    display: flex !important;
    align-items: center !important;
    gap: 0.625rem !important;
}

#co-footer .co-footer-social-link svg {
    opacity: 0.6 !important;
    transition: opacity 0.3s ease !important;
    flex-shrink: 0 !important;
}

#co-footer .co-footer-social-link:hover svg {
    opacity: 1 !important;
}

/* ============================================
   Breakdance content — push below fixed navbar
   The hero section must start at top:0 and
   extend behind the navbar
   ============================================ */

/* Breakdance renders a wrapping div — remove its top gap */
body > div:not(#co-preloader):not(#co-mobile-menu):not(.grain-overlay) {
    position: relative !important;
}

/* Ensure Breakdance first section can go full bleed */
.bde-section:first-child,
[data-breakdance-type="section"]:first-child {
    margin-top: 0 !important;
}

/* ============================================
   Admin bar offset — when logged in the
   WordPress admin bar adds 32px top offset
   Our navbar needs to account for this
   ============================================ */
.admin-bar header#co-navbar {
    top: 32px !important;
}

@media screen and (max-width: 782px) {
    .admin-bar header#co-navbar {
        top: 46px !important;
    }
}

/* ============================================
   Preloader — ensure it covers admin bar too
   ============================================ */
.admin-bar #co-preloader {
    top: 0 !important;
    height: 100vh !important;
}

/* ============================================
   TARGETED FIXES — matching live cocomms.agency
   ============================================ */

/* Floating CTA — green not blue */
.co-floating-cta {
    background: var(--brand-secondary) !important;
    color: var(--brand-navy) !important;
    box-shadow: 0 4px 24px rgba(25,235,160,0.35) !important;
}
.co-floating-cta:hover {
    background: #fff !important;
    color: var(--brand-navy) !important;
}

/* Footer services col — green hover underline effect */
#co-footer .co-footer-col-link {
    position: relative !important;
    padding-left: 0 !important;
    transition: color 0.3s ease, padding-left 0.3s ease !important;
}
#co-footer .co-footer-col-link::before {
    content: "" !important;
    position: absolute !important;
    left: 0 !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 0 !important;
    height: 1px !important;
    background: var(--brand-secondary) !important;
    transition: width 0.3s ease !important;
}
#co-footer .co-footer-col-link:hover {
    color: #fff !important;
    padding-left: 1.25rem !important;
}
#co-footer .co-footer-col-link:hover::before {
    width: 1rem !important;
}

/* Footer social links — no left padding animation, just colour */
#co-footer .co-footer-social-link:hover {
    color: var(--brand-secondary) !important;
    padding-left: 0 !important;
}
#co-footer .co-footer-social-link::before {
    display: none !important;
}

/* Navbar logo — match live site size */
#co-navbar .co-nav-logo {
    height: 4.5rem !important;
}
@media (min-width: 1024px) {
    #co-navbar .co-nav-logo {
        height: 5.5rem !important;
    }
}

/* Navbar inner — tighten gap between links */
#co-navbar .co-nav-links {
    gap: 2rem !important;
}
@media (min-width: 1280px) {
    #co-navbar .co-nav-links {
        gap: 2.5rem !important;
    }
}

/* Navbar height — match live site */
#co-navbar .co-nav-inner {
    height: 5.5rem !important;
}
@media (min-width: 1024px) {
    #co-navbar .co-nav-inner {
        height: 6.5rem !important;
    }
}

/* ============================================
   FSE HEADER BLOCKS — style native WordPress
   blocks to match our navbar design
   ============================================ */

/* FSE header template part wrapper */
.wp-block-template-part.site-header,
header.wp-block-template-part {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 9999 !important;
    transition: background 0.7s ease, box-shadow 0.7s ease !important;
}

/* Group block used as navbar container */
.wp-block-template-part .co-navbar,
.wp-block-group.co-navbar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 9999 !important;
    padding: 0 1.5rem !important;
    height: 6rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    transition: background 0.7s ease, box-shadow 0.7s ease !important;
    background: transparent !important;
}

@media (min-width: 1024px) {
    .wp-block-group.co-navbar {
        padding: 0 4rem !important;
        height: 7rem !important;
    }
}

/* Scrolled state — added by animations.js */
.wp-block-group.co-navbar.scrolled {
    background: rgba(255,255,255,0.92) !important;
    backdrop-filter: blur(20px) !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05) !important;
    border-bottom: 1px solid rgba(7,12,72,0.06) !important;
}

/* Site logo block */
.wp-block-group.co-navbar .wp-block-site-logo {
    flex-shrink: 0 !important;
}
.wp-block-group.co-navbar .wp-block-site-logo img {
    height: 4.5rem !important;
    width: auto !important;
}

/* Navigation block */
.wp-block-group.co-navbar .wp-block-navigation {
    display: flex !important;
    align-items: center !important;
    gap: 2rem !important;
}

/* Nav links */
.wp-block-group.co-navbar .wp-block-navigation-item__content,
.wp-block-group.co-navbar .wp-block-navigation a {
    font-size: 13px !important;
    font-weight: 500 !important;
    letter-spacing: 0.15em !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    position: relative !important;
    transition: color 0.3s ease !important;
    padding: 0 !important;
}

/* Underline effect */
.wp-block-group.co-navbar .wp-block-navigation a::after {
    content: "" !important;
    position: absolute !important;
    bottom: -4px !important;
    left: 0 !important;
    height: 1px !important;
    width: 0 !important;
    background: var(--brand-blue) !important;
    transition: width 0.5s ease !important;
}
.wp-block-group.co-navbar .wp-block-navigation a:hover::after,
.wp-block-group.co-navbar .wp-block-navigation .current-menu-item a::after {
    width: 100% !important;
}

/* Link colours — transparent navbar (dark hero) */
.wp-block-group.co-navbar:not(.scrolled) .wp-block-navigation a {
    color: rgba(255,255,255,0.55) !important;
}
.wp-block-group.co-navbar:not(.scrolled) .wp-block-navigation a:hover,
.wp-block-group.co-navbar:not(.scrolled) .current-menu-item a {
    color: #fff !important;
}

/* Link colours — scrolled (white navbar) */
.wp-block-group.co-navbar.scrolled .wp-block-navigation a {
    color: rgba(7,12,72,0.45) !important;
}
.wp-block-group.co-navbar.scrolled .wp-block-navigation a:hover,
.wp-block-group.co-navbar.scrolled .current-menu-item a {
    color: var(--brand-navy) !important;
}

/* CTA button */
.wp-block-group.co-navbar .co-nav-cta,
.wp-block-group.co-navbar .wp-block-buttons .wp-block-button__link {
    padding: 0.625rem 1.5rem !important;
    border-radius: 9999px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    background: transparent !important;
}

.wp-block-group.co-navbar:not(.scrolled) .wp-block-button__link {
    border: 1px solid rgba(255,255,255,0.3) !important;
    color: rgba(255,255,255,0.85) !important;
}
.wp-block-group.co-navbar:not(.scrolled) .wp-block-button__link:hover {
    border-color: rgba(255,255,255,0.6) !important;
    color: #fff !important;
}
.wp-block-group.co-navbar.scrolled .wp-block-button__link {
    border: 1px solid rgba(7,12,72,0.18) !important;
    color: rgba(7,12,72,0.75) !important;
}
.wp-block-group.co-navbar.scrolled .wp-block-button__link:hover {
    border-color: var(--brand-blue) !important;
    color: var(--brand-blue) !important;
}

/* Hide mobile nav toggle (we use our custom hamburger) */
.wp-block-group.co-navbar .wp-block-navigation__responsive-container-open {
    display: none !important;
}

/* Push page content below fixed header */
body .wp-site-blocks {
    padding-top: 0 !important;
}

/* TT4 default header — hide it so only ours shows */
.wp-block-template-part[data-slug="header"] > *:not(.co-navbar) {
    display: none !important;
}

/* ============================================
   FOOTER SIZING FIXES — match live site
   Based on screenshot reference
   ============================================ */

/* Footer logo — larger to match live site */
#co-footer .co-footer-logo {
    height: 8rem !important;
    width: auto !important;
    margin-bottom: 1.5rem !important;
}

/* Footer tagline — smaller, more muted */
#co-footer .co-footer-tagline {
    font-size: 0.8125rem !important;
    line-height: 1.9 !important;
    color: rgba(255,255,255,0.7) !important;
    max-width: 26rem !important;
}

/* Say Hello label */
#co-footer .co-footer-email-label {
    font-size: 11px !important;
    letter-spacing: 0.3em !important;
    color: rgba(255,255,255,0.4) !important;
    margin-bottom: 0.625rem !important;
    text-align: right !important;
}

/* Large email — display font, right aligned */
#co-footer .co-footer-email {
    font-family: var(--font-display) !important;
    font-weight: 200 !important;
    font-size: clamp(1.5rem, 3vw, 2.75rem) !important;
    color: #fff !important;
    display: block !important;
    text-align: right !important;
    letter-spacing: -0.02em !important;
}

/* Footer top — align email to right */
#co-footer .co-footer-top > div:last-child {
    text-align: right !important;
}

/* Footer column titles — smaller tracking */
#co-footer .co-footer-col-title {
    font-size: 10px !important;
    letter-spacing: 0.3em !important;
    color: rgba(255,255,255,0.6) !important;
    margin-bottom: 1.5rem !important;
}

/* Footer col links — slightly smaller */
#co-footer .co-footer-col-link {
    font-size: 0.8125rem !important;
    color: rgba(255,255,255,0.6) !important;
    line-height: 1.6 !important;
}

/* Footer bottom — copyright smaller */
#co-footer .co-footer-copy {
    font-size: 0.6875rem !important;
    color: rgba(255,255,255,0.35) !important;
    letter-spacing: 0.05em !important;
}

#co-footer .co-footer-legal a {
    font-size: 0.6875rem !important;
    color: rgba(255,255,255,0.35) !important;
}

#co-footer .co-footer-built {
    font-size: 0.6875rem !important;
    color: rgba(255,255,255,0.25) !important;
}

/* Footer main padding */
#co-footer .co-footer-main {
    padding: 5rem 1.5rem 2rem !important;
}
@media (min-width: 1024px) {
    #co-footer .co-footer-main {
        padding: 6rem 4rem 2.5rem !important;
    }
}

/* Footer top gap */
#co-footer .co-footer-top {
    margin-bottom: 5rem !important;
    align-items: flex-start !important;
}

/* Footer divider */
#co-footer .co-footer-divider {
    margin-bottom: 4rem !important;
    opacity: 0.5 !important;
}

/* Footer links grid spacing */
#co-footer .co-footer-links {
    gap: 3rem !important;
    margin-bottom: 5rem !important;
}

/* Social links — icon + text inline */
#co-footer .co-footer-social-link {
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
    color: rgba(255,255,255,0.6) !important;
}

#co-footer .co-footer-social-link svg {
    width: 16px !important;
    height: 16px !important;
    flex-shrink: 0 !important;
    opacity: 0.7 !important;
}

/* Footer CTA section — "Have a project in mind?" */
#co-footer .co-footer-cta {
    padding: 0 !important;
}

#co-footer .co-footer-cta-inner {
    padding: 5rem 1.5rem !important;
}

@media (min-width: 1024px) {
    #co-footer .co-footer-cta-inner {
        padding: 7rem 4rem !important;
    }
}

/* CTA title font sizing */
#co-footer .co-footer-cta-title {
    font-size: clamp(2.5rem, 7vw, 5rem) !important;
    line-height: 0.92 !important;
}

/* CTA button sizing */
#co-footer .co-footer-cta-btn {
    font-size: 0.75rem !important;
    padding: 1rem 2rem !important;
    letter-spacing: 0.12em !important;
}

/* Floating CTA — "Work With Us" label and sizing */
.co-floating-cta {
    padding: 0.875rem 1.75rem !important;
    font-size: 0.75rem !important;
    letter-spacing: 0.12em !important;
    gap: 0.625rem !important;
}

/* ============================================
   FINAL FOOTER + NAVBAR FIXES
   ============================================ */

/* Footer column titles — use body font not display font */
#co-footer .co-footer-col-title {
    font-family: var(--font-body) !important;
    font-size: 10px !important;
    font-weight: 500 !important;
    letter-spacing: 0.3em !important;
    color: rgba(255,255,255,0.5) !important;
    text-transform: uppercase !important;
}

/* Footer col links — more muted gray not white */
#co-footer .co-footer-col-link {
    color: rgba(255,255,255,0.5) !important;
    font-size: 0.8125rem !important;
}
#co-footer .co-footer-col-link:hover {
    color: rgba(255,255,255,0.9) !important;
}

/* Footer location text */
#co-footer .co-footer-links p {
    color: rgba(255,255,255,0.5) !important;
    font-size: 0.8125rem !important;
}

/* ============================================
   NAVBAR TOP MARGIN — remove the gap
   Twenty Twenty-Four adds a margin/padding
   at the top of the page body
   ============================================ */
html,
body,
body.wp-singular,
body.home,
body.page {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* TT4 wraps everything in .wp-site-blocks */
.wp-site-blocks {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* TT4 also adds padding to the header template part */
.wp-block-template-part {
    margin: 0 !important;
    padding: 0 !important;
}

/* The admin bar adds 32px — account for it */
.admin-bar .wp-site-blocks {
    padding-top: 0 !important;
}

/* Remove any top spacing TT4 adds before first block */
.wp-block-post-content > *:first-child,
.wp-block-group:first-child,
.entry-content > *:first-child {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Dark strip at very top — this is the admin bar showing through */
/* When logged in, push navbar down by admin bar height */
.admin-bar header#co-navbar,
.admin-bar #co-navbar {
    top: 32px !important;
}
@media screen and (max-width: 782px) {
    .admin-bar header#co-navbar,
    .admin-bar #co-navbar {
        top: 46px !important;
    }
}

/* ============================================
   HOME PAGE — Hero Slider
   ============================================ */

/* Slides — hidden by default, active shown */
.co-slide {
    display: none !important;
}
.co-slide.active {
    display: block !important;
    animation: slideIn 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Slide indicators */
.co-slide-indicator {
    display: block;
    height: 2px;
    background: rgba(255,255,255,0.2);
    border: none;
    cursor: pointer;
    transition: all 0.4s ease;
    width: 1.25rem;
    padding: 0;
}
.co-slide-indicator.active {
    width: 2rem !important;
    background: rgba(255,255,255,0.8) !important;
}

/* ============================================
   HOME PAGE — Why Choose Us
   ============================================ */
.co-why-card {
    background: #fff;
    border-radius: 1.25rem;
    padding: 2.5rem;
    border: 1px solid rgba(7,12,72,0.04);
    box-shadow: 0 1px 3px rgba(7,12,72,0.04), 0 4px 12px rgba(7,12,72,0.03);
    transition: box-shadow 0.4s ease, transform 0.4s ease;
    height: 100%;
}
.co-why-card:hover {
    box-shadow: 0 4px 16px rgba(2,91,223,0.08), 0 12px 40px rgba(7,12,72,0.06);
    transform: translateY(-3px);
}
.co-why-number {
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 700;
    color: rgba(7,12,72,0.05);
    line-height: 1;
    margin-bottom: 1rem;
}
.co-why-title {
    font-family: var(--font-display);
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--brand-navy);
    margin-bottom: 0.75rem;
}
.co-why-desc {
    color: rgba(7,12,72,0.45);
    font-size: 1.2rem;
    line-height: 1.7;
}

/* ============================================
   HOME PAGE — Stats
   ============================================ */
.co-stat-value {
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 6vw, 5rem);
    font-weight: 600;
    color: var(--brand-navy);
    line-height: 1;
    margin-bottom: 0.5rem;
}
.co-stat-label {
    color: rgba(7,12,72,0.35);
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

/* ============================================
   HOME PAGE — Services accordion
   ============================================ */
.service-row {
    border-top: 1px solid rgba(7,12,72,0.06);
}
.service-row:last-child {
    border-bottom: 1px solid rgba(7,12,72,0.06);
}
.service-row-toggle {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
    padding: 2.5rem 0;
}
.service-row-num {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: rgba(2,91,223,0.3);
    flex-shrink: 0;
    margin-top: 0.25rem;
}
.service-row-title {
    flex: 1;
    font-family: var(--font-display);
    font-size: clamp(1.25rem, 3vw, 2.5rem);
    font-weight: 700;
    color: rgba(7,12,72,0.8);
    line-height: 1.2;
    transition: color 0.3s ease;
}
.service-row-toggle[aria-expanded="true"] .service-row-title {
    color: var(--brand-navy);
}
.service-arrow {
    flex-shrink: 0;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    border: 1px solid rgba(7,12,72,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
    margin-top: 0.25rem;
}
.service-row-toggle[aria-expanded="true"] .service-arrow {
    border-color: rgba(2,91,223,0.4);
    background: rgba(2,91,223,0.08);
}
.service-arrow svg {
    width: 1.25rem;
    height: 1.25rem;
    color: rgba(7,12,72,0.3);
    transition: all 0.4s ease;
}
.service-row-toggle[aria-expanded="true"] .service-arrow svg {
    color: var(--brand-blue);
    transform: rotate(45deg);
}
.service-details {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.5s ease;
}
.service-details.open {
    grid-template-rows: 1fr;
}
.service-details-inner {
    overflow: hidden;
}
.service-details-content {
    padding-bottom: 2.5rem;
    padding-left: 3rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
@media (min-width: 768px) {
    .service-details-content {
        grid-template-columns: 1fr 1fr;
    }
}

/* ============================================
   HOME PAGE — Trusted Brands marquee
   ============================================ */
.co-brands-section {
    background: var(--brand-off-white);
    padding: 3rem 0;
    overflow: hidden;
}
.co-brands-track {
    display: flex;
    gap: 4rem;
    align-items: center;
    animation: marquee 30s linear infinite;
    width: max-content;
}
.co-brands-track:hover { animation-play-state: paused; }
.co-brand-logo {
    height: 2.5rem;
    width: auto;
    opacity: 0.7;
    filter: grayscale(0);
    transition: opacity 0.7s ease, filter 0.3s ease;
    flex-shrink: 0;
}
.co-brand-logo:hover {
    opacity: 0.8.5;
    filter: grayscale(0);
}
.co-brand-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(7,12,72,0.3);
    white-space: nowrap;
    letter-spacing: 0.05em;
    flex-shrink: 0;
}

/* ============================================
   KADENCE BLOCKS — Hero section styling
   ============================================ */

/* Hero section overrides */
.co-hero,
.kadence-column.co-hero,
.wp-block-kadence-rowlayout.co-hero {
    position: relative !important;
    overflow: hidden !important;
    min-height: 100vh !important;
}

/* Hero eyebrow */
.co-hero-eyebrow,
.co-hero-eyebrow .kt-adv-heading {
    color: var(--brand-secondary) !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    letter-spacing: 0.2em !important;
    text-transform: uppercase !important;
    display: flex !important;
    align-items: center !important;
    gap: 1rem !important;
    margin-bottom: 1.5rem !important;
}

.co-hero-eyebrow::before {
    content: "" !important;
    display: block !important;
    width: 3rem !important;
    height: 1px !important;
    background: var(--brand-secondary) !important;
    flex-shrink: 0 !important;
}

/* Hero title */
.co-hero-title,
.co-hero-title .kt-adv-heading {
    font-family: var(--font-display) !important;
    color: #fff !important;
    line-height: 0.95 !important;
    font-size: clamp(2.5rem, 6vw, 7rem) !important;
    font-weight: 700 !important;
    margin-bottom: 2rem !important;
}

/* Hero description */
.co-hero-desc {
    color: rgba(255,255,255,0.5) !important;
    font-size: 1.125rem !important;
    line-height: 1.7 !important;
    max-width: 32rem !important;
    margin-bottom: 2.5rem !important;
}

/* Hero buttons */
.co-hero-btns .kt-blocks-btn-link,
.co-hero-btns .wp-block-button__link {
    border-radius: 9999px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
    padding: 0.875rem 2rem !important;
    transition: all 0.3s ease !important;
}

/* Kadence row layout — remove default margin */
.wp-block-kadence-rowlayout {
    margin-bottom: 0 !important;
}

/* Kadence inner column */
.wp-block-kadence-rowlayout .kadence-column {
    position: relative !important;
}

/* ============================================
   KADENCE BLOCKS — Why Choose Us
   ============================================ */
.co-why-section {
    background: #fff !important;
    padding: 5rem 0 !important;
}
@media (min-width: 768px) {
    .co-why-section { padding: 10rem 0 !important; }
}

.co-why-card-wrap .wp-block-kadence-rowlayout {
    gap: 1.5rem !important;
}

/* ============================================
   KADENCE BLOCKS — Stats section
   ============================================ */
.co-stats-section {
    background: var(--brand-off-white) !important;
    padding: 5rem 0 !important;
}

.co-stat-item {
    text-align: center !important;
}

.co-stat-item .kt-adv-heading {
    font-family: var(--font-display) !important;
    font-size: clamp(3rem, 6vw, 5rem) !important;
    font-weight: 700 !important;
    color: var(--brand-navy) !important;
    line-height: 1 !important;
    margin-bottom: 0.5rem !important;
}

.co-stat-label {
    color: rgba(7,12,72,0.35) !important;
    font-size: 0.8125rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.15em !important;
    margin: 0 !important;
}

/* ============================================
   KADENCE BLOCKS — Services section
   ============================================ */
.co-services-section {
    background: #fff !important;
    padding: 5rem 0 !important;
}
@media (min-width: 768px) {
    .co-services-section { padding: 10rem 0 !important; }
}

/* Style Kadence accordion to match our design */
.co-services-section .kt-accordion-panel-inner {
    border-top: 1px solid rgba(7,12,72,0.06) !important;
}
.co-services-section .kt-accordion-header-btn {
    display: flex !important;
    align-items: center !important;
    gap: 2rem !important;
    padding: 2rem 0 !important;
    background: none !important;
    border: none !important;
    width: 100% !important;
    text-align: left !important;
    font-family: var(--font-display) !important;
    font-size: clamp(1.25rem, 3vw, 2.5rem) !important;
    font-weight: 700 !important;
    color: rgba(7,12,72,0.8) !important;
    cursor: pointer !important;
    transition: color 0.3s ease !important;
}
.co-services-section .kt-accordion-header-btn:hover {
    color: var(--brand-navy) !important;
}
.co-services-section .kt-accordion-content {
    padding: 0 0 2rem 0 !important;
    color: rgba(7,12,72,0.4) !important;
    font-size: 1rem !important;
    line-height: 1.7 !important;
}

/* ============================================
   KADENCE BLOCKS — Section titles (eyebrows)
   ============================================ */
.co-section-eyebrow,
.co-section-eyebrow .kt-adv-heading {
    color: var(--brand-blue) !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    letter-spacing: 0.2em !important;
    text-transform: uppercase !important;
    margin-bottom: 1.5rem !important;
    font-family: var(--font-body) !important;
}

.co-section-title,
.co-section-title .kt-adv-heading {
    font-family: var(--font-display) !important;
    font-size: clamp(2.5rem, 4vw, 4.5rem) !important;
    font-weight: 700 !important;
    color: var(--brand-navy) !important;
    /*line-height: 0.95 !important;*/
    /*letter-spacing: -0.02em !important;*/
    margin-bottom: 3rem !important;
}

/* ============================================
   KADENCE BLOCKS — Brands marquee
   ============================================ */
.co-brands-section {
    background: var(--brand-off-white) !important;
    padding: 2.5rem 0 !important;
    overflow: hidden !important;
}

/* ============================================
   General — remove Kadence/TT4 default spacing
   ============================================ */
.entry-content .wp-block-kadence-rowlayout {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.site-main .entry-content {
    padding: 0 !important;
    margin: 0 !important;
}

/* TT4 wraps page content in article — remove padding */
.wp-block-post-content,
article.page,
.entry-content {
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
}

/* Remove TT4 default content width constraint */
.is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
    max-width: 100% !important;
}

/* ============================================
   HOME PAGE — PHP Template Styles
   ============================================ */

/* Hero controls */
.co-hero-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 3rem;
}
.co-hero-indicators {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}
.co-hero-counter {
    font-size: 13px;
    color: rgba(255,255,255,0.3);
    font-weight: 500;
    display: none;
}
@media (min-width: 768px) {
    .co-hero-counter { display: flex; align-items: center; }
}

/* Scroll indicator */
.co-scroll-indicator {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%) rotate(90deg);
    display: none;
    align-items: center;
    gap: 0.75rem;
    color: rgba(255,255,255,0.2);
    font-size: 10px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    white-space: nowrap;
}
@media (min-width: 1024px) {
    .co-scroll-indicator { display: flex; }
}
.co-scroll-line {
    display: block;
    width: 3rem;
    height: 1px;
    background: rgba(255,255,255,0.2);
}

/* Hero eyebrow */
.co-hero-eyebrow {
    color: var(--brand-secondary);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.co-hero-eyebrow::before {
    content: "";
    display: block;
    width: 3rem;
    height: 1px;
    background: var(--brand-secondary);
    flex-shrink: 0;
}

/* Hero title */
.co-hero-title {
    font-family: var(--font-display);
    font-weight: 700;
    color: #fff;
    line-height: 0.95;
    font-size: clamp(2.5rem, 6vw, 7rem);
    margin: 0 0 2rem 0;
}

/* Hero description */
.co-hero-desc {
    color: rgba(255,255,255,0.5);
    font-size: 1.125rem;
    line-height: 1.7;
    max-width: 32rem;
    margin-bottom: 2.5rem;
}

/* Hero buttons */
.co-hero-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

/* Section header */
.co-section-header {
    margin-bottom: 4rem;
}
.co-section-eyebrow {
    color: var(--brand-blue);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    display: block;
    margin-bottom: 1.5rem;
}
.co-section-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 4vw, 4.5rem);
    font-weight: 700;
    color: var(--brand-navy);
    /*line-height: 0.95;*/
    /*letter-spacing: -0.02em;*/
    margin: 0;
}

/* Why grid */
.co-why-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
@media (min-width: 640px) {
    .co-why-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
    .co-why-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Stats grid */
.co-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}
@media (min-width: 768px) {
    .co-stats-grid { grid-template-columns: repeat(4, 1fr); }
}
.co-stat-value {
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 6vw, 5rem);
    font-weight: 600;
    color: var(--brand-navy);
    line-height: 1;
    margin-bottom: 0.5rem;
    display: block;
}
.co-stat-label {
    color: rgba(7,12,72,0.35);
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin: 0;
}

/* Services list */
.co-services-list { margin-top: 3rem; }

/* Brands */
.co-brands-section {
    background: var(--brand-off-white);
    padding: 2.5rem 0;
    overflow: hidden;
}
.co-brands-track {
    display: flex;
    gap: 4rem;
    align-items: center;
    animation: marquee 30s linear infinite;
    width: max-content;
}
.co-brands-track:hover { animation-play-state: paused; }
.co-brand-item { flex-shrink: 0; }
.co-brand-logo {
    height: 2.5rem;
    width: auto;
    opacity: 0.7;
    filter: grayscale(0);
    transition: opacity 0.3s ease, filter 0.3s ease;
}
.co-brand-logo:hover { opacity: 0.7.5; filter: grayscale(0); }
.co-brand-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(7,12,72,0.3);
    white-space: nowrap;
    letter-spacing: 0.05em;
}

/* Remove TT4 content constraints on front page */
body.home .wp-site-blocks,
body.front-page .wp-site-blocks {
    padding: 0 !important;
}
body.home .entry-content,
body.home article {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* ============================================
   CO COMMUNICATIONS — THEME ADDITIONS
   All additions in one clean block at end.
   ============================================ */

/* ── Elementor section padding reset ── */
.elementor-section .elementor-container,
.elementor-section .elementor-column-wrap,
.elementor-column > .elementor-widget-wrap,
.elementor-top-column > .elementor-widget-wrap {
    padding: 0 !important;
}
.elementor-section.elementor-section-boxed > .elementor-container {
    max-width: 100% !important;
}
.elementor-widget-wrap > .elementor-element {
    width: 100% !important;
}
.elementor-column-gap-default .elementor-column > .elementor-widget-wrap {
    padding: 0 !important;
}

/* ── Why Choose Us card additions ── */
.co-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
}
.co-why-icon {
    width: 56px; height: 56px;
    border-radius: 16px;
    background: rgba(2,91,223,0.05);
    display: flex; align-items: center; justify-content: center;
    color: rgba(2,91,223,0.4);
    transition: all 0.5s ease;
}
.co-why-card:hover .co-why-icon { background: var(--brand-blue); color: #fff; }
.co-why-bar {
    height: 2px; width: 0;
    background: var(--brand-blue);
    border-radius: 2px; margin-top: 2rem;
    transition: width 0.7s ease;
}
.co-why-card:hover .co-why-bar { width: 4rem; }
.co-why-title { transition: color 0.5s ease; }
.co-why-card:hover .co-why-title { color: var(--brand-blue); }

/* ── About page ── */
.co-mv-grid { display:grid; grid-template-columns:1fr; gap:1.5rem; margin-bottom:5rem; }
@media (min-width:1024px) { .co-mv-grid { grid-template-columns:repeat(2,1fr); } }
.co-mv-card { padding:3rem; border-radius:1.5rem; }
.co-mv-icon { width:56px; height:56px; border-radius:16px; background:rgba(2,91,223,0.06); display:flex; align-items:center; justify-content:center; margin-bottom:1.5rem; }
.co-mv-label { font-size:13px; font-weight:500; letter-spacing:0.2em; text-transform:uppercase; color:rgba(7,12,72,0.4); display:block; margin-bottom:1rem; }
.co-mv-title { font-family:var(--font-display); font-size:1.5rem; font-weight:600; color:var(--brand-navy); margin-bottom:1rem; line-height:1.3; }
.co-mv-text { color:rgba(7,12,72,0.5); font-size:1rem; line-height:1.75; margin:0; }
.co-values-grid { display:grid; grid-template-columns:1fr; gap:1.5rem; margin-top:3rem; }
@media (min-width:640px) { .co-values-grid { grid-template-columns:repeat(2,1fr); } }
@media (min-width:1024px) { .co-values-grid { grid-template-columns:repeat(3,1fr); } }
.co-value-card { padding:2.5rem; border-radius:1.25rem; }
.co-team-row { display:grid; grid-template-columns:1fr; gap:3rem; align-items:start; margin-bottom:6rem; }
@media (min-width:1024px) { .co-team-row { grid-template-columns:2fr 3fr; gap:5rem; } }
.co-team-row--not-first { border-top:1px solid rgba(7,12,72,0.06); padding-top:6rem; }
.co-portrait { aspect-ratio:3/4; border-radius:1.5rem; overflow:hidden; border:1px solid rgba(7,12,72,0.06); box-shadow:0 20px 60px rgba(7,12,72,0.08); position:relative; }
.co-portrait img { width:100%; height:100%; object-fit:cover; object-position:top; }
.co-portrait-badge { position:absolute; bottom:1.25rem; left:1.25rem; right:1.25rem; background:rgba(255,255,255,0.92); backdrop-filter:blur(8px); border-radius:1rem; padding:0.75rem 1.25rem; border:1px solid rgba(7,12,72,0.06); }
.co-team-photo-wrap { position:relative; }
.co-team-bio { display:flex; flex-direction:column; justify-content:center; }

/* ── Contact page ── */
.co-contact-grid { display:grid; grid-template-columns:1fr; gap:3rem; }
@media (min-width:1024px) { .co-contact-grid { grid-template-columns:3fr 2fr; gap:4rem; } }
.co-contact-link { display:flex; align-items:center; gap:1rem; padding:1.25rem; border-radius:1rem; text-decoration:none; transition:all 0.3s ease; }
.co-contact-link:hover { transform:translateX(4px); }

/* ── Blog page ── */
.co-blog-layout { display:grid; grid-template-columns:1fr; gap:4rem; }
@media (min-width:1024px) { .co-blog-layout { grid-template-columns:3fr 2fr; } }
.co-tabs { border-bottom:1px solid rgba(7,12,72,0.06); background:#fff; position:sticky; top:6.5rem; z-index:10; }
.co-tabs-inner { max-width:1400px; margin:0 auto; padding:0 1.5rem; display:flex; gap:0; overflow-x:auto; }
@media (min-width:1024px) { .co-tabs-inner { padding:0 4rem; } }
.co-tab { padding:1.25rem 1.5rem; font-size:0.8125rem; font-weight:500; letter-spacing:0.1em; text-transform:uppercase; color:rgba(7,12,72,0.4); background:none; border:none; cursor:pointer; border-bottom:2px solid transparent; transition:all 0.3s ease; white-space:nowrap; }
.co-tab.active,.co-tab:hover { color:var(--brand-navy); }
.co-tab.active { border-bottom-color:var(--brand-blue); }

/* ── Form elements ── */
.co-label { display:block; font-size:0.8125rem; font-weight:500; color:rgba(7,12,72,0.6); margin-bottom:0.5rem; letter-spacing:0.03em; }
.co-input { width:100%; padding:0.875rem 1.125rem; border:1px solid rgba(7,12,72,0.1); border-radius:0.75rem; font-size:0.9375rem; color:var(--brand-navy); background:#fff; transition:border-color 0.3s ease,box-shadow 0.3s ease; font-family:var(--font-body); box-sizing:border-box; }
.co-input:focus { outline:none; border-color:var(--brand-blue); box-shadow:0 0 0 3px rgba(2,91,223,0.08); }
.co-input::placeholder { color:rgba(7,12,72,0.25); }

/* ── Buttons ── */
.btn { display:inline-flex; align-items:center; gap:0.5rem; padding:0.875rem 2rem; border-radius:9999px; font-size:0.8125rem; font-weight:600; letter-spacing:0.1em; text-transform:uppercase; transition:all 0.3s ease; cursor:pointer; border:none; font-family:var(--font-body); text-decoration:none; }
.btn-primary { background:#fff; color:var(--brand-navy); }
.btn-primary:hover { background:var(--brand-secondary); color:#fff; }
.btn-outline { background:transparent; color:rgba(255,255,255,0.8); border:1px solid rgba(255,255,255,0.25); }
.btn-outline:hover { border-color:rgba(255,255,255,0.5); color:#fff; background:rgba(255,255,255,0.05); }
.btn-outline-navy { background:transparent; color:rgba(7,12,72,0.7); border:1px solid rgba(7,12,72,0.15); }
.btn-outline-navy:hover { border-color:var(--brand-blue); color:var(--brand-blue); }
.btn-blue { background:var(--brand-blue); color:#fff; }
.btn-blue:hover { background:var(--brand-navy); }

/* ── Gradient text ── */
.gradient-text {
    background: linear-gradient(135deg, #025bdf, #3a7ee8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Hero title — white, Transforma Mix, no gradient bleed ── */
.co-hero-title,
.co-hero-title .split-line,
.co-hero-title .split-line-inner {
    font-family: "Transforma Mix", "Playfair Display", Georgia, serif !important;
    font-weight: 600 !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    background: none !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
}

/* ── Footer CTA title — white, Transforma Mix ── */
.co-footer-cta-title,
.co-footer-cta-title .split-line,
.co-footer-cta-title .split-line-inner {
    font-family: "Transforma Mix", "Playfair Display", Georgia, serif !important;
    font-weight: 600 !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    background: none !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
}

/* ── Footer text colours ── */
#co-footer .co-footer-col-title { color: rgba(255,255,255,0.9) !important; }
#co-footer .co-footer-col-link  { color: rgba(255,255,255,0.65) !important; }
#co-footer .co-footer-col-link:hover { color: #fff !important; padding-left: 1.25rem !important; }
#co-footer .co-footer-copy,
#co-footer .co-footer-legal a   { color: rgba(255,255,255,0.45) !important; }
#co-footer .co-footer-legal a:hover { color: #fff !important; }
#co-footer .co-footer-built     { color: rgba(255,255,255,0.3) !important; text-decoration: none !important; }
#co-footer .co-footer-built:hover { color: var(--brand-secondary) !important; }

/* ── Footer social links ── */
#co-footer .co-footer-social-link {
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
    color: rgba(255,255,255,0.65) !important;
    padding-left: 0 !important;
}
#co-footer .co-footer-social-link::before { display: none !important; }
#co-footer .co-footer-social-link:hover {
    color: var(--brand-secondary) !important;
    padding-left: 0 !important;
}

/* ── Brand logos ── */
.co-brand-logo {
    max-height: 3rem;
    max-width: 8rem;
    width: auto; height: auto;
    object-fit: contain;
    opacity: 0.7;
    transition: opacity 0.4s ease;
}
.co-brand-logo:hover { opacity: 1; }

/* ============================================
   CO BLOG WIDGET
   ============================================ */
.co-blog-tabs {
    border-bottom: 1px solid rgba(7,12,72,0.06);
    background: #fff;
    position: sticky;
    top: 6.5rem;
    z-index: 30;
    backdrop-filter: blur(20px);
}
.co-blog-tabs-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    gap: 2.5rem;
}
@media (min-width:1024px) { .co-blog-tabs-inner { padding: 0 4rem; } }
.co-blog-tab {
    padding: 1.25rem 0;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(7,12,72,0.3);
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    position: relative;
    font-family: var(--font-body);
}
.co-blog-tab:hover  { color: rgba(7,12,72,0.6); }
.co-blog-tab.active { color: var(--brand-blue); border-bottom-color: var(--brand-blue); }
 
/* Article content typography */
.co-article-content p  { color: rgba(7,12,72,0.5); font-size: 1.0625rem; line-height: 1.9; margin-bottom: 1.5rem; }
.co-article-content h1,
.co-article-content h2,
.co-article-content h3 { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; color: var(--brand-navy); margin: 2.5rem 0 1rem; }
.co-article-content ul,
.co-article-content ol { color: rgba(7,12,72,0.5); font-size: 1.0625rem; line-height: 1.9; margin-bottom: 1.5rem; padding-left: 1.5rem; }
.co-article-content a  { color: var(--brand-blue); text-decoration: underline; }
 
/* Gallery grid responsive */
.co-gallery-grid-widget {
    grid-template-columns: repeat(2, 1fr) !important;
}
@media (min-width: 768px) {
    .co-gallery-grid-widget { grid-template-columns: repeat(3, 1fr) !important; }
}
 