/* ═══════════════════════════════════════════════════
   Pollion Group · Subpage Styles
   Supplements styles.css for Home, About, Services,
   and Contact pages.
   ═══════════════════════════════════════════════════ */


/* ─── SUBPAGE DARK-HERO HEADER ───────────────────────────────── */
/* On subpages with a dark hero, the header is transparent by default.
   Brand text goes white; nav links stay dark (they sit on the glass pill). */

.site-header[data-dark-hero]:not(.is-scrolled) {
  color: var(--bone);
}
.site-header[data-dark-hero]:not(.is-scrolled) .brand {
  color: var(--bone);
}
/* Nav links stay legible on the light glass pill */
.site-header[data-dark-hero]:not(.is-scrolled) .nav a {
  color: var(--graphite);
}


/* ─── PAGE HERO ──────────────────────────────────────────────── */
/* Compact dark hero for internal pages (About, Services, Contact) */

.page-hero {
  background: var(--dark);
  color: var(--bone);
  padding:
    clamp(140px, 18vh, 220px)
    clamp(24px, calc((100vw - 1420px) / 2 + 64px), 128px)
    clamp(72px, 10vh, 120px);
  position: relative;
  overflow: hidden;
}
/* Ghost watermark */
.page-hero::after {
  content: "";
  position: absolute;
  z-index: 0;
  top: 0; right: 0; bottom: 0;
  width: 52%;
  background: url("assets/logo_4b_white.png") center right / contain no-repeat;
  opacity: 0.055;
  pointer-events: none;
}
.page-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 820px;
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(52px, 7vw, 106px);
  font-weight: 400;
  line-height: 0.9;
  color: var(--bone);
  margin-bottom: 26px;
}
.page-hero h1 em { font-style: italic; color: var(--accent-pale); }

.page-hero .tagline {
  font-size: 17px;
  font-style: italic;
  font-family: var(--font-display);
  color: rgba(248, 248, 248, 0.58);
  line-height: 1.55;
  max-width: 540px;
}
.page-hero .intro-text {
  font-size: 16px;
  color: rgba(248, 248, 248, 0.60);
  line-height: 1.7;
  max-width: 600px;
  margin-top: 24px;
}
/* Horizontal rule accent below eyebrow */
.page-hero .eyebrow { margin-bottom: 28px; }


/* ─── ABOUT SNAPSHOT (Home page) ────────────────────────────── */

.about-snapshot {
  display: grid;
  grid-template-columns: 1fr 2fr;
  min-height: 580px;
  background: var(--bg);
}
.about-snapshot-body {
  display: grid;
  align-content: center;
  padding:
    80px
    clamp(24px, calc((100vw - 1420px) / 2 + 64px), 128px)
    80px
    clamp(40px, 7vw, 96px);
}
.about-snapshot-body h2   { margin-bottom: 22px; max-width: 520px; }
.about-snapshot-body > p  { color: var(--text-muted); line-height: 1.72; max-width: 480px; margin-bottom: 34px; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent);
  transition: gap 180ms;
}
.link-arrow:hover { gap: 14px; }
.link-arrow svg   { width: 14px; height: 14px; flex-shrink: 0; }

.about-snapshot-image         { overflow: hidden; }
.about-snapshot-image img     { width: 100%; height: 100%; object-fit: cover; }


/* ─── SERVICES OVERVIEW GRID (Home page) ────────────────────── */

.services-overview { background: var(--dark); padding: var(--section-pad) 0; }
.services-overview .section-header h2 { color: var(--bone); }
.services-overview .section-header p  { color: rgba(248, 248, 248, 0.60); }
.services-overview .eyebrow           { color: var(--accent-pale); }
.services-overview > .container:last-child a { background: rgba(248,248,248,0.12); color: var(--bone); border: 1px solid rgba(248,248,248,0.28); }
.services-overview > .container:last-child a:hover { background: rgba(248,248,248,0.22); }

.svc-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.10);
  margin-top: 52px;
}
/* All 5 cards are equal-width — no spanning */
.svc-grid .svc-card:nth-child(4),
.svc-grid .svc-card:nth-child(5) { grid-column: span 1; }

