/* Robert Diamond — modern site styles */

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

:root {
  --color-bg: #fafafa;
  --color-surface: #ffffff;
  --color-text: #444444;
  --color-text-muted: #777777;
  --color-heading: #222222;
  --color-accent: #90ba3a;
  --color-accent-hover: #7a9e31;
  --color-border: #e0e0e0;
  --color-nav-bg: #222222;
  --max-width: 960px;
  --section-padding: 4rem 1.5rem;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 6px;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--color-accent-hover);
}

/* Header / Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-nav-bg);
  box-shadow: var(--shadow-md);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 60px;
}

.site-logo {
  font-size: 1.1rem;
  font-weight: 400;
  color: #fff;
  letter-spacing: 0.05em;
}

.site-logo strong {
  font-weight: 700;
}

.site-nav ul {
  display: flex;
  list-style: none;
  gap: 0.25rem;
}

.site-nav a {
  display: block;
  padding: 0.5rem 1rem;
  color: #aaa;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius);
  transition: color 0.2s, background 0.2s;
}

.site-nav a:hover,
.site-nav a.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: #fff;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  margin: 5px 0;
  transition: transform 0.3s, opacity 0.3s;
}

.menu-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Main layout */
main {
  max-width: var(--max-width);
  margin: 0 auto;
}

section {
  padding: var(--section-padding);
}

section + section {
  border-top: 1px solid var(--color-border);
}

.section-title {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--color-heading);
  margin-bottom: 2.5rem;
  padding-bottom: 0.75rem;
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 48px;
  height: 3px;
  background: var(--color-accent);
  border-radius: 2px;
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 3rem;
  align-items: center;
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
}

.hero-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 30%;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
}

.hero-content h1 {
  font-size: 2.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-heading);
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.hero-tagline {
  font-size: 1.1875rem;
  font-weight: 500;
  color: #555;
  margin-bottom: 1.5rem;
}

.role-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.role-pill {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  background: #f0f4e8;
  border: 1px solid #d8e5c0;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #5a7326;
  transition: background 0.2s, border-color 0.2s;
}

a.role-pill:hover {
  background: #e4edd6;
  border-color: var(--color-accent);
  color: #4a6020;
}

.social-links {
  display: flex;
  gap: 0.75rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.social-links a:hover {
  color: var(--color-accent);
  border-color: var(--color-accent);
  background: #f4f9ec;
}

.social-links svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Bio */
.bio-section {
  margin-bottom: 2.25rem;
}

.bio-section:last-of-type {
  margin-bottom: 0;
}

.bio-section h3 {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent-hover);
  margin-bottom: 0.75rem;
}

.bio-section p {
  max-width: 68ch;
  margin-bottom: 0.85rem;
  color: var(--color-text);
}

.bio-section p:last-child {
  margin-bottom: 0;
}

.bio-section .anniversary-box {
  margin-top: 2.25rem;
  max-width: none;
}

.bio-section .anniversary-box-header p {
  color: #bbb;
  max-width: none;
}

.anniversary-box {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.anniversary-box-header {
  padding: 1.75rem 1.75rem 1.25rem;
  background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
  color: #fff;
  border-bottom: 3px solid var(--color-accent);
}

.anniversary-badge {
  display: inline-block;
  margin-bottom: 0.65rem;
  padding: 0.3rem 0.75rem;
  background: rgba(144, 186, 58, 0.2);
  border: 1px solid rgba(144, 186, 58, 0.5);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #c5dfa8;
}

.anniversary-box-header h4 {
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #fff;
  margin-bottom: 0.5rem;
}

.anniversary-box-header p {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: #bbb;
  max-width: none;
  margin-bottom: 0;
}

.anniversary-box-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: #f8f8f8;
  align-items: stretch;
}

.anniversary-panel {
  padding: 1.25rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.anniversary-panel-video {
  justify-content: flex-start;
}

.anniversary-panel-proclamation {
  justify-content: flex-start;
}

.anniversary-panel + .anniversary-panel {
  border-left: 1px solid var(--color-border);
}

.anniversary-panel-label {
  display: block;
  margin-bottom: 0.75rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  flex-shrink: 0;
}

.video-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  border-radius: 8px;
  overflow: hidden;
  background: #111;
  box-shadow: var(--shadow);
  flex-shrink: 0;
}

