/* ==========================
   TECTONICS BRAND THEME
   ========================== */
:root {
  --gold: #d4af37;
  --gold-dark: #bfa233;
  --grey-light: #f2f2f2;
  --grey-mid: #404040;
  --grey-dark: #1f1f1f;
  --text: #2b2b2b;
  --white: #ffffff;
}

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

/* GLOBAL */
body {
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont,
    "Helvetica Neue", Arial, sans-serif;
  background: radial-gradient(
      circle at top left,
      rgba(212, 175, 55, 0.18),
      transparent 55%
    ),
    radial-gradient(
      circle at bottom right,
      rgba(64, 64, 64, 0.25),
      transparent 55%
    ),
    var(--grey-light);
  color: var(--text);
  line-height: 1.7;
}

/* Base layout wrapper for internal pages */
.page-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

/* Simple container for homepage sections */
section {
  position: relative;
}

/* ==========================
   HEADER & NAVIGATION
   ========================== */

header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(15, 15, 15, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.3);
  color: var(--white);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 1.25rem;
}

/* UPDATED: logo supports image + text */
.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}

.logo img {
  height: 40px; /* adjust as needed */
  width: auto;
  display: block;
  object-fit: contain;
}

.logo span {
  line-height: 1;
}

/* Mobile + Desktop hamburger (always visible) */
.hamburger {
  font-size: 1.6rem;
  cursor: pointer;
  display: block;
  z-index: 1100;
  color: var(--white);
}

/* Nav is hidden by default, toggled via JS */
nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: rgba(10, 10, 10, 0.98);
  width: 100%;
  z-index: 1050;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

nav.active {
  display: block;
}

nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem 1.25rem;
}

nav li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

nav li:last-child {
  border-bottom: none;
}

nav a {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  display: block;
  padding: 0.55rem 0;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: color 0.25s ease, border-color 0.25s ease;
}

nav a:hover,
nav a.active {
  color: var(--gold);
}

/* ==========================
   HERO (HOME PAGE)
   ========================== */

.full-hero {
  height: 80vh;
  min-height: 480px;
  /* LIGHTENED OVERLAY */
  background: linear-gradient(
      135deg,
      rgba(15, 15, 15, 0.45),
      rgba(64, 64, 64, 0.65)
    ),
    url("assets/hero/hero-banner-scaled.jpg") center/cover no-repeat;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.5rem;
  position: relative;
  overflow: hidden;
}

.full-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at top left,
    rgba(212, 175, 55, 0.28),
    transparent 55%
  );
  mix-blend-mode: screen;
  opacity: 0.8;
}

.hero-text {
  position: relative;
  z-index: 2;
  max-width: 640px;
  text-align: left;
  background: linear-gradient(
    135deg,
    rgba(22, 22, 22, 0.92),
    rgba(50, 50, 50, 0.9)
  );
  padding: 2.2rem 2.1rem;
  border-radius: 18px;
  border: 1px solid rgba(212, 175, 55, 0.4);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6);
}

.hero-text h1 {
  font-size: 2.4rem;
  line-height: 1.25;
  margin-bottom: 0.9rem;
}

.hero-text p {
  font-size: 1.03rem;
  max-width: 520px;
  margin-bottom: 1.4rem;
  color: #e4e4e4;
}

/* CTA button */
.cta-button {
  display: inline-block;
  margin-top: 0.4rem;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--grey-dark);
  padding: 0.85rem 1.9rem;
  text-decoration: none;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.3s ease;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.6);
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
}

/* ==========================
   GENERIC CONTENT SECTIONS
   ========================== */

.info-block {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.info-block + .info-block {
  margin-top: 0.5rem;
}

.info-block h2 {
  font-size: 1.6rem;
  margin-bottom: 0.9rem;
}

.info-block p {
  max-width: 780px;
}

/* Light grey panels */
.grey-bg {
  background: rgba(242, 242, 242, 0.96);
}

/* Centering helper */
.center-text {
  text-align: center;
}

/* Accent text */
.gold-text {
  color: var(--gold);
}

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

/* ==========================
   QUICK LINKS (HOME)
   ========================== */

.quick-links {
  padding: 3.5rem 1.5rem 3rem;
  text-align: center;
}

.quick-links h2 {
  font-size: 1.7rem;
}

.quick-links p {
  max-width: 560px;
  margin: 0.75rem auto 0;
}

.quick-grid {
  display: grid;
  gap: 1.6rem;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  margin-top: 2.2rem;
}

.quick-card {
  background: linear-gradient(135deg, #232323, #383838);
  color: var(--gold);
  padding: 1.6rem 1.4rem;
  border-radius: 16px;
  text-decoration: none;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.95rem;
  border: 1px solid rgba(212, 175, 55, 0.25);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.25);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease,
    color 0.25s ease;
}

.quick-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.4);
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--grey-dark);
}

