/* MercUnoTech shared design system — Stage 1 */
:root {
  color-scheme: light;
  --deep-teal: #015758;
  --mist-grey: #f4f7f7;
  --sapphire-blue: #2455a4;
  --white: #ffffff;
  --ink: #193536;
  --muted: #536a6b;
  --rule: #dce6e6;
  --paper: var(--white);
  --tint: var(--mist-grey);
  --navy: var(--deep-teal);
  --navy-2: #01474a;
  --navy-3: var(--mist-grey);
  --teal: var(--deep-teal);
  --gold: var(--sapphire-blue);
  --brass: var(--sapphire-blue);
  --deep: var(--deep-teal);
  --glow: var(--sapphire-blue);
  --on-dark: #f4f7f7;
  --on-dark-muted: #d7e4e4;
  --wrap: 1200px;
  --gutter: clamp(24px, 5.5vw, 76px);
  --space: clamp(72px, 8vw, 112px);
  --radius: 4px;
  --ease-ui: cubic-bezier(.2, .8, .2, 1);
  --motion-in: 150ms;
  --motion-out: 120ms;
}

html { scroll-padding-top: 88px; }
body {
  color: var(--ink);
  background: var(--white);
  font-size: 1.0625rem;
  line-height: 1.7;
}

h1, h2, h3 { color: var(--deep-teal); }
h1 { font-size: clamp(2.5rem, 4.4vw, 4rem); line-height: 1.08; letter-spacing: -.035em; }
h2 { font-size: clamp(1.9rem, 3vw, 2.65rem); line-height: 1.14; letter-spacing: -.025em; }
h3 { font-size: 1.3rem; line-height: 1.3; letter-spacing: -.01em; }
p, li { text-wrap: pretty; }
a { color: var(--sapphire-blue); }
.muted, .small-note, .small { color: var(--muted); }

:focus-visible {
  outline: 2px solid var(--sapphire-blue);
  outline-offset: 3px;
}
.skip:focus { background: var(--sapphire-blue); color: var(--white); }

.wrap { max-width: var(--wrap); }
.section { padding-block: var(--space); }
.section-tint, .section-deep { background: var(--mist-grey); color: var(--ink); }
.section-deep h2, .section-deep .eyebrow, .section-deep .lead,
.section-deep .stats span, .section-deep .small-note { color: var(--ink); }
.section-deep .stats li { background: var(--white); border-color: var(--rule); border-top-color: var(--deep-teal); }
.section-deep .stats strong { color: var(--deep-teal); }
.lead { font-size: 1.18rem; line-height: 1.65; color: var(--muted); }
.eyebrow, .leader-role, .leader-h {
  color: var(--deep-teal);
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .015em;
  text-transform: none;
}
.eyebrow::before { content: none; }

/* Shared navigation: white ground, clear type and a fine rule. */
.site-header {
  background: var(--white);
  color: var(--ink);
  border-bottom: 1px solid var(--rule);
  box-shadow: none;
  transition: none;
}
.header-inner { min-height: 84px; }
.brand-text { border-left-color: var(--rule); }
.brand-name { color: var(--deep-teal); }
.brand-sub { color: var(--muted); }
.site-nav a, .sub-toggle { color: var(--ink); }
.site-nav a:hover, .sub-toggle:hover { color: var(--deep-teal); background: var(--mist-grey); }
.site-nav a[aria-current="page"], .sub-toggle[data-current] { color: var(--deep-teal); }
.site-nav .nav-cta {
  background: var(--deep-teal);
  border-color: var(--deep-teal);
  color: var(--white);
}
.site-nav .nav-cta:hover { background: var(--navy-2); border-color: var(--navy-2); color: var(--white); }
.sub { background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: 0 12px 28px rgb(25 53 54 / 10%); }
.sub a { color: var(--ink); }
.sub a:hover { color: var(--deep-teal); background: var(--mist-grey); }
.nav-toggle { border-color: var(--rule); color: var(--ink); }

/* Shared page surfaces use flat brand colours. */
.hero, .page-hero {
  color: var(--ink);
  background: var(--mist-grey);
  border-bottom: 0;
}
.hero { background: var(--white); }
.hero h1, .page-hero h1 { color: var(--deep-teal); }
.hero-text, .page-hero .hero-text { color: var(--muted); }
.hero-tag, .crumb, .crumb a, .page-hero .eyebrow { color: var(--deep-teal); }
.crumb a:hover { color: var(--sapphire-blue); }
.hero::before, .page-hero::after { content: none; }
.hero-card, .viz-card {
  border: 1px solid var(--rule);
  border-radius: 4px;
  box-shadow: none;
  transform: none;
}
.hero-flow, .hero-glare, .hub-ring { display: none; animation: none; }

