/* ==========================================================================
   Vibrant Visionaries Marketing — "Editorial" refinement layer
   --------------------------------------------------------------------------
   Loads AFTER each page's inline <style> block and overrides it.
   The colour scheme is untouched: every colour below is either an existing
   brand variable (--primary, --secondary, --accent, --dark, --light) or an
   alpha/greyscale value derived from --dark.

   Sections
     01. Tokens & typography
     02. Motion primitives (scroll reveal)
     03. Navigation
     04. Hero / page headers
     05. Section rhythm & headings
     06. Cards, icons, grids
     07. Buttons & controls
     08. Page-specific refinements
     09. Forms & application modal
     10. Footer
     11. Responsive
   ========================================================================== */

/* ==========================================================================
   01. Tokens & typography
   ========================================================================== */

:root {
  /* Neutrals derived from the existing --dark (#0a2540) */
  --vv-ink: #0a2540;
  --vv-body: #3d5060;
  --vv-muted: #6b7c8b;
  --vv-line: rgba(10, 37, 64, 0.12);
  --vv-line-soft: rgba(10, 37, 64, 0.07);
  --vv-wash: #f7fafc;

  --vv-radius: 3px;
  --vv-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --vv-shell: 1200px;
  --vv-pad: clamp(1.25rem, 5vw, 3rem);
  --vv-section: clamp(4.5rem, 9vw, 8rem);

  /* portfolio.html declares this — flatten it */
  --shadow-3d: 0 1px 2px rgba(10, 37, 64, 0.05);
}

body {
  font-family: "Instrument Sans", "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  line-height: 1.7;
  color: var(--vv-body);
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  background: #fff;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
.logo,
.stat-number,
.timeline-year,
.step-number,
.gallery-title,
.section-title,
.hero-title {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-optical-sizing: auto;
  color: var(--vv-ink);
  letter-spacing: -0.015em;
  line-height: 1.14;
  font-weight: 400;
}

h1 {
  font-weight: 300;
}
h2 {
  font-size: clamp(1.85rem, 1.2rem + 2.2vw, 2.9rem);
  font-weight: 400;
}
h3 {
  font-size: clamp(1.15rem, 1rem + 0.6vw, 1.4rem);
  font-weight: 500;
  letter-spacing: -0.01em;
}
p {
  color: inherit;
}

/* Small tracked utility text used across the site */
.section-label,
.member-role,
.stat-label,
.gallery-category,
.gallery-badge,
.badge,
.file-info {
  font-family: "Instrument Sans", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.7rem;
  font-weight: 500;
}

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

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

/* ==========================================================================
   02. Motion primitives
   ========================================================================== */

/* Neutralise the old jump-in reveal; the observer below takes over. */
.reveal,
.reveal.active {
  opacity: 1;
  transform: none;
}

[data-vv] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--vv-ease), transform 0.9s var(--vv-ease);
  transition-delay: calc(var(--vv-i, 0) * 70ms);
  will-change: opacity, transform;
}

[data-vv].is-in {
  opacity: 1;
  transform: none;
}

/* Signature: a hairline that draws itself out under every section heading */
.section-header::after,
.contact-hero-content::after,
.overview-content > h2::after {
  content: "";
  display: block;
  height: 1px;
  width: 0;
  margin-top: 1.75rem;
  background: var(--primary);
  transition: width 1.1s var(--vv-ease) 0.25s;
}

.section-header.is-in::after,
.contact-hero-content.is-in::after,
.overview-content.is-in > h2::after {
  width: 72px;
}

/* Signature: photographs uncover behind a sliding navy curtain */
.about-image,
.member-photo,
.gallery-item,
.location-card {
  position: relative;
  overflow: hidden;
}

.about-image::after,
.member-photo::after,
.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--secondary);
  transform: translateX(0);
  transition: transform 1s var(--vv-ease);
  z-index: 4;
  pointer-events: none;
}

.about-image.is-in::after,
.member-photo.is-in::after,
.gallery-item.is-in::after {
  transform: translateX(101%);
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    scroll-behavior: auto !important;
  }
  [data-vv] {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .about-image::after,
  .member-photo::after,
  .gallery-item::after {
    display: none;
  }
  .section-header::after {
    width: 72px;
    transition: none;
  }
}

/* Retire the restless template animations */
.info-icon,
.logo,
.hero-3d-shape,
.loader-cube {
  animation: none !important;
}

/* ==========================================================================
   03. Navigation
   ========================================================================== */

nav {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  box-shadow: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s var(--vv-ease), background 0.4s var(--vv-ease);
}

nav.vv-scrolled {
  border-bottom-color: var(--vv-line);
  background: rgba(255, 255, 255, 0.97);
}

.nav-container {
  max-width: var(--vv-shell);
  padding: 0.85rem var(--vv-pad);
}

.nav-container img,
nav .logo img {
  height: 58px !important;
  width: auto;
}

.nav-links,
.nav-menu {
  gap: 2.4rem;
}

.nav-links a,
.nav-menu a,
.nav-link {
  font-size: 0.76rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--vv-ink);
}

.nav-links a::after,
.nav-menu a::after,
.nav-link::after {
  bottom: -7px;
  height: 1px;
  background: var(--primary);
}

