/* about.css */

/* ── Shared cover image ─────────────────────── */
.about-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── Section 1: Intro ───────────────────────── */
.about-intro { padding-top: calc(120px + var(--topbar-h)); }

.about-intro-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
  margin-bottom: 3rem;
}

.about-intro-img-col {
  width: 100%;
  min-height: 480px;
  overflow: hidden;
}

.about-intro-text-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
}

.about-intro-heading h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  color: var(--brand-color);
  line-height: 1.3;
  margin-bottom: 1.25rem;
}

.about-intro-desc {
  font-size: 1rem;
  line-height: 1.75;
  color: rgba(13,29,51,0.7);
  margin: 0;
  align-self: center;
}

.about-hero-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

/* ── Section 2: Awards ──────────────────────── */
.awards-wrap {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 4rem;
  align-items: start;
  padding: 3rem 0;
  border-top: 1px solid rgba(13,29,51,0.08);
}

.awards-left-top {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-bottom: 2rem;
}

.awards-number-wrap {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.awards-number {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--brand-color);
  line-height: 1;
}

.awards-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--brand-color);
  line-height: 1.3;
}

.awards-desc {
  font-size: 0.82rem;
  color: rgba(13,29,51,0.55);
  line-height: 1.6;
  margin: 0;
}

.awards-right {
  border-left: 3px solid var(--yellow);
  padding-left: 2rem;
}

.awards-total-text {
  font-size: 0.85rem;
  color: rgba(13,29,51,0.6);
  margin-bottom: 0.5rem;
}

.awards-total-number {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--brand-color);
  line-height: 1.2;
}

.awards-logos {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  flex-wrap: wrap;
  padding: 2rem 0;
  border-top: 1px solid rgba(13,29,51,0.06);
}

.awards-logo-img {
  height: 32px;
  object-fit: contain;
  filter: grayscale(100%) opacity(0.5);
  transition: filter 0.3s ease;
}
.awards-logo-img.is-dark { filter: grayscale(100%) opacity(0.5) invert(1); }
.awards-logo-img:hover { filter: grayscale(0%) opacity(1); }
.awards-logo-img.is-dark:hover { filter: grayscale(0%) opacity(1) invert(1); }

/* ── Section 3: About TQ (Gray) ─────────────── */
.about-tq-section {
  background: var(--light-bg);
  padding: var(--section-pad-desktop) 0;
}

.about-tq-inner { margin-bottom: 3rem; }

.about-tq-content h2 {
  max-width: 820px;
  margin-bottom: 1.5rem;
}

.about-tq-flex {
  display: flex;
  gap: 4rem;
  align-items: flex-start;
}

.about-tq-flex p {
  flex: 1;
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(13,29,51,0.7);
  margin: 0;
}

.about-tq-btns {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex-shrink: 0;
}

.about-tq-img {
  width: 100%;
  aspect-ratio: 16 / 7;
  overflow: hidden;
}

/* Marquee */
.marquee-wrap {
  overflow: hidden;
  padding: 2rem 0;
  background: var(--light-bg);
}

.marquee-track {
  display: flex;
  width: 100%;
  overflow: hidden;
}

.marquee-items {
  display: flex;
  gap: 4rem;
  align-items: center;
  animation: marquee-scroll 18s linear infinite;
  white-space: nowrap;
  min-width: max-content;
}

.marquee-logo {
  height: 30px;
  object-fit: contain;
  filter: grayscale(100%) opacity(0.4);
}
.marquee-logo.is-dark { filter: grayscale(100%) opacity(0.4) invert(1); }

@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── Section 4: Team ────────────────────────── */
.team-heading {
  margin-bottom: 3rem;
  max-width: 820px;
}

.team-heading h2 { margin-bottom: 1.5rem; }

.team-intro-text {
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(13,29,51,0.7);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-bottom: 3rem;
}

.team-card { cursor: pointer; }

.team-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

.team-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.team-card:hover .team-img-wrap img { transform: scale(1.05); }

.team-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(7,14,26,0.85));
  padding: 2rem 1rem 1rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.team-card:hover .team-overlay { opacity: 1; }

.team-name {
  font-weight: 600;
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}

.team-role {
  color: rgba(255,255,255,0.7);
  font-size: 0.8rem;
}

.team-cta { text-align: center; }

/* ── Section 5: Goals (Dark) ────────────────── */
.goals-section {
  background: var(--brand-color);
  padding: var(--section-pad-desktop) 0;
}

.goals-inner { color: var(--white); }

.goals-title { margin-bottom: 3rem; }

.goals-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.goal-cards { display: flex; flex-direction: column; gap: 0; }

.goal-card {
  padding: 2rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.goal-card:first-child { border-top: 1px solid rgba(255,255,255,0.08); }

.goal-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.goal-card p {
  color: rgba(255,255,255,0.6);
  font-size: 0.95rem;
  line-height: 1.75;
  margin: 0;
}

.goals-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

/* ── Section 6: History ─────────────────────── */
.history-section {}

.history-heading {
  max-width: 900px;
  margin-bottom: 3rem;
}

.history-heading h2 { margin-bottom: 1.5rem; }

.history-heading p {
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(13,29,51,0.7);
}

.history-timeline { display: flex; flex-direction: column; gap: 0; }

.history-item {
  display: grid;
  grid-template-columns: 200px 1fr 1fr;
  gap: 3rem;
  padding: 2.5rem 0;
  border-bottom: 1px solid rgba(13,29,51,0.08);
  align-items: center;
}

.history-left-col { display: flex; flex-direction: column; align-items: flex-start; gap: 0.75rem; }

.history-year-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.history-year {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--brand-color);
}

