/* Ravena Grange #1457 — site styles */
:root {
  --green-900: #1f3a1c;
  --green-800: #2b4d26;
  --green-700: #37632f;
  --green-100: #eaf1e4;
  --gold: #c8962b;
  --gold-light: #f4e7c5;
  --cream: #fbf8f1;
  --ink: #1e241c;
  --muted: #5b6456;
  --line: #ddd8cb;
  --white: #fff;
  --radius: 10px;
  --shadow: 0 2px 10px rgba(31, 58, 28, .08);
  --max: 1100px;
  --serif: "Merriweather", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-700); text-underline-offset: 3px; }
a:hover { color: var(--green-900); }
h1, h2, h3 { font-family: var(--serif); color: var(--green-900); line-height: 1.25; margin: 0 0 .6em; }
h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
h2 { font-size: clamp(1.5rem, 3vw, 1.9rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--green-900); color: #fff; padding: .6rem 1rem; z-index: 100;
}
.skip-link:focus { left: 1rem; top: 1rem; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }

/* ---------- Header ---------- */
.site-header {
  background: var(--green-900);
  color: #fff;
  position: sticky; top: 0; z-index: 50;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }
.brand { display: flex; align-items: center; gap: .7rem; color: #fff; text-decoration: none; }
.brand:hover { color: #fff; }
.brand-mark { width: 42px; height: 42px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--serif); font-weight: 700; font-size: 1.2rem; }
.brand-tag { font-size: .85rem; color: var(--gold-light); font-style: italic; }

.nav-toggle {
  display: none; background: none; border: 2px solid rgba(255,255,255,.4); color: #fff;
  border-radius: 8px; padding: .4rem .7rem; font: inherit; font-size: 1rem; cursor: pointer;
}
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .25rem; flex-wrap: wrap; }
.site-nav a {
  display: block; padding: .5rem .75rem; color: #fff; text-decoration: none;
  border-radius: 6px; font-weight: 600; font-size: 1rem;
}
.site-nav a:hover { background: rgba(255,255,255,.12); color: #fff; }
.site-nav a[aria-current="page"] { background: var(--gold); color: var(--green-900); }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--green-900); border-top: 1px solid rgba(255,255,255,.15); }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; padding: .5rem 1.25rem 1rem; }
  .site-nav a { padding: .8rem .5rem; }
}

