/* =============================================
   Raileys Services LLC — Design System
   Vibe: clean-modern | Colors: red + gray
   Fonts: Inter (heading + body)
   ============================================= */

:root {
  --color-primary: #C41E24;
  --color-primary-dark: #A11A1F;
  --color-primary-light: #E8444A;
  --color-secondary: #4B5563;
  --color-secondary-dark: #374151;
  --color-accent: #E8E8E8;
  --color-bg: #ffffff;
  --color-bg-alt: #F9FAFB;
  --color-bg-dark: #1F2937;
  --color-text: #1F2937;
  --color-text-light: #ffffff;
  --color-muted: #6B7280;
  --color-border: #E5E7EB;
  --color-success: #059669;
  --color-error: #DC2626;
  --font-heading: 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;
  --radius: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.1), 0 4px 6px rgba(0,0,0,0.05);
  --spacing-section: 3.5rem;
  --max-width: 1200px;
  --transition: 0.2s ease;
}

/* ---- RESET & BASE ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-primary-dark); }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-text);
}
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; margin-bottom: 1rem; }
h3 { font-size: 1.5rem; margin-bottom: 0.75rem; }
h4 { font-size: 1.25rem; margin-bottom: 0.5rem; }
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* Skip link */
.skip-link {
  position: absolute; top: -100%; left: 1rem; z-index: 9999;
  background: var(--color-primary); color: #fff; padding: 0.5rem 1rem;
  border-radius: var(--radius); font-weight: 600;
}
.skip-link:focus { top: 1rem; }

/* ---- LAYOUT ---- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }
section, .section { padding: var(--spacing-section) 0; }
.section-dark { background: var(--color-bg-dark); color: var(--color-text-light); }
.section-dark h2, .section-dark h3, .section-dark h4 { color: var(--color-text-light); }
.section-alt { background: var(--color-bg-alt); }
.section-label {
  display: inline-block; font-size: 0.8125rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--color-primary); margin-bottom: 0.75rem;
}
.section-dark .section-label { color: var(--color-primary-light); }
.section-header { text-align: center; max-width: 700px; margin: 0 auto 2rem; }
.muted { color: var(--color-muted); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.text-center { text-align: center; }

/* ---- GRID ---- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }

@media (max-width: 1023px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
}
@media (max-width: 639px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  section, .section { padding: 2.5rem 0; }
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.875rem 1.75rem; border-radius: var(--radius); font-weight: 600;
  font-size: 1rem; font-family: var(--font-body); cursor: pointer;
  transition: all var(--transition); border: 2px solid transparent;
  text-decoration: none; line-height: 1.2;
}
.btn--primary {
  background: var(--color-primary); color: #fff; border-color: var(--color-primary);
}
.btn--primary:hover { background: var(--color-primary-dark); border-color: var(--color-primary-dark); color: #fff; }
.btn--outline {
  background: transparent; color: var(--color-primary); border-color: var(--color-primary);
}
.btn--outline:hover { background: var(--color-primary); color: #fff; }
.btn--white {
  background: #fff; color: var(--color-primary); border-color: #fff;
}
.btn--white:hover { background: var(--color-bg-alt); border-color: var(--color-bg-alt); color: var(--color-primary-dark); }
.btn--sm { padding: 0.5rem 1.25rem; font-size: 0.875rem; }
.btn--full { width: 100%; }
.btn-group { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.5rem; }
.hero .btn--outline { color: #fff; border-color: #fff; }
.hero .btn--outline:hover { background: #fff; color: var(--color-primary); }

/* ---- HEADER ---- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: #fff; border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow);
}
.header .container {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 0.75rem; padding-bottom: 0.75rem;
}
.header__logo img { height: 48px; width: auto; }
.header__nav { display: flex; align-items: center; gap: 0.25rem; }
.header__nav a {
  padding: 0.5rem 0.75rem; font-size: 0.9375rem; font-weight: 500;
  color: var(--color-text); border-radius: var(--radius);
  transition: all var(--transition);
}
.header__nav a:hover, .header__nav a.active {
  color: var(--color-primary); background: rgba(196,30,36,0.06);
}
.header__actions { display: flex; align-items: center; gap: 1rem; }
.header__phone {
  display: flex; align-items: center; gap: 0.5rem;
  font-weight: 600; color: var(--color-text); font-size: 0.9375rem;
}
.header__phone svg { flex-shrink: 0; }
.header__phone:hover { color: var(--color-primary); }
.header__toggle {
  display: none; background: none; border: none; cursor: pointer;
  color: var(--color-text); padding: 0.25rem;
}

/* Nav dropdown */
.nav__dropdown { position: relative; }
.nav__dropdown-trigger { display: flex; align-items: center; gap: 0.25rem; }
.nav__dropdown-trigger::after {
  content: ''; display: inline-block; width: 0; height: 0;
  border-left: 4px solid transparent; border-right: 4px solid transparent;
  border-top: 4px solid currentColor; margin-left: 2px;
}
.nav__dropdown-menu {
  position: absolute; top: 100%; left: 0; min-width: 240px;
  background: #fff; border: 1px solid var(--color-border);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 0.5rem 0; opacity: 0; visibility: hidden;
  transform: translateY(8px); transition: all 0.2s ease; z-index: 50;
}
.nav__dropdown:hover .nav__dropdown-menu,
.nav__dropdown.open .nav__dropdown-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.nav__dropdown-menu a {
  display: block; padding: 0.5rem 1rem; font-size: 0.875rem;
  color: var(--color-text); border-radius: 0;
}
.nav__dropdown-menu a:hover { background: var(--color-bg-alt); color: var(--color-primary); }

