.home-root{
  --accent:#ff6b4a;
  --muted:#6b7280;
  --card-bg:#fff;
  --shadow:0 6px 18px rgba(16,24,40,0.08);
  font-family:Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  color:#111827;
}

/* Banner */
.home-root .banner{ width:100%; display:block; overflow:hidden; border-radius:12px; margin:1rem 0 0; box-shadow:0 8px 30px rgba(16,24,40,0.06); }
.home-root .banner img{ width:100%; height:clamp(160px,28vw,320px); object-fit:cover; display:block; }

/* Layout */
.home-root .inner,
.home-root .section-inner{ max-width:980px; margin:0 auto; padding:2rem 1rem; text-align:center; }
.home-root .section-inner{ /* section-inner uses same max-width but no centered text */ padding:0 1rem; text-align:unset; }
.home-root h1{ font-size:clamp(2rem,3.5vw,6rem); margin:0 0 .5rem; letter-spacing:-0.02em; }
.home-root p.lead{ margin:0 0 1rem; color:var(--muted); font-size:1.2rem; }
.home-root .section-heading{ margin:0 0 1rem; font-size:1.05rem; }

/* CTAs — base + variants */
.home-root .cta{
  padding:.65rem 1.2rem;
  font: 1.5rem Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  border-radius:10px;
  text-decoration:none;
  font-weight:700;
  display:inline-block;
  transition:transform .18s ease, box-shadow .18s ease, background-color .18s ease;
  will-change:transform;
}
.home-root .cta-primary{ background:var(--accent); color:#fff; box-shadow:0 6px 18px rgba(255,107,74,0.12); }
.home-root .cta-ghost{ background:transparent; font: 1rem; color:var(--accent); border:1px solid rgba(17,24,39,0.06); }

/* CTA hover / focus */
.home-root .cta:hover,
.home-root .cta:focus{ transform:translateY(-3px) scale(1.03); box-shadow:0 12px 28px rgba(16,24,40,0.08); }
.home-root .cta-primary:hover{ background:color-mix(in srgb, var(--accent) 85%, black 15%); }
.home-root .cta:focus-visible{ outline:3px solid rgba(255,107,74,0.18); outline-offset:3px; }

/* Centres / cards */
.home-root .section-title{ display:flex; align-items:center; justify-content:space-between; margin:1.5rem 0 .75rem; gap:1rem; }
.home-root .locations{display:flex; flex-direction:column; gap:1rem; align-items:stretch; }
.home-root .card{
  background:var(--card-bg);
  padding:.9rem;
  border-radius:12px;
  box-shadow:var(--shadow);
  display:flex;
  gap:.75rem;
  align-items:center;
  border:1px solid rgba(16,24,40,0.02);
  width:100%;
}

.home-root .card .meta{ flex:1; }
.home-root .name{ font-weight:700; margin:0 0 .25rem; font-size:1rem; }
.home-root .hours{ display:inline-block; background:#f3f4f6; color:var(--muted); padding:.25rem .5rem; border-radius:999px; font-size:.85rem; }
.home-root .directions{
  color:var(--accent);
  text-decoration:none;
  font-weight:600;
  margin-left:.5rem;
  font-size:.92rem;
  display:inline-block;
  transition:transform .18s ease, text-decoration .18s ease;
  will-change:transform;
}
.home-root .directions:hover,
.home-root .directions:focus-visible{
  transform:translateY(-2px) scale(1.03);
  text-decoration:underline;
  color: color-mix(in srgb, var(--accent) 85%, black 15%);
}

/* Anchored cards & accessibility */
.home-root .card-link{ text-decoration:none; color:inherit; display:flex; align-items:center; gap:.75rem; }
.home-root .card-link:focus-visible{ outline:3px solid rgba(255,107,74,0.18); outline-offset:4px; border-radius:10px; }
.home-root .card-link .directions{ text-decoration:none; }

/* Carousel */
.home-root .featured-section{ margin-top:1.25rem; }
.home-root .carousel-container{ display:flex; align-items:center; gap:0.75rem; }
.home-root .carousel-scroll{
  display:flex;
  gap:0.75rem;
  overflow-x:auto;
  scroll-behavior:smooth;
  flex:1;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:none;
}
.home-root .carousel-scroll::-webkit-scrollbar{ display:none; }
.home-root .carousel-card{
  flex:0 0 calc((100vw - 2.5rem - 100px) / 4);
  max-width:160px;
  min-width:140px;
  text-decoration:none;
  color:inherit;
  display:flex;
  flex-direction:column;
  border-radius:12px;
  overflow:hidden;
  transition:transform .18s ease, box-shadow .18s ease;
  position:relative;
}
.home-root .carousel-card:hover,
.home-root .carousel-card:focus-visible{
  transform:translateY(-4px);
  box-shadow:0 10px 24px rgba(16,24,40,0.15);
}
.home-root .carousel-card:focus-visible{ outline:3px solid rgba(255,107,74,0.18); outline-offset:4px; }
.home-root .carousel-image{
  display:block;
  width:100%;
  aspect-ratio:1;
  overflow:hidden;
  border-radius:12px;
  margin-bottom:0;
  position:relative;
}
.home-root .carousel-image img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.home-root .carousel-name{
  font-weight:700;
  margin:0;
  font-size:0.88rem;
  position:absolute;
  bottom:0;
  left:0;
  right:0;
  background:rgba(0,0,0,0.45);
  color:#fff;
  padding:0.6rem 0.5rem;
  text-align:center;
  text-decoration:none;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.home-root .carousel-btn{
  flex:0 0 auto;
  width:48px;
  height:48px;
  border:none;
  border-radius:10px;
  background:var(--accent);
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:700;
  color:#fff;
  font-size:1.4rem;
  transition:background .18s ease, transform .18s ease, box-shadow .18s ease;
  box-shadow:0 4px 12px rgba(255,107,74,0.15);
}
.home-root .carousel-btn:hover{ 
  background:color-mix(in srgb, var(--accent) 85%, black 15%);
  transform:translateY(-2px);
  box-shadow:0 6px 16px rgba(255,107,74,0.25);
}
.home-root .carousel-btn:active{ transform:translateY(0); }
.home-root .carousel-btn:focus-visible{ outline:3px solid rgba(255,107,74,0.18); outline-offset:3px; }

/* Overlay carousel (home) */
.home-root .overlay-carousel{
  display:flex;
  align-items:center;
  gap:0.75rem;
  justify-content:center;
}
.home-root .overlay-image{
  width:100%;
  height:100%;
  object-fit:contain;
  border-radius:0.5rem;
  display:block;
  background:#f8f8f8;
  max-width:100%;
  max-height:60vh;
}
.home-root .carousel-arrow{
  font-size:2.2rem;
  background:none;
  border:none;
  cursor:pointer;
  line-height:1;
  color:var(--accent);
  transition:color 0.2s, transform 0.2s;
  padding:0 0.4rem;
}
.home-root .carousel-arrow:hover{
  color:color-mix(in srgb, var(--accent) 70%, black 30%);
  transform:scale(1.1);
}
.home-root .overlay-thumbs{
  display:flex;
  gap:0.5rem;
  justify-content:center;
  margin:1rem 0;
  flex-wrap:wrap;
}
.home-root .overlay-thumb{
  height:48px;
  width:48px;
  object-fit:cover;
  border-radius:6px;
  cursor:pointer;
  border:2px solid transparent;
  transition:border-color 0.2s;
}
.home-root .overlay-thumb.active{
  border-color:var(--accent);
}

/* Help section */
.home-root .help-section{ margin-top:2rem; background:linear-gradient(135deg, rgba(255,107,74,0.06) 0%, rgba(255,107,74,0.03) 100%); border-radius:16px; padding:2.5rem 0; }
.home-root .help-header{ margin-bottom:2rem; text-align:center; }
.home-root .help-header p{ color:var(--muted); font-size:1.05rem; margin:0.5rem 0 0; }
.home-root .help-actions{ display:grid; grid-template-columns:repeat(auto-fit, minmax(220px, 1fr)); gap:1.5rem; margin-top:0; }

/* Help cards */
.home-root .help-card{
  background:var(--card-bg);
  padding:1.75rem;
  border-radius:14px;
  text-decoration:none;
  color:inherit;
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
  box-shadow:0 4px 12px rgba(16,24,40,0.05);
  border:1px solid rgba(16,24,40,0.04);
  transition:transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.home-root .help-card:hover,
.home-root .help-card:focus-visible{
  transform:translateY(-6px);
  box-shadow:0 12px 28px rgba(16,24,40,0.12);
  border-color:rgba(255,107,74,0.2);
}
.home-root .help-card:focus-visible{ outline:3px solid rgba(255,107,74,0.18); outline-offset:4px; }
.home-root .help-card-primary{
  background:var(--accent);
  color:#fff;
  box-shadow:0 8px 24px rgba(255,107,74,0.16);
  border-color:rgba(255,107,74,0.3);
}
.home-root .help-card-primary:hover{ background:color-mix(in srgb, var(--accent) 85%, black 15%); box-shadow:0 14px 32px rgba(255,107,74,0.24); }

.home-root .help-icon{
  font-size:2.5rem;
  margin-bottom:0.75rem;
  display:block;
}
.home-root .help-card h3{
  font-size:1.1rem;
  margin:0 0 0.5rem;
  font-weight:700;
}
.home-root .help-card p{
  margin:0;
  font-size:0.9rem;
  color:var(--muted);
  line-height:1.5;
}
.home-root .help-card-primary p{ color:rgba(255,255,255,0.85); }

/* Adoption & Contact Section */
.home-root .adoption-contact-section{ margin-top:2rem; }
.home-root .adoption-contact-grid{
  display:flex;
  flex-direction:column;
  gap:2rem;
  align-items:stretch;
}
.home-root .adoption-contact-card{
  background:var(--card-bg);
  border-radius:14px;
  overflow:hidden;
  border:1px solid rgba(16,24,40,0.04);
  display:flex;
  flex-direction:column;
}
.home-root .adopt-card{
  display:flex;
  flex-direction:row;
}
.home-root .adopt-card .card-image{
  flex:0 0 40%;
}
.home-root .adopt-card .card-content{
  flex:1;
  display:flex;
  flex-direction:column;
  justify-content:center;
  padding:2rem;
}
.home-root .contact-card{
  display:flex;
  flex-direction:row;
}
.home-root .contact-card .card-image{
  flex:0 0 40%;
}
.home-root .contact-card .card-content{
  flex:1;
  display:flex;
  flex-direction:column;
  justify-content:center;
  padding:2rem;
}
.home-root .card-image{
  width:100%;
  height:100%;
  overflow:hidden;
}
.home-root .card-image img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.home-root .card-content h3{
  margin:0 0 0.75rem;
  font-size:1.35rem;
  font-weight:700;
  color:#111827;
}
.home-root .card-content p{
  margin:0 0 1rem;
  font-size:1rem;
  color:var(--muted);
  line-height:1.6;
}
.home-root .card-link{
  text-decoration:none;
  color:var(--accent);
  font-weight:600;
  font-size:0.95rem;
  display:inline-block;
  transition:transform 0.2s ease, color 0.2s ease, text-decoration 0.2s ease;
  width:fit-content;
}
.home-root .card-link:hover,
.home-root .card-link:focus-visible{
  transform:translateY(-2px);
  text-decoration:underline;
  color:color-mix(in srgb, var(--accent) 85%, black 15%);
}
.home-root .card-link:focus-visible{
  outline:3px solid rgba(255,107,74,0.18);
  outline-offset:3px;
  border-radius:4px;
}

/* Responsive tweaks */
@media (min-width:980px){
  .home-root .inner{ padding:3rem 1rem; }
  .home-root h1{ font-size:2.6rem; }
}

@media (max-width:965px){
  .home-root .help-actions{ grid-template-columns:1fr; }
}

@media (max-width:768px){
  .home-root .adoption-contact-grid{ grid-template-columns:1fr; gap:1.5rem; }
  .home-root .adopt-card,
  .home-root .contact-card{ flex-direction:column; }
  .home-root .adopt-card .card-image,
  .home-root .contact-card .card-image{ flex:0 0 200px; }
}

@media (max-width:640px){
  .home-root .cta-row{ justify-content:center; }
  .home-root .help-actions{ justify-content:center; }
  .home-root .section-title{ flex-direction:column; align-items:flex-start; gap:.25rem; }
  .home-root .locations{ padding-right:1rem; box-sizing:border-box; }
  .home-root .carousel-card{ flex:0 0 calc((100vw - 2.5rem - 90px) / 2); max-width:140px; min-width:110px; }
  .home-root .carousel-name{ font-size:0.82rem; padding:0.5rem 0.4rem; }
  .home-root .carousel-btn{ width:44px; height:44px; font-size:1.2rem; }
  .home-root .card-content{ padding:1.5rem; }
  .home-root .card-content h3{ font-size:1.15rem; }
}