/*!
 * About page (app/pages/about.php) — loaded after main.css; builds on its tokens and components.
 *  1. Hero caption   2. Intro + collage   3. Explore · Discover · Experience   4. Points
 *  5. Story chapters + "At a glance"      6. Base in Portimão (drive times + map)   7. CTA
 */

/* =========================================================================================
   1. Hero
   ========================================================================================= */
.gt-about-hero__caption {
  position: absolute;
  right: calc(var(--bs-gutter-x, 2.5rem) * 0.5);
  bottom: 1.5rem;
  z-index: 1;
  display: none;
  align-items: center;
  gap: 0.4375rem;
  margin: 0;
  padding: 0.375rem 0.875rem 0.375rem 0.6875rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--gt-radius-pill);
  background: rgba(6, 20, 42, 0.32);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.gt-about-hero__caption .bi { color: var(--gt-gold-300); }
@media (min-width: 768px) {
  .gt-about-hero__caption { display: inline-flex; }
}

/* =========================================================================================
   2. Intro chapter + photo collage
   ========================================================================================= */
.gt-about-intro { padding-top: clamp(4.5rem, 3rem + 4vw, 7rem); }
.gt-about-intro__title { margin: 0 0 1.5rem; font-size: var(--gt-fs-h2); }
.gt-about-intro__prose > p:first-child {
  font-size: var(--gt-fs-lead);
  line-height: 1.65;
  color: var(--gt-ink);
}
.gt-about-intro__prose strong { color: var(--gt-navy-900); }
.gt-about-collage {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem clamp(3rem, 2rem + 4vw, 5rem) 0;
}
.gt-about-collage::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 58%;
  height: 72%;
  border: 1px solid var(--gt-gold-300);
  border-radius: var(--gt-radius-lg);
}
.gt-about-collage__main {
  position: relative;
  z-index: 1;
  display: block;
  width: 86%;
  margin-left: auto;
  aspect-ratio: 4 / 4.5;
  object-fit: cover;
  object-position: 14% 50%; /* the village and its church, not the open sky */
  border-radius: var(--gt-radius-lg);
  box-shadow: var(--gt-shadow-lg);
}
.gt-about-collage__inset {
  position: absolute;
  z-index: 2;
  left: 0;
  bottom: 0;
  width: 44%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 60%;
  border: 7px solid var(--gt-ivory);
  border-radius: var(--gt-radius-lg);
  box-shadow: var(--gt-shadow-xl);
}
.gt-about-collage__caption {
  position: absolute;
  z-index: 3;
  right: 2.5rem;
  bottom: calc(clamp(3rem, 2rem + 4vw, 5rem) + 1rem);
  display: inline-flex;
  align-items: center;
  gap: 0.4375rem;
  padding: 0.375rem 0.875rem 0.375rem 0.6875rem;
  border-radius: var(--gt-radius-pill);
  background: rgba(6, 20, 42, 0.6);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.gt-about-collage__caption .bi { color: var(--gt-gold-300); }

/* =========================================================================================
   3. Explore · Discover · Experience
   ========================================================================================= */
.gt-about-values {
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(80% 90% at 100% 0%, rgba(28, 58, 99, 0.9) 0%, rgba(11, 31, 58, 0) 60%),
    var(--gt-navy-900);
}
.gt-about-values::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-color: var(--gt-gold-500);
  opacity: 0.05;
  -webkit-mask: url("../../img/ui/pattern-azulejo.svg") repeat 0 0 / 120px 120px;
  mask: url("../../img/ui/pattern-azulejo.svg") repeat 0 0 / 120px 120px;
  pointer-events: none;
}
.gt-about-values__grid {
  display: grid;
  gap: clamp(1rem, 0.75rem + 1vw, 1.75rem);
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 768px) {
  .gt-about-values__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 992px) {
  .gt-about-values__grid > :nth-child(2) { margin-top: 3rem; }
  .gt-about-values { padding-bottom: calc(var(--gt-section-y) + 1rem); }
}
.gt-about-value {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: clamp(400px, 26rem + 6vw, 540px);
  padding: clamp(1.5rem, 1.25rem + 1vw, 2.25rem);
  border: 1px solid rgba(197, 162, 83, 0.28);
  border-radius: var(--gt-radius-lg);
  background: var(--gt-navy-800);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6);
}
.gt-about-value__media { position: absolute; inset: 0; z-index: -2; }
.gt-about-value__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--gt-value-focus, 50% 50%);
  transition: transform 1.6s var(--gt-ease-out);
}
.gt-about-value:hover .gt-about-value__media img { transform: scale(1.05); }
.gt-about-value::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(6, 20, 42, 0.05) 25%, rgba(6, 20, 42, 0.62) 55%, rgba(6, 20, 42, 0.95) 100%);
}
.gt-about-value__num {
  display: block;
  margin-bottom: 0.5rem;
  font-family: var(--gt-font-display);
  font-size: 1.25rem;
  font-style: italic;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--gt-gold-300);
}
.gt-about-value__title {
  margin: 0 0 0.75rem;
  font-size: clamp(2.5rem, 2rem + 1.6vw, 3.375rem);
  line-height: 1;
  color: #fff;
}
.gt-about-value__text { max-width: 34ch; margin: 0; font-size: 0.9375rem; line-height: 1.6; color: rgba(255, 255, 255, 0.84); }