/* ==========================
   CEO SECTION + TEAM
   ========================== */

.ceo-section {
  display: grid;
  grid-template-columns: minmax(0, 260px) minmax(0, 1.6fr);
  gap: 2.2rem;
  align-items: center;
  padding: 2.8rem 1.8rem;
  background: radial-gradient(
      circle at top right,
      rgba(212, 175, 55, 0.25),
      transparent 55%
    ),
    #f6f6f6;
  border-radius: 20px;
  margin-top: 1.5rem;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.12);
}

.ceo-img img {
  width: 100%;
  max-width: 260px;
  border-radius: 18px;
  border: 3px solid rgba(212, 175, 55, 0.55);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.22);
}

.ceo-text h2 {
  margin-bottom: 0.6rem;
}

.ceo-text p + p {
  margin-top: 0.9rem;
}

/* Team cards */
.team-grid {
  display: grid;
  gap: 1.8rem;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  margin-top: 2.2rem;
}

.team-card {
  background: #f8f8f8;
  padding: 1.3rem 1.1rem 1.5rem;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.team-card img {
  width: 100%;
  max-width: 260px;
  border-radius: 18px;
  border: 3px solid rgba(212, 175, 55, 0.55);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.22);
}

.team-card h3 {
  font-size: 1rem;
  margin-bottom: 0.2rem;
}

.team-card p {
  font-size: 0.9rem;
  color: #666;
}

.team-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.14);
  border-color: rgba(212, 175, 55, 0.5);
}

/* Stack CEO section on small screens */
@media (max-width: 768px) {
  .ceo-section {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .ceo-img {
    display: flex;
    justify-content: center;
  }

  .ceo-img img {
    max-width: 220px;
  }
}

/* ==========================
   SERVICES (HOME)
   ========================== */

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  margin-top: 2.2rem;
}

.service-card {
  background: #f7f7f7;
  padding: 1.6rem 1.4rem;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease,
    border-color 0.25s ease, background 0.25s ease;
}

.service-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.6rem;
}

.service-card p {
  font-size: 0.95rem;
  color: #555;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.12);
  border-color: rgba(212, 175, 55, 0.6);
  background: #ffffff;
}

/* ==========================
   PARTNERS GRID
   ========================== */

.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 2.1rem;
  align-items: center;
  justify-items: center;
  margin-top: 2.1rem;
}

.partners-grid img {
  max-height: 60px;
  filter: grayscale(100%);
  opacity: 0.8;
  transition: filter 0.25s ease, opacity 0.25s ease, transform 0.25s ease;
}

.partners-grid img:hover {
  filter: none;
  opacity: 1;
  transform: translateY(-3px);
}

/* WHY CHOOSE US – highlight cards */
.why-choose {
  text-align: center;
}

.why-grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.6rem;
}

.why-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 1.6rem 1.4rem;
  text-align: left;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.28);
  transition: transform 0.25s ease, box-shadow 0.25s ease,
    border-color 0.25s ease, background 0.25s ease;
}

.why-card h3 {
  font-size: 1rem;
  margin-bottom: 0.55rem;
}

.why-card p {
  font-size: 0.94rem;
  color: #555;
}

.why-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.16);
  border-color: rgba(212, 175, 55, 0.6);
  background: #fdfbf5;
}

/* PARTNERS BAND – subtle gold/grey wash */
.partners-section {
  background: radial-gradient(
      circle at top left,
      rgba(212, 175, 55, 0.14),
      transparent 55%
    ),
    #f8f8f8;
  border-radius: 0 0 24px 24px;
}

.partners-copy {
  max-width: 640px;
  margin: 0.75rem auto 0;
  font-size: 0.95rem;
  color: #555;
}

/* ==========================
   CTA STRIP (BOTTOM)
   ========================== */