/* Join Us / CTA in the bar */
.nav-cta,
a.nav-cta {
  background: var(--dark) !important;
  color: #fff !important;
  border: 1px solid var(--dark);
  border-radius: var(--vv-radius);
  padding: 0.7rem 1.4rem;
  box-shadow: none;
  transition: background 0.35s var(--vv-ease), color 0.35s var(--vv-ease);
}

.nav-cta:hover,
a.nav-cta:hover {
  background: var(--primary) !important;
  border-color: var(--primary);
  transform: none;
}

.nav-cta::after {
  display: none !important;
}

/* Mobile panel */
.mobile-nav,
.mobile-overlay,
.mobile-nav-overlay {
  background: #fff;
}

.mobile-nav-links a,
.mobile-overlay a,
.mobile-nav-overlay a {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.6rem;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--vv-ink);
}

/* ==========================================================================
   04. Hero & page headers
   ========================================================================== */

/* --- index hero: three photographs cycling as the section background ----
   .slide-1/2/3 each own one photograph. The page's existing slider script
   cycles them; everything below is presentation only. To change a picture,
   edit the three background-image lines — they override the copies inside
   index.html's <style> block, so this is the single place to do it.
   -------------------------------------------------------------------- */
.hero-slider {
  background: var(--dark);
}

.slide-1 .slide-background {
  background-image: url("../images/gallery/gal1e.jpg");
}

.slide-2 .slide-background {
  background-image: url("../images/gallery/gal51.jpg");
}

.slide-3 .slide-background {
  background-image: url("../images/gallery/gal61.jpg");
}

/* Full-bleed, edge to edge behind the type */
.slide-background {
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.08);
  transition: transform 9s linear;
}

/* Slow drift so a still photograph doesn't sit dead behind the headline */
.slide.active .slide-background {
  transform: scale(1);
}

/* Longer crossfade between photographs than the original 1s */
.slide {
  justify-content: flex-start;
  transition: opacity 1.4s var(--vv-ease);
}

/* Navy wash weighted to the left so the type always has a dark bed */
.slide-overlay {
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 0;
  background: linear-gradient(
      100deg,
      rgba(10, 37, 64, 0.88) 0%,
      rgba(10, 37, 64, 0.62) 42%,
      rgba(10, 37, 64, 0.25) 100%
    ),
    linear-gradient(to top, rgba(10, 37, 64, 0.55), transparent 45%);
}

.slide-content {
  text-align: left;
  max-width: 46rem;
  padding: 0 var(--vv-pad);
  margin-left: max(0px, calc((100vw - var(--vv-shell)) / 2));
}

.slide-content::before {
  content: "Direct sales & marketing";
  display: block;
  width: fit-content;
  white-space: nowrap;
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.75rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}

.slide h1 {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(2.4rem, 1.4rem + 3.8vw, 4.4rem);
  font-weight: 300;
  color: #fff;
  letter-spacing: -0.025em;
  line-height: 1.08;
  text-shadow: none;
  margin-bottom: 1.5rem;
  max-width: 18ch;
}

.slide p {
  font-size: clamp(1rem, 0.95rem + 0.4vw, 1.2rem);
  color: rgba(255, 255, 255, 0.85);
  max-width: 46ch;
  margin: 0 auto 2.6rem 0;
}

.slide-buttons {
  justify-content: flex-start;
}

/* Dashes bottom-left, arrows bottom-right */
.slider-indicators {
  left: max(var(--vv-pad), calc((100vw - var(--vv-shell)) / 2 + var(--vv-pad)));
  bottom: clamp(2.5rem, 6vh, 4rem);
  transform: none;
  justify-content: flex-start;
  gap: 0.6rem;
}

.indicator {
  width: 34px;
  height: 2px;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.3);
  transition: background 0.4s var(--vv-ease), width 0.4s var(--vv-ease);
}

.indicator.active {
  background: #fff;
  width: 52px;
  transform: none;
}

.slider-nav {
  top: auto;
  bottom: clamp(2.5rem, 6vh, 4rem);
  transform: translateY(50%);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--vv-radius);
  color: #fff;
  font-size: 0.8rem;
  transition: background 0.35s var(--vv-ease), border-color 0.35s var(--vv-ease);
}

.slider-nav:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: #fff;
  transform: translateY(50%);
}

.slider-nav.prev {
  left: auto;
  right: calc(
    max(var(--vv-pad), (100vw - var(--vv-shell)) / 2 + var(--vv-pad)) + 52px
  );
}

.slider-nav.next {
  right: max(var(--vv-pad), calc((100vw - var(--vv-shell)) / 2 + var(--vv-pad)));
}

@media (prefers-reduced-motion: reduce) {
  .slide-background {
    transform: none;
    transition: none;
  }
}

/* --- inner page headers (about / services / contact) --- */
.page-header {
  background: var(--dark);
  padding: clamp(9rem, 14vw, 12rem) var(--vv-pad) clamp(4rem, 7vw, 6rem);
  text-align: left;
}

.page-header::before {
  content: "";
  position: absolute;
  inset: auto -20% -60% 40%;
  width: 60%;
  height: 120%;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(62, 181, 219, 0.22),
    transparent 62%
  );
  animation: none !important;
  transform: none;
  border-radius: 0;
}

