/* Locked Jar - Enterprise Cybersecurity Website Rebuild */
/* Design: Bold, editorial, distinctive */

:root {
  /* Primary palette - using richer/darker variants for punch */
  --p1: #74c8c1;
  --p1-50: #3a6460;
  --p1-20: #5da09a;
  --p1-30: #9fd9d5;
  --p1-80: #e8f7f6;
  --p2: #303952;
  --p2-70: #0e1219;
  --p2-30: #222838;
  --p2-20: #3d4765;
  --p2-50: #5c6680;
  --p2-80: #9a9fb5;

  /* Secondary palette */
  --s1: #825e4f;
  --s1-60: #2d2018;
  --s1-30: #5b4238;
  --s1-20: #947365;
  --s1-50: #b3998c;
  --s1-80: #e5d9d3;
  --s2: #e05757;
  --s2-60: #5a2323;
  --s2-20: #b34646;
  --s2-20-light: #e87a7a;
  --s2-40: #ee9a9a;
  --s2-80: #f9e0e0;

  /* Semantic - dark sections use near-black for depth */
  --color-navy: var(--p2-70);
  --color-navy-light: var(--p2-30);
  --color-blue: var(--p1-50);
  --color-accent: var(--p1);
  --color-accent-hover: var(--p1-20);
  --color-white: #ffffff;
  --color-offwhite: #f0f2f5;
  --color-gray: var(--p2);
  --color-gray-light: var(--p2-20);
  --color-warm: var(--s1);
  --color-cta: var(--s2);

  --font-primary: 'Source Sans 3', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Fraunces', Georgia, serif;

  --transition: 0.3s ease;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  --shadow-strong: 0 8px 32px rgba(0, 0, 0, 0.2);
  --radius: 6px;
  --radius-lg: 12px;

  /* For gradients/overlays - darker base */
  --p2-rgb: 14, 18, 25;
  --p1-rgb: 116, 200, 193;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Skip link - accessibility */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  padding: 0.75rem 1.25rem;
  background: var(--color-accent);
  color: var(--color-navy);
  font-weight: 600;
  border-radius: var(--radius);
  z-index: 10000;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 1rem;
  outline: 3px solid var(--color-blue);
  outline-offset: 2px;
}

/* Visually hidden but available to screen readers */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--color-blue);
  outline-offset: 2px;
}

a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
  outline: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Typography - bold editorial scale */
h1 { font-size: clamp(2.75rem, 6vw, 4.25rem); font-weight: 700; }
h2 { font-size: clamp(1.875rem, 3.5vw, 2.5rem); font-weight: 600; }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); font-weight: 600; }

/* Layout */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

.section--dark {
  background: var(--color-navy);
  color: var(--color-white);
}

.section--blue {
  background: var(--color-blue);
  color: var(--color-white);
}

/* Header & Navigation - aligned with site container */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(var(--p2-rgb), 0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: box-shadow var(--transition), background var(--transition);
}

