/* ═══════════════════════════════════════
   RESET & VARIABLES
   ═══════════════════════════════════════ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --navy: #122941;
  --navy-deep: #0a1c2e;
  --navy-90: rgba(18, 41, 65, 0.92);
  --burgundy: #82245c;
  --teal: #36b2c2;
  --teal-light: #4ecadb;
  --white: #ffffff;
  --off-white: #f4f5f7;
  --gray-100: #e8eaed;
  --gray-200: #d1d5db;
  --gray-400: #9ca3af;
  --gray-600: #6b7280;
  --font-display: 'Instrument Serif', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quint: cubic-bezier(0.22, 1, 0.36, 1);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  color: var(--navy);
  background: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { border: none; background: none; cursor: pointer; font-family: inherit; }

/* ═══════════════════════════════════════
   UTILITY CLASSES
   ═══════════════════════════════════════ */
.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 60px);
}

.section-pad {
  padding: clamp(60px, 10vw, 140px) 0;
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s var(--ease-out-expo), transform 0.9s var(--ease-out-expo);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ═══════════════════════════════════════
   HEADER / NAV
   ═══════════════════════════════════════ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  justify-content: center;
  background: var(--navy-deep);
  transition: background 0.4s ease, backdrop-filter 0.4s ease;
}

.site-header-inner {
  max-width: 1320px;
  width: 100%;
  margin: 0 clamp(20px, 4vw, 60px);
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.site-header.scrolled {
  background: var(--navy-90);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
}

.site-header.scrolled .site-header-inner {
  border-bottom-color: rgba(255,255,255,0.06);
}

.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 1001;
  position: relative;
}

.logo-m-icon {
  height: 36px;
  width: auto;
  position: absolute;
  left: 0;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.4s ease, transform 0.4s var(--ease-out-expo);
}

.logo-img {
  height: 28px;
  width: auto;
  transition: opacity 0.4s ease, transform 0.4s var(--ease-out-expo);
}

.site-header.scrolled .logo-m-icon {
  opacity: 1;
  transform: scale(1);
}

.site-header.scrolled .logo-img {
  opacity: 0;
  transform: translateX(10px);
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-desktop a {
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.75);
  text-transform: uppercase;
  transition: color 0.3s ease;
  position: relative;
}

.nav-desktop a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--teal);
  transition: width 0.4s var(--ease-out-expo);
}

.nav-desktop a:hover { color: var(--white); }
.nav-desktop a:hover::after { width: 100%; }

.nav-cta {
  margin-left: 12px;
  padding: 10px 24px;
  border: 1.5px solid rgba(255,255,255,0.3);
  border-radius: 2px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white) !important;
  transition: all 0.3s ease !important;
}

.nav-cta:hover { background: var(--teal); border-color: var(--teal); }
.nav-cta::after { display: none !important; }

.nav-dropdown {
  position: relative;
}

.nav-dropdown > a::after { display: none !important; }

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: -16px;
  padding-top: 16px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: all 0.3s ease;
}

.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-menu-inner {
  background: var(--navy-deep);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 4px;
  padding: 12px 0;
  min-width: 200px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.3);
}

.nav-dropdown-menu a {
  display: block !important;
  padding: 10px 24px !important;
  font-size: 13px !important;
  letter-spacing: 0.04em !important;
  white-space: nowrap;
}

.nav-dropdown-menu a:hover {
  background: rgba(255,255,255,0.05);
}

.nav-mobile-sub {
  padding-left: 24px;
}

.nav-mobile-sub a {
  font-size: clamp(18px, 4vw, 26px) !important;
  opacity: 0.5 !important;
}

.hamburger { display: none; flex-direction: column; gap: 6px; z-index: 1001; padding: 8px; }
.hamburger span { display: block; width: 28px; height: 2px; background: var(--white); transition: all 0.4s var(--ease-out-expo); transform-origin: center; }
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

