/* ==========================================================
   Annapolis Mobile Notary — Design Tokens
   Palette: deep teal (trust/authority) + brass (notary seal)
   Type: Playfair Display (display) + Inter (body)
   Signature: circular embossed-seal motif, used once in hero
========================================================== */

:root {
  --color-teal-900: #16332f;
  --color-teal-700: #1f4e4a;
  --color-teal-600: #2c5f5a;
  --color-brass: #b8860b;
  --color-brass-light: #d4a72c;
  --color-cream: #faf8f3;
  --color-cream-dark: #f0ebe0;
  --color-ink: #1c2624;
  --color-ink-soft: #4a5654;
  --color-border: #ddd4c0;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --radius: 4px;
  --shadow-sm: 0 1px 3px rgba(28, 38, 36, 0.08);
  --shadow-md: 0 4px 16px rgba(28, 38, 36, 0.12);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-ink);
  background: var(--color-cream);
  line-height: 1.6;
  font-size: 17px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--color-teal-900);
  line-height: 1.2;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }

p { margin: 0 0 1em; color: var(--color-ink-soft); }

a { color: var(--color-teal-700); }

/* ---------- Header / Nav ---------- */

header {
  background: var(--color-teal-900);
  color: var(--color-cream);
  padding: 20px 24px 40px;
  position: relative;
  overflow: hidden;
}

header::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 1px solid rgba(212, 167, 44, 0.18);
}

header::before {
  content: "";
  position: absolute;
  right: -20px;
  top: -20px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 1px solid rgba(212, 167, 44, 0.14);
}

nav {
  max-width: 1000px;
  margin: 0 auto 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 0.95rem;
}

nav a {
  color: var(--color-cream);
  text-decoration: none;
  padding: 6px 4px;
  opacity: 0.85;
}

nav a:hover { opacity: 1; text-decoration: underline; }
nav a.active { opacity: 1; border-bottom: 2px solid var(--color-brass-light); }

header h1, header p {
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

header h1 { color: var(--color-cream); }
header p { color: rgba(250, 248, 243, 0.85); font-size: 1.1rem; }

/* ---------- Layout ---------- */

main {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 48px 0;
  border-bottom: 1px solid var(--color-border);
}

section:last-of-type { border-bottom: none; }

/* ---------- Services ---------- */

.service-block {
  background: white;
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-brass);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}

.service-block h3 { color: var(--color-teal-700); }
.service-block p { margin: 0; }

/* ---------- Trust list ---------- */

.trust ul {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.trust li {
  background: var(--color-cream-dark);
  border-radius: var(--radius);
  padding: 14px 18px;
  font-size: 0.95rem;
  position: relative;
  padding-left: 34px;
}

.trust li::before {
  content: "✓";
  position: absolute;
  left: 12px;
  color: var(--color-brass);
  font-weight: 700;
}

/* ---------- Signature seal element ---------- */

.seal-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  border: 2px solid var(--color-brass);
  color: var(--color-brass);
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  margin: 0 auto 16px;
  position: relative;
}

.seal-badge::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(184, 134, 11, 0.4);
  border-radius: 50%;
}

/* ---------- CTA ---------- */

.cta-block {
  background: var(--color-teal-700);
  border-radius: var(--radius);
  color: var(--color-cream);
  padding: 40px 24px !important;
  text-align: center;
}

.cta-block h2, .cta-block p { color: var(--color-cream); }
.cta-block a:not(.cta-dark) { color: var(--color-brass-light); }

.cta-dark {
  display: inline-block;
  background: var(--color-brass);
  color: var(--color-teal-900) !important;
  font-weight: 700;
  text-decoration: none;
  padding: 14px 32px;
  border-radius: var(--radius);
  margin-top: 12px;
  box-shadow: var(--shadow-md);
}

.cta-dark:hover { background: var(--color-brass-light); }

/* ---------- Forms (contact page) ---------- */

.form-container {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px;
  margin: 0 auto;
  box-shadow: var(--shadow-sm);
}

.form-group { margin-bottom: 18px; }

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: var(--color-teal-900);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--color-cream);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: 2px solid var(--color-brass);
  outline-offset: 1px;
}

.submit-button {
  background: var(--color-teal-700);
  color: white;
  border: none;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
}

.submit-button:hover { background: var(--color-teal-900); }

.hidden-field { display: none !important; }

/* ---------- Footer ---------- */

footer {
  background: var(--color-teal-900);
  color: rgba(250, 248, 243, 0.75);
  padding: 32px 24px;
  text-align: center;
  font-size: 0.9rem;
}

.footer-locations a { color: var(--color-brass-light); }

/* ---------- Responsive ---------- */

@media (max-width: 600px) {
  .trust ul { grid-template-columns: 1fr; }
  nav { justify-content: center; text-align: center; }
  section { padding: 32px 0; }
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