.header.scrolled {
  box-shadow: 0 2px 16px rgba(var(--p2-rgb), 0.15);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.logo-link {
  display: flex;
  align-items: center;
}

.logo-link img {
  height: 44px;
  width: auto;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-menu a {
  color: var(--color-white);
  font-weight: 500;
  font-size: 0.95rem;
}

.nav-menu a:hover {
  color: var(--color-accent);
}

/* Dropdown - focus-within for keyboard accessibility */
.nav-item {
  position: relative;
}

.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 0.25rem;
  min-width: 240px;
  background: var(--color-navy-light);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown a {
  display: block;
  padding: 0.6rem 1.25rem;
  color: var(--color-offwhite);
  font-size: 0.9rem;
  white-space: nowrap;
}

.nav-dropdown a:hover,
.nav-dropdown a:focus {
  background: rgba(255, 255, 255, 0.06);
  color: var(--color-accent);
  outline: none;
}

/* Our Work dropdown - two columns on large screens */
.nav-dropdown--work {
  min-width: 320px;
  padding: 0.75rem 0;
}

@media (min-width: 1100px) {
  .nav-dropdown--work {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-width: 420px;
    gap: 0.25rem 0;
  }

  .nav-dropdown--work li.nav-dropdown-all {
    grid-column: 1 / -1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .nav-dropdown--work li.nav-dropdown-all a {
    font-weight: 600;
    color: var(--color-accent);
  }

  .nav-dropdown--work a {
    white-space: normal;
  }
}

.nav-contact {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-phone {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-white);
  font-weight: 500;
}

.nav-phone:hover {
  color: var(--color-accent);
}

.nav-phone svg {
  width: 18px;
  height: 18px;
}

/* Mobile menu */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.75rem;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--color-white);
  transition: var(--transition);
}

@media (max-width: 968px) {
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width:  min(320px, 85vw);
    height: 100vh;
    background: var(--color-navy);
    flex-direction: column;
    align-items: flex-start;
    padding: 5rem 2rem 2rem;
    gap: 0;
    transition: right var(--transition);
    overflow-y: auto;
  }

  .nav-menu.active {
    right: 0;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.3);
  }

  .nav-menu > li {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav-menu > li > a {
    display: block;
    padding: 1rem 0;
  }

  .nav-dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    background: transparent;
    box-shadow: none;
    padding: 0 0 1rem 1rem;
  }

  .nav-item.active .nav-dropdown {
    display: block;
  }

  .menu-toggle {
    display: flex;
  }

  .nav-contact {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-navy) url('../images/hero-bg.png') center/cover no-repeat;
  background-attachment: fixed;
  position: relative;
  padding-top: 80px;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(var(--p2-rgb), 0.95) 0%, rgba(var(--p2-rgb), 0.88) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 720px;
}

.hero h1 {
  color: var(--color-white);
  margin-bottom: 1rem;
  font-weight: 700;
  font-size: clamp(3rem, 7vw, 4.5rem);
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.hero-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--p1);
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 0.5rem;
}

.hero-tagline {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero .btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  font-weight: 600;
  border-radius: 50px;
  transition: all var(--transition);
}

.hero .btn--primary {
  background: var(--s2);
  color: var(--color-white);
}

.hero .btn--primary:hover {
  background: var(--s2-20);
  color: var(--color-white);
  transform: translateY(-2px);
}

.hero .btn--ghost {
  background: transparent;
  color: var(--color-white);
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.hero .btn--ghost:hover {
  border-color: var(--color-white);
  color: var(--color-white);
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.7);
  animation: bounce 2s infinite;
  padding: 0.75rem;
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-10px); }
  60% { transform: translateX(-50%) translateY(-5px); }
}

/* Stats Strip */
.stats-strip {
  background: var(--color-navy);
  padding: 2.25rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.stats-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  text-align: center;
}

.stat-divider {
  width: 1px;
  height: 2.5rem;
  background: rgba(255, 255, 255, 0.3);
}

.stat-value {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--p1);
}

.stat-label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
}

/* Why Locked Jar - revamped */
.why-intro {
  text-align: center;
  margin-bottom: 3rem;
}

.why-intro h2 {
  color: var(--color-navy);
  margin-bottom: 0.5rem;
}

.why-lead {
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.25rem;
  font-family: var(--font-heading);
  font-weight: 500;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.4;
}

.why-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.why-feature {
  padding: 2rem 1.5rem;
  border-left: 4px solid var(--p1);
  background: var(--color-white);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  transition: box-shadow var(--transition);
}

.why-feature:hover {
  box-shadow: var(--shadow);
}

.why-feature-num {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--p1);
  margin-bottom: 0.75rem;
}

.why-feature h3 {
  color: var(--color-navy);
  margin-bottom: 0.5rem;
  font-size: 1.15rem;
}

.why-feature p {
  color: var(--p2);
  font-size: 0.95rem;
  line-height: 1.6;
}

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

@media (max-width: 640px) {
  .stats-grid {
    flex-direction: column;
    gap: 1.5rem;
  }

  .stat-divider {
    width: 60px;
    height: 1px;
  }
}

/* Section header (shared) */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header .divider {
  width: 80px;
  height: 4px;
  background: var(--p1);
  margin: 0 auto 1rem;
  border-radius: 2px;
}

.section-header h2 {
  color: var(--color-navy);
  margin-bottom: 0.5rem;
}

.section-subtitle {
  color: var(--p2);
  font-size: 1.1rem;
}

.section--why {
  position: relative;
  background: var(--color-navy);
  overflow: hidden;
}

