/* ═══════════════════════════════════════════════════════
   INNER PAGES v3 — Refined Ore (about · services · projects · contact)
═══════════════════════════════════════════════════════ */

/* ── Page header — FULL-BLEED banner, starts at the very top ──
   Spans the entire viewport width and sits behind the navbar, so inner
   pages open on a full-width image rather than a rounded card.          */
.page-hero {
  position: relative;
  width: 100%;
  min-height: clamp(440px, 62vh, 660px);
  display: flex; align-items: flex-end;
  padding: 180px 0 74px;
  margin: 0;
  background-color: var(--ink);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
  isolation: isolate;
}
/* readability wash — darker at the bottom where the copy sits */
.page-hero::before {
  content: '';
  position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(
    180deg,
    rgba(10,18,38,0.62) 0%,
    rgba(10,18,38,0.34) 34%,
    rgba(10,18,38,0.80) 100%
  );
}
/* subtle gold wash + faint technical grid so the banner belongs to the palette */
.page-hero::after {
  content: '';
  position: absolute; inset: 0; z-index: 0;
  background:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px),
    radial-gradient(1100px 460px at 88% 8%, rgba(184,146,42,0.20), transparent 62%);
  background-size: 52px 52px, 52px 52px, 100% 100%;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 82%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 82%);
  pointer-events: none;
}
.page-hero__inner {
  position: relative; z-index: 1;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 28px;
}
.page-hero__crumb {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.04em; color: rgba(255,255,255,0.6);
  margin-bottom: 22px;
}
.page-hero__crumb a { color: rgba(255,255,255,0.6); transition: color var(--t); }
.page-hero__crumb a:hover { color: var(--gold-300); }
.page-hero__crumb span { color: var(--gold-300); }
.page-hero__content { max-width: 760px; }
.page-hero__content .eyebrow { color: var(--gold-300); }
.page-hero__content .eyebrow::before {
  background: linear-gradient(90deg, var(--gold-400), var(--gold-300));
}
.page-hero__title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.4rem, 5.4vw, 4.1rem);
  line-height: 1.06; letter-spacing: -0.015em; color: var(--white);
  text-shadow: 0 2px 30px rgba(10,18,38,0.35);
}
.page-hero__title em { font-style: italic; font-weight: 600; color: var(--gold-300); }
.page-hero__desc {
  color: rgba(255,255,255,0.82);
  font-size: 1.02rem; line-height: 1.78;
  margin-top: 20px; max-width: 580px;
}
/* soft fade into the page background below the banner */
.page-hero__fade {
  position: absolute; left: 0; right: 0; bottom: 0; height: 90px; z-index: 1;
  background: linear-gradient(180deg, transparent, var(--paper));
  pointer-events: none;
}
/* the navbar sits over the banner — keep the glass pill legible */
body.has-page-hero .navbar__inner {
  background: rgba(255,255,255,0.88);
  border-color: rgba(255,255,255,0.55);
}

/* ── About: story split ─────────────────────────────── */
.about-story__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 76px; align-items: start; }
.about-story__text p { color: var(--stone); font-size: 0.98rem; line-height: 1.85; margin-bottom: 16px; }