/* =========================================================================================
   4. Points (the client's four flyer points, from the CMS body's <h3> groups)
   ========================================================================================= */
.gt-about-points__intro { max-width: 62ch; margin: 1rem auto 0; color: var(--gt-muted); }
.gt-about-points__grid {
  display: grid;
  gap: clamp(1rem, 0.75rem + 1vw, 1.5rem);
  grid-template-columns: minmax(0, 1fr);
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 576px) {
  .gt-about-points__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1200px) {
  /* Four flyer points in one row; any other count keeps the balanced two-column grid. */
  .gt-about-points__grid:has(> :nth-child(4):last-child) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.gt-about-point {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 2rem 1.75rem 1.75rem;
  background: #fff;
  border: 1px solid rgba(231, 225, 214, 0.9);
  border-radius: var(--gt-radius-lg);
  box-shadow: var(--gt-shadow-sm);
  transition: transform 0.5s var(--gt-ease), box-shadow 0.5s var(--gt-ease), border-color 0.5s var(--gt-ease);
}
.gt-about-point::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 1.75rem;
  width: 3rem;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: var(--gt-gold-500);
}
.gt-about-point:hover { transform: translateY(-4px); box-shadow: var(--gt-shadow-lg); border-color: rgba(197, 162, 83, 0.45); }
.gt-about-point__num {
  display: block;
  margin-bottom: 1.25rem;
  font-family: var(--gt-font-display);
  font-size: 3rem;
  font-weight: 600;
  line-height: 1;
  color: var(--gt-gold-500);
  font-variant-numeric: lining-nums;
}
.gt-about-point__title { margin: 0 0 0.75rem; font-size: 1.5rem; line-height: 1.2; }
.gt-about-point__text { font-size: 0.9375rem; line-height: 1.65; color: var(--gt-muted); }
.gt-about-point__text p { margin-bottom: 0.75rem; }

/* =========================================================================================
   5. Story chapters + "At a glance"
   ========================================================================================= */
.gt-about-chapters { display: grid; gap: clamp(2.5rem, 2rem + 2vw, 3.5rem); }
.gt-about-chapter { position: relative; padding-top: 2rem; border-top: 1px solid var(--gt-stone); }
.gt-about-chapter::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 3.5rem;
  height: 1px;
  background: var(--gt-gold-500);
}
.gt-about-chapter__title { margin: 0 0 1.25rem; font-size: var(--gt-fs-h3); }
.gt-about-chapter__body { max-width: 68ch; }
.gt-about-chapter__body ul { padding-left: 0; list-style: none; display: grid; gap: 0.625rem; }
.gt-about-chapter__body ul > li { position: relative; margin: 0; padding-left: 1.75rem; }
.gt-about-chapter__body ul > li::before {
  content: "";
  position: absolute;
  left: 0.3125rem;
  top: 0.62em;
  width: 7px;
  height: 7px;
  transform: rotate(45deg);
  border: 1px solid var(--gt-gold-600);
}
.gt-about-chapter__body strong { color: var(--gt-navy-900); }