/* ---------- Hero ---------- */
.hero {
  background:
    linear-gradient(rgba(31,58,28,.78), rgba(31,58,28,.78)),
    url("../images/grange-hall.jpg") center/cover no-repeat;
  color: #fff;
  padding: 5rem 0 4.5rem;
  text-align: center;
}
.hero h1 { color: #fff; margin-bottom: .3em; }
.hero .lead { font-size: 1.25rem; max-width: 42rem; margin: 0 auto 1.8rem; color: #f1f1ea; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .85rem; font-weight: 700; color: var(--gold-light); margin-bottom: .6rem; }

.page-hero { background: var(--green-800); color: #fff; padding: 3rem 0 2.5rem; }
.page-hero h1 { color: #fff; margin: 0; }
.page-hero p { margin: .5rem 0 0; color: #e8eee3; font-size: 1.15rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: .75rem 1.4rem; border-radius: 8px; font-weight: 700;
  text-decoration: none; border: 2px solid transparent; font-size: 1rem; cursor: pointer; font-family: var(--sans);
}
.btn-gold { background: var(--gold); color: var(--green-900); }
.btn-gold:hover { background: #dba93c; color: var(--green-900); }
.btn-outline { border-color: #fff; color: #fff; }
.btn-outline:hover { background: #fff; color: var(--green-900); }
.btn-green { background: var(--green-700); color: #fff; }
.btn-green:hover { background: var(--green-900); color: #fff; }
.btn-row { display: flex; gap: .75rem; flex-wrap: wrap; justify-content: center; }

/* ---------- Sections ---------- */
section { padding: 3.5rem 0; }
.section-alt { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 46rem; margin-bottom: 2rem; }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }

.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2.5rem; align-items: start; }
@media (max-width: 800px) { .split { grid-template-columns: 1fr; } }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem; box-shadow: var(--shadow);
}
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }
.card-icon { width: 44px; height: 44px; border-radius: 50%; background: var(--green-100); color: var(--green-700); display: grid; place-items: center; margin-bottom: .9rem; }
.card-icon svg { width: 24px; height: 24px; }

.photo { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
.caption { font-size: .95rem; color: var(--muted); margin-top: .5rem; }

.callout {
  background: var(--gold-light); border-left: 5px solid var(--gold);
  padding: 1.25rem 1.5rem; border-radius: 0 var(--radius) var(--radius) 0;
}
.callout p:last-child { margin-bottom: 0; }

.stat-row { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.stat { text-align: center; padding: 1rem 1.5rem; min-width: 160px; }
.stat strong { display: block; font-family: var(--serif); font-size: 2.2rem; color: var(--green-700); line-height: 1.1; }
.stat span { color: var(--muted); font-size: 1rem; }

/* ---------- Lists / tables ---------- */
.check-list { list-style: none; padding: 0; margin: 0 0 1em; }
.check-list li { position: relative; padding-left: 1.8rem; margin-bottom: .5rem; }
.check-list li::before {
  content: "\2713"; position: absolute; left: 0; top: .25em; width: 1.25rem; height: 1.25rem;
  background: var(--green-100); color: var(--green-700); border-radius: 50%;
  font-size: .8rem; font-weight: 700; display: grid; place-items: center; line-height: 1;
}
ol.steps { padding-left: 1.3rem; }
ol.steps li { margin-bottom: .5rem; }

table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
th, td { text-align: left; padding: .8rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--green-100); color: var(--green-900); font-weight: 700; }
tr:last-child td { border-bottom: none; }
td a { white-space: nowrap; }

.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.price { text-align: center; }
.price .amount { font-family: var(--serif); font-size: 2.2rem; color: var(--green-700); font-weight: 700; }

.supper-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .75rem; }
.supper-list li { display: flex; gap: 1rem; align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem 1.2rem; }
.supper-date { background: var(--green-800); color: #fff; border-radius: 8px; text-align: center; min-width: 64px; padding: .35rem .5rem; line-height: 1.1; }
.supper-date .m { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
.supper-date .d { font-size: 1.5rem; font-weight: 700; font-family: var(--serif); }
.supper-meal { font-weight: 700; font-size: 1.1rem; }
.tag { display: inline-block; font-size: .8rem; font-weight: 700; padding: .1rem .5rem; border-radius: 999px; background: var(--gold-light); color: #6d4f10; margin-left: .4rem; }

details { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: .75rem; }
summary { cursor: pointer; padding: 1rem 1.25rem; font-weight: 700; font-family: var(--serif); color: var(--green-900); font-size: 1.1rem; }
details[open] summary { border-bottom: 1px solid var(--line); }
details .details-body { padding: 1rem 1.25rem .5rem; }

.map-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); }
.map-wrap iframe { width: 100%; height: 340px; border: 0; display: block; }

/* ---------- Application form (printable) ---------- */
.app-toolbar { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.app-toolbar h2 { margin-bottom: .2em; }
.app-toolbar p { margin: 0; }
.btn-print { display: inline-flex; align-items: center; gap: .5rem; }
.btn-print svg { width: 20px; height: 20px; }
.application { background: var(--white); border: 2px solid var(--green-800); border-radius: var(--radius); padding: 2rem; max-width: 820px; margin: 0 auto; }
.app-head { text-align: center; border-bottom: 2px solid var(--green-800); padding-bottom: .75rem; margin-bottom: 1.5rem; }
.app-title { font-family: var(--serif); font-size: 1.4rem; font-weight: 700; color: var(--green-900); margin: 0; }
.app-sub { margin: .2rem 0 0; font-weight: 600; font-size: 1rem; }
.field { display: flex; gap: .5rem; align-items: flex-end; margin-bottom: 1.1rem; }
.field .lbl { white-space: nowrap; font-weight: 600; }
.field .line { flex: 1; min-width: 60px; border-bottom: 1px solid var(--ink); height: 1.6rem; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 1.5rem; }
.app-fees { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 1.5rem; }
.pledge { font-size: .95rem; color: #333; margin: .5rem 0 1.5rem; line-height: 1.55; }
.checkbox { display: inline-block; width: .95rem; height: .95rem; border: 1.5px solid var(--ink); vertical-align: -2px; margin-right: .3rem; }
.app-return { background: var(--green-100); border-radius: 8px; padding: .8rem 1rem; font-size: .95rem; margin: .5rem 0 1.25rem; }
.app-return strong { display: block; }
.app-office { border: 1px dashed #999; border-radius: 8px; padding: .75rem 1rem 0; font-size: .95rem; }
.app-office-title { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; margin-bottom: .6rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-900); color: #dfe7d9; padding: 3rem 0 1.5rem; font-size: 1rem; }
.site-footer h2 { color: #fff; font-size: 1.1rem; font-family: var(--sans); text-transform: uppercase; letter-spacing: .08em; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem; margin-bottom: 2rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: .35rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); padding-top: 1.25rem; font-size: .9rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; color: #b9c6b1; }
.footer-bottom a { color: #b9c6b1; }

.text-center { text-align: center; }
.muted { color: var(--muted); }
.mt-2 { margin-top: 2rem; }
.no-print {}

/* ---------- Print ---------- */
@page { margin: 0.6in; }
@media print {
  .site-header, .site-footer, .no-print, .page-hero, .skip-link { display: none !important; }
  body { background: #fff; font-size: 11pt; line-height: 1.45; color: #000; }
  section { padding: 0; }
  a { color: inherit; text-decoration: none; }
  .card, table { box-shadow: none; }
  /* "Print Application" button: print only the form, on one page */
  body.print-app main > *:not(#application-section) { display: none !important; }
  body.print-app .application { border: none; padding: 0; max-width: none; }
  body.print-app .field { margin-bottom: .8rem; }
  body.print-app .field-row, body.print-app .app-fees { grid-template-columns: 1fr 1fr; }
  body.print-app .app-fees { grid-template-columns: 1fr 1fr 1fr; }
  .app-return { background: none; border: 1px solid #000; }
  .application { break-inside: avoid; }
}
