/* ============================================================
   J. AUSTIN & SONS — INNER PAGE SYSTEM
   Extends the approved homepage design system (style.css).
   Load AFTER style.css. Adds reusable inner-page components:
   page hero, breadcrumbs, prose, alternating blocks,
   feature cards, galleries, CTA band — all on homepage tokens.
============================================================ */

/* ---------- Page hero banner ---------- */
.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--navy-deep);
}
.page-hero__media,
.page-hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.page-hero__media img { object-fit: cover; object-position: center; }
.page-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(78deg, rgba(8,28,51,0.94) 0%, rgba(13,44,78,0.82) 48%, rgba(13,44,78,0.55) 100%);
}
.page-hero__inner {
  position: relative;
  z-index: 1;
  padding-block: clamp(3rem, 7vw, 5.5rem);
}
.page-hero__title {
  color: var(--white);
  margin: 0.3em 0 0;
  text-shadow: 0 2px 20px rgba(8,28,51,0.4);
}
.page-hero__lede {
  color: #DDEAF9;
  font-size: clamp(1.02rem, 1rem + 0.4vw, 1.22rem);
  max-width: 42em;
  margin: 1rem 0 0;
}
/* Compact variant for utility pages */
.page-hero--slim .page-hero__inner { padding-block: clamp(2.25rem, 5vw, 3.5rem); }

/* ---------- Breadcrumbs ---------- */
.breadcrumb {
  font-size: var(--fs-300);
  font-weight: 600;
}
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  list-style: none;
}
.page-hero .breadcrumb { color: #AFC7E4; }
.page-hero .breadcrumb a { color: #DDEAF9; text-decoration: none; }
.page-hero .breadcrumb a:hover { color: var(--yellow); }
.breadcrumb li { display: inline-flex; align-items: center; gap: 0.4rem; }
.breadcrumb li + li::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  opacity: 0.5;
}
.breadcrumb [aria-current="page"] { color: var(--yellow); }

/* ---------- Prose / readable body ---------- */
.prose {
  max-width: 42rem;
  font-size: 1.06rem;
  color: var(--ink-soft);
}
.prose > * + * { margin-top: 1.15em; }
.prose h2, .prose h3 { color: var(--navy-deep); }
.prose strong { color: var(--ink); }
.prose a { color: var(--blue); text-underline-offset: 3px; }

.lead {
  font-size: clamp(1.15rem, 1.05rem + 0.6vw, 1.4rem);
  line-height: 1.5;
  color: var(--ink);
  font-weight: 500;
}

/* ---------- Alternating image/text block ---------- */
.feature-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.feature-block + .feature-block { margin-top: clamp(3rem, 6vw, 5rem); }
.feature-block__media { margin: 0; }
.feature-block__media img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  object-fit: cover;
  aspect-ratio: 4 / 3;
}
.feature-block--reverse .feature-block__media { order: 2; }
.feature-block__copy p { color: var(--ink-soft); }

/* ---------- Content card band (e.g. Castle callout) ---------- */
.callout {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 5px solid var(--yellow);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 4vw, 2.75rem);
  box-shadow: var(--shadow-sm);
}
.callout__logo {
  display: grid;
  place-items: center;
  width: clamp(9rem, 20vw, 12rem);
}
.callout__logo img { width: 100%; height: auto; }
.callout__copy p { color: var(--ink-soft); margin-bottom: 0.9em; }
.callout__copy p:last-child { margin-bottom: 0; }

/* ---------- Value / feature card grid (reuses homepage why-card look) ---------- */
.value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.5rem;
}

/* ---------- Simple stat strip (reuses homepage .stat) ---------- */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: 1.5rem;
  padding: clamp(1.75rem, 4vw, 2.5rem);
  background: var(--navy-deep);
  border-radius: var(--radius-lg);
  text-align: center;
}
.stat-strip .stat__num { color: var(--yellow); }
.stat-strip .stat__label { color: #C9DCF2; }

/* ---------- Department / category grid (reuses homepage dept-card) ---------- */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: 1.25rem;
  list-style: none;
}

/* ---------- Product / image gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
  gap: 1rem;
  list-style: none;
}
.gallery li { margin: 0; }
.gallery figure { margin: 0; }
.gallery img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease), box-shadow 0.3s var(--ease);
}
.gallery a { display: block; border-radius: var(--radius); overflow: hidden; }
.gallery a:hover img,
.gallery a:focus-visible img { transform: scale(1.04); box-shadow: var(--shadow-md); }

/* ---------- Info list (specs, features, bullet content) ---------- */
.spec-list {
  list-style: none;
  display: grid;
  gap: 0.85rem;
}
.spec-list li {
  display: flex;
  gap: 0.75rem;
  align-items: baseline;
  color: var(--ink-soft);
}
.spec-list li::before {
  content: "";
  flex: none;
  width: 1rem;
  height: 5px;
  background: var(--yellow);
  border-radius: 2px;
  transform: translateY(-3px);
}