@media (max-width: 1023px) {
  .header__nav {
    position: fixed; top: 0; right: -100%; width: 300px; height: 100vh;
    background: #fff; flex-direction: column; align-items: stretch;
    padding: 5rem 1.5rem 2rem; gap: 0; z-index: 200;
    box-shadow: -4px 0 20px rgba(0,0,0,0.15); transition: right 0.3s ease;
    overflow-y: auto;
  }
  .header__nav.open { right: 0; }
  .header__nav a { padding: 0.75rem 0; font-size: 1.0625rem; border-radius: 0; border-bottom: 1px solid var(--color-border); }
  .header__toggle { display: flex; z-index: 250; }
  .header__phone { display: none; }
  .nav__dropdown-trigger::after { display: none; }
  .nav__dropdown-menu {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: none; padding: 0; display: none;
  }
  .nav__dropdown.open .nav__dropdown-menu { display: block; }
  .nav__dropdown-menu a { padding-left: 1rem; font-size: 0.9375rem; }
}

/* Mobile phone bar */
.mobile-phone-bar {
  display: none; background: var(--color-primary); text-align: center;
  padding: 0.5rem;
}
.mobile-phone-bar a {
  color: #fff; font-weight: 600; font-size: 0.9375rem;
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
}
@media (max-width: 1023px) { .mobile-phone-bar { display: block; } }

