/* The Door Moncks Corner — main stylesheet.
   Colors come from the church logo: blue #32589f, red #9f2d2c, charcoal #2d2c2c. */

:root {
  --color-bg: #f7f8fb;
  --color-surface: #ffffff;
  --color-alt: #eceff6;
  --color-text: #2d2c2c;
  --color-muted: #55565c;
  --color-primary: #32589f;
  --color-primary-dark: #24417a;
  --color-on-primary: #ffffff;
  --color-accent: #9f2d2c;
  --color-border: #d9deea;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-heading: Georgia, "Times New Roman", serif;
  --radius: 12px;
  --max: 1120px;
}

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

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

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
}

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

a { color: var(--color-primary); }
a:hover { color: var(--color-primary-dark); }
a:focus-visible, .button:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 3px;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  line-height: 1.2;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2rem); }

address { font-style: normal; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 16px;
}
.narrow { max-width: 760px; }

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  background: var(--color-primary);
  color: var(--color-on-primary);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  z-index: 100;
}
.skip-link:focus { top: 12px; }

/* Header */
.site-header {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}
.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}
.brand {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-text);
  text-decoration: none;
}
.brand-logo { height: 48px; width: auto; }
@media (min-width: 700px) { .brand-logo { height: 56px; } }
.footer-logo { height: 52px; width: auto; margin-bottom: 1rem; }

.nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-list a { text-decoration: none; font-weight: 600; }
.nav-list a[aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; }

/* Buttons */
.button {
  display: inline-block;
  background: var(--color-primary);
  color: var(--color-on-primary);
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
}
.button:hover { background: var(--color-primary-dark); color: var(--color-on-primary); }

/* Hero */
.hero { padding: 3rem 0; }
.hero-inner {
  display: grid;
  gap: 2rem;
  align-items: center;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-accent);
  margin: 0 0 0.5rem;
}
.lead { font-size: 1.2rem; color: var(--color-muted); }
.hero-img { border-radius: var(--radius); width: 100%; }

@media (min-width: 860px) {
  .hero { padding: 4.5rem 0; }
  .hero-inner { grid-template-columns: 1fr 1.1fr; }
}

/* Sections */
.section { padding: 3rem 0; }
.section-alt { background: var(--color-alt); }

.info-grid { display: grid; gap: 1.25rem; }
@media (min-width: 700px) { .info-grid { grid-template-columns: 1fr 1fr; } }

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.plain-list { list-style: none; margin: 0; padding: 0; }
.plain-list li + li { margin-top: 0.35rem; }

/* Footer */
.site-footer {
  background: var(--color-text);
  color: #f2f3f6;
  padding: 2.5rem 0 1rem;
}
.site-footer a { color: #f2f3f6; }
.footer-grid { display: grid; gap: 1.5rem; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } }
.footer-name, .footer-heading { font-weight: 700; margin: 0 0 0.4rem; }
.footer-name { font-family: var(--font-heading); font-size: 1.2rem; }
.footer-bottom {
  border-top: 1px solid rgba(242, 243, 246, 0.2);
  margin-top: 2rem;
  padding-top: 1rem;
  font-size: 0.9rem;
}
.footer-bottom p { margin: 0; }
