/* ============================================
   Holzbau Brouwer - Modern Website Styles
   Brand: #ff9500 (Orange), #233a64 (Dark Blue)
   Fonts: Work Sans (headings), Karla (body)
   ============================================ */

/* --- Font Face Declarations (Local Hosting) --- */
@font-face {
  font-family: 'Work Sans';
  src: url('../holzbau-brouwer.ch-assets/fonts/worksans-82c29be0.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Work Sans';
  src: url('../holzbau-brouwer.ch-assets/fonts/worksans-81c4a09f.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Work Sans';
  src: url('../holzbau-brouwer.ch-assets/fonts/worksans-ceb3b777.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Work Sans';
  src: url('../holzbau-brouwer.ch-assets/fonts/worksans-8a25ff54.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Karla';
  src: url('../holzbau-brouwer.ch-assets/fonts/karla-aba1459c.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Karla';
  src: url('../holzbau-brouwer.ch-assets/fonts/karla-bdccb9c0.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* --- CSS Custom Properties --- */
:root {
  --color-primary: #ff9500;
  --color-primary-dark: #e68600;
  --color-secondary: #233a64;
  --color-secondary-light: #2e4a7a;
  --color-text: #333;
  --color-text-light: #666c78;
  --color-bg: #fff;
  --color-bg-alt: #f8f9fa;
  --color-bg-dark: #233a64;
  --color-border: #ededed;
  --color-white: #fff;
  --color-black: #1a1a1a;
  --font-heading: 'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Karla', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-width: 1200px;
  --header-height: 80px;
  --radius: 8px;
  --radius-lg: 16px;
  --shadow: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --shadow-hover: 0 12px 40px rgba(0,0,0,0.16);
  --transition: 0.3s ease;
}

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

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

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

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

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-secondary);
}
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.6rem); }
h4 { font-size: 1.15rem; }

p { margin-bottom: 1rem; }

ul, ol { padding-left: 1.5rem; }

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

/* --- Section Spacing --- */
.section {
  padding: 5rem 0;
}
.section--alt {
  background: var(--color-bg-alt);
}
.section--dark {
  background: var(--color-bg-dark);
  color: var(--color-white);
}
.section--dark h2,
.section--dark h3 {
  color: var(--color-white);
}
.section__header {
  text-align: center;
  margin-bottom: 3rem;
}
.section__header p {
  color: var(--color-text-light);
  max-width: 640px;
  margin: 0.75rem auto 0;
  font-size: 1.1rem;
}
.section__label {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  padding: 0.875rem 2rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  line-height: 1.2;
}
.btn--primary {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}
.btn--primary:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(255,149,0,0.35);
}
.btn--secondary {
  background: var(--color-secondary);
  color: var(--color-white);
  border-color: var(--color-secondary);
}
.btn--secondary:hover {
  background: var(--color-secondary-light);
  border-color: var(--color-secondary-light);
  color: var(--color-white);
  transform: translateY(-2px);
}
.btn--outline {
  background: transparent;
  color: var(--color-white);
  border-color: var(--color-white);
}
.btn--outline:hover {
  background: var(--color-white);
  color: var(--color-secondary);
}
.btn--outline-dark {
  background: transparent;
  color: var(--color-secondary);
  border-color: var(--color-secondary);
}
.btn--outline-dark:hover {
  background: var(--color-secondary);
  color: var(--color-white);
}
.btn--sm {
  padding: 0.625rem 1.25rem;
  font-size: 0.9rem;
}
.btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* --- Header / Navigation --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
  height: var(--header-height);
  transition: box-shadow var(--transition);
}
.header.scrolled {
  box-shadow: var(--shadow);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.header__logo img {
  height: 48px;
  width: auto;
}
.header__nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.header__nav a {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-secondary);
  position: relative;
  padding: 0.25rem 0;
}
.header__nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width var(--transition);
}
.header__nav a:hover::after,
.header__nav a.active::after {
  width: 100%;
}
.header__nav a:hover {
  color: var(--color-primary);
}
.header__cta {
  margin-left: 1rem;
}