.highlight-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 32px 30px; margin-bottom: 18px;
  box-shadow: var(--sh-soft);
  transition: var(--t);
  position: relative; overflow: hidden;
}
.highlight-card::before {
  content: '';
  position: absolute; top: 0; left: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, var(--gold-500), var(--gold-300));
  transform: scaleY(0); transform-origin: top;
  transition: transform 0.5s var(--ease);
}
.highlight-card:hover::before { transform: scaleY(1); }
.highlight-card:hover { transform: translateY(-4px); box-shadow: var(--sh-lift); border-color: var(--line-gold); }
.highlight-card__icon {
  width: 50px; height: 50px; border-radius: 14px;
  background: var(--gold-tint); color: var(--gold-600);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.highlight-card h3 { font-family: var(--font-display); font-weight: 700; color: var(--ink); font-size: 1.15rem; margin-bottom: 10px; }
.highlight-card p { color: var(--stone); font-size: 0.89rem; line-height: 1.7; }

/* ── About: values ──────────────────────────────────── */
.values-section { background: var(--white); }
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.value-card {
  background: var(--paper);
  border-radius: var(--r-lg);
  border: 1px solid transparent;
  padding: 34px 30px; position: relative; overflow: hidden;
  transition: var(--t);
}
.value-card:hover { background: var(--white); border-color: var(--line-gold); box-shadow: var(--sh-soft); transform: translateY(-4px); }
.value-card__num {
  position: absolute; top: 18px; right: 22px;
  font-family: var(--font-num); font-size: 2.6rem;
  color: rgba(184,146,42,0.14); line-height: 1;
}
.value-card__check {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--gold-tint); color: var(--gold-600);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.value-card h3 { font-family: var(--font-display); font-weight: 700; color: var(--ink); font-size: 1.08rem; margin-bottom: 10px; }
.value-card p { color: var(--stone); font-size: 0.86rem; line-height: 1.7; }

/* ── About: team (reuses .team-card from home) ─────── */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.team-card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--sh-soft); transition: var(--t);
}
.team-card:hover { transform: translateY(-6px); box-shadow: var(--sh-lift); border-color: var(--line-gold); }
.team-card__img-wrap { position: relative; aspect-ratio: 4/4.3; overflow: hidden; }
.team-card__img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 0.9s var(--ease); }
.team-card:hover .team-card__img { transform: scale(1.05); }
.team-card__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,18,38,0.92) 0%, rgba(10,18,38,0.4) 55%, transparent 100%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 20px; opacity: 0; transition: opacity var(--t);
}
.team-card:hover .team-card__overlay { opacity: 1; }
.team-card__bio { color: rgba(255,255,255,0.85); font-size: 0.78rem; line-height: 1.55; margin-bottom: 12px; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.team-card__socials { display: flex; gap: 8px; }
.team-card__social {
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,0.15); backdrop-filter: blur(8px);
  color: var(--white); display: flex; align-items: center; justify-content: center;
  transition: var(--t);
}
.team-card__social:hover { background: var(--gold-500); color: var(--ink); }
.team-card__info { padding: 18px 22px 22px; }
.team-card__name { font-family: var(--font-display); font-weight: 700; color: var(--ink); font-size: 1rem; }
.team-card__role { color: var(--gold-600); font-size: 0.79rem; font-weight: 600; margin-top: 3px; }
.team-card__line { display: none; }
.team-card__initials-lg {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--navy-700), var(--ink));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 2.6rem; color: var(--gold-400);
}

/* ── Services page ──────────────────────────────────── */
.services-category { margin-bottom: 70px; }
.services-category:last-child { margin-bottom: 0; }
.services-category__header {
  display: flex; align-items: center; gap: 18px;
  margin-bottom: 30px;
}
.services-category__icon {
  width: 54px; height: 54px; border-radius: 16px;
  background: var(--gold-tint); color: var(--gold-600);
  display: flex; align-items: center; justify-content: center;
}
.services-category__title { font-family: var(--font-display); font-weight: 700; color: var(--ink); font-size: 1.5rem; }
.services-category__count { font-size: 0.78rem; font-weight: 700; color: var(--gold-600); background: var(--gold-tint); border-radius: var(--r-pill); padding: 4px 14px; }
.services-full-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service-full-card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 32px 28px;
  box-shadow: var(--sh-soft); transition: var(--t);
  position: relative; overflow: hidden;
}
.service-full-card::before {
  content: '';
  position: absolute; top: 0; left: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, var(--gold-500), var(--gold-300));
  transform: scaleY(0); transform-origin: top;
  transition: transform 0.5s var(--ease);
}
.service-full-card:hover::before { transform: scaleY(1); }
.service-full-card:hover { transform: translateY(-5px); box-shadow: var(--sh-lift); border-color: var(--line-gold); }
.service-full-card__icon {
  width: 54px; height: 54px; border-radius: 15px;
  background: var(--gold-tint); color: var(--gold-600);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px; transition: var(--t);
}
.service-full-card:hover .service-full-card__icon { background: linear-gradient(135deg, var(--gold-500), var(--gold-400)); color: var(--ink); }
.service-full-card__title { font-family: var(--font-display); font-weight: 700; color: var(--ink); font-size: 1.15rem; margin-bottom: 12px; line-height: 1.3; }
.service-full-card__desc { color: var(--stone); font-size: 0.87rem; line-height: 1.7; margin-bottom: 16px; }
.service-full-card__detail { color: var(--stone); font-size: 0.85rem; line-height: 1.75; display: none; padding-top: 4px; }
.service-full-card.expanded .service-full-card__detail { display: block; }
.service-full-card__toggle {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--gold-600); font-size: 0.8rem; font-weight: 700;
  padding: 0; transition: gap var(--t);
}
.service-full-card__toggle:hover { gap: 10px; }

