/* ============================================================
   Fredericksburg City Cemetery — Main Stylesheet
   ============================================================ */

/* Google Fonts loaded in header.php */

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green-dark:   #2a4030;
  --green-mid:    #3d5c45;
  --gold:         #b8962e;
  --gold-light:   #d4af5a;
  --stone:        #7a6e5f;
  --cream:        #f5f0e8;
  --cream-dark:   #ece5d8;
  --text:         #2b2b2b;
  --text-light:   #5a5248;
  --white:        #ffffff;
  --border:       #cec3b2;
  --font-serif:   'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body:    'Lato', 'Helvetica Neue', Arial, sans-serif;
  --shadow:       0 4px 24px rgba(0,0,0,.15);
  --shadow-sm:    0 2px 8px rgba(0,0,0,.10);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  color: var(--text);
  background: var(--cream);
}

img { max-width: 100%; height: auto; display: block; }
a   { color: var(--green-mid); text-decoration: none; transition: color .2s; }
a:hover { color: var(--gold); }

/* ── Typography ── */
h1, h2, h3, h4, h5 {
  font-family: var(--font-serif);
  line-height: 1.25;
  color: var(--green-dark);
}
h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 700; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.7rem); font-weight: 600; }
h4 { font-size: 1.15rem; font-weight: 600; }

p { margin-bottom: 1.2em; }
p:last-child { margin-bottom: 0; }

ul, ol {
  padding-left: 1.4em;
  margin-bottom: 1.2em;
}
li { margin-bottom: .4em; }

/* ── Layout ── */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 72px 0;
}
.section--alt {
  background: var(--cream-dark);
}
.section--dark {
  background: var(--green-dark);
  color: var(--cream);
}
.section--dark h1,
.section--dark h2,
.section--dark h3 {
  color: var(--gold-light);
}
.section--dark p,
.section--dark li {
  color: var(--cream);
}

.section__header {
  text-align: center;
  margin-bottom: 48px;
}
.section__header h2 {
  margin-bottom: 12px;
}
.section__divider {
  width: 60px;
  height: 3px;
  background: var(--gold);
  margin: 0 auto 20px;
  border: none;
}
.section__subtitle {
  font-size: 1rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

/* ── Navigation ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--green-dark);
  box-shadow: 0 2px 12px rgba(0,0,0,.35);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.nav-logo__icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
}
.nav-logo__text {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  color: var(--cream);
  line-height: 1.2;
}
.nav-logo__text span {
  display: block;
  font-size: .72rem;
  font-weight: 400;
  color: var(--gold-light);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 4px;
  margin: 0;
  padding: 0;
}
.nav-menu a {
  display: block;
  padding: 8px 14px;
  font-size: .87rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--cream);
  border-radius: 4px;
  transition: background .2s, color .2s;
}
.nav-menu a:hover,
.nav-menu a.active {
  background: var(--green-mid);
  color: var(--gold-light);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
}
.nav-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--cream);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--green-dark);
}
.hero__bg {
  position: absolute;
  inset: 0;
  background-image: url('https://fredericksburgcitycemetery.org/wp-content/uploads/2022/04/citycemetery-1-980x735.jpg');
  background-size: cover;
  background-position: center 30%;
  opacity: .38;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(30,50,35,.5) 0%, rgba(20,35,25,.85) 100%);
}
.hero__content {
  position: relative;
  z-index: 1;
  max-width: 760px;
}
.hero__eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 18px;
  padding: 6px 16px;
  border: 1px solid var(--gold);
  border-radius: 2px;
}
.hero__title {
  color: var(--white);
  margin-bottom: 20px;
  text-shadow: 0 2px 8px rgba(0,0,0,.4);
}
.hero__title em {
  font-style: italic;
  color: var(--gold-light);
}
.hero__desc {
  font-size: 1.1rem;
  color: rgba(245,240,232,.88);
  margin-bottom: 36px;
  line-height: 1.8;
}
.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: 13px 30px;
  font-family: var(--font-body);
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  border-radius: 3px;
  transition: background .2s, color .2s, box-shadow .2s;
  cursor: pointer;
  border: 2px solid transparent;
}
.btn--primary {
  background: var(--gold);
  color: var(--green-dark);
  border-color: var(--gold);
}
.btn--primary:hover {
  background: var(--gold-light);
  color: var(--green-dark);
  box-shadow: 0 4px 16px rgba(184,150,46,.45);
}
.btn--outline {
  background: transparent;
  color: var(--cream);
  border-color: var(--cream);
}
.btn--outline:hover {
  background: var(--cream);
  color: var(--green-dark);
}
.btn--outline-dark {
  background: transparent;
  color: var(--green-dark);
  border-color: var(--green-dark);
}
.btn--outline-dark:hover {
  background: var(--green-dark);
  color: var(--cream);
}
.btn--gold-outline {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold);
}
.btn--gold-outline:hover {
  background: var(--gold);
  color: var(--green-dark);
}

/* ── Cards ── */
.cards {
  display: grid;
  gap: 28px;
}
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.cards--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--white);
  border-radius: 6px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform .25s, box-shadow .25s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.card__img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}
