/* Content Pages — Standalone page layout styles */
/* Used by: faqs.php, terms-of-service.php, privacy.php, contact.php, service-areas.php */

/* ============================================
   Page Header
   ============================================ */
.page-header {
  text-align: center;
  margin-bottom: 3rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-header h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  margin-bottom: 1.5rem;
}

.page-header p {
  color: var(--muted);
  font-size: 1.15rem;
  line-height: 1.8;
}

/* ============================================
   Content Section (terms, privacy)
   .content-wrapper is used by terms-of-service.php and privacy.php
   ============================================ */
.content-section,
.content-wrapper {
  background: var(--panel-dark);
  border-radius: 1rem;
  padding: 3rem;
  border: 1px solid rgba(242, 182, 50, 0.15);
  margin-bottom: 2.5rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.content-section h2,
.content-wrapper h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.content-section h3,
.content-wrapper h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  margin-top: 2rem;
  color: var(--text-light);
}

.content-section p,
.content-wrapper p {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 1.25rem;
  line-height: 1.8;
}

.content-section ul,
.content-wrapper ul {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
  padding-left: 2rem;
  line-height: 1.8;
}

.content-section ul li,
.content-wrapper ul li {
  margin-bottom: 0.75rem;
}

.content-section a,
.content-wrapper a {
  color: var(--highlight);
  transition: color var(--transition);
}

.content-section a:hover,
.content-wrapper a:hover {
  color: var(--accent-hover);
}

.content-wrapper .contact-logo {
  display: inline-flex;
  align-items: baseline;
  gap: 0.1rem;
  font-family: "Audiowide", "Times New Roman", Times, serif;
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  background: var(--gold-gradient);
  background-size: 200% auto;
  background-position: 50% 0%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: auroraFlowGlobal 8s linear infinite;
}

/* ============================================
   CTA Section (simple version for content pages)
   ============================================ */
.cta-section {
  background: linear-gradient(90deg, rgba(242, 182, 50, 0.1), rgba(255, 206, 82, 0.05));
  border-radius: 1rem;
  padding: 3rem;
  border: 1px solid rgba(242, 182, 50, 0.25);
  text-align: center;
  margin: 3rem auto;
  max-width: 700px;
}