.nav-mobile {
  position: fixed; inset: 0; background: var(--navy-deep); z-index: 999;
  display: flex; flex-direction: column; justify-content: center; padding: 80px 40px;
  transform: translateX(100%); transition: transform 0.6s var(--ease-out-expo);
}
.nav-mobile.open { transform: translateX(0); }
.nav-mobile a {
  display: block; font-family: var(--font-display); font-size: clamp(28px, 6vw, 42px);
  color: var(--white); padding: 12px 0; opacity: 0.7; transition: opacity 0.3s ease, transform 0.3s ease;
}
.nav-mobile a:hover { opacity: 1; transform: translateX(8px); }

@media (max-width: 968px) {
  .nav-desktop { display: none; }
  .hamburger { display: flex; }
}

/* ═══════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════ */
.site-footer {
  background: var(--navy-deep); color: var(--white);
  padding: clamp(60px, 8vw, 100px) 0 40px;
}

.footer-grid {
  display: grid; grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: clamp(28px, 4vw, 60px); margin-bottom: 60px;
}

.footer-about {
  font-size: 14px; color: rgba(255,255,255,0.45); line-height: 1.7;
  max-width: 280px; margin-bottom: 24px;
}

.footer-socials { display: flex; gap: 12px; }

.footer-social-icon {
  width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,0.15); border-radius: 2px;
  display: flex; align-items: center; justify-content: center; transition: all 0.3s ease;
}

.footer-social-icon:hover { border-color: var(--teal); background: var(--teal); }
.footer-social-icon svg { width: 16px; height: 16px; fill: var(--white); }

.footer-col h4 {
  font-size: 12px; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase;
  margin-bottom: 20px; color: rgba(255,255,255,0.6);
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 12px; }
.footer-col a { font-size: 14px; color: rgba(255,255,255,0.4); transition: color 0.3s ease; }
.footer-col a:hover { color: var(--teal); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08); padding-top: clamp(32px, 3.5vw, 48px);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
}

.footer-copyright { font-size: 13px; color: rgba(255,255,255,0.3); }
.footer-legal { display: flex; gap: 24px; }
.footer-legal a { font-size: 13px; color: rgba(255,255,255,0.3); transition: color 0.3s ease; }
.footer-legal a:hover { color: rgba(255,255,255,0.7); }

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ═══════════════════════════════════════
   SHARED COMPONENTS
   ═══════════════════════════════════════ */
.brand-pattern-divider {
  width: 100%; height: 6px;
  background: linear-gradient(90deg, var(--navy), var(--teal), var(--burgundy), var(--teal), var(--navy));
  background-size: 300% 100%;
  animation: gradientShift 6s ease infinite;
  opacity: 0.85;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.brand-section {
  background: var(--white);
  position: relative;
  overflow: hidden;
  padding: clamp(120px, 14vw, 175px) 0;
}

.brand-section::after {
  content: '';
  position: absolute;
  top: -10%;
  right: 0;
  width: 60%;
  height: 120%;
  background-color: var(--burgundy);
  -webkit-mask: url('/brand-pattern.svg') center / cover no-repeat;
  mask: url('/brand-pattern.svg') center / cover no-repeat;
  opacity: 0.35;
  animation: patternDrift 30s ease-in-out infinite alternate;
}

@media (max-width: 1024px) {
  .brand-section::after { opacity: 0.18; }
}
@media (max-width: 600px) {
  .brand-section::after { opacity: 0.1; }
}

.brand-section-content {
  position: relative;
  z-index: 1;
  max-width: 540px;
  color: var(--navy);
}

.brand-section-heading {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.15;
  margin-bottom: 24px;
  color: var(--navy);
}

.brand-section-heading em {
  color: var(--burgundy);
  font-style: italic;
}

.brand-section-body {
  font-size: clamp(14px, 1.3vw, 16px);
  color: var(--gray-600);
  line-height: 1.8;
  margin-bottom: 32px;
}

.brand-section-cta {
  display: inline-block;
  padding: 14px 32px;
  background: transparent;
  color: var(--navy);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: all 0.3s ease;
  border: 1.5px solid var(--navy);
}

.brand-section-cta:hover {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

@keyframes patternDrift {
  0% { transform: translate(0, 0) rotate(0deg); }
  100% { transform: translate(-3%, 2%) rotate(1deg); }
}

/* Buttons */
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 32px; background: var(--navy); color: var(--white);
  font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  border-radius: 2px; transition: all 0.3s ease; border: 1.5px solid var(--navy);
}

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

.btn-secondary {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 32px; background: transparent; color: var(--navy);
  font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  border-radius: 2px; border: 1.5px solid var(--gray-200); transition: all 0.3s ease;
}

.btn-secondary:hover { border-color: var(--navy); }

/* Contact section (shared) */
.contact-section {
  background: var(--white);
  position: relative;
}

.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 100px); align-items: center;
}