/* ── Projects page ──────────────────────────────────── */
.projects-filters { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 52px; }
.filter-btn {
  padding: 11px 26px; border-radius: var(--r-pill);
  background: var(--white); border: 1px solid var(--line);
  color: var(--stone); font-size: 0.84rem; font-weight: 600;
  transition: var(--t);
}
.filter-btn:hover { border-color: var(--gold-500); color: var(--gold-600); }
.filter-btn.active {
  background: var(--ink); border-color: var(--ink); color: var(--white);
}
.filter-btn.active::before {
  content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold-400); margin-right: 8px; vertical-align: middle;
}
.projects-full-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

/* ── Contact page ───────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1fr 1.35fr; gap: 70px; }
/* grid children must be able to shrink below their content width — form
   controls carry an intrinsic min-width that otherwise stretches the track */
.contact-grid > * { min-width: 0; }
.contact-form input, .contact-form select, .contact-form textarea {
  min-width: 0; max-width: 100%; width: 100%; box-sizing: border-box;
}
.contact-info__intro { color: var(--stone); font-size: 0.97rem; line-height: 1.8; margin-bottom: 34px; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 22px; }
.contact-item__icon {
  width: 48px; height: 48px; border-radius: 14px; flex-shrink: 0;
  background: var(--white); border: 1px solid var(--line);
  color: var(--gold-600);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--sh-soft);
}
.contact-item__label { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-600); margin-bottom: 4px; }
.contact-item__value { color: var(--stone); font-size: 0.9rem; line-height: 1.7; }
.contact-item__value a { color: var(--stone); display: block; transition: color var(--t); }
.contact-item__value a:hover { color: var(--gold-600); }
.contact-regions h4 { font-family: var(--font-display); font-weight: 700; color: var(--ink); margin-bottom: 14px; font-size: 1.05rem; }
.contact-regions__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.contact-region-tag {
  padding: 7px 16px; border-radius: var(--r-pill);
  background: var(--white); border: 1px solid var(--line);
  color: var(--stone); font-size: 0.79rem; font-weight: 600;
  transition: var(--t);
}
.contact-region-tag:hover { border-color: var(--gold-500); color: var(--gold-600); }

.contact-form-wrap {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-lift);
  position: relative; overflow: hidden;
}
.contact-form-wrap::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--gold-500), var(--gold-300), var(--gold-500));
}
.contact-form-inner { padding: 48px; }
.contact-form-title { font-family: var(--font-display); font-weight: 700; color: var(--ink); font-size: 1.5rem; margin-bottom: 30px; }
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.contact-form__success {
  text-align: center; padding: 40px 30px;
  background: #e8f5ec; border-radius: var(--r-lg);
}
.contact-form__success-icon { color: #1e7a3c; margin-bottom: 14px; display: flex; justify-content: center; }
.contact-form__success h3 { font-family: var(--font-display); color: var(--ink); margin-bottom: 8px; }
.contact-form__success p { color: var(--stone); font-size: 0.9rem; }

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 1024px) {
  .about-story__grid, .contact-grid { grid-template-columns: 1fr; gap: 52px; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .services-full-grid, .projects-full-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .page-hero { padding: 130px 0 52px; min-height: clamp(360px, 56vh, 460px); }
  .page-hero__inner { padding: 0 20px; }
  .page-hero__desc { font-size: 0.94rem; margin-top: 14px; }
  .values-grid, .team-grid, .services-full-grid, .projects-full-grid { grid-template-columns: 1fr; }
  .contact-form-inner { padding: 30px 24px; }
}
