/* ==============================================
   ATUK — Acoustic Treatment UK
   Main Stylesheet
   ============================================== */

/* ---------------------
   CSS Custom Properties
   --------------------- */
:root {
  --color-black: #000000;
  --color-dark-navy: #1D3557;
  --color-teal: #457B9D;
  --color-light-teal: #A8DADC;
  --color-off-white: #F4F9F2;
  --color-red: #E63946;
  --color-red-hover: #C7303C;
  --color-body-text: #333333;
  --color-muted-text: #666666;
  --color-white: #FFFFFF;

  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --container-max: 1200px;
  --container-padding: 20px;
  --section-padding: 80px;
  --section-padding-mobile: 40px;

  --radius-sm: 1rem;
  --radius-md: 2rem;
  --radius-lg: 3rem;
  --radius-xl: 4rem;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.12);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-body-text);
  background-color: var(--color-off-white);
  -webkit-font-smoothing: antialiased;
}

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

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

a:hover {
  text-decoration: underline;
}

/* ---------------------
   Skip Link (Accessibility)
   --------------------- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-dark-navy);
  color: var(--color-white);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  z-index: 1000;
  font-size: 14px;
}

.skip-link:focus {
  top: 10px;
}

/* ---------------------
   Container
   --------------------- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* ---------------------
   Buttons
   --------------------- */
.btn {
  display: inline-block;
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 18px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: background-color 0.2s, box-shadow 0.2s;
}

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

.btn--primary:hover {
  background-color: var(--color-red-hover);
  box-shadow: var(--shadow);
  text-decoration: none;
}

.btn--secondary {
  background-color: transparent;
  color: var(--color-teal);
  border: 2px solid var(--color-teal);
}

.btn--secondary:hover {
  background-color: var(--color-teal);
  color: var(--color-white);
  text-decoration: none;
}

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

.btn--white:hover {
  background-color: var(--color-off-white);
  text-decoration: none;
}

.btn--large {
  padding: 16px 32px;
  font-size: 18px;
}

/* ---------------------
   Navigation
   --------------------- */
.nav {
  background-color: var(--color-dark-navy);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav__container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav__logo {
  color: var(--color-white);
  text-decoration: none;
}

.nav__logo-text {
  font-weight: 700;
  font-size: 24px;
  letter-spacing: 2px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav__link {
  color: var(--color-white);
  font-weight: 500;
  font-size: 16px;
  text-decoration: none;
  opacity: 0.9;
  transition: opacity 0.2s;
}

.nav__link:hover {
  opacity: 1;
  text-decoration: none;
}

.nav__cta {
  padding: 10px 20px;
  font-size: 16px;
}

/* Dropdown */
.nav__dropdown {
  position: relative;
}

.nav__dropdown-trigger {
  background: none;
  border: none;
  color: var(--color-white);
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  opacity: 0.9;
  transition: opacity 0.2s;
}

.nav__dropdown-trigger:hover {
  opacity: 1;
}

.nav__dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--color-white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  min-width: 240px;
  padding: 8px 0;
  list-style: none;
  margin-top: 8px;
}

.nav__dropdown:hover .nav__dropdown-menu,
.nav__dropdown-trigger[aria-expanded="true"] + .nav__dropdown-menu {
  display: block;
}

.nav__dropdown-menu a {
  display: block;
  padding: 10px 20px;
  color: var(--color-dark-navy);
  font-size: 15px;
  transition: background-color 0.15s;
}

.nav__dropdown-menu a:hover {
  background-color: var(--color-off-white);
  text-decoration: none;
}

/* Hamburger */
.nav__hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}

.nav__hamburger-line {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-white);
  transition: transform 0.2s;
}

/* Mobile menu */
.nav__mobile-menu {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-white);
  z-index: 99;
  padding: 24px;
  overflow-y: auto;
}

.nav__mobile-menu[aria-hidden="false"] {
  display: block;
}

.nav__mobile-link {
  display: block;
  padding: 14px 0;
  color: var(--color-dark-navy);
  font-size: 18px;
  font-weight: 500;
  border-bottom: 1px solid var(--color-light-teal);
}

.nav__mobile-link:hover {
  text-decoration: none;
}

.nav__mobile-dropdown summary {
  padding: 14px 0;
  color: var(--color-dark-navy);
  font-size: 18px;
  font-weight: 500;
  border-bottom: 1px solid var(--color-light-teal);
  cursor: pointer;
  list-style: none;
}

.nav__mobile-dropdown ul {
  list-style: none;
  padding-left: 16px;
}

.nav__mobile-dropdown ul li a {
  display: block;
  padding: 10px 0;
  color: var(--color-teal);
  font-size: 16px;
}

.nav__mobile-cta {
  display: block;
  margin-top: 24px;
  text-align: center;
  width: 100%;
}

/* ---------------------
   Hero
   --------------------- */
.hero {
  background-color: var(--color-dark-navy);
  background-size: cover;
  background-position: center;
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: center;
}

.hero__overlay {
  width: 100%;
  padding: var(--section-padding) 0;
}

.hero__container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  text-align: center;
}

.hero__title {
  font-size: 48px;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 16px;
  line-height: 1.2;
}

.hero__subtitle {
  font-size: 20px;
  color: var(--color-light-teal);
  max-width: 700px;
  margin: 0 auto 32px;
  line-height: 1.5;
}

