/* ==========================================================================
   Opal Acoustics — styles.css
   Mobile-first. Breakpoints: 768px (tablet), 1200px (desktop)
   ========================================================================== */

/* ==========================================================================
   1. DESIGN TOKENS
   ========================================================================== */

:root {
  /* Colours */
  --color-dark: #232323;
  --color-darker: #1a1a1a;
  --color-white: #ffffff;
  --color-off-white: #f5f5f3;
  --color-text-dark: #1a1a1a;
  --color-text-muted: #666666;
  --color-accent-cyan: #00e0c8;
  --color-accent-blue: #0055ff;
  --color-accent-mint: #a0f0d8;
  --color-border-dark: rgba(255, 255, 255, 0.1);
  --color-border-light: rgba(0, 0, 0, 0.1);

  /* Spacing */
  --section-py: 60px;
  --container-max: 1200px;
  --gutter: 24px;
  --grid-gap: 24px;
  --card-padding: 24px;
  --border-radius-sm: 6px;
  --border-radius-md: 12px;
  --border-radius-lg: 20px;

  /* Header */
  --header-height: 72px;

  /* Typography sizes */
  --size-display: clamp(42px, 7vw, 96px);
  --size-h1: clamp(32px, 5vw, 52px);
  --size-h2: clamp(26px, 4vw, 38px);
  --size-h3: 22px;
  --size-h4: 18px;
  --size-body: 16px;
  --size-small: 13px;
  --size-label: 11px;
}

@media (min-width: 768px) {
  :root {
    --section-py: 80px;
    --gutter: 32px;
    --grid-gap: 28px;
    --card-padding: 28px;
    --size-h3: 24px;
    --size-body: 17px;
    --size-small: 14px;
  }
}

@media (min-width: 1200px) {
  :root {
    --section-py: 100px;
    --gutter: 40px;
    --grid-gap: 32px;
    --card-padding: 32px;
  }
}

/* ==========================================================================
   2. RESET & BASE
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: var(--size-body);
  font-weight: 400;
  line-height: 1.7;
  color: var(--color-white);
  background-color: var(--color-dark);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg {
  display: block;
  max-width: 100%;
}

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

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

table {
  border-collapse: collapse;
  width: 100%;
}

/* ==========================================================================
   3. TYPOGRAPHY
   ========================================================================== */

.display {
  font-size: var(--size-display);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

h1, .h1 {
  font-size: var(--size-h1);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h2, .h2 {
  font-size: var(--size-h2);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h3, .h3 {
  font-size: var(--size-h3);
  font-weight: 600;
  line-height: 1.3;
}

h4, .h4 {
  font-size: var(--size-h4);
  font-weight: 600;
  line-height: 1.4;
}

.section-label {
  display: block;
  font-size: var(--size-label);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent-cyan);
  margin-bottom: 16px;
}

.section-label--light {
  color: var(--color-text-muted);
}

p {
  max-width: 68ch;
}

p + p {
  margin-top: 1em;
}

em {
  font-style: italic;
}

strong {
  font-weight: 600;
}

/* ==========================================================================
   4. LAYOUT UTILITIES
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  padding: var(--section-py) 0;
}

/* Backgrounds */
.bg-dark    { background-color: var(--color-dark); color: var(--color-white); }
.bg-darker  { background-color: var(--color-darker); color: var(--color-white); }
.bg-white   { background-color: var(--color-white); color: var(--color-text-dark); }
.bg-off-white { background-color: var(--color-off-white); color: var(--color-text-dark); }

/* Grids */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--grid-gap);
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--grid-gap);
}

.grid-4 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--grid-gap);
}

@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1200px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.text-center { text-align: center; }
.text-muted  { color: var(--color-text-muted); }
.text-muted-dark { color: rgba(255,255,255,0.6); }
.mt-sm { margin-top: 16px; }
.mt-md { margin-top: 32px; }
.mt-lg { margin-top: 48px; }
.mb-sm { margin-bottom: 16px; }
.mb-md { margin-bottom: 32px; }
.mb-lg { margin-bottom: 48px; }
.max-prose { max-width: 68ch; }
.max-prose--wide { max-width: 80ch; }

