/* Shared Bluestone service pages — matches brand colours + DG fonts */

:root {
  --ink: #0b1f33;
  --deep: #061525;
  --navy: #0b1f33;
  --slate: #4a6fa5;
  --stone: #3d5a80;
  --sky: #7ea0c4;
  --ice: #c5d6e8;
  --white: #ffffff;
  --text: #1a2a3a;
  --muted: #5a6d80;
  --line: rgba(11, 31, 51, 0.12);
  --paper: #f5f8fb;
  --font-title: "Manrope", system-ui, sans-serif;
  --font-body: "Open Sans", Arial, Helvetica, sans-serif;
  --max: 1120px;
  --header-h: 88px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 300;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a {
  color: var(--slate);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}
a:hover { color: var(--ink); }

h1, h2, h3 {
  font-family: var(--font-title);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 0.75rem;
}

h1 { font-size: clamp(1.75rem, 3.2vw, 2.2rem); }
h2 { font-size: clamp(1.4rem, 2.4vw, 1.75rem); }
h3 { font-size: clamp(1.05rem, 1.5vw, 1.2rem); }

p { margin: 0 0 1rem; }
.muted { color: var(--muted); }

.wrap {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

/* Page hero */
.page-hero {
  position: relative;
  padding: 4.5rem 0 3.5rem;
  color: var(--white);
  background:
    linear-gradient(160deg, rgba(6,21,37,0.82), rgba(11,31,51,0.72)),
    url("../img/hero.jpg") center / cover no-repeat;
}
.page-hero .eyebrow {
  margin: 0 0 0.65rem;
  font-family: var(--font-title);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ice);
}
.page-hero h1 { color: var(--white); margin-bottom: 0.75rem; }
.page-hero .lead {
  max-width: 40rem;
  color: rgba(255,255,255,0.86);
  font-size: 1.08rem;
  margin: 0;
}

/* Sections */
.section { padding: 4rem 0; }
.section-alt { background: var(--paper); }
.section-dark {
  background: var(--navy);
  color: rgba(255,255,255,0.88);
}
.section-dark h2,
.section-dark h3 { color: var(--white); }
.section-dark .muted { color: rgba(255,255,255,0.7); }

.section-intro { max-width: 40rem; margin-bottom: 2.5rem; }

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.card {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1.5rem 1.35rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
a.card:hover {
  border-color: var(--slate);
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(6,21,37,0.1);
  color: inherit;
}
.card h3 { margin: 0; }
.card p { margin: 0; color: var(--muted); font-size: 0.98rem; flex: 1; }
.card .more {
  font-family: var(--font-title);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--slate);
  letter-spacing: 0.02em;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem 2rem;
}
.feature {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: start;
}
.feature-mark {
  width: 10px;
  height: 10px;
  margin-top: 0.45rem;
  border-radius: 2px;
  background: var(--slate);
}
.feature h3 { margin-bottom: 0.25rem; font-size: 1.1rem; }
.feature p { margin: 0; color: var(--muted); font-size: 0.95rem; }

.section-dark .feature p { color: rgba(255,255,255,0.72); }
.section-dark .feature-mark { background: var(--sky); }

/* CTA band */
.cta-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.75rem 1.5rem;
  background: var(--deep);
  border-radius: 8px;
  color: var(--white);
}
.cta-band h2 { color: var(--white); margin: 0 0 0.35rem; font-size: 1.25rem; }
.cta-band p { margin: 0; color: rgba(255,255,255,0.75); }
.cta-band .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.7rem 1.35rem;
  border-radius: 4px;
  font-family: var(--font-title);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
}
.cta-band .btn-primary { background: var(--white); color: var(--ink); }
.cta-band .btn-primary:hover { background: var(--ice); color: var(--ink); }
.cta-band .btn-accent { background: var(--slate); color: var(--white); }
.cta-band .btn-accent:hover { background: var(--stone); color: var(--white); }

/* Footer */
.site-footer {
  background: var(--deep);
  color: rgba(255,255,255,0.65);
  padding: 1.75rem 0;
  font-size: 0.92rem;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
}
.site-footer a { color: var(--ice); text-decoration: none; }
.site-footer a:hover { color: var(--white); }
.site-footer p { margin: 0; }

@media (max-width: 900px) {
  .card-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
}
