/* Shared layout for refactored inner pages (semantic <main>) */
body.age-inner-page {
  font-size: 1rem;
}

.age-page-main {
  font-size: 1rem;
  line-height: 1.55;
  color: var(--age-text-dark);
  font-family: var(--age-font-sans);
}

.age-page-main * {
  box-sizing: border-box;
}

.age-page-main img,
.age-page-main picture img {
  max-width: 100%;
  height: auto;
  display: block;
  vertical-align: middle;
}

.age-page-section {
  padding: var(--age-space-section) clamp(1rem, 4vw, 1.5rem);
}

.age-page-section--sand {
  background: var(--age-sand);
}

.age-page-section--green {
  background: var(--age-green);
  color: var(--age-cream);
}

.age-page-section--green .age-page-h2,
.age-page-section--green .age-page-h1,
.age-page-section--green .age-page-lede {
  color: var(--age-cream);
}

.age-page-section--green .age-page-prose {
  color: rgba(244, 244, 239, 0.92);
}

.age-page-section--muted {
  background: var(--age-page-bg);
}

.age-page-inner {
  max-width: var(--age-content-max);
  margin-left: auto;
  margin-right: auto;
}

.age-page-h1 {
  font-family: var(--age-font-display), var(--age-font-hero);
  font-weight: 700;
  font-size: clamp(2rem, 4vw + 1rem, 3.25rem);
  line-height: 1.12;
  color: var(--age-green);
  text-align: center;
  margin: 0 0 0.75rem;
}

.age-page-h2 {
  font-family: var(--age-font-display), var(--age-font-hero);
  font-weight: 700;
  font-size: clamp(1.65rem, 2.5vw + 0.85rem, 2.35rem);
  line-height: 1.15;
  color: var(--age-green);
  text-align: center;
  margin: 0 0 0.65rem;
}

.age-page-section--green .age-page-h2 {
  color: var(--age-cream);
}

.age-page-lede {
  font-size: clamp(1.05rem, 0.8vw + 0.95rem, 1.3rem);
  line-height: 1.45;
  color: #1a6b4a;
  text-align: center;
  max-width: 48rem;
  margin: 0 auto 1.25rem;
  font-weight: 600;
}

.age-page-section--green .age-page-lede {
  color: var(--age-gold);
}

.age-page-prose {
  font-size: clamp(0.98rem, 0.35vw + 0.92rem, 1.12rem);
  max-width: 50rem;
  margin-left: auto;
  margin-right: auto;
}

.age-page-prose p {
  margin: 0 0 1em;
}

.age-page-prose p:last-child {
  margin-bottom: 0;
}

.age-page-prose ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1em;
}

.age-page-prose li {
  position: relative;
  padding-left: 1.1em;
  margin-bottom: 0.45em;
}

.age-page-prose li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--age-green);
  font-weight: 700;
}

.age-page-section--green .age-page-prose li::before {
  color: var(--age-gold);
}

.age-page-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1.25rem, 3vw, 2rem);
}

.age-page-media {
  width: 100%;
  max-width: min(100%, 56rem);
  margin-left: auto;
  margin-right: auto;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 0.35rem 1.25rem rgba(2, 2, 1, 0.08);
}

.age-page-media--flush {
  box-shadow: none;
  border-radius: 0;
}

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

.age-page-btn:hover {
  filter: brightness(1.04);
}

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

.age-page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 0.5rem;
}

.age-about-split {
  display: grid;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  align-items: start;
}

@media (min-width: 800px) {
  .age-about-split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    align-items: center;
  }
}

.age-about-team {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  max-width: 28rem;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

@media (min-width: 640px) {
  .age-about-team {
    gap: 0.65rem;
  }
}

.age-about-team__cell {
  aspect-ratio: 1/1;
  border-radius: 4px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
}

.age-about-team__cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.age-about-features {
  display: grid;
  gap: clamp(1rem, 3vw, 1.75rem);
}

@media (min-width: 720px) {
  .age-about-features {
    grid-template-columns: 1fr 1fr;
  }
}

.age-about-features__col h3 {
  font-family: var(--age-font-display), var(--age-font-hero);
  font-size: clamp(1.05rem, 0.6vw + 0.95rem, 1.25rem);
  font-weight: 700;
  color: inherit;
  margin: 0 0 0.35rem;
}

.age-about-features__col p {
  margin: 0;
  font-size: clamp(0.95rem, 0.3vw + 0.88rem, 1.05rem);
  line-height: 1.5;
  opacity: 0.96;
}

.age-services-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  justify-content: center;
  align-items: center;
  margin: 1rem 0 0.5rem;
  padding: 0;
  list-style: none;
  font-weight: 700;
  font-size: clamp(1rem, 0.5vw + 0.92rem, 1.15rem);
  color: var(--age-green);
}

.age-services-cats li[aria-hidden="true"] {
  color: rgba(11, 99, 67, 0.35);
  user-select: none;
}

