/* Pamlico Tree Care — modern rounding */

/* Form fields and buttons */
button, input, select, textarea {
  border-radius: 6px !important;
}

/* CTA-style links (anchors with bg color + padding) */
a[class~="bg-primary"][class*="px-"]:not([class*="bg-primary-fixed"]):not([class*="bg-primary-container"]),
a[class~="bg-secondary"][class*="px-"]:not([class*="bg-secondary-container"]),
a[class~="bg-white"][class*="px-"]:not(.flex-1),
a[class~="bg-on-primary"][class*="px-"] {
  border-radius: 6px;
}

/* Bordered cards (full borders only — exclude directional accents) */
[class*="border-2"][class*="p-"]:not([class*="border-l-"]):not([class*="border-r-"]):not([class*="border-t-"]):not([class*="border-b-"]):not([class*="border-y-"]):not([class*="border-x-"]) {
  border-radius: 8px;
}
[class~="border"][class*="p-"]:not([class*="border-2"]):not([class*="border-4"]):not([class*="border-l-"]):not([class*="border-r-"]):not([class*="border-t-"]):not([class*="border-b-"]):not([class*="border-y-"]):not([class*="border-x-"]) {
  border-radius: 8px;
}

/* Surface-container panels (cards, not full-bleed sections) */
div[class*="bg-surface-container"]:not([class*="absolute"]) {
  border-radius: 8px;
}
section[class*="bg-surface-container"],
header[class*="bg-surface-container"],
footer[class*="bg-surface-container"],
nav[class*="bg-surface-container"],
main[class*="bg-surface-container"] {
  border-radius: 0;
}

/* Image aspect-ratio containers */
[class~="aspect-video"], [class~="aspect-square"], [class*="aspect-["] {
  border-radius: 6px;
  overflow: hidden;
}

/* Trust badges and pill labels (small uppercase markers) */
span[class*="bg-primary"][class*="px-3"][class*="py-1"],
span[class*="bg-primary"][class*="px-4"][class*="py-1"],
span[class*="bg-secondary"][class*="px-3"][class*="py-1"] {
  border-radius: 4px;
}

/* FAQ accordion items */
details {
  border-radius: 8px;
}

/* Star ratings / score boxes — keep their hard-edged feel a touch softer */
.bg-primary[class*="px-8"][class*="py-4"],
.bg-secondary[class*="px-8"][class*="py-4"] {
  border-radius: 4px;
}

/* Sticky mobile CTA bar — keep full-bleed, no rounding */
.md\:hidden.fixed a {
  border-radius: 0 !important;
}

/* Material icons should never inherit rounding */
.material-symbols-outlined {
  border-radius: 0 !important;
}

/* Logo image — no rounding */
img[alt="Pamlico Tree Care"] {
  border-radius: 0;
}

/* Mobile: leave room at bottom for the sticky CTA bar so it doesn't cover footer */
@media (max-width: 767px) {
  body {
    padding-bottom: calc(64px + env(safe-area-inset-bottom));
  }
}

/* Sticky Call Now bar: extend through iOS safe area / home indicator */
.md\:hidden.fixed.bottom-0 {
  padding-bottom: calc(1rem + env(safe-area-inset-bottom));
}

/* Portfolio filter buttons */
.filter-btn {
  border-color: #8d7167;
  color: #594138;
  background-color: transparent;
}
.filter-btn:hover {
  border-color: #9e3800;
  color: #9e3800;
}
.filter-btn.is-active {
  border-color: #9e3800 !important;
  background-color: #9e3800 !important;
  color: #ffffff !important;
}