.page-header h1 {
  position: relative;
  z-index: 2;
  max-width: var(--vv-shell);
  margin: 0 auto;
  color: #fff;
  font-size: clamp(2.4rem, 1.5rem + 3.6vw, 4rem);
  font-weight: 300;
  letter-spacing: -0.025em;
}

.page-header p {
  position: relative;
  z-index: 2;
  max-width: var(--vv-shell);
  margin: 1.25rem auto 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.05rem;
}

.page-header p::before {
  content: "";
  display: block;
  width: 56px;
  height: 1px;
  background: var(--accent);
  margin-bottom: 1.5rem;
}

/* --- portfolio hero --- */
.hero-section {
  background: var(--dark);
  padding: clamp(9rem, 14vw, 12rem) var(--vv-pad) clamp(4rem, 7vw, 6rem);
}

.hero-3d-bg {
  opacity: 0.25;
}

.hero-3d-shape {
  opacity: 0.35;
  filter: blur(28px);
}

.hero-content {
  max-width: var(--vv-shell);
  margin: 0 auto;
  text-align: left;
}

.hero-title {
  color: #fff;
  font-weight: 300;
  font-size: clamp(2.4rem, 1.5rem + 3.6vw, 4rem);
  -webkit-text-fill-color: #fff;
  background: none;
  text-shadow: none;
}

.hero-subtitle {
  color: rgba(255, 255, 255, 0.75);
  max-width: 52ch;
  margin: 1.25rem 0 0;
}

/* ==========================================================================
   05. Section rhythm & headings
   ========================================================================== */

.quick-info,
.services-preview,
.cta-section,
.about-hero,
.mvv-section,
.team-section,
.timeline-section,
.why-us,
.services-overview,
.contact-hero,
.contact-methods,
.contact-main,
.locations-section,
.faq-section,
.gallery-section {
  padding-top: var(--vv-section);
  padding-bottom: var(--vv-section);
  padding-left: var(--vv-pad);
  padding-right: var(--vv-pad);
}

/* Quiet alternating washes — no new colours, just the brand mist */
.quick-info,
.mvv-section,
.timeline-section,
.contact-methods,
.faq-section {
  background: var(--vv-wash);
}

.services-preview,
.team-section,
.why-us,
.about-hero,
.locations-section,
.gallery-section,
.contact-main,
.services-overview {
  background: #fff;
}

.section-header {
  max-width: var(--vv-shell);
  margin: 0 auto clamp(2.75rem, 5vw, 4rem);
  text-align: left;
}

.section-header h2,
.section-header .section-title {
  max-width: 22ch;
  margin-bottom: 0.9rem;
}

.section-header p {
  max-width: 58ch;
  color: var(--vv-muted);
  font-size: 1.02rem;
}

/* The original sheet centred these with auto margins */
.section-header p,
.section-header h2,
.overview-content > h2,
.overview-content > p,
.contact-hero-content h2,
.contact-hero-content p,
.detail-header p,
.cta-section > .cta-content h2,
.cta-section > .cta-content p {
  margin-left: 0;
  margin-right: auto;
}

/* Keep headings in line with the narrower blocks they introduce */
.timeline-section .section-header {
  max-width: 900px;
}

.faq-section .section-header {
  max-width: 880px;
}

/* Eyebrows: they name the section, they don't number it */
.services-preview .section-header::before,
.team-section .section-header::before,
.timeline-section .section-header::before,
.why-us .section-header::before,
.locations-section .section-header::before,
.faq-section .section-header::before {
  display: block;
  font-family: "Instrument Sans", sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 1.1rem;
}

.services-preview .section-header::before {
  content: "What we do";
}
.team-section .section-header::before {
  content: "The people";
}
.timeline-section .section-header::before {
  content: "Our story";
}
.why-us .section-header::before {
  content: "The difference";
}
.locations-section .section-header::before {
  content: "Find us";
}
.faq-section .section-header::before {
  content: "Good to know";
}

.section-label {
  color: var(--primary);
  margin-bottom: 1.1rem;
}

/* ==========================================================================
   06. Cards, icons, grids
   ========================================================================== */

.info-container,
.services-grid,
.mvv-container,
.team-grid,
.why-us-grid,
.methods-grid,
.locations-grid,
.faq-container,
.gallery-grid,
.container {
  max-width: var(--vv-shell);
  margin-left: auto;
  margin-right: auto;
}

/* One shared card treatment: flat, hairline, small radius */
.info-card,
.service-item,
.mvv-card,
.why-card,
.method-card,
.location-card,
.feature-item,
.timeline-content,
.faq-item {
  background: #fff;
  border: 1px solid var(--vv-line);
  border-radius: var(--vv-radius);
  box-shadow: none;
  padding: clamp(1.6rem, 3vw, 2.25rem);
  transition: border-color 0.4s var(--vv-ease), transform 0.4s var(--vv-ease),
    box-shadow 0.4s var(--vv-ease);
}