.hero__ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.hero__badges {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero__badge {
  color: var(--color-white);
  font-size: 14px;
  font-weight: 500;
  opacity: 0.9;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ---------------------
   Sections
   --------------------- */
.section {
  padding: var(--section-padding) 0;
}

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

.section__title {
  font-size: 32px;
  font-weight: 700;
  color: var(--color-dark-navy);
  text-align: center;
  margin-bottom: 48px;
}

/* ---------------------
   Card Grid
   --------------------- */
.card-grid {
  display: grid;
  gap: 24px;
}

.card-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.card-grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

.card {
  background: var(--color-white);
  border: 1px solid var(--color-light-teal);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  text-align: center;
  text-decoration: none;
  color: var(--color-body-text);
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}

.card:hover {
  border-color: var(--color-teal);
  box-shadow: var(--shadow);
  background-color: rgba(168, 218, 220, 0.1);
  text-decoration: none;
}

.card__icon {
  font-size: 32px;
  margin-bottom: 16px;
}

.card__title {
  font-size: 20px;
  font-weight: 600;
  color: var(--color-dark-navy);
  margin-bottom: 8px;
}

.card__text {
  font-size: 15px;
  color: var(--color-muted-text);
  line-height: 1.5;
}

.card--compact {
  padding: 24px 16px;
}

/* ---------------------
   Steps
   --------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  text-align: center;
}

.step__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--color-teal);
  color: var(--color-white);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
}

.step__title {
  font-size: 20px;
  font-weight: 600;
  color: var(--color-dark-navy);
  margin-bottom: 8px;
}

.step__text {
  font-size: 15px;
  color: var(--color-muted-text);
}

/* ---------------------
   CTA Banner
   --------------------- */
.cta-banner {
  background-color: var(--color-red);
  padding: var(--section-padding) 0;
  text-align: center;
}

.cta-banner__title {
  font-size: 32px;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 12px;
}

.cta-banner__text {
  font-size: 18px;
  color: var(--color-white);
  opacity: 0.9;
  margin-bottom: 24px;
}

/* ---------------------
   Footer
   --------------------- */
.footer {
  background-color: var(--color-black);
  color: var(--color-white);
  padding: 64px 0 32px;
}

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

.footer__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-bottom: 48px;
}

.footer__heading {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--color-white);
}

.footer__links {
  list-style: none;
}

.footer__links li {
  margin-bottom: 8px;
}

.footer__links a {
  color: var(--color-light-teal);
  font-size: 14px;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.footer__links a:hover {
  opacity: 1;
}

.footer__cta {
  margin-top: 16px;
  font-size: 14px;
  padding: 10px 20px;
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer__logo-text {
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 2px;
}

.footer__tagline {
  display: block;
  font-size: 12px;
  letter-spacing: 3px;
  opacity: 0.6;
  margin-top: 4px;
}

.footer__copyright {
  font-size: 14px;
  opacity: 0.5;
}

/* ---------------------
   Responsive
   --------------------- */
@media (max-width: 1023px) {
  .card-grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  :root {
    --section-padding: 40px;
  }

  .hero__title {
    font-size: 32px;
  }

  .hero__subtitle {
    font-size: 18px;
  }

  .section__title {
    font-size: 24px;
  }

  .cta-banner__title {
    font-size: 24px;
  }

  /* Nav: hide desktop links, show hamburger */
  .nav__links,
  .nav__cta {
    display: none;
  }

  .nav__hamburger {
    display: flex;
  }

  /* Grids */
  .card-grid--3 {
    grid-template-columns: 1fr;
  }

  .card-grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .footer__grid {
    grid-template-columns: 1fr;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

/* ---------------------
   Enquiry CTA Block
   --------------------- */
.enquiry-cta {
  background-color: var(--color-dark-navy);
  padding: var(--section-padding) 0;
  text-align: center;
}

.enquiry-cta__heading {
  font-size: 32px;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 12px;
}

.enquiry-cta__text {
  font-size: 18px;
  color: var(--color-light-teal);
  max-width: 600px;
  margin: 0 auto 24px;
  opacity: 0.9;
}

/* ---------------------
   Why ATUK Section
   --------------------- */
.why-atuk {
  background-color: var(--color-off-white);
  padding: var(--section-padding) 0;
}

.why-atuk__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.why-atuk__block {
  background: var(--color-white);
  border: 1px solid var(--color-light-teal);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  text-align: center;
}

.why-atuk__icon {
  font-size: 36px;
  margin-bottom: 16px;
}

.why-atuk__title {
  font-size: 20px;
  font-weight: 600;
  color: var(--color-dark-navy);
  margin-bottom: 12px;
}

.why-atuk__text {
  font-size: 15px;
  color: var(--color-muted-text);
  line-height: 1.6;
}

/* ---------------------
   Testimonials Carousel
   --------------------- */
.testimonials {
  padding: var(--section-padding) 0;
  background-color: var(--color-white);
}

.testimonial-carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
}

.testimonial-carousel__track-wrapper {
  overflow: hidden;
  flex: 1;
}

.testimonial-carousel__track {
  display: flex;
  transition: transform 500ms ease;
  will-change: transform;
}

.testimonial-card {
  flex: 0 0 100%;
  padding: 40px;
  text-align: center;
}

.testimonial-card__stars {
  color: #f4b400;
  font-size: 24px;
  margin-bottom: 16px;
  letter-spacing: 2px;
}

.testimonial-card__quote {
  font-size: 18px;
  font-style: italic;
  color: var(--color-body-text);
  line-height: 1.7;
  max-width: 640px;
  margin: 0 auto 20px;
}

.testimonial-card__name {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-dark-navy);
  margin-bottom: 4px;
}

.testimonial-card__role {
  font-size: 14px;
  color: var(--color-muted-text);
}

.testimonial-carousel__prev,
.testimonial-carousel__next {
  background: var(--color-white);
  border: 1px solid var(--color-light-teal);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 24px;
  color: var(--color-dark-navy);
  flex-shrink: 0;
  transition: background-color 0.2s, border-color 0.2s;
}

.testimonial-carousel__prev:hover,
.testimonial-carousel__next:hover {
  background-color: var(--color-off-white);
  border-color: var(--color-teal);
}

/* ---------------------
   FAQ Accordion
   --------------------- */
.faq {
  padding: var(--section-padding) 0;
  background-color: var(--color-off-white);
}

.faq__list {
  max-width: 800px;
  margin: 0 auto;
}

.faq__item {
  border-bottom: 1px solid var(--color-light-teal);
}

.faq__heading {
  margin: 0;
}

.faq__question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 20px 0;
  font-family: var(--font-family);
  font-size: 17px;
  font-weight: 600;
  color: var(--color-dark-navy);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq__question:hover {
  color: var(--color-teal);
}

.faq__icon {
  font-size: 20px;
  font-weight: 400;
  flex-shrink: 0;
  transition: transform 0.2s;
}

.faq__question[aria-expanded="true"] .faq__icon {
  transform: rotate(45deg);
}

.faq__answer {
  padding-bottom: 20px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-body-text);
}

.faq__answer[hidden] {
  display: none;
}

/* ---------------------
   Page Layout (page.njk)
   --------------------- */
.page-header {
  background-color: var(--color-dark-navy);
  padding: 64px 0;
  text-align: center;
}

.page-header__title {
  font-size: 40px;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 12px;
}

.page-header__subtitle {
  font-size: 20px;
  color: var(--color-light-teal);
  max-width: 600px;
  margin: 0 auto;
}

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

/* ---------------------
   Product Layout (product.njk)
   --------------------- */
.breadcrumb {
  background-color: var(--color-off-white);
  border-bottom: 1px solid var(--color-light-teal);
  padding: 12px 0;
}

.breadcrumb__list {
  list-style: none;
  display: flex;
  gap: 8px;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  font-size: 14px;
  color: var(--color-muted-text);
  align-items: center;
}

.breadcrumb__item + .breadcrumb__item::before {
  content: "›";
  margin-right: 8px;
}

.breadcrumb__link {
  color: var(--color-teal);
}

.product-hero {
  background-color: var(--color-dark-navy);
  padding: 80px 0;
  text-align: center;
}

.product-hero__title {
  font-size: 40px;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 16px;
}

.product-hero__subtitle {
  font-size: 20px;
  color: var(--color-light-teal);
  max-width: 600px;
  margin: 0 auto 32px;
}

/* ---------------------
   Blog Post Layout (blog-post.njk)
   --------------------- */
.post-header {
  background-color: var(--color-dark-navy);
  padding: 64px 0;
  text-align: center;
}

.post-header__title {
  font-size: 36px;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 16px;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.post-header__meta {
  font-size: 15px;
  color: var(--color-light-teal);
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
}

.post-header__author {
  opacity: 0.8;
}

.prose {
  padding: var(--section-padding) 0;
  max-width: 720px;
  margin: 0 auto;
}

.prose h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--color-dark-navy);
  margin: 40px 0 16px;
}