.card__body {
  padding: 28px;
}
.card__body h3 {
  margin-bottom: 10px;
}
.card__body p {
  font-size: .95rem;
  color: var(--text-light);
}
.card__body .btn {
  margin-top: 18px;
}

/* ── Info Strip ── */
.info-strip {
  background: var(--green-mid);
  padding: 28px 0;
}
.info-strip__inner {
  display: flex;
  gap: 16px;
  justify-content: space-around;
  flex-wrap: wrap;
  text-align: center;
}
.info-item {
  color: var(--cream);
}
.info-item__icon {
  font-size: 1.6rem;
  margin-bottom: 6px;
}
.info-item__label {
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 4px;
}
.info-item__value {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
}

/* ── Two-Column Layout ── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.two-col--rev { direction: rtl; }
.two-col--rev > * { direction: ltr; }

.two-col__img {
  border-radius: 6px;
  box-shadow: var(--shadow);
  width: 100%;
  height: 420px;
  object-fit: cover;
}

/* ── Feature Banner ── */
.feature-banner {
  position: relative;
  min-height: 340px;
  display: flex;
  align-items: center;
  background: var(--green-dark);
  overflow: hidden;
}
.feature-banner__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: .3;
}
.feature-banner__content {
  position: relative;
  z-index: 1;
}
.feature-banner h2 { color: var(--white); }
.feature-banner p  { color: rgba(245,240,232,.85); }

/* ── Page Hero (inner pages) ── */
.page-hero {
  background: var(--green-dark);
  padding: 64px 0 54px;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(to right, var(--gold), var(--gold-light), var(--gold));
}
.page-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: .2;
}
.page-hero__content {
  position: relative;
  z-index: 1;
}
.page-hero h1 { color: var(--white); }
.page-hero .breadcrumb {
  font-size: .83rem;
  color: var(--gold-light);
  margin-bottom: 14px;
  letter-spacing: .05em;
}
.page-hero .breadcrumb a { color: var(--gold-light); }
.page-hero .breadcrumb a:hover { color: var(--white); }

/* ── Policy List ── */
.policy-group {
  margin-bottom: 44px;
}
.policy-group h3 {
  color: var(--green-dark);
  border-bottom: 2px solid var(--gold);
  padding-bottom: 8px;
  margin-bottom: 20px;
}
.policy-group ol,
.policy-group ul {
  padding-left: 1.6em;
}
.policy-group li {
  margin-bottom: .7em;
  color: var(--text);
  font-size: .97rem;
}

/* ── Rates Table ── */
.rates-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 32px;
  background: var(--white);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.rates-table th {
  background: var(--green-dark);
  color: var(--cream);
  font-family: var(--font-serif);
  padding: 14px 20px;
  text-align: left;
  font-size: 1rem;
}
.rates-table td {
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  font-size: .95rem;
}
.rates-table tr:last-child td { border-bottom: none; }
.rates-table tr:nth-child(even) td { background: var(--cream); }
.rates-table td:last-child { font-weight: 700; color: var(--green-dark); text-align: right; }

/* ── Contact ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 60px;
  align-items: start;
}
.contact-info h3 {
  margin-bottom: 20px;
}
.contact-detail {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 22px;
}
.contact-detail__icon {
  font-size: 1.3rem;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--gold);
}
.contact-detail__text strong {
  display: block;
  font-size: .8rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 3px;
}
.contact-detail__text a { color: var(--green-mid); }
.contact-detail__text a:hover { color: var(--gold); }

.contact-form {
  background: var(--white);
  padding: 40px;
  border-radius: 6px;
  box-shadow: var(--shadow-sm);
}
.contact-form h3 { margin-bottom: 24px; }
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 7px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  font-family: var(--font-body);
  font-size: .97rem;
  color: var(--text);
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 4px;
  transition: border-color .2s, box-shadow .2s;
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--green-mid);
  box-shadow: 0 0 0 3px rgba(61,92,69,.15);
}
.form-group textarea { resize: vertical; min-height: 130px; }

/* ── Map embed ── */
.map-wrap {
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-top: 36px;
}
.map-wrap iframe {
  width: 100%;
  height: 320px;
  border: none;
  display: block;
}

/* ── Donate ── */
.donate-hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  background: var(--green-dark);
  overflow: hidden;
}
.donate-hero__bg {
  position: absolute;
  inset: 0;
  background-image: url('https://fredericksburgcitycemetery.org/wp-content/uploads/2022/03/pRmDjfqk-scaled.jpeg');
  background-size: cover;
  background-position: center;
  opacity: .28;
}
.donate-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(30,50,35,.8) 40%, rgba(30,50,35,.3) 100%);
}
.donate-hero__content {
  position: relative;
  z-index: 1;
  max-width: 680px;
}
.donate-hero h1 { color: var(--white); }
.donate-hero p { color: rgba(245,240,232,.9); }

