/* ============================================================
   Acadiaville Cemetery Society — serene coastal memorial theme
   Palette: deep sea slate, warm granite, off-white, muted gold
   ============================================================ */

:root {
  --sea:        #24384a;   /* deep slate blue */
  --sea-deep:   #15222d;
  --sea-soft:   #3d566d;
  --granite:    #6f6b66;
  --stone:      #f6f4ef;   /* warm off-white page ground */
  --mist:       #e9e5dd;
  --gold:       #a98545;   /* muted gold accent */
  --gold-soft:  #c9ab72;
  --ink:        #2c2c2c;
  --ink-soft:   #55534f;
  --white:      #ffffff;
  --serif: "Cormorant Garamond", "Georgia", "Times New Roman", serif;
  --sans:  "Source Sans 3", "Segoe UI", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: 1.06rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--stone);
}

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

a { color: var(--sea-soft); text-decoration-color: var(--gold-soft); text-underline-offset: 3px; }
a:hover { color: var(--gold); }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 1.25rem; }

h1, h2, h3, h4 { font-family: var(--serif); color: var(--sea); font-weight: 600; line-height: 1.2; }

h2 { font-size: 2.1rem; margin-bottom: .75rem; }
h3 { font-size: 1.45rem; margin-bottom: .5rem; }

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

.site-header {
  background: var(--sea-deep);
  border-bottom: 3px solid var(--gold);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem 2rem;
  padding-top: .85rem;
  padding-bottom: .85rem;
}

.brand { text-decoration: none; }
.brand-name {
  display: block;
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: .02em;
}
.brand-tag {
  display: block;
  font-size: .78rem;
  color: var(--gold-soft);
  letter-spacing: .04em;
}

.site-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: .25rem; }
.site-nav a {
  display: block;
  padding: .45rem .8rem;
  color: #d8dee4;
  text-decoration: none;
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .03em;
  border-radius: 3px;
}
.site-nav a:hover { color: var(--white); background: rgba(255,255,255,.08); }
.site-nav a.active { color: var(--gold-soft); }

.nav-toggle { display: none; }
.nav-toggle-label { display: none; }

@media (max-width: 820px) {
  .nav-toggle-label {
    display: block;
    width: 30px; height: 22px;
    position: relative;
    cursor: pointer;
  }
  .nav-toggle-label span,
  .nav-toggle-label span::before,
  .nav-toggle-label span::after {
    content: "";
    position: absolute;
    left: 0;
    width: 100%; height: 3px;
    background: var(--gold-soft);
    border-radius: 2px;
    transition: transform .2s;
  }
  .nav-toggle-label span { top: 9px; }
  .nav-toggle-label span::before { top: -9px; }
  .nav-toggle-label span::after  { top: 9px; }
  .site-nav { display: none; width: 100%; }
  .nav-toggle:checked ~ .site-nav { display: block; }
  .site-nav ul { flex-direction: column; padding-bottom: .75rem; }
}

/* ---------- Hero ---------- */

.hero {
  background-size: cover;
  background-position: center;
  color: var(--white);
  padding: 5.5rem 0 5rem;
  text-align: center;
}
.hero h1 {
  color: var(--white);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 600;
  text-shadow: 0 2px 12px rgba(0,0,0,.45);
}
.hero-sub {
  margin-top: .75rem;
  font-size: 1.15rem;
  color: #e7e3da;
  text-shadow: 0 1px 8px rgba(0,0,0,.5);
}
.hero-home { padding: 8rem 0 7rem; }

/* ---------- Sections ---------- */

.site-main { padding: 3.5rem 0 4rem; }
.site-main > .wrap + .wrap { margin-top: 3rem; }

section.band { padding: 3rem 0; }
section.band-mist { background: var(--mist); }
section.band-sea { background: var(--sea); color: #e6e3dc; }
section.band-sea h2 { color: var(--white); }

.lead { font-size: 1.18rem; color: var(--ink-soft); }

.rule::after {
  content: "";
  display: block;
  width: 64px; height: 3px;
  margin-top: .8rem;
  background: var(--gold);
}
.rule.center::after { margin-left: auto; margin-right: auto; }

.two-col {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 2.5rem;
  align-items: start;
}
@media (max-width: 760px) { .two-col { grid-template-columns: 1fr; } }

/* ---------- Cards & galleries ---------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}
.gallery figure {
  background: var(--white);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(21,34,45,.12);
}
.gallery img { width: 100%; height: 240px; object-fit: cover; }
.gallery figcaption {
  padding: .6rem .9rem .8rem;
  font-size: .9rem;
  color: var(--ink-soft);
}

.card {
  background: var(--white);
  border-radius: 6px;
  box-shadow: 0 2px 10px rgba(21,34,45,.10);
  padding: 1.75rem 2rem;
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 1.75rem;
}

.notice {
  background: #fdf6e8;
  border-left: 4px solid var(--gold);
  border-radius: 4px;
  padding: 1.1rem 1.4rem;
  margin: 1.75rem 0;
  font-weight: 600;
  color: #6b5220;
}

.btn {
  display: inline-block;
  background: var(--gold);
  color: var(--white);
  font-weight: 700;
  letter-spacing: .03em;
  text-decoration: none;
  padding: .7rem 1.5rem;
  border-radius: 4px;
  transition: background .15s;
}
.btn:hover { background: #8f6e35; color: var(--white); }
.btn.btn-outline {
  background: transparent;
  color: var(--sea);
  border: 2px solid var(--sea-soft);
}
.btn.btn-outline:hover { border-color: var(--gold); color: var(--gold); }

ul.checklist { list-style: none; margin: 1rem 0; }
ul.checklist li {
  padding-left: 1.7rem;
  position: relative;
  margin-bottom: .5rem;
}
ul.checklist li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
}

dl.spec { margin: 1rem 0; }
dl.spec dt { font-weight: 700; color: var(--sea); margin-top: .8rem; }
dl.spec dd { color: var(--ink-soft); }

/* ---------- Death register ---------- */

.register-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin: 1.5rem 0 1rem;
}
.register-tools input[type="search"],
.register-tools select {
  font: inherit;
  padding: .55rem .8rem;
  border: 1px solid #c9c4ba;
  border-radius: 4px;
  background: var(--white);
  color: var(--ink);
}
.register-tools input[type="search"] { flex: 1 1 260px; }
.register-tools select { flex: 0 1 220px; }
#register-count { color: var(--ink-soft); font-size: .95rem; }