.contact-heading {
  font-family: var(--font-display); font-size: clamp(36px, 5vw, 56px);
  line-height: 1.12; margin-bottom: 20px;
}

.contact-heading em { color: var(--burgundy); font-style: italic; }

.contact-body { font-size: 16px; color: var(--gray-600); line-height: 1.7; margin-bottom: 8px; }

.contact-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.contact-info-side { display: flex; flex-direction: column; gap: 28px; }

.contact-detail { padding: 24px 0; border-bottom: 1px solid var(--gray-100); }
.contact-detail:last-child { border-bottom: none; }

.contact-detail-label {
  font-size: 11px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gray-400); margin-bottom: 8px;
}

.contact-detail-value { font-family: var(--font-display); font-size: 20px; }
.contact-detail-value a { transition: color 0.3s ease; }
.contact-detail-value a:hover { color: var(--teal); }

@media (max-width: 768px) { .contact-grid { grid-template-columns: 1fr; } }

/* Accreditations */
.accreditations {
  background: var(--off-white);
  padding: clamp(40px, 5vw, 60px) 0;
  border-top: 1px solid var(--gray-100);
  border-bottom: 1px solid var(--gray-100);
}

.accreditations-inner {
  display: flex; align-items: center; justify-content: center;
  gap: clamp(32px, 5vw, 72px); flex-wrap: wrap;
}

.accreditation-item {
  display: flex; align-items: center; gap: 12px;
  opacity: 0.45; transition: opacity 0.3s ease; filter: grayscale(100%);
}

.accreditation-item:hover { opacity: 0.8; filter: grayscale(0%); }

.accreditation-item span {
  font-size: 12px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--navy); white-space: nowrap;
}


/* ═══════════════════════════════════════
   PAGE HERO (inner pages)
   ═══════════════════════════════════════ */
.page-hero {
  background: var(--navy-deep);
  padding: calc(80px + 60px) 0 60px;
  display: flex;
  justify-content: center;
}

.page-hero-inner {
  max-width: 1320px;
  width: 100%;
  margin: 0 clamp(20px, 4vw, 60px);
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  min-height: 340px;
  display: flex;
  align-items: center;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  border-radius: inherit;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(10,28,46,0.85) 0%, rgba(10,28,46,0.5) 100%);
  border-radius: inherit;
}

.page-hero-content {
  position: relative;
  z-index: 2;
  padding: clamp(40px, 6vw, 80px);
}

.page-hero-breadcrumb {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.page-hero-breadcrumb a {
  color: rgba(255,255,255,0.5);
  transition: color 0.3s ease;
}

.page-hero-breadcrumb a:hover { color: var(--white); }

.page-hero-breadcrumb .sep { color: rgba(255,255,255,0.3); }

.page-hero-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 64px);
  color: var(--white);
  line-height: 1.1;
  font-weight: 400;
}

.page-hero-title em {
  color: var(--teal-light);
  font-style: italic;
}

.page-hero-sub {
  font-size: clamp(15px, 1.4vw, 17px);
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
  margin-top: 20px;
  max-width: 480px;
}

/* ═══════════════════════════════════════
   INNER PAGE SHARED STYLES
   ═══════════════════════════════════════ */
.page-intro {
  padding: clamp(60px, 8vw, 100px) 0;
}

