/* Shared layouts for generated service, directory, company, and contact pages. */

.site-nav a[aria-current="page"] { color: var(--yellow); }
.site-nav a[aria-current="page"]::after { right: 0; }

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

.page-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, .75fr);
  align-items: center;
  gap: clamp(48px, 7vw, 96px);
  min-height: 610px;
  padding-block: 70px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 24px;
  color: #aeb0b1;
  font-size: 12px;
}

.breadcrumbs a { color: var(--yellow); text-decoration: none; }
.breadcrumbs span::before { content: "/"; margin-right: 8px; color: #686b6d; }

.page-hero__eyebrow,
.section-kicker {
  margin: 0 0 13px;
  color: var(--yellow);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.page-hero h1 {
  max-width: 800px;
  margin: 0;
  font-size: clamp(46px, 5.6vw, 76px);
  letter-spacing: -.045em;
  line-height: 1.02;
}

.page-hero__lead {
  max-width: 720px;
  margin: 25px 0 0;
  color: #c4c6c7;
  font-size: clamp(17px, 1.6vw, 20px);
}

.page-hero__actions { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 31px; }
.page-hero__media { min-height: 465px; overflow: hidden; border-radius: var(--radius); }
.page-hero__media img { width: 100%; height: 100%; min-height: 465px; object-fit: cover; }

.content-section { padding-block: clamp(68px, 7vw, 100px); background: #fff; }
.content-section--paper { background: var(--paper); }
.content-section--dark { background: var(--ink); color: var(--white); }

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(55px, 8vw, 120px);
  align-items: start;
}

.content-grid--reverse { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); }

.content-heading h2,
.service-page h2,
.contact-page h2 {
  margin: 0;
  font-size: clamp(34px, 4vw, 52px);
  letter-spacing: -.035em;
  line-height: 1.08;
}

.content-heading > p:not(.section-kicker),
.content-copy > p {
  color: var(--muted);
}

.content-heading > p:not(.section-kicker) { max-width: 510px; font-size: 17px; }
.content-copy { font-size: 16px; }
.content-copy > p:first-child { margin-top: 0; color: var(--ink); font-size: 19px; font-weight: 650; }
.content-copy > p:last-child { margin-bottom: 0; }

.service-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 46px;
}

.service-point {
  min-height: 205px;
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
}

.service-point__number {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  margin-bottom: 34px;
  border-radius: 50%;
  background: var(--yellow);
  font-size: 12px;
  font-weight: 800;
}

.service-point h3 { margin: 0 0 10px; font-size: 19px; line-height: 1.2; }
.service-point p { margin: 0; color: var(--muted); font-size: 14px; }

.check-list { display: grid; gap: 12px; margin: 27px 0 0; padding: 0; list-style: none; }
.check-list li { position: relative; padding-left: 29px; }
.check-list li::before { position: absolute; left: 0; content: "✓"; color: #806900; font-weight: 900; }

.image-panel { min-height: 520px; overflow: hidden; background: var(--steel); }
.image-panel img { width: 100%; height: 100%; min-height: 520px; object-fit: cover; }

.reference-note {
  padding: clamp(30px, 5vw, 54px);
  background: #fff7d5;
  border-left: 5px solid var(--yellow);
}

.reference-note h2 { font-size: clamp(28px, 3vw, 40px); }
.reference-note p { max-width: 820px; color: #4f5052; }
.reference-note a { font-weight: 800; }

.related-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 34px; }
.related-heading h2 { max-width: 700px; }
.related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }

.related-card {
  display: flex;
  min-height: 210px;
  flex-direction: column;
  align-items: flex-start;
  padding: 29px;
  background: #fff;
  border: 1px solid var(--line);
  text-decoration: none;
  transition: border-color .15s ease, background-color .15s ease;
}

