/* Palm Developers — one-page company site */
:root {
  --red: #e30613;
  --red-dark: #b8050f;
  --green: #4c8c2b;
  --green-bright: #6db33f;
  --black: #0a0a0a;
  --ink: #141414;
  --muted: #5c5c5c;
  --line: #e8e8e8;
  --surface: #f7f7f5;
  --white: #ffffff;
  --font: "Quicksand", system-ui, -apple-system, sans-serif;
  --display: "Outfit", "Quicksand", sans-serif;
  --max: 1140px;
  --logo-h: clamp(42px, 6.5vw + 0.35rem, 55px);
  --header-h: calc(var(--logo-h) + 1.25rem);
  --page-gutter: 1.5rem;
  --section-y: 4.5rem;
  --hero-y: 4.5rem;
  --radius: 10px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }

h1, h2, h3 {
  font-family: var(--display);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
}

.container { width: min(100% - (var(--page-gutter) * 2), var(--max)); margin-inline: auto; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  padding: 0.75rem 1rem; background: var(--red); color: #fff; font-weight: 600;
}
.skip-link:focus { left: 1rem; top: 1rem; }

.eyebrow {
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 170;
  background: rgba(10, 10, 10, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: box-shadow 0.2s;
}
.site-header.is-scrolled { box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: var(--header-h);
  padding-block: 0.55rem;
  flex-wrap: nowrap;
}

.brand {
  flex: 1 1 auto;
  min-width: 0;
  max-width: min(72vw, 440px);
  padding-block: 0.15rem;
}
.brand-logo {
  display: block;
  width: auto;
  height: var(--logo-h);
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
}

.nav-toggle {
  display: none;
  position: relative;
  z-index: 170;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: #fff;
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}
.nav a {
  color: #d0d0d0;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.2rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.nav a:hover,
.nav a.is-active { color: #fff; border-color: var(--green-bright); }

.nav-cta {
  margin-left: 0.25rem;
  padding: 0.55rem 1rem !important;
  border: 0 !important;
  border-radius: 8px;
  background: var(--red);
  color: #fff !important;
}
.nav-cta:hover { background: var(--red-dark); }

.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 140;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.nav-backdrop.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.nav-mobile {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 160;
  width: min(88vw, 340px);
  display: flex;
  flex-direction: column;
  background: #0f0f0f;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: -16px 0 48px rgba(0, 0, 0, 0.35);
  transform: translateX(100%);
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.28s ease, visibility 0.28s ease;
}
.nav-mobile.is-open {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}
.nav-mobile-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.nav-mobile-title {
  margin: 0;
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
}
.nav-mobile-close {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.nav-mobile-close:hover { background: rgba(255, 255, 255, 0.14); }
.nav-mobile-body {
  flex: 1;
  overflow-y: auto;
  padding: 0.5rem 1.25rem 1rem;
  display: flex;
  flex-direction: column;
}
.nav-mobile-body > a {
  color: #eee;
  padding: 0.95rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 1.05rem;
  font-weight: 600;
}
.nav-mobile-body > a:hover,
.nav-mobile-body > a.is-active { color: #fff; }
.nav-mobile-foot {
  display: grid;
  gap: 0.65rem;
  padding: 1rem 1.25rem 1.35rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.nav-mobile-foot .btn-outline {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}
body.nav-open { overflow: hidden; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  padding: 0.85rem 1.35rem;
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); }
.btn-outline {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
}
.btn-outline:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); }
.btn-outline-dark {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line);
}
.btn-outline-dark:hover { border-color: #bbb; }
.btn-block { width: 100%; }

/* Hero */
.hero {
  position: relative;
  min-height: min(78vh, 680px);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  color: #fff;
  overflow: hidden;
  padding: var(--hero-y) 0 5rem;
  background:
    linear-gradient(105deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.55) 48%, rgba(0, 0, 0, 0.28) 100%),
    var(--hero-image) center / cover no-repeat;
}
.hero-inner {
  position: relative;
  z-index: 2;
  padding: 0;
}
.hero-copy {
  max-width: 720px;
}
.hero-brand {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.6rem, 7.5vw, 4.5rem);
  letter-spacing: -0.04em;
  color: var(--red);
  margin: 0 0 0.35rem;
  text-transform: uppercase;
  line-height: 0.95;
}
.hero-brand span {
  display: block;
  font-size: 0.3em;
  letter-spacing: 0.18em;
  color: var(--green-bright);
  font-weight: 600;
  margin-top: 0.35rem;
}
.hero h1 {
  font-size: clamp(1.75rem, 4.2vw, 2.55rem);
  font-weight: 600;
  color: #fff;
  margin: 1rem 0 0.85rem;
  max-width: 18ch;
  line-height: 1.15;
}
.hero-lead {
  margin: 0;
  color: #e2e2e2;
  font-size: clamp(1.1rem, 2.2vw, 1.3rem);
  max-width: 40ch;
  line-height: 1.5;
}

/* Stats */
.stats-bar {
  background: var(--black);
  color: #fff;
  padding: 2rem 0;
  border-bottom: 3px solid var(--green-bright);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
}
.stat strong {
  display: block;
  font-family: var(--display);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 800;
  color: var(--green-bright);
  line-height: 1.1;
  margin-bottom: 0.25rem;
}
.stat span {
  font-size: 0.88rem;
  color: #aaa;
}

/* Sections */
.section { padding: var(--section-y) 0; }
.section-alt { background: var(--surface); }

.section-head { margin-bottom: 2rem; max-width: 52ch; }
.section-head-center { margin-inline: auto; text-align: center; max-width: 56ch; }
.section-head h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 0.5rem; }
.section-head p,
.section-intro { margin: 0; color: var(--muted); }

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}
.about-copy p { color: var(--muted); margin: 0 0 1rem; }
.about-copy h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 0.75rem; }