.page-intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}

.page-intro-text h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.15;
  margin-bottom: 24px;
}

.page-intro-text h2 em {
  color: var(--burgundy);
  font-style: italic;
}

.page-intro-text p {
  font-size: clamp(15px, 1.4vw, 17px);
  color: var(--gray-600);
  line-height: 1.8;
  margin-bottom: 20px;
}

.page-intro-img {
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 4/3;
}

.page-intro-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 800px) {
  .page-intro-grid { grid-template-columns: 1fr; }
}

/* Values / features grid */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.value-card {
  padding: 32px 0;
  border-top: 2px solid var(--teal);
}

.value-card h3 {
  font-family: var(--font-display);
  font-size: 28px;
  margin-bottom: 12px;
}

.value-card p {
  font-size: 15px;
  color: var(--gray-600);
  line-height: 1.7;
}

@media (max-width: 768px) {
  .values-grid { grid-template-columns: 1fr; }
}

/* Case study cards grid */
.case-studies-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.case-study-card {
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.4s ease;
}

.case-study-card:hover { transform: translateY(-4px); }

.case-study-card-img,
.case-study-card-image {
  aspect-ratio: 16/10;
  overflow: hidden;
}

.case-study-card-img img,
.case-study-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out-expo);
}

.case-study-card:hover .case-study-card-img img,
.case-study-card:hover .case-study-card-image img { transform: scale(1.06); }

.case-study-card-body,
.case-study-card-content { padding: 20px 0; }

.case-study-card-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--burgundy);
  margin-bottom: 8px;
  display: block;
}

.case-study-card h3,
.case-study-card-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.3;
  margin-bottom: 6px;
}

.case-study-card-location {
  font-size: 13px;
  color: var(--gray-400);
}

@media (max-width: 900px) { .case-studies-grid { grid-template-columns: 1fr; } }
@media (min-width: 601px) and (max-width: 900px) { .case-studies-grid { grid-template-columns: repeat(2, 1fr); } }

/* Filter tabs */
.filter-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: clamp(32px, 4vw, 48px);
  flex-wrap: wrap;
}

.filter-tab {
  padding: 10px 20px;
  border: 1.5px solid var(--gray-200);
  border-radius: 2px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-600);
  cursor: pointer;
  transition: all 0.3s ease;
  background: transparent;
}

.filter-tab:hover,
.filter-tab.active {
  border-color: var(--navy);
  color: var(--navy);
  background: transparent;
}

.filter-tab.active {
  background: var(--navy);
  color: var(--white);
}

/* Service feature cards (inner pages) */
.service-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: stretch;
  padding: clamp(60px, 8vw, 100px) 0;
  border-bottom: 1px solid var(--gray-100);
}

.service-feature:last-child { border-bottom: none; }

.service-feature.reverse { direction: rtl; }
.service-feature.reverse > * { direction: ltr; }

.service-feature-img,
.service-feature-image {
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  height: 100%;
  min-height: 0;
}

.service-feature-img img,
.service-feature-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-feature-text {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.service-feature h3 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 40px);
  margin-bottom: 16px;
}

.service-feature h3 em { color: var(--burgundy); font-style: italic; }

.service-feature p {
  font-size: 15px;
  color: var(--gray-600);
  line-height: 1.8;
  margin-bottom: 20px;
}

.service-feature ul {
  list-style: none;
  margin-bottom: 28px;
}

.service-feature li {
  font-size: 15px;
  color: var(--gray-600);
  padding: 8px 0;
  border-bottom: 1px solid var(--gray-100);
  display: flex;
  align-items: center;
  gap: 10px;
}

.service-feature li::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--teal);
  border-radius: 50%;
  flex-shrink: 0;
}

@media (max-width: 800px) {
  .service-feature { grid-template-columns: 1fr; }
  .service-feature.reverse { direction: ltr; }
}

/* Two large service cards */
.featured-services {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.featured-service-card {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  aspect-ratio: 4/3;
  cursor: pointer;
}

.featured-service-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out-expo);
}