/* One primary button treatment and one secondary outline treatment. */
.btn {
  min-height: 48px;
  padding: 15px 24px;
  border-radius: var(--radius);
  transition: color var(--motion-in) var(--ease-ui), background-color var(--motion-in) var(--ease-ui), border-color var(--motion-in) var(--ease-ui), transform var(--motion-in) var(--ease-ui);
}
.btn-gold, .btn-navy {
  background: var(--deep-teal);
  color: var(--white);
  border-color: var(--deep-teal);
}
.btn-gold:hover, .btn-navy:hover { background: var(--navy-2); color: var(--white); border-color: var(--navy-2); }
.btn-ghost { color: var(--deep-teal); border-color: var(--deep-teal); }
.btn-ghost:hover { color: var(--deep-teal); background: var(--mist-grey); border-color: var(--deep-teal); }
.text-link, .cta-mail { color: var(--sapphire-blue); }
.text-link { text-decoration-thickness: 1px; text-underline-offset: 4px; }
.text-link:hover { text-decoration-thickness: 1px; }

/* Shared cards and panels: quiet borders, shallow corners, no decorative depth. */
.service-cards > li > a, .service-cards > li > div,
.service-block, .models li, .insight, .detail-card, .contact-side,
.contact-form, .case, .leader-id, .leader-approach, .location,
.other-practices a, .contact-services a, .contact-direct a, .mail-block,
.related, .platform-card {
  border-radius: var(--radius);
  box-shadow: none;
}
.service-cards > li > a, .service-cards > li > div,
.service-block, .models li, .insight, .detail-card, .contact-side,
.contact-form, .case, .leader-id, .leader-approach, .location,
.other-practices a, .contact-services a, .contact-direct a, .mail-block,
.related, .platform-card {
  border-color: var(--rule);
}
.service-cards > li > a::before, .service-cards > li > div::before { display: none; }
.service-cards > li > a:hover, .other-practices a:hover,
.contact-services a:hover, .contact-direct a:hover { border-color: var(--deep-teal); }
.service-cards > li > a:hover { transform: translateY(-2px); box-shadow: none; }
.card-icon { background: var(--mist-grey); color: var(--deep-teal); border-radius: 4px; }
.card-number, .card-more, .insight-meta span, .platform-audience,
.platform-tag span:first-child { color: var(--deep-teal); }
.stats li { border-color: var(--rule); border-top-color: var(--deep-teal); border-radius: var(--radius); box-shadow: none; }
.panel { background: var(--mist-grey); border-left-color: var(--deep-teal); border-radius: 0 4px 4px 0; box-shadow: none; }
.section-tint .panel { background: var(--white); }
.offer-grid li, .detail-steps li, .detail-card { border-color: var(--rule); }
.tick-list li::before, .offer-list li::before, .checklist li::before { border-color: var(--deep-teal); }
.journey li::before { background: var(--deep-teal); }
.questions li, .service-row, .practice-row, .services div { border-color: var(--rule); }
.insight { border-top: 2px solid var(--deep-teal); background: var(--white); }
.insight h3 a { color: var(--deep-teal); }
.related { background: var(--mist-grey); border-left-color: var(--deep-teal); }

/* Calls to action and footer use the approved neutral and teal palette. */
.cta-band {
  color: var(--on-dark);
  background: var(--deep-teal);
  border: 0;
}
.cta-band::after { content: none; }
.cta-band h2 { color: var(--white); }
.cta-band p { color: var(--on-dark-muted); }
.cta-band .btn-gold { background: var(--white); color: var(--deep-teal); border-color: var(--white); }
.cta-band .btn-gold:hover { background: var(--mist-grey); color: var(--deep-teal); border-color: var(--mist-grey); }
.cta-mail { color: var(--white); }
.site-footer {
  color: var(--muted);
  background: var(--mist-grey);
  border-top: 1px solid var(--rule);
}
.footer-name, .footer-h { color: var(--deep-teal); }
.site-footer a { color: var(--ink); }
.site-footer a:hover { color: var(--sapphire-blue); }
.footer-social { color: var(--deep-teal); border-color: var(--rule); background: var(--white); }
.footer-social:hover { color: var(--white); background: var(--deep-teal); border-color: var(--deep-teal); }