.cta-strip {
  background: linear-gradient(135deg, #1a1a1a, #2f2f2f);
  color: var(--white);
  text-align: center;
  padding: 3rem 1.5rem 3.2rem;
  margin-top: 2.5rem;
  border-top: 1px solid rgba(212, 175, 55, 0.45);
}

.cta-strip h2 {
  font-size: 1.7rem;
  margin-bottom: 1rem;
}

/* ==========================
   CORE VALUES (ABOUT)
   ========================== */

.values-section ul {
  list-style: none;
  padding: 0;
  margin: 2rem auto 0;
  max-width: 720px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.1rem;
}

.values-list li {
  background: linear-gradient(135deg, #232323, #333);
  color: var(--gold);
  padding: 1.1rem 0.9rem;
  border-radius: 12px;
  text-align: center;
  font-size: 0.95rem;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
}

/* CERTIFICATIONS (ABOUT) */
.certs-section .cert-logos {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 1.2rem;
}

.cert-logos img {
  height: 60px;
  filter: grayscale(100%);
  opacity: 0.85;
  transition: filter 0.25s ease, opacity 0.25s ease, transform 0.25s ease;
}

.cert-logos img:hover {
  filter: none;
  opacity: 1;
  transform: translateY(-3px);
}

/* Mission / Vision two-column layout on About page */
.mission-vision-grid {
  display: grid;
  gap: 2rem;
}

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

/* ==========================
   PROJECTS PAGE
   ========================== */

.page-hero {
  padding: 3rem 1.5rem 2.5rem;
  border-radius: 0 0 28px 28px;
  background: linear-gradient(
    135deg,
    rgba(15, 15, 15, 0.98),
    rgba(64, 64, 64, 0.95)
  );
  color: var(--white);
  text-align: left;
  margin-bottom: 2.5rem;
}

.page-hero h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.page-hero p {
  max-width: 640px;
  color: #e2e2e2;
}

/* LIGHTENED page-specific hero images */

.page-hero.about-hero {
  background: linear-gradient(
      135deg,
      rgba(15, 15, 15, 0.55),
      rgba(64, 64, 64, 0.75)
    ),
    url("assets/hero/lab9.jpg") center/cover no-repeat;
}

.page-hero.activities-hero {
  background: linear-gradient(
      135deg,
      rgba(15, 15, 15, 0.55),
      rgba(64, 64, 64, 0.75)
    ),
    url("assets/hero/lab14.jpg") center/cover no-repeat;
}

.page-hero.projects-hero {
  background: linear-gradient(
      135deg,
      rgba(15, 15, 15, 0.55),
      rgba(64, 64, 64, 0.75)
    ),
    url("assets/hero/steel.webp") center/cover no-repeat;
}

.page-hero.contact-hero {
  background: linear-gradient(
      135deg,
      rgba(15, 15, 15, 0.55),
      rgba(64, 64, 64, 0.75)
    ),
    url("assets/hero/contact.jpg") center/cover no-repeat;
}
.page-hero.references-hero {
  background: linear-gradient(
      135deg,
      rgba(15, 15, 15, 0.55),
      rgba(64, 64, 64, 0.75)
    ),
    url("assets/hero/home.jpg") center/cover no-repeat;
}

page-hero.products-hero {
  background: linear-gradient(
      135deg,
      rgba(15, 15, 15, 0.55),
      rgba(64, 64, 64, 0.75)
    ),
    url("/assets/hero/lab1.jpg") center/cover no-repeat;
}

/* Project cards */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.8rem;
}

.project-card {
  background: #f7f7f7;
  padding: 1.6rem 1.3rem;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.04);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease,
    border-color 0.25s ease;
  cursor: default;
}

.project-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(212, 175, 55, 0),
    rgba(212, 175, 55, 0.15)
  );
  opacity: 0;
  transition: opacity 0.25s ease;
}

.project-card h3 {
  position: relative;
  z-index: 1;
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.project-card p {
  position: relative;
  z-index: 1;
  font-size: 0.93rem;
  color: #555;
}

.project-card span {
  position: relative;
  z-index: 1;
  display: inline-block;
  margin-top: 0.4rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold-dark);
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.16);
  border-color: rgba(212, 175, 55, 0.6);
}

.project-card:hover::before {
  opacity: 1;
}

/* ==========================
   CONTACT PAGE
   ========================== */

