/* ============================================================================
   common.css — Weekend Services
   Shared baseline used by every page. Page-specific styles live in each
   HTML file's inline <style> block, which loads AFTER this file and can
   override anything below.
   ========================================================================== */

/* ---- Custom properties ---- */
:root {
  /* Brand navy scale */
  --navy-900: #08182E;
  --navy-800: #0E2442; /* canonical brand */
  --navy-700: #16345C;
  --navy-600: #234A79;
  --navy-400: #6A87AC;
  --navy-200: #B9C6D6;
  --navy-100: #DEE5ED;

  /* Ivory / paper (warm neutrals) */
  --ivory: #FFFFF0;       /* canonical brand text on navy */
  --champagne: #EFE6D2;   /* elegant light accent, used for buttons */
  --paper: #FBFAF3;       /* warm page background */
  --paper-alt: #F4F2E8;   /* banded section background */
  --white: #FFFFFF;

  /* Warm accent, kept to thin rules only */
  --brass-300: #D8C29A;

  /* Ink scale for text on light surfaces */
  --ink-900: #10192A;
  --ink-800: #1E293B;
  --ink-700: #3A465A;
  --ink-600: #5A6678;
  --ink-500: #616D7E; /* lightest tone that still clears AA on paper-alt */
  --ink-400: #8D96A5; /* decorative only, fails AA as body text */
  --ink-200: #DCD9CD;

  /* Translucent rules used on dark surfaces */
  --rule-on-dark: rgba(255, 255, 240, 0.18);
  --muted-on-dark: rgba(255, 255, 240, 0.74);

  /* Layout */
  --container-max: 1180px;
  --nav-h: 76px;
  --radius-sm: 3px;
  --radius-md: 6px;

  /* Type */
  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Motion */
  --t-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --t-base: 260ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 1.0625rem; /* 17px base */
  line-height: 1.65;
  color: var(--ink-800);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-top: var(--nav-h); /* offset for fixed nav */
}

section { scroll-margin-top: var(--nav-h); }

img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--navy-800); color: var(--ivory); }

:focus-visible {
  outline: 2px solid var(--navy-600);
  outline-offset: 3px;
}

/* ---- Layout ---- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 28px;
}

.section { padding: 104px 0; }
.section.tight { padding: 76px 0; }

.section.on-navy {
  background: var(--navy-800);
  color: var(--ivory);
}
.section.on-paper-alt { background: var(--paper-alt); }

/* ---- Skip link ---- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy-800);
  color: var(--ivory);
  padding: 12px 20px;
  z-index: 200;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---- Eyebrow utility ---- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--navy-600);
}
.eyebrow::before {
  content: '';
  display: inline-block;
  width: 30px;
  height: 1px;
  background: currentColor;
}
.eyebrow.on-dark { color: var(--brass-300); }

/* ---- Headings ---- */
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4.2vw, 2.875rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--navy-800);
  margin-top: 20px;
  max-width: 22ch;
}
.section-title em,
.section-title i { font-style: italic; color: var(--navy-600); }
.section-title.on-dark { color: var(--ivory); }
.section-title.on-dark em,
.section-title.on-dark i { color: var(--brass-300); }

.section-lede {
  margin-top: 22px;
  font-size: 1.125rem;
  color: var(--ink-700);
  max-width: 56ch;
}
.section-lede.on-dark { color: var(--muted-on-dark); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 16px 34px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast),
              border-color var(--t-fast), transform var(--t-fast);
}
.btn:active { transform: translateY(1px); }

/* Primary: elegant light champagne on navy surfaces. */
.btn-primary {
  background: var(--champagne);
  color: var(--navy-900);
  border-color: var(--champagne);
}
.btn-primary:hover {
  background: var(--ivory);
  border-color: var(--ivory);
}

.btn-navy {
  background: var(--navy-800);
  color: var(--ivory);
  border-color: var(--navy-800);
}
.btn-navy:hover { background: var(--navy-700); border-color: var(--navy-700); }

.btn-ghost-light {
  background: transparent;
  color: var(--ivory);
  border-color: var(--rule-on-dark);
}
.btn-ghost-light:hover {
  border-color: var(--ivory);
  background: rgba(255, 255, 240, 0.07);
}

/* ---- Navigation (logo + single CTA only) ---- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  background: var(--navy-800);
  border-bottom: 1px solid var(--rule-on-dark);
  z-index: 100;
}
.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
  color: var(--ivory);
}
.brand img { height: 38px; width: auto; }
.brand-name {
  font-family: var(--font-serif);
  font-size: 1.1875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
}

.nav-cta {
  padding: 13px 26px;
  font-size: 0.75rem;
  white-space: nowrap;
}

/* ---- Footer ---- */
.footer {
  background: var(--navy-900);
  color: var(--muted-on-dark);
  padding: 66px 0 32px;
  font-size: 0.9375rem;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--rule-on-dark);
}
.footer .brand { margin-bottom: 18px; }
.footer-blurb { max-width: 34ch; }
.footer h3 {
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ivory);
  margin-bottom: 16px;
}
.footer ul { list-style: none; }
.footer li { margin-bottom: 10px; }
.footer a { text-decoration: none; transition: color var(--t-fast); }
.footer a:hover { color: var(--ivory); }
.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 0.8125rem;
  color: rgba(255, 255, 240, 0.5);
}

/* ---- Responsive ---- */
@media (max-width: 780px) {
  :root { --nav-h: 66px; }

  .brand img { height: 30px; }
  .brand-name { font-size: 0.9375rem; letter-spacing: 0.04em; }
  .nav-cta { padding: 11px 16px; font-size: 0.6875rem; letter-spacing: 0.06em; }
  .container { padding: 0 22px; }

  .section { padding: 72px 0; }
  .section.tight { padding: 56px 0; }
}

@media (max-width: 420px) {
  /* Wordmark drops out once space runs out; enlarge the mark to compensate. */
  .brand-name { display: none; }
  .brand img { height: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