/* Motion stays small and local; content is never revealed by scrolling. */
.site-header.scrolled { box-shadow: none; }
.reveal, .reveal.in { opacity: 1; transform: none; transition: none; }
.leader-photo::before, .leader-photo::after { display: none; }
.leader-photo img { border-radius: 4px; }
.leader-quote { background: var(--deep-teal); border-radius: 4px; }
.leader-quote::before { color: var(--white); }
.leader-tags li { border-radius: 4px; color: var(--ink); transition: border-color var(--motion-in) var(--ease-ui); }
.leader-tags li:hover { border-color: var(--deep-teal); transform: none; box-shadow: none; }
.contact-services a::after { color: var(--sapphire-blue); transition: transform var(--motion-in) var(--ease-ui); }
.contact-services a:hover { transform: translateY(-1px); box-shadow: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@media (max-width: 900px) {
  .header-inner { min-height: 72px; }
}
@media (max-width: 640px) {
  :root { --gutter: 24px; --space: 64px; }
  h1 { font-size: clamp(2.25rem, 9vw, 3rem); }
  h2 { font-size: clamp(1.75rem, 7vw, 2.2rem); }
  .lead { font-size: 1.0625rem; }
  .section { padding-block: var(--space); }
  .btn { min-height: 48px; }
}

/* Stage 3 imagery uses the approved Pexels hero and service-specific photographs. */
.homepage-hero-art { max-width: none; padding: 0; color: inherit; background: transparent; border-radius: 0; }
.homepage-hero-photo { margin: 0; overflow: hidden; border: 1px solid var(--rule); border-radius: 4px; background: var(--mist-grey); }
.homepage-hero-photo img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; object-position: center; }
.hero-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 4vw, 56px); }
.service-overview-photo { margin: 22px 0 0; overflow: hidden; border: 1px solid var(--rule); border-radius: 4px; background: var(--mist-grey); }
.service-overview-photo img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.service-block .offer-list { align-self: center; }
.page-hero-plain .page-hero-copy { width: 100%; max-width: 760px; }
.contact-method { display: block; color: var(--muted); font-size: .82rem; font-weight: 500; }
.footer-credits { padding: 12px 0 18px; border-top: 1px solid var(--rule); color: var(--muted); font-size: .82rem; }
.hero[data-enter] .hero-inner, .page-hero[data-enter] .page-hero-grid, .page-hero-plain[data-enter] .page-hero-copy { animation: stage3-hero-enter 560ms cubic-bezier(.2,.8,.2,1) both; }
@keyframes stage3-hero-enter { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .hero[data-enter] .hero-inner, .page-hero[data-enter] .page-hero-grid, .page-hero-plain[data-enter] .page-hero-copy { animation: none; }
}
@media (max-width: 900px) {
  .hero-inner { min-height: 0; grid-template-columns: 1fr; }
  .service-overview-photo { margin-top: 20px; }
  .service-block .offer-list { align-self: start; }
}
@media (max-width: 640px) {
  .homepage-hero-art { width: 100%; max-width: none; }
  .homepage-hero-photo img { aspect-ratio: 3 / 2; object-position: 62% center; }
  .service-overview-photo img { aspect-ratio: 16 / 10; }
  .footer-credits { padding-bottom: 22px; }
}

/* Focused section-spacing refinement for the six accepted Stage 3 pages. */
body[data-section-spacing="compact"] { --space: clamp(64px, 5.2vw, 76px); }
body[data-section-spacing="compact"] .section { padding-block: calc(var(--space) / 2); }
body[data-section-spacing="compact"] .section-head { margin-bottom: max(1rem, calc(var(--space) * .25)); }
body[data-section-spacing="compact"] .section h2 { margin-bottom: .4em; }
body[data-section-spacing="compact"] .service-cards { gap: clamp(14px, 1.1vw, 16px); }
body[data-section-spacing="compact"] .insight-grid { gap: clamp(16px, 1.4vw, 20px); }
body[data-section-spacing="compact"] .service-block { padding-block: 1.25rem; margin-bottom: 10px; }
body[data-section-spacing="compact"] .service-block:first-child { padding-top: 1.25rem; }
@media (max-width: 640px) {
  body[data-section-spacing="compact"] { --space: clamp(36px, 10vw, 44px); }
}

/* Homepage hero: remove the viewport-height floor and set intentional vertical padding. */
@media (min-width: 901px) {
  .hero > .hero-inner {
    min-height: 0;
    padding-top: clamp(56px, 4.2vw, 64px);
    padding-bottom: clamp(32px, 2.25vw, 36px);
  }
}
@media (max-width: 900px) {
  .hero > .hero-inner { min-height: 0; padding-top: 48px; padding-bottom: 48px; }
}
@media (max-width: 640px) {
  .hero > .hero-inner { padding-top: 36px; padding-bottom: clamp(18px, 4.1vw, 26px); }
}