.svc-card {
  color: var(--bone);
  padding: 44px 38px;
  display: grid;
  align-content: start;
  gap: 0;
}
/* Graduated opacity — centre card is most prominent */
.svc-card:nth-child(1) { background: rgba(248, 248, 248, 0.04); }
.svc-card:nth-child(2) { background: rgba(248, 248, 248, 0.09); }
.svc-card:nth-child(3) { background: rgba(248, 248, 248, 0.20); }
.svc-card:nth-child(4) { background: rgba(248, 248, 248, 0.09); }
.svc-card:nth-child(5) { background: rgba(248, 248, 248, 0.04); }

.svc-num {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 300;
  color: var(--sky-haze);
  line-height: 1;
  margin-bottom: 20px;
}
.svc-card h3 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 400;
  line-height: 1.08;
  color: var(--bone);
  margin-bottom: 14px;
}
.svc-card p { font-size: 14px; color: rgba(248, 248, 248, 0.64); line-height: 1.66; }


/* ─── WHY CHOOSE US / EDGE PILLARS (Home page) ──────────────── */

.edge-pillars {
  background: var(--blue-shale);
  padding: var(--section-pad) clamp(24px, calc((100vw - 1420px) / 2 + 64px), 128px);
}
.edge-pillars .section-header h2 { color: var(--bone); }
.edge-pillars .section-header p  { color: var(--bone); }
.edge-pillars .eyebrow           { color: var(--accent-pale); }
.edge-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.12);
  margin-top: 52px;
}
.edge-card {
  background: rgba(19, 77, 103, 0.10);
  color: var(--bone);
  padding: 48px 44px;
  display: grid;
  align-content: start;
}
.edge-card:nth-child(2),
.edge-card:nth-child(3) { background: rgba(19, 77, 103, 0.20); }
.edge-card:nth-child(4) { background: rgba(19, 77, 103, 0.30); }
.edge-card h3 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  line-height: 1.08;
  color: var(--bone);
  margin-bottom: 14px;
  margin-top: 18px;
}
.edge-card p { font-size: 14px; color: rgba(248, 248, 248, 0.58); line-height: 1.66; max-width: 440px; }
.edge-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--sky-haze);
}
.edge-tag::before {
  content: "";
  display: block;
  width: 18px;
  height: 1px;
  background: var(--sky-haze);
}


/* ─── CTA BANNER ─────────────────────────────────────────────── */

.cta-banner {
  background: var(--dark);
  color: var(--bone);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
  padding: var(--section-pad) clamp(24px, calc((100vw - 1420px) / 2 + 64px), 128px);
}
.cta-banner-copy h2  { color: var(--bone); max-width: 700px; }
.cta-banner-copy p   { color: rgba(248, 248, 248, 0.62); margin-top: 18px; line-height: 1.72; max-width: 600px; }
.cta-banner-action   { flex-shrink: 0; }


/* ─── STORY SECTION (About) ──────────────────────────────────── */

.story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 580px;
  background: var(--bg-light);
}
.story-image         { overflow: hidden; }
.story-image img     { width: 100%; height: 100%; object-fit: cover; }
.story-body {
  display: grid;
  align-content: center;
  padding: 80px clamp(40px, 7vw, 96px);
}
.story-body h2        { margin-bottom: 22px; }
.story-body > p       { color: var(--text-muted); line-height: 1.72; max-width: 480px; margin-bottom: 14px; }
.story-body > p + p   { margin-top: 14px; }


/* ─── MISSION & VISION (About) ───────────────────────────────── */

.mission-vision {
  background: var(--dark);
  padding: var(--section-pad) clamp(24px, calc((100vw - 1420px) / 2 + 64px), 128px);
}
.mission-vision .section-header h2 { color: var(--bone); }
.mission-vision .section-header p  { color: rgba(248, 248, 248, 0.60); }
.mission-vision .eyebrow           { color: var(--accent-pale); }
.mv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: rgba(255, 255, 255, 0.10);
  margin-top: 52px;
}
.mv-panel {
  background: rgba(248, 248, 248, 0.07);
  color: var(--bone);
  padding: 60px 56px;
  position: relative;
}
.mv-panel:hover { background: rgba(248, 248, 248, 0.12); }