.featured-service-card:hover img { transform: scale(1.06); }

.featured-service-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,28,46,0.9) 0%, rgba(10,28,46,0.2) 60%);
}

.featured-service-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: clamp(24px, 3vw, 40px);
  color: var(--white);
}

.featured-service-card h3 {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 36px);
  margin-bottom: 12px;
}

.featured-service-card p {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  line-height: 1.6;
  margin-bottom: 20px;
  max-width: 360px;
}

.featured-service-card .btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  transition: gap 0.3s ease;
}

.featured-service-card .btn-cta:hover { gap: 14px; }
.featured-service-card .btn-cta svg { width: 16px; height: 16px; }

@media (max-width: 768px) { .featured-services { grid-template-columns: 1fr; } }

/* Contact form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-400);
}

.form-group input,
.form-group textarea,
.form-group select {
  font-family: var(--font-body);
  font-size: 15px;
  padding: 14px 16px;
  border: 1.5px solid var(--gray-200);
  border-radius: 2px;
  background: var(--white);
  color: var(--navy);
  transition: border-color 0.3s ease;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--teal);
}

.form-group textarea {
  resize: vertical;
  min-height: 140px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
}

/* Team grid */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.team-card {
  text-align: center;
}

.team-card-img {
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 4px;
  margin-bottom: 16px;
}

.team-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(30%);
  transition: filter 0.4s ease;
}

.team-card:hover .team-card-img img { filter: grayscale(0%); }

.team-card h4 {
  font-family: var(--font-display);
  font-size: 28px;
  margin-bottom: 6px;
}

.team-card span {
  font-size: 13px;
  color: var(--gray-400);
}

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


/* ═══════════════════════════════════════
   CASE STUDY DETAIL PAGE
   ═══════════════════════════════════════ */
.project-meta-bar {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: clamp(40px, 5vw, 60px) 0;
    border-bottom: 1px solid var(--gray-200);
    margin-bottom: clamp(40px, 5vw, 60px);
  }
  .project-meta-item {
    min-width: 140px;
  }
  .project-meta-label {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gray-400);
    margin-bottom: 6px;
  }
  .project-meta-value {
    font-family: var(--font-display);
    font-size: 20px;
    color: var(--navy);
  }
  .project-intro {
    max-width: 760px;
    margin: 0 auto clamp(40px, 6vw, 80px);
  }
  .project-intro p {
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.8;
    color: var(--gray-600);
    margin-bottom: 20px;
  }
  .project-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: clamp(40px, 6vw, 80px);
  }
  .project-gallery img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    border-radius: 6px;
  }
  .project-gallery .gallery-full {
    grid-column: 1 / -1;
    height: 450px;
  }
  .project-body {
    max-width: 760px;
    margin: 0 auto;
    padding-bottom: 0;
  }
  .project-body h2 {
    font-family: var(--font-display);
    font-size: clamp(28px, 3.5vw, 40px);
    color: var(--navy);
    margin: clamp(40px, 5vw, 60px) 0 20px;
    line-height: 1.15;
  }
  .project-body h2 em {
    color: var(--burgundy);
    font-style: italic;
  }
  .project-body p {
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.8;
    color: var(--gray-600);
    margin-bottom: 24px;
  }
  .project-body blockquote {
    border-left: 3px solid var(--teal);
    padding: 20px 0 20px 28px;
    margin: 36px 0;
    font-family: var(--font-display);
    font-size: clamp(22px, 2.5vw, 28px);
    color: var(--navy);
    line-height: 1.4;
    font-style: italic;
  }
  .project-body ul {
    padding-left: 24px;
    margin-bottom: 24px;
  }
  .project-body ul li {
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.8;
    color: var(--gray-600);
    margin-bottom: 8px;
  }
  .project-body ul li::marker {
    color: var(--teal);
  }
  .project-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin: clamp(40px, 5vw, 60px) 0;
    padding: clamp(32px, 4vw, 48px);
    background: var(--off-white);
    border-radius: 8px;
  }
  .project-stat {
    text-align: center;
  }
  .project-stat-number {
    font-family: var(--font-display);
    font-size: clamp(36px, 4vw, 52px);
    color: var(--navy);
    line-height: 1;
    margin-bottom: 8px;
  }
  .project-stat-label {
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.08em;
  }
  .project-nav {
    border-top: 1px solid var(--gray-200);
    padding: 40px 0 140px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 760px;
    margin: 0 auto;
  }
  .project-nav a {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    color: var(--navy);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s;
  }
  .project-nav a:hover {
    color: var(--teal);
  }
  @media (max-width: 768px) {
    .project-gallery {
      grid-template-columns: 1fr;
    }
    .project-gallery img,
    .project-gallery .gallery-full {
      height: 240px;
    }
    .project-nav {
      padding-bottom: 60px;
    }
  }

