/* RSD Location Pages — frontend styles for generated Areas We Service /
   suburb pages. Auto-loaded by the plugin; nothing to paste into
   Additional CSS. Scoped entirely to rsd- prefixed classes. */

:root {
  --rsd-dark: #1a1a1a;
  --rsd-red: #e03131;
  --rsd-red-dark: #c31f1f;
  --rsd-green: #25d366;
  --rsd-light-bg: #f7f7f7;
  --rsd-border: #ececec;
  --rsd-text: #333333;
  --rsd-text-muted: #666666;
}

.rsd-cta { margin-bottom: 50px; }
.page-child .page-header { display: none; }

.rsd-location-page {
  color: var(--rsd-text);
  line-height: 1.65;
  max-width: 1180px;
  margin: 0 auto;
}
.rsd-location-page * { box-sizing: border-box; }

/* Hero */
.rsd-hero {
  background-color: var(--rsd-dark);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
  min-height: 440px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 28px;
  text-align: center;
  border-radius: 10px;
  margin-bottom: 44px;
}
.rsd-hero h1 {
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  margin: 0 0 14px;
  color: #fff;
  line-height: 1.25;
}
.rsd-hero p {
  font-size: 1.05rem;
  max-width: 720px;
  margin: 0 auto;
  opacity: .95;
}
.rsd-hero-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 24px;
}
.rsd-hero-buttons a {
  display: inline-block;
  padding: 13px 30px;
  border-radius: 30px;
  font-weight: 700;
  text-decoration: none !important;
  font-size: .95rem;
}
.rsd-hero-quote { background: var(--rsd-red); color: #fff !important; }
.rsd-hero-quote:hover { background: var(--rsd-red-dark); }
.rsd-hero-call { background: #fff; color: var(--rsd-dark) !important; border: 2px solid #fff; }
.rsd-hero-call:hover { background: transparent; color: #fff !important; }

/* Suburb pages: compact hero (lighter than city pages) */
.rsd-hero-compact { min-height: 320px; }

/* Trust-badge strip */
.rsd-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0;
}
.rsd-badge {
  background: var(--rsd-light-bg);
  border: 1px solid var(--rsd-border);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: .85rem;
  font-weight: 700;
  color: var(--rsd-dark);
}

/* Section headings */
.rsd-section { margin: 48px 0; }
.rsd-section h2 {
  font-size: 1.55rem;
  border-left: 4px solid var(--rsd-red);
  padding-left: 14px;
  margin-bottom: 22px;
  line-height: 1.3;
}

/* Card grid (services / products / door types / applications) */
.rsd-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}
.rsd-card {
  background: #fff;
  border: 1px solid var(--rsd-border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,.05);
  transition: transform .18s ease, box-shadow .18s ease;
  display: flex;
  flex-direction: column;
}
.rsd-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,.1);
}
.rsd-card img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  display: block;
}
.rsd-card-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.rsd-card-body h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
  line-height: 1.3;
}
.rsd-card-body p {
  margin: 0 0 16px;
  font-size: .92rem;
  color: var(--rsd-text-muted);
  flex: 1;
}
.rsd-btn {
  display: inline-block;
  background: var(--rsd-red);
  color: #fff !important;
  padding: 9px 18px;
  border-radius: 5px;
  text-decoration: none !important;
  font-size: .85rem;
  font-weight: 600;
  text-align: center;
  align-self: flex-start;
}
.rsd-btn:hover { background: var(--rsd-red-dark); }
.rsd-link-more {
  display: inline-block;
  margin-top: 8px;
  color: var(--rsd-red);
  font-weight: 600;
  text-decoration: none;
}
.rsd-link-more:hover { text-decoration: underline; }

/* Security-benefits list */
.rsd-security-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}
.rsd-security-list li {
  background: #fff;
  border: 1px solid var(--rsd-border);
  border-radius: 8px;
  padding: 16px 18px;
}
.rsd-security-list li strong {
  display: block;
  margin-bottom: 6px;
  color: var(--rsd-dark);
}
.rsd-security-list li p {
  margin: 0;
  font-size: .92rem;
  color: var(--rsd-text-muted);
}

/* Why choose us */
.rsd-why-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}
.rsd-why-list li {
  background: var(--rsd-light-bg);
  padding: 15px 18px;
  border-radius: 7px;
  border-left: 3px solid var(--rsd-red);
  font-size: .95rem;
}

