/* ============================================================
   Pilkington Floors — Global Stylesheet
   Colour palette derived from logo (images/logo.png)
   Typography: Inter (Google Fonts)
   Mobile-first responsive design
   ============================================================ */

/* ----------------------------------------------------------
   Google Fonts Import
   ---------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ----------------------------------------------------------
   CSS Custom Properties
   ---------------------------------------------------------- */
:root {
  /* Primary colours — derived from logo */
  --color-primary: #192436;
  --color-primary-dark: #0f1620;
  --color-primary-light: #243550;

  /* Accent — a warmer complementary tone for CTAs */
  --color-accent: #c8a96e;
  --color-accent-dark: #b08d4a;
  --color-accent-light: #e0c992;

  /* Neutral palette */
  --color-text: #2d2d2d;
  --color-text-light: #6b6b6b;
  --color-text-inverse: #ffffff;
  --color-bg: #ffffff;
  --color-bg-alt: #f7f7f7;
  --color-bg-dark: #192436;
  --color-border: #e0e0e0;
  --color-border-light: #f0f0f0;

  /* Feedback colours */
  --color-success: #2e7d32;
  --color-error: #c62828;
  --color-error-light: #fce4e4;
  --color-warning: #f57c00;

  /* Typography */
  --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-size-base: 1rem;
  --font-size-sm: 0.875rem;
  --font-size-xs: 0.75rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --line-height-base: 1.6;
  --line-height-heading: 1.2;
  --font-weight-light: 300;
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-extrabold: 800;

  /* Spacing scale */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 2rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --space-3xl: 8rem;

  /* Component tokens */
  --radius: 8px;
  --radius-sm: 4px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 12px 40px rgba(0, 0, 0, 0.16);
  --transition: 0.3s ease;
  --transition-fast: 0.15s ease;
  --transition-slow: 0.5s ease;

  /* Layout */
  --container-max: 1200px;
  --container-wide: 1440px;
  --container-narrow: 800px;
  --header-height: 72px;
  --header-height-mobile: 72px;
}

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

html {
  font-size: 100%;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-base);
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

ul,
ol {
  list-style: none;
}

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

a:hover {
  color: var(--color-primary-light);
}

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

img,
picture,
video,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

fieldset {
  border: none;
}

/* Remove default details marker */
summary {
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}


/* ----------------------------------------------------------
   Skip Navigation Link
   ---------------------------------------------------------- */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-md);
  z-index: 10000;
  padding: var(--space-sm) var(--space-md);
  background: var(--color-primary);
  color: var(--color-text-inverse);
  font-weight: var(--font-weight-semibold);
  border-radius: 0 0 var(--radius) var(--radius);
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: 0;
  color: var(--color-text-inverse);
}

/* ----------------------------------------------------------
   Typography
   ---------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-heading);
  color: var(--color-primary);
  margin-bottom: var(--space-md);
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: var(--font-weight-extrabold);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: var(--font-weight-bold);
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: var(--font-weight-semibold);
}

h4 {
  font-size: clamp(1.1rem, 2.5vw, 1.375rem);
  font-weight: var(--font-weight-semibold);
}

h5 {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-medium);
}

h6 {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

p {
  margin-bottom: var(--space-md);
}

p:last-child {
  margin-bottom: 0;
}

strong {
  font-weight: var(--font-weight-semibold);
}

small {
  font-size: var(--font-size-sm);
}

/* ----------------------------------------------------------
   Layout / Container
   ---------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-md);
  padding-right: var(--space-md);
}

.container--wide {
  max-width: var(--container-wide);
}

.container--narrow {
  max-width: var(--container-narrow);
}

.section {
  padding-top: var(--space-xl);
  padding-bottom: var(--space-xl);
}

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

.section--dark {
  background-color: var(--color-bg-dark);
  color: var(--color-text-inverse);
}

.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: var(--color-text-inverse);
}

.section--dark .section-header p {
  color: rgba(255, 255, 255, 0.75);
}

.section--dark .faq-question {
  color: var(--color-text-inverse);
  border-color: rgba(255, 255, 255, 0.2);
}

.section--dark .faq-item {
  border-color: rgba(255, 255, 255, 0.2);
}

.section--dark .faq-answer p {
  color: rgba(255, 255, 255, 0.75);
}

.section--dark .btn--secondary {
  color: var(--color-text-inverse);
  border-color: var(--color-text-inverse);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: var(--space-xl);
}

.section-header p {
  color: var(--color-text-light);
  font-size: var(--font-size-lg);
}

/* ----------------------------------------------------------
   Buttons
   ---------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.75rem 1.75rem;
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  line-height: 1;
  text-align: center;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  min-height: 44px;
  min-width: 44px;
}

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

/* Primary CTA button */
.btn--primary {
  background-color: var(--color-accent);
  color: var(--color-primary);
  border-color: var(--color-accent);
}

