/* ============================================================
   St. Peter & St. Paul, Tetney — site stylesheet
   Colour palette carried over from the church's previous site
   (lincoln.ourchurchweb.org.uk/tetney) — warm gold / parchment tones.
   ============================================================ */

:root {
  --gold: #c39e6e;
  --gold-dark: #a97f4d;
  --gold-darker: #8a6538;
  --brown: #7a4a24;
  --brown-deep: #4a2a12;
  --maroon: #330000;
  --cream: #f3ebe2;
  --offwhite: #fcfaf7;
  --paper: #fffdfb;
  --text: #2b2420;
  --muted: #6b5f54;
  --border: #e4d6c4;
  --max-width: 1120px;
  --radius: 10px;
  --shadow: 0 2px 10px rgba(74, 42, 18, 0.08);
  --shadow-lg: 0 10px 30px rgba(74, 42, 18, 0.14);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
  background: var(--offwhite);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  color: var(--brown-deep);
  line-height: 1.2;
  margin: 0 0 0.5em;
  font-weight: 700;
}

h1 { font-size: clamp(2rem, 4vw, 2.9rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--gold-darker); }

p { margin: 0 0 1em; }

a { color: var(--brown); text-decoration: none; }
a:hover { color: var(--maroon); text-decoration: underline; }

ul, ol { padding-left: 1.3em; }
li { margin-bottom: 0.4em; }

img { max-width: 100%; height: auto; display: block; border-radius: var(--radius); }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--brown-deep);
  color: #fff;
  padding: 10px 16px;
  z-index: 100;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Header ---------- */
.site-header {
  background: linear-gradient(120deg, var(--gold) 0%, var(--gold-dark) 100%);
  border-bottom: 4px solid var(--gold-darker);
}

.site-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #fff;
}

.site-brand .cross {
  font-size: 2.1rem;
  line-height: 1;
}

.site-brand-text h1 {
  color: #fff;
  font-size: 1.5rem;
  margin: 0;
  letter-spacing: 0.01em;
}

.site-brand-text span {
  display: block;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.9);
  font-style: italic;
}

.header-contact {
  color: #fff;
  text-align: right;
  font-size: 0.92rem;
  display: none;
}

.header-contact a { color: #fff; text-decoration: underline; }

@media (min-width: 760px) {
  .header-contact { display: block; }
}

/* ---------- Nav ---------- */
.site-nav {
  background: var(--brown-deep);
}

.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-toggle {
  display: block;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  padding: 12px 0;
  cursor: pointer;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: none;
  flex-direction: column;
  width: 100%;
  padding-bottom: 8px;
}

.nav-list.open { display: flex; }

.nav-list a {
  display: block;
  color: #f3ebe2;
  padding: 10px 4px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.nav-list a:hover,
.nav-list a[aria-current="page"] {
  color: var(--gold);
  text-decoration: none;
}

@media (min-width: 760px) {
  .nav-toggle { display: none; }
  .nav-list {
    display: flex !important;
    flex-direction: row;
    gap: 4px;
    padding: 0;
  }
  .nav-list a { border-bottom: 3px solid transparent; padding: 14px 12px; }
  .nav-list a:hover,
  .nav-list a[aria-current="page"] { border-bottom-color: var(--gold); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--brown-deep);
  color: #fff;
  overflow: hidden;
}

.hero-img {
  width: 100%;
  height: min(52vw, 420px);
  object-fit: cover;
  display: block;
  opacity: 0.55;
  border-radius: 0;
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
}

.hero-content h2 {
  color: #fff;
  font-size: clamp(1.8rem, 5vw, 3rem);
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
  max-width: 800px;
}

.hero-content p {
  color: var(--cream);
  max-width: 640px;
  font-size: 1.1rem;
  text-shadow: 0 1px 8px rgba(0,0,0,0.5);
}

.page-hero {
  background: linear-gradient(120deg, var(--brown-deep), var(--brown));
  color: #fff;
  padding: 46px 24px 40px;
  text-align: center;
}

.page-hero h1 { color: #fff; }
.page-hero p { color: var(--cream); max-width: 640px; margin: 0 auto; }

/* ---------- Sections / cards ---------- */
main { display: block; }

.section {
  padding: 48px 0;
}

.section-alt {
  background: var(--cream);
}

.card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.grid {
  display: grid;
  gap: 24px;
}

@media (min-width: 700px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

.notice-box {
  background: var(--cream);
  border: 1px solid var(--border);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin: 0 0 20px;
}

.notice-box.safe {
  border-left-color: var(--brown);
}

/* Photo + caption */
figure { margin: 0; }
figcaption {
  font-size: 0.88rem;
  font-style: italic;
  color: var(--muted);
  text-align: center;
  margin-top: 6px;
}

.photo-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, 1fr);
  margin: 24px 0;
}

@media (min-width: 640px) {
  .photo-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
}

.photo-grid img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}

/* Buttons */
.btn {
  display: inline-block;
  background: var(--brown);
  color: #fff;
  padding: 12px 26px;
  border-radius: 30px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  transition: background 0.15s ease;
}
.btn:hover { background: var(--maroon); color: #fff; text-decoration: none; }
.btn-outline {
  background: transparent;
  border: 2px solid #fff;
  color: #fff;
}
.btn-outline:hover { background: #fff; color: var(--brown-deep); }

/* Table */
table { width: 100%; border-collapse: collapse; margin: 1em 0; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--border); }
th { color: var(--brown-deep); font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.05rem; }

/* Timeline-ish walk-round list */
.walk-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.walk-item:last-child { border-bottom: none; }
.walk-item .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: var(--gold);
  color: #fff;
  border-radius: 50%;
  font-weight: 700;
  margin-right: 10px;
  flex-shrink: 0;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--brown-deep);
  color: var(--cream);
  padding: 40px 0 24px;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  gap: 28px;
  margin-bottom: 24px;
}

@media (min-width: 700px) {
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
}

.site-footer h4 { color: var(--gold); }
.site-footer a { color: var(--cream); }
.site-footer a:hover { color: var(--gold); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 18px;
  font-size: 0.85rem;
  color: rgba(243,235,226,0.75);
  text-align: center;
}

.footer-bottom a { color: rgba(243,235,226,0.85); }

/* misc */
.text-center { text-align: center; }
.small { font-size: 0.9rem; color: var(--muted); }
.mt-0 { margin-top: 0; }
.tag {
  display: inline-block;
  background: var(--gold);
  color: #fff;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 8px;
}