/* Placeholder tile for schemes with no photography yet (unbuilt projects) */
.image-pending {
  position: relative;
  width: 100%;
  height: 100%;
  background: var(--navy);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.image-pending::after {
  content: '';
  position: absolute;
  inset: -10%;
  background-color: var(--teal);
  -webkit-mask: url('/brand-pattern.svg') center / cover no-repeat;
  mask: url('/brand-pattern.svg') center / cover no-repeat;
  opacity: 0.28;
}
.image-pending span {
  position: relative;
  z-index: 1;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  text-align: center;
  padding: 0 20px;
}
.project-gallery .image-pending {
  height: 450px;
  grid-column: 1 / -1;
  border-radius: 6px;
}
@media (max-width: 768px) {
  .project-gallery .image-pending { height: 240px; }
}

/* Page hero fallback when a scheme has no photography yet */
.page-hero-bg--pattern {
  background: var(--navy);
}
.page-hero-bg--pattern::after {
  content: '';
  position: absolute;
  inset: -10%;
  background-color: var(--teal);
  -webkit-mask: url('/brand-pattern.svg') center / cover no-repeat;
  mask: url('/brand-pattern.svg') center / cover no-repeat;
  opacity: 0.3;
}

/* Statutory company details in the footer */
.footer-company-details {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: clamp(32px, 3.5vw, 48px);
  margin-bottom: clamp(32px, 3.5vw, 48px);
}
.footer-company-details p {
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.3);
  margin: 0 0 4px;
  max-width: 760px;
}
.footer-company-details p:last-child { margin-bottom: 0; }
.footer-company-name { color: rgba(255, 255, 255, 0.5); font-weight: 500; }
.footer-company-value { color: rgba(255, 255, 255, 0.5); }

/* Technical analysis diagrams: show the whole plot, including its colour legend */
.service-feature-image--diagram {
  background: var(--diagram-bg, var(--off-white));
  border: 1px solid var(--gray-100);
}
.service-feature-image--diagram img {
  object-fit: contain;
  padding: 12px;
}

/* Service feature images need an explicit height once the grid stacks,
   otherwise height:100% resolves against an auto row and collapses to 0. */
@media (max-width: 800px) {
  .service-feature-image {
    height: auto;
    aspect-ratio: 4 / 3;
  }
  .service-feature-image--diagram {
    aspect-ratio: 3 / 2;
  }
}

/* ═══════════════════════════════════════
   LEGAL / POLICY PAGES
   ═══════════════════════════════════════ */
.legal-section {
  background: var(--white);
  padding: clamp(48px, 6vw, 80px) 0 clamp(60px, 8vw, 110px);
}

.legal-body {
  max-width: 760px;
  margin: 0 auto;
}

.legal-meta {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 20px;
  padding: 24px 28px;
  margin: 0 0 clamp(32px, 4vw, 48px);
  background: var(--off-white);
  border-radius: 6px;
  border: 1px solid var(--gray-100);
}

.legal-meta dt {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--gray-400);
  line-height: 1.6;
}

.legal-meta dd {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--navy);
  margin: 0;
  line-height: 1.6;
}