/* FAQ */
.rsd-faq { border-top: 1px solid var(--rsd-border); }
.rsd-faq-item { border-bottom: 1px solid var(--rsd-border); padding: 18px 0; }
.rsd-faq-item h4 { margin: 0 0 8px; font-size: 1.03rem; }
.rsd-faq-item p { margin: 0; color: var(--rsd-text-muted); font-size: .93rem; }

/* Suburb link lists (used on city pages for "Suburbs We Service",
   and on suburb pages for service/product links) */
.rsd-suburb-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}
.rsd-suburb-list li {
  background: #fff;
  border: 1px solid var(--rsd-border);
  border-radius: 6px;
  padding: 12px 16px;
}
.rsd-suburb-list a {
  color: var(--rsd-text);
  font-weight: 600;
  text-decoration: none;
}
.rsd-suburb-list a:hover { color: var(--rsd-red); }

/* Areas list */
.rsd-areas-box {
  background: var(--rsd-light-bg);
  border-radius: 8px;
  padding: 20px 22px;
  font-size: .96rem;
}
.rsd-areas-box a { color: var(--rsd-red); font-weight: 600; text-decoration: none; }
.rsd-areas-box a:hover { text-decoration: underline; }

/* Map embed */
.rsd-map-wrap {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--rsd-border);
}
.rsd-map-wrap iframe { display: block; width: 100%; }

/* Project gallery */
.rsd-gallery {
  display: flex;
  gap: 14px;
}
.rsd-gallery img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

/* Quote form wrapper */
.rsd-form-wrap {
  background: #fff;
  border: 1px solid var(--rsd-border);
  border-radius: 10px;
  padding: 26px;
  margin-top: 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,.05);
}
.rsd-quote-fallback { margin: 0; }

/* Bottom CTA */
.rsd-cta {
  background: var(--rsd-dark);
  color: #fff;
  text-align: center;
  padding: 44px 26px;
  border-radius: 10px;
  margin-top: 52px;
}
.rsd-cta h2 { color: #fff; border: none; padding: 0; margin: 0 0 10px; }
.rsd-cta p { opacity: .9; margin: 0 0 20px; }
.rsd-cta-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.rsd-cta-buttons a {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 30px;
  font-weight: 700;
  text-decoration: none !important;
  font-size: .95rem;
}
.rsd-cta-call { background: var(--rsd-red); color: #fff !important; }
.rsd-cta-call:hover { background: var(--rsd-red-dark); }
.rsd-cta-whatsapp { background: var(--rsd-green); color: #fff !important; }
.rsd-cta-whatsapp:hover { filter: brightness(0.92); }

/* [rsd_areas_directory] shortcode output */
.rsd-areas-directory { max-width: 1180px; margin: 0 auto; }
.rsd-directory-group { margin-bottom: 40px; }
.rsd-directory-group h3 {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 1.3rem;
  color: var(--rsd-dark);
  margin: 0 0 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--rsd-border);
}
.rsd-directory-count {
  font-size: .82rem;
  font-weight: 400;
  color: var(--rsd-text-muted);
}
.rsd-directory-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}
.rsd-directory-list li {
  background: #fff;
  border: 1px solid var(--rsd-border);
  border-radius: 8px;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.rsd-directory-list li:hover {
  border-color: var(--rsd-red);
  box-shadow: 0 6px 16px rgba(224,49,49,.14);
  transform: translateY(-3px);
}
.rsd-directory-list a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 14px 16px;
  color: var(--rsd-text);
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
}
.rsd-directory-list a::before {
  content: "";
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23e03131'%3E%3Cpath d='M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}
.rsd-directory-list li:hover a { color: var(--rsd-red); }

/* Responsive breakpoints */
@media (max-width: 768px) {
  .rsd-hero { min-height: 380px; padding: 40px 20px; }
  .rsd-hero-compact { min-height: 280px; }
  .rsd-section { margin: 36px 0; }
  .rsd-card img { height: 150px; }
  .rsd-gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .rsd-hero { min-height: 340px; padding: 36px 16px; border-radius: 6px; }
  .rsd-section h2 { font-size: 1.3rem; }
  .rsd-grid { grid-template-columns: 1fr; }
  .rsd-gallery { grid-template-columns: 1fr; }
  .rsd-cta-buttons { flex-direction: column; }
  .rsd-cta-buttons a { width: 100%; }
  .rsd-hero-buttons { flex-direction: column; }
  .rsd-hero-buttons a { width: 100%; text-align: center; }
  .rsd-directory-list { grid-template-columns: repeat(2, 1fr); }
}