.check-list { margin: 1.25rem 0 0; padding: 0; }
.check-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.55rem;
  color: var(--ink);
  font-weight: 500;
  font-size: 0.95rem;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green-bright);
}

.about-visual {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
}
.about-visual img {
  width: 100%;
  aspect-ratio: 5 / 6;
  object-fit: cover;
}
.about-badge {
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
  background: rgba(10, 10, 10, 0.88);
  color: #fff;
  padding: 0.85rem 1.1rem;
  border-radius: 8px;
  border-left: 3px solid var(--green-bright);
}
.about-badge span {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #aaa;
  margin-bottom: 0.15rem;
}
.about-badge strong { font-size: 1.1rem; }

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.service-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.service-card:hover {
  border-color: #d0d0d0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}
.service-num {
  display: block;
  font-family: var(--display);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 0.65rem;
}
.service-card h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.service-card p { margin: 0; color: var(--muted); font-size: 0.93rem; }

/* Values */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.value-card {
  padding: 1.75rem 1.5rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  border-top: 3px solid var(--green-bright);
}
.value-card h3 { font-size: 1.1rem; margin-bottom: 0.45rem; }
.value-card p { margin: 0; color: var(--muted); font-size: 0.93rem; }

/* Projects */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.project-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
  height: 100%;
}
.project-card:hover { box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08); }
.project-card-open {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.project-card-open:focus-visible {
  outline: 2px solid var(--green-bright);
  outline-offset: 2px;
}
.project-card-media {
  position: relative;
  overflow: hidden;
  flex: 0 0 auto;
}
.project-card-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}
.project-card-photo-count {
  position: absolute;
  right: 0.65rem;
  bottom: 0.65rem;
  z-index: 1;
  margin: 0;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  background: rgba(10, 10, 10, 0.72);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
}
.project-card-open:hover .project-card-media img,
.project-card-open:focus-visible .project-card-media img {
  transform: scale(1.03);
}
.project-card-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 1.25rem 1.35rem 1.5rem;
}
.project-meta {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green);
}
.project-card-body h3 { font-size: 1.1rem; margin-bottom: 0.4rem; }
.project-card-desc {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
}
.project-card-cta {
  display: inline-block;
  margin-top: auto;
  padding-top: 0.85rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--red);
}