/* ==========================================================================
   5. BUTTONS
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--border-radius-sm);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.01em;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
  cursor: pointer;
  white-space: nowrap;
}

.btn:focus-visible {
  outline: 2px solid var(--color-accent-cyan);
  outline-offset: 3px;
}

/* Primary: dark fill, white text (used on gradient/light backgrounds) */
.btn-primary {
  background: var(--color-darker);
  color: var(--color-white);
  border: 1px solid var(--color-darker);
}

.btn-primary:hover {
  background: var(--color-white);
  color: var(--color-text-dark);
  border-color: var(--color-white);
  transform: translateY(-1px);
}

/* Ghost: transparent, white border (used on dark backgrounds) */
.btn-ghost {
  background: transparent;
  color: var(--color-white);
  border: 1px solid var(--color-border-dark);
}

.btn-ghost:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.3);
  transform: translateY(-1px);
}

/* White fill (nav CTA) */
.btn-nav {
  background: var(--color-white);
  color: var(--color-text-dark);
  border: 1px solid var(--color-white);
  padding: 10px 20px;
  font-size: 14px;
}

.btn-nav:hover {
  background: var(--color-darker);
  color: var(--color-white);
  border-color: rgba(255,255,255,0.3);
}

/* Arrow link */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  font-size: 15px;
  color: var(--color-accent-cyan);
  transition: gap 0.2s ease;
}

.link-arrow:hover {
  gap: 10px;
}

.link-arrow--dark {
  color: var(--color-text-dark);
}

/* Phone link */
.phone-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  font-size: 15px;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.phone-link:hover {
  opacity: 1;
}

/* CTA group */
.cta-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 36px;
}

/* ==========================================================================
   6. AURORA GRADIENT
   ========================================================================== */

.hero-gradient {
  position: relative;
  overflow: hidden;
  background: #00d4b8;
}