.btn--primary:hover {
  background-color: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
  color: var(--color-primary);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn--primary:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

/* Secondary button */
.btn--secondary {
  background-color: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn--secondary:hover {
  background-color: var(--color-primary);
  color: var(--color-text-inverse);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn--secondary:active {
  transform: translateY(0);
}

/* White / inverse button (for dark backgrounds) */
.btn--white {
  background-color: var(--color-bg);
  color: var(--color-primary);
  border-color: var(--color-bg);
}

.btn--white:hover {
  background-color: transparent;
  color: var(--color-text-inverse);
  border-color: var(--color-text-inverse);
}

/* Small button */
.btn--sm {
  padding: 0.5rem 1.25rem;
  font-size: var(--font-size-sm);
}

/* Large button */
.btn--lg {
  padding: 1rem 2.25rem;
  font-size: var(--font-size-lg);
}


/* ----------------------------------------------------------
   Sticky Header
   ---------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: #192436;
  height: var(--header-height-mobile);
  transition: box-shadow var(--transition);
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.site-header__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.site-header__logo img {
  height: 60px;
  width: auto;
}

.site-header__logo-text {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: var(--font-weight-bold);
  color: var(--color-text-inverse);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.site-header__nav {
  display: none;
  position: fixed;
  top: var(--header-height-mobile);
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #192436;
  padding: var(--space-lg) var(--space-md);
  overflow-y: auto;
  z-index: 999;
}

.site-header__nav.menu-open {
  display: flex;
  flex-direction: column;
}

.site-header__nav-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.site-header__nav-link {
  display: block;
  padding: var(--space-sm) var(--space-md);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-inverse);
  border-radius: var(--radius);
  transition: background-color var(--transition), color var(--transition);
}

.site-header__nav-link:hover,
.site-header__nav-link.active {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--color-accent-light);
}

.site-header__cta {
  margin-top: var(--space-md);
}

/* Hamburger button */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-sm);
  z-index: 1001;
}

.hamburger__line {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-text-inverse);
  border-radius: 2px;
  transition: all var(--transition);
}

.hamburger.active .hamburger__line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.active .hamburger__line:nth-child(2) {
  opacity: 0;
}

.hamburger.active .hamburger__line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Desktop header CTA (hidden on mobile, shown in nav) */
.site-header__cta-desktop {
  display: none;
}

/* ----------------------------------------------------------
   Hero Section
   ---------------------------------------------------------- */
.hero {
  position: relative;
  display: flex;
  align-items: flex-start;
  padding-top: var(--space-lg);
  min-height: 60vh;
  padding-bottom: var(--space-xl);
  background-color: var(--color-primary);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(
    135deg,
    rgba(25, 36, 54, 0.88) 0%,
    rgba(25, 36, 54, 0.65) 100%
  );
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.hero__title {
  color: var(--color-text-inverse);
  margin-bottom: var(--space-md);
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
}

.hero__subtitle {
  color: rgba(255, 255, 255, 0.85);
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-lg);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  justify-content: center;
}

.hero__logo {
  width: 450px;
  height: auto;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: var(--space-md);
}

/* ----------------------------------------------------------
   Cards — Service Cards
   ---------------------------------------------------------- */