.info-card:hover,
.service-item:hover,
.mvv-card:hover,
.why-card:hover,
.method-card:hover,
.location-card:hover,
.feature-item:hover,
.timeline-content:hover {
  transform: translateY(-4px);
  border-color: rgba(37, 150, 190, 0.55);
  box-shadow: 0 18px 40px -28px rgba(10, 37, 64, 0.45);
}

.mvv-card::before {
  display: none;
}

.info-card h3,
.service-item h3,
.mvv-card h3,
.why-card h3,
.method-card h3,
.feature-item h4,
.location-card h3 {
  margin-bottom: 0.65rem;
}

.info-card p,
.service-item p,
.mvv-card p,
.why-card p,
.method-card p,
.feature-item p,
.location-card p {
  color: var(--vv-muted);
  font-size: 0.97rem;
}

/* --------------------------------------------------------------------
   Drawn icons — one monoline set on a 24px grid, no coloured emoji,
   no filled chips. Stroke inherits colour so hover states are free.
   -------------------------------------------------------------------- */
.vv-ico {
  width: 30px;
  height: 30px;
  display: block;
  flex: none;
  color: var(--secondary);
  overflow: visible;
  transition: color 0.4s var(--vv-ease), transform 0.5s var(--vv-ease);
}

.vv-ico-sm {
  width: 16px;
  height: 16px;
  display: inline-block;
  vertical-align: -3px;
  margin-right: 0.45rem;
  stroke-width: 1.4;
}

.info-icon,
.why-icon,
.mvv-icon,
.method-icon,
.service-item-icon,
.gallery-icon {
  font-size: 0;
  line-height: 0;
  width: auto;
  height: auto;
  display: block;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  margin: 0 0 1.5rem;
  transform: none;
}

.service-item-icon {
  margin-bottom: 1.25rem;
}

/* The mark picks up the accent as the card comes forward */
.info-card:hover .vv-ico,
.service-item:hover .vv-ico,
.mvv-card:hover .vv-ico,
.why-card:hover .vv-ico,
.method-card:hover .vv-ico,
.feature-item:hover .vv-ico {
  color: var(--primary);
  transform: translateY(-2px);
}

/* Services: the lead mark for each discipline, drawn larger */
.service-icon-large {
  font-size: 0;
  line-height: 0;
  width: 44px;
  height: 44px;
  background: none !important;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 0.35rem 0 0;
}

.service-icon-large .vv-ico {
  width: 44px;
  height: 44px;
  color: var(--primary);
  stroke-width: 1.1;
}

/* Contact info rows */
.info-item .info-icon {
  min-width: 30px;
  margin: 0.2rem 0 0;
  background: none !important;
  border: 0;
  box-shadow: none !important;
  color: inherit;
}

.info-item .vv-ico {
  width: 24px;
  height: 24px;
  color: var(--primary);
}

/* Footer and contact-card inline marks */
.footer-section .vv-ico-sm,
.location-card .vv-ico-sm,
.info-content .vv-ico-sm {
  color: var(--primary);
}

.footer-section li {
  display: flex;
  align-items: flex-start;
  gap: 0;
}

.footer-section li .vv-ico-sm {
  margin-top: 0.45rem;
  color: rgba(255, 255, 255, 0.45);
}

/* Gallery overlay mark */
.gallery-icon {
  margin-bottom: 0.75rem;
}

.gallery-icon .vv-ico {
  width: 26px;
  height: 26px;
  color: #fff;
}

/* File-upload mark inside the application modal */
.vv-file-ico {
  display: flex;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.vv-file-ico .vv-ico {
  width: 34px;
  height: 34px;
  color: var(--primary);
}

/* The feature list ticks were a "✓" text glyph */
.feature-item h4::before {
  content: "";
  width: 15px;
  height: 15px;
  flex: none;
  background: no-repeat center/contain
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232596be' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12.5 9.5 18 20 5.5'/%3E%3C/svg%3E");
}

.service-item {
  text-align: left;
}

/* Core services: separate cards with real gaps. The previous version drew
   dividers with 1px borders between flush cells, which the browser rounds
   away at fractional column widths — hence the missing lines. Gaps can't
   round to nothing. Each card is clickable, so it gets a chevron. */
.services-grid {
  /* Fixed counts rather than auto-fit: with five cards auto-fit lands on
     4 + 1, which leaves an orphan. 5, then 3 + 2, then 2 + 2 + 1. */
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(0.85rem, 1.6vw, 1.25rem);
  background: none;
  border: 0;
  border-radius: 0;
  overflow: visible;
}

.services-grid .service-item {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--vv-line);
  border-radius: var(--vv-radius);
  padding: 1.75rem 1.5rem 3rem;
  cursor: pointer;
  transition: border-color 0.4s var(--vv-ease), transform 0.4s var(--vv-ease),
    box-shadow 0.4s var(--vv-ease);
}

.services-grid .service-item h3 {
  font-size: 1.08rem;
  margin: 0;
}

/* Chevron marking the card as a link through to the services page */
.services-grid .service-item::after {
  content: "";
  position: absolute;
  left: 1.5rem;
  bottom: 1.45rem;
  width: 16px;
  height: 16px;
  background: no-repeat center/contain
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232596be' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h15'/%3E%3Cpath d='M13 6l6 6-6 6'/%3E%3C/svg%3E");
  opacity: 0.35;
  transform: translateX(0);
  transition: opacity 0.4s var(--vv-ease), transform 0.4s var(--vv-ease);
}