.mv-panel h3 {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 400;
  line-height: 1.0;
  color: var(--bone);
  margin-bottom: 24px;
}
.mv-panel p {
  color: rgba(248, 248, 248, 0.64);
  line-height: 1.74;
  font-size: 15px;
  max-width: 460px;
}


/* ─── COMPANY DETAILS (About) ────────────────────────────────── */

.company-details {
  background: var(--blue-shale);
  color: var(--bone);
  padding: var(--section-pad) clamp(24px, calc((100vw - 1420px) / 2 + 64px), 128px);
}
.company-details .section-header h2 { color: var(--bone); }
.company-details .section-header p  { color: var(--bone); }

.details-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.12);
}
.detail-item {
  background: rgba(19, 77, 103, 0.10);
  padding: 36px 32px;
  cursor: default;
}
.detail-item dt {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--accent-pale);
  margin-bottom: 10px;
}
.detail-item dd {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 400;
  color: var(--bone);
  margin: 0;
  line-height: 1.35;
}


/* ─── LEADERSHIP (About) ─────────────────────────────────────── */

.leadership {
  background: var(--bg-light);
  padding: var(--section-pad) clamp(24px, calc((100vw - 1420px) / 2 + 64px), 128px);
}
.leader-card {
  display: grid;
  grid-template-columns: minmax(280px, 0.38fr) 1fr;
  gap: clamp(48px, 9vw, 130px);
  align-items: center;
  max-width: 1140px;
}
.leader-portrait {
  aspect-ratio: 3 / 4;
  background: var(--pale-horizon);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.leader-portrait-initial {
  font-family: var(--font-display);
  font-size: 88px;
  font-weight: 300;
  color: var(--blue-shale);
  line-height: 1;
  user-select: none;
}
.leader-info h3 {
  font-family: var(--font-display);
  font-size: clamp(34px, 4.2vw, 62px);
  font-weight: 400;
  line-height: 0.96;
  margin-bottom: 6px;
}
.leader-role {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 30px;
  margin-top: 4px;
}
.leader-info > p {
  color: var(--text-muted);
  line-height: 1.74;
  max-width: 520px;
  font-size: 15px;
}


/* ─── SERVICE ROWS (Services page) ──────────────────────────── */

.service-rows { background: var(--bg-light); }

.service-row {
  display: grid;
  grid-template-columns: minmax(340px, 0.5fr) 1fr;
  min-height: 520px;
  border-bottom: 1px solid var(--line);
}
/* Alternate: even rows flip image to right */
.service-row.reverse                { grid-template-columns: 1fr minmax(340px, 0.5fr); }
.service-row.reverse .service-image { order: 2; }
.service-row.reverse .service-body  { order: 1; }

.service-image         { overflow: hidden; }
.service-image img     { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms ease; }
.service-row:hover .service-image img { transform: scale(1.03); }

.service-body {
  display: grid;
  align-content: center;
  padding: 72px clamp(40px, 7vw, 96px);
  background: var(--bg);
}
.service-row.reverse .service-body { background: var(--bg-light); }

.service-num {
  font-family: var(--font-display);
  font-size: 54px;
  font-weight: 300;
  color: var(--sky-haze);
  line-height: 1;
  margin-bottom: 16px;
}
.service-body h3 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.2vw, 46px);
  font-weight: 400;
  line-height: 1.03;
  margin-bottom: 18px;
}
.service-body > p {
  color: var(--text-muted);
  line-height: 1.72;
  max-width: 480px;
  margin-bottom: 32px;
  font-size: 15px;
}
.service-benefits {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.service-benefits li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: baseline;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}
.service-benefits li::before {
  content: "—";
  color: var(--accent);
  font-weight: 700;
  font-size: 11px;
}


/* ─── CONTACT PAGE ───────────────────────────────────────────── */

.contact-main {
  display: grid;
  grid-template-columns: minmax(320px, 0.46fr) 1fr;
  gap: clamp(48px, 8vw, 110px);
  padding: var(--section-pad) clamp(24px, calc((100vw - 1420px) / 2 + 64px), 128px);
  background: var(--bg-light);
}