.table-scroll {
  overflow-x: auto;
  background: var(--white);
  border-radius: 6px;
  box-shadow: 0 2px 10px rgba(21,34,45,.10);
}

table.register {
  width: 100%;
  border-collapse: collapse;
  font-size: .97rem;
}
table.register th, table.register td {
  text-align: left;
  padding: .55rem .9rem;
  border-bottom: 1px solid #eee9e0;
  vertical-align: top;
}
table.register th {
  background: var(--sea);
  color: var(--white);
  font-weight: 600;
  letter-spacing: .03em;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  position: sticky;
  top: 0;
}
table.register th .arrow { font-size: .75em; margin-left: .3em; color: var(--gold-soft); }
table.register tbody tr:nth-child(even) { background: #faf8f4; }
table.register td.years { white-space: nowrap; }
table.register td.notes { color: var(--ink-soft); font-size: .92rem; }

/* ---------- Pagination ---------- */

.register-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 1.5rem;
}
.register-pager button {
  font: inherit;
  font-weight: 600;
  color: var(--sea);
  background: var(--white);
  border: 2px solid var(--sea-soft);
  border-radius: 4px;
  padding: .5rem 1.2rem;
  cursor: pointer;
}
.register-pager button:hover:not(:disabled) { border-color: var(--gold); color: var(--gold); }
.register-pager button:disabled { opacity: .4; cursor: default; }
#pager-label { color: var(--ink-soft); min-width: 8.5em; text-align: center; }

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 1.75rem;
  align-items: stretch;
}
.contact-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem 1.5rem;
}
.contact-card h3 { font-size: 1.35rem; }
.contact-card .phone {
  font-family: var(--serif);
  font-size: 1.5rem;
  display: block;
  margin-top: .3rem;
  overflow-wrap: anywhere;
}

.map-embed {
  margin-top: 1rem;
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: 0 1px 6px rgba(21,34,45,.15);
}
.map-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

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

.site-footer {
  background: var(--sea-deep);
  color: #c5cdd4;
  margin-top: 2rem;
  border-top: 3px solid var(--gold);
  font-size: .95rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  padding-top: 2.5rem;
  padding-bottom: 1.5rem;
}
.site-footer h3 {
  color: var(--gold-soft);
  font-size: 1.1rem;
  margin-bottom: .5rem;
}
.site-footer a { color: #dde3e8; }
.site-footer a:hover { color: var(--gold-soft); }
.footer-note { font-style: italic; color: #9aa5ae; }
.footer-legal {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 1rem;
  padding-bottom: 1.25rem;
  font-size: .85rem;
  color: #8d97a0;
}

/* ---------- Contact form ---------- */
.contact-form { max-width: 560px; }
.form-field { margin-bottom: 1rem; }
.form-field label {
  display: block; font-weight: 600; color: var(--sea);
  margin-bottom: .25rem; font-size: .92rem;
}
.form-field input, .form-field textarea {
  width: 100%; padding: .7rem .9rem; font-size: 1rem;
  font-family: inherit; color: var(--ink);
  background: #fff; border: 2px solid var(--mist); border-radius: 6px;
}
.form-field input:focus, .form-field textarea:focus {
  outline: none; border-color: var(--gold);
}
.form-msg { padding: .8rem 1.1rem; border-radius: 6px; margin-bottom: 1.1rem; max-width: 560px; }
.form-msg.ok { background: #e8f0e6; border: 1px solid #b3ccab; color: #2c5424; }
.form-msg.err { background: #f6e7e2; border: 1px solid #dcb0a2; color: #8c3a1c; }
.hp-field { position: absolute; left: -9999px; }

/* Contact form card treatment */
.form-card {
  background: #fff;
  border: 1px solid var(--mist);
  border-top: 3px solid var(--gold);
  border-radius: 10px;
  padding: 1.6rem 1.8rem 1.8rem;
  max-width: 720px;
  box-shadow: 0 2px 12px rgba(21, 34, 45, .07);
}
.form-card .contact-form { max-width: none; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.25rem; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.form-card .form-field input, .form-card .form-field textarea { background: var(--stone); }
.form-card .form-field input:focus, .form-card .form-field textarea:focus { background: #fff; }