.prose h3 {
  font-size: 22px;
  font-weight: 600;
  color: var(--color-dark-navy);
  margin: 32px 0 12px;
}

.prose p {
  margin-bottom: 20px;
  font-size: 17px;
  line-height: 1.8;
}

.prose ul, .prose ol {
  margin-bottom: 20px;
  padding-left: 24px;
}

.prose li {
  font-size: 17px;
  line-height: 1.8;
  margin-bottom: 8px;
}

.prose a {
  color: var(--color-teal);
  text-decoration: underline;
}

/* ---------------------
   Responsive — New Sections
   --------------------- */
@media (max-width: 767px) {
  .why-atuk__grid {
    grid-template-columns: 1fr;
  }

  .testimonial-card {
    padding: 24px 16px;
  }

  .testimonial-card__quote {
    font-size: 16px;
  }

  .testimonial-carousel__prev,
  .testimonial-carousel__next {
    display: none;
  }

  .page-header__title {
    font-size: 28px;
  }

  .product-hero__title {
    font-size: 28px;
  }

  .post-header__title {
    font-size: 26px;
  }

  .enquiry-cta__heading {
    font-size: 24px;
  }

  .faq__question {
    font-size: 15px;
  }
}

/* ---------------------
   Section Landing Layout
   --------------------- */
.section-landing {
  padding: 0;
}

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

.section-landing__section--alt {
  background-color: var(--color-off-white);
}

.section-landing__heading {
  font-size: 28px;
  font-weight: 700;
  color: var(--color-dark-navy);
  margin-bottom: 32px;
  text-align: center;
}

.section-landing__intro {
  font-size: 17px;
  color: var(--color-muted-text);
  max-width: 680px;
  margin: 0 auto 40px;
  text-align: center;
  line-height: 1.7;
}

@media (max-width: 767px) {
  .section-landing__heading {
    font-size: 22px;
  }
}

/* ---------------------
   Services Cards
   --------------------- */
.service-card {
  display: flex;
  flex-direction: column;
  text-align: left;
  gap: 12px;
}

.service-card .card__text {
  flex: 1;
}

.service-card__link {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-teal);
  text-decoration: none;
  margin-top: auto;
}

.service-card__link:hover {
  text-decoration: underline;
}

/* ---------------------
   Mega Menu (Products nav dropdown)
   --------------------- */
.nav__mega-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  display: none;
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 24px;
  margin-top: 8px;
  min-width: 480px;
  z-index: 200;
}

.nav__dropdown-trigger[aria-expanded="true"] + .nav__mega-menu {
  display: flex;
  gap: 32px;
}

