/* Typography and header aligned to Specialty pages */
:root {
  --specialty-header-bg: #383a38;
  --specialty-header-fg: #fff6e2;

  --ink: #383a38;
  --muted: #6b6b6b;
  --edge: rgba(0, 0, 0, 0.12);
  --paper: #f6f2ea;
  font-family: "Segoe UI";
}
/* Gray header (H1 + back buttons) */
.specialty-header {
  background-color: #383a38;
  color: #fff6e2;
  text-align: center;
  padding: 40px 20px;
  position: relative; /* position back buttons inside */
}
.specialty-header h1 {
  margin: 0;
  font-size: 2.8rem;
  line-height: 1.1;
  color: #fff6e2;
}
.specialty-header .back-button {
  position: absolute;
  color: #fff6e2;
  text-decoration: none;
  font-size: 0.1rem;
  padding: 8px 12px;
  border: 1px solid #fff6e2;
  border-radius: 8px;
  background-color: transparent;
  transition: background-color 0.2s;
}
.specialty-header .back-button.second {
  top: 60px;
}
.specialty-header .back-button:hover {
  background-color: rgba(255, 215, 0, 0.1);
}

/* Mobile fix */
@media (max-width: 700px) {
  .specialty-header {
    padding: 16px 16px 20px;
    text-align: center;
  }

  .specialty-header .back-button,
  .specialty-header .back-button.second {
    position: static;
    display: inline-block;
    margin: 0 8px 10px 0;
    font-size: 0.95rem;
  }
}

/* Cream paper background for the entire reasons page content (path is relative to /css/) */
.specialty-page.reasons-page {
  background-image: url("../images/navbar-cream.webp");
  background-position: center top;
  background-size: 100% auto;
  background-repeat: repeat-y;
  font-family: "Segoe UI", ui-sans-serif, system-ui, Arial, Roboto, sans-serif;
  color: #383a38;
  margin: 0;
}

.specialty-page .specialty-header {
  background-color: var(--specialty-header-bg);
  color: var(--specialty-header-fg);
  text-align: center;
  padding: 10px 20px;
}
.specialty-page .specialty-header h1 {
  margin: 0;
  text-align: center;
  color: var(--specialty-header-fg);
  font-size: 2.4rem; /* match specialties */
  letter-spacing: 0.2px;
}

/* Layout */
.city-main {
  max-width: 1650px;
  margin: 0 auto;
  padding: 40px 20px;
}

.city-grid {
  display: grid;
  grid-template-columns: minmax(420px, 1.25fr) minmax(220px, 1fr);
  gap: 40px;
  align-items: start;
}

/* Left column (text) – reuse specialty text scale */
.text-side {
  max-width: none;
  text-align: left;
  width: 100%;
}
.text-side h2 {
  font-size: 2.5rem; /* match specialties */
  color: var(--ink);
  margin: 0 0 16px;
}
.text-side h3 {
  color: var(--ink);
  margin: 18px 0 8px;
  font-size: 1.25rem;
}
.text-side p {
  font-size: 1.1rem; /* match specialties */
  line-height: 1.6;
  color: var(--ink);
  margin: 0.5rem 0 0.9rem;
}
.text-side .note {
  color: #2f2f2f;
  font-size: 1.05rem;
}

/* Lists same feel as specialties */
.text-side ul {
  margin: 0 0 16px;
  padding-left: 1.2rem;
  list-style-position: outside;
}
.text-side li {
  color: var(--ink);
  line-height: 1.6;
  margin: 0 0 10px;
}
.text-side li::marker {
  color: var(--ink);
}
.text-side li strong {
  color: var(--ink);
}

/* Right column (vertical image stack) */
.city-images {
  display: grid;
  grid-auto-rows: auto;
  gap: 16px;
}
.city-images figure {
  margin: 0;
  background: #fff;
  border: 1px solid var(--edge);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(26, 6, 6, 0.2);
}
.city-images img {
  display: block;
  width: 100%;
  height: 260px;
  object-fit: cover;
}
.city-images figcaption {
  padding: 8px 12px 12px;
  font-size: 0.95rem;
  color: var(--muted);
}

/* FAQ section “cut” after image column */
.faq-section {
  max-width: 1200px;
  margin: 20px auto 40px;
  padding: 22px 20px 10px;
  border-top: 2px solid var(--edge);
}
.faq-section h2 {
  margin: 0 0 12px;
  font-size: 2rem; /* sits between H2(2.5) and body */
  color: var(--ink);
}

details {
  background: #fff;
  border: 1px solid var(--edge);
  border-radius: 10px;
  margin: 10px 0;
  overflow: hidden;
}
summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 16px;
  font-weight: 600;
  color: var(--ink);
  position: relative;
}
summary::-webkit-details-marker {
  display: none;
}
summary::after {
  content: "+";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 700;
}
details[open] summary::after {
  content: "−";
}
.answer {
  padding: 0 16px 14px;
  color: #2f2f2f;
  line-height: 1.6;
  font-size: 1.05rem;
}

/* Footer */
.city-footer {
  text-align: center;
  padding: 30px 16px 40px;
  color: #5b5b5b;
  font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 900px) {
  .city-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .city-images img {
    height: 220px;
  }
}

/* Footer with CTAs (match specialty style) */
.city-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 30px 16px 40px;
  text-align: center;
}
.footer-btn {
  background-color: #fff6ef;
  color: #383a38;
  padding: 12px 24px;
  text-decoration: none;
  border-radius: 10px;
  font-weight: bold;
  transition: background-color 0.3s;
}
.footer-btn:hover {
  background-color: #ffffff;
}
/* ==== Desktop fixes: thicker header + left-stacked buttons (keep mobile as-is) ==== */
@media (min-width: 701px) {
  /* Make the header thicker on desktop */
  .city-page .specialty-header {
    padding: 72px 20px 64px; /* thicker top area */
    text-align: center; /* keep H1 centered */
  }

  /* Position both back buttons on the left, stacked */
  .city-page .specialty-header .back-button {
    position: absolute;
    left: 20px;
    top: 24px; /* first button */
    display: inline-block;
    font-size: 0.95rem; /* readable size (fixes the 0.1rem issue) */
    padding: 8px 12px;
    border: 1px solid #fff6e2;
    border-radius: 8px;
    background: transparent;
    color: #fff6e2;
    text-decoration: none;
    line-height: 1; /* tighter chip look */
  }

  .city-page .specialty-header .back-button.second {
    top: 64px; /* stack below the first */
  }
}
