/* Museum of Portuguese Jewish History - Responsive styles */
:root {
  --color-bg: #f8f6f2;
  --color-paper: #fffef9;
  --color-text: #2c2c2c;
  --color-muted: #5a5a5a;
  --color-accent: #6b4423;
  --color-accent-hover: #8b5a2b;
  --color-border: #ddd8d0;
  --font-heading: 'Cormorant Garamond', 'Georgia', serif;
  --font-body: 'Source Sans 3', 'Helvetica Neue', Arial, sans-serif;
  --shadow: 0 2px 12px rgba(0,0,0,0.06);
  --radius: 6px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--color-text);
  gap: 0.75rem;
}

.logo-link img {
  height: 56px;
  width: auto;
  display: block;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* Navigation */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--color-border);
  padding: 0.5rem 0.75rem;
  font-size: 1.25rem;
  cursor: pointer;
  border-radius: var(--radius);
  color: var(--color-text);
}

.nav-menu {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
}

.nav-menu a {
  text-decoration: none;
  color: var(--color-muted);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  padding: 0.4rem 0;
  transition: color 0.2s;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--color-accent);
}

/* Language dropdown - top right */
.lang-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

.lang-dropdown {
  font-family: var(--font-body);
  font-size: 0.9rem;
  padding: 0.4rem 0.5rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-paper);
  color: var(--color-text);
  cursor: pointer;
  min-width: 10rem;
}

.lang-dropdown:focus {
  outline: none;
  border-color: var(--color-accent);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

#google_translate_element {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Photo placeholder - 21:9 aspect ratio, dotted border */
.photo-placeholder {
  width: 100%;
  max-width: 100%;
  min-height: 120px;
  aspect-ratio: 21 / 9;
  border: 2px dashed var(--color-border);
  border-radius: var(--radius);
  background: var(--color-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-muted);
  font-size: 0.95rem;
  margin: 1.5rem 0;
  box-sizing: border-box;
}

.photo-placeholder::before {
  content: 'Photo placeholder';
}

/* Page hero image (named after each page) */
.page-image {
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  display: block;
}

/* Main content */
main {
  flex: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  width: 100%;
}

.page-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 1.5rem;
  letter-spacing: 0.02em;
}

.content-block {
  background: var(--color-paper);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
}

.content-block p {
  margin-bottom: 1rem;
}

.content-block p:last-child {
  margin-bottom: 0;
}

.content-block a {
  color: var(--color-accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}

.content-block a:hover {
  border-bottom-color: var(--color-accent);
  color: var(--color-accent-hover);
}

.content-block hr.content-divider {
  margin: 2rem 0;
  border: none;
  border-top: 1px solid var(--color-border);
}

.content-block .resource-list,
.content-block ul.resource-list {
  list-style: none;
  padding-left: 0;
}

.content-block .resource-list li {
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--color-border);
}

.content-block .resource-list li:last-child {
  border-bottom: none;
}

.content-block .resource-list a {
  font-weight: 500;
}

/* FAQ accordions */
.faq-accordions .faq-accordion {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  overflow: hidden;
}
.faq-accordions .faq-accordion:last-child {
  margin-bottom: 0;
}
.faq-accordions .faq-accordion summary {
  cursor: pointer;
  padding: 1rem 1.25rem;
  list-style: none;
  font-weight: 600;
}
.faq-accordions .faq-accordion summary::-webkit-details-marker {
  display: none;
}
.faq-accordions .faq-accordion summary::before {
  content: '+';
  margin-right: 0.5rem;
  font-weight: 700;
  color: var(--color-accent);
}
.faq-accordions .faq-accordion[open] summary::before {
  content: '−';
}
.faq-accordions .faq-accordion summary h2 {
  display: inline;
  font-size: 1.15rem;
  margin: 0;
  font-weight: 600;
}
.faq-accordions .faq-panel {
  padding: 0 1.25rem 1.25rem;
  border-top: 1px solid var(--color-border);
}
.faq-accordions .faq-panel ul {
  margin: 0.75rem 0 0;
  padding-left: 1.25rem;
}

.lead {
  font-size: 1.15rem;
  color: var(--color-muted);
  margin-bottom: 1.5rem;
}

/* Buttons / CTAs */
.btn {
  display: inline-block;
  padding: 0.65rem 1.5rem;
  background: var(--color-accent);
  color: #fff !important;
  text-decoration: none;
  font-weight: 600;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.2s;
  margin-top: 0.5rem;
}

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

/* Contact form */
.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--color-text);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  font-family: var(--font-body);
  font-size: 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: #fff;
}

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

.form-message.form-success {
  color: #0d6e0d;
  font-weight: 500;
}
.form-message.form-error {
  color: #b52;
  font-weight: 500;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 2px rgba(107, 68, 35, 0.15);
}

.form-note {
  font-size: 0.9rem;
  color: var(--color-muted);
  margin-top: 0.25rem;
}

/* Quote / blockquote */
.quote, blockquote {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--color-muted);
  margin: 1rem 0;
  padding-left: 1rem;
  border-left: 3px solid var(--color-accent);
}

/* Footer */
.site-footer {
  background: var(--color-paper);
  border-top: 1px solid var(--color-border);
  padding: 1.5rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--color-muted);
}

.site-footer a {
  color: var(--color-accent);
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.footer-links {
  margin-top: 0.5rem;
}

.footer-links a + a {
  margin-left: 1rem;
}

/* Under construction notice */
.under-construction {
  padding: 2rem;
  text-align: center;
  color: var(--color-muted);
  font-style: italic;
}

/* Portuguese notice */
.lang-notice {
  font-size: 0.95rem;
  color: var(--color-muted);
  margin-top: 1rem;
}

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

  .nav-menu {
    display: none;
    width: 100%;
    flex-direction: column;
    padding-top: 0.5rem;
    border-top: 1px solid var(--color-border);
    margin-top: 0.5rem;
  }

  .nav-menu.is-open {
    display: flex;
  }

  .nav-menu a {
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--color-border);
  }

  .nav-menu a:last-child {
    border-bottom: none;
  }

  main {
    padding: 1.5rem 1rem;
  }

  .content-block {
    padding: 1.5rem;
  }

  .page-title {
    font-size: 1.65rem;
  }

  .logo-link img {
    height: 48px;
  }

  .logo-text {
    font-size: 1.15rem;
  }
}

@media (min-width: 769px) {
  .nav-menu {
    display: flex !important;
  }
}