.hero-gradient::before {
  content: '';
  position: absolute;
  inset: -50%;
  background:
    radial-gradient(ellipse 60% 50% at 20% 40%, #0055ff 0%, transparent 60%),
    radial-gradient(ellipse 50% 60% at 80% 20%, #00e0c8 0%, transparent 60%),
    radial-gradient(ellipse 70% 40% at 60% 80%, #a0f0d8 0%, transparent 60%),
    radial-gradient(ellipse 40% 50% at 40% 60%, #0044cc 0%, transparent 50%);
  filter: blur(60px);
  animation: aurora-shift 40s ease-in-out infinite alternate;
  will-change: transform;
  z-index: 0;
}

.hero-gradient__content {
  position: relative;
  z-index: 1;
}

@keyframes aurora-shift {
  0%   { transform: translate(0%, 0%) scale(1); }
  33%  { transform: translate(5%, -8%) scale(1.05); }
  66%  { transform: translate(-6%, 5%) scale(0.98); }
  100% { transform: translate(3%, -3%) scale(1.03); }
}

/* Text colour on gradient */
.hero-gradient .hero__headline,
.hero-gradient .hero__sub,
.hero-gradient .hero__body,
.hero-gradient .cta-banner__heading,
.hero-gradient .cta-banner__body,
.hero-gradient h1,
.hero-gradient h2 {
  color: var(--color-text-dark);
}

.hero-gradient .section-label {
  color: #004499;
}

.hero-gradient .phone-link {
  color: var(--color-text-dark);
}

@media (prefers-reduced-motion: reduce) {
  .hero-gradient::before {
    animation: none;
  }
}

/* ==========================================================================
   7. HEADER
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-height);
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
  border-bottom: 1px solid transparent;
}

.site-header.is-sticky {
  background: rgba(26, 26, 26, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom-color: var(--color-border-dark);
}

/* On dark-hero pages header is always opaque */
body.dark-hero .site-header {
  background: rgba(26, 26, 26, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom-color: var(--color-border-dark);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.site-logo svg {
  width: 130px;
  height: auto;
}

/* Desktop nav */
.site-nav {
  display: none;
  align-items: center;
  gap: 8px;
}

@media (min-width: 768px) {
  .site-nav {
    display: flex;
  }
}

.site-nav__link {
  padding: 8px 14px;
  font-size: 15px;
  font-weight: 500;
  color: var(--color-white);
  border-radius: var(--border-radius-sm);
  transition: background 0.15s ease, color 0.15s ease;
  position: relative;
}

.site-nav__link:hover {
  background: rgba(255,255,255,0.08);
}

.site-nav__link.is-active {
  color: var(--color-accent-cyan);
}

/* Services dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown__trigger {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-dropdown__trigger svg {
  width: 14px;
  height: 14px;
  transition: transform 0.2s ease;
}

.nav-dropdown:hover .nav-dropdown__trigger svg,
.nav-dropdown.is-open .nav-dropdown__trigger svg {
  transform: rotate(180deg);
}

.nav-dropdown__panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 220px;
  background: var(--color-darker);
  border: 1px solid var(--color-border-dark);
  border-radius: var(--border-radius-md);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 10;
}

.nav-dropdown:hover .nav-dropdown__panel,
.nav-dropdown.is-open .nav-dropdown__panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown__item {
  display: block;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
  border-radius: var(--border-radius-sm);
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-dropdown__item:hover {
  background: rgba(255,255,255,0.08);
  color: var(--color-white);
}

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  border-radius: var(--border-radius-sm);
  transition: background 0.15s ease;
}

.hamburger:hover {
  background: rgba(255,255,255,0.08);
}

.hamburger__line {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-white);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

@media (min-width: 768px) {
  .hamburger {
    display: none;
  }
}

/* Mobile nav overlay */
.mobile-nav {
  position: fixed;
  inset: 0;
  background: var(--color-darker);
  z-index: 101;
  display: flex;
  flex-direction: column;
  padding: calc(var(--header-height) + 24px) var(--gutter) 40px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(100%);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
  overflow-y: auto;
}

.mobile-nav.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.mobile-nav__close {
  position: absolute;
  top: 16px;
  right: var(--gutter);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  border-radius: var(--border-radius-sm);
}

.mobile-nav__close:hover {
  background: rgba(255,255,255,0.08);
}

.mobile-nav__link {
  display: block;
  padding: 16px 0;
  font-size: 24px;
  font-weight: 700;
  color: var(--color-white);
  border-bottom: 1px solid var(--color-border-dark);
  transition: color 0.15s ease;
}

.mobile-nav__link:hover {
  color: var(--color-accent-cyan);
}

.mobile-nav__sub-label {
  display: block;
  padding: 16px 0 8px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent-cyan);
}

.mobile-nav__sub-link {
  display: block;
  padding: 12px 0;
  font-size: 17px;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  border-bottom: 1px solid var(--color-border-dark);
  transition: color 0.15s ease;
}

.mobile-nav__sub-link:hover {
  color: var(--color-white);
}

.mobile-nav__cta {
  margin-top: 32px;
}

/* ==========================================================================
   8. FOOTER
   ========================================================================== */

.site-footer {
  background: var(--color-darker);
  border-top: 1px solid var(--color-border-dark);
}

.site-footer__main {
  padding: 64px 0 48px;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

@media (min-width: 768px) {
  .site-footer__grid {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 32px;
  }
}

.site-footer__brand svg {
  width: 130px;
  height: auto;
  margin-bottom: 16px;
}

.site-footer__tagline {
  font-size: var(--size-small);
  color: rgba(255,255,255,0.5);
  max-width: 28ch;
  margin-top: 12px;
  line-height: 1.5;
}

.site-footer__ioa {
  margin-top: 24px;
}

.footer-nav__heading {
  font-size: var(--size-label);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 16px;
}

.footer-nav__link {
  display: block;
  font-size: var(--size-small);
  color: rgba(255,255,255,0.6);
  padding: 5px 0;
  transition: color 0.15s ease;
}

.footer-nav__link:hover {
  color: var(--color-white);
}

.site-footer__bottom {
  border-top: 1px solid var(--color-border-dark);
  padding: 20px 0;
}

.site-footer__bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.site-footer__copy {
  font-size: var(--size-small);
  color: rgba(255,255,255,0.35);
}

/* ==========================================================================
   9. HERO SECTIONS
   ========================================================================== */

/* Dark hero (service pages, contact, case studies) */
.hero {
  padding-top: calc(var(--header-height) + 60px);
  padding-bottom: 80px;
  background: var(--color-dark);
}

@media (min-width: 768px) {
  .hero {
    padding-top: calc(var(--header-height) + 80px);
    padding-bottom: 100px;
  }
}

.hero__label {
  margin-bottom: 20px;
}

.hero__headline {
  color: var(--color-white);
  margin-bottom: 20px;
}

.hero__sub {
  font-size: var(--size-body);
  font-style: italic;
  color: rgba(255,255,255,0.75);
  max-width: 64ch;
  margin-bottom: 20px;
  line-height: 1.7;
}

.hero__body {
  color: rgba(255,255,255,0.7);
  max-width: 64ch;
}

/* Full-viewport gradient hero (homepage) */
.hero--full {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-height) + 60px);
  padding-bottom: 80px;
}

/* Gradient hero (about, homepage) — text colour overrides */
.hero--gradient .hero__headline { color: var(--color-text-dark); }
.hero--gradient .hero__sub      { color: rgba(0,0,0,0.65); }
.hero--gradient .hero__body     { color: rgba(0,0,0,0.6); }

/* ==========================================================================
   10. SECTION HEADINGS BLOCK
   ========================================================================== */

.section-header {
  margin-bottom: 48px;
}

.section-header--centered {
  text-align: center;
}

.section-header--centered p {
  margin-left: auto;
  margin-right: auto;
}

.section-header h2 {
  margin-bottom: 16px;
}

.section-header p {
  font-size: var(--size-body);
  opacity: 0.75;
  max-width: 60ch;
}

/* On dark sections, headings are white (inherited from body on dark sections) */
/* On light sections, apply dark explicitly */
.bg-white .section-header h2,
.bg-off-white .section-header h2 {
  color: var(--color-text-dark);
}

.bg-white .section-header p,
.bg-off-white .section-header p {
  color: var(--color-text-muted);
  opacity: 1;
}

/* ==========================================================================
   11. IMAGE & LOGO PLACEHOLDERS
   ========================================================================== */

.img-placeholder {
  background: #2e2e2e;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.3);
  font: 500 11px/1 'Inter', sans-serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--border-radius-md);
  text-align: center;
  padding: 12px;
}

.img-placeholder--16-9 {
  aspect-ratio: 16 / 9;
  width: 100%;
}

.img-placeholder--3-4 {
  aspect-ratio: 3 / 4;
  width: 100%;
}

.img-placeholder--map {
  aspect-ratio: 16 / 7;
  width: 100%;
}

.img-placeholder--logo {
  height: 80px;
  width: auto;
  min-width: 160px;
  max-width: 220px;
  border-radius: var(--border-radius-sm);
  display: inline-flex;
}

.img-placeholder--icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  flex-shrink: 0;
}

.img-placeholder--icon-sm {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  flex-shrink: 0;
}

/* Icon placeholder on light backgrounds */
.bg-white .img-placeholder--icon,
.bg-off-white .img-placeholder--icon,
.bg-white .img-placeholder--icon-sm,
.bg-off-white .img-placeholder--icon-sm {
  background: rgba(0,0,0,0.08);
  color: rgba(0,0,0,0.3);
}

/* ==========================================================================
   12. SERVICE CARDS
   ========================================================================== */

.service-card {
  background: var(--color-off-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--border-radius-md);
  padding: var(--card-padding);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.service-card:hover {
  border-color: rgba(0,0,0,0.2);
  transform: translateY(-2px);
}

.service-card__icon {
  margin-bottom: 4px;
}

.service-card h3 {
  color: var(--color-text-dark);
}

.service-card p {
  color: var(--color-text-muted);
  font-size: var(--size-body);
  flex: 1;
}

.service-card .link-arrow {
  margin-top: auto;
  color: var(--color-text-dark);
  font-weight: 600;
}

.service-card .link-arrow:hover {
  color: var(--color-accent-blue);
}

/* ==========================================================================
   13. HOW IT WORKS STEPS
   ========================================================================== */

.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--grid-gap);
}

@media (min-width: 768px) {
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1200px) {
  .steps-grid--4 { grid-template-columns: repeat(4, 1fr); }
  .steps-grid--5 { grid-template-columns: repeat(5, 1fr); }
}

.step {
  padding: 24px;
  border-top: 1px solid var(--color-border-dark);
}

.step__number {
  font-size: 42px;
  font-weight: 800;
  line-height: 1;
  color: var(--color-accent-cyan);
  margin-bottom: 16px;
  letter-spacing: -0.03em;
  opacity: 0.5;
}

.step h4 {
  color: var(--color-white);
  margin-bottom: 10px;
}

.step p {
  font-size: var(--size-small);
  color: rgba(255,255,255,0.6);
  line-height: 1.6;
}

/* Light-background step variant */
.step--light {
  border-top-color: var(--color-border-light);
}

.step--light .step__number {
  color: var(--color-accent-blue);
}

.step--light h4 {
  color: var(--color-text-dark);
}

.step--light p {
  color: var(--color-text-muted);
}

/* ==========================================================================
   14. SECTOR TILES
   ========================================================================== */

.sectors-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--grid-gap);
}