.legal-lede {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  color: var(--navy);
  margin: 0 0 28px;
}

.legal-body h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 32px);
  color: var(--navy);
  line-height: 1.2;
  margin: clamp(36px, 4vw, 52px) 0 16px;
}

.legal-body h3 {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
  margin: 28px 0 10px;
}

.legal-body p {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.8;
  color: var(--gray-600);
  margin: 0 0 18px;
}

.legal-body ul {
  padding-left: 22px;
  margin: 0 0 20px;
}

.legal-body li {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.8;
  color: var(--gray-600);
  margin-bottom: 6px;
}

.legal-body li::marker { color: var(--teal); }

.legal-body a {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.3s ease;
}

.legal-body a:hover { color: var(--teal); }

.legal-nav {
  max-width: 760px;
  margin: clamp(48px, 6vw, 72px) auto 0;
  padding-top: 32px;
  border-top: 1px solid var(--gray-200);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.legal-nav a {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--navy);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.3s ease;
}

.legal-nav a:hover { color: var(--teal); }

@media (max-width: 600px) {
  .legal-meta { grid-template-columns: 1fr; gap: 2px; }
  .legal-meta dd { margin-bottom: 10px; }
}

/* Seven policy links need to wrap rather than squeeze the copyright line */
.footer-bottom { align-items: flex-start; }
.footer-legal { flex-wrap: wrap; gap: 12px 20px; max-width: 760px; justify-content: flex-end; }
@media (max-width: 900px) {
  .footer-legal { justify-content: flex-start; }
}

/* ═══════════════════════════════════════
   COOKIE CONSENT
   ═══════════════════════════════════════ */
.consent-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 9000;
  background: var(--navy-deep);
  border-top: 3px solid var(--teal);
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.35);
  transform: translateY(110%);
  transition: transform 0.45s var(--ease-out-expo);
}
.consent-banner.is-open { transform: translateY(0); }

.consent-banner-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: clamp(20px, 3vw, 30px) clamp(20px, 4vw, 60px);
  display: flex;
  align-items: center;
  gap: clamp(20px, 4vw, 48px);
  flex-wrap: wrap;
}
.consent-banner-text { flex: 1 1 420px; min-width: 0; }

.consent-banner-text h2 {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--white);
  margin: 0 0 6px;
}
.consent-banner-text p {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
  max-width: 72ch;
}
.consent-banner-text a,
.consent-placeholder-link {
  color: var(--teal-light);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.consent-banner-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

/* Accept and Reject are deliberately identical — one must not be
   easier to choose than the other. */
.consent-btn {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 13px 24px;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
  white-space: nowrap;
}
.consent-btn--primary {
  background: var(--white);
  border: 1px solid var(--white);
  color: var(--navy);
}
.consent-btn--primary:hover { background: var(--teal); border-color: var(--teal); color: var(--white); }
.consent-btn--ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.8);
}
.consent-btn--ghost:hover { border-color: var(--white); color: var(--white); }
.consent-btn:focus-visible,
.consent-switch input:focus-visible + span {
  outline: 2px solid var(--teal-light);
  outline-offset: 2px;
}

/* ── Preferences dialog ── */
.consent-modal { position: fixed; inset: 0; z-index: 9100; display: none; }
.consent-modal.is-open { display: block; }
.consent-modal-backdrop { position: absolute; inset: 0; background: rgba(10, 28, 46, 0.65); }

.consent-modal-panel {
  position: relative;
  max-width: 560px;
  margin: clamp(24px, 8vh, 90px) auto;
  max-height: calc(100vh - clamp(48px, 16vh, 180px));
  overflow-y: auto;
  background: var(--white);
  border-radius: 8px;
  padding: clamp(28px, 4vw, 40px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
}
.consent-modal-panel h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 30px);
  color: var(--navy);
  margin: 0 0 10px;
}
.consent-modal-intro {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.7;
  color: var(--gray-600);
  margin: 0 0 24px;
}

