/* ============================================================
   MR LAW CONSULTANCY — About Page Styles
   ============================================================ */

/* ── PAGE HERO ───────────────────────────────────────────────── */
/* Reuses .page-hero, .page-hero-bg, .page-hero-overlay,
   .page-hero-content, .page-breadcrumb, .page-hero-title,
   .page-hero-rule from services.css (both load main.css + their own) */

/* ── STORY SECTION ───────────────────────────────────────────── */
.story-section {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 1fr;
  min-height: 620px;
}
.story-image-col {
  position: relative; overflow: hidden;
}
.story-img-stack {
  position: relative; width: 100%; height: 100%;
}
/* Main large image */
.story-img-main {
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0.6; filter: grayscale(15%);
  transition: transform 0.9s ease;
  display: block;
}
.story-image-col:hover .story-img-main { transform: scale(1.03); }
/* Floating inset image card */
.story-img-inset {
  position: absolute; bottom: 2.5rem; right: -2rem;
  width: 200px; height: 150px;
  object-fit: cover; opacity: 0.9;
  border: 3px solid var(--navy);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  z-index: 2;
}
.story-image-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(8,13,26,0.15) 40%, var(--navy));
}
/* Gold vertical accent line */
.story-image-col::after {
  content: '';
  position: absolute; top: 15%; bottom: 15%; right: 0;
  width: 2px; background: linear-gradient(to bottom, transparent, var(--gold) 30%, var(--gold) 70%, transparent);
}

.story-text-col {
  padding: 5.5rem 5vw 5.5rem 4rem;
  display: flex; flex-direction: column; justify-content: center;
  background: var(--navy);
}
.story-text-col .section-body { max-width: 100%; }
.story-body-2 {
  font-size: 0.93rem; line-height: 1.85; color: var(--muted);
  margin-bottom: 2.5rem;
}

/* ── VALUES SECTION ──────────────────────────────────────────── */
.values-section {
  position: relative; z-index: 1;
  background: var(--navy-mid); padding: 6rem 5vw;
}
.values-header { margin-bottom: 3.5rem; }
.values-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
}
.value-card {
  padding: 2.5rem 2rem;
  background: var(--navy-card);
  position: relative; overflow: hidden;
  border-top: 2px solid transparent;
  transition: border-color 0.3s, background 0.3s, transform 0.3s;
}
.value-card:hover {
  border-top-color: var(--gold);
  background: #162038;
  transform: translateY(-4px);
}
.value-number {
  font-family: var(--serif); font-size: 4.5rem; font-weight: 700;
  color: rgba(201,168,76,0.06); line-height: 1;
  position: absolute; top: 0.5rem; right: 1rem;
}
.value-icon {
  width: 48px; height: 48px;
  border: 1px solid rgba(201,168,76,0.25);
  display: grid; place-items: center;
  color: var(--gold); font-size: 1.2rem;
  margin-bottom: 1.4rem;
  transition: background 0.3s;
}
.value-card:hover .value-icon { background: rgba(201,168,76,0.08); }
.value-name {
  font-family: var(--serif); font-size: 1.2rem; font-weight: 600;
  color: var(--white); margin-bottom: 0.7rem;
}
.value-text { font-size: 0.84rem; color: var(--muted); line-height: 1.72; }

/* ── PHILOSOPHY SECTION ──────────────────────────────────────── */
.philosophy-section {
  position: relative; z-index: 1;
  background: var(--navy);
  display: grid; grid-template-columns: 1fr 1fr;
  min-height: 520px;
}
.philosophy-image-col {
  position: relative; overflow: hidden;
}
.philosophy-image-col img {
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0.5; filter: grayscale(20%);
}
.philosophy-image-col::before {
  content: '';
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to left, rgba(8,13,26,0.15) 40%, var(--navy));
}
/* Decorative quote mark overlay on image */
.philosophy-image-col::after {
  content: '"';
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  font-family: var(--serif); font-size: 16rem;
  color: rgba(201,168,76,0.07); z-index: 2;
  line-height: 1; pointer-events: none;
}
.philosophy-text-col {
  padding: 5.5rem 5vw 5.5rem 4rem;
  display: flex; flex-direction: column; justify-content: center;
}
.philosophy-quote {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.5vw, 2.2rem);
  font-weight: 300; font-style: italic;
  line-height: 1.45; color: var(--white);
  margin-bottom: 1.5rem;
  border-left: 2px solid var(--gold);
  padding-left: 1.8rem;
}
.philosophy-quote em { color: var(--gold); font-style: normal; font-weight: 600; }
.philosophy-attr {
  font-size: 0.72rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--gold-dim);
  padding-left: 1.8rem; margin-bottom: 2.5rem;
}
.philosophy-body {
  font-size: 0.9rem; line-height: 1.85; color: var(--muted);
}

/* ── PHOTO GALLERY (3-image mosaic) ──────────────────────────── */
.gallery-section {
  position: relative; z-index: 1;
  background: var(--navy-mid); padding: 6rem 5vw;
}
.gallery-header { margin-bottom: 3rem; }
.gallery-mosaic {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  grid-template-rows: 280px 280px;
  gap: 4px;
}
.gallery-cell {
  position: relative; overflow: hidden; background: var(--navy-card);
}
.gallery-cell:first-child { grid-row: 1 / 3; }
.gallery-cell img {
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0.65; filter: grayscale(15%);
  transition: transform 0.7s ease, opacity 0.4s ease;
}
.gallery-cell:hover img { transform: scale(1.06); opacity: 0.85; }
.gallery-cell-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(8,13,26,0.7) 0%, transparent 50%);
  transition: opacity 0.3s;
}

