/* Dentaworld Ltd — turquoise & white clinical theme */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Outfit:wght@500;600;700&display=swap');

:root {
  --black: #0f1c1f;
  --ink: #142a2e;
  --white: #ffffff;
  --surface-soft: #f4fbfb;
  --surface-mint: #e4f7f5;
  --surface-mint-mid: #c9eee9;
  --muted: #4a5f60;
  --text: #243a3d;
  --lime: #3dd6ce;
  --lime-bright: #6fe8e0;
  --lime-dim: #1a9e94;
  --lime-glow: rgba(61, 214, 206, 0.38);
  --border: rgba(12, 80, 76, 0.12);
  --border-strong: rgba(12, 80, 76, 0.22);
  --green-rich: #0d6b66;
  --max: 1120px;
  --radius: 12px;
  --font: 'DM Sans', system-ui, sans-serif;
  --font-display: 'Outfit', var(--font);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--surface-soft);
  min-height: 100vh;
}

body.nav-open {
  overflow: hidden;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
}

h1 { font-size: clamp(2rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 0.75rem; }
h3 { font-size: 1.125rem; margin-bottom: 0.5rem; }

p {
  margin: 0 0 1rem;
  color: #4a5056;
}

a:hover {
  color: var(--lime-dim);
}

/* ——— Header ——— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.65rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.05rem, 2.4vw, 1.28rem);
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--ink);
}

/* Sized to balance two-line wordmark (“Dentaworld” + Ltd) */
.brand-mark {
  width: clamp(44px, 5.5vw, 54px);
  height: clamp(44px, 5.5vw, 54px);
  object-fit: contain;
  flex-shrink: 0;
  align-self: center;
  border-radius: 10px;
  box-shadow: 0 0 0 1px var(--border), 0 2px 8px rgba(8, 70, 68, 0.06);
}

.brand > span {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.12em;
  line-height: 1.05;
}

.brand small {
  display: block;
  font-size: 0.52em;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-rich);
  margin-top: 0;
  line-height: 1;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-desktop a {
  color: var(--text);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.5rem 0.65rem;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}

.nav-desktop a:hover,
.nav-desktop a.is-active {
  color: var(--ink);
  background: var(--lime);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  border-radius: 10px;
  border: 1px solid var(--border-strong);
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
}

.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

#nav-panel {
  display: none;
}

@media (max-width: 880px) {
  .hide-mobile {
    display: none !important;
  }
  .nav-desktop {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }
  #nav-panel {
    display: block;
    position: fixed;
    inset: 0;
    top: 57px;
    background: var(--white);
    padding: 1rem;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    border-top: 1px solid var(--border);
    box-shadow: -8px 0 24px rgba(8, 55, 52, 0.06);
  }
  #nav-panel.is-open {
    transform: translateX(0);
  }
  #nav-panel ul {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
  }
  #nav-panel a {
    display: block;
    color: var(--ink);
    padding: 0.85rem 1rem;
    border-radius: var(--radius);
    font-weight: 600;
  }
  #nav-panel a:hover,
  #nav-panel a.is-active {
    background: var(--lime);
    color: var(--ink);
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.15rem;
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 999px;
  transition: transform 0.15s, box-shadow 0.2s;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--lime);
  color: var(--ink);
  box-shadow: 0 0 0 0 var(--lime-glow);
}

.btn-primary:hover {
  box-shadow: 0 0 24px var(--lime-glow);
  color: var(--ink);
}

.btn-ghost {
  border: 1px solid var(--border-strong);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.65);
}

.btn-ghost:hover {
  border-color: var(--green-rich);
  color: var(--green-rich);
  background: var(--white);
}

/* ——— Hero ——— */
.hero {
  position: relative;
  background: linear-gradient(165deg, var(--surface-mint) 0%, var(--white) 52%, var(--surface-soft) 100%);
  color: var(--ink);
  overflow: hidden;
}

.hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3.5rem 1.25rem 4rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-copy h1 {
  color: var(--ink);
  margin-bottom: 1rem;
}