.card {
  background-color: var(--color-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card__image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.card__body {
  padding: var(--space-lg);
}

.card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background-color: var(--color-bg-alt);
  border-radius: var(--radius);
  margin-bottom: var(--space-md);
  font-size: 1.5rem;
  color: var(--color-primary);
}

.card__title {
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-sm);
}

.card__text {
  color: var(--color-text-light);
  font-size: var(--font-size-sm);
  margin-bottom: var(--space-md);
}

.card__tag {
  display: inline-block;
  padding: var(--space-xs) var(--space-sm);
  background-color: var(--color-bg-alt);
  color: var(--color-text-light);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-medium);
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ----------------------------------------------------------
   Cards — Testimonial Cards
   ---------------------------------------------------------- */
.testimonial-card {
  background-color: var(--color-bg);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border-light);
  transition: transform var(--transition), box-shadow var(--transition);
}

.testimonial-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.testimonial-card__stars {
  display: flex;
  gap: 2px;
  margin-bottom: var(--space-md);
  color: var(--color-accent);
  font-size: 1.25rem;
}

.testimonial-card__text {
  font-style: italic;
  color: var(--color-text);
  margin-bottom: var(--space-md);
  line-height: 1.7;
}

.testimonial-card__author {
  font-weight: var(--font-weight-semibold);
  color: var(--color-primary);
}

.testimonial-card__date {
  font-size: var(--font-size-xs);
  color: var(--color-text-light);
}

/* ----------------------------------------------------------
   Cards — Blog Cards
   ---------------------------------------------------------- */
.blog-card {
  background-color: var(--color-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.blog-card__image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.blog-card__body {
  padding: var(--space-lg);
}

.blog-card__date {
  font-size: var(--font-size-xs);
  color: var(--color-text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-sm);
}

.blog-card__title {
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-sm);
}

.blog-card__excerpt {
  color: var(--color-text-light);
  font-size: var(--font-size-sm);
  margin-bottom: var(--space-md);
}

.blog-card__link {
  font-weight: var(--font-weight-semibold);
  color: var(--color-accent-dark);
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
}

.blog-card__link:hover {
  color: var(--color-accent);
}


/* ----------------------------------------------------------
   Grid System — Gallery
   ---------------------------------------------------------- */
.grid {
  display: grid;
  gap: var(--space-md);
}

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

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

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

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: var(--space-md);
}

.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4 / 3;
  transition: opacity var(--transition), transform var(--transition);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

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

.gallery-item__overlay {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(to top, rgba(27, 36, 53, 0.8) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-md);
  opacity: 0;
  transition: opacity var(--transition);
}

.gallery-item:hover .gallery-item__overlay {
  opacity: 1;
}

.gallery-item__title {
  color: var(--color-text-inverse);
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-base);
  margin-bottom: var(--space-xs);
}

.gallery-item__category {
  color: var(--color-accent-light);
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Gallery filter animation */
.gallery-item.hidden {
  display: none;
}

.gallery-item.fade-out {
  opacity: 0;
  transform: scale(0.95);
}

.gallery-item.fade-in {
  opacity: 1;
  transform: scale(1);
}

/* Filter buttons */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
  justify-content: center;
}

.filter-btn {
  padding: var(--space-sm) var(--space-md);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-light);
  background-color: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition);
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

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

.filter-btn.active {
  background-color: var(--color-primary);
  color: var(--color-text-inverse);
  border-color: var(--color-primary);
}

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

/* ----------------------------------------------------------
   Forms
   ---------------------------------------------------------- */
.form-group {
  margin-bottom: var(--space-md);
}

.form-label {
  display: block;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-text);
  margin-bottom: var(--space-xs);
}

.form-input,
.form-select,
.form-textarea {
  display: block;
  width: 100%;
  padding: 0.75rem var(--space-md);
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  color: var(--color-text);
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  transition: border-color var(--transition), box-shadow var(--transition);
  min-height: 44px;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(27, 36, 53, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--color-text-light);
  opacity: 0.7;
}

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