.consent-option { border-top: 1px solid var(--gray-100); padding: 18px 0; }
.consent-option-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 6px;
}
.consent-option-name {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
}
.consent-option-fixed {
  font-family: var(--font-body);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray-400);
}
.consent-option p {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.65;
  color: var(--gray-600);
  margin: 0;
}

.consent-switch { position: relative; display: inline-block; width: 46px; height: 26px; flex: 0 0 auto; }
.consent-switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.consent-switch span {
  position: absolute; inset: 0;
  background: var(--gray-200);
  border-radius: 26px;
  transition: background 0.3s ease;
  pointer-events: none;
}
.consent-switch span::after {
  content: '';
  position: absolute;
  width: 20px; height: 20px;
  left: 3px; top: 3px;
  background: var(--white);
  border-radius: 50%;
  transition: transform 0.3s var(--ease-out-expo);
}
.consent-switch input:checked + span { background: var(--teal); }
.consent-switch input:checked + span::after { transform: translateX(20px); }

.consent-modal-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  border-top: 1px solid var(--gray-100);
  padding-top: 24px;
  margin-top: 4px;
}
.consent-modal-actions .consent-btn--ghost { border-color: var(--gray-200); color: var(--gray-600); }
.consent-modal-actions .consent-btn--ghost:hover { border-color: var(--navy); color: var(--navy); }

/* ── Placeholder shown in place of a blocked embed ── */
.consent-placeholder {
  width: 100%; height: 100%;
  min-height: 260px;
  background: var(--navy-deep);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-align: center;
  padding: 32px 24px;
}
.consent-placeholder p {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.65);
  margin: 0;
  max-width: 46ch;
}
.consent-placeholder-link { font-family: var(--font-body); font-size: 13px; }

@media (max-width: 760px) {
  .consent-banner-inner { padding-bottom: 22px; }
  .consent-banner-actions { width: 100%; }
  .consent-banner-actions .consent-btn { flex: 1 1 auto; text-align: center; }
}

/* Cookie tables in the policy pages */
.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 24px;
  font-family: var(--font-body);
  font-size: 14px;
}
.legal-table th,
.legal-table td {
  text-align: left;
  padding: 10px 14px;
  border: 1px solid var(--gray-100);
  vertical-align: top;
  line-height: 1.6;
}
.legal-table th {
  background: var(--off-white);
  color: var(--navy);
  font-weight: 600;
  white-space: nowrap;
}
.legal-table td { color: var(--gray-600); }
.legal-table code {
  font-size: 13px;
  background: var(--off-white);
  padding: 1px 5px;
  border-radius: 3px;
  color: var(--navy);
}
@media (max-width: 680px) {
  .legal-table, .legal-table tbody, .legal-table tr, .legal-table td { display: block; width: 100%; }
  .legal-table thead { display: none; }
  .legal-table tr { margin-bottom: 14px; border: 1px solid var(--gray-100); }
  .legal-table td { border: none; border-bottom: 1px solid var(--gray-100); }
  .legal-table td:last-child { border-bottom: none; }
  .legal-table td::before { content: attr(data-label); display: block; font-weight: 600; color: var(--navy); margin-bottom: 2px; }
}

/* ── Contact form: status, honeypot, privacy note ── */
.form-trap {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}

.form-status {
  display: none;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  padding: 14px 18px;
  border-radius: 4px;
  margin-bottom: 24px;
  border-left: 3px solid transparent;
}
.form-status.is-visible { display: block; }
.form-status.is-success {
  background: rgba(54, 178, 194, 0.1);
  border-left-color: var(--teal);
  color: var(--navy);
}
.form-status.is-error {
  background: rgba(130, 36, 92, 0.08);
  border-left-color: var(--burgundy);
  color: var(--navy);
}

.form-note {
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.6;
  color: var(--gray-400);
  margin: 16px 0 0;
}
.form-note a { color: var(--gray-600); text-decoration: underline; text-underline-offset: 3px; }
.form-note a:hover { color: var(--teal); }

.contact-form button[type="submit"][disabled] { opacity: 0.6; cursor: wait; }