.contact-form {
  max-width: 720px;
  margin: 0 auto;
  background: #ffffff;
  padding: 2.2rem 2rem;
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.contact-form form {
  display: grid;
  gap: 1.1rem;
}

.contact-form label {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #555;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(64, 64, 64, 0.25);
  padding: 0.75rem 0.9rem;
  font: inherit;
  resize: vertical;
  transition: border-color 0.25s ease, box-shadow 0.25s ease,
    background 0.25s ease;
  background: #fafafa;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.25);
  background: #ffffff;
}

.contact-form button[type="submit"] {
  margin-top: 0.5rem;
  border: none;
  cursor: pointer;
  font: inherit;
  align-self: flex-start;
}

/* ==========================
   PRODUCTS PREVIEW (if used)
   ========================== */

.products-preview {
  padding: 3rem 1.5rem;
  background-color: var(--white);
  text-align: center;
}

.products-preview h2 {
  color: var(--grey-dark);
  margin-bottom: 1rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1.7rem;
  margin-top: 2rem;
}

.product-card {
  background: #f8f8f8;
  border: 1px solid rgba(0, 0, 0, 0.05);
  padding: 1.6rem 1.4rem;
  border-radius: 16px;
  transition: transform 0.25s ease, box-shadow 0.25s ease,
    border-color 0.25s ease, background 0.25s ease;
}

.product-card:hover {
  transform: translateY(-5px);
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--grey-dark);
  border-color: rgba(0, 0, 0, 0.12);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.18);
}

.products-count {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: #6b6b6b;
}

/* ==========================
   FOOTER
   ========================== */

footer {
  background: var(--grey-dark);
  color: var(--white);
  text-align: center;
  padding: 1.2rem 1rem;
  margin-top: 3rem;
  font-size: 0.85rem;
  border-top: 1px solid rgba(212, 175, 55, 0.3);
}

