/* Section 09 — One company + thumb gallery (sabbia, ex ps96 / c3) */

.age-one-company {
  width: 100%;
  background: var(--age-sand);
  color: var(--age-green);
  font-size: 1rem;
  line-height: 1.5;
}

.age-one-company *,
.age-one-company *::before,
.age-one-company *::after {
  box-sizing: border-box;
}

.age-one-company__inner {
  max-width: var(--age-content-max);
  margin: 0 auto;
  padding: clamp(1.75rem, 4.5vw, 3rem) clamp(1rem, 4vw, 1.5rem)
    clamp(2rem, 5vw, 3.25rem);
}

.age-one-company__title {
  margin: 0 0 clamp(1rem, 2.5vw, 1.5rem);
  font-family: var(--age-font-display);
  font-size: clamp(1.65rem, 2.2vw + 1rem, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: var(--age-green);
  font-style: normal;
  text-align: center;
}

.age-one-company__layout {
  display: flex;
  flex-direction: column;
  gap: clamp(1.35rem, 3vw, 2.25rem);
  margin-bottom: clamp(1.35rem, 3vw, 2rem);
}

.age-one-company__copy {
  text-align: center;
}

.age-one-company__body {
  margin: 0 auto;
  max-width: 48rem;
  display: flex;
  flex-direction: column;
  gap: clamp(0.85rem, 2vw, 1.15rem);
}

.age-one-company__body p {
  margin: 0;
  font-family: var(--age-font-sans);
  font-size: clamp(0.98rem, 0.55vw + 0.85rem, 1.2rem);
  font-weight: 400;
  line-height: 1.55;
  color: var(--age-green);
}

.age-one-company__preview {
  width: 100%;
  margin-inline: auto;
}

.age-one-company__thumbs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.5rem, 1.5vw, 0.75rem);
}

@media (min-width: 900px) {
  .age-one-company__thumbs {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

.age-one-company__thumb-btn {
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  border: 2px solid rgba(11, 99, 67, 0.15);
  border-radius: 10px;
  overflow: hidden;
  cursor: zoom-in;
  background: rgba(255, 255, 255, 0.55);
  color: inherit;
  aspect-ratio: 1;
  box-shadow:
    0 2px 6px rgba(11, 99, 67, 0.07),
    0 8px 24px rgba(11, 99, 67, 0.08);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.15s ease;
}

.age-one-company__thumb-btn:hover {
  border-color: rgba(11, 99, 67, 0.4);
  box-shadow:
    0 4px 12px rgba(11, 99, 67, 0.12),
    0 14px 32px rgba(11, 99, 67, 0.14);
  transform: translateY(-1px);
}

@media (prefers-reduced-motion: reduce) {
  .age-one-company__thumb-btn:hover {
    transform: none;
  }
}

.age-one-company__thumb-btn:focus-visible {
  outline: 2px solid var(--age-green);
  outline-offset: 2px;
}

.age-one-company__thumb-btn img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.age-one-company__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  text-align: center;
}

.age-one-company__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.65rem 1.25rem;
  font-family: var(--age-font-sans);
  font-weight: 700;
  font-size: clamp(0.9rem, 0.55vw + 0.82rem, 1.1rem);
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  color: var(--age-text-dark);
  background: var(--age-gold);
  border: 2px solid var(--age-cream);
  border-radius: var(--age-radius-btn, 3px);
  transition:
    filter 0.2s ease,
    transform 0.15s ease;
}

.age-one-company__btn:hover {
  filter: brightness(1.04);
}

.age-one-company__btn:focus-visible {
  outline: 2px solid var(--age-green);
  outline-offset: 3px;
}

/* Lightbox (shared section) */
.age-one-company__dialog {
  padding: 0;
  border: none;
  max-width: min(96vw, 1400px);
  max-height: 96vh;
  background: transparent;
}

.age-one-company__dialog::backdrop {
  background: rgba(0, 0, 0, 0.82);
  cursor: pointer;
}

.age-one-company__dialog-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 0.5rem 0.5rem;
}

.age-one-company__dialog-close {
  position: absolute;
  top: 0;
  right: 0;
  width: 2.25rem;
  height: 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  font-size: 1.35rem;
  line-height: 1;
  transition: background 0.2s ease;
}

.age-one-company__dialog-close:hover {
  background: rgba(255, 255, 255, 0.22);
}

.age-one-company__dialog-close:focus-visible {
  outline: 2px solid var(--age-gold);
  outline-offset: 2px;
}

.age-one-company__dialog-img {
  display: block;
  max-width: 100%;
  max-height: min(88vh, 1200px);
  width: auto;
  height: auto;
  object-fit: contain;
}
