/* 1st Choice Plumbing - V35 UX refinements. Loaded last on every page so it wins over page styles. */

/* ---------- Logos and fixed-size images keep their ratio once width/height attributes are present ---------- */
img[src*="1stChoice_Logo"], img[src*="Alloni_Logo"], img[src*="Allini_Certifed"] { width: auto; }

/* ---------- Desktop navigation dropdowns ---------- */
.nav-dd { position: relative; display: flex; align-items: center; }
/* chevron drawn as a background so the existing ::after hover underline keeps working */
.nav-dd > .nav-link { padding-right: 16px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23495057' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right center / 10px 6px; }
.nav-dd-menu { position: absolute; top: calc(100% + 14px); left: 50%; z-index: 1001; min-width: 250px; padding: 10px; background: #fff; border-radius: 12px; box-shadow: 0 20px 50px rgba(10, 31, 53, 0.18); opacity: 0; visibility: hidden; transform: translate(-50%, 8px); transition: opacity .18s ease, transform .18s ease, visibility .18s; }
.nav-dd-menu::before { content: ''; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
.nav-dd:hover .nav-dd-menu, .nav-dd:focus-within .nav-dd-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.nav-dd-menu a { display: block; padding: 10px 14px; border-radius: 8px; font-size: 14px; font-weight: 600; color: var(--color-secondary); white-space: nowrap; text-decoration: none; }
.nav-dd-menu a:hover, .nav-dd-menu a:focus { background: rgba(0, 148, 212, 0.1); color: var(--color-primary-dark); }
.nav-dd-2col { display: grid; grid-template-columns: 1fr 1fr; min-width: 400px; }

/* ---------- Phone menu: service links nested under Services, menu scrolls ---------- */
.mobile-menu-nav { overflow-y: auto; -webkit-overflow-scrolling: touch; }
.mobile-menu-link.sub { padding: 11px 0 11px 18px; font-family: var(--font-body); font-size: 15px; font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--color-gray-700); }

/* ---------- Homepage rating band (replaces the old Emergency band) ---------- */
.proof-band { padding: 80px 0; background: linear-gradient(135deg, var(--color-secondary) 0%, #0d2540 55%, #061525 100%); color: #fff; text-align: center; }
.proof-head h2 { font-family: var(--font-display); font-size: clamp(32px, 5vw, 48px); color: #fff; text-transform: uppercase; margin: 10px 0 8px; }
.proof-head p { color: rgba(255, 255, 255, 0.8); font-size: 17px; font-weight: 300; }
.proof-stars { display: inline-flex; gap: 6px; }
.proof-stars svg { width: 26px; height: 26px; fill: var(--color-accent); }
.proof-quotes { display: grid; gap: 20px; max-width: 960px; margin: 36px auto; text-align: left; }
@media (min-width: 768px) { .proof-quotes { grid-template-columns: 1fr 1fr; } }
.proof-quote { margin: 0; padding: 24px 26px; border-radius: var(--radius-lg); background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.12); }
.proof-quote blockquote { margin: 0 0 12px; font-size: 16px; line-height: 1.75; color: rgba(255, 255, 255, 0.92); }
.proof-quote figcaption { font-size: 13px; color: var(--color-accent); font-weight: 600; }
.proof-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.form-optional { font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--color-gray-500); }

/* ---------- Reviews carousel: arrows sit outside the cards ---------- */
@media (min-width: 768px) {
  .reviews-carousel-wrapper { padding: 0 60px; }
  .carousel-btn-prev { left: 0; }
  .carousel-btn-next { right: 0; }
}

/* ---------- Phones ---------- */
@media (max-width: 767px) {
  /* one way to call (bottom bar), one way to chat (Rob); no duplicate floating buttons */
  .floating-cta, .scroll-top { display: none !important; }
  .header-top { display: none; }
  .hero { padding-top: 96px !important; }
  .page-hero { padding-top: 112px; }

  /* Rob greeting: a small bubble beside his avatar instead of a card over the page */
  .rob-callout { width: auto; max-width: 236px; bottom: 156px; }
  .rob-callout-body { display: none; }
  .rob-callout-top { padding-bottom: 10px; }
  .rob-callout-btn { padding: 10px 14px; font-size: 13px; }

  /* compact service cards */
  .service-card-image { height: 140px; }
  .service-card-content { padding: 20px 22px 22px; }
  .service-card-content p { font-size: 14px; margin-bottom: 12px; }

  /* footer: two columns, town list in two columns */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
  .footer-grid > div:nth-child(1), .footer-grid > div:nth-child(4), .footer-grid > div:nth-child(5) { grid-column: 1 / -1; }
  .footer-grid > div:nth-child(4) .footer-links { columns: 2; column-gap: 16px; }
  .footer-grid > div:nth-child(4) .footer-links li { break-inside: avoid; }
}