/* ---- HERO ---- */
.hero {
  position: relative; background: linear-gradient(135deg, var(--color-bg-dark) 0%, #111827 100%);
  background-size: cover; background-position: center;
  color: #fff; padding: 5rem 0 4rem; overflow: hidden;
}
.hero--inner { padding: 3.5rem 0 3rem; }
.hero h1 { color: #fff; font-size: 2.75rem; max-width: 700px; }
.hero--inner h1 { font-size: 2.25rem; }
.hero p { color: rgba(255,255,255,0.85); font-size: 1.125rem; max-width: 600px; margin-bottom: 0.75rem; }
.hero .section-label { color: var(--color-primary-light); }
.hero-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0.2; z-index: 0;
}
.hero .container { position: relative; z-index: 1; }

/* Breadcrumbs */
.breadcrumbs {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.375rem;
  font-size: 0.8125rem; margin-bottom: 1.25rem;
}
.breadcrumbs a { color: var(--color-muted); }
.breadcrumbs a:hover { color: var(--color-primary); }
.breadcrumbs .current { color: var(--color-text); font-weight: 500; }
.hero .breadcrumbs a { color: rgba(255,255,255,0.6); }
.hero .breadcrumbs a:hover { color: #fff; }
.hero .breadcrumbs .current { color: rgba(255,255,255,0.9); }
.hero .breadcrumbs span { color: rgba(255,255,255,0.4); }

@media (max-width: 639px) {
  .hero { padding: 3rem 0 2.5rem; }
  .hero h1 { font-size: 2rem; }
  .hero--inner h1 { font-size: 1.75rem; }
}

/* ---- CARDS ---- */
.card {
  background: #fff; border: 1px solid var(--color-border);
  border-radius: var(--radius); overflow: hidden;
  transition: all var(--transition); box-shadow: var(--shadow);
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card-img { position: relative; overflow: hidden; aspect-ratio: 16/10; background: var(--color-bg-alt); }
.card-body { padding: 1.5rem; }
.card-body h3 { font-size: 1.25rem; }
.card-body h3 a { color: var(--color-text); }
.card-body h3 a:hover { color: var(--color-primary); }
.card-link {
  display: inline-flex; align-items: center; gap: 0.375rem;
  font-weight: 600; font-size: 0.875rem; color: var(--color-primary); margin-top: 0.75rem;
}
.card-link:hover { gap: 0.5rem; }
.card-link svg { transition: transform var(--transition); }
.card-link:hover svg { transform: translateX(3px); }

/* Card class aliases (BEM double-underscore ↔ single-hyphen) */
.card__img { position: relative; overflow: hidden; aspect-ratio: 16/10; background: var(--color-bg-alt); }
.card__body { padding: 1.5rem; }
.card__body h3 { font-size: 1.25rem; }
.card__body h3 a { color: var(--color-text); }
.card__body h3 a:hover { color: var(--color-primary); }
.card--link { text-decoration: none; color: inherit; display: block; }
.card--compact .card-body, .card--compact .card__body { padding: 1.25rem; }

/* Testimonial card aliases */
.testimonial-card { background: var(--color-bg-alt); border-radius: var(--radius); padding: 2rem; border-left: 4px solid var(--color-primary); }
.testimonial-card__text { font-style: italic; font-size: 1.0625rem; line-height: 1.7; margin-bottom: 1rem; }
.testimonial-card__author { font-weight: 600; color: var(--color-text); }
.testimonial-card__meta { font-size: 0.8125rem; color: var(--color-muted); }
.testimonial-card__stars { color: #F59E0B; font-size: 1.125rem; margin-bottom: 0.5rem; }

/* Structural wrappers used by build agents */
.header__inner { /* no-op — layout handled by .header .container */ }
.nav__list { display: flex; align-items: center; gap: 0.25rem; list-style: none; }
.faq-list { /* structural wrapper — no styles needed */ }
.trust-bar__items { display: flex; flex-wrap: wrap; justify-content: center; gap: 2rem; }
.stats-bar__items { display: flex; flex-wrap: wrap; justify-content: center; gap: 3rem; }

@media (max-width: 1023px) {
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
}

/* Utility aliases agents may use */
.lead { font-size: 1.125rem; color: var(--color-muted); max-width: 700px; }
.divider { height: 1px; background: var(--color-border); margin: 2rem 0; }
.badge-text { display: inline-block; padding: 0.25rem 0.75rem; border-radius: 999px; font-size: 0.75rem; font-weight: 600; background: rgba(196,30,36,0.1); color: var(--color-primary); }
.card__icon {
  width: 48px; height: 48px; border-radius: var(--radius);
  background: rgba(196,30,36,0.1); display: flex; align-items: center; justify-content: center;
  color: var(--color-primary); margin-bottom: 1rem; flex-shrink: 0;
}
.stat-callout { text-align: center; padding: 1.5rem; }
.stat-callout__number { font-size: 2rem; font-weight: 700; color: var(--color-primary); line-height: 1.2; }
.stat-callout__label { font-size: 0.875rem; color: var(--color-muted); margin-top: 0.25rem; }
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.image-placeholder { display: flex; align-items: center; justify-content: center; background: var(--color-bg-alt); color: var(--color-muted); font-size: 0.875rem; min-height: 200px; border-radius: var(--radius); }
.hero--gradient { background: linear-gradient(135deg, var(--color-bg-dark) 0%, #111827 100%); }
.hero--centered { text-align: center; }
.hero--centered h1, .hero--centered p { max-width: 700px; margin-left: auto; margin-right: auto; }
.eyebrow { display: inline-block; font-size: 0.8125rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--color-primary); margin-bottom: 0.75rem; }
.hero .eyebrow { color: var(--color-primary-light); }

/* ---- IMAGE PLACEHOLDER SYSTEM ---- */
.img-placeholder {
  display: flex; align-items: center; justify-content: center;
  background: var(--color-bg-alt); color: var(--color-muted);
  font-size: 0.875rem; font-weight: 500; text-align: center;
  position: absolute; inset: 0; z-index: 0; padding: 1rem;
}
.img-real {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 1; opacity: 0; transition: opacity 0.3s ease;
}
.img-real.loaded { opacity: 1; }

/* ---- TRUST BAR ---- */
.trust-bar {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 2rem;
  padding: 1.5rem 0; border-bottom: 1px solid var(--color-border);
}
.trust-bar__item {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.9375rem; font-weight: 600; color: var(--color-text);
}
.trust-bar__item svg { color: var(--color-primary); flex-shrink: 0; }

/* ---- STATS BAR ---- */
.stats-bar { display: flex; flex-wrap: wrap; justify-content: center; gap: 3rem; padding: 2rem 0; background: var(--color-bg-dark); color: var(--color-text-light); }
.stats-bar__item { text-align: center; }
.stats-bar__number { font-size: 2.5rem; font-weight: 700; color: var(--color-primary-light); line-height: 1; }
.stats-bar__label { font-size: 0.875rem; color: rgba(255,255,255,0.7); margin-top: 0.25rem; }
.section-dark .stats-bar__number { color: var(--color-primary-light); }

/* ---- TESTIMONIALS ---- */
.testimonial {
  background: var(--color-bg-alt); border-radius: var(--radius);
  padding: 2rem; border-left: 4px solid var(--color-primary);
}
.testimonial__text { font-style: italic; font-size: 1.0625rem; line-height: 1.7; margin-bottom: 1rem; }
.testimonial__author { font-weight: 600; color: var(--color-text); }
.testimonial__meta { font-size: 0.8125rem; color: var(--color-muted); }
.testimonial__stars { color: #F59E0B; font-size: 1.125rem; margin-bottom: 0.5rem; }

/* ---- FAQ ---- */
.faq-item { border-bottom: 1px solid var(--color-border); }
.faq-item:first-child { border-top: 1px solid var(--color-border); }
.faq-item__question {
  display: flex; justify-content: space-between; align-items: center;
  width: 100%; padding: 1.25rem 0; background: none; border: none;
  cursor: pointer; text-align: left; font-size: 1.0625rem; font-weight: 600;
  color: var(--color-text); font-family: var(--font-body); gap: 1rem;
}
.faq-item__question:hover { color: var(--color-primary); }
.faq-item__icon {
  font-size: 1.5rem; font-weight: 300; color: var(--color-primary);
  flex-shrink: 0; transition: transform var(--transition);
}
.faq-item__answer {
  max-height: 0; overflow: hidden; transition: max-height 0.3s ease;
  padding: 0; color: var(--color-muted); line-height: 1.7;
}
.faq-item__answer p { padding-bottom: 1.25rem; }

/* ---- CTA SECTION ---- */
.cta-section {
  background: var(--color-primary); color: #fff; padding: 3.5rem 0; text-align: center;
}
.cta-section h2 { color: #fff; }
.cta-section p { color: rgba(255,255,255,0.85); max-width: 600px; margin: 0 auto 1.5rem; font-size: 1.125rem; }
.cta-section .btn-group { justify-content: center; }
.cta-section .btn--primary { background: #fff; color: var(--color-primary); border-color: #fff; }
.cta-section .btn--primary:hover { background: var(--color-bg-alt); color: var(--color-primary-dark); border-color: var(--color-bg-alt); }
.cta-section .btn--outline { color: #fff; border-color: #fff; border-width: 2px; background: rgba(255,255,255,0.15); }
.cta-section .btn--outline:hover { background: #fff; color: var(--color-primary); }

/* ---- CHECKLIST ---- */
.checklist { list-style: none; padding: 0; }
.checklist li {
  display: flex; align-items: flex-start; gap: 0.75rem;
  padding: 0.5rem 0; font-size: 1rem;
}
.checklist li svg { flex-shrink: 0; color: var(--color-success); margin-top: 0.25rem; }

/* ---- PROCESS STEPS ---- */
.process-step {
  display: flex; align-items: flex-start; gap: 1.25rem; padding: 1.25rem 0;
}
.process-step__number {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--color-primary); color: #fff; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 1rem;
}
.process-step__content h4 { margin-bottom: 0.25rem; }
.process-step__content p { color: var(--color-muted); font-size: 0.9375rem; }

/* ---- GALLERY ---- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }
.gallery-item {
  position: relative; overflow: hidden; border-radius: var(--radius);
  aspect-ratio: 4/3; cursor: pointer; background: var(--color-bg-alt);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-filter { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; justify-content: center; }
.gallery-filter button {
  padding: 0.5rem 1.25rem; border: 1px solid var(--color-border);
  border-radius: 999px; background: #fff; cursor: pointer;
  font-family: var(--font-body); font-size: 0.875rem; font-weight: 500;
  transition: all var(--transition); color: var(--color-text);
}
.gallery-filter button:hover, .gallery-filter button.active {
  background: var(--color-primary); color: #fff; border-color: var(--color-primary);
}
@media (max-width: 639px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---- CONTACT FORM ---- */
.form-group { margin-bottom: 1.25rem; }
.form-label { display: block; font-weight: 600; margin-bottom: 0.375rem; font-size: 0.9375rem; }
.form-input, .form-textarea {
  width: 100%; padding: 0.75rem 1rem; border: 1px solid var(--color-border);
  border-radius: var(--radius); font-family: var(--font-body); font-size: 1rem;
  transition: border-color var(--transition); background: #fff;
}
.form-input:focus, .form-textarea:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(196,30,36,0.1); }
.form-textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 639px) { .form-row { grid-template-columns: 1fr; } }
.thanks-msg { text-align: center; padding: 3rem 2rem; }
.thanks-msg h2 { color: var(--color-success); margin-bottom: 0.5rem; }

/* ---- FOOTER ---- */
.footer {
  background: var(--color-bg-dark); color: rgba(255,255,255,0.7);
  padding: 4rem 0 0;
}
.footer__grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2rem;
  padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer__brand p { font-size: 0.875rem; line-height: 1.7; margin-top: 1rem; }
.footer__brand img { height: 42px; width: auto; }
.footer__social {
  display: flex; gap: 0.75rem; margin-top: 1rem;
}
.footer__social a {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.7); transition: all var(--transition);
}
.footer__social a:hover { background: var(--color-primary); color: #fff; }
.footer h4 { color: #fff; font-size: 1rem; margin-bottom: 1rem; }
.footer ul li { margin-bottom: 0.5rem; }
.footer ul a { color: rgba(255,255,255,0.7); font-size: 0.875rem; }
.footer ul a:hover { color: #fff; }
.footer__contact-item {
  display: flex; align-items: center; gap: 0.75rem;
  margin-bottom: 0.75rem; font-size: 0.875rem;
}
.footer__contact-item svg { flex-shrink: 0; color: var(--color-primary-light); }
.footer__contact-item a { color: rgba(255,255,255,0.7); }
.footer__contact-item a:hover { color: #fff; }
.footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  padding: 1.5rem 0; font-size: 0.8125rem; gap: 1rem;
}
.footer__legal { display: flex; gap: 1.5rem; }
.footer__legal a { color: rgba(255,255,255,0.5); }
.footer__legal a:hover { color: #fff; }
.footer__credit { color: rgba(255,255,255,0.4); }
.footer__credit a { color: rgba(255,255,255,0.5); }
.footer__credit a:hover { color: #fff; }

@media (max-width: 1023px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 639px) {
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; text-align: center; }
}

/* ---- AREA PAGE SPECIALS ---- */
.nearby-areas { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.nearby-areas a {
  padding: 0.5rem 1rem; border: 1px solid var(--color-border);
  border-radius: 999px; font-size: 0.875rem; font-weight: 500;
  color: var(--color-text); background: #fff;
}
.nearby-areas a:hover { border-color: var(--color-primary); color: var(--color-primary); background: rgba(196,30,36,0.04); }

/* Blog cards */
.blog-card .card-body { padding: 1.25rem 1.5rem; }
.blog-card__date { font-size: 0.8125rem; color: var(--color-muted); margin-bottom: 0.5rem; }
.blog-card__excerpt { font-size: 0.9375rem; color: var(--color-muted); }

/* Article */
.article-header { margin-bottom: 2rem; }
.article-meta { font-size: 0.875rem; color: var(--color-muted); margin-bottom: 1rem; }
.article-body h2 { margin-top: 2.5rem; margin-bottom: 1rem; font-size: 1.5rem; }
.article-body h3 { margin-top: 2rem; margin-bottom: 0.75rem; font-size: 1.25rem; }
.article-body ul, .article-body ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.article-body li { margin-bottom: 0.5rem; list-style: disc; }
.article-body ol li { list-style: decimal; }
.article-body img { border-radius: var(--radius); margin: 1.5rem 0; }
.article-body table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; }
.article-body th, .article-body td { padding: 0.75rem 1rem; border: 1px solid var(--color-border); text-align: left; }
.article-body th { background: var(--color-bg-alt); font-weight: 600; }
.author-box {
  display: flex; gap: 1rem; align-items: center;
  padding: 1.5rem; background: var(--color-bg-alt); border-radius: var(--radius);
  margin-top: 2rem;
}
.author-box__avatar {
  width: 56px; height: 56px; border-radius: 50%; background: var(--color-primary);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 1.25rem; flex-shrink: 0;
}
.author-box__name { font-weight: 600; }
.author-box__bio { font-size: 0.875rem; color: var(--color-muted); }

/* Review stars */
.stars { color: #F59E0B; letter-spacing: 2px; }

/* ---- IMAGE CONTAINER FIX ---- */
/* Images outside card-img need a positioned parent with dimensions */
div:has(> .img-placeholder):not(.card-img):not(.card__img):not(.gallery-item) {
  position: relative; aspect-ratio: 4/3; border-radius: var(--radius);
  overflow: hidden; background: var(--color-bg-alt);
}

/* ---- FOOTER CONTACT ALIGNMENT ---- */
.footer ul li:has(svg) {
  display: flex; align-items: center; gap: 0.75rem;
}

/* ---- PRINT ---- */
@media print {
  .header, .footer, .mobile-phone-bar, .cta-section, .btn-group { display: none; }
  body { font-size: 12pt; color: #000; }
  a { color: #000; text-decoration: underline; }
}
