/* ==========================================================================
   About page (templates/about.html)
   Same palette as header/footer and the other redesigned pages.
   ========================================================================== */

.about-page {
  --ab-ink: #171b24;
  --ab-muted: #676459;
  --ab-line: #e9e4d8;
  --ab-tint: #f7f5f0;
  --ab-primary: #1f2a44;
  --ab-primary-hover: #151d31;
  --ab-primary-soft: rgba(31, 42, 68, 0.08);
  --ab-gold: #b8903f;
  --ab-gold-soft: rgba(184, 144, 63, 0.12);
  --ab-shadow: 0 30px 60px -30px rgba(23, 27, 36, 0.4);

  color: var(--ab-muted);
}

/* style.css removes the container's side padding site-wide; restore it here */
.about-page .container {
  padding-left: calc(var(--bs-gutter-x) * 0.5);
  padding-right: calc(var(--bs-gutter-x) * 0.5);
}

.about-page h1,
.about-page h2,
.about-page h3 {
  color: var(--ab-ink);
}

.ab-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  color: var(--ab-gold);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.ab-eyebrow::before {
  content: "";
  width: 1.75rem;
  height: 1px;
  background: currentColor;
}

.ab-section-title {
  margin-bottom: 0.5rem;
  font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem);
  letter-spacing: 0;
}

.ab-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  font-size: 0.93rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.about-page .ab-btn-primary {
  background: var(--ab-primary);
  color: #fff;
  box-shadow: 0 12px 28px -12px rgba(31, 42, 68, 0.8);
}

.about-page .ab-btn-primary:hover {
  background: var(--ab-primary-hover);
  color: #fff;
  transform: translateY(-1px);
}

.about-page .ab-btn-ghost {
  border: 1px solid rgba(23, 27, 36, 0.15);
  color: var(--ab-ink);
}

.about-page .ab-btn-ghost:hover {
  border-color: var(--ab-primary);
  color: var(--ab-primary);
}

/* ---------- Hero ---------- */

.about-page .ab-hero {
  padding: 3.5rem 0 3rem;
  background: linear-gradient(180deg, var(--ab-tint), #fff 85%);
}

.ab-hero h1 {
  margin-bottom: 1rem;
  font-size: clamp(2.1rem, 1.3rem + 3vw, 3.6rem);
  line-height: 1.07;
  letter-spacing: 0;
}

.ab-hero .lead {
  max-width: 32rem;
  margin-bottom: 2rem;
  color: var(--ab-muted);
  font-size: 1.15rem;
  line-height: 1.7;
}

.ab-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.ab-collage {
  position: relative;
  margin: 0;
  padding: 0 0 3rem 3rem;
}

.ab-collage-main {
  display: block;
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  border-radius: 1.75rem;
  box-shadow: var(--ab-shadow);
}

.ab-collage-inset {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 42%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 6px solid #fff;
  border-radius: 1.25rem;
  box-shadow: var(--ab-shadow);
}

.ab-collage-badge {
  position: absolute;
  top: 1.25rem;
  right: -0.75rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.8rem 1rem;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 18px 36px -18px rgba(23, 27, 36, 0.45);
  color: var(--ab-ink);
  line-height: 1.2;
}

.ab-collage-badge strong {
  display: block;
  font-family: var(--bs-heading-font-family, "Playfair Display", Georgia, serif);
  font-size: 1.3rem;
}

.ab-collage-badge small {
  color: var(--ab-muted);
  font-size: 0.78rem;
}

.ab-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.85rem;
  background: var(--ab-primary-soft);
  color: var(--ab-primary);
  font-size: 1.2rem;
}

.ab-icon.is-gold {
  background: var(--ab-gold-soft);
  color: var(--ab-gold);
}

/* ---------- Stats ---------- */

.ab-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--ab-line);
  border-radius: 1.25rem;
  background: #fff;
}

.ab-stats li {
  padding: 1.5rem 1.25rem;
  text-align: center;
}

.ab-stats li + li {
  border-left: 1px solid var(--ab-line);
}

.ab-stats strong {
  display: block;
  color: var(--ab-ink);
  font-family: var(--bs-heading-font-family, "Playfair Display", Georgia, serif);
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  line-height: 1.1;
}

.ab-stats span {
  font-size: 0.88rem;
}

/* ---------- Story ---------- */

.about-page .ab-story {
  padding: 5rem 0 2rem;
}

.ab-story-aside {
  position: sticky;
  top: 7rem;
}