@media (min-width: 768px) {
  .sectors-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1200px) {
  .sectors-grid { grid-template-columns: repeat(3, 1fr); }
}

.sector-tile {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  border: 1px solid var(--color-border-light);
  border-radius: var(--border-radius-md);
  background: var(--color-white);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.sector-tile:hover {
  border-color: rgba(0,0,0,0.15);
  transform: translateY(-2px);
}

.sector-tile h4 {
  color: var(--color-text-dark);
  font-size: 15px;
}

.sector-tile p {
  font-size: var(--size-small);
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* ==========================================================================
   15. CASE STUDY CARDS (homepage preview)
   ========================================================================== */

.cs-card {
  border: 1px solid var(--color-border-light);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  background: var(--color-white);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.cs-card:hover {
  border-color: rgba(0,0,0,0.15);
  transform: translateY(-2px);
}

.cs-card__image {
  border-radius: 0;
}

.cs-card__body {
  padding: var(--card-padding);
}

.cs-card__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: var(--color-off-white);
  color: var(--color-text-muted);
}

.tag--accent {
  background: rgba(0, 224, 200, 0.12);
  color: #006b63;
}

.cs-card h3 {
  color: var(--color-text-dark);
  font-size: 20px;
  margin-bottom: 8px;
}

.cs-card__desc {
  font-size: var(--size-small);
  color: var(--color-text-muted);
  margin-bottom: 16px;
}

.cs-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--color-border-light);
  gap: 12px;
  flex-wrap: wrap;
}

