/* Layout for the secondary pages (privacy, terms, thank-you, 404). Matches the home page tokens. */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --cream: #F9F5EF; --warm-white: #FDFAF6; --navy: #1C2B3A; --navy-light: #2D4357;
  --gold: #C4973A; --gold-light: #E8C47A; --gold-pale: #F5EDD8;
  --gold-text: #876419;   /* gold that passes WCAG AA as small text on light backgrounds */
  --text: #1C2B3A; --text-mid: #4A5F72; --text-light: #566878; --border: #E2D9CC;
}
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif; background: var(--warm-white); color: var(--text);
  line-height: 1.6; min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1; }
a { color: inherit; }

/* Header */
.page-nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 48px; background: var(--warm-white);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  font-family: 'Playfair Display', serif; font-size: 19px; font-weight: 500;
  color: var(--navy); letter-spacing: .01em; text-decoration: none;
}
.nav-logo span { color: var(--gold-text); }
.nav-cta {
  background: var(--navy); color: #fff; padding: 10px 22px; border-radius: 6px;
  font-size: 13px; font-weight: 500; text-decoration: none; white-space: nowrap;
  transition: background .2s, transform .15s;
}
.nav-cta:hover { background: var(--navy-light); transform: translateY(-1px); }
.page-nav-actions { display: flex; align-items: center; gap: 24px; }
.nav-link {
  font-size: 14px; color: var(--text-mid); text-decoration: none; letter-spacing: .02em;
  padding: 6px 0; border-bottom: 1px solid transparent; transition: color .2s, border-color .2s;
}
.nav-link:hover, .nav-link[aria-current] { color: var(--navy); border-color: var(--gold); }

/* Breadcrumbs */
.breadcrumbs { font-size: 13px; color: var(--text-light); margin-bottom: 18px; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.breadcrumbs li + li::before { content: '›'; margin-right: 8px; color: var(--text-light); }
.breadcrumbs a { color: var(--text-mid); text-decoration: none; border-bottom: 1px solid var(--border); }
.breadcrumbs a:hover { color: var(--navy); border-color: var(--gold); }
.breadcrumbs [aria-current] { color: var(--text-mid); }

/* Legal / prose pages */
.page-hero { background: var(--cream); border-bottom: 1px solid var(--border); padding: 48px 48px 40px; }
.page-hero-inner, .prose { max-width: 760px; margin: 0 auto; }
.section-label {
  font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold-text); margin-bottom: 10px;
}
.page-hero h1 {
  font-family: 'Playfair Display', serif; font-weight: 500; color: var(--navy);
  font-size: clamp(32px, 4.4vw, 46px); line-height: 1.12; letter-spacing: -.01em; margin-bottom: 12px;
}
.page-hero p { color: var(--text-mid); font-size: 15px; }
.page-hero p + p { margin-top: 18px; }
.prose { padding: 44px 48px 72px; }
.prose h2 {
  font-family: 'Playfair Display', serif; font-weight: 500; color: var(--navy);
  font-size: 24px; line-height: 1.25; margin: 40px 0 12px; scroll-margin-top: 90px;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 16px; font-weight: 500; color: var(--navy); margin: 22px 0 8px; }
.prose p, .prose li { font-size: 15px; color: var(--text-mid); line-height: 1.75; }
.prose p + p { margin-top: 12px; }
.prose ul { padding-left: 22px; margin: 10px 0; }
.prose li + li { margin-top: 6px; }
.prose strong { color: var(--navy); font-weight: 500; }
.prose a { color: var(--navy); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }
.prose a:hover { text-decoration-thickness: 2px; }
.prose .note {
  background: var(--gold-pale); border-left: 3px solid var(--gold); border-radius: 8px;
  padding: 14px 18px; margin: 18px 0;
}

/* Centered message pages (thank-you, 404) */
.message {
  max-width: 640px; margin: 0 auto; padding: 88px 28px 96px; text-align: center;
}
.message .big {
  font-family: 'Playfair Display', serif; font-size: 88px; line-height: 1;
  color: var(--gold-text); font-style: italic; margin-bottom: 12px;
}
.message h1 {
  font-family: 'Playfair Display', serif; font-weight: 500; color: var(--navy);
  font-size: clamp(30px, 4.4vw, 44px); line-height: 1.15; margin-bottom: 16px;
}
.message h1 em { color: var(--gold-text); }
.message p { color: var(--text-mid); font-size: 16px; line-height: 1.7; margin-bottom: 28px; }
.message-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn-primary {
  background: var(--navy); color: #fff; padding: 15px 30px; border-radius: 8px;
  font-size: 15px; font-weight: 500; text-decoration: none; display: inline-block;
  transition: background .2s, transform .2s;
}
.btn-primary:hover { background: var(--navy-light); transform: translateY(-2px);  }
.btn-outline {
  color: var(--navy); padding: 14px 28px; border-radius: 8px; border: 1.5px solid var(--border);
  font-size: 15px; font-weight: 500; text-decoration: none; display: inline-block; transition: border-color .2s;
}
.btn-outline:hover { border-color: var(--gold); }
.link-list { list-style: none; display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 22px; margin-top: 36px; }
.link-list a { color: var(--text-mid); font-size: 14px; text-decoration: none; border-bottom: 1px solid var(--border); }
.link-list a:hover { color: var(--navy); border-color: var(--gold); }