.video-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.proclamation-thumb {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  margin-bottom: 0.85rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  background: #fff;
  box-shadow: var(--shadow);
  flex-shrink: 0;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.proclamation-thumb:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-md);
}

.proclamation-thumb img {
  display: block;
  width: 100%;
  height: 130px;
  object-fit: cover;
  object-position: center top;
}

.proclamation-enlarge {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.45rem;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  text-align: center;
  opacity: 0;
  transition: opacity 0.2s;
}

.proclamation-thumb:hover .proclamation-enlarge {
  opacity: 1;
}

.proclamation-text {
  flex: 1;
  min-height: 0;
  max-height: 220px;
  overflow-y: auto;
  padding: 0.85rem 1rem;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--color-text);
}

.proclamation-text p {
  margin-bottom: 0.65rem;
  max-width: none;
}

.proclamation-text p:last-child {
  margin-bottom: 0;
}

.proclamation-office {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-accent-hover);
}

.proclamation-decreed {
  padding-top: 0.35rem;
  border-top: 1px solid var(--color-border);
  font-size: 0.875rem;
}

.proclamation-signatory {
  font-style: italic;
  color: var(--color-text-muted);
}

.proclamation-caption {
  margin-top: 0.65rem;
  margin-bottom: 0;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  text-align: center;
  flex-shrink: 0;
}

/* Proclamation lightbox */
.proclamation-modal[hidden] {
  display: none;
}

.proclamation-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.proclamation-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
}

.proclamation-modal-dialog {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  z-index: 1;
}

.proclamation-modal-dialog img {
  display: block;
  max-width: 100%;
  max-height: 90vh;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.proclamation-modal-close {
  position: absolute;
  top: -12px;
  right: -12px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: #fff;
  color: #333;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  z-index: 2;
}

.proclamation-modal-close:hover {
  background: #f0f0f0;
}

body.modal-open {
  overflow: hidden;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2.5rem;
}

.contact-info h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-heading);
  margin-bottom: 1rem;
}

.contact-info ul {
  list-style: none;
}

.contact-info li {
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.contact-info a {
  color: var(--color-text);
}

.contact-info a:hover {
  color: var(--color-accent);
}

.contact-location {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.form-alert {
  padding: 0.875rem 1rem;
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
  font-size: 0.9375rem;
}

.form-alert.success {
  background: #edf7e3;
  color: #3d6620;
  border: 1px solid #c5dfa8;
}

.form-alert.error {
  background: #fdecea;
  color: #8b2e2e;
  border: 1px solid #f5c6c6;
}

.contact-form label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-heading);
  margin-bottom: 0.35rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  margin-bottom: 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.9375rem;
  color: var(--color-text);
  background: var(--color-surface);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(144, 186, 58, 0.2);
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  overflow: hidden;
}

.turnstile-widget {
  display: none;
}

.btn-submit:disabled {
  opacity: 0.7;
  cursor: wait;
}

.btn-submit {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  background: var(--color-accent);
  color: #fff;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s;
}

.btn-submit:hover {
  background: var(--color-accent-hover);
}

/* Footer */
.site-footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.5rem;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

.site-footer a {
  font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--color-nav-bg);
    padding: 0.5rem 1rem 1rem;
    box-shadow: var(--shadow-md);
  }

  .site-nav.open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
  }

  .site-nav a {
    padding: 0.75rem 1rem;
  }

  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1.5rem;
  }

  .hero-photo {
    max-width: 240px;
    margin: 0 auto;
  }

  .role-pills {
    justify-content: center;
  }

  .social-links {
    justify-content: center;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .anniversary-box-body {
    grid-template-columns: 1fr;
  }

  .anniversary-panel + .anniversary-panel {
    border-left: none;
    border-top: 1px solid var(--color-border);
  }

  .proclamation-text {
    max-height: none;
  }

  .anniversary-box-header,
  .anniversary-panel {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  section {
    padding: 2.5rem 1.25rem;
  }
}