/* Left: Contact details */
.contact-info h2         { margin-bottom: 40px; }
.contact-detail-item     { padding: 24px 0; border-top: 1px solid var(--line); }
.contact-detail-item:last-child { border-bottom: 1px solid var(--line); }
.contact-detail-item dt  {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}
.contact-detail-item dd  {
  margin: 0;
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Right: Contact form */
.contact-form h3 {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.5vw, 48px);
  font-weight: 400;
  margin-bottom: 40px;
  line-height: 1.0;
}
.form-row    { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-field  { display: grid; gap: 8px; margin-bottom: 22px; }
.form-field label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.form-field input,
.form-field select,
.form-field textarea {
  border: 1px solid var(--pale-horizon);
  background: var(--bg);
  color: var(--text);
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
  transition: border-color 180ms;
  resize: vertical;
  appearance: none;
  -webkit-appearance: none;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus { border-color: var(--accent); }
.form-field textarea { min-height: 150px; }

.form-success {
  display: none;
  padding: 20px 24px;
  background: rgba(70, 104, 73, 0.1);
  border-left: 3px solid var(--pinewood);
  font-size: 14px;
  color: var(--pinewood);
  line-height: 1.6;
  margin-top: 16px;
}
.form-success.visible { display: block; }

/* Location note */
.location-note {
  background: var(--bg-mid);
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: stretch;
}
.location-map-placeholder {
  min-height: 620px;
  background: var(--pale-horizon);
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.location-map-placeholder iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  filter: grayscale(0.4);
}
.location-note-body {
  align-self: center;
  padding:
    var(--section-pad)
    clamp(24px, calc((100vw - 1420px) / 2 + 64px), 128px)
    var(--section-pad)
    clamp(48px, 8vw, 120px);
}
.location-note-body h2    { margin-bottom: 22px; }
.location-note-body > p   { color: var(--text-muted); line-height: 1.72; max-width: 460px; margin-bottom: 18px; }
.office-hours {
  display: grid;
  gap: 0;
  margin-top: 36px;
}
.office-hours dt {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.office-hours dd {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

.contact-services-note {
  grid-template-columns: 1fr;
  min-height: auto;
  background: var(--bg);
}
.contact-services-note .atlas-body {
  padding: var(--section-pad) clamp(24px, calc((100vw - 1420px) / 2 + 64px), 128px);
}
.contact-services-note .atlas-body > p {
  max-width: 760px;
}
.contact-services-note .atlas-steps {
  max-width: 100%;
}


/* ─── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 1140px) {
  .about-snapshot,
  .story,
  .location-note           { grid-template-columns: 1fr; }
  .location-map-placeholder { min-height: 420px; }
  .location-note-body {
    padding: var(--section-pad) clamp(24px, calc((100vw - 1420px) / 2 + 64px), 128px);
  }
  .mv-grid,
  .edge-grid               { grid-template-columns: 1fr; }
  .details-grid            { grid-template-columns: repeat(2, 1fr); }
  .leader-card             { grid-template-columns: 1fr; }
  .leader-portrait         { max-height: 380px; aspect-ratio: auto; }
  .service-row,
  .service-row.reverse     { grid-template-columns: 1fr; }
  .service-row.reverse .service-image,
  .service-row.reverse .service-body { order: unset; }
  .service-row { min-height: unset; }
  .service-image           { min-height: 300px; }
  .contact-main            { grid-template-columns: 1fr; }
  .cta-banner              { grid-template-columns: 1fr; }
  .svc-grid                { grid-template-columns: 1fr 1fr; }
  .svc-grid .svc-card:nth-child(4),
  .svc-grid .svc-card:nth-child(5) { grid-column: span 1; }
}

@media (max-width: 780px) {
  .page-hero               { padding-inline: 20px; }
  .about-snapshot-body,
  .story-body,
  .service-body,
  .leadership,
  .mission-vision,
  .company-details,
  .edge-pillars,
  .cta-banner,
  .contact-main,
  .location-note           { padding-inline: 20px; }
  .mv-panel                { padding: 44px 24px; }
  .details-grid            { grid-template-columns: 1fr; }
  .form-row                { grid-template-columns: 1fr; }
  .svc-grid                { grid-template-columns: 1fr; }
  .svc-grid .svc-card:nth-child(4),
  .svc-grid .svc-card:nth-child(5) { grid-column: span 1; }
  .edge-grid               { grid-template-columns: 1fr; }
}