.why-bg {
  position: absolute;
  inset: 0;
  background: var(--color-navy) url('../images/section-bg.png') center/cover no-repeat;
  background-attachment: fixed;
}

.why-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(var(--p2-rgb), 0.94) 0%, rgba(var(--p1-rgb), 0.25) 50%, rgba(var(--p2-rgb), 0.9) 100%);
}

.why-content {
  position: relative;
  z-index: 1;
}

.section--why .why-intro h2,
.section--why .why-lead {
  color: var(--color-white);
}

.section--why .why-lead {
  color: rgba(255, 255, 255, 0.95);
}

.section--why .why-feature {
  background: rgba(255, 255, 255, 0.06);
  border-left-color: var(--p1);
}

.section--why .why-feature:hover {
  background: rgba(255, 255, 255, 0.1);
}

.section--why .why-feature-num {
  color: var(--color-accent);
}

.section--why .why-feature h3 {
  color: var(--color-white);
}

.section--why .why-feature p {
  color: rgba(255, 255, 255, 0.92);
}

@media (prefers-reduced-motion: reduce) {
  .why-bg {
    background-attachment: scroll;
  }
}

/* Industries */
.section--industries {
  background: var(--color-white);
}

.industries-intro {
  text-align: center;
  margin-bottom: 2rem;
}

.industries-intro h2 {
  color: var(--color-navy);
  margin-bottom: 0.5rem;
}

.industries-intro p {
  color: var(--p2);
  font-size: 1rem;
}
.industries-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.industry-tag {
  padding: 0.625rem 1.25rem;
  min-height: 44px;
  background: var(--color-white);
  border: 1px solid rgba(var(--p2-rgb), 0.18);
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--p2);
  transition: all var(--transition);
  cursor: pointer;
  font-family: inherit;
}

.industry-tag:hover {
  border-color: var(--p1);
  color: var(--p1-50);
}

.industry-tag[aria-expanded="true"] {
  border-color: var(--p1-50);
  background: var(--p1-50);
  color: var(--color-white);
}

/* Industry detail panel (shown when tag clicked) */
.industry-detail {
  margin-top: 1.5rem;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity var(--transition), transform var(--transition), max-height 0.35s ease;
}

.industry-detail.visible {
  max-height: 500px;
  opacity: 1;
  transform: translateY(0);
}

.industry-detail-inner {
  background: var(--color-white);
  border: 1px solid rgba(var(--p2-rgb), 0.15);
  border-radius: var(--radius-lg);
  padding: 1.5rem 2rem;
  box-shadow: var(--shadow-strong);
  position: relative;
}

.industry-detail-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--color-gray);
  cursor: pointer;
  padding: 0.25rem;
  transition: color var(--transition);
}

.industry-detail-close:hover {
  color: var(--color-navy);
}

.industry-detail-title {
  font-size: 1.25rem;
  color: var(--color-navy);
  margin-bottom: 0.75rem;
  padding-right: 2rem;
}

.industry-detail-text {
  color: var(--p2);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.industry-detail-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-navy);
  margin-bottom: 0.5rem;
}

.industry-detail-cases {
  list-style: none;
  margin: 0;
  padding: 0;
}

.industry-detail-cases li {
  margin-bottom: 0.5rem;
}

.industry-detail-cases a {
  color: var(--p1-50);
  font-size: 0.9rem;
  font-weight: 500;
}

.industry-detail-cases a:hover {
  color: var(--p1);
  text-decoration: underline;
}

/* How we work - revamped */
.section--how {
  background: var(--color-white);
}

.how-intro {
  text-align: center;
  margin-bottom: 3rem;
}

.how-intro h2 {
  color: var(--color-navy);
  margin-bottom: 0.5rem;
}

.how-lead {
  color: var(--p2);
  font-size: 1.1rem;
}