/* Image labels */
.gallery-cell-label {
  position: absolute; bottom: 1.2rem; left: 1.2rem; z-index: 2;
  font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--gold); opacity: 0; transition: opacity 0.3s;
}
.gallery-cell:hover .gallery-cell-label { opacity: 1; }

/* ── TEAM / CREDENTIALS STRIP ────────────────────────────────── */
.credentials-section {
  position: relative; z-index: 1;
  background: var(--gold); padding: 3.5rem 5vw;
  display: flex; align-items: center; gap: 4rem; flex-wrap: wrap;
  overflow: hidden;
}
.credentials-section::before {
  content: 'AEQUITAS';
  position: absolute; right: -1rem; top: 50%; transform: translateY(-50%);
  font-family: var(--serif); font-size: 8rem; font-weight: 700;
  color: rgba(8,13,26,0.06); letter-spacing: 0.1em;
  white-space: nowrap; pointer-events: none;
}
.credentials-label {
  font-size: 0.68rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--navy); opacity: 0.55; margin-bottom: 0.4rem;
}
.credentials-heading {
  font-family: var(--serif); font-size: 1.8rem; font-weight: 700; color: var(--navy);
}
.credentials-divider { width: 1px; height: 60px; background: rgba(8,13,26,0.15); flex-shrink: 0; }
.credential-item { text-align: center; }
.credential-num {
  font-family: var(--serif); font-size: 2.2rem; font-weight: 700; color: var(--navy); line-height: 1;
}
.credential-desc { font-size: 0.72rem; color: var(--navy); opacity: 0.6; letter-spacing: 0.06em; margin-top: 0.2rem; }

/* ── ABOUT CTA ───────────────────────────────────────────────── */
.about-cta {
  position: relative; z-index: 1;
  background: var(--navy); padding: 7rem 5vw;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  overflow: hidden;
}
.about-cta::before {
  content: 'JUSTICE';
  position: absolute; bottom: -2rem; left: 50%; transform: translateX(-50%);
  font-family: var(--serif); font-size: 14rem; font-weight: 700;
  color: rgba(201,168,76,0.03); white-space: nowrap; pointer-events: none;
}
.about-cta .section-title { max-width: 580px; margin-bottom: 0.8rem; }
.about-cta-sub {
  font-size: 0.92rem; color: var(--muted); max-width: 480px;
  margin-bottom: 2.5rem; line-height: 1.75;
}
.cta-btn-row { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }

/* ══════════════════════════════════════════════════════════
   RESPONSIVE — TABLET (≤ 1000px)
══════════════════════════════════════════════════════════ */
@media (max-width: 1000px) {

  /* Story → stacked */
  .story-section { grid-template-columns: 1fr; }
  .story-image-col { height: 360px; }
  .story-image-overlay { background: linear-gradient(to bottom, transparent 50%, var(--navy)); }
  .story-image-col::after { display: none; }
  .story-img-inset { display: none; }
  .story-text-col { padding: 3.5rem 5vw; }

  /* Philosophy → stacked */
  .philosophy-section { grid-template-columns: 1fr; }
  .philosophy-image-col { height: 300px; }
  .philosophy-text-col { padding: 3.5rem 5vw; }
  .philosophy-quote { font-size: clamp(1.2rem, 3vw, 1.7rem); }

  /* Values 2-col */
  .values-grid { grid-template-columns: 1fr 1fr; }

  /* Gallery simplified */
  .gallery-mosaic {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 200px 200px 200px;
  }
  .gallery-cell:first-child { grid-row: auto; grid-column: 1 / -1; }

  /* Credentials */
  .credentials-section { gap: 2rem; }
  .credentials-divider { display: none; }
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE — MOBILE (≤ 600px)
══════════════════════════════════════════════════════════ */
@media (max-width: 600px) {

  /* Page hero */
  .page-hero { height: 44vh; min-height: 300px; padding: 0 5vw 3rem; }
  .page-hero-title { font-size: clamp(2rem, 9vw, 3rem); }

  /* Story */
  .story-image-col { height: 280px; }
  .story-text-col { padding: 2.5rem 5vw; }
  .story-text-col .section-title { font-size: clamp(1.6rem, 7vw, 2.2rem); }

  /* Values → single col */
  .values-grid { grid-template-columns: 1fr; }
  .values-section { padding: 3.5rem 5vw; }

  /* Philosophy */
  .philosophy-text-col { padding: 2.5rem 5vw; }
  .philosophy-quote { font-size: clamp(1.1rem, 5vw, 1.5rem); padding-left: 1.2rem; }
  .philosophy-attr { padding-left: 1.2rem; }

  /* Gallery → single col */
  .gallery-mosaic { grid-template-columns: 1fr; grid-template-rows: repeat(5, 200px); }
  .gallery-cell:first-child { grid-column: auto; }
  .gallery-section { padding: 3.5rem 5vw; }

  /* Credentials */
  .credentials-section { flex-direction: column; align-items: flex-start; gap: 1.5rem; padding: 2.5rem 5vw; }
  .credentials-section::before { display: none; }
  .credentials-heading { font-size: 1.4rem; }

  /* About CTA */
  .about-cta { padding: 4rem 5vw; }
  .about-cta::before { font-size: 7rem; }
  .cta-btn-row { flex-direction: column; align-items: stretch; }
  .cta-btn-row .btn-primary,
  .cta-btn-row .btn-ghost { text-align: center; justify-content: center; }
}