.site-footer {
  padding: 2rem 1.5rem;
  background: #111111;
  color: #f3f3f3;
  margin-top: 4rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-copy {
  margin: 0;
  font-size: 0.85rem;
  opacity: 0.8;
}

.footer-home-link {
  padding: 0.6rem 1.4rem;
  border-radius: 999px;
  background: #f3c14b; /* your gold */
  color: #111111;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.footer-home-link:hover {
  filter: brightness(0.95);
}
.site-footer {
  padding: 2rem 1.5rem;
  background: #111111;
  color: #f3f3f3;
  margin-top: 4rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-copy {
  margin: 0;
  font-size: 0.85rem;
  opacity: 0.8;
}

.footer-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.footer-home-link,
.footer-top-link {
  padding: 0.5rem 1.2rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  border: 1px solid transparent;
}

/* Back to top – light outline */
.footer-top-link {
  background: transparent;
  color: #f3f3f3;
  border-color: #f3c14b; /* gold */
}

/* Back to home – solid gold pill */
.footer-home-link {
  background: #f3c14b; /* gold */
  color: #111111;
}

.footer-home-link:hover,
.footer-top-link:hover {
  filter: brightness(0.95);
}

/* ==========================
   DESKTOP TWEAKS ONLY
   (keep hamburger everywhere)
   ========================== */

@media (min-width: 900px) {
  header {
    padding: 1rem 3.5rem;
  }
}

/* ==========================
   SECTION BACKGROUND BANDS
   ========================== */

/* Warm cream band – good for Explore Us / Why sections */
.band-cream {
  background: radial-gradient(
      circle at top left,
      rgba(212, 175, 55, 0.2),
      transparent 55%
    ),
    #fffaf1;
}

/* Slightly stronger gold wash for about/CEO */
.band-gold {
  background: radial-gradient(
      circle at top left,
      rgba(212, 175, 55, 0.24),
      transparent 60%
    ),
    #fff7e4;
  border-radius: 32px 32px 0 0;
  margin-top: 0;
}

.band-gold-soft {
  background: radial-gradient(
      circle at top right,
      rgba(212, 175, 55, 0.18),
      transparent 60%
    ),
    #fffdf7;
  border-radius: 0 0 32px 32px;
}

/* Cooler grey band for services */
.band-grey {
  background: linear-gradient(135deg, #f2f2f2 0%, #ffffff 45%, #f0f0f0 100%);
}

/* Partners strip that blends into the dark CTA */
.band-cream-bottom {
  background: radial-gradient(
      circle at bottom right,
      rgba(212, 175, 55, 0.2),
      transparent 55%
    ),
    #f9f7f3;
  border-radius: 32px 32px 0 0;
}

/* References page filter bar */
.section-filter {
  padding-top: 0.5rem;
  padding-bottom: 1.5rem;
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.filter-link {
  border: 1px solid var(--gold, #d4af37);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.9rem;
  text-decoration: none;
  color: #222;
  background: #fffaf3;
  transition: background 0.2s ease, color 0.2s ease, transform 0.1s ease;
}

.filter-link:hover {
  background: var(--gold, #d4af37);
  color: #ffffff;
  transform: translateY(-1px);
}

/* ---------- Laboratory gallery grid ---------- */

.lab-gallery-section {
  margin-top: 2rem;
}

.lab-gallery-grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.lab-thumb {
  margin: 0;
  border-radius: 0.75rem;
  overflow: hidden;
  background: #f3f3f3;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  cursor: zoom-in;
}

.lab-thumb img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease, filter 0.25s ease;
}

.lab-thumb:hover img {
  transform: scale(1.05);
  filter: brightness(1.05);
}

/* ---------- Lightbox overlay ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: none; /* hidden by default */
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 1.5rem;
}

.lightbox.open {
  display: flex;
}

.lightbox-image {
  max-width: 100%;
  max-height: 100%;
  border-radius: 1rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  font-size: 2rem;
  color: #ffffff;
  cursor: pointer;
  font-weight: 300;
}

/* Mobile tweaks */
@media (max-width: 768px) {
  .lab-thumb img {
    height: 160px;
  }
}

/* ---------- Technology Partners on Projects page ---------- */

.partners-section {
  margin-top: 2rem;
}

.partner-grid {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}

.partner-card {
  background: #ffffff;
  border-radius: 1rem;
  padding: 1.5rem 1.75rem;
  max-width: 260px;
  text-align: center;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
}

.partner-card img {
  max-width: 100%;
  max-height: 60px;
  object-fit: contain;
  margin-bottom: 1rem;
  filter: grayscale(100%);
  opacity: 0.9;
  transition: filter 0.25s ease, opacity 0.25s ease, transform 0.25s ease;
}

.partner-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.partner-card p {
  font-size: 0.9rem;
  line-height: 1.6;
}

.partner-card:hover img {
  filter: none;
  opacity: 1;
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .partner-card {
    max-width: 100%;
  }
}

/* Product filters */
.product-filters {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.product-filter {
  border: 1px solid var(--gold);
  background: #ffffff;
  color: #333;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.1s ease;
}

.product-filter:hover {
  transform: translateY(-1px);
}

.product-filter.active {
  background: var(--gold);
  color: #ffffff;
}

/* Families & groups */
.family-block {
  margin-bottom: 2rem;
}

.group-list {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.product-group {
  border-radius: 0.75rem;
  border: 1px solid #e0e0e0;
  background: #fafafa;
  padding: 0.75rem 1rem;
}

.product-group summary {
  cursor: pointer;
  list-style: none;
}

.product-group summary::-webkit-details-marker {
  display: none;
}

.product-group summary {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.group-summary {
  font-size: 0.9rem;
  color: #555;
}

.model-list {
  margin-top: 0.75rem;
  padding-left: 1.1rem;
}

.model-list li {
  margin-bottom: 0.3rem;
}

.model-code {
  font-size: 0.85rem;
  color: #777;
}

.model-specs {
  font-size: 0.9rem;
  color: #555;
}

/* Optional product group image */
.product-group-image {
  margin-top: 0.75rem;
}

.product-group-image img {
  max-width: 100%;
  border-radius: 0.75rem;
  display: block;
}

/* Products grid (cards with images/descriptions) */
.products-filters {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: flex-end;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 200px;
}

.filter-group label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gold-dark);
}

.filter-group select,
.filter-group input {
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  border: 1px solid #ddd;
  font-size: 0.95rem;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.product-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.product-image-wrapper {
  width: 100%;
  height: 170px;
  overflow: hidden;
  background: #f3f3f3;
}

.product-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-body {
  padding: 1rem 1.25rem 1.25rem;
}

.product-family {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #777;
  margin-bottom: 0.4rem;
}

.product-title {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.product-description {
  font-size: 0.9rem;
  line-height: 1.4;
}