/* Mobile Menu Toggle */
.header__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.header__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-secondary);
  transition: all var(--transition);
}
.header__toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.header__toggle.active span:nth-child(2) {
  opacity: 0;
}
.header__toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  margin-top: var(--header-height);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(35,58,100,0.85) 0%, rgba(35,58,100,0.5) 100%);
  z-index: 1;
}
.hero__content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  color: var(--color-white);
}
.hero__content h1 {
  color: var(--color-white);
  font-size: clamp(2.2rem, 5.5vw, 3.6rem);
  margin-bottom: 1rem;
  line-height: 1.1;
}
.hero__content h1 span {
  color: var(--color-primary);
}
.hero__content p {
  font-size: 1.2rem;
  opacity: 0.9;
  margin-bottom: 2rem;
  max-width: 540px;
}
.hero__buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.hero__trust {
  margin-top: 2.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.2);
}
.hero__trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  opacity: 0.85;
}
.hero__trust-item svg {
  width: 20px;
  height: 20px;
  fill: var(--color-primary);
}

/* --- Sticky Mobile CTA Bar --- */
.mobile-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: var(--color-secondary);
  padding: 0;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
}
.mobile-cta__inner {
  display: flex;
  align-items: stretch;
}
.mobile-cta__btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 0.75rem 0.5rem;
  color: var(--color-white);
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  border: none;
  background: none;
  transition: background var(--transition);
}
.mobile-cta__btn:hover {
  background: rgba(255,255,255,0.1);
  color: var(--color-white);
}
.mobile-cta__btn--highlight {
  background: var(--color-primary);
}
.mobile-cta__btn--highlight:hover {
  background: var(--color-primary-dark);
}
.mobile-cta__btn svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

/* --- Service Tiles --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.service-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all var(--transition);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  color: inherit;
}
.service-card__image {
  aspect-ratio: 4/3;
  overflow: hidden;
}
.service-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.service-card:hover .service-card__image img {
  transform: scale(1.05);
}
.service-card__body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.service-card__body h3 {
  margin-bottom: 0.5rem;
  font-size: 1.15rem;
}
.service-card__body ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  flex: 1;
}
.service-card__body ul li {
  padding: 0.25rem 0;
  padding-left: 1.25rem;
  position: relative;
  font-size: 0.95rem;
  color: var(--color-text-light);
}
.service-card__body ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-primary);
}
.service-card__link {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: auto;
}
.service-card__link::after {
  content: '\2192';
  transition: transform var(--transition);
}
.service-card:hover .service-card__link::after {
  transform: translateX(4px);
}

/* --- Reference/Project Gallery --- */
.ref-filters {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 2rem;
}
.ref-filters button {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 1.25rem;
  border-radius: 100px;
  border: 2px solid var(--color-border);
  background: var(--color-white);
  color: var(--color-text);
  cursor: pointer;
  transition: all var(--transition);
}
.ref-filters button:hover,
.ref-filters button.active {
  border-color: var(--color-primary);
  background: var(--color-primary);
  color: var(--color-white);
}

.ref-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.ref-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  box-shadow: var(--shadow);
}
.ref-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.ref-card:hover img {
  transform: scale(1.08);
}
.ref-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(35,58,100,0.9) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity var(--transition);
}
.ref-card:hover .ref-card__overlay {
  opacity: 1;
}
.ref-card__overlay h3 {
  color: var(--color-white);
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}
.ref-card__overlay p {
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
  margin: 0;
}

/* --- Process Steps --- */
.process {
  display: flex;
  gap: 0;
  counter-reset: step;
}
.process__step {
  flex: 1;
  text-align: center;
  position: relative;
  padding: 0 1rem;
}
.process__step::before {
  counter-increment: step;
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  background: var(--color-primary);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  border-radius: 50%;
  position: relative;
  z-index: 2;
}
.process__step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(50% + 28px);
  width: calc(100% - 56px);
  height: 2px;
  background: var(--color-border);
  z-index: 1;
}
.process__step h4 {
  margin-bottom: 0.25rem;
  font-size: 1rem;
}
.process__step p {
  font-size: 0.85rem;
  color: var(--color-text-light);
  margin: 0;
}

/* --- Team Grid --- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
.team-card {
  text-align: center;
}
.team-card__photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 1rem;
  border: 4px solid var(--color-bg-alt);
  box-shadow: var(--shadow);
}
.team-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.team-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}
.team-card p {
  font-size: 0.9rem;
  color: var(--color-text-light);
  margin: 0;
}

/* --- Partner Logos --- */
.partner-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 3rem;
}
.partner-logos img {
  height: 50px;
  width: auto;
  opacity: 0.6;
  filter: grayscale(100%);
  transition: all var(--transition);
}
.partner-logos img:hover {
  opacity: 1;
  filter: grayscale(0%);
}