.nav__mega-menu__col {
  flex: 1;
  min-width: 180px;
}

.nav__mega-menu__label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-muted-text);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--color-light-teal);
}

.nav__mega-menu__col a {
  display: block;
  padding: 8px 0;
  font-size: 15px;
  color: var(--color-dark-navy);
  text-decoration: none;
  transition: color 0.15s;
}

.nav__mega-menu__col a:hover {
  color: var(--color-teal);
  text-decoration: none;
}

@media (max-width: 767px) {
  .nav__mega-menu {
    display: none !important;
  }
}

/* ---------------------
   What We Do Section
   --------------------- */
.what-we-do__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.what-we-do__card {
  display: flex;
  flex-direction: column;
  background: var(--color-white);
  border: 2px solid var(--color-light-teal);
  border-radius: var(--radius-md);
  padding: 40px 32px;
  text-decoration: none;
  color: var(--color-body-text);
  transition: border-color 0.2s, box-shadow 0.2s;
  gap: 12px;
}

.what-we-do__card:hover {
  border-color: var(--color-teal);
  box-shadow: var(--shadow-lg);
  text-decoration: none;
}

.what-we-do__card--at:hover {
  border-color: var(--color-teal);
}

.what-we-do__card--sp:hover {
  border-color: var(--color-dark-navy);
}

.what-we-do__icon {
  color: var(--color-teal);
  margin-bottom: 8px;
}

.what-we-do__card--sp .what-we-do__icon {
  color: var(--color-dark-navy);
}

.what-we-do__title {
  font-size: 26px;
  font-weight: 700;
  color: var(--color-dark-navy);
  margin: 0;
}

.what-we-do__text {
  font-size: 16px;
  color: var(--color-muted-text);
  line-height: 1.6;
  margin: 0;
  flex: 1;
}

.what-we-do__cta {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-teal);
  margin-top: 8px;
}

.what-we-do__card--sp .what-we-do__cta {
  color: var(--color-dark-navy);
}

.what-we-do__card--bm .what-we-do__icon {
  color: var(--color-warm-neutral, #7a6f5a);
}

.what-we-do__card--bm .what-we-do__cta {
  color: var(--color-warm-neutral, #7a6f5a);
}

.what-we-do__card--sv .what-we-do__icon {
  color: var(--color-teal);
}

.what-we-do__card--sv .what-we-do__cta {
  color: var(--color-teal);
}

.what-we-do__grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

.what-we-do__grid--4 .what-we-do__title {
  font-size: 20px;
}

@media (max-width: 1023px) {
  .what-we-do__grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .what-we-do__grid {
    grid-template-columns: 1fr;
  }

  .what-we-do__grid--4 {
    grid-template-columns: 1fr;
  }
}

/* ---------------------
   Service Sub-Page Content
   --------------------- */
.service-page {
  max-width: 760px;
}

.service-page__section {
  margin-bottom: 48px;
}

.service-page__section h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-dark-navy);
  margin-bottom: 16px;
}

.service-page__section h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--color-dark-navy);
  margin-bottom: 12px;
  margin-top: 24px;
}

.service-page__section p {
  font-size: 17px;
  line-height: 1.75;
  color: var(--color-body-text);
  margin-bottom: 16px;
}

.service-page__section ul,
.service-page__section ol {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 16px;
}

.service-page__section ul li,
.service-page__section ol li {
  font-size: 17px;
  line-height: 1.75;
  color: var(--color-body-text);
  margin-bottom: 10px;
}

.service-page__section a {
  color: var(--color-teal);
  text-decoration: underline;
}

/* ---------------------
   Problem → Solution Section
   --------------------- */
.problem-solution {
  background-color: var(--color-white);
}

.problem-solution__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.problem-solution__card {
  background: var(--color-off-white);
  border: 1px solid var(--color-light-teal);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.problem-solution__question {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-dark-navy);
  line-height: 1.5;
  margin: 0;
}

.problem-solution__answer {
  font-size: 15px;
  color: var(--color-muted-text);
  line-height: 1.6;
  margin: 0;
  flex: 1;
}

.problem-solution__link {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-teal);
  text-decoration: none;
  margin-top: auto;
}

.problem-solution__link:hover {
  text-decoration: underline;
}

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

@media (max-width: 767px) {
  .problem-solution__grid {
    grid-template-columns: 1fr;
  }
}

/* ---------------------
   /start/ Page Options
   --------------------- */
.start-page__options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 8px;
}

.start-page__option {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--color-off-white);
  border: 1px solid var(--color-light-teal);
  border-radius: var(--radius-md);
  padding: 20px 20px;
  text-decoration: none;
  color: var(--color-body-text);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.start-page__option:hover {
  border-color: var(--color-teal);
  box-shadow: var(--shadow);
  text-decoration: none;
}

.start-page__option strong {
  font-size: 17px;
  color: var(--color-dark-navy);
}

.start-page__option span {
  font-size: 14px;
  color: var(--color-muted-text);
  line-height: 1.5;
}

@media (max-width: 767px) {
  .start-page__options {
    grid-template-columns: 1fr;
  }
}

/* ---------------------
   Nav — Tier 1 Problem Strip
   --------------------- */
.nav__tier1 {
  background-color: #16294a; /* slightly darker than --color-dark-navy for visual separation */
  border-bottom: 1px solid rgba(168, 218, 220, 0.2);
}

.nav__tier1-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  display: flex;
  align-items: center;
  gap: 0;
  height: 36px;
}

.nav__tier1-link {
  color: var(--color-light-teal);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  padding: 0 16px;
  height: 100%;
  display: flex;
  align-items: center;
  opacity: 0.85;
  transition: opacity 0.2s, background-color 0.2s;
  border-right: 1px solid rgba(168, 218, 220, 0.15);
}