.cs-card__location {
  font-size: var(--size-small);
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ==========================================================================
   16. CTA BANNER
   ========================================================================== */

.cta-banner {
  padding: var(--section-py) 0;
}

.cta-banner__inner {
  max-width: 680px;
}

.cta-banner__heading {
  font-size: var(--size-h2);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  color: var(--color-text-dark);
}

.cta-banner__body {
  font-size: var(--size-body);
  color: rgba(0,0,0,0.6);
  margin-bottom: 0;
  max-width: 56ch;
}

/* ==========================================================================
   17. TRUST / CREDIBILITY SECTIONS
   ========================================================================== */

.trust-block {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

@media (min-width: 768px) {
  .trust-block {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }
}

@media (min-width: 1200px) {
  .trust-block {
    grid-template-columns: 1.2fr 1fr;
  }
}

.trust-block__ioa {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--color-border-dark);
}

.trust-block__ioa p {
  font-size: var(--size-small);
  color: rgba(255,255,255,0.5);
  line-height: 1.5;
  max-width: none;
}

/* ==========================================================================
   18. WHAT'S INCLUDED TABLE (planning-noise.html)
   ========================================================================== */

.included-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.included-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  padding: 24px 0;
  border-bottom: 1px solid var(--color-border-dark);
}

.included-row:first-child {
  border-top: 1px solid var(--color-border-dark);
}

