/* ==========================================================================
   Redline Welding & Fabrication - service, service-area and FAQ styles
   Loaded after app.css. Kept in its own file so app.css stays untouched.

   1. Breadcrumbs
   2. Section intro + prose
   3. Side box (quote box on service and area pages)
   4. Area cards + area rows
   5. FAQ
   6. Link lists
   ========================================================================== */


/* 1. BREADCRUMBS
   -------------------------------------------------------------------------- */
.breadcrumbs-bar ol {
  display: flex;
  flex-wrap: wrap;
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.breadcrumbs-bar li + li::before {
  content: '/';
  margin: 0 0.6rem;
  color: var(--line);
}

.breadcrumbs-bar a {
  color: var(--red-text);
}

.breadcrumbs-bar a:hover {
  text-decoration: underline;
}


/* 2. SECTION INTRO + PROSE
   -------------------------------------------------------------------------- */
.section .section-intro {
  margin-top: -1rem;
  margin-bottom: 2rem;
  font-size: 1.125rem;
  color: var(--muted);
}

.section--dark .section-intro {
  color: #c9ccd2;
}

.prose h2 {
  margin-bottom: 1.25rem;
}

.prose h3 {
  margin: 2rem 0 0.75rem;
  font-size: 1.5rem;
}

.prose p {
  font-size: 1.0625rem;
  line-height: 1.7;
}

.area-links {
  font-weight: 600;
}

.area-links a,
.prose a {
  color: var(--red-text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.heading-link {
  color: inherit;
}

.heading-link:hover {
  color: var(--red-text);
}


/* 3. SIDE BOX
   -------------------------------------------------------------------------- */
.side-box {
  padding: 1.75rem;
  background: #fff;
  border: 1px solid #cfd3d8;
  border-top: 4px solid var(--red);
}

.side-box .check-list {
  margin-bottom: 1.5rem;
}

.expanded-btn {
  display: block;
  width: 100%;
  margin-bottom: 0.5rem;
  text-align: center;
}

.side-box__call {
  margin: 0;
  text-align: center;
  color: var(--muted);
}

.side-box__call a {
  font-weight: 700;
  color: var(--red-text);
}

.town-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
}

.town-list li {
  padding: 0.3rem 0.7rem;
  font-size: 0.9375rem;
  background: var(--silver);
  border-left: 3px solid var(--red);
}


/* 4. AREA CARDS + AREA ROWS
   -------------------------------------------------------------------------- */
.area-card {
  display: block;
  margin-bottom: 1.875rem;
  padding: 1.5rem;
  border: 1px solid #cfd3d8;
  border-top: 4px solid var(--red);
  background: #fff;
  color: var(--ink);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.area-card:hover {
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.14);
  transform: translateY(-6px);
}

.area-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
  color: var(--ink);
}

.area-card p {
  color: var(--muted);
}

.section--dark .area-card {
  border-color: #2a2c31;
  border-top-color: var(--red-bright);
  background: #17181b;
}

.section--dark .area-card h3 {
  color: #fff;
}

.section--dark .area-card p {
  color: #c9ccd2;
}

.area-row {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}

.area-row h2 {
  margin-bottom: 0.75rem;
  font-size: clamp(1.5rem, 5vw, 2rem);
}

.area-row__towns {
  color: var(--muted);
}


/* 5. FAQ (native <details>, works without JavaScript)
   -------------------------------------------------------------------------- */
.faq__item {
  border-bottom: 1px solid var(--line);
}

.faq__item summary {
  position: relative;
  padding: 1.1rem 2.5rem 1.1rem 0;
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-style: italic;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__item summary::after {
  content: '+';
  position: absolute;
  top: 50%;
  right: 0.25rem;
  font-size: 1.75rem;
  line-height: 1;
  color: var(--red);
  transform: translateY(-50%);
}

.faq__item[open] summary::after {
  content: '\2212';
}

.faq__item p {
  margin: 0 0 1.25rem;
  color: var(--muted);
}


/* 6. LINK LISTS
   -------------------------------------------------------------------------- */
.link-list a {
  font-weight: 600;
  color: var(--red-text);
}

.link-list a:hover {
  text-decoration: underline;
}


/* 7. FIXES
   -------------------------------------------------------------------------- */
/* Current page in the menu: underline only (Foundation adds a blue background) */
.top-bar .menu > li.is-active > a {
  background: transparent;
}

/* White cards inside dark sections keep dark headings */
.section--dark .service-card h3 {
  color: var(--ink);
}