a:focus-visible, button:focus-visible { outline: 2px solid var(--gold-text); outline-offset: 3px; border-radius: 4px; }

/* Footer (same as home) */
footer {
  background: #111C26; padding: 44px 36px 30px;
  display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center;
}
.footer-top { width: 100%; max-width: 920px; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.footer-logo { font-family: 'Playfair Display', serif; font-size: 18px; color: rgba(255, 255, 255, .9); text-decoration: none; }
.footer-logo span { color: var(--gold); }
.footer-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px 28px; }
.footer-links a, .footer-links button { font-size: 13px; color: rgba(255, 255, 255, .7); text-decoration: none; transition: color .2s; }
.footer-links a:hover, .footer-links button:hover { color: var(--gold-light); }
.footer-links--sub { gap: 8px 20px; }
.footer-links--sub a { font-size: 12px; opacity: .85; }
.footer-divider { width: min(100%, 920px); height: 1px; background: rgba(255, 255, 255, .08); }
.footer-copy { font-size: 13px; color: rgba(255, 255, 255, .62); }

@media (max-width: 640px) {
  .page-nav { padding: 14px 20px; }
  .nav-logo { font-size: 17px; }
  .nav-cta { padding: 9px 16px; }
  .page-hero { padding: 36px 20px 30px; }
  .prose { padding: 32px 20px 56px; }
  .message { padding: 64px 20px 72px; }
  .message .big { font-size: 68px; }
  .message-actions a { width: 100%; text-align: center; }
  footer { padding: 32px 20px 24px; }
  .footer-links { gap: 12px 18px; }
}

/* Wide page layout (service, industry, location pages): fill the screen, bigger text */
.page-hero { padding: 40px 0 32px; }
.page-hero-inner.page-hero-wide { max-width: 1400px; padding: 0 48px; }
.page-hero-wide h1 { max-width: 1100px; }
.page-hero-wide p { max-width: 900px; font-size: 18px; }
.page-shell { max-width: 1400px; margin: 0 auto; padding: 40px 48px 72px; display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 56px; align-items: start; }
.page-shell .prose { max-width: none; margin: 0; padding: 0; }
.page-shell .prose p, .page-shell .prose li { font-size: 18px; line-height: 1.75; }
.page-shell .prose h2 { font-size: 30px; margin-top: 36px; }
.page-shell .prose h3 { font-size: 20px; }
.page-shell .prose .note { font-size: 18px; padding: 18px 22px; }
.page-side { position: sticky; top: 96px; }
.side-card { background: var(--navy); border-top: 5px solid var(--gold); border-radius: 14px; padding: 28px 26px; color: #fff; }
.side-label { font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; }
.side-price { font-size: 16px; color: rgba(255, 255, 255, .85); }
.side-price strong { font-family: 'Playfair Display', serif; font-weight: 500; font-size: 52px; line-height: 1.1; color: #fff; }
.side-sub { font-size: 15px; line-height: 1.6; color: rgba(255, 255, 255, .78); margin: 12px 0 20px; }
.btn-gold { background: var(--gold); color: var(--navy); padding: 15px 30px; border-radius: 8px; font-size: 16px; font-weight: 500; display: block; text-align: center; text-decoration: none; transition: background .2s; }
.btn-gold:hover { background: var(--gold-light); }
.side-more { display: block; margin-top: 16px; font-size: 14px; color: var(--gold-light); text-decoration: none; text-align: center; }
.side-more:hover { text-decoration: underline; }
@media (max-width: 1000px) {
  .page-hero { padding: 32px 0 24px; }
  .page-hero-inner.page-hero-wide { padding: 0 24px; }
  .page-shell { grid-template-columns: minmax(0, 1fr); padding: 28px 24px 56px; gap: 32px; }
  .page-side { position: static; }
  .page-shell .prose p, .page-shell .prose li { font-size: 17px; }
}