.form-select {
  appearance: none;
  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='%236b6b6b' d='M1.41 0L6 4.58 10.59 0 12 1.41l-6 6-6-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

/* Error state */
.form-input.error,
.form-select.error,
.form-textarea.error {
  border-color: var(--color-error);
  box-shadow: 0 0 0 3px rgba(198, 40, 40, 0.1);
}

.form-error {
  display: block;
  font-size: var(--font-size-sm);
  color: var(--color-error);
  margin-top: var(--space-xs);
}

/* Success state */
.form-success {
  padding: var(--space-lg);
  background-color: #e8f5e9;
  border: 1px solid var(--color-success);
  border-radius: var(--radius);
  color: var(--color-success);
  text-align: center;
  font-weight: var(--font-weight-medium);
}

/* ----------------------------------------------------------
   Footer
   ---------------------------------------------------------- */
.site-footer {
  background-color: var(--color-primary);
  color: rgba(255, 255, 255, 0.8);
  padding: var(--space-xl) 0 var(--space-lg);
}

.site-footer h3,
.site-footer h4 {
  color: var(--color-text-inverse);
  margin-bottom: var(--space-md);
}

.site-footer a {
  color: rgba(255, 255, 255, 0.8);
  transition: color var(--transition);
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: var(--space-lg);
  text-align: center;
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.5);
}

.footer-social {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-md);
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background-color: rgba(255, 255, 255, 0.1);
  transition: background-color var(--transition);
}

.footer-social a:hover {
  background-color: var(--color-accent);
  color: var(--color-primary);
}

/* ----------------------------------------------------------
   Lightbox Overlay
   ---------------------------------------------------------- */
.lightbox {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.9);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox__image {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

.lightbox__close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--color-text-inverse);
  border: none;
  border-radius: var(--radius-full);
  font-size: 1.5rem;
  cursor: pointer;
  transition: background-color var(--transition);
}

.lightbox__close:hover {
  background-color: rgba(255, 255, 255, 0.25);
}

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

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--color-text-inverse);
  border: none;
  border-radius: var(--radius-full);
  font-size: 1.25rem;
  cursor: pointer;
  transition: background-color var(--transition);
}

.lightbox__nav:hover {
  background-color: rgba(255, 255, 255, 0.25);
}

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

.lightbox__nav--prev {
  left: var(--space-md);
}

.lightbox__nav--next {
  right: var(--space-md);
}

.lightbox__caption {
  position: absolute;
  bottom: var(--space-lg);
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.8);
  font-size: var(--font-size-sm);
  text-align: center;
  max-width: 80%;
}


/* ----------------------------------------------------------
   Before / After Slider
   ---------------------------------------------------------- */
.before-after-slider {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  cursor: ew-resize;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}

.before-after-slider .before-img {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  clip-path: inset(0 50% 0 0);
  z-index: 2;
}

.before-after-slider .after-img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.slider-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  background-color: var(--color-text-inverse);
  z-index: 3;
  transform: translateX(-50%);
  pointer-events: none;
}

.slider-handle::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  background-color: var(--color-text-inverse);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-md);
  pointer-events: auto;
  cursor: ew-resize;
}

.label-before,
.label-after {
  position: absolute;
  top: var(--space-md);
  z-index: 4;
  padding: var(--space-xs) var(--space-sm);
  background-color: rgba(0, 0, 0, 0.6);
  color: var(--color-text-inverse);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius-sm);
}

.label-before {
  left: var(--space-md);
}

.label-after {
  right: var(--space-md);
}

/* ----------------------------------------------------------
   FAQ Accordion
   ---------------------------------------------------------- */
.faq-list {
  max-width: var(--container-narrow);
  margin-left: auto;
  margin-right: auto;
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
}

.faq-item:first-child {
  border-top: 1px solid var(--color-border);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: var(--space-md) 0;
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-medium);
  color: var(--color-text);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  gap: var(--space-md);
  min-height: 44px;
  transition: color var(--transition);
}

.faq-question:hover {
  color: var(--color-primary);
}

.faq-question:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

.faq-question__icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition);
}

.faq-question[aria-expanded="true"] .faq-question__icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition), padding var(--transition);
}

.faq-answer.open {
  max-height: 500px;
  padding-bottom: var(--space-md);
}