.services-grid .service-item:hover {
  transform: translateY(-4px);
  background: #fff;
  border-color: rgba(37, 150, 190, 0.55);
  box-shadow: 0 18px 40px -28px rgba(10, 37, 64, 0.45);
}

.services-grid .service-item:hover::after {
  opacity: 1;
  transform: translateX(5px);
}

.services-grid .service-item:hover .vv-ico {
  color: var(--primary);
}

@media (max-width: 1100px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 700px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.mvv-card,
.info-card,
.why-card {
  text-align: left;
}

/* Quick info: no white box on the mist wash — a top rule and open columns,
   with the rule picking up the accent as the pointer moves across. */
.info-container {
  gap: clamp(1.75rem, 4vw, 3.25rem);
}

.info-card {
  background: none;
  border: 0;
  border-top: 1px solid var(--vv-line);
  border-radius: 0;
  padding: 1.75rem 0 0;
  box-shadow: none;
  transition: border-top-color 0.4s var(--vv-ease);
}

.info-card:hover {
  transform: none;
  background: none;
  border-top-color: var(--primary);
  box-shadow: none;
}

.info-card h3 {
  margin-bottom: 0.75rem;
}

.info-card p {
  margin: 0;
}

.why-card {
  background: #fff;
}

.why-card:hover {
  background: #fff;
}

/* ==========================================================================
   07. Buttons & controls
   ========================================================================== */

.btn,
.cta-btn,
.submit-btn,
.tab-btn,
.filter-btn,
.btn-white {
  border-radius: var(--vv-radius);
  font-family: "Instrument Sans", sans-serif;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 1.05rem 2.1rem;
  box-shadow: none;
  border: 1px solid transparent;
  transition: background 0.35s var(--vv-ease), color 0.35s var(--vv-ease),
    border-color 0.35s var(--vv-ease);
}

.btn:hover,
.cta-btn:hover,
.submit-btn:hover,
.btn-white:hover {
  transform: none;
  box-shadow: none;
}

.btn-primary,
.cta-btn,
.btn-white {
  background: #fff;
  color: var(--dark);
  border-color: #fff;
}

.btn-primary:hover,
.cta-btn:hover,
.btn-white:hover {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
}

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

.btn-secondary:hover {
  background: #fff;
  color: var(--dark);
  border-color: #fff;
}

/* Buttons on light sections (the index CTA block sets inline colours) */
.cta-section .btn-primary,
.cta-section .btn-primary[style] {
  background: var(--dark) !important;
  border-color: var(--dark);
  color: #fff !important;
}

.cta-section .btn-primary:hover {
  background: var(--primary) !important;
  border-color: var(--primary);
}

.cta-section .btn-secondary,
.cta-section .btn-secondary[style] {
  background: transparent;
  border: 1px solid var(--vv-line) !important;
  color: var(--vv-ink) !important;
}

.cta-section .btn-secondary:hover {
  background: var(--dark) !important;
  border-color: var(--dark) !important;
  color: #fff !important;
}

.tab-btn,
.filter-btn {
  background: transparent;
  border: 1px solid var(--vv-line);
  color: var(--vv-muted);
  padding: 0.8rem 1.5rem;
  transform: none;
}

.tab-btn:hover,
.filter-btn:hover {
  background: transparent;
  border-color: var(--primary);
  color: var(--primary);
  transform: none;
  box-shadow: none;
}

.tab-btn.active,
.filter-btn.active {
  background: var(--dark);
  border-color: var(--dark);
  color: #fff;
  transform: none;
  box-shadow: none;
}

.service-tabs {
  justify-content: flex-start;
  max-width: var(--vv-shell);
  margin: 0 auto clamp(2.5rem, 5vw, 3.5rem);
  gap: 0.6rem;
  border-top: 1px solid var(--vv-line);
  padding-top: 2rem;
}

/* ==========================================================================
   08. Page-specific refinements
   ========================================================================== */

/* --- index: stats --- */
.stats-bar {
  background: var(--dark);
  padding: clamp(3.5rem, 6vw, 5rem) var(--vv-pad);
}

.stats-container {
  max-width: var(--vv-shell);
  gap: 0;
  text-align: left;
}

.stat-item {
  padding: 0.5rem 2rem;
  border-left: 1px solid rgba(255, 255, 255, 0.16);
}

.stat-item:first-child {
  border-left: 0;
  padding-left: 0;
}

.stat-number {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 300;
  font-size: clamp(2.4rem, 1.6rem + 2.4vw, 3.4rem);
  color: #fff !important;
  font-variant-numeric: tabular-nums;
  margin-bottom: 0.5rem;
}

.stat-label {
  color: rgba(255, 255, 255, 0.6);
}

/* --- index: closing CTA (portfolio.html nests its CTA inside .container,
       so these direct-child selectors leave that one on its gradient) --- */
.cta-section > .cta-content {
  max-width: var(--vv-shell);
  margin: 0 auto;
  text-align: left;
  border-top: 1px solid var(--vv-line);
  padding-top: clamp(2.5rem, 5vw, 4rem);
}

.cta-section > .cta-content h2 {
  color: var(--vv-ink);
  max-width: 18ch;
}

.cta-section > .cta-content p {
  color: var(--vv-muted);
  max-width: 54ch;
}

.cta-section > .cta-content .cta-buttons {
  justify-content: flex-start;
}

/* --- portfolio: CTA keeps its gradient panel --- */
.cta-section .container .cta-content h3,
.cta-section .container .cta-content p {
  color: #fff;
}

/* --- about --- */
.about-hero-content {
  max-width: var(--vv-shell);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

.about-text h2 {
  margin-bottom: 1.25rem;
}

.about-text p {
  color: var(--vv-muted);
}

.about-image {
  border-radius: var(--vv-radius);
  box-shadow: none;
  height: clamp(320px, 46vw, 480px);
  background: var(--light);
}

.mvv-container {
  gap: 1.5rem;
}

.mvv-card {
  padding: clamp(1.75rem, 3.5vw, 2.75rem);
}

.team-grid {
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.team-member {
  text-align: left;
}

.team-member:hover {
  transform: none;
}

.member-photo {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  border-radius: var(--vv-radius);
  margin: 0 0 1.25rem;
  background: var(--light);
  transition: none;
}

.team-member:hover .member-photo {
  transform: none;
}

.member-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  transition: transform 1.2s var(--vv-ease);
}

.team-member:hover .member-photo img {
  transform: scale(1.05);
}

.team-member h3 {
  margin-bottom: 0.35rem;
}

.member-role {
  color: var(--primary);
}

.timeline {
  max-width: 900px;
}

.timeline::before {
  width: 1px;
  background: var(--vv-line);
}

/* The original card filled the row and slid under the year marker */
.timeline-content {
  flex: 0 0 calc(50% - 5rem);
  margin: 0 2.5rem;
}

.timeline-content h3 {
  margin-bottom: 0.5rem;
}

.timeline-content p {
  color: var(--vv-muted);
}

.timeline-year {
  background: #fff !important;
  color: var(--vv-ink);
  border: 1px solid var(--vv-line);
  border-radius: var(--vv-radius);
  box-shadow: none;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  padding: 0.4rem 0.9rem;
}

.why-us-grid {
  gap: 1.5rem;
}

/* --- services --- */
.overview-content {
  max-width: var(--vv-shell);
  margin: 0 auto clamp(2.5rem, 5vw, 3.5rem);
  text-align: left;
}

.overview-content h2 {
  max-width: 20ch;
  margin-bottom: 1rem;
}

.overview-content p {
  max-width: 62ch;
  color: var(--vv-muted);
}

.service-detail {
  max-width: var(--vv-shell);
  margin: 0 auto;
}

.detail-header {
  align-items: start;
  gap: 1.75rem;
  padding-bottom: 2rem;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--vv-line);
}

.detail-header p {
  color: var(--vv-muted);
}

.features-grid {
  gap: 1.25rem;
}

.feature-item h4 {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.08rem;
  font-weight: 500;
}

.service-process {
  border-top: 1px solid var(--vv-line);
  padding-top: clamp(2.5rem, 5vw, 3.5rem);
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  background: transparent;
}

.process-title {
  text-align: left;
  font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem);
  margin-bottom: 2.5rem;
}

