@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@300;400;500;600;700&family=Raleway:wght@300;400;500;600;700&display=swap');

:root {
  --brand-red: #cd0000;
  --brand-grey: #888;
  --brand-white: #dfdfdf;
  --nav-bg: rgba(0, 0, 0, 0.92);
  --content-max: 820px;
}

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

body {
  font-family: 'Quicksand', sans-serif;
  font-weight: 300;
  color: #333;
  line-height: 1.7;
  background: #fff;
}

/* ── Header / Hero ─────────────────────────────────── */

.site-header {
  position: relative;
  background-image: url('../images/cropped-AdobeStock_318563781_gradient-scaled-1.jpeg');
  background-size: cover;
  background-position: center 30%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.site-header.home {
  min-height: 480px;
}

.site-header.inner {
  min-height: 220px;
}

.header-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.95) 100%);
}

.site-header.inner .header-overlay {
  background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.95) 100%);
}

.site-branding {
  position: relative;
  z-index: 1;
  max-width: var(--content-max);
  margin-left: auto;
  margin-right: auto;
  padding: 1.5rem 2rem 2rem;
}

.site-title {
  font-family: 'Raleway', sans-serif;
  line-height: 1.1;
  text-decoration: none;
}

.site-header.home .site-title {
  font-size: 3rem;
}

.site-header.inner .site-title {
  font-size: 1.6rem;
}

.site-title a {
  text-decoration: none;
}

.site-description {
  color: #aaa;
  font-size: 0.95rem;
  margin-top: 0.4rem;
  letter-spacing: 0.03em;
}

.d-red     { color: var(--brand-red); }
.d-grey    { color: var(--brand-grey); }
.d-white   { color: var(--brand-white); }
.d-heavy   { font-weight: 700; }
.d-medium  { font-weight: 500; }
.d-light   { font-weight: 400; }

.site-header.home .d-firstletter  { font-size: 1.15em; }
.site-header.inner .d-firstletter { font-size: 1.1em; }

/* ── Navigation ────────────────────────────────────── */

.nav-bar {
  background: var(--nav-bg);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-bar .wrap {
  max-width: var(--content-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
}

.nav-bar ul {
  list-style: none;
  display: flex;
}

.nav-bar ul li a {
  display: block;
  padding: 1rem 1.25rem;
  color: #ccc;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.nav-bar ul li a:hover,
.nav-bar ul li a.active {
  color: var(--brand-red);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #ccc;
  font-size: 1.4rem;
  cursor: pointer;
  padding: 1rem 0;
  font-family: 'Quicksand', sans-serif;
  letter-spacing: 0.05em;
}

/* ── Content ───────────────────────────────────────── */

.site-content {
  max-width: var(--content-max);
  margin: 3rem auto 4rem;
  padding: 0 2rem;
}

h1, h2, h3 {
  font-family: 'Quicksand', sans-serif;
  font-weight: 500;
  line-height: 1.3;
}

h1 { font-size: 1.9rem; margin-bottom: 1.25rem; }
h2 { font-size: 1.6rem; margin: 2rem 0 1rem; }
h3 { font-size: 1.15rem; margin: 2rem 0 0.75rem; color: #222; }

p {
  margin-bottom: 1rem;
}

ul {
  margin: 0 0 1rem 30px;
  list-style-type: square;
}

ul li {
  margin-bottom: 0.4rem;
}

a {
  color: var(--brand-red);
}

a:hover {
  color: #a00000;
}

/* ── Transactions table ────────────────────────────── */

.table-wrap {
  overflow-x: auto;
  margin: 1.5rem 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

thead th {
  background: #2a2a2a;
  color: #fff;
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 600;
  font-family: 'Raleway', sans-serif;
  letter-spacing: 0.04em;
}

tbody td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #e5e5e5;
  vertical-align: top;
}

tbody tr:nth-child(odd) { background: #f8f8f8; }
tbody tr:nth-child(even) { background: #fff; }

.transactions-note {
  text-align: center;
  font-style: italic;
  color: #777;
  margin: 1.25rem 0;
  font-size: 0.875rem;
}

.tombstone-image {
  display: block;
  max-width: 380px;
  height: auto;
  margin: 2.5rem auto;
  border: 1px solid #ddd;
}

/* ── Contact form ──────────────────────────────────── */

.contact-form {
  max-width: 580px;
  margin-top: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 500;
  font-size: 0.95rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
  width: 100%;
  padding: 0.75rem 0.875rem;
  border: 1px solid #ccc;
  border-radius: 3px;
  font-family: 'Quicksand', sans-serif;
  font-size: 1rem;
  font-weight: 300;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--brand-red);
}

.form-group textarea {
  height: 160px;
  resize: vertical;
}

.btn-submit {
  background: var(--brand-red);
  color: #fff;
  border: none;
  padding: 0.875rem 2.5rem;
  font-family: 'Quicksand', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  cursor: pointer;
  border-radius: 3px;
  transition: background 0.2s;
}

.btn-submit:hover {
  background: #a00000;
}

.form-success {
  display: none;
  color: #2a7a2a;
  background: #eafaea;
  border: 1px solid #b3dbb3;
  border-radius: 3px;
  padding: 1rem;
  margin-top: 1rem;
}

/* ── Footer ────────────────────────────────────────── */

.site-footer {
  background: #1a1a1a;
  color: #666;
  text-align: center;
  padding: 2rem;
  font-size: 0.85rem;
}

/* ── Responsive ────────────────────────────────────── */

@media (max-width: 640px) {
  .site-header.home  { min-height: 340px; }
  .site-header.inner { min-height: 160px; }

  .site-header.home .site-title  { font-size: 2rem; }
  .site-header.inner .site-title { font-size: 1.25rem; }

  .nav-bar ul { display: none; flex-direction: column; width: 100%; }
  .nav-bar ul.open { display: flex; }
  .nav-bar .wrap { flex-direction: column; align-items: flex-start; padding: 0 1.25rem; }
  .menu-toggle { display: block; }
  .nav-bar ul li a { padding: 0.75rem 0; border-bottom: 1px solid rgba(255,255,255,0.07); width: 100%; }

  .site-content { margin: 2rem auto 3rem; }
  thead th, tbody td { padding: 0.5rem 0.6rem; font-size: 0.8rem; }
  .tombstone-image { max-width: 100%; }
}