/* Project detail modal */
.project-modal {
  position: fixed;
  inset: 0;
  z-index: 210;
  display: grid;
  place-items: center;
  padding: 1.5rem;
}
.project-modal.is-hidden { display: none; }
.project-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 8, 8, 0.78);
}
.project-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 1120px);
  max-height: min(94vh, 920px);
  overflow: hidden;
  background: #fff;
  border-radius: calc(var(--radius) + 4px);
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.32);
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
}
.project-modal-close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  z-index: 3;
  width: 2.55rem;
  height: 2.55rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
  font-size: 1.55rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.16);
}
.project-modal-close:hover { color: var(--red); }
.project-modal-media {
  position: relative;
  background: #ececec;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.project-modal-media img#project-modal-image {
  width: 100%;
  height: 100%;
  min-height: 360px;
  max-height: none;
  object-fit: cover;
  display: block;
  flex: 1 1 auto;
}
.project-modal-nav {
  position: absolute;
  top: 42%;
  transform: translateY(-50%);
  z-index: 2;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.16);
  padding: 0;
}
.project-modal-prev { left: 0.75rem; }
.project-modal-next { right: 0.75rem; }
.project-modal-nav:hover { color: var(--red); }
.project-modal-count {
  position: absolute;
  left: 50%;
  top: 0.85rem;
  transform: translateX(-50%);
  z-index: 2;
  margin: 0;
  padding: 0.32rem 0.7rem;
  border-radius: 999px;
  background: rgba(20, 20, 20, 0.72);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
}
.project-modal-thumbs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1rem;
  background: #f6f6f6;
  border-top: 1px solid var(--line);
}
.project-modal-thumb {
  flex: 0 0 auto;
  width: 72px;
  aspect-ratio: 16 / 10;
  height: auto;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  background: #ddd;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.project-modal-thumb:hover {
  border-color: #bbb;
  transform: translateY(-1px);
}
.project-modal-thumb.is-active {
  border-color: var(--red);
  box-shadow: 0 0 0 1px var(--red);
  transform: translateY(-1px);
}
.project-modal-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.project-modal-body {
  padding: 2.15rem 2rem 1.85rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 0;
  overflow: auto;
}
.project-modal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0;
}
.project-modal-chip {
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.2;
  background: #f1f4ef;
  color: var(--green);
}
.project-modal-chip--location {
  background: #f1f4ef;
  color: var(--green);
}
.project-modal-chip--category {
  background: #f4f4f4;
  color: var(--ink);
}
.project-modal-chip--status {
  background: #fdeaea;
  color: var(--red);
}
.project-modal-body h2 {
  margin: 0;
  font-size: clamp(1.7rem, 2.8vw, 2.2rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  max-width: 18ch;
}
.project-modal-summary {
  margin: 0;
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.55;
}
.project-modal-details-block {
  display: grid;
  gap: 0.55rem;
  padding-top: 0.35rem;
  border-top: 1px solid var(--line);
}
.project-modal-details-label {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.project-modal-details {
  display: grid;
  gap: 0.85rem;
}
.project-modal-details p {
  margin: 0;
  color: #555;
  font-size: 1.02rem;
  line-height: 1.65;
}
.project-modal-cta {
  margin-top: auto;
  align-self: flex-start;
  padding: 0.95rem 1.45rem;
  font-size: 1rem;
}
body.project-modal-open { overflow: hidden; }
@media (max-width: 900px) {
  .project-modal {
    padding: 0.75rem;
  }
  .project-modal-dialog {
    grid-template-columns: 1fr;
    max-height: 94vh;
    overflow: auto;
  }
  .project-modal-media img#project-modal-image {
    min-height: 240px;
    max-height: 38vh;
    flex: 0 0 auto;
  }
  .project-modal-thumbs {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    padding: 0.7rem 0.85rem;
  }
  .project-modal-thumb {
    width: 64px;
  }
  .project-modal-body {
    padding: 1.5rem 1.25rem 1.35rem;
    gap: 0.85rem;
  }
  .project-modal-body h2 {
    max-width: none;
    font-size: clamp(1.45rem, 6vw, 1.85rem);
  }
}

/* Gallery */
.gallery-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  max-width: none;
}
.gallery-count {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--green);
}

.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}
.gallery-filter {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  border-radius: 999px;
  padding: 0.45rem 1rem;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}
.gallery-filter:hover { color: var(--ink); border-color: #ccc; }
.gallery-filter.is-active {
  background: var(--black);
  border-color: var(--black);
  color: #fff;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
}
.gallery-item { margin: 0; min-height: 0; }
.gallery-item.is-hidden { display: none; }

.gallery-open {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: zoom-in;
  background: var(--black);
  aspect-ratio: 4 / 3;
}
.gallery-open img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.gallery-item-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.3rem;
  padding: 1rem;
  background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, 0.8) 100%);
  color: #fff;
  opacity: 0;
  transition: opacity 0.25s;
}
.gallery-open:hover img,
.gallery-open:focus-visible img { transform: scale(1.04); }
.gallery-open:hover .gallery-item-overlay,
.gallery-open:focus-visible .gallery-item-overlay { opacity: 1; }
.gallery-item-tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green-bright);
}
.gallery-item-caption { font-size: 0.88rem; font-weight: 600; text-align: left; }

.gallery-empty {
  margin: 1rem 0 0;
  text-align: center;
  color: var(--muted);
}
.is-hidden { display: none !important; }

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.92);
}
.gallery-lightbox:not(.is-hidden) { display: grid; }
.gallery-lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}
.gallery-lightbox-figure { margin: 0; width: min(100%, 960px); }
.gallery-lightbox-figure img {
  width: 100%;
  max-height: min(72vh, 720px);
  object-fit: contain;
  border-radius: 8px;
}
.gallery-lightbox-figure figcaption {
  margin-top: 0.85rem;
  color: #ddd;
  font-size: 0.95rem;
  text-align: center;
}
.gallery-lightbox-tag {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green-bright);
}