.process-step {
  text-align: left;
}

.step-number {
  width: 44px;
  height: 44px;
  background: transparent !important;
  color: var(--vv-ink);
  border: 1px solid var(--vv-line);
  border-radius: var(--vv-radius);
  box-shadow: none;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.05rem;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  margin: 0 0 1rem;
}

.process-step p {
  color: var(--vv-muted);
  font-size: 0.95rem;
}

.service-cta,
.contact-cta {
  background: var(--dark);
  padding: clamp(4.5rem, 8vw, 7rem) var(--vv-pad);
  text-align: left;
}

.service-cta h2,
.contact-cta h2 {
  color: #fff;
  max-width: 18ch;
  margin: 0 auto;
  max-width: var(--vv-shell);
  font-weight: 300;
}

.service-cta p,
.contact-cta p {
  color: rgba(255, 255, 255, 0.75);
  max-width: var(--vv-shell);
  margin: 1.25rem auto 2.5rem;
}

.service-cta .cta-buttons,
.contact-cta .cta-buttons {
  max-width: var(--vv-shell);
  margin: 0 auto;
}

/* --- contact --- */
.contact-hero-content {
  max-width: var(--vv-shell);
  margin: 0 auto;
  text-align: left;
}

.contact-hero-content h2 {
  max-width: 20ch;
}

.contact-hero-content p {
  color: var(--vv-muted);
  max-width: 60ch;
}

.method-card {
  text-align: left;
  cursor: pointer;
}

.method-card p {
  margin-bottom: 0.25rem;
}

/* Long email addresses were running past the card edge */
.method-card a {
  display: inline-block;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.5;
  font-size: 0.95rem;
}

.methods-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 420px));
  justify-content: start;
  gap: 1.5rem;
}