.cta-section h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.cta-section p {
  color: var(--muted);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.cta-button {
  display: inline-block;
  padding: 1.25rem 2.5rem;
  background: linear-gradient(90deg, var(--highlight), var(--accent-hover));
  color: #0b0b0d;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: filter var(--transition);
}

.cta-button:hover {
  filter: brightness(1.1);
}

/* ============================================
   FAQ Page (faqs.php)
   ============================================ */
.faq-intro {
  border-radius: 0;
  padding: 0;
  margin-bottom: 2.5rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.faq-intro h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: #ffffff;
  background: none;
  -webkit-text-fill-color: currentColor;
  text-shadow: none;
  animation: none;
}

.faq-intro p {
  color: #ffffff;
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 0;
}

.faq-intro a {
  color: #ffffff;
}

.faq-categories {
  max-width: 900px;
  margin: 0 auto 3rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.faqs-page .page-header h1,
body .faqs-page .page-header h1 {
  color: #ffffff;
  background: none;
  -webkit-text-fill-color: currentColor;
  text-shadow: none;
  animation: none;
}

.faq-category h2 {
  font-size: 1.8rem;
  margin-bottom: 1.25rem;
  color: #ffffff;
  background: none;
  -webkit-text-fill-color: currentColor;
  text-shadow: none;
  animation: none;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.faq-item {
  border-radius: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  overflow: hidden;
  position: relative;
}

.faq-item::after {
  content: none;
}

/* Override shared-header.css broad `button` selector */
.faq-question {
  width: 100%;
  text-align: left;
  padding: 1.25rem 1.5rem;
  background: transparent !important;
  background-image: none !important;
  border: none;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  color: #ffffff;
  font-family: inherit;
  animation: none !important;
  box-shadow: none !important;
  border-radius: 0;
}

.faq-question > span:first-child {
  color: #ffffff;
  background: none;
  -webkit-text-fill-color: currentColor;
  animation: none;
}

.faq-icon {
  flex-shrink: 0;
  width: auto;
  height: auto;
  border-radius: 0;
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: transform var(--transition);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease-in-out, padding 0.35s ease-in-out;
}

.faq-item.active .faq-answer {
  max-height: 2000px;
  padding: 0 1.5rem 1.5rem;
}

.faq-answer p {
  color: #ffffff;
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

.faq-answer ul {
  color: #ffffff;
  font-size: 0.95rem;
  line-height: 1.7;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
}

.faq-answer li {
  margin-bottom: 0.4rem;
}

.faq-answer a {
  color: #ffffff;
  text-decoration: underline;
}

/* ============================================
   Contact Page (contact.php)
   ============================================ */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto 2rem;
  align-items: stretch;
}

.contact-info,
.contact-form,
.hours-section {
  background: var(--panel-dark);
  border-radius: 1rem;
  padding: 2.5rem;
  border: 1px solid rgba(242, 182, 50, 0.15);
  width: 100%;
}

.hours-section {
  max-width: 900px;
  margin: 0 auto 2.5rem;
}

.contact-item {
  margin-bottom: 1.75rem;
}

.contact-item:last-child {
  margin-bottom: 0;
}

.contact-item h3 {
  font-size: 0.85rem;
  margin-bottom: 0.35rem;
  color: var(--muted);
}

.contact-item p {
  color: var(--text-light);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 0;
}

.contact-item a {
  color: var(--highlight);
}

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

.contact-form > form > div {
  margin-bottom: 1.1rem;
}

.contact-form label {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
  font-family: "Audiowide", "Times New Roman", serif;
}

/* Override shared-header.css broad `button/input` selector for form fields */
.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  background: rgba(255, 255, 255, 0.04) !important;
  background-image: none !important;
  border: 1px solid rgba(242, 182, 50, 0.2) !important;
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  color: var(--text-light);
  -webkit-text-fill-color: var(--text-light);
  font-family: "Times New Roman", Times, serif;
  font-size: 1rem;
  transition: border-color var(--transition);
  animation: none !important;
  box-shadow: none !important;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: rgba(242, 182, 50, 0.5) !important;
}

.contact-form select option {
  background: #1a1a1d;
  color: var(--text-light);
}

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

.contact-form button[type="submit"] {
  width: 100%;
  padding: 1rem;
  font-size: 1rem;
  border-radius: 0.6rem;
  cursor: pointer;
  margin-top: 0.5rem;
  background: #d4a338;
  border: 1px solid #d4a338;
  color: #0b0b0d;
  -webkit-text-fill-color: #0b0b0d;
}

.hours-section p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 0;
}

/* ============================================
   Service Areas Page (service-areas.php)
   ============================================ */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0 2.5rem;
}

.service-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
}

.service-card {
  background: var(--panel-dark);
  border: 1px solid rgba(242, 182, 50, 0.15);
  border-radius: 1rem;
  padding: 1.75rem;
  height: 100%;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.service-card:hover {
  border-color: rgba(242, 182, 50, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(242, 182, 50, 0.12);
}

.service-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

.service-card p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 0;
}

/* Keep Market Coverage cards visually consistent regardless of copy length. */
.market-coverage-grid .service-card {
  min-height: 260px;
}

.city-card::before,
.region-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.2;
  z-index: 0;
}

.city-card::after,
.region-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 10, 12, 0.25), rgba(10, 10, 12, 0.9));
  z-index: 1;
}

/* City/region cards already use ::after for overlays, so handle animated border here. */
.city-card.border-animated::after,
.region-card.border-animated::after {
  border: 1px solid transparent;
  background-image:
    linear-gradient(180deg, rgba(10, 10, 12, 0.25), rgba(10, 10, 12, 0.9)),
    linear-gradient(
      90deg,
      #fdf7dc,
      #f1d78a,
      #ddb45a,
      #c89338,
      #b97c28,
      #c89338,
      #ddb45a,
      #f1d78a,
      #fdf7dc
    );
  background-size: auto, 300% 300%;
  background-position: center, 0% 50%;
  background-origin: border-box;
  background-clip: padding-box, border-box;
  animation: borderTravel 6s linear infinite;
}