.donate-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.donate-option {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: 6px;
  padding: 32px 24px;
  text-align: center;
  transition: border-color .2s, box-shadow .2s;
}
.donate-option:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-sm);
}
.donate-option__amount {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 8px;
}
.donate-option p {
  font-size: .92rem;
  color: var(--text-light);
  margin-bottom: 20px;
}

/* ── Workshop / Gallery ── */
.workshop-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: start;
}
.workshop-imgs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.workshop-imgs img {
  border-radius: 4px;
  width: 100%;
  height: 240px;
  object-fit: cover;
}
.workshop-imgs img:first-child {
  grid-column: 1 / -1;
  height: 280px;
}

/* ── Lot Map ── */
.lot-map-wrap {
  background: var(--white);
  border-radius: 6px;
  padding: 8px;
  box-shadow: var(--shadow-sm);
  text-align: center;
}
.lot-map-wrap img {
  border-radius: 4px;
  width: 100%;
}
.lot-map-wrap figcaption {
  font-size: .85rem;
  color: var(--stone);
  padding: 12px 8px 6px;
  font-style: italic;
}

/* ── Callout Box ── */
.callout {
  background: var(--green-dark);
  color: var(--cream);
  border-left: 5px solid var(--gold);
  padding: 24px 28px;
  border-radius: 0 6px 6px 0;
  margin-bottom: 28px;
}
.callout p { color: var(--cream); margin-bottom: 0; }
.callout strong { color: var(--gold-light); }

/* ── Footer ── */
.site-footer {
  background: #141f18;
  color: rgba(245,240,232,.75);
  padding: 60px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-brand__logo {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--cream);
  margin-bottom: 12px;
}
.footer-brand__logo span {
  display: block;
  font-size: .75rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold-light);
  font-family: var(--font-body);
}
.footer-brand p {
  font-size: .88rem;
  line-height: 1.7;
  color: rgba(245,240,232,.65);
  margin-bottom: 16px;
}
.footer-social {
  display: flex;
  gap: 10px;
}
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,.08);
  color: var(--cream);
  border-radius: 50%;
  font-size: .9rem;
  transition: background .2s;
}
.footer-social a:hover { background: var(--gold); color: var(--green-dark); }

.footer-col h4 {
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 18px;
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links li { margin-bottom: 9px; }
.footer-links a {
  color: rgba(245,240,232,.7);
  font-size: .9rem;
  transition: color .2s;
}
.footer-links a:hover { color: var(--cream); }

.footer-contact-item {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  font-size: .9rem;
  color: rgba(245,240,232,.7);
}
.footer-contact-item span:first-child { color: var(--gold-light); flex-shrink: 0; }
.footer-contact-item a { color: rgba(245,240,232,.7); }
.footer-contact-item a:hover { color: var(--cream); }

.footer-bottom {
  padding: 20px 0;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  font-size: .82rem;
  color: rgba(245,240,232,.4);
}

/* ── Utility ── */
.text-center { text-align: center; }
.text-gold    { color: var(--gold) !important; }
.mt-0  { margin-top: 0; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-0  { margin-bottom: 0; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .cards--3         { grid-template-columns: 1fr 1fr; }
  .footer-grid      { grid-template-columns: 1fr 1fr; }
  .donate-options   { grid-template-columns: 1fr 1fr; }
  .workshop-grid    { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .section { padding: 52px 0; }

  .nav-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--green-dark);
    padding: 12px 0 20px;
    box-shadow: 0 8px 24px rgba(0,0,0,.3);
  }
  .nav-menu.open { display: flex; }
  .nav-toggle { display: flex; }
  .site-header { position: relative; }

  .two-col         { grid-template-columns: 1fr; gap: 32px; }
  .two-col--rev    { direction: ltr; }
  .two-col__img    { height: 280px; }
  .cards--3        { grid-template-columns: 1fr; }
  .cards--2        { grid-template-columns: 1fr; }
  .contact-grid    { grid-template-columns: 1fr; gap: 36px; }
  .donate-options  { grid-template-columns: 1fr; }
  .workshop-imgs img:first-child { height: 200px; }
  .workshop-imgs img { height: 160px; }
  .footer-grid     { grid-template-columns: 1fr; gap: 32px; }
  .hero { min-height: 70vh; }
}

@media (max-width: 480px) {
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { text-align: center; }
  .contact-form { padding: 24px 20px; }
  .info-strip__inner { gap: 28px; }
  .rates-table th,
  .rates-table td { padding: 10px 12px; font-size: .88rem; }
}