/* Map */
.contact-methods {
  padding-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.map {
  padding: 0 var(--vv-pad) var(--vv-section);
  background: var(--vv-wash);
}

.map-frame {
  max-width: var(--vv-shell);
  margin: 0 auto;
  border: 1px solid var(--vv-line);
  border-radius: var(--vv-radius);
  overflow: hidden;
  line-height: 0;
}

.map iframe {
  width: 100%;
  max-width: 100%;
  height: clamp(320px, 42vw, 460px);
  display: block;
  border: 0;
  filter: saturate(0.85) contrast(1.02);
}

.contact-container {
  max-width: var(--vv-shell);
  gap: clamp(2.5rem, 5vw, 4.5rem);
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
}

.contact-form-section {
  background: #fff;
  border: 1px solid var(--vv-line);
  border-radius: var(--vv-radius);
  box-shadow: none;
  padding: clamp(1.75rem, 3.5vw, 2.75rem);
}

.info-header h3 {
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  margin-bottom: 0.75rem;
}

.info-item {
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--vv-line-soft);
}

.info-items .info-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.info-content h4 {
  font-family: "Instrument Sans", sans-serif;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--primary);
  margin-bottom: 0.4rem;
}

.info-content p {
  color: var(--vv-body);
}

.faq-container {
  max-width: 880px;
}

.faq-item {
  margin-bottom: 0.75rem;
  border-radius: var(--vv-radius);
  overflow: hidden;
  padding: 0;
}

.faq-question {
  background: transparent;
  padding: 1.5rem clamp(1.25rem, 3vw, 1.75rem);
  gap: 1.5rem;
}

.faq-question:hover {
  background: var(--light);
}

.faq-question h3 {
  font-size: 1.05rem;
  font-weight: 500;
}

.faq-icon {
  width: 30px;
  height: 30px;
  min-width: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 300;
  line-height: 1;
  margin: 0;
  background: transparent;
  border: 1px solid var(--vv-line);
  border-radius: 50%;
  color: var(--primary);
  transition: transform 0.4s var(--vv-ease), border-color 0.4s var(--vv-ease);
}

.faq-item.active .faq-icon {
  transform: rotate(135deg);
  border-color: var(--primary);
}

.faq-answer {
  padding-left: clamp(1.25rem, 3vw, 1.75rem);
  padding-right: clamp(1.25rem, 3vw, 1.75rem);
  color: var(--vv-muted);
}

.location-card {
  overflow: visible;
}

/* --- portfolio --- */
.gallery-item {
  border-radius: var(--vv-radius);
  box-shadow: none;
  border: 1px solid var(--vv-line);
  height: auto;
  transform: none !important;
}

.gallery-item:hover {
  box-shadow: 0 20px 45px -30px rgba(10, 37, 64, 0.5);
  border-color: rgba(37, 150, 190, 0.55);
}

.gallery-item img {
  height: 280px;
  display: block;
}

.gallery-item:hover img {
  transform: scale(1.04);
}

.gallery-overlay {
  height: 280px;
  background: linear-gradient(
    180deg,
    rgba(10, 37, 64, 0) 30%,
    rgba(10, 37, 64, 0.78) 100%
  );
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 0.15rem;
  padding: 1.5rem;
}

.gallery-title {
  color: #fff;
  font-size: 1.2rem;
  font-weight: 400;
  transform: none;
}

.gallery-item:hover .gallery-title {
  transform: none;
}

.gallery-category {
  color: rgba(255, 255, 255, 0.75);
  transform: none;
}

.gallery-info {
  position: static;
  padding: 1.1rem 1.25rem;
  border-top: 1px solid var(--vv-line);
  transform: none;
}

.gallery-badge {
  background: transparent !important;
  color: var(--primary);
  border: 1px solid var(--vv-line);
  border-radius: var(--vv-radius);
  padding: 0.3rem 0.7rem;
}

.gallery-grid {
  gap: clamp(1rem, 2.5vw, 1.75rem);
}

.carousel-container {
  max-width: var(--vv-shell);
  margin: 0 auto clamp(2.5rem, 5vw, 4rem);
  border-radius: var(--vv-radius);
  overflow: hidden;
  border: 1px solid var(--vv-line);
}

.carousel-slide img {
  height: clamp(320px, 48vw, 560px);
}

.carousel-btn {
  background: rgba(255, 255, 255, 0.9);
  color: var(--vv-ink);
  border: 1px solid var(--vv-line);
  border-radius: 50%;
  box-shadow: none;
}

.filter-buttons {
  max-width: var(--vv-shell);
  margin: 0 auto clamp(2rem, 4vw, 3rem);
  justify-content: flex-start;
  gap: 0.6rem;
}

.lightbox {
  background: rgba(10, 37, 64, 0.94);
}

.lightbox-content {
  border-radius: var(--vv-radius);
}

.scroll-top {
  border-radius: var(--vv-radius);
  background: var(--dark);
  box-shadow: none;
  border: 1px solid var(--dark);
}

.scroll-top:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: none;
}

.loader {
  background: var(--dark);
}

/* ==========================================================================
   09. Forms & application modal
   ========================================================================== */

.modal-container {
  border-radius: var(--vv-radius);
}

.modal-header {
  background: var(--dark) !important;
  padding: 2.25rem clamp(1.5rem, 4vw, 2.5rem);
}