.nav__tier1-link:first-child {
  padding-left: 0;
  border-left: none;
}

.nav__tier1-link:hover {
  opacity: 1;
  background-color: rgba(168, 218, 220, 0.08);
  text-decoration: none;
}

.nav__tier1-link--notsure {
  margin-left: auto;
  border-right: none;
  color: var(--color-white);
  opacity: 1;
  font-weight: 600;
}

/* Mega menu — 3-column width increase */
.nav__mega-menu {
  min-width: 720px;
}

/* ---------------------
   Nav — Mobile Section Labels
   --------------------- */
.nav__mobile-section-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--color-muted-text);
  padding: 20px 0 6px;
  margin-bottom: 0;
}

.nav__mobile-link--problem {
  color: var(--color-dark-navy);
  font-weight: 600;
}

.nav__mobile-link--notsure {
  color: var(--color-teal);
}

/* Hide tier 1 on mobile — problem-led links exist in mobile menu instead */
@media (max-width: 767px) {
  .nav__tier1 {
    display: none;
  }
}

/* ---------------------
   Service Pricing Badge & Line
   --------------------- */
.service-price-badge {
  display: inline-block;
  background-color: var(--color-off-white);
  border: 1px solid var(--color-light-teal);
  border-radius: var(--radius-sm);
  padding: 3px 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-dark-navy);
  letter-spacing: 0.3px;
}

.service-price-badge--large {
  font-size: 18px;
  padding: 8px 18px;
  background-color: var(--color-off-white);
  border-color: var(--color-teal);
}

.service-page__section--pricing {
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--color-light-teal);
}

.service-pricing-line {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
}

.service-pricing-line__note {
  font-size: 15px;
  color: var(--color-muted-text);
  line-height: 1.6;
  margin: 0;
  flex: 1;
  min-width: 200px;
}

.service-pricing-line__note a {
  color: var(--color-teal);
  text-decoration: underline;
}

@media (max-width: 767px) {
  .service-pricing-line {
    flex-direction: column;
    gap: 12px;
  }

  .service-price-badge--large {
    font-size: 16px;
  }
}

/* ---------------------
   Tables (product-table, tier-table)
   --------------------- */

.product-table,
.tier-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  margin: 24px 0 32px;
}

.product-table th,
.tier-table th {
  background-color: var(--color-navy);
  color: #fff;
  text-align: left;
  padding: 10px 14px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
}

.product-table td,
.tier-table td {
  padding: 10px 14px;
  border-bottom: 1px solid #e4e8ed;
  vertical-align: top;
}

.product-table tbody tr:last-child td,
.tier-table tbody tr:last-child td {
  border-bottom: none;
}

.product-table tbody tr:nth-child(even),
.tier-table tbody tr:nth-child(even) {
  background-color: #f8f9fa;
}

.tier-table__link {
  color: var(--color-teal);
  font-weight: 600;
  text-decoration: none;
}

.tier-table__link:hover {
  text-decoration: underline;
}

@media (max-width: 767px) {
  .product-table,
  .tier-table {
    font-size: 14px;
  }

  .product-table th,
  .tier-table th,
  .product-table td,
  .tier-table td {
    padding: 8px 10px;
  }
}

/* ---------------------
   Guided Quiz
   --------------------- */

.quiz {
  max-width: 680px;
  margin: 0 auto 48px;
}

/* Progress dots */
.quiz__progress {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 32px;
}

.quiz__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #d0d5db;
  transition: background-color 0.2s ease;
  flex-shrink: 0;
}

.quiz__dot--active {
  background-color: var(--color-teal);
}

/* Question heading */
.quiz__question {
  font-size: clamp(20px, 3vw, 26px);
  color: var(--color-navy);
  margin-bottom: 24px;
  text-align: center;
}

/* Option buttons */
.quiz__options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.quiz__option {
  display: block;
  width: 100%;
  padding: 14px 20px;
  text-align: left;
  background: #fff;
  border: 2px solid #d0d5db;
  border-radius: 8px;
  font-size: 16px;
  color: var(--color-dark);
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
  line-height: 1.4;
}

.quiz__option:hover,
.quiz__option:focus-visible {
  border-color: var(--color-teal);
  background-color: #f0fafa;
  outline: none;
}

/* Back button */
.quiz__back {
  background: none;
  border: none;
  color: var(--color-teal);
  font-size: 14px;
  cursor: pointer;
  padding: 4px 0;
  text-decoration: underline;
  display: inline-block;
  margin-top: 4px;
}

.quiz__back:hover {
  color: var(--color-navy);
}

/* Result panel */
.quiz__result {
  background: #f8f7f3;
  border: 2px solid var(--color-teal);
  border-radius: 10px;
  padding: 32px 28px;
}

.quiz__result-heading {
  font-size: clamp(20px, 3vw, 24px);
  color: var(--color-navy);
  margin-bottom: 12px;
}

.quiz__result-body {
  font-size: 16px;
  line-height: 1.6;
  color: #444;
  margin-bottom: 24px;
}

.quiz__result-primary {
  display: inline-block;
  margin-bottom: 20px;
}

.quiz__result-supporting {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
}

.quiz__result-supporting li {
  margin-bottom: 8px;
  font-size: 15px;
}

.quiz__result-supporting a {
  color: var(--color-teal);
  text-decoration: underline;
}

.quiz__restart {
  background: none;
  border: none;
  color: #888;
  font-size: 13px;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
  display: block;
  margin-top: 8px;
}

.quiz__restart:hover {
  color: var(--color-navy);
}