.ab-quote {
  position: relative;
  margin: 1.75rem 0 0;
  padding: 1.5rem 1.5rem 1.5rem 1.75rem;
  border-left: 3px solid var(--ab-gold);
  border-radius: 0 1rem 1rem 0;
  background: var(--ab-tint);
  color: var(--ab-ink);
  font-family: var(--bs-heading-font-family, "Playfair Display", Georgia, serif);
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1.5;
}

.ab-story-body {
  font-size: 1.07rem;
  line-height: 1.85;
}

.ab-story-body p:first-child::first-letter {
  float: left;
  margin: 0.35rem 0.6rem 0 0;
  color: var(--ab-primary);
  font-family: var(--bs-heading-font-family, "Playfair Display", Georgia, serif);
  font-size: 3.4rem;
  font-weight: 700;
  line-height: 0.85;
}

.ab-story-body strong {
  color: var(--ab-ink);
}

/* ---------- Amenities ---------- */

.about-page .ab-amenities {
  padding: 4rem 0 2rem;
}

.ab-amenity {
  display: flex;
  align-items: center;
  gap: 1rem;
  height: 100%;
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--ab-line);
  border-radius: 1rem;
  background: #fff;
  color: var(--ab-ink);
  font-weight: 600;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.ab-amenity:hover {
  border-color: transparent;
  box-shadow: 0 16px 32px -20px rgba(23, 27, 36, 0.35);
  transform: translateY(-2px);
}

.ab-amenity img {
  width: 1.5rem;
  height: 1.5rem;
  object-fit: contain;
}

/* Phones: two tiles per row leave ~64px for the label beside the icon ("Kid- / friendly"),
   so stack the icon above it */
@media (max-width: 575.98px) {
  .ab-amenity {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.7rem;
    padding: 1rem;
    line-height: 1.3;
  }
}

/* ---------- Nearby + photos ---------- */

.about-page .ab-explore {
  padding: 4rem 0 2rem;
}

.ab-nearby {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.ab-nearby a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--ab-line);
  color: var(--ab-ink);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.ab-nearby a:hover {
  color: var(--ab-primary);
}

.ab-nearby small {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--ab-gold);
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
}

.ab-more {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 1.25rem;
  color: var(--ab-primary);
  font-weight: 600;
  text-decoration: none;
}

.ab-more i {
  transition: transform 0.2s ease;
}

.ab-more:hover i {
  transform: translateX(3px);
}

.ab-photos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ab-photos a {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 1rem;
  color: #fff;
  text-decoration: none;
}

.ab-photos a::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(10, 14, 23, 0.7), transparent 55%);
}

.ab-photos span {
  position: absolute;
  left: 0.9rem;
  right: 0.9rem;
  bottom: 0.75rem;
  z-index: 1;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.3;
}

.ab-photos img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.ab-photos a:hover img {
  transform: scale(1.05);
}

/* ---------- CTA ---------- */

.about-page .ab-cta {
  padding: 4rem 0 5rem;
}

.ab-cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 2rem;
  padding: clamp(1.75rem, 4vw, 2.75rem);
  border-radius: 1.5rem;
  background:
    radial-gradient(40rem 18rem at 100% 0%, rgba(217, 182, 106, 0.18), transparent 60%),
    var(--ab-ink);
  color: rgba(255, 255, 255, 0.72);
}

.ab-cta-inner h2 {
  margin-bottom: 0.4rem;
  color: #fff;
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
}

.ab-cta-inner p {
  max-width: 34rem;
  margin: 0;
}

.ab-cta-inner .ab-btn-ghost {
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
}

.ab-cta-inner .ab-btn-ghost:hover {
  border-color: #d9b66a;
  color: #d9b66a;
}

/* ---------- Focus, motion, responsive ---------- */

.about-page a:focus-visible {
  outline: 2px solid var(--ab-primary);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .about-page * {
    transition: none !important;
  }
}

@media (max-width: 991.98px) {
  .ab-story-aside {
    position: static;
  }

  .ab-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ab-stats li:nth-child(3) {
    border-left: 0;
  }

  .ab-stats li:nth-child(n + 3) {
    border-top: 1px solid var(--ab-line);
  }
}

@media (max-width: 575.98px) {
  .about-page .ab-hero {
    padding: 2.25rem 0 2rem;
  }

  .ab-collage {
    padding: 0 0 2rem 1.5rem;
  }

  .ab-collage-badge {
    right: 0.5rem;
    top: 0.75rem;
    padding: 0.6rem 0.8rem;
  }

  .ab-collage-badge strong {
    font-size: 1.1rem;
  }

  .ab-hero-actions .ab-btn,
  .ab-cta-inner .ab-btn {
    flex: 1 1 100%;
  }

  .about-page .ab-story {
    padding-top: 3.5rem;
  }
}