.related-card:hover { border-color: #aa8d12; background: #fffdf5; }
.related-card small { color: #78640e; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.related-card strong { margin-top: 17px; font-size: 21px; line-height: 1.2; }
.related-card span { margin-top: auto; padding-top: 28px; font-size: 13px; font-weight: 800; }

.service-index {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.service-index a {
  display: flex;
  min-height: 150px;
  flex-direction: column;
  justify-content: space-between;
  padding: 25px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.25;
  text-decoration: none;
}

.service-index a:hover { border-color: #9c8214; }
.service-index a span { color: #78640e; font-size: 12px; }

.cta-band { padding-block: clamp(58px, 6vw, 82px); background: var(--yellow); color: var(--ink); }
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 45px; }
.cta-band h2 { max-width: 760px; font-size: clamp(32px, 4vw, 52px); }
.cta-band p { max-width: 660px; margin-bottom: 0; }
.cta-band__actions { display: flex; flex: 0 0 auto; gap: 12px; }

.history-list { display: grid; gap: 0; margin: 0; padding: 0; border-top: 1px solid var(--line); list-style: none; }
.history-list li { display: grid; grid-template-columns: 110px 1fr; gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.history-list strong { color: #79640d; font-size: 13px; }
.history-list span { font-weight: 700; }

.contact-page { padding-block: clamp(70px, 8vw, 110px); background: var(--paper); }
.contact-page__grid { display: grid; grid-template-columns: minmax(300px, .7fr) minmax(0, 1.3fr); gap: clamp(55px, 8vw, 115px); }
.contact-page__intro > p { color: var(--muted); font-size: 17px; }
.contact-page__methods { display: grid; gap: 14px; margin-top: 33px; }
.contact-page__methods a { display: grid; gap: 2px; padding: 19px; background: #fff; border: 1px solid var(--line); text-decoration: none; }
.contact-page__methods small { color: var(--muted); }
.contact-page__methods strong { font-size: 18px; }

.directory-heading { max-width: 820px; margin-bottom: 42px; }
.section-follow-link { margin: 30px 0 0; }
.directory-heading h2 { margin: 0; font-size: clamp(34px, 4vw, 52px); }
.directory-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  counter-reset: directory-card;
}
.directory-card {
  position: relative;
  scroll-margin-top: 120px;
  display: flex;
  min-height: 270px;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(25px, 3vw, 34px);
  border: 1px solid rgba(242, 170, 22, .14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 12px 32px rgba(11, 15, 19, .08);
  counter-increment: directory-card;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.directory-card::before {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  margin-bottom: 24px;
  border: 1px solid rgba(185, 106, 18, .24);
  border-radius: 50%;
  background: #fff8e6;
  color: #9a4c0d;
  content: counter(directory-card, decimal-leading-zero);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .06em;
}
.directory-card::after {
  position: absolute;
  content: "";
  inset: -1px auto -1px -1px;
  width: 3px;
  border-radius: var(--radius) 0 0 var(--radius);
  background: linear-gradient(var(--yellow), var(--orange));
  opacity: 0;
  transition: opacity .22s ease;
}
.directory-card:hover { transform: translateY(-5px); border-color: rgba(185, 106, 18, .32); box-shadow: 0 20px 44px rgba(11, 15, 19, .12); }
.directory-card:hover::after { opacity: 1; }
.directory-card h3 { margin: 0; color: var(--ink); font-size: 23px; line-height: 1.15; }
.directory-card p { margin: 17px 0 27px; color: var(--muted); font-size: 14px; }
.directory-card .text-link { margin-top: auto; }

.profile-card {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .65fr);
  gap: clamp(45px, 7vw, 90px);
  align-items: center;
  padding: clamp(30px, 5vw, 64px);
  border: 1px solid rgba(242, 170, 22, .14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 16px 44px rgba(11, 15, 19, .1);
}
.profile-card h2 { margin: 0 0 22px; font-size: clamp(40px, 5vw, 64px); }
.profile-card p:not(.section-kicker) { max-width: 720px; color: var(--muted); font-size: 17px; }
.profile-card img { width: 100%; aspect-ratio: 1 / 1.05; border-radius: var(--radius); object-fit: cover; }
.profile-card__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.profile-card__tags span { padding: 8px 12px; border: 1px solid rgba(185, 106, 18, .28); color: #4f565d; font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }

.gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; }
.gallery-card { position: relative; margin: 0; overflow: hidden; border: 1px solid rgba(242, 170, 22, .14); border-radius: var(--radius); background: #111820; box-shadow: 0 12px 32px rgba(11, 15, 19, .1); }
/* Explicit height:auto overrides the image dimensions in the HTML so cards size responsively. */
.gallery-card img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .55s ease; }
.gallery-card:first-child { grid-column: span 2; }
.gallery-card:first-child img { aspect-ratio: 8 / 3; object-position: center 58%; }
.gallery-card:last-child { grid-column: 1 / -1; }
.gallery-card:last-child img { aspect-ratio: 3 / 1; object-position: center 64%; }
.gallery-card:hover img { transform: scale(1.025); }
.gallery-card figcaption { position: absolute; inset: auto 0 0; display: grid; gap: 3px; padding: 58px 20px 20px; background: linear-gradient(transparent, rgba(5, 9, 13, .92)); }
.gallery-card strong { color: #fff; font-size: 17px; }
.gallery-card span { color: #d8dde1; font-size: 13px; }

.updates-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.updates-grid article { display: flex; min-height: 330px; flex-direction: column; align-items: flex-start; padding: clamp(30px, 5vw, 55px); border: 1px solid rgba(242, 170, 22, .14); border-radius: var(--radius); background: rgba(255, 255, 255, .94); box-shadow: 0 12px 34px rgba(11, 15, 19, .08); }
.updates-grid h2 { margin: 0; font-size: clamp(34px, 4vw, 52px); }
.updates-grid p:not(.section-kicker) { color: var(--muted); }

.review-platform { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 45px; overflow: hidden; padding: clamp(34px, 5vw, 58px); border: 1px solid rgba(242, 170, 22, .16); border-radius: var(--radius); background: linear-gradient(120deg, rgba(255, 248, 230, .92), rgba(255, 255, 255, .98) 42%); box-shadow: 0 14px 38px rgba(11, 15, 19, .09); }
.review-platform::before { position: absolute; content: ""; inset: 0 auto 0 0; width: 5px; background: linear-gradient(var(--yellow), var(--orange)); }
.review-platform::after { position: absolute; content: "G"; right: clamp(24px, 4vw, 56px); top: -36px; color: rgba(185, 106, 18, .055); font-size: clamp(150px, 18vw, 260px); font-weight: 900; line-height: 1; pointer-events: none; }
.review-platform > * { position: relative; z-index: 1; }
.review-platform h2 { max-width: 720px; margin: 0; font-size: clamp(34px, 4vw, 52px); }
.review-platform p:not(.section-kicker) { max-width: 760px; color: var(--muted); }
.review-platform > .button { flex: 0 0 auto; }

@media (max-width: 1000px) {
  .page-hero__inner { grid-template-columns: 1fr .65fr; }
  .service-points, .related-grid, .service-index { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cta-band__inner { align-items: flex-start; flex-direction: column; }
  .directory-grid, .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-card:first-child { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .page-hero__inner { grid-template-columns: 1fr; padding-block: 58px; }
  .page-hero__media { min-height: 430px; }
  .page-hero__media img { min-height: 430px; }
  .content-grid, .content-grid--reverse, .contact-page__grid, .profile-card { grid-template-columns: 1fr; }
  .image-panel, .image-panel img { min-height: 480px; }
  .profile-card img { max-width: 520px; }
  .review-platform { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 620px) {
  .page-hero__inner { gap: 28px; padding-block: 38px 54px; }
  .page-hero h1 { font-size: clamp(39px, 12vw, 54px); }
  .page-hero__lead { font-size: 16px; }
  .page-hero__actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .cta-band__actions { align-items: stretch; flex-direction: column; width: 100%; }
  .page-hero__media, .page-hero__media img { min-height: 280px; }
  .service-points, .related-grid, .service-index { grid-template-columns: 1fr; }
  .service-point { min-height: 0; }
  .related-heading { align-items: flex-start; flex-direction: column; }
  .image-panel, .image-panel img { min-height: 390px; }
  .history-list li { grid-template-columns: 1fr; gap: 5px; }
  .directory-grid, .gallery-grid, .updates-grid { grid-template-columns: 1fr; }
  .directory-card { min-height: 0; }
  .gallery-card:first-child, .gallery-card:last-child { grid-column: auto; }
  .gallery-card:first-child img, .gallery-card:last-child img { aspect-ratio: 4 / 3; }
  .profile-card { padding: 24px; }
}