.history-subtitle {
  font-size: 0.8rem;
  color: rgba(13,29,51,0.45);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.history-middle-col h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  color: var(--brand-color);
  line-height: 1.4;
}

.history-right-col p {
  font-size: 0.95rem;
  line-height: 1.75;
  color: rgba(13,29,51,0.65);
  margin: 0;
}

/* ── Section 7: CTA ─────────────────────────── */
.about-cta-section {
  position: relative;
  padding: var(--section-pad-desktop) 0;
  overflow: hidden;
}

.about-cta-wrap {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 4rem;
  align-items: center;
}

.about-cta-awards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem 2rem;
  align-items: center;
}

.about-cta-award-logo {
  width: 100%;
  max-width: 140px;
  height: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.85;
  margin: 0 auto;
}

.about-cta-content h2 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  margin-bottom: 1.5rem;
}

.text-white-60 {
  color: rgba(255,255,255,0.6);
  font-size: 1rem;
  line-height: 1.75;
  margin: 0;
}

.about-cta-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--brand-color);
}

.about-cta-bg-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
}

.about-cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(7,14,26,0.82);
  z-index: 1;
}

.container-wide {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--container-padding, 2rem);
  position: relative;
  z-index: 2;
}

/* ── Section 8: Gallery ─────────────────────── */
.gallery-section {}

.gallery-header {
  display: flex;
  align-items: flex-end;
  gap: 4rem;
  margin-bottom: 2.5rem;
}

.gallery-header-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.gallery-header-right h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.5rem, 2.5vw, 2.2rem);
  color: var(--brand-color);
  margin: 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 12px;
}

.gallery-item {
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--light-bg);
}

.gallery-item--tall {
  grid-row: span 2;
  aspect-ratio: unset;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.gallery-item:hover img { transform: scale(1.04); }

/* ── Utility overrides ──────────────────────── */
.is-white { color: var(--white) !important; }
.is-yellow { color: var(--yellow) !important; }
.title-line.is-yellow { background: var(--yellow); }
.section-num.is-white { color: var(--white); }
.section-caption.is-yellow { color: var(--yellow); }
.text-white { color: var(--white); }

/* ── Shared button ──────────────────────────── */
.btn-black {
  display: inline-flex;
  align-items: center;
  padding: 14px 28px;
  background: var(--brand-color);
  color: var(--white);
  font-family: 'Jost', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-decoration: none;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.btn-black:hover {
  background: var(--yellow);
  color: var(--white);
}

/* ── Section 7: Service Areas (Locations) ──── */
.locations-section { background: var(--white); }

.locations-wrap {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 5rem;
  align-items: start;
}

.locations-left {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: sticky;
  top: 100px;
}

.locations-left h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: var(--brand-color);
  line-height: 1.2;
}

.locations-left > p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
}

.locations-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.location-card {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 3px;
  cursor: pointer;
}

.location-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.location-card:hover img { transform: scale(1.06); }

.location-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(7,14,26,0.88));
  padding: 1.5rem 1rem 1rem;
}

.location-overlay h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.25rem;
}

.location-overlay p {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.4;
  margin: 0;
}

/* Live Google mini-map revealed on hover */
.location-card .location-overlay { z-index: 2; }

.location-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  z-index: 1;
  opacity: 0;
  pointer-events: none;            /* preview only — clicks go to the card */
  transition: opacity 0.45s ease;
}

.location-card:hover .location-map,
.location-card:focus-visible .location-map { opacity: 1; }

/* "View on Google Maps" pill */
.location-map-cta {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.7rem;
  border-radius: 100px;
  background: rgba(7,14,26,0.78);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
  backdrop-filter: blur(4px);
}

.location-map-cta svg { flex: none; }

.location-card:hover .location-map-cta,
.location-card:focus-visible .location-map-cta {
  opacity: 1;
  transform: translateY(0);
}

.location-card:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 2px;
}

/* ── Responsive ─────────────────────────────── */
@media (max-width: 1199px) {
  .team-grid { grid-template-columns: repeat(4, 1fr); }
  .about-cta-wrap { grid-template-columns: 200px 1fr; }
}

@media (max-width: 991px) {
  .about-intro-top { grid-template-columns: 1fr; }
  .about-intro-img-col { min-height: 300px; }
  .awards-wrap { grid-template-columns: 1fr; gap: 2rem; }
  .awards-right { border-left: none; border-top: 3px solid var(--yellow); padding: 1.5rem 0 0; }
  .about-tq-flex { flex-direction: column; gap: 2rem; }
  .goals-content { grid-template-columns: 1fr; }
  .history-item { grid-template-columns: 1fr; gap: 1rem; }
  .history-left-col { flex-direction: row; align-items: center; }
  .history-year-img { width: 80px; height: 60px; }
  .about-cta-wrap { grid-template-columns: 1fr; }
  .about-cta-awards-grid { max-width: 220px; margin: 0 auto; }
  .team-grid { grid-template-columns: repeat(3, 1fr); }
  .locations-wrap { grid-template-columns: 1fr; gap: 3rem; }
  .locations-left { position: static; }
  .locations-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 767px) {
  .awards-left-top { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .goals-content { gap: 2rem; }
  .about-tq-btns { flex-direction: row; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-item--tall { grid-row: span 1; aspect-ratio: 4/3; }
  .gallery-header { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
  .locations-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 479px) {
  .awards-left-top { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .locations-grid { grid-template-columns: repeat(2, 1fr); }
}