@media (max-width: 767px) {
  .quiz {
    margin-bottom: 32px;
  }

  .quiz__option {
    padding: 12px 16px;
    font-size: 15px;
  }

  .quiz__result {
    padding: 24px 18px;
  }
}

/* ---------------------
   Calculators (shared form layout)
   --------------------- */

.calc-form {
  background: #fff;
  border: 1px solid #d0d5db;
  border-radius: 10px;
  padding: 28px 24px;
  margin-bottom: 24px;
}

.calc-form__row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}

.calc-form__row--selects {
  grid-template-columns: repeat(2, 1fr);
}

.calc-form__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.calc-form__field label {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-navy);
}

.calc-form__field input[type="range"] {
  width: 100%;
  accent-color: var(--color-teal);
  cursor: pointer;
  height: 6px;
}

.calc-form__field select {
  padding: 8px 12px;
  border: 1px solid #d0d5db;
  border-radius: 6px;
  font-size: 14px;
  color: var(--color-dark);
  background: #fff;
  cursor: pointer;
}

.calc-result {
  background: #f0fafa;
  border: 2px solid var(--color-teal);
  border-radius: 10px;
  padding: 24px;
  margin-top: 16px;
}

.calc-result__links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}

/* ---------------------
   RT60 Calculator specifics
   --------------------- */

.rt60-result__interpretation {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-navy);
  line-height: 1.4;
  margin-bottom: 8px;
}

.rt60-result__value {
  font-size: 14px;
  color: #666;
  margin-bottom: 16px;
}

.rt60-toggle-octave {
  background: none;
  border: 1px solid var(--color-teal);
  border-radius: 6px;
  color: var(--color-teal);
  font-size: 14px;
  padding: 6px 14px;
  cursor: pointer;
  margin-bottom: 12px;
  display: inline-block;
}

.rt60-toggle-octave:hover {
  background: var(--color-teal);
  color: #fff;
}

.rt60-octave-table {
  margin-top: 12px;
  overflow-x: auto;
}

/* ---------------------
   Coverage Calculator specifics
   --------------------- */

.coverage-result__count {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-navy);
  line-height: 1.4;
  margin-bottom: 8px;
}

.coverage-result__cost {
  font-size: 14px;
  color: #555;
  margin-bottom: 16px;
}

@media (max-width: 767px) {
  .calc-form__row,
  .calc-form__row--selects {
    grid-template-columns: 1fr;
  }

  .calc-form {
    padding: 20px 16px;
  }

  .calc-result {
    padding: 18px 16px;
  }

  .calc-result__links {
    flex-direction: column;
  }

  .rt60-result__interpretation,
  .coverage-result__count {
    font-size: 16px;
  }
}

/* =============================================
   RT60 Multi-material surface rows
   ============================================= */

.calc-form__row--surfaces {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.calc-form__field--surface {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.calc-surface-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-navy, #1a2e44);
}

.calc-surface-rows {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.calc-surface-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.calc-surface-row .calc-surface-select {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  padding: 6px 8px;
  border: 1px solid #c8d0da;
  border-radius: 4px;
  background: #fff;
  color: var(--color-navy, #1a2e44);
}

.calc-proportion-wrap {
  display: none;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}

.calc-surface-rows.multi .calc-proportion-wrap {
  display: flex;
}

.calc-proportion-input {
  width: 52px;
  font-size: 13px;
  padding: 5px 6px;
  border: 1px solid #c8d0da;
  border-radius: 4px;
  text-align: right;
  color: var(--color-navy, #1a2e44);
}

.calc-proportion-unit {
  font-size: 13px;
  color: #6b7a8d;
}

.calc-remove-row {
  display: none;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid #c8d0da;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  color: #6b7a8d;
  flex-shrink: 0;
  padding: 0;
}

.calc-surface-rows.multi .calc-remove-row {
  display: flex;
}

.calc-remove-row:hover {
  border-color: #e05252;
  color: #e05252;
}

.calc-add-row {
  background: none;
  border: none;
  padding: 2px 0;
  font-size: 13px;
  color: var(--color-teal, #2a9d8f);
  cursor: pointer;
  text-align: left;
  font-weight: 500;
  align-self: flex-start;
}

.calc-add-row:hover {
  text-decoration: underline;
}

@media (max-width: 767px) {
  .calc-form__row--surfaces {
    grid-template-columns: 1fr;
  }
}

/* ---------------------
   Forms (contact, booking)
   --------------------- */

.enquiry-form-custom {
  max-width: 640px;
  margin: 0 0 32px;
}

.form__group {
  margin-bottom: 20px;
}

.form__group--submit {
  margin-top: 28px;
}

.form__label {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--color-body-text);
  margin-bottom: 6px;
}

.form__optional {
  font-weight: 400;
  color: var(--color-muted-text);
  font-size: 13px;
}

.form__input,
.form__select,
.form__textarea {
  display: block;
  width: 100%;
  padding: 10px 14px;
  font-family: var(--font-family);
  font-size: 15px;
  color: var(--color-body-text);
  background-color: var(--color-white);
  border: 1px solid #c8d0da;
  border-radius: var(--radius-sm);
  transition: border-color 0.15s ease;
  appearance: none;
  -webkit-appearance: none;
}

.form__input:focus,
.form__select:focus,
.form__textarea:focus {
  outline: none;
  border-color: var(--color-teal);
  box-shadow: 0 0 0 3px rgba(69, 123, 157, 0.18);
}

.form__input[aria-invalid="true"],
.form__select[aria-invalid="true"],
.form__textarea[aria-invalid="true"] {
  border-color: var(--color-red);
}

.form__input[aria-invalid="true"]:focus,
.form__select[aria-invalid="true"]:focus,
.form__textarea[aria-invalid="true"]:focus {
  box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.18);
}

.form__select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23457B9D' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}

.form__textarea {
  resize: vertical;
  min-height: 120px;
}

.form__error {
  display: block;
  margin-top: 5px;
  font-size: 13px;
  color: var(--color-red);
  min-height: 18px;
}

.form__error--submit {
  display: block;
  margin-top: 12px;
  font-size: 14px;
}

.form__submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

@media (max-width: 767px) {
  .enquiry-form-custom {
    max-width: 100%;
  }

  .form__input,
  .form__select,
  .form__textarea {
    font-size: 16px; /* prevent iOS zoom on focus */
  }
}

/* ---------------------
   Blog (listing, post)
   --------------------- */

/* --- Blog listing page --- */

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

.blog-listing__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.blog-card {
  display: flex;
  flex-direction: column;
  background: var(--color-white);
  border: 1px solid #e2e8ef;
  border-radius: var(--radius-sm);
  padding: 24px;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.blog-card:hover {
  box-shadow: var(--shadow);
  border-color: var(--color-teal);
}

.blog-card__category {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-teal);
  margin-bottom: 8px;
}

.blog-card__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-dark-navy);
  margin: 0 0 8px;
  line-height: 1.35;
}

.blog-card__date {
  font-size: 13px;
  color: var(--color-muted-text);
  margin-bottom: 12px;
}

.blog-card__excerpt {
  font-size: 15px;
  color: var(--color-body-text);
  line-height: 1.65;
  margin: 0 0 16px;
  flex: 1;
}

.blog-card__read-more {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-teal);
  margin-top: auto;
}

