/* inner page sections — filled in by Task 9+ */

/* ===== Task 8 — gallery & blog ===== */

/* ---------- /gallery/ — responsive image grid ---------- */
.gal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}
.gal-item {
  margin: 0;
  background: var(--white, #fff);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--tr);
}
.gal-item:hover { box-shadow: var(--sh-2); border-color: #ffd9b3; }
.gal-item__link {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--bg-alt);
}
.gal-item__link picture { display: block; }
.gal-item__link img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.gal-item__link:hover img,
.gal-item__link:focus-visible img { transform: scale(1.05); }
.gal-item__link:focus-visible { outline: 2px solid var(--orange); outline-offset: -2px; }
.gal-item__zoom {
  position: absolute;
  inset-block-end: 10px;
  inset-inline-end: 10px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(17, 35, 55, 0.75);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.gal-item__link:hover .gal-item__zoom,
.gal-item__link:focus-visible .gal-item__zoom { opacity: 1; transform: none; }
.gal-item figcaption {
  padding: 12px 14px;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.7;
}

/* ---------- empty states (gallery / blog) ---------- */
.empty-state {
  max-width: 620px;
  margin-inline: auto;
  text-align: center;
}
.empty-state i { font-size: 1.7rem; color: var(--orange); }
.empty-state .panel__title { margin-top: 10px; }
.empty-state .panel__sub { margin-bottom: 14px; }

/* ---------- /blog/ — article cards ---------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.post-card {
  display: grid;
  gap: 12px;
  align-content: start;
  background: var(--white, #fff);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--tr);
}
.post-card:hover { box-shadow: var(--sh-2); transform: translateY(-4px); }
.post-card__media {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-alt);
}
.post-card__media picture { display: block; height: 100%; }
.post-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.post-card:hover .post-card__media img { transform: scale(1.05); }
.post-card__body { padding: 2px 18px 20px; }
.post-card__date {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--orange-ink, #b35c00);
  font-size: 0.76rem;
  font-weight: 700;
}
.post-card__cat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-block-start: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--orange-soft);
  color: var(--orange-ink-700, #8f4a00);
  font-size: 0.74rem;
  font-weight: 700;
  width: fit-content;
}
.post-card__title {
  color: var(--navy);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.7;
  margin: 8px 0 0;
}
.post-card__title a:hover { color: var(--orange); }
.post-card__text {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.85;
  margin: 8px 0 12px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-card__more { font-size: 0.88rem; }

/* ---------- modal lightbox (gallery) ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 960;
  display: grid;
  place-items: center;
  padding: 24px;
}
.lightbox[hidden] { display: none; }
.lightbox__scrim {
  position: absolute;
  inset: 0;
  background: rgba(5, 13, 23, 0.92);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.lightbox.is-open .lightbox__scrim { opacity: 1; }
.lightbox__stage {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: min(1080px, 100%);
  display: grid;
  justify-items: center;
  gap: 10px;
}
.lightbox__img {
  max-width: 100%;
  max-height: 74vh;
  width: auto;
  height: auto;
  border-radius: var(--radius);
  background: #050d17;
  box-shadow: var(--sh-2);
}
.lightbox__caption {
  color: #e9eef4;
  font-size: 0.92rem;
  text-align: center;
  max-width: 60ch;
}
.lightbox__caption:empty { display: none; }
.lightbox__count { color: #93a3b5; font-size: 0.8rem; }
.lightbox__count:empty { display: none; }
.lightbox__btn {
  position: absolute;
  z-index: 2;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: var(--tr);
}
.lightbox__btn:hover { background: var(--orange); }
.lightbox__btn:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; }
.lightbox__btn--close { inset-block-start: 16px; inset-inline-start: 16px; }
.lightbox__btn--prev,
.lightbox__btn--next { inset-block-start: 50%; margin-block-start: -23px; }
.lightbox__btn--prev { inset-inline-start: 16px; }
.lightbox__btn--next { inset-inline-end: 16px; }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .blog-grid { grid-template-columns: 1fr; }
  .gal-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .lightbox { padding: 14px; }
  .lightbox__img { max-height: 66vh; }
  .lightbox__btn { width: 44px; height: 44px; }
  .lightbox__btn--prev { inset-inline-start: 8px; }
  .lightbox__btn--next { inset-inline-end: 8px; }
}
@media (max-width: 400px) {
  .gal-grid { grid-template-columns: 1fr; }
}

/* ===== end Task 8 ===== */

/* ===== Task 9 — inner pages (store / about / call / new / privacy / 404) =====
   pages.css loads AFTER style.css and ONLY on inner pages ($page_css='pages'),
   so equal-specificity rules here replace the legacy amber (--accent) accents
   with the tirgerd tokens. Legacy MEDIA-QUERY rules in style.css still match
   at small viewports — wherever geometry is restated here, the responsive
   rules are restated too (a later base rule beats an earlier media rule).
   Only colour/visual properties are overridden unless noted, so legacy
   responsive repositioning (e.g. .about__badge @760) keeps working. */

/* ---------- accessible orange text tokens (see axe baseline, Task 9) ----------
   --orange      #f78a21 = 2.75:1 on white — large brand blocks only
   --orange-ink  #b35c00 = 4.7:1 on white  — small text on white
   --orange-ink-700 #8f4a00 = 6.1:1 on orange-soft — small text on tinted bg */
:root {
  --orange-ink: #a85400;
  --orange-ink-700: #8f4a00;
}

/* ------------------------------ shared chrome ----------------------------- */
.sec-eyebrow { color: var(--orange-ink); }
.on-dark .sec-eyebrow,
.section--dark .sec-eyebrow { color: var(--orange); }

.link-arrow { color: var(--orange-ink); }
.link-arrow:hover { color: var(--orange-ink-700); }

.chip { color: var(--orange-ink-700); }
.chip i { color: var(--orange-ink-700); }
a.chip:hover { border-color: var(--orange); }

/* inner-page hero band (page_head partial) */
.page-head__scrim {
  background: linear-gradient(115deg, rgba(11, 22, 38, 0.96) 10%, rgba(17, 35, 55, 0.8) 70%, rgba(11, 22, 38, 0.92) 100%);
}
.crumbs i { color: var(--orange); }
.crumbs a:hover { color: var(--yellow); }
.page-head__stat strong { color: var(--yellow); }

/* long-form reading typography (plan CSS contract: .content) */
.content { max-width: 760px; }
.content h2 { color: var(--navy); font-size: 1.35rem; margin-top: 28px; }
.content p { color: var(--muted); line-height: 2.1; }

/* ================================ /store/ ================================= */
.prod-card {
  background: var(--white);
  border-radius: var(--radius);
  transition: transform var(--tr), box-shadow var(--tr), border-color var(--tr);
}
.prod-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--sh-2);
  border-color: #ffd9b3;
}
.prod-card__media {
  aspect-ratio: 4 / 3;
  background: var(--bg-alt);
}
.prod-card__badge {
  inset-block-start: 12px;
  inset-inline-start: 12px;
  background: var(--orange-ink);
  color: #fff;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
}
.prod-card__cat {
  inset-block-end: 12px;
  inset-inline-end: 12px;
  inset-inline-start: auto;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 600;
}
.prod-card__body {
  padding: 20px;
  gap: 12px;
}
.prod-card__title { margin: 0; color: var(--navy); font-size: 1.1rem; }
.prod-card__desc { margin: 0; font-size: 0.92rem; }
.prod-card__specs {
  margin-top: auto;
  padding-top: 0;
  border-top: 0;
  gap: 10px;
}
.spec { background: var(--bg-alt); border-radius: var(--radius-sm); }
.spec__k { font-size: 0.74rem; color: var(--muted); }
.spec__v { color: var(--navy); font-size: 0.95rem; }
.prod-card__foot { margin-top: 0; }
/* CTA → solid inquiry button (same href: /call/#form) */
.prod-card__cta {
  justify-content: center;
  width: 100%;
  padding: 11px 18px;
  border-radius: var(--radius);
  background: var(--orange-ink);
  color: #fff;
  font-size: 0.92rem;
  font-weight: 700;
}
.prod-card__cta i {
  width: auto; height: auto;
  display: inline;
  border: 0; border-radius: 0;
  background: none;
  font-size: 0.85em;
}
.prod-card:hover .prod-card__cta { background: var(--orange-ink-700); color: #fff; }
.prod-card:hover .prod-card__cta i {
  background: none; border: 0; color: inherit; transform: none;
}

/* ================================ /about/ ================================= */
.about__frame { border-radius: var(--radius); }
.about__badge {
  background: var(--orange);
  color: var(--navy);
  border-inline-end-color: var(--yellow);
}
.about__badge strong { color: var(--navy); }
.about__badge span { color: rgba(17, 35, 55, 0.8); }
@media (max-width: 760px) {
  .about__badge { border-top-color: var(--yellow); }
}

.check-item:hover { border-color: var(--orange); }
.check-item i {
  background: var(--orange-soft);
  color: var(--orange-ink-700);
}

/* vision cards (.why-*) — restyled unscoped: only /about/ loads pages.css
   with these; the homepage #why block lives in home.css and never sees this */
.why-card::before { background: linear-gradient(90deg, var(--orange), var(--yellow)); }
.why-card:hover { border-color: #ffd9b3; }
.why-card__icon {
  background: var(--orange-soft);
  color: var(--orange-ink-700);
  border-radius: 12px;
}
.why-card__title { color: var(--navy); }

.member:hover { border-color: #ffd9b3; }
.member__avatar {
  background: var(--orange-soft);
  color: var(--orange-ink-700);
  box-shadow: 0 0 0 6px rgba(247, 138, 33, 0.14);
}
.member__name { color: var(--navy); }

/* ================================ /call/ ================================== */
.info-card:hover { border-inline-start-color: var(--orange); }
.info-card__ico {
  background: var(--orange-soft);
  color: var(--orange-ink-700);
  border-radius: var(--radius-sm);
}
.info-card__v a[href^="tel:"] { color: var(--orange-ink) !important; }
.info-card__v a:hover { color: var(--orange-ink-700) !important; }

.field label .req { color: var(--orange-ink); }
.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px var(--orange-soft);
}

.acc__meta i { color: var(--orange-600); }
.acc__item.is-open { border-color: #ffd9b3; }
.acc__item.is-open .acc__ico { background: var(--orange-ink); color: #fff; }

.mapbox__pin {
  background: var(--orange);
  color: var(--navy);
  box-shadow: 0 0 0 10px rgba(247, 138, 33, 0.16);
}

.table tbody tr:hover td { background: var(--orange-soft); }

/* ================================ /new/ =================================== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.news-card {
  display: grid;
  gap: 12px;
  align-content: start;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--tr);
}
.news-card:hover { box-shadow: var(--sh-2); transform: translateY(-4px); border-color: #ffd9b3; }
.news-card__media {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-alt);
}
.news-card__media picture { display: block; height: 100%; }
.news-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.news-card:hover .news-card__media img { transform: scale(1.05); }
.news-card__body { padding: 2px 18px 20px; }
.news-card__date {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--orange-ink);
  font-size: 0.76rem;
  font-weight: 700;
}
.news-card__cat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-block-start: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--orange-soft);
  color: var(--orange-ink-700);
  font-size: 0.74rem;
  font-weight: 700;
  width: fit-content;
}
.news-card__title {
  color: var(--navy);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.7;
  margin: 8px 0 0;
}
.news-card__text {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.85;
  margin: 8px 0 0;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ================================ /404/ =================================== */
.nf__code { color: var(--navy); }
.nf__code em { color: var(--orange); }

/* ------------------------------ responsive ------------------------------- */
@media (max-width: 1024px) {
  .news-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .news-grid { grid-template-columns: 1fr; }
  .prod-card__cta { width: auto; }
  .prod-card__foot { justify-content: flex-start; }
}

/* ===== end Task 9 ===== */