.city-card h3,
.city-card p,
.region-card h3,
.region-card p {
  position: relative;
  z-index: 2;
}

.city-card[data-city="chicago"]::before {
  background-image: url("/city/Chicago1.jpg");
}

.city-card[data-city="miami"]::before {
  background-image: url("/city/Miami1.jpg");
}

.city-card[data-city="tampa"]::before {
  background-image: url("/city/Tampa1.jpg");
}

.city-card[data-city="houston"]::before {
  background-image: url("/city/Houston1.jpg");
}

.region-card[data-region="northeast"]::before {
  background-image: url("/city/New York1.jpg");
}

.region-card[data-region="california"]::before {
  background-image: url("/city/Los Angeles1.jpg");
}

.region-card[data-region="arizona"]::before {
  background-image: url("/city/Arizona1.jpg");
}

.region-card[data-region="seasonal"]::before {
  background-image: url("/floaters/collector.jpg");
}

.region-section {
  background: var(--panel-dark);
  border: 1px solid rgba(242, 182, 50, 0.15);
  border-radius: 1rem;
  padding: 2rem 2.5rem;
  margin: 2rem 0;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.region-section[data-background="lake"]::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("/images/lake/lake1.jpg");
  background-size: cover;
  background-position: center;
  opacity: 0.3;
  z-index: 0;
}

.region-section[data-background="lake"]::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 8, 13, 0.45), rgba(8, 8, 10, 0.92));
  z-index: 1;
}

.region-section > * {
  position: relative;
  z-index: 2;
}

.region-section h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.region-section p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 1rem;
}

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

.town-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.75rem;
  margin: 1rem 0 0.75rem;
  max-height: 7rem;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.town-list.expanded {
  max-height: 1000px;
}

.town-list a {
  color: var(--muted);
  font-size: 0.88rem;
  padding: 0.2rem 0.5rem;
  border-radius: 0.35rem;
  transition: all var(--transition);
  text-decoration: none;
}

.town-list a:hover {
  color: var(--highlight);
  background: rgba(242, 182, 50, 0.08);
}

.town-more-group {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

/* Override shared-header.css broad button selector */
.town-more {
  background: transparent !important;
  background-image: none !important;
  border: 1px solid rgba(242, 182, 50, 0.3) !important;
  color: var(--highlight) !important;
  -webkit-text-fill-color: var(--highlight) !important;
  font-size: 0.85rem;
  padding: 0.45rem 1rem;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all var(--transition);
  font-family: "Times New Roman", Times, serif;
  box-shadow: none !important;
  animation: none !important;
}

.town-more:hover {
  background: rgba(242, 182, 50, 0.1) !important;
  border-color: rgba(242, 182, 50, 0.6) !important;
}

/* ============================================
   Footer (minor tweaks only; shared-header.css owns the animated border)
   ============================================ */
footer p {
  color: rgba(255, 255, 255, 0.65);
  margin-top: 1rem;
  font-size: 0.85rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: var(--muted);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
  .content-section,
  .content-wrapper {
    padding: 2rem;
  }

  .cta-section {
    padding: 2rem;
  }

  .page-header h1 {
    font-size: 2rem;
  }

  .faq-intro {
    padding: 1.5rem;
  }

  .faq-question {
    font-size: 1rem;
    padding: 1rem 1.25rem;
  }

  .faq-answer p,
  .faq-answer ul {
    font-size: 0.9rem;
  }

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

  .contact-info,
  .contact-form,
  .hours-section {
    padding: 1.75rem;
  }

  .region-section {
    padding: 1.5rem;
  }

  .market-coverage-grid .service-card {
    min-height: 220px;
  }

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