@media (min-width: 768px) {
  .included-row {
    grid-template-columns: 200px 1fr;
    gap: 32px;
    align-items: start;
  }
}

.included-row__label {
  font-weight: 600;
  font-size: 15px;
  color: var(--color-white);
}

.included-row__body {
  font-size: var(--size-body);
  color: rgba(255,255,255,0.65);
  line-height: 1.7;
  max-width: none;
}

/* ==========================================================================
   19. ASSESSMENT CARDS (planning-noise.html)
   ========================================================================== */

.assessment-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--color-border-light);
  border-radius: var(--border-radius-md);
  padding: var(--card-padding);
}

.assessment-card h3 {
  color: var(--color-text-dark);
  margin-bottom: 12px;
}

.assessment-card p {
  font-size: var(--size-body);
  color: var(--color-text-muted);
}

/* ==========================================================================
   20. COMPARISON TABLE (acoustic-design.html)
   ========================================================================== */

.comparison-table {
  width: 100%;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border-light);
}

.comparison-table th {
  padding: 14px 20px;
  font-size: var(--size-small);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--color-off-white);
  color: var(--color-text-muted);
  text-align: left;
  border-bottom: 1px solid var(--color-border-light);
}

.comparison-table td {
  padding: 16px 20px;
  font-size: var(--size-body);
  vertical-align: top;
  border-bottom: 1px solid var(--color-border-light);
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.comparison-table tr:nth-child(even) td {
  background: var(--color-off-white);
}

.comparison-table tr:nth-child(odd) td {
  background: var(--color-white);
}

.comparison-table td:first-child {
  font-weight: 600;
  color: var(--color-text-dark);
  width: 35%;
}

.comparison-table td:last-child {
  color: var(--color-text-muted);
}

/* ==========================================================================
   21. FULL CASE STUDY LAYOUT
   ========================================================================== */

.case-study-section {
  padding: var(--section-py) 0;
  border-bottom: 1px solid var(--color-border-dark);
}

.case-study-section:last-child {
  border-bottom: none;
}

.case-study__header {
  margin-bottom: 40px;
}

.case-study__tag {
  margin-bottom: 16px;
}

.case-study__meta-table {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border: 1px solid var(--color-border-dark);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  margin-bottom: 40px;
}

@media (min-width: 768px) {
  .case-study__meta-table {
    grid-template-columns: repeat(2, 1fr);
  }
}

.case-study__meta-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 0;
  border-bottom: 1px solid var(--color-border-dark);
}

.case-study__meta-row:last-child {
  border-bottom: none;
}

@media (min-width: 768px) {
  .case-study__meta-row:nth-last-child(-n+2) {
    border-bottom: none;
  }
}

.case-study__meta-label {
  padding: 14px 16px;
  font-size: var(--size-small);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.03);
  border-right: 1px solid var(--color-border-dark);
}