.hero-copy .lead {
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
  max-width: 34ch;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.hero-badges span {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  color: var(--text);
  background: rgba(255, 255, 255, 0.75);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-pricing-teaser {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.5;
  max-width: 36ch;
  margin: 0 0 1.1rem;
}

.hero-pricing-teaser a {
  color: var(--green-rich);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.hero-pricing-teaser a:hover {
  color: var(--lime-dim);
}

/* Hero visual collage — homepage */
.hero-collage {
  position: relative;
  min-height: 280px;
  align-self: center;
}

.hero-collage-main {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 56px rgba(8, 70, 68, 0.14), 0 0 0 1px var(--border);
  animation: hero-zoom-in 0.95s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-collage-img {
  display: block;
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.hero-collage-pill {
  position: absolute;
  width: 42%;
  max-width: 200px;
  border-radius: 12px;
  overflow: hidden;
  border: 3px solid var(--white);
  box-shadow: 0 12px 32px rgba(8, 70, 68, 0.18);
  animation: hero-pill-enter 0.75s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-collage-pill img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
}

.hero-collage-pill--a {
  bottom: -6%;
  left: -4%;
  animation-delay: 0.22s;
}

.hero-collage-pill--b {
  top: 8%;
  right: -5%;
  width: 46%;
  max-width: 220px;
  animation-delay: 0.4s;
}

@keyframes hero-zoom-in {
  from {
    opacity: 0;
    transform: scale(0.94);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes hero-pill-enter {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.hero-copy--animated h1 {
  animation: hero-title-in 0.8s ease-out both;
}

.hero-copy--animated .lead {
  animation: hero-title-in 0.8s ease-out 0.06s both;
}

.hero-copy--animated .hero-badges {
  animation: hero-title-in 0.8s ease-out 0.12s both;
}

.hero-copy--animated .hero-pricing-teaser {
  animation: hero-title-in 0.8s ease-out 0.16s both;
}

.hero-copy--animated .hero-ctas {
  animation: hero-title-in 0.8s ease-out 0.22s both;
}

@keyframes hero-title-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 880px) {
  .hero-inner {
    grid-template-columns: 1fr;
    padding-top: 2.5rem;
  }
  .hero-collage {
    order: -1;
    margin-bottom: 0.5rem;
    min-height: 0;
  }
  .hero-collage-pill--b {
    right: -2%;
  }
}

/* Scroll reveals */
[data-reveal] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.split-img--shadow {
  border-radius: var(--radius);
  box-shadow: 0 20px 50px rgba(8, 70, 68, 0.12);
  transition: transform 0.45s ease, box-shadow 0.45s ease;
}

.split-img--shadow:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 28px 60px rgba(8, 70, 68, 0.16);
}

.card--lift {
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.card--lift:hover {
  transform: translateY(-6px);
}

.section-head--row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  max-width: none;
  margin-bottom: 1.5rem;
}

.section-head--row .section-lead {
  margin: 0.35rem 0 0;
  max-width: 42ch;
  color: var(--muted);
}

.section-cta-row {
  margin: 2rem 0 0;
  text-align: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.section--filmstrip-wrap {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
  background: linear-gradient(180deg, var(--white) 0%, var(--surface-mint) 45%, var(--white) 100%);
}

.home-filmstrip {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 0.65rem 0.25rem 1rem;
  margin: 0 -0.25rem;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 0.25rem;
  -webkit-overflow-scrolling: touch;
}

.home-filmstrip-card {
  flex: 0 0 min(280px, 78vw);
  scroll-snap-align: start;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 10px 28px rgba(8, 70, 68, 0.1);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.home-filmstrip-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 18px 40px rgba(8, 70, 68, 0.14);
}

.home-filmstrip-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.home-mosaic {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: minmax(160px, 1fr) minmax(160px, 1fr);
  gap: 0.75rem;
}

.home-mosaic-cell {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 12px 32px rgba(8, 70, 68, 0.08);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.home-mosaic-cell:hover {
  transform: scale(1.02);
  box-shadow: 0 20px 48px rgba(8, 70, 68, 0.14);
  z-index: 2;
}

.home-mosaic-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 160px;
}

.home-mosaic-cell--tall {
  grid-column: 1 / 3;
  grid-row: 1 / 3;
}

.home-mosaic-cell:nth-child(2) {
  grid-column: 3 / 5;
  grid-row: 1 / 2;
  min-height: 160px;
}

.home-mosaic-cell:nth-child(3) {
  grid-column: 5 / 7;
  grid-row: 1 / 2;
  min-height: 160px;
}

.home-mosaic-cell--wide {
  grid-column: 3 / 7;
  grid-row: 2 / 3;
  min-height: 200px;
}

.home-mosaic-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 2rem 0.85rem 0.65rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--white);
  background: linear-gradient(transparent, rgba(15, 30, 14, 0.82));
  pointer-events: none;
}

@media (max-width: 768px) {
  .home-mosaic {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: none;
    grid-auto-rows: minmax(140px, auto);
  }
  .home-mosaic-cell--tall {
    grid-column: 1 / -1;
    grid-row: auto;
    min-height: 220px;
  }
  .home-mosaic-cell:nth-child(2),
  .home-mosaic-cell:nth-child(3) {
    grid-column: auto;
    grid-row: auto;
    min-height: 180px;
  }
  .home-mosaic-cell:nth-child(2) {
    grid-column: 1 / 2;
  }
  .home-mosaic-cell:nth-child(3) {
    grid-column: 2 / 3;
  }
  .home-mosaic-cell--wide {
    grid-column: 1 / -1;
    grid-row: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-collage-main,
  .hero-collage-pill,
  .hero-copy--animated h1,
  .hero-copy--animated .lead,
  .hero-copy--animated .hero-badges,
  .hero-copy--animated .hero-pricing-teaser,
  .hero-copy--animated .hero-ctas {
    animation: none !important;
  }
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .split-img--shadow:hover,
  .card--lift:hover,
  .home-filmstrip-card:hover,
  .home-mosaic-cell:hover {
    transform: none;
  }
}

.hero-wave {
  height: 40px;
  background: linear-gradient(to bottom, var(--surface-soft), var(--surface-soft));
}

/* ——— Sections ——— */
.section {
  padding: 3.5rem 1.25rem;
}

.section-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.section-head {
  max-width: 640px;
  margin-bottom: 2rem;
}

.section--dark {
  background: var(--surface-mint);
  color: var(--ink);
}

.section--dark p {
  color: var(--text);
}

.section--dark h2,
.section--dark h3 {
  color: var(--ink);
}

.accent {
  width: 48px;
  height: 4px;
  background: var(--lime);
  border-radius: 2px;
  margin-bottom: 1rem;
}

/* ——— Service grid ——— */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

@media (max-width: 900px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.card:hover {
  border-color: rgba(61, 214, 206, 0.45);
  box-shadow: 0 12px 32px rgba(8, 70, 68, 0.08);
}

.section--dark .card {
  background: var(--white);
  border-color: var(--border);
}

.section--dark .card p {
  color: #4a5056;
}

.card h3 {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.card-icon {
  color: var(--lime-dim);
  font-size: 1.25rem;
  line-height: 1;
}

/* ——— Split ——— */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (max-width: 880px) {
  .split {
    grid-template-columns: 1fr;
  }
}

.split img {
  border-radius: var(--radius);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

/* ——— Page hero ——— */
.page-hero {
  background: linear-gradient(180deg, var(--surface-mint) 0%, var(--white) 100%);
  color: var(--ink);
  padding: 2.75rem 1.25rem 2.25rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  color: var(--ink);
}

.page-hero p {
  color: var(--muted);
  max-width: 520px;
  margin: 0.75rem auto 0;
}

/* ——— Pricing / quote info bar ——— */
.pricing-info-bar {
  background: #eef9f7;
  border: 1px solid #c5e8e3;
  border-radius: var(--radius);
  padding: 1.35rem 1.6rem 1.45rem;
  margin-bottom: 2rem;
}

.pricing-info-bar-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.85fr) minmax(0, 0.85fr);
  gap: 1.25rem 2.25rem;
  align-items: start;
}

@media (max-width: 900px) {
  .pricing-info-bar-inner {
    grid-template-columns: 1fr;
    gap: 1.35rem;
  }
}

.pricing-info-segment .pricing-info-kicker {
  font-family: var(--font-display);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #0d5c58;
  margin: 0 0 0.45rem;
  line-height: 1.3;
}

.pricing-info-segment p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: #2d4a48;
}

.pricing-info-segment--wide p {
  max-width: 50ch;
}

.pricing-info-address {
  font-weight: 500;
  letter-spacing: 0.02em;
}

.pricing-info-links {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.9375rem;
  line-height: 1.6;
}

.pricing-info-links li {
  margin: 0;
  padding: 0;
}

.pricing-info-links li + li {
  margin-top: 0.35rem;
}

@media (min-width: 901px) {
  .pricing-info-segment:not(:first-child) {
    padding-left: 1.75rem;
    border-left: 1px solid rgba(13, 92, 88, 0.2);
  }
}

.pricing-info-bar a {
  color: #0d5c58;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.pricing-info-bar a:hover {
  color: var(--ink);
}

.pricing-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid #e0e0db;
  background: var(--white);
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.pricing-table th,
.pricing-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid #eee;
}

.pricing-table thead th {
  background: var(--green-rich);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pricing-table tbody th {
  font-weight: 500;
  color: var(--text);
  vertical-align: top;
}

.pricing-table tbody tr:hover td {
  background: #f4fcfb;
}

.pricing-table td:last-child {
  font-weight: 700;
  color: var(--green-rich);
  white-space: nowrap;
}

.pricing-table td small {
  display: block;
  font-weight: 400;
  color: var(--muted);
  font-size: 0.8rem;
  margin-top: 0.2rem;
}

/* ——— Gallery ——— */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

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

.gallery-grid figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-mint);
  aspect-ratio: 1;
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.gallery-grid figure:hover img {
  transform: scale(1.04);
}

.gallery-grid figcaption {
  display: none;
}

/* ——— Gallery page (sections, filters, lightbox) ——— */
.gallery-page {
  padding-top: 1.5rem;
}

.gallery-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  margin-bottom: 2.5rem;
  padding: 1rem 1.15rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(8, 70, 68, 0.06);
}

.gallery-toolbar-label {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.gallery-filter {
  font-family: var(--font);
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface-soft);
  color: var(--ink);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.gallery-filter:hover {
  border-color: var(--lime-dim);
  color: var(--green-rich);
}

.gallery-filter.is-active {
  background: var(--lime);
  border-color: transparent;
  color: var(--ink);
}

.gallery-section {
  margin-bottom: 3.25rem;
}

.gallery-section.is-gallery-section-empty {
  display: none;
}

.gallery-section-title {
  font-size: clamp(1.25rem, 2.5vw, 1.6rem);
  margin-bottom: 0.5rem;
}

.gallery-section-lead {
  max-width: 62ch;
  color: var(--muted);
  margin: 0 0 1.35rem;
}

.gallery-compare-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  align-items: start;
}

.gallery-compare-grid--mt {
  margin-top: 1rem;
}

@media (max-width: 640px) {
  .gallery-compare-grid {
    grid-template-columns: 1fr;
  }
}

.gallery-page .gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  align-items: start;
}

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

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

.gallery-page .gallery-grid--mt {
  margin-top: 1rem;
}

@media (max-width: 900px) {
  .gallery-page .gallery-grid,
  .gallery-page .gallery-grid--three {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery-page .gallery-grid--two {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .gallery-page .gallery-grid,
  .gallery-page .gallery-grid--two,
  .gallery-page .gallery-grid--three {
    grid-template-columns: 1fr;
  }
}

.gallery-page .gallery-item {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-mint);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.gallery-page .gallery-item:hover {
  box-shadow: 0 14px 36px rgba(8, 70, 68, 0.12);
  transform: translateY(-2px);
}

.gallery-page .gallery-item.is-gallery-hidden {
  display: none !important;
}

.gallery-item__open {
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  border: none;
  background: #0a1214;
  cursor: zoom-in;
  line-height: 0;
}

.gallery-page .gallery-item__open img {
  width: 100%;
  height: auto;
  min-height: 200px;
  max-height: 420px;
  object-fit: cover;
  vertical-align: middle;
  transition: transform 0.35s ease;
}

.gallery-page .gallery-item__open:hover img {
  transform: scale(1.03);
}

.gallery-page .gallery-item figcaption {
  display: block;
  padding: 0.75rem 0.85rem 0.9rem;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--text);
  background: var(--white);
}

.gallery-compare-grid .gallery-item__open {
  aspect-ratio: 1024 / 780;
  overflow: hidden;
}

.gallery-compare-grid .gallery-item__open img {
  width: 100%;
  height: 100%;
  min-height: unset;
  max-height: none;
  object-fit: cover;
}

/* Standard gallery grids — tight square tiles, captions in lightbox only */
.gallery-page .gallery-grid .gallery-item {
  display: block;
  position: relative;
}

.gallery-page .gallery-grid .gallery-item__open {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--surface-mint);
}

.gallery-page .gallery-grid .gallery-item__open img {
  width: 100%;
  height: 100%;
  min-height: unset;
  max-height: none;
  object-fit: cover;
}

.gallery-page .gallery-grid .gallery-item figcaption {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.gallery-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
  margin-right: 0.35rem;
  vertical-align: middle;
}

.gallery-badge--before {
  background: #c62828;
  color: var(--white);
}

.gallery-badge--after {
  background: #2e7d32;
  color: var(--white);
}

.gallery-lightbox {
  padding: 0;
  border: none;
  border-radius: var(--radius);
  max-width: min(96vw, 920px);
  width: 100%;
  background: var(--ink);
  color: var(--white);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.gallery-lightbox::backdrop {
  background: rgba(10, 20, 22, 0.72);
  backdrop-filter: blur(4px);
}

.gallery-lightbox-inner {
  position: relative;
  padding: 0.5rem 0.5rem 1rem;
}

.gallery-lightbox-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(78vh, 820px);
  object-fit: contain;
  margin: 0 auto;
  border-radius: calc(var(--radius) - 4px);
}

.gallery-lightbox-caption {
  margin: 0.85rem 0.75rem 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.88);
  text-align: center;
}

.gallery-lightbox-close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(0, 0, 0, 0.35);
  color: var(--white);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  transition: background 0.2s;
}

.gallery-lightbox-close:hover {
  background: rgba(61, 214, 206, 0.35);
}

@media (prefers-reduced-motion: reduce) {
  .gallery-page .gallery-item:hover,
  .gallery-page .gallery-item__open:hover img {
    transform: none;
    transition: none;
  }
}

/* ——— Contact ——— */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 880px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.contact-card {
  background: var(--surface-mint);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid var(--border);
}

.contact-card h3 {
  color: var(--ink);
  margin-bottom: 0.75rem;
}

.contact-card a {
  color: var(--green-rich);
  font-weight: 600;
}

.contact-card p {
  color: var(--text);
  margin-bottom: 0.75rem;
}

.contact-card .contact-hours-note {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.7;
  margin-top: 0.375rem;
  margin-bottom: 0.75rem;
  max-width: 36rem;
}

.form {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.form label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--ink);
}

.form input,
.form textarea,
.form select {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid #d8d8d3;
  border-radius: 8px;
  font-family: var(--font);
  margin-bottom: 1rem;
  background: var(--white);
}

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

.form button[type="submit"] {
  margin-top: 0.25rem;
  margin-bottom: 0;
  align-self: flex-start;
}

.form-hint {
  font-size: 0.8125rem;
  color: var(--muted);
  margin-top: 1rem;
  margin-bottom: 0;
  line-height: 1.55;
  max-width: 52ch;
}

/* ——— Footer ——— */
.site-footer {
  background: var(--white);
  color: var(--muted);
  padding: 2.5rem 1.25rem;
  font-size: 0.875rem;
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
}

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

.site-footer strong {
  color: var(--ink);
  display: block;
  margin-bottom: 0.5rem;
  font-family: var(--font-display);
}

.site-footer a {
  color: var(--green-rich);
}

.footer-services ul {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

/* ——— Lists ——— */
.tick-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  color: #4a5056;
}

.tick-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 0.5rem;
  height: 0.5rem;
  background: var(--lime);
  border-radius: 2px;
}

.section--dark .tick-list li {
  color: var(--text);
}