/* Pagination */

.blog-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid #e2e8ef;
}

.blog-pagination__link {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-teal);
  text-decoration: none;
}

.blog-pagination__link:hover {
  text-decoration: underline;
}

.blog-pagination__link--disabled {
  color: var(--color-muted-text);
  cursor: default;
  pointer-events: none;
}

.blog-pagination__info {
  font-size: 14px;
  color: var(--color-muted-text);
}

/* --- Blog post layout additions --- */

.post-header__category {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-light-teal);
  margin-bottom: 12px;
}

/* --- Related posts section --- */

.blog-related {
  background-color: var(--color-off-white);
  padding: var(--section-padding) 0;
}

.blog-related__heading {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-dark-navy);
  margin-bottom: 24px;
}

.blog-related__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.blog-related__card {
  display: flex;
  flex-direction: column;
  background: var(--color-white);
  border: 1px solid #e2e8ef;
  border-radius: var(--radius-sm);
  padding: 20px;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.15s ease;
}

.blog-related__card:hover {
  box-shadow: var(--shadow);
}

.blog-related__card-category {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-teal);
  margin-bottom: 6px;
}

.blog-related__card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-dark-navy);
  margin: 0 0 8px;
  line-height: 1.35;
  flex: 1;
}

.blog-related__card-date {
  font-size: 12px;
  color: var(--color-muted-text);
}

/* --- Homepage Latest Guides section (used by Plan 08-03) --- */

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

.latest-guides__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto auto;
  gap: 24px;
}

.latest-guides__featured {
  grid-column: 1;
  grid-row: 1 / 4;
  display: flex;
  flex-direction: column;
  background: var(--color-white);
  border: 1px solid #e2e8ef;
  border-radius: var(--radius-sm);
  padding: 32px;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.latest-guides__featured:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  border-color: var(--color-teal);
}

.latest-guides__featured-category {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-teal);
  margin-bottom: 10px;
}

.latest-guides__featured-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-dark-navy);
  margin: 0 0 12px;
  line-height: 1.3;
}

.latest-guides__featured-excerpt {
  font-size: 16px;
  color: var(--color-body-text);
  line-height: 1.65;
  margin: 0 0 16px;
  flex: 1;
}

.latest-guides__featured-meta {
  font-size: 13px;
  color: var(--color-muted-text);
  margin-bottom: 16px;
}

.latest-guides__featured-link {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-teal);
  margin-top: auto;
}

.latest-guides__card {
  grid-column: 2;
  display: flex;
  flex-direction: column;
  background: var(--color-white);
  border: 1px solid #e2e8ef;
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.latest-guides__card:hover {
  box-shadow: var(--shadow);
  border-color: var(--color-teal);
}

.latest-guides__card-category {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-teal);
  margin-bottom: 6px;
}

.latest-guides__card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-dark-navy);
  margin: 0 0 6px;
  line-height: 1.35;
  flex: 1;
}

.latest-guides__card-date {
  font-size: 12px;
  color: var(--color-muted-text);
  margin-top: auto;
}

.latest-guides__footer {
  margin-top: 28px;
  text-align: center;
}

/* --- Responsive — Blog --- */
@media (max-width: 900px) {
  .blog-listing__grid,
  .blog-related__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .blog-listing__grid,
  .blog-related__grid {
    grid-template-columns: 1fr;
  }

  .latest-guides__layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .latest-guides__featured {
    grid-column: 1;
    grid-row: auto;
  }

  .latest-guides__card {
    grid-column: 1;
  }
}

/* -------------------------
   Focus Styles (Accessibility)
   ------------------------- */
:focus-visible {
  outline: 3px solid var(--color-teal);
  outline-offset: 2px;
}

/* ----- Noise Overlay ----- */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* ----- Link Lift ----- */
a:not(.btn):not(.nav__link):not(.nav__mobile-link):not(.nav__logo) {
  transition: color 0.2s ease, transform 0.2s ease;
}