.case-study__meta-value {
  padding: 14px 16px;
  font-size: var(--size-body);
  color: rgba(255,255,255,0.8);
}

.case-study__body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}

@media (min-width: 768px) {
  .case-study__body {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }
}

.case-study__body-full {
  grid-column: 1 / -1;
}

.case-study__sub-heading {
  font-size: var(--size-label);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent-cyan);
  margin-bottom: 16px;
}

.case-study p {
  color: rgba(255,255,255,0.7);
  max-width: none;
}

.case-study p + p {
  margin-top: 1em;
}

.case-study__quote {
  border-left: 3px solid var(--color-accent-cyan);
  padding: 20px 24px;
  margin: 40px 0 0;
  background: rgba(255,255,255,0.03);
  border-radius: 0 var(--border-radius-md) var(--border-radius-md) 0;
}

.case-study__quote p {
  font-style: italic;
  font-size: var(--size-body);
  color: rgba(255,255,255,0.75);
  max-width: none;
}

.case-study__quote cite {
  display: block;
  margin-top: 10px;
  font-size: var(--size-small);
  color: rgba(255,255,255,0.4);
  font-style: normal;
}

.case-study__cta {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--color-border-dark);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.case-study__cta-text {
  font-size: var(--size-body);
  color: rgba(255,255,255,0.6);
}

/* ==========================================================================
   22. ABOUT PAGE
   ========================================================================== */

.about-bio {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: start;
}

@media (min-width: 768px) {
  .about-bio {
    grid-template-columns: 280px 1fr;
    gap: 56px;
  }
}

@media (min-width: 1200px) {
  .about-bio {
    grid-template-columns: 320px 1fr;
    gap: 72px;
  }
}

.about-bio__text h2 {
  margin-bottom: 24px;
  color: var(--color-text-dark);
}

.about-bio__text p {
  color: var(--color-text-muted);
  max-width: none;
}

.credentials-block {
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--color-border-dark);
}

.credentials-block:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.credentials-block h3 {
  margin-bottom: 16px;
  color: var(--color-white);
}

.credentials-block p {
  color: rgba(255,255,255,0.65);
  max-width: none;
}

.credentials-block p + p {
  margin-top: 1em;
}

.sector-table {
  width: 100%;
  border: 1px solid var(--color-border-light);
  border-radius: var(--border-radius-md);
  overflow: hidden;
}

.sector-table tr {
  border-bottom: 1px solid var(--color-border-light);
}

.sector-table tr:last-child {
  border-bottom: none;
}

.sector-table tr:nth-child(even) {
  background: var(--color-off-white);
}

.sector-table td {
  padding: 14px 20px;
  font-size: var(--size-body);
  vertical-align: top;
}

.sector-table td:first-child {
  font-weight: 600;
  color: var(--color-text-dark);
  width: 40%;
}

.sector-table td:last-child {
  color: var(--color-text-muted);
}

.coverage-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 24px;
}

@media (min-width: 768px) {
  .coverage-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

.coverage-list__item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--size-body);
  color: rgba(255,255,255,0.75);
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border-dark);
}

.coverage-list__item::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent-cyan);
  flex-shrink: 0;
}

/* ==========================================================================
   23. WHERE WE WORK (planning-noise.html)
   ========================================================================== */

.location-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin: 24px 0;
}

@media (min-width: 768px) {
  .location-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

.location-list__item {
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border-dark);
  font-size: var(--size-body);
  color: rgba(255,255,255,0.75);
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.location-list__item::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent-cyan);
  flex-shrink: 0;
  margin-top: 6px;
}

/* ==========================================================================
   24. CONTACT PAGE
   ========================================================================== */

.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  align-items: start;
}

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

@media (min-width: 1200px) {
  .contact-layout {
    grid-template-columns: 1fr 1.1fr;
  }
}

.contact-details {
  margin-top: 32px;
}

.contact-details__table {
  width: 100%;
  border-top: 1px solid var(--color-border-light);
}