.how-timeline {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

.how-step-new {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  flex: 1;
  min-width: 200px;
  max-width: 320px;
}

.how-step-dot {
  width: 18px;
  height: 18px;
  min-width: 18px;
  margin-top: 0.35rem;
  background: var(--p1);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(var(--p1-rgb), 0.25);
}

.how-step-content h3 {
  color: var(--color-navy);
  margin-bottom: 0.5rem;
  font-size: 1.15rem;
}

.how-step-content p {
  color: var(--p2);
  font-size: 0.95rem;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .how-timeline {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .how-step-new {
    max-width: none;
  }
}

/* Services Section */
.section--services {
  background: var(--color-offwhite);
}

.services-header {
  text-align: center;
  margin-bottom: 3rem;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.services-header .divider {
  width: 80px;
  height: 5px;
  background: var(--p1);
  margin: 0 auto 1rem;
  border-radius: 3px;
}

.services-header h2 {
  color: var(--color-navy);
  margin-bottom: 0.75rem;
}

.services-lead {
  color: var(--p2);
  font-size: 1.15rem;
  font-family: var(--font-heading);
  font-weight: 500;
  line-height: 1.5;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.service-card-span-2 {
  grid-column: 1 / -1;
}

.service-card-span-inner {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
}

.service-card-span-2 .service-card-icon {
  flex-shrink: 0;
  margin-bottom: 0;
}

.service-card-span-2 .service-card-body {
  flex: 1;
}

.service-card-new {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: 0 2px 16px rgba(var(--p2-rgb), 0.08);
  border: 1px solid rgba(var(--p2-rgb), 0.12);
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}

.service-card-new:hover {
  box-shadow: var(--shadow-strong);
  transform: translateY(-3px);
  border-color: var(--p1-20);
}

.service-card-icon {
  width: 72px;
  height: 72px;
  margin-bottom: 1.25rem;
}

.service-card-icon img,
.service-card-icon svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.service-card-icon--ai {
  color: var(--color-blue);
}

.service-card-link {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--p1-50);
}

.service-card-link:hover {
  color: var(--p1);
}

.service-card-body h3 {
  color: var(--color-navy);
  font-size: 1.2rem;
  margin-bottom: 0.25rem;
}

.service-card-tagline {
  color: var(--p1-50);
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.service-card-body p:not(.service-card-tagline) {
  color: var(--p2);
  font-size: 0.95rem;
  line-height: 1.6;
}

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

  .service-card-span-2 {
    grid-column: 1;
  }

  .service-card-span-inner {
    flex-direction: column;
    gap: 1.25rem;
  }

  .service-card-span-2 .service-card-icon {
    margin-bottom: 0;
  }
}

/* CTA Section - revamped */
.cta-section {
  min-height: 28rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 5rem 0;
}

.cta-bg {
  position: absolute;
  inset: 0;
  background: var(--color-navy) url('../images/section-bg.png') center/cover no-repeat;
  background-attachment: fixed;
}

.cta-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(var(--p2-rgb), 0.94) 0%, rgba(var(--p1-rgb), 0.2) 100%);
}

@media (prefers-reduced-motion: reduce) {
  .cta-bg {
    background-attachment: scroll;
  }
}

.cta-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.cta-inner h2 {
  color: var(--color-white);
  margin-bottom: 1rem;
}

.cta-inner p {
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.cta-inner .btn--primary {
  background: var(--s2);
  color: var(--color-white);
}

.cta-inner .btn--primary:hover {
  background: var(--s2-20);
  color: var(--color-white);
}

/* Contact Section - revamped */
.contact-section {
  background: var(--color-offwhite);
  padding: 5rem 0;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: start;
}

.contact-info h2 {
  color: var(--color-navy);
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

.contact-info > p {
  color: var(--p2);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.contact-details a {
  color: var(--p1-50);
  font-weight: 600;
}

.contact-details a:hover {
  color: var(--p1);
}

.contact-linkedin {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--p1-50);
  font-weight: 600;
}

.contact-linkedin:hover {
  color: var(--p1);
}

.contact-form-wrap {
  background: var(--color-white);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-strong);
  border: 1px solid rgba(var(--p2-rgb), 0.08);
}

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

.form-group {
  margin-bottom: 1.25rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--p1);
}

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

.form-submit {
  width: 100%;
  padding: 0.875rem 1.5rem;
  min-height: 48px;
  background: var(--color-navy);
  color: var(--color-white);
  border: none;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background var(--transition);
}

.form-submit:hover {
  background: var(--color-navy-light);
}

/* Footer - revamped */
.footer {
  background: var(--color-navy);
  color: var(--color-offwhite);
  padding: 3rem 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr auto;
  gap: 2rem;
  align-items: start;
}

.footer-brand {
  max-width: 200px;
}

.footer-logo img {
  height: 40px;
  opacity: 0.95;
  margin-bottom: 0.5rem;
}

.footer-tagline {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  color: var(--color-offwhite);
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--color-accent);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-contact a {
  color: var(--color-offwhite);
  font-size: 0.95rem;
}

.footer-contact a:hover {
  color: var(--color-accent);
}

@media (max-width: 768px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 480px) {
  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-brand {
    max-width: none;
  }

  .footer-links {
    align-items: center;
  }

  .footer-contact {
    align-items: center;
  }
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  transition: all var(--transition);
}

.footer-social a:hover {
  background: var(--p1);
  color: var(--p2);
}

.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  background: var(--p1);
  color: var(--color-navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--p1-20);
  color: var(--p2);
}