.age-services-cards {
  display: grid;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

@media (min-width: 768px) {
  .age-services-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

.age-services-card figure {
  margin: 0;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 0.25rem 1rem rgba(2, 2, 1, 0.07);
}

.age-video-embed {
  position: relative;
  z-index: 1;
  isolation: isolate;
  width: 100%;
  max-width: 56rem;
  margin: 1rem auto 0;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 0.4rem 1.5rem rgba(2, 2, 1, 0.15);
}

.age-video-embed iframe {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: auto;
}

.age-product-grid {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2rem);
  margin-top: 1.5rem;
}

@media (min-width: 640px) {
  .age-product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .age-product-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.age-product-card h3 {
  font-family: var(--age-font-display), var(--age-font-hero);
  font-size: clamp(1.1rem, 0.5vw + 1rem, 1.35rem);
  text-align: center;
  margin: 0 0 0.6rem;
  color: var(--age-green);
}

.age-product-card figure {
  margin: 0;
  border-radius: 4px;
  overflow: hidden;
}

.age-cert-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  gap: 1rem;
  align-items: center;
  margin-top: 1.5rem;
}

.age-cert-row figure {
  margin: 0;
  padding: 0.5rem;
}

.age-solution-block {
  display: grid;
  gap: 1.25rem;
  margin-top: 2rem;
}

@media (min-width: 800px) {
  .age-solution-block {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: start;
  }

  .age-solution-block--reverse .age-solution-block__text {
    order: 2;
  }

  .age-solution-block--reverse .age-solution-block__media {
    order: 1;
  }
}

.age-solution-block h3 {
  font-family: var(--age-font-display), var(--age-font-hero);
  font-size: clamp(1.15rem, 0.6vw + 1rem, 1.4rem);
  margin: 0 0 0.5rem;
  color: var(--age-green);
}

.age-gallery-brand {
  max-width: 7.5rem;
  margin: 0 auto 0.5rem;
  color: var(--age-green);
}

.age-gallery-brand svg {
  width: 100%;
  height: auto;
  display: block;
}

.age-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr));
  gap: 0.65rem;
  margin-top: 1.25rem;
}

.age-gallery-grid figure {
  margin: 0;
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: rgba(11, 99, 67, 0.06);
}

.age-gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.age-areas-hero-pics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  max-width: 44rem;
  margin: 1.25rem auto 0;
}

.age-areas-hero-pics figure {
  margin: 0;
  border-radius: 4px;
  overflow: hidden;
}

.age-areas-columns {
  display: grid;
  gap: 1.5rem 2rem;
  margin-top: 1.5rem;
}

@media (min-width: 640px) {
  .age-areas-columns {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .age-areas-columns {
    grid-template-columns: repeat(3, 1fr);
  }
}

.age-areas-columns h3 {
  font-family: var(--age-font-display), var(--age-font-hero);
  font-size: clamp(1.05rem, 0.4vw + 0.98rem, 1.2rem);
  margin: 0 0 0.5rem;
  color: var(--age-green);
}

.age-areas-columns ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.45;
}

.age-areas-columns li {
  position: relative;
  padding-left: 1em;
  margin-bottom: 0.25em;
}

.age-areas-columns li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--age-green);
}

.age-page-section--green .age-areas-columns h3 {
  color: var(--age-gold);
}

.age-page-section--green .age-areas-columns li::before {
  color: var(--age-gold);
}

.age-contact-grid {
  display: grid;
  gap: clamp(2rem, 5vw, 3rem);
}

@media (min-width: 900px) {
  .age-contact-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
  }
}

.age-contact-cards {
  display: grid;
  gap: 1rem;
}

.age-contact-card {
  padding: 1rem 1.15rem;
  border-radius: 6px;
  background: rgba(11, 99, 67, 0.06);
  border: 1px solid rgba(11, 99, 67, 0.12);
}

.age-contact-card dt {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--age-green);
  margin-bottom: 0.25rem;
}

.age-contact-card dd {
  margin: 0;
  font-size: 1rem;
}

.age-contact-card a {
  color: var(--age-green);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.age-contact-aside {
  padding: 1.25rem;
  border-radius: 8px;
  background: var(--age-sand);
}

.age-contact-aside h2 {
  font-family: var(--age-font-display), var(--age-font-hero);
  font-size: clamp(1.2rem, 1vw + 1rem, 1.45rem);
  color: var(--age-green);
  margin: 0 0 0.35rem;
  text-align: left;
}

.age-contact-aside p {
  margin: 0 0 1rem;
}

.age-contact-social {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-top: 0.75rem;
}

.age-contact-social a img {
  width: 2rem;
  height: auto;
}

.age-contact-form-wrap {
  margin-top: 1rem;
}

.age-contact-form-wrap .wrapper1,
.age-contact-form-wrap .hs-form-frame {
  width: 100%;
  max-width: 100%;
}

.age-contact-map {
  margin-top: clamp(2rem, 4vw, 3rem);
}

.age-contact-map__address {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  max-width: var(--age-content-max);
  margin: 0 auto 0.75rem;
  padding: 0 clamp(1rem, 4vw, 1.5rem);
  font-size: 0.98rem;
}

.age-contact-map__address svg {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  margin-top: 0.1rem;
  color: var(--age-green);
}

.age-contact-map iframe {
  display: block;
  width: 100%;
  max-width: var(--age-content-max);
  margin: 0 auto;
  min-height: 18rem;
  border: 0;
  border-radius: 6px;
}

.age-embed-wrap {
  margin-top: 1rem;
  min-height: 12rem;
}

.age-embed-wrap .wrapper1 {
  width: 100%;
}

.age-blog-intro .age-page-prose {
  text-align: center;
  max-width: 36rem;
  color: #444;
}

.age-page-eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  color: var(--age-gold);
  margin: 0 0 0.5rem;
}

.age-page-section--sand .age-page-eyebrow {
  color: var(--age-green);
  opacity: 0.85;
}
