/* Yendor Cats v3 layout. Colours and fonts come from variables.css (staging design). */

html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; }
img { max-width: 100%; display: block; }
.container { width: min(1200px, 100% - 32px); margin-inline: auto; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg-navbar, #e4c200);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .25);
}
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.logo { text-decoration: none; }
.logo h1 { margin: 0; font-family: var(--font-heading, 'Playfair Display', serif); font-size: 28px; color: var(--color-red, #8B0000); }
.logo h1 span, .footer-logo span { color: var(--color-white, #fff); }
.site-nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.site-nav a {
  color: var(--color-red, #8B0000); font-weight: 600; text-decoration: none;
  padding: 6px 2px; font-family: var(--font-body, 'Raleway', sans-serif);
}
.site-nav a:hover { text-decoration: underline; }
.site-nav .nav-highlight, .site-nav .nav-cta {
  background: var(--color-red, #8B0000); color: #fff; border-radius: 20px; padding: 6px 14px;
}
.menu-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.menu-toggle span { display: block; width: 24px; height: 3px; margin: 4px 0; background: var(--color-red, #8B0000); }
@media (max-width: 860px) {
  .menu-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column;
    background: var(--bg-navbar, #e4c200); padding: 8px 16px 16px; }
  .site-nav.open { display: flex; }
}

/* Hero */
.hero { position: relative; min-height: 70vh; display: grid; place-items: center; text-align: center;
  background: url('../img/all-seven-at-11-weeks.jpg') center / cover no-repeat; }
.hero-overlay { position: absolute; inset: 0; background: rgba(60, 0, 0, .55); }
.hero-content { position: relative; color: #fff; padding: 64px 0; }
.hero-content h2 { font-family: var(--font-heading, serif); font-size: clamp(36px, 6vw, 64px); margin: 0 0 12px; color: var(--color-gold, #e4c200); }
.hero-text { font-size: clamp(17px, 2.2vw, 22px); max-width: 640px; margin: 0 auto 24px; }
.hero-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Text */
.prose { font-size: 17px; line-height: 1.7; }
.prose p { margin: 0 0 1em; }
.section-header.left { text-align: left; }
.section-intro { font-size: 18px; margin-bottom: 20px; }

/* About */
.about-grid { display: grid; grid-template-columns: 280px 1fr; gap: 32px; align-items: start; }
.about-side { display: grid; gap: 16px; }
.about-head { display: flex; gap: 16px; align-items: center; margin-bottom: 12px; }
.about-head h3 { margin: 0; }
.about-main .picbox.wide { margin: 8px 0 20px; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } .about-side { grid-template-columns: 1fr 1fr; } }

.intro-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: start; }
@media (max-width: 860px) { .intro-grid { grid-template-columns: 1fr; } }
.legends, .memorial { margin-top: 20px; border-top: 1px solid rgba(255, 255, 255, .25); padding-top: 12px; }
.legends summary, .memorial summary { cursor: pointer; font-weight: 600; font-size: 18px; color: var(--color-gold, #e4c200); }
.memorial summary span { display: inline; }

/* Picture boxes: photos keep their true shape (never stretched). */
.picbox { position: relative; overflow: hidden; border-radius: 10px; background: rgba(0, 0, 0, .25); }
.picbox img { width: 100%; height: 100%; object-fit: cover; }
.picbox.tall { aspect-ratio: 3 / 4; }
.picbox.wide { aspect-ratio: 16 / 9; }
.picbox.portrait { aspect-ratio: 4 / 5; }
.picbox.square { aspect-ratio: 1; }
.picbox.small { width: 110px; flex: none; }
.picbox-empty { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 8px;
  font-size: 16px; color: #fff; border: 3px dashed rgba(255, 255, 255, .6); border-radius: 10px; }

/* Cat cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; margin-top: 20px; }
.featured .cards { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.card { background: rgba(0, 0, 0, .25); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; }
.card-photos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.card-photos .photo { position: relative; aspect-ratio: 1; overflow: hidden; background: rgba(0, 0, 0, .3); cursor: zoom-in; }
.card-photos .photo.main { grid-column: 1 / -1; aspect-ratio: 4 / 3; }
.card-photos .photo img { width: 100%; height: 100%; object-fit: cover; }
.card-name { margin: 12px 14px 4px; font-family: var(--font-heading, serif); color: var(--color-gold, #e4c200); }
.card-text { margin: 0 14px 14px; font-size: 15px; line-height: 1.55; }
.cards-empty { opacity: .8; font-style: italic; }

.contact-card { background: rgba(0, 0, 0, .25); border-radius: 12px; padding: 24px; max-width: 720px; margin: 0 auto; }
.contact-card a { color: var(--color-gold, #e4c200); }

/* Footer */
.footer-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; padding: 24px 0; }
.footer-logo { margin: 0; font-family: var(--font-heading, serif); color: var(--color-gold, #e4c200); }
.footer-admin { color: inherit; opacity: .75; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(0, 0, 0, .9); display: grid; place-items: center; padding: 24px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 90vh; object-fit: contain; border-radius: 6px; }
.lightbox-close { position: absolute; top: 12px; right: 16px; font-size: 40px; background: none; border: 0; color: #fff; cursor: pointer; }

.edit-fab { position: fixed; right: 20px; bottom: 20px; z-index: 60; background: var(--color-gold, #e4c200);
  color: #000; font-weight: 700; font-size: 18px; padding: 14px 20px; border-radius: 30px; text-decoration: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .4); }