/* --- FAQ Accordion --- */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid var(--color-border);
}
.faq-item__question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 1.25rem 0;
  background: none;
  border: none;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-secondary);
  cursor: pointer;
  text-align: left;
}
.faq-item__question::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--color-primary);
  transition: transform var(--transition);
  flex-shrink: 0;
  margin-left: 1rem;
}
.faq-item.active .faq-item__question::after {
  transform: rotate(45deg);
}
.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}
.faq-item.active .faq-item__answer {
  max-height: 300px;
  padding-bottom: 1.25rem;
}
.faq-item__answer p {
  color: var(--color-text-light);
  line-height: 1.7;
}

/* --- Contact Form --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.contact-info__item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.contact-info__item svg {
  width: 24px;
  height: 24px;
  fill: var(--color-primary);
  flex-shrink: 0;
  margin-top: 0.15rem;
}
.contact-info__item h4 {
  margin-bottom: 0.25rem;
}
.contact-info__item p,
.contact-info__item a {
  color: var(--color-text-light);
  font-size: 0.95rem;
  margin: 0;
}
.contact-info__item a:hover {
  color: var(--color-primary);
}

.form-group {
  margin-bottom: 1.25rem;
}
.form-group label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  color: var(--color-secondary);
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--color-border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text);
  background: var(--color-white);
  transition: border-color var(--transition);
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}
.form-group textarea {
  min-height: 120px;
  resize: vertical;
}
.form-check {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 1.25rem;
}
.form-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 0.15rem;
  accent-color: var(--color-primary);
  flex-shrink: 0;
}
.form-check label {
  font-size: 0.85rem;
  color: var(--color-text-light);
  line-height: 1.5;
}
/* Honeypot */
.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  overflow: hidden;
}

/* --- Map Section --- */
.map-placeholder {
  width: 100%;
  height: 300px;
  border-radius: var(--radius-lg);
  background: var(--color-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed var(--color-border);
  margin-top: 1.5rem;
  cursor: pointer;
  transition: border-color var(--transition);
}
.map-placeholder:hover {
  border-color: var(--color-primary);
}
.map-placeholder p {
  color: var(--color-text-light);
  text-align: center;
  margin: 0;
}
.map-placeholder iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: var(--radius-lg);
}

/* --- Footer --- */
.footer {
  background: var(--color-secondary);
  color: rgba(255,255,255,0.8);
  padding: 4rem 0 0;
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
}
.footer h4 {
  color: var(--color-white);
  font-size: 1rem;
  margin-bottom: 1rem;
}
.footer p {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}
.footer__brand p {
  max-width: 300px;
}
.footer__links {
  list-style: none;
  padding: 0;
}
.footer__links li {
  margin-bottom: 0.5rem;
}
.footer__links a {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  transition: color var(--transition);
}
.footer__links a:hover {
  color: var(--color-primary);
}
.footer__social {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}
.footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: var(--color-white);
  transition: all var(--transition);
}
.footer__social a:hover {
  background: var(--color-primary);
}
.footer__social svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}
.footer__bottom a {
  color: rgba(255,255,255,0.6);
}
.footer__bottom a:hover {
  color: var(--color-primary);
}

/* --- CTA Banner --- */
.cta-banner {
  background: var(--color-primary);
  padding: 4rem 0;
  text-align: center;
}
.cta-banner h2 {
  color: var(--color-white);
  margin-bottom: 0.75rem;
}
.cta-banner p {
  color: rgba(255,255,255,0.9);
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto 2rem;
}

/* --- Page Hero (Subpages) --- */
.page-hero {
  background: var(--color-secondary);
  padding: 8rem 0 3rem;
  margin-top: var(--header-height);
  text-align: center;
}
.page-hero h1 {
  color: var(--color-white);
  margin-bottom: 0.5rem;
}
.page-hero p {
  color: rgba(255,255,255,0.7);
  font-size: 1.1rem;
}
.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}
.breadcrumb a {
  color: rgba(255,255,255,0.6);
}
.breadcrumb span {
  color: rgba(255,255,255,0.4);
}