.faq-answer p {
  color: var(--color-text-light);
  line-height: 1.7;
}

/* ----------------------------------------------------------
   Scroll Animations — CSS-only, no JS dependency
   ---------------------------------------------------------- */
@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

[data-animate] {
  animation: fadeSlideUp 0.6s ease both;
}

[data-animate-stagger] > *:nth-child(1) { animation: fadeSlideUp 0.5s ease 0.1s both; }
[data-animate-stagger] > *:nth-child(2) { animation: fadeSlideUp 0.5s ease 0.2s both; }
[data-animate-stagger] > *:nth-child(3) { animation: fadeSlideUp 0.5s ease 0.3s both; }
[data-animate-stagger] > *:nth-child(4) { animation: fadeSlideUp 0.5s ease 0.4s both; }
[data-animate-stagger] > *:nth-child(5) { animation: fadeSlideUp 0.5s ease 0.5s both; }
[data-animate-stagger] > *:nth-child(6) { animation: fadeSlideUp 0.5s ease 0.6s both; }

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  [data-animate] {
    opacity: 1;
    transform: none;
  }

  [data-animate-stagger] > * {
    opacity: 1;
    transform: none;
  }
}

/* Touch device hover guard — prevent sticky hover states */
@media (hover: none) {
  .card:hover,
  .testimonial-card:hover,
  .blog-card:hover {
    transform: none;
    box-shadow: var(--shadow-sm);
  }

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

  .gallery-item:hover .gallery-item__overlay {
    opacity: 0;
  }
}

/* ----------------------------------------------------------
   Mobile Menu Overlay
   ---------------------------------------------------------- */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Body scroll lock when menu is open */
body.menu-open {
  overflow: hidden;
}

/* ----------------------------------------------------------
   Trust Indicators / Stats
   ---------------------------------------------------------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
  text-align: center;
}

.stat-item {
  padding: var(--space-lg);
}

.stat-number {
  display: block;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: var(--font-weight-extrabold);
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: var(--space-sm);
}

.stat-label {
  font-size: var(--font-size-sm);
  color: var(--color-text-light);
  font-weight: var(--font-weight-medium);
}

/* ----------------------------------------------------------
   Embedded Map
   ---------------------------------------------------------- */
.map-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.map-container iframe {
  display: block;
  width: 100%;
  height: 300px;
  border: none;
}

/* ----------------------------------------------------------
   Utility Classes
   ---------------------------------------------------------- */

/* Text alignment */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* Text colours */
.text-primary { color: var(--color-primary); }
.text-light { color: var(--color-text-light); }
.text-inverse { color: var(--color-text-inverse); }
.text-accent { color: var(--color-accent); }

/* Font weights */
.font-medium { font-weight: var(--font-weight-medium); }
.font-semibold { font-weight: var(--font-weight-semibold); }
.font-bold { font-weight: var(--font-weight-bold); }

/* Spacing utilities */
.mt-0 { margin-top: 0; }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }

.mb-0 { margin-bottom: 0; }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

.pt-0 { padding-top: 0; }
.pt-lg { padding-top: var(--space-lg); }
.pt-xl { padding-top: var(--space-xl); }

.pb-0 { padding-bottom: 0; }
.pb-lg { padding-bottom: var(--space-lg); }
.pb-xl { padding-bottom: var(--space-xl); }

/* Display */
.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-grid { display: grid; }

/* Flex utilities */
.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.flex-wrap { flex-wrap: wrap; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }

/* Visibility */
.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;
}

.visible-mobile { display: block; }
.visible-desktop { display: none; }

/* Width */
.w-full { width: 100%; }
.max-w-narrow { max-width: var(--container-narrow); }

/* Misc */
.rounded { border-radius: var(--radius); }
.shadow { box-shadow: var(--shadow-md); }
.overflow-hidden { overflow: hidden; }
.relative { position: relative; }


/* ----------------------------------------------------------
   Hero Compact Variant (inner pages)
   ---------------------------------------------------------- */
.hero--compact {
  min-height: 30vh;
  padding: var(--space-xl) 0;
}