a:not(.btn):not(.nav__link):not(.nav__mobile-link):not(.nav__logo):hover {
  transform: translateY(-1px);
  text-decoration: none;
}

/* ----- Cinematic Buttons ----- */
.btn {
  position: relative;
  overflow: hidden;
  transition: background-color 0.2s, box-shadow 0.2s, transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.btn:hover {
  transform: scale(1.03);
}

.btn .btn-bg {
  position: absolute;
  inset: 0;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 0;
  pointer-events: none;
}

.btn:hover .btn-bg {
  transform: translateY(0);
}

.btn--primary .btn-bg {
  background-color: var(--color-red-hover);
}

.btn--secondary .btn-bg {
  background-color: var(--color-teal);
}

.btn--white .btn-bg {
  background-color: var(--color-off-white);
}

/* Override flat hover background-color — sliding .btn-bg handles the hover colour instead */
.btn--primary:hover {
  background-color: transparent;
}

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

.btn--white:hover {
  background-color: transparent;
}

/* Ensure text content inside .btn stays above the .btn-bg layer */
.btn > span:not(.btn-bg) {
  position: relative;
  z-index: 1;
}

/* ----- Before/After Reveal ----- */
.interactive-proof {
  padding: var(--section-padding) 0;
}

.interactive-proof__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

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

.ba-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-white);
  box-shadow: var(--shadow-lg);
}

.ba-card__header {
  padding: 24px 24px 0;
}

.ba-card__title {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-dark-navy);
  margin-bottom: 4px;
}

.ba-card__subtitle {
  font-size: 14px;
  color: var(--color-muted-text);
  margin-bottom: 16px;
}

.ba-container {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  cursor: col-resize;
  user-select: none;
  -webkit-user-select: none;
}

.ba-before,
.ba-after {
  position: absolute;
  inset: 0;
}

/* Placeholder gradients — Phase 12 replaces with real images */
.ba-before {
  background: linear-gradient(135deg, #1D3557 0%, #2d4a6e 100%);
}

.ba-after {
  background: linear-gradient(135deg, #457B9D 0%, #A8DADC 100%);
  clip-path: inset(0 0 0 50%);
}

.ba-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ba-img--before {
  /* Phase 12: populate src attribute */
}

.ba-img--after {
  /* Phase 12: populate src attribute */
}

.ba-label {
  position: absolute;
  bottom: 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-white);
  background: rgba(0, 0, 0, 0.5);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
}

.ba-label--before {
  left: 12px;
}

.ba-label--after {
  right: 12px;
}

.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  background: var(--color-white);
  transform: translateX(-50%);
  z-index: 2;
  cursor: col-resize;
}

.ba-handle::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-white);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* ----- Count-Up Stats ----- */
.stats-card {
  border-radius: var(--radius-md);
  background: var(--color-dark-navy);
  box-shadow: var(--shadow-lg);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.stats-card__title {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 8px;
}

.stats-card__subtitle {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 40px;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.stat-item {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 24px;
}

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

.stat-number {
  font-size: 56px;
  font-weight: 700;
  line-height: 1;
  color: var(--color-light-teal);
  letter-spacing: -0.02em;
}

.stat-suffix {
  font-size: 32px;
  font-weight: 700;
  color: var(--color-light-teal);
}

.stat-label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 6px;
}

.stat-icon {
  font-size: 28px;
  color: var(--color-light-teal);
  margin-bottom: 12px;
  display: block;
}

/* ----- Cinematic Testimonial Carousel ----- */
.testimonial-carousel--cinematic {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.tc-stage {
  position: relative;
  min-height: 260px;
}

.tc-slide {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  transition: opacity 0.6s ease;
  pointer-events: none;
}

.tc-slide--active {
  opacity: 1;
  position: relative;
  pointer-events: auto;
}

.tc-portrait {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--color-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: transform 0.15s ease;
}

.tc-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tc-portrait__initials {
  font-size: 28px;
  font-weight: 700;
  color: var(--color-white);
  line-height: 1;
}

.tc-stars {
  color: #f5a623;
  font-size: 18px;
  margin-bottom: 12px;
  letter-spacing: 0.1em;
}

.tc-quote {
  font-size: 18px;
  line-height: 1.6;
  color: var(--color-body-text);
  margin-bottom: 16px;
  font-style: italic;
}

.tc-name {
  font-weight: 700;
  color: var(--color-dark-navy);
  margin-bottom: 2px;
}

.tc-role {
  font-size: 14px;
  color: var(--color-muted-text);
}

.tc-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}

.tc-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(29, 53, 87, 0.25);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.3s ease, transform 0.2s ease;
}

.tc-dot--active {
  background: var(--color-teal);
  transform: scale(1.3);
}

@media (max-width: 640px) {
  .tc-slide {
    flex-direction: column;
    gap: 16px;
  }

  .tc-stage {
    min-height: 340px;
  }
}

/* ----- Philosophy / Manifesto ----- */
.philosophy-section {
  background: var(--color-dark-navy);
  padding: var(--section-padding) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.manifesto-texture {
  position: absolute;
  inset: -20% 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='t'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.4' numOctaves='4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23t)'/%3E%3C/svg%3E");
  opacity: 0.06;
  pointer-events: none;
  z-index: 0;
}

.philosophy-section .container {
  position: relative;
  z-index: 1;
}

.philosophy-section .section__title {
  color: var(--color-white);
}

.manifesto-text {
  max-width: 760px;
  margin: 0 auto;
}

.manifesto-statement {
  font-size: clamp(22px, 4vw, 36px);
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-white);
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.manifesto-statement:last-child {
  margin-bottom: 0;
  color: var(--color-light-teal);
}

.manifesto-word {
  display: inline-block;
}