.gt-about-glance {
  --gt-focus: var(--gt-gold-500);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(1.75rem, 1.5rem + 1vw, 2.25rem);
  border-radius: var(--gt-radius-lg);
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(28, 58, 99, 0.9) 0%, rgba(11, 31, 58, 0) 60%),
    var(--gt-navy-900);
  color: rgba(255, 255, 255, 0.8);
  box-shadow: var(--gt-shadow-xl);
}
@media (min-width: 992px) {
  .gt-about-glance { position: sticky; top: calc(var(--gt-header-h) + 2rem); }
}
.gt-about-glance__mark { position: absolute; z-index: -1; right: -2.25rem; bottom: -1.5rem; width: 13rem; color: #fff; opacity: 0.07; pointer-events: none; }
.gt-about-glance__emblem { display: block; width: 100%; height: auto; }
.gt-about-glance__emblem .gt-mark-accent { fill: var(--gt-gold-300); }
.gt-about-glance__title {
  margin: 0 0 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(197, 162, 83, 0.3);
  font-size: 1.875rem;
  color: #fff;
}
.gt-about-glance__list { display: grid; gap: 1.125rem; margin: 0; }
.gt-about-glance__list dt {
  margin-bottom: 0.25rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gt-gold-500);
}
.gt-about-glance__list dd { margin: 0; font-weight: 600; line-height: 1.5; color: #fff; }
.gt-about-glance__rnaat { display: block; margin-top: 0.375rem; font-weight: 700; color: var(--gt-gold-300); }
.gt-about-glance__contact { display: grid; gap: 0.5rem; justify-items: start; }
.gt-about-glance__link { display: inline-flex; align-items: center; gap: 0.5rem; color: #fff; font-weight: 600; text-decoration: none; }
.gt-about-glance__link:hover { color: var(--gt-gold-300); text-decoration: underline; text-decoration-color: var(--gt-gold-500); }
.gt-about-glance__link .bi { color: var(--gt-gold-300); }
/* Long addresses wrap at the <wbr> points (after "@", before dots), not inside a word. */
.gt-about-glance__email { min-width: 0; overflow-wrap: anywhere; }
.gt-about-glance .gt-phone-note { margin: -0.25rem 0 0.25rem 1.5rem; font-size: 0.75rem; font-weight: 400; color: rgba(255, 255, 255, 0.6); }
.gt-about-glance__more { margin-top: 1.75rem; color: #fff; }
.gt-about-glance__more:hover { color: var(--gt-gold-300); }

/* =========================================================================================
   6. Base in Portimão: drive times + map
   ========================================================================================= */
.gt-about-times__title {
  margin: 0 0 0.75rem;
  font-family: var(--gt-font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gt-gold-700);
}
.gt-about-times { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--gt-stone); }
.gt-about-times__item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.875rem;
  padding: 0.6875rem 0;
  border-bottom: 1px solid var(--gt-stone);
}
.gt-about-times__num {
  display: grid;
  place-items: center;
  width: 1.875rem;
  height: 1.875rem;
  border-radius: 50%;
  background: var(--gt-gold-500);
  color: var(--gt-navy-950);
  font-size: 0.8125rem;
  font-weight: 700;
  font-variant-numeric: lining-nums;
}
.gt-about-times__item--base .gt-about-times__num { box-shadow: 0 0 0 3px var(--gt-gold-100); }
.gt-about-times__name { font-weight: 700; color: var(--gt-navy-900); text-decoration: none; }
a.gt-about-times__name:hover { color: var(--gt-gold-700); text-decoration: underline; }
.gt-about-times__drive { font-size: 0.875rem; color: var(--gt-muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.gt-about-times__note { margin: 0.75rem 0 1.5rem; font-size: 0.8125rem; color: var(--gt-muted); }
.gt-about-base__map .gt-map { box-shadow: var(--gt-shadow-lg); }
@media (max-width: 991.98px) {
  .gt-about-base__map .gt-map { height: 420px; }
}

/* =========================================================================================
   7. Closing call to action
   ========================================================================================= */
.gt-about-cta { padding-top: clamp(3.5rem, 2.5rem + 3vw, 5rem); }
.gt-about-cta .gt-cta-band__script { text-wrap: balance; }
@media (max-width: 575.98px) {
  /* Equal, full-width buttons on phones (the WhatsApp label would otherwise wrap inside its button). */
  .gt-about-cta .gt-cta-band__actions { display: grid; grid-template-columns: minmax(0, 1fr); width: 100%; }
  .gt-about-cta .gt-cta-band__actions .btn { width: 100%; --bs-btn-padding-x: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  .gt-about-point:hover { transform: none; }
  .gt-about-value:hover .gt-about-value__media img { transform: none; }
}