/* ----------------------------------------------------------
   Responsive Safety — prevent horizontal overflow
   ---------------------------------------------------------- */
.container,
.section,
main,
.site-footer {
  overflow-wrap: break-word;
  word-wrap: break-word;
}

/* Ensure images and embeds never exceed container */
img,
video,
iframe,
embed,
object {
  max-width: 100%;
}

/* Prevent tables from causing horizontal scroll */
table {
  max-width: 100%;
  overflow-x: auto;
  display: block;
}

/* ----------------------------------------------------------
   Responsive Breakpoints
   ---------------------------------------------------------- */

/* Small screens — 320px to 480px */
@media (max-width: 480px) {
  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .btn {
    width: 100%;
  }

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

  .filter-bar {
    gap: var(--space-xs);
  }

  .filter-btn {
    padding: var(--space-sm) var(--space-sm);
    font-size: var(--font-size-xs);
  }

  .hero--compact {
    min-height: 20vh;
  }
}

/* Tablet — 768px */
@media (min-width: 768px) {
  :root {
    --header-height: 80px;
  }

  .site-header {
    height: var(--header-height);
  }

  /* Header — show nav, hide hamburger */
  .hamburger {
    display: none;
  }

  .site-header__nav {
    display: flex;
    position: static;
    background: none;
    padding: 0;
    overflow: visible;
    align-items: center;
    gap: var(--space-md);
  }

  .site-header__nav-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: var(--space-sm);
    justify-content: center;
  }

  .site-header__nav-link {
    font-size: var(--font-size-sm);
    padding: var(--space-sm) var(--space-md);
  }

  .site-header__cta {
    margin-top: 0;
  }

  .site-header__cta-desktop {
    display: inline-flex;
  }

  .site-header__logo img {
    height: 68px;
  }

  /* Mobile menu overlay not needed */
  .mobile-menu-overlay {
    display: none;
  }

  /* Hero */
  .hero {
    min-height: 70vh;
    padding: var(--space-2xl) 0;
  }

  .hero--compact {
    min-height: 35vh;
  }

  .hero__subtitle {
    font-size: var(--font-size-xl);
  }

  .hero__logo {
    width: 550px;
  }

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

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

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

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

  /* Stats */
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Section spacing */
  .section {
    padding-top: var(--space-2xl);
    padding-bottom: var(--space-2xl);
  }

  /* Container padding */
  .container {
    padding-left: var(--space-lg);
    padding-right: var(--space-lg);
  }

  /* Map */
  .map-container iframe {
    height: 400px;
  }

  /* Visibility */
  .visible-mobile { display: none; }
  .visible-desktop { display: block; }
}

/* Desktop — 1024px */
@media (min-width: 1024px) {
  /* Grids */
  .grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }

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

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

  /* Footer */
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  /* Hero */
  .hero {
    min-height: 80vh;
  }

  /* Lightbox nav spacing */
  .lightbox__nav--prev {
    left: var(--space-lg);
  }

  .lightbox__nav--next {
    right: var(--space-lg);
  }
}

/* Wide Desktop — 1440px */
@media (min-width: 1440px) {
  .grid--4 {
    grid-template-columns: repeat(4, 1fr);
  }

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

  /* Larger section spacing */
  .section {
    padding-top: var(--space-3xl);
    padding-bottom: var(--space-3xl);
  }

  .container {
    padding-left: var(--space-xl);
    padding-right: var(--space-xl);
  }
}

/* ----------------------------------------------------------
   Print Styles
   ---------------------------------------------------------- */
@media print {
  .site-header,
  .site-footer,
  .lightbox,
  .hamburger,
  .btn,
  .filter-bar,
  .before-after-slider .slider-handle {
    display: none !important;
  }

  body {
    color: #000;
    background: #fff;
  }

  a {
    color: #000;
    text-decoration: underline;
  }

  .hero {
    min-height: auto;
    padding: var(--space-lg) 0;
  }

  .hero::before {
    display: none;
  }

  .hero__title,
  .hero__subtitle {
    color: #000;
  }
}
