/* atticstarwa.com additions to the atticstar.com design (design-system.css + brand.css). */

/* Services menu: seven groups, four columns on desktop. */
@media (min-width: 981px) {
  .nav-dropdown-panel { columns: 4; max-width: 980px; left: 50%; transform: translateX(-38%); }
}

/* Project photo grid (service, city and home pages). */
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 980px) { .photo-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .photo-grid { grid-template-columns: 1fr; } }

/* Before / after slider. */
.ba-grid { display: grid; gap: 24px; }
.ba-grid-2, .ba-grid-3, .ba-grid-4, .ba-grid-5, .ba-grid-6 { grid-template-columns: repeat(2, 1fr); }
.ba-grid-1 { max-width: 820px; margin: 0 auto; }
@media (min-width: 1100px) { .ba-grid-3, .ba-grid-6 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .ba-grid { grid-template-columns: 1fr !important; } }
.ba { margin: 0; }
.ba-frame { position: relative; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 3 / 2; background: #0b1a2c; touch-action: pan-y; }
.ba-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 0; box-shadow: none; }
.ba-before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: #fff; box-shadow: 0 0 6px rgba(0,0,0,.35); pointer-events: none; }
.ba-handle::after { content: "\2194"; position: absolute; top: 50%; left: 50%; width: 38px; height: 38px; margin: -19px 0 0 -19px; border-radius: 50%;
  background: #fff; color: var(--brand-primary); font-weight: 800; font-size: 18px; line-height: 38px; text-align: center; box-shadow: 0 2px 8px rgba(0,0,0,.3); }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; z-index: 2; }
.ba-range:focus-visible + .ba-handle::after { outline: 3px solid var(--brand-accent); outline-offset: 2px; }
.ba-tag { position: absolute; bottom: 12px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; letter-spacing: .04em;
  text-transform: uppercase; background: rgba(4,31,66,.82); color: #fff; z-index: 1; pointer-events: none; }
.ba-tag-before { left: 12px; }
.ba-tag-after { right: 12px; background: var(--brand-accent); color: #1a202a; }

/* Offices, hours, neighborhoods. */
.office-cards-2 { grid-template-columns: repeat(2, 1fr); max-width: 860px; margin: 0 auto; }
@media (max-width: 700px) { .office-cards-2 { grid-template-columns: 1fr; } }
.hours-table { border-collapse: collapse; margin-top: 8px; min-width: 260px; }
.hours-table caption { text-align: left; font-family: var(--font-heading); font-weight: 700; color: var(--ink); padding-bottom: 6px; }
.hours-table th, .hours-table td { text-align: left; padding: 6px 16px 6px 0; border-top: 1px solid var(--border); font-size: 15px; }
.hours-table th { font-weight: 700; color: var(--ink); }
.hood-list { columns: 3 160px; padding-left: 18px; }
.blog-article h2 { margin-top: 28px; }
.blog-grid { grid-template-columns: repeat(3, 1fr); }
.blog-card img { border-radius: 8px; aspect-ratio: 16 / 9; object-fit: cover; margin-bottom: 14px; }
.blog-more { border-color: var(--brand-primary); color: var(--brand-primary); padding: 10px 18px; font-size: 13.5px; }
@media (max-width: 980px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .blog-grid { grid-template-columns: 1fr; } }
.service-tile-noimg { background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-dark)); }

/* Section rhythm: ~110px between sections on desktop, ~80px on phones (repo-wide spacing rule).
   Neighbouring sections with the same background share one gap instead of two. */
main > section { padding: 36px 0; }
main > section:not(.soft):not(.form-section):not(.hero):not(.ba-band.soft) + section:not(.soft):not(.form-section):not(.hero),
main > section.soft + section.soft, main > section.soft + script + section.soft { padding-top: 0; }
main > section.gallery-disclosure-section { padding: 22px 0 0; }
@media (max-width: 760px) { main > section { padding: 26px 0; } main > section.gallery-disclosure-section { padding: 16px 0 0; } }
.section-head { margin-bottom: 32px; }
.review-slider-row { margin-bottom: 0; }

/* Ratings: Google and Yelp cards (each links to the profile in a new tab), the strip above the header,
   and the review sections. Stars fill to --pct (4.9 of 5 = 98%). */
.rating-strip { background: var(--brand-primary-dark); color: #cfe0ee; font-size: 13px; line-height: 1.3; }
.rating-strip .wrap { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 7px; padding-bottom: 7px; }
.rating-strip a { color: #fff; text-decoration: none; font-weight: 600; }
.rating-strip a:hover, .rating-strip a:focus-visible { text-decoration: underline; }
.rs-rates { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.rs-star { font-size: 14px; }
.rs-google { color: #fbbc04; }
.rs-yelp { color: #ff5a4f; }
@media (max-width: 760px) { .rating-strip .wrap { justify-content: center; } .rs-lic { display: none; } }

.rate-badges { display: flex; flex-wrap: wrap; gap: 12px; }
.rate-badge { display: inline-flex; align-items: center; gap: 10px; min-width: 0; padding: 9px 16px 9px 10px; border-radius: 12px;
  background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow); color: var(--ink); text-decoration: none;
  transition: border-color .15s, transform .15s; }
.rate-badge:hover, .rate-badge:focus-visible { border-color: var(--brand-primary); transform: translateY(-1px); }
.rb-icon { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #fff; }
.rb-icon svg { width: 22px; height: 22px; }
.rb-yelp .rb-icon { background: transparent; }
.rb-yelp .rb-icon svg { width: 30px; height: 30px; }
.rb-top { display: flex; align-items: center; gap: 7px; line-height: 1; }
.rb-top b { font-family: var(--font-heading); font-size: 20px; font-weight: 800; }
.rb-stars { position: relative; display: inline-block; color: #d5dbe3; font-size: 15px; letter-spacing: 1px; white-space: nowrap; }
.rb-stars::before { content: "\2605\2605\2605\2605\2605"; position: absolute; inset: 0 auto 0 0; width: var(--pct); overflow: hidden; color: #f5a300; }
.rb-yelp .rb-stars::before { color: #d32323; }
.rb-label { display: block; margin-top: 4px; white-space: nowrap; font-size: 12.5px; font-weight: 700; color: var(--ink-soft); }
.rate-badges-dark .rate-badge { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.24); box-shadow: none; color: #fff; }
.rate-badges-dark .rate-badge:hover, .rate-badges-dark .rate-badge:focus-visible { background: rgba(255,255,255,.16); border-color: #fff; }
.rate-badges-dark .rb-stars { color: rgba(255,255,255,.3); }
.rate-badges-dark .rb-yelp .rb-stars::before { color: #ff5a4f; }
.rate-badges-dark .rb-label { color: #cfe0ee; }
.rate-badges-lg .rate-badge { padding: 14px 22px 14px 14px; gap: 14px; }
.rate-badges-lg .rb-icon { width: 46px; height: 46px; }
.rate-badges-lg .rb-icon svg { width: 30px; height: 30px; }
.rate-badges-lg .rb-yelp .rb-icon svg { width: 44px; height: 44px; }
.rate-badges-lg .rb-top b { font-size: 28px; }
.rate-badges-lg .rb-stars { font-size: 19px; }
.rate-badges-lg .rb-label { font-size: 13.5px; }
.hero .rate-badges { margin-top: 22px; }
.hero.no-card .rate-badges { justify-content: center; }
.section-head .rate-badges { justify-content: center; margin-top: 20px; }
.region-intro .rate-badges { margin: 4px 0 18px; }
footer.site .rate-badges { margin: 4px 0 14px; gap: 8px; }
footer.site .rate-badge { padding: 7px 12px 7px 8px; }
@media (max-width: 480px) {
  .rate-badges { gap: 8px; }
  .rate-badge, .rate-badges-lg .rate-badge { flex: 1 1 0; padding: 9px 10px 9px 8px; gap: 8px; }
  .rate-badges-lg .rb-icon { width: 34px; height: 34px; }
  .rate-badges-lg .rb-icon svg { width: 24px; height: 24px; }
  .rate-badges-lg .rb-yelp .rb-icon svg { width: 32px; height: 32px; }
  .rate-badges-lg .rb-top b { font-size: 22px; }
  .rb-stars, .rate-badges-lg .rb-stars { font-size: 13px; letter-spacing: 0; }
  .rb-label, .rate-badges-lg .rb-label { font-size: 12px; }
}
/* About: every review in a grid instead of the slider. */
.reviews-wall .review-slider-row .slider-arrow { display: none; }
.reviews-wall .review-slider { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 20px; overflow: visible; }
.reviews-wall .review-slider .review-card { flex: none; }