.modal-header h2 {
  color: #fff;
  font-weight: 300;
  font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem);
}

.modal-header p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
}

.close-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--vv-radius);
  color: #fff;
}

.modal-body {
  padding: clamp(1.5rem, 4vw, 2.5rem);
}

.form-section h3 {
  font-family: "Instrument Sans", sans-serif;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--primary);
  border-bottom: 1px solid var(--vv-line);
  padding-bottom: 0.9rem;
  margin-bottom: 1.5rem;
}

.form-group label {
  font-family: "Instrument Sans", sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--vv-ink);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea,
.contact-form input,
.contact-form select,
.contact-form textarea {
  font-family: "Instrument Sans", sans-serif;
  font-size: 0.98rem;
  color: var(--vv-ink);
  background: #fff;
  border: 1px solid var(--vv-line);
  border-radius: var(--vv-radius);
  padding: 0.85rem 1rem;
  transition: border-color 0.3s var(--vv-ease), box-shadow 0.3s var(--vv-ease);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus,
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 150, 190, 0.12);
  outline: none;
}

.form-group input[readonly] {
  background: var(--light);
  color: var(--vv-muted);
}

.required {
  color: var(--primary);
}

.file-upload-label {
  border: 1px dashed var(--vv-line);
  border-radius: var(--vv-radius);
  background: var(--vv-wash);
  color: var(--vv-muted);
}

.file-upload-label:hover {
  border-color: var(--primary);
  background: var(--light);
}

.file-info {
  letter-spacing: 0.12em;
  color: var(--vv-muted);
}

/* Honeypot — off-screen rather than display:none, which some bots skip */
.vv-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Banner shown after process_contact.php redirects back */
.form-status {
  border: 1px solid var(--vv-line);
  border-left: 3px solid var(--primary);
  border-radius: var(--vv-radius);
  background: var(--light);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  color: var(--vv-ink);
}

/* Focused programmatically for screen readers — no visible ring needed */
.form-status:focus {
  outline: none;
}

.form-status.is-error {
  border-left-color: var(--secondary);
  background: var(--vv-wash);
}

.form-status strong {
  display: block;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 500;
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}

.submit-btn {
  background: var(--dark);
  border-color: var(--dark);
  color: #fff;
  width: 100%;
}

.submit-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
}

/* ==========================================================================
   10. Footer
   ========================================================================== */

footer {
  background: var(--dark);
  padding: clamp(4rem, 7vw, 6rem) var(--vv-pad) 2rem;
}

.footer-content {
  max-width: var(--vv-shell);
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-section img {
  height: 92px !important;
  width: auto;
  margin-bottom: 1.25rem;
}

.footer-section h3 {
  color: #fff;
  font-family: "Instrument Sans", sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  margin-bottom: 1.4rem;
}

.footer-section p,
.footer-section li,
.footer-section a {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.94rem;
  line-height: 1.85;
}

.footer-section a {
  text-decoration: none;
  transition: color 0.3s var(--vv-ease);
}

.footer-section a:hover {
  color: #fff;
}

.footer-bottom {
  max-width: var(--vv-shell);
  margin: 0 auto;
  padding-top: 1.75rem;
  border-top: 0;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
}

/* ==========================================================================
   11. Responsive
   ========================================================================== */

@media (max-width: 991px) {
  .stats-container {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 2.5rem;
  }
  .stat-item:nth-child(odd) {
    border-left: 0;
    padding-left: 0;
  }
}

@media (max-width: 768px) {
  /* Links inside the slide-in panel need to stay tappable, not micro-tracked */
  .nav-links a,
  .nav-menu a,
  .nav-link {
    font-size: 1rem;
    letter-spacing: 0.1em;
  }

  /* Hero: the photo has less room to breathe, so darken the wash */
  .slide-overlay {
    background: linear-gradient(
        180deg,
        rgba(10, 37, 64, 0.8) 0%,
        rgba(10, 37, 64, 0.68) 40%,
        rgba(10, 37, 64, 0.88) 100%
      );
  }

  .slide h1 {
    max-width: none;
  }

  .about-hero-content,
  .contact-container {
    grid-template-columns: 1fr;
  }

  .member-photo {
    aspect-ratio: 1 / 1;
  }

  .timeline-content {
    flex: 0 0 auto;
    width: 100%;
    margin: 0 0 0 3rem;
  }

  .section-header h2,
  .section-header .section-title,
  .cta-section h2,
  .overview-content h2 {
    max-width: none;
  }

  .service-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    justify-content: flex-start;
    padding-bottom: 0.5rem;
    scrollbar-width: none;
  }

  .service-tabs::-webkit-scrollbar {
    display: none;
  }

  .tab-btn {
    white-space: nowrap;
  }
}

@media (max-width: 560px) {
  .stats-container {
    grid-template-columns: 1fr;
  }
  .stat-item {
    border-left: 0;
    padding-left: 0;
  }
  .btn,
  .cta-btn,
  .submit-btn {
    width: 100%;
    text-align: center;
  }
  .cta-buttons,
  .slide-buttons {
    flex-direction: column;
    align-items: stretch;
  }
}