/* --- Content Blocks (Leistungen Detail) --- */
.content-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding: 3rem 0;
}
.content-block:nth-child(even) {
  direction: rtl;
}
.content-block:nth-child(even) > * {
  direction: ltr;
}
.content-block__image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.content-block__image img {
  width: 100%;
  height: auto;
}
.content-block__text h2 {
  margin-bottom: 1rem;
}
.content-block__text ul {
  margin-bottom: 1.5rem;
  color: var(--color-text-light);
}
.content-block__text ul li {
  margin-bottom: 0.4rem;
}

/* --- Image Lightbox --- */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,0.9);
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.lightbox.active {
  display: flex;
}
.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius);
}
.lightbox__close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.1);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}
.lightbox__close:hover {
  background: rgba(255,255,255,0.25);
}

/* --- Cookie Banner --- */
.cookie-banner {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1500;
  background: var(--color-white);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
  padding: 1.5rem;
}
.cookie-banner.show {
  display: block;
}
.cookie-banner__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.cookie-banner p {
  flex: 1;
  font-size: 0.9rem;
  margin: 0;
  min-width: 250px;
}
.cookie-banner__buttons {
  display: flex;
  gap: 0.75rem;
}

/* --- Utility --- */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* --- Image Gallery Grid (Detail Pages) --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.gallery-grid__item {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
}
.gallery-grid__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-grid__item:hover img {
  transform: scale(1.05);
}

/* --- Stats Bar --- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
  padding: 3rem 0;
}
.stats__item h3 {
  font-size: 2.5rem;
  color: var(--color-primary);
  margin-bottom: 0.25rem;
}
.stats__item p {
  font-size: 0.95rem;
  color: var(--color-text-light);
  margin: 0;
}

/* ==============================
   RESPONSIVE DESIGN
   ============================== */

@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .team-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 64px;
  }

  .section {
    padding: 3.5rem 0;
  }

  /* Header Mobile */
  .header__toggle {
    display: flex;
  }
  .header__nav {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-white);
    flex-direction: column;
    padding: 2rem 1.5rem;
    gap: 0;
    overflow-y: auto;
  }
  .header__nav.open {
    display: flex;
  }
  .header__nav a {
    padding: 0.75rem 0;
    font-size: 1.1rem;
    border-bottom: 1px solid var(--color-border);
    width: 100%;
  }
  .header__cta {
    margin-left: 0;
    margin-top: 1rem;
    width: 100%;
  }
  .header__cta .btn {
    width: 100%;
    justify-content: center;
  }

  /* Hero */
  .hero {
    min-height: 80vh;
  }
  .hero__buttons {
    flex-direction: column;
  }
  .hero__buttons .btn {
    width: 100%;
    justify-content: center;
  }
  .hero__trust {
    flex-direction: column;
    align-items: flex-start;
  }

  /* Mobile CTA Bar */
  .mobile-cta {
    display: block;
  }
  body {
    padding-bottom: 72px;
  }

  /* Services */
  .services-grid {
    grid-template-columns: 1fr;
  }

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

  /* Process - vertical */
  .process {
    flex-direction: column;
    gap: 1.5rem;
  }
  .process__step {
    text-align: left;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 0;
  }
  .process__step::before {
    margin: 0;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    font-size: 1.1rem;
  }
  .process__step:not(:last-child)::after {
    display: none;
  }
  .process__step-text {
    flex: 1;
  }

  /* Team */
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  .team-card__photo {
    width: 120px;
    height: 120px;
  }

  /* Contact */
  .contact-grid {
    grid-template-columns: 1fr;
  }

  /* Content blocks */
  .content-block {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .content-block:nth-child(even) {
    direction: ltr;
  }

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

  /* Footer */
  .footer__grid {
    grid-template-columns: 1fr;
  }
  .footer__bottom {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }

  /* Stats */
  .stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 480px) {
  .ref-grid {
    grid-template-columns: 1fr;
  }
  .team-grid {
    grid-template-columns: 1fr;
  }
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }
  .partner-logos {
    gap: 2rem;
  }
  .partner-logos img {
    height: 36px;
  }
  .stats__item h3 {
    font-size: 2rem;
  }
}

/* --- Scroll Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