/* Contact */
.contact-only {
  max-width: 560px;
  margin-inline: auto;
}
.contact-panel {
  background: var(--black);
  color: #ccc;
  border-radius: var(--radius);
  padding: 1.75rem;
}
.contact-list li { margin-bottom: 1.1rem; font-size: 0.95rem; }
.contact-list li:last-child { margin-bottom: 0; }
.contact-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 0.2rem;
}
.contact-panel a { color: var(--green-bright); }
.contact-panel a:hover { color: #fff; }
.contact-panel .btn { margin-top: 1.25rem; }

/* CTA band */
.cta-band {
  background: var(--black);
  color: #ccc;
  padding: 3rem 0;
}
.cta-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.cta-band h2 { color: #fff; margin: 0 0 0.35rem; font-size: clamp(1.35rem, 3vw, 1.85rem); }
.cta-band p { margin: 0; max-width: 42ch; }

/* Sister companies */
.sister-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  max-width: 720px;
  margin-inline: auto;
}
.sister-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
}
.sister-card h3 { margin: 0 0 0.4rem; font-size: 1.1rem; }
.sister-card p { margin: 0 0 0.85rem; color: var(--muted); font-size: 0.93rem; }
.sister-card a { color: var(--red); font-weight: 600; font-size: 0.92rem; }
.sister-card a:hover { color: var(--red-dark); }

/* Footer */
.site-footer {
  background: var(--black);
  color: #bdbdbd;
  padding: 3rem 0 1.25rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
.site-footer h4 {
  color: #fff;
  margin: 0 0 0.85rem;
  font-size: 0.92rem;
  font-family: var(--font);
  font-weight: 700;
}
.site-footer a:hover { color: #fff; }
.site-footer li { margin-bottom: 0.45rem; font-size: 0.9rem; }
.footer-brand img {
  height: auto;
  width: auto;
  max-height: clamp(40px, 8vw, 56px);
  max-width: min(100%, 200px);
  margin-bottom: 1rem;
  object-fit: contain;
  display: block;
}
.footer-brand p { margin: 0; max-width: 34ch; font-size: 0.88rem; line-height: 1.55; }
.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: 0.7rem;
}
.footer-icon {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  margin-top: 0.2rem;
  color: var(--green-bright);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}
.footer-icon svg {
  display: block;
  width: 16px;
  height: 16px;
  min-width: 16px;
  min-height: 16px;
  flex-shrink: 0;
}
.footer-icon-whatsapp { color: #25d366; }
.footer-contact a:hover { color: #fff; }
.footer-phones {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1rem 0;
  font-size: 0.85rem;
  color: #888;
}
.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-bottom-inner p { margin: 0; }
.footer-powered { color: #9a9a9a; }
.footer-powered a {
  color: var(--green-bright);
  font-weight: 500;
}
.footer-powered a:hover { color: #fff; }

/* Responsive */
@media (max-width: 960px) {
  :root {
    --page-gutter: 1.25rem;
    --section-y: 3.5rem;
    --hero-y: 3.75rem;
  }
  .nav-toggle { display: flex; }
  .nav-desktop { display: none; }

  .stats-grid,
  .about-grid,
  .services-grid,
  .values-grid,
  .projects-grid,
  .gallery-grid,
  .sister-grid,
  .footer-grid { grid-template-columns: 1fr; }

  .gallery-item-overlay { opacity: 1; }
  .cta-band { padding: 2.5rem 0; }
  .cta-band-inner { align-items: flex-start; gap: 1.15rem; }
  .section-head { margin-bottom: 1.5rem; }
  .project-card-body,
  .service-card,
  .value-card,
  .contact-panel,
  .sister-card { padding: 1.25rem; }
  .site-footer { padding-top: 2.5rem; }
  .footer-grid { gap: 1.5rem; }
}

@media (max-width: 600px) {
  :root {
    --page-gutter: 1rem;
    --section-y: 2.75rem;
    --hero-y: 3rem;
  }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 0.85rem; }
  .hero {
    min-height: min(72vh, 600px);
    padding: var(--hero-y) 0 3.5rem;
  }
  .btn { padding: 0.8rem 1.15rem; }
  .gallery-filters { gap: 0.45rem; }
  .cta-band { padding: 2.25rem 0; }
  .footer-grid { gap: 1.35rem; padding-bottom: 1.5rem; }
}

@media (max-width: 400px) {
  :root {
    --page-gutter: 0.85rem;
    --section-y: 2.35rem;
  }
  .stats-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