/* Page Content (for service pages) */
.page-header {
  padding: 8rem 0 4rem;
  background: var(--color-navy);
  text-align: center;
}

.page-header h1 {
  color: var(--color-white);
  max-width: 720px;
  margin: 0 auto;
}

.page-header-lead {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.1rem;
  max-width: 560px;
  margin: 1rem auto 0;
  line-height: 1.5;
}

.page-content {
  padding: 4rem 0;
}

.page-content .container {
  max-width: 720px;
}

.page-content:has(.case-study-grid) .container {
  max-width: 1200px;
}

.page-content h2 {
  color: var(--color-navy);
  margin: 2rem 0 1rem;
}

.page-content h2:first-child {
  margin-top: 0;
}

.page-content p, .page-content li {
  color: var(--p2);
  margin-bottom: 1rem;
}

.page-content ul, .page-content ol {
  margin: 1rem 0 1rem 1.5rem;
}

/* Case study pages */
.case-study-header {
  padding: 6rem 0 4rem;
  background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-light) 100%);
  text-align: center;
}

.case-study-header h1 {
  color: var(--color-white);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.2;
}

.case-study-header .case-study-meta {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  margin-top: 0.75rem;
}

.case-study-content {
  padding: 4rem 0;
}

.case-study-content .container {
  max-width: 720px;
}

.case-study-section {
  margin-bottom: 3rem;
}

.case-study-section h2 {
  color: var(--color-navy);
  font-size: 1.35rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--p1);
  display: inline-block;
}

.case-study-section p {
  color: var(--p2);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.case-study-outcome {
  background: linear-gradient(135deg, #f0f9f8 0%, rgba(var(--p1-rgb), 0.15) 100%);
  border-left: 4px solid var(--p1);
  padding: 1.5rem 2rem;
  margin: 2rem 0;
  border-radius: 0 var(--radius) var(--radius) 0;
}

.case-study-outcome p {
  color: var(--color-navy);
  font-weight: 500;
  margin-bottom: 0;
}

.case-study-outcome p:last-child {
  margin-top: 0.5rem;
  font-weight: 400;
  color: var(--p2);
}

.case-study-cta {
  text-align: center;
  padding: 3rem 0 2rem;
  border-top: 1px solid rgba(var(--p2-rgb), 0.08);
}

.case-study-cta .btn {
  margin-top: 0.5rem;
}

/* Our Work case study grid */
.case-study-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.case-study-card {
  display: block;
  padding: 2rem;
  background: var(--color-white);
  border-radius: 12px;
  border: 1px solid rgba(var(--p2-rgb), 0.08);
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}

.case-study-card:hover {
  box-shadow: 0 8px 24px rgba(var(--p2-rgb), 0.12);
  transform: translateY(-2px);
  border-color: var(--p1);
}

.case-study-card h3 {
  color: var(--color-navy);
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.case-study-card p {
  color: var(--p2);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.case-study-card-meta {
  font-size: 0.85rem;
  color: var(--p1-50);
  font-weight: 500;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border-radius: 50px;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
  font-family: inherit;
  font-size: 1rem;
  text-align: center;
}

.btn--primary {
  background: var(--s2);
  color: var(--color-white);
}

.btn--primary:hover {
  background: var(--s2-20);
  color: var(--color-white);
}

.btn--secondary {
  background: var(--color-navy);
  color: var(--color-white);
}

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