/* ═══════════════════════════════════════════════════════════
   BASE — reset, tokens, typography, buttons
   Loaded by every page. Section files depend on these tokens.
   ═══════════════════════════════════════════════════════════ */

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* ─── Brand primary (from logo) ─── */
  --brand-navy:        #0b2b4a;
  --brand-navy-deep:   #071d33;
  --brand-green:       #2eaf2a;
  --brand-green-dark:  #1f8a1d;
  --brand-green-light: #3fc93b;
  --brand-blue:        #1e88e5;
  --brand-blue-deep:   #1565c0;

  /* ─── Premium accent (used sparingly) ─── */
  --brand-gold:        #e7b42c;
  --brand-gold-dark:   #d99a14;
  --brand-gold-light:  #f5c542;
  --brand-gold-glow:   rgba(231, 180, 44, 0.4);
  --brand-green-glow:  rgba(46, 175, 42, 0.35);

  /* ─── Neutrals ─── */
  --text-light:  #ffffff;
  --text-muted:  #b8c4d9;
  --card-bg:     #122e52;
  --card-bg-hover: #163257;

  /* ─── Aliases (backwards compat for existing rules) ─── */
  --brand-color:       var(--brand-navy);
  --brand-color-deep:  var(--brand-navy-deep);
  --brand-accent:      var(--brand-green);        /* primary accent = green */
  --brand-accent-glow: var(--brand-green-glow);

  /* ─── Rhythm ─── */
  --transition:        0.7s cubic-bezier(0.22, 1, 0.36, 1);
  --transition-fast:   0.35s cubic-bezier(0.22, 1, 0.36, 1);
  --panel-min-height:  60vh;

  /* ─── Type ─── */
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Montserrat', sans-serif;
}

html, body {
  min-height: 100%;
  font-family: var(--font-body);
  background: var(--brand-navy);
  color: var(--text-light);
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

body.no-scroll { overflow: hidden; }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  text-align: center;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.97); }

/* Primary = brand green */
.btn-primary {
  background: var(--brand-green);
  color: var(--text-light);
}
.btn-primary:hover { background: var(--brand-green-dark); }

/* Gold = premium (used very rarely, e.g. inside gold CTA block) */
.btn-gold {
  background: var(--brand-gold);
  color: var(--brand-navy);
}
.btn-gold:hover { background: var(--brand-gold-light); }

.btn-outline {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.25);
  color: var(--text-light);
}
.btn-outline:hover {
  border-color: var(--brand-green);
  color: var(--brand-green);
}

/* ─── Shared section shell ─── */
.m-section {
  padding: 3.5rem 1.25rem;
  background: var(--brand-navy);
}
.m-section--deep { background: var(--brand-navy-deep); }

.m-section h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: 0.75rem;
}

.m-section .m-lead {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 520px;
  margin: 0 auto 2.5rem;
}

@media (min-width: 900px) {
  .m-section { padding: 6rem 2rem; }
}

/* ─── Reduced motion ─── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ═══════════════════════════════════════════════════════════
   BREADCRUMB — shared across all inner pages
   ═══════════════════════════════════════════════════════════ */

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  color: var(--text-muted);
}
.breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}
.breadcrumb a:hover { color: var(--brand-green); }
.breadcrumb span.current {
  color: var(--brand-gold);
  font-weight: 600;
}
.breadcrumb i { font-size: 0.6rem; opacity: 0.5; }

/* Injected middle crumb (last visited service) */
.breadcrumb a.crumb--last-service {
  color: var(--brand-green);
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  background: rgba(46,175,42,0.1);
  border: 1px solid rgba(46,175,42,0.25);
  border-radius: 100px;
  transition: all 0.2s ease;
}
.breadcrumb a.crumb--last-service:hover {
  background: rgba(46,175,42,0.2);
  border-color: rgba(46,175,42,0.5);
  color: var(--brand-green);
}

/* ═══════════════════════════════════════════════════════════
   BACK-TO-SERVICE PILL (nav)
   ═══════════════════════════════════════════════════════════ */

.back-pill {
  display: none;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem;
  margin-left: 0.75rem;
  background: rgba(46,175,42,0.1);
  border: 1px solid rgba(46,175,42,0.28);
  border-radius: 100px;
  color: var(--brand-green);
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.back-pill:hover {
  background: rgba(46,175,42,0.2);
  border-color: rgba(46,175,42,0.5);
  color: var(--brand-green);
  transform: translateX(-2px);
}
.back-pill i {
  font-size: 0.75rem;
}
.back-pill.is-visible {
  display: inline-flex;
}

@media (min-width: 900px) {
  .back-pill.is-visible { display: inline-flex; }
}

/* Hide back-pill on small screens (crowded nav) */
@media (max-width: 899px) {
  .back-pill { display: none !important; }
}

/* Center breadcrumb when inside a centered hero */
.about-hero .breadcrumb,
.contact-hero .breadcrumb,
.quote-hero .breadcrumb {
  justify-content: center;
  margin-bottom: 1.75rem;
}