.contact-details__row {
  display: grid;
  grid-template-columns: 120px 1fr;
  border-bottom: 1px solid var(--color-border-light);
  gap: 16px;
}

.contact-details__label {
  padding: 14px 0;
  font-size: var(--size-small);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.contact-details__value {
  padding: 14px 0;
  font-size: var(--size-body);
  color: var(--color-text-dark);
}

.contact-details__value a {
  color: var(--color-accent-blue);
  transition: opacity 0.15s ease;
}

.contact-details__value a:hover {
  opacity: 0.75;
}

/* Contact form */
.contact-form {
  background: var(--color-off-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--border-radius-lg);
  padding: 36px;
}

@media (min-width: 768px) {
  .contact-form {
    padding: 40px;
  }
}

.contact-form h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-text-dark);
  margin-bottom: 28px;
}

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

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-dark);
  letter-spacing: 0.02em;
}

.form-group label .optional {
  font-weight: 400;
  color: var(--color-text-muted);
  margin-left: 4px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  font-size: var(--size-body);
  font-family: inherit;
  background: var(--color-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--border-radius-sm);
  color: var(--color-text-dark);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  appearance: none;
  -webkit-appearance: none;
}

.form-control:focus {
  outline: none;
  border-color: var(--color-accent-blue);
  box-shadow: 0 0 0 3px rgba(0, 85, 255, 0.1);
}

.form-control.is-error {
  border-color: #e53935;
  box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.1);
}

.form-control[aria-invalid="true"] {
  border-color: #e53935;
}

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

select.form-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 40px;
  cursor: pointer;
}

.field-error {
  font-size: 12px;
  color: #e53935;
  font-weight: 500;
  display: none;
}

.field-error.is-visible {
  display: block;
}

.form-submit {
  margin-top: 8px;
}

.form-submit .btn {
  width: 100%;
  justify-content: center;
  padding: 16px 28px;
  font-size: 16px;
}

.form-privacy {
  margin-top: 14px;
  font-size: 12px;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.form-success {
  text-align: center;
  padding: 48px 24px;
}

.form-success__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(0, 224, 200, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--color-accent-cyan);
}

.form-success h3 {
  color: var(--color-text-dark);
  margin-bottom: 8px;
}

.form-success p {
  color: var(--color-text-muted);
  font-size: var(--size-body);
  max-width: 40ch;
  margin: 0 auto;
}

/* ==========================================================================
   25. UTILITY LISTS
   ========================================================================== */

.styled-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

.styled-list li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: var(--size-body);
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
}

.styled-list li::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent-cyan);
  flex-shrink: 0;
  margin-top: 7px;
}

.styled-list--light li {
  color: var(--color-text-muted);
}

.styled-list--light li::before {
  background: var(--color-accent-blue);
}

/* ==========================================================================
   26. SCROLL ANIMATIONS
   ========================================================================== */

/* Only apply fade-up when JS is loaded and user has no motion preference */
.js-loaded .fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.js-loaded .fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .js-loaded .fade-up {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ==========================================================================
   27. FOCUS STYLES (accessibility)
   ========================================================================== */

:focus-visible {
  outline: 2px solid var(--color-accent-cyan);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ==========================================================================
   28. DIVIDER
   ========================================================================== */

.divider {
  border: none;
  border-top: 1px solid var(--color-border-dark);
  margin: 0;
}

.divider--light {
  border-top-color: var(--color-border-light);
}

/* ==========================================================================
   29. PULL QUOTE
   ========================================================================== */

.pull-quote {
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 600;
  font-style: italic;
  line-height: 1.5;
  color: var(--color-white);
  max-width: 56ch;
}

/* ==========================================================================
   30. MISC UTILITIES
   ========================================================================== */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.inline-icon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Highlighted text accent */
.accent { color: var(--color-accent-cyan); }
.accent--blue { color: var(--color-accent-blue); }