/* ---------- Inline CTA band (reuses homepage .cta gradient) ---------- */
.cta-band {
  background: linear-gradient(115deg, var(--navy-ink) 0%, var(--navy-deep) 55%, var(--navy) 100%);
  color: #D7E5F5;
  text-align: center;
}
.cta-band__inner { max-width: 46rem; margin-inline: auto; }
.cta-band h2 { color: var(--white); }
.cta-band p { color: #C9DCF2; font-size: 1.08rem; margin-bottom: 1.8rem; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; justify-content: center; }
.cta-band .btn--outline { color: var(--white); border-color: rgba(255,255,255,0.6); }
.cta-band .btn--outline:hover { background: var(--white); color: var(--navy-deep); border-color: var(--white); }

/* ---------- Two-column content + aside ---------- */
.with-aside {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.aside-card {
  background: var(--paper);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2rem);
  position: sticky;
  top: 7rem;
}
.aside-card h3 { margin-bottom: 0.8rem; }
.aside-card .btn { width: 100%; margin-top: 0.5rem; }

/* ---------- Contact detail rows ---------- */
.contact-rows { list-style: none; display: grid; gap: 1.25rem; }
.contact-rows li { display: flex; gap: 1rem; align-items: flex-start; }
.contact-rows__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
}
.contact-rows__icon svg { width: 1.35rem; height: 1.35rem; fill: currentColor; }
.contact-rows__label {
  display: block;
  font-size: var(--fs-200);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.15rem;
}
.contact-rows a { color: var(--navy-deep); text-decoration: none; font-weight: 600; }
.contact-rows a:hover { color: var(--blue); }

/* ---------- Thank-you / confirmation page ---------- */
.thankyou { min-height: 60vh; display: grid; place-items: center; }
.thankyou__inner { max-width: 40rem; margin-inline: auto; text-align: center; }
.thankyou__mark {
  display: grid;
  place-items: center;
  width: 5rem;
  height: 5rem;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  box-shadow: var(--shadow-md);
}
.thankyou__mark svg { width: 2.5rem; height: 2.5rem; fill: currentColor; }
.thankyou__lede { font-size: 1.15rem; color: var(--ink-soft); margin: 0.75rem 0 2rem; }
.thankyou__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; justify-content: center; }

/* ---------- Responsive video frame ---------- */
.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--navy-ink);
}
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Kayak model cards ---------- */
.kayak-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr));
  gap: 1.5rem;
}
.kayak-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.kayak-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.kayak-card__media { margin: 0; background: var(--paper); }
.kayak-card__media img { width: 100%; aspect-ratio: 16 / 9; object-fit: contain; padding: 1rem; }
.kayak-card__body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; gap: 0.75rem; }
.kayak-card__name { color: var(--navy-deep); margin: 0; }
.kayak-card__body p { color: var(--ink-soft); font-size: 0.98rem; margin: 0; }
.kayak-card__specs {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(6rem, 1fr));
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
}
.kayak-card__specs li {
  display: flex;
  flex-direction: column;
  font-weight: 700;
  color: var(--navy-deep);
  font-size: 0.95rem;
}
.kayak-card__specs span {
  font-size: var(--fs-200);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.1rem;
}

/* ---------- Rate list (rentals) ---------- */
.rate-list { list-style: none; display: grid; gap: 0.75rem; }
.rate-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--line);
}
.rate-list li:last-child { border-bottom: 0; }
.rate-list__label { color: var(--ink-soft); font-weight: 600; }
.rate-list__price { color: var(--navy-deep); font-weight: 700; font-size: 1.15rem; }

/* ---------- Checkbox label helper (rental/quote fieldsets) ---------- */
.rent-check {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  font-size: var(--fs-300);
  color: var(--ink);
}
.rent-check input { flex: none; width: 1.05rem; height: 1.05rem; accent-color: var(--navy); }

/* ---------- Map embed ---------- */
.map-embed {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
}
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Policy / long-form document ---------- */
.doc { max-width: 48rem; }
.doc h2 { margin-top: 2.2rem; font-size: var(--fs-700); }
.doc h2:first-child { margin-top: 0; }
.doc h3 { margin-top: 1.6rem; }
.doc p, .doc li { color: var(--ink-soft); }
.doc ul, .doc ol { margin: 0 0 1em; padding-left: 1.3rem; }
.doc li { margin-bottom: 0.5rem; }

/* ---------- Responsive ---------- */
@media (max-width: 68rem) {
  .feature-block,
  .with-aside { grid-template-columns: 1fr; }
  .feature-block--reverse .feature-block__media { order: 0; }
  .aside-card { position: static; }
}
@media (max-width: 40rem) {
  .callout { grid-template-columns: 1fr; text-align: center; }
  .callout__logo { margin-inline: auto; }
  .gallery { grid-template-columns: 1fr 1fr; }
}
