/* Rodney Tree Service — Home page styles */

:root {
  --brand-green: #8fcf0f;
  /* Deeper green for full-width bands/heroes. White text on the bright lime
     sits at 1.9:1 — unreadable no matter how bold. This tone keeps the brand
     family and lifts white to ~6:1. */
  --brand-green-deep: #3d6e0c;
  --brand-dark: #1a2605;
}

/* Brand color utilities — single source of truth for all pages */
.text-brand-green { color: var(--brand-green); }
.text-brand-dark { color: var(--brand-dark); }
.bg-brand-green { background-color: var(--brand-green); }
.bg-brand-dark { background-color: var(--brand-dark); }
.border-brand-green { border-color: var(--brand-green); }

.hover\:text-brand-green:hover { color: var(--brand-green); }
.hover\:bg-brand-green:hover { background-color: var(--brand-green); }
.hover\:text-brand-dark:hover { color: var(--brand-dark); }
.hover\:bg-brand-dark:hover { background-color: var(--brand-dark); }

/* Hero green overlay. Lightened from 78% so more of the photograph reads
   through. 62% is about the floor — below that, white text over the
   brightest part of the sky drops under 4.5:1. */
.hero-overlay {
  background-color: color-mix(in srgb, var(--brand-green-deep) 62%, transparent);
}

/* Inner page hero — same photo + green overlay as home */
.page-hero {
  position: relative;
  overflow: hidden;
  background-color: var(--brand-dark);
  color: #f4f3ef;
}

.page-hero__bg {
  position: absolute;
  inset: 0;
}

.page-hero__bg .hero-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
}

.page-hero__content {
  position: relative;
  z-index: 10;
}

/* Deep green surfaces — everything white, per owner feedback */
.hero-on-green,
.section-brand {
  color: #fff;
}

.section-brand {
  background-color: var(--brand-green-deep);
}

.hero-on-green h1,
.hero-on-green h2,
.hero-on-green h3,
.section-brand h1,
.section-brand h2,
.section-brand h3 {
  color: #fff !important;
}

.hero-on-green h1 .italic,
.hero-on-green h2 .italic,
.hero-on-green h3 .italic,
.section-brand h1 .italic,
.section-brand h2 .italic,
.section-brand h3 .italic {
  color: rgba(255, 255, 255, 0.85) !important;
}

.hero-on-green__eyebrow,
.page-hero__eyebrow,
.section-brand span.uppercase.text-xs {
  color: #fff !important;
  font-weight: 700 !important;
}

.hero-on-green__lead,
.page-hero__lead,
.hero-on-green p,
.section-brand p,
.section-brand li,
.section-brand dd {
  color: #fff !important;
  font-weight: 700 !important;
}

.hero-on-green__lead strong,
.page-hero__lead strong,
.hero-on-green p strong,
.section-brand p strong,
.section-brand .trust-badge strong {
  color: #fff !important;
  font-weight: 700;
}

.hero-on-green__link,
.page-hero__link,
.section-brand a.inline-flex.text-xs:not([class*="py-5"]),
.section-brand footer a,
.section-brand .section-link {
  color: rgba(255, 255, 255, 0.9) !important;
  transition: color 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-on-green__link:hover,
.page-hero__link:hover,
.section-brand a.inline-flex.text-xs:not([class*="py-5"]):hover,
.section-brand footer a:hover,
.section-brand .section-link:hover {
  color: #fff !important;
}

.hero-on-green .trust-badge,
.page-hero .trust-badge,
.section-brand .trust-badge {
  color: #fff !important;
  font-weight: 700 !important;
}

.hero-on-green .trust-badge::before,
.page-hero .trust-badge::before,
.section-brand .trust-badge::before {
  background: #fff;
}

.hero-on-green__btn {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}

.hero-on-green__btn:hover {
  border-color: #fff;
}

.hero-on-green__divider {
  color: rgba(255, 255, 255, 0.3);
}

.section-brand iconify-icon {
  color: rgba(255, 255, 255, 0.5);
}

.section-brand a.inline-flex.text-xs span::after {
  background-color: rgba(255, 255, 255, 0.3) !important;
}

.section-brand a.inline-flex.text-xs:hover span::after {
  background-color: #fff !important;
}

.section-brand a[class*="bg-[#F4F3EF]"] {
  color: var(--brand-dark) !important;
}

.section-brand a[class*="bg-[#F4F3EF]"]:hover {
  color: var(--brand-green) !important;
}

.section-brand a.border[class*="py-5"]:not([class*="bg-[#F4F3EF]"]) {
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.4) !important;
}

.section-brand a.border[class*="py-5"]:not([class*="bg-[#F4F3EF]"]) span {
  color: inherit !important;
}

.section-brand a.border[class*="py-5"]:not([class*="bg-[#F4F3EF]"]):hover span {
  color: #f4f3ef !important;
}

.section-brand .border-t,
.section-brand.border-t {
  border-color: rgba(255, 255, 255, 0.15) !important;
}

footer.section-brand p,
footer.section-brand .section-brand__label {
  color: #fff !important;
  font-weight: 700 !important;
}

footer.section-brand a:not([class*="bg-[#F4F3EF]"]),
section.section-brand a:not([class*="bg-[#F4F3EF]"]):not([class*="bg-brand"]) {
  color: #fff !important;
  font-weight: 700 !important;
}

footer.section-brand a:not([class*="bg-[#F4F3EF]"]):hover,
section.section-brand a:not([class*="bg-[#F4F3EF]"]):not([class*="bg-brand"]):hover {
  color: #fff !important;
}

section.section-brand p,
footer.section-brand p {
  color: #fff !important;
  font-weight: 700 !important;
}

section.section-brand ul,
section.section-brand .trust-badge {
  color: rgba(255, 255, 255, 0.85) !important;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  overflow-x: clip;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #f4f3ef;
}

::-webkit-scrollbar-thumb {
  background: var(--brand-dark);
}

::selection {
  background: var(--brand-green);
  color: var(--brand-dark);
}

/* Playfair Display — prevent descender clipping */
[class*="Playfair_Display"],
.heading-display {
  line-height: 1.45;
  overflow: visible;
  text-wrap: balance;
}

.heading-display {
  padding: 0.05em 0.04em 0.2em;
}

[class*="Playfair_Display"] .italic,
h1 .italic,
h2 .italic {
  display: inline;
  line-height: inherit;
  padding-bottom: 0;
}

article h3[class*="Playfair_Display"],
p[class*="Playfair_Display"] {
  line-height: 1.45;
  padding-bottom: 0.12em;
}

blockquote p[class*="Playfair_Display"] {
  line-height: 1.6;
  padding-bottom: 0.2em;
}

.section-link {
  flex-shrink: 0;
  white-space: nowrap;
}

/* Media frames — clip images only, never alt text overflow */
.media-frame {
  overflow: hidden;
  background-color: rgba(26, 38, 5, 0.05);
}

.media-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  background: var(--brand-dark);
  color: #f4f3ef;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  transition: top 0.3s ease;
}

.skip-link:focus {
  top: 1rem;
}

/* Luxe easing & animations */
.ease-luxe {
  transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeUpLuxe {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleImage {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.08);
  }
}

@keyframes growLine {
  from {
    height: 0;
    opacity: 0;
  }
  to {
    height: 8rem;
    opacity: 1;
  }
}

.animate-fade-up {
  animation: fadeUpLuxe 1.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
}

.animate-grow-line {
  animation: growLine 2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
}

.delay-100 {
  animation-delay: 100ms;
}

.delay-300 {
  animation-delay: 300ms;
}

.delay-500 {
  animation-delay: 500ms;
}

.delay-700 {
  animation-delay: 700ms;
}

.hero-img {
  animation: scaleImage 30s linear infinite alternate;
}

/* Hero — clear fixed nav (h-20 / h-24) */
.hero-content {
  padding-top: 0.5rem;
}

/* Hero logo — readable, below nav */
.hero-logo {
  display: block;
  line-height: 0;
  background: #fff;
  padding: 0.625rem 0.75rem;
  box-shadow: 0 8px 28px rgba(26, 38, 5, 0.12);
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-logo:hover {
  transform: translateY(-2px);
}

.hero-logo__img {
  display: block;
  width: 100%;
  max-width: 14rem;
  height: auto;
}

@media (min-width: 640px) {
  .hero-logo {
    padding: 0.75rem 1rem;
  }

  .hero-logo__img {
    max-width: 18rem;
  }
}

@media (min-width: 768px) {
  .hero-logo__img {
    max-width: 20rem;
  }
}

@media (min-width: 1024px) {
  .hero-logo__img {
    max-width: 22rem;
  }
}

.group:hover .portfolio-img {
  transform: scale(1.03);
}

/* Scroll reveal — content always visible; optional motion when scrolled into view */
.reveal {
  opacity: 1;
  transform: none;
  overflow: visible;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Nav logo — fill header height without growing the bar */
.nav-logo {
  height: 4.25rem;
  max-height: calc(100% - 0.25rem);
  width: auto;
}

@media (min-width: 768px) {
  .nav-logo {
    height: 5.25rem;
  }
}

.nav-logo-link {
  line-height: 0;
}

/* Nav scroll state */
.site-nav.is-scrolled {
  background-color: rgba(244, 243, 239, 0.95);
  box-shadow: 0 1px 0 rgba(26, 38, 5, 0.08);
}

/* Mobile menu */
.mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-menu.is-open {
  max-height: 24rem;
}

.mobile-menu-toggle iconify-icon:last-child {
  display: none;
}

.mobile-menu-toggle.is-open iconify-icon:first-child {
  display: none;
}

.mobile-menu-toggle.is-open iconify-icon:last-child {
  display: inline-block;
}

/* Trust badges — owner asked for every badge to read like "24/7 Emergency Service" */
.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #fff;
}

.trust-badge::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #fff;
}

/* Counties, 24/7, and other key callouts on green surfaces */
.trust-badge--emphasis,
.hero-on-green .trust-badge--emphasis,
.page-hero .trust-badge--emphasis,
.section-brand .trust-badge--emphasis {
  color: #fff !important;
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.15em;
}

.trust-badge--emphasis::before,
.hero-on-green .trust-badge--emphasis::before,
.page-hero .trust-badge--emphasis::before,
.section-brand .trust-badge--emphasis::before {
  background: #fff;
  width: 5px;
  height: 5px;
}

.hero-on-green__eyebrow strong,
.page-hero__eyebrow strong {
  color: #fff !important;
  font-weight: 700;
}

footer.section-brand p strong {
  color: #fff !important;
  font-weight: 700;
}

/* Back to top */
.back-to-top {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.125rem;
  font-family: "Montserrat", sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brand-dark);
  background-color: #f4f3ef;
  border: 1px solid rgba(26, 38, 5, 0.2);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(1rem);
  transition:
    opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    visibility 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    background-color 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    color 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 24px rgba(26, 38, 5, 0.1);
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover,
.back-to-top:focus-visible {
  color: var(--brand-dark);
  background-color: var(--brand-green);
  border-color: var(--brand-green);
  outline: none;
}

.back-to-top__label {
  line-height: 1;
}

@media (max-width: 480px) {
  .back-to-top {
    right: 1rem;
    bottom: 1rem;
    padding: 0.875rem;
  }

  .back-to-top__label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
}

/* Inner pages — forms */
.form-stack {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Honeypot. Off-screen rather than display:none — some bots skip hidden
   fields, and this one is meant to be filled in. */
.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Submit feedback */
.form-success,
.form-error {
  margin-top: 1.25rem;
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.7;
}

.form-success {
  color: var(--brand-green-deep);
}

.form-error {
  color: #8a1c1c;
}

.form-error a {
  color: inherit;
  text-decoration: underline;
}

.form-submit[disabled] {
  opacity: 0.55;
  cursor: progress;
}

.form-field label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(26, 38, 5, 0.85);
  margin-bottom: 0.5rem;
}

.form-input,
.form-select,
.form-textarea {
  display: block;
  width: 100%;
  padding: 0.875rem 1rem;
  font-family: "Montserrat", sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--brand-dark);
  background: #fff;
  border: 1px solid rgba(26, 38, 5, 0.15);
  transition:
    border-color 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--brand-dark);
  box-shadow: 0 0 0 1px rgba(26, 38, 5, 0.08);
}

.form-textarea {
  resize: vertical;
  min-height: 8rem;
}

.form-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.5rem;
  font-family: "Montserrat", sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brand-dark);
  background: var(--brand-green);
  border: 1px solid var(--brand-green);
  cursor: pointer;
  transition:
    background-color 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    color 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.form-submit:hover,
.form-submit:focus-visible {
  background: var(--brand-dark);
  color: var(--brand-green);
  border-color: var(--brand-dark);
  outline: none;
}

.map-frame {
  overflow: hidden;
  border: 1px solid rgba(26, 38, 5, 0.1);
  background: rgba(26, 38, 5, 0.05);
}

.map-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 280px;
  border: 0;
}

.service-anchor-nav a {
  transition: color 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-anchor-nav a:hover {
  color: var(--brand-dark);
}

/* Semantic tokens on lime green — must load after Tailwind CDN utilities */
.section-brand__label {
  color: #fff !important;
  font-weight: 700 !important;
}

.section-brand__lead {
  color: #fff !important;
  font-weight: 700 !important;
}

.section-brand__lead strong {
  color: #fff !important;
  font-weight: 700;
}

.section-brand__link {
  color: rgba(255, 255, 255, 0.9) !important;
}

.section-brand__link span::after {
  background-color: rgba(255, 255, 255, 0.3) !important;
}

.section-brand__link:hover {
  color: #fff !important;
}

.section-brand__link:hover span::after {
  background-color: #fff !important;
}

/* Ghost button. reviews.html uses this class on a cream section too, where the
   old unscoped white text + white border made the button invisible. Default is
   now the cream-safe dark treatment; green surfaces opt into white below. */
.section-brand__btn-ghost {
  color: var(--brand-dark) !important;
  border-color: rgba(26, 38, 5, 0.35) !important;
  font-weight: 700 !important;
}

.section-brand__btn-ghost:hover {
  border-color: var(--brand-dark) !important;
}

.section-brand .section-brand__btn-ghost,
.hero-on-green .section-brand__btn-ghost,
.page-hero .section-brand__btn-ghost {
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.6) !important;
}

.section-brand .section-brand__btn-ghost:hover,
.hero-on-green .section-brand__btn-ghost:hover,
.page-hero .section-brand__btn-ghost:hover {
  border-color: #fff !important;
}

/* Beat Tailwind arbitrary dark-text utilities still present in markup */
.section-brand [class*="text-[#1a2605]"] {
  color: #fff !important;
}

.section-brand h1,
.section-brand h2,
.section-brand h3,
.section-brand h1 [class*="text-[#1a2605]"],
.section-brand h2 [class*="text-[#1a2605]"],
.section-brand h3 [class*="text-[#1a2605]"] {
  color: #fff !important;
}

.section-brand h1 .italic,
.section-brand h2 .italic,
.section-brand h3 .italic {
  color: rgba(255, 255, 255, 0.85) !important;
}

.section-brand a[class*="bg-[#F4F3EF]"],
.section-brand a[class*="bg-[#F4F3EF]"] [class*="text-[#1a2605]"] {
  color: var(--brand-dark) !important;
}

/* —— Owner feedback: global typography & components —— */

/* Hero emphasis — match 24/7 on green overlay */
.hero-emphasis,
.hero-on-green__eyebrow.hero-emphasis,
.hero-on-green__lead.hero-emphasis,
.hero-on-green__link.hero-emphasis {
  color: #fff !important;
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.hero-on-green__lead.hero-emphasis {
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: 0.875rem;
  line-height: 2;
}

@media (min-width: 768px) {
  .hero-on-green__lead.hero-emphasis {
    font-size: 1rem;
  }
}

.hero-on-green__btn.hero-emphasis {
  color: #fff !important;
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.15em;
  border-color: rgba(255, 255, 255, 0.5);
}

/* All white text on lime green sections — bold like 24/7 */
.section-brand .section-brand__label,
.section-brand .section-brand__lead,
.section-brand .trust-badge,
.section-brand .section-brand__link,
.section-brand .section-brand__link span,
.section-brand .section-brand__btn-ghost span,
.hero-on-green .hero-on-green__lead,
.hero-on-green .hero-on-green__eyebrow,
.hero-on-green .hero-emphasis,
.page-hero .page-hero__lead,
.page-hero .page-hero__eyebrow {
  color: #fff !important;
  font-weight: 700 !important;
}

.section-brand .section-brand__link span::after {
  background-color: rgba(255, 255, 255, 0.5) !important;
}

/* ============================================================
   UNIFIED TYPE SCALE — one source of truth for all six pages.

   Before this block each page hand-rolled its own sizes: five
   different H2 size combinations, a 13/22 split between bold and
   normal headings, and four separate implementations of the small
   uppercase label. !important is required because the sizes live
   in Tailwind utility classes spread across the markup; this file
   loads after the CDN so it wins the tie.
   ============================================================ */

/* Page title */
main h1 {
  font-size: clamp(2.75rem, 6vw, 5rem) !important;
  font-weight: 700 !important;
  line-height: 1.06;
  letter-spacing: -0.015em;
}

/* Section heading */
main h2:not(.sr-only) {
  font-size: clamp(2.125rem, 4vw, 3.5rem) !important;
  font-weight: 700 !important;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

/* Card / service heading */
main h3 {
  font-size: clamp(1.5rem, 2.2vw, 2rem) !important;
  font-weight: 700 !important;
  line-height: 1.2;
}

/* Italic second lines inside headings keep the heading's own weight */
main h1 .italic,
main h2 .italic,
main h3 .italic {
  font-weight: 700 !important;
}

/* The one small uppercase label, used everywhere. Matches the
   "24/7 Emergency Service" treatment the owner set as the standard. */
.text-label-emphasis,
.section-brand__label,
.hero-on-green__eyebrow,
.page-hero__eyebrow,
.eyebrow {
  font-size: 0.8125rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.2em !important;
  text-transform: uppercase !important;
  line-height: 1.6;
}

/* Body copy — larger and heavier than the old 14px/300 default */
.text-body-emphasis,
.text-body-emphasis p,
.about-body p,
.services-list p,
.gallery-page p:not(.heading-display):not(.footer-copyright),
.service-card p,
.section-brand__lead,
.hero-on-green__lead,
.page-hero__lead {
  font-size: 1.0625rem !important;
  line-height: 1.85 !important;
}

@media (min-width: 768px) {
  .text-body-emphasis,
  .text-body-emphasis p,
  .about-body p,
  .services-list p,
  .service-card p,
  .section-brand__lead,
  .hero-on-green__lead,
  .page-hero__lead {
    font-size: 1.125rem !important;
  }
}

/* Baseline body copy. Every page ships `font-light text-[#6B7280]` on <body>,
   which is 4.4:1 on cream at weight 300 — this is the root of the repeated
   "all the gray lettering needs to be bolder" note. Darken and thicken once
   here instead of chasing individual spans. */
body.antialiased {
  color: rgba(26, 38, 5, 0.82) !important;
  font-weight: 500 !important;
}

/* Faint eyebrow / caption text written as Tailwind arbitrary values.
   Scoped to inline elements on purpose — <body> itself carries
   text-[#6B7280], and a bare attribute selector would bold the whole page. */
span[class*="text-[#6B7280]"],
cite[class*="text-[#6B7280]"],
p[class*="text-[#6B7280]"],
span[class*="text-[#1a2605]/50"],
dt[class*="text-[#1a2605]/50"],
p[class*="text-[#1a2605]/50"],
span[class*="text-[#1a2605]/60"] {
  color: rgba(26, 38, 5, 0.8) !important;
  font-weight: 700 !important;
}

/* …but inside a heading the span is half the headline ("Dependable. Hard
   working."), so it must keep the heading's own weight. Color still applies. */
h1 span[class*="text-[#6B7280]"],
h2 span[class*="text-[#6B7280]"],
h3 span[class*="text-[#6B7280]"],
h1 span[class*="text-[#1a2605]/"],
h2 span[class*="text-[#1a2605]/"],
h3 span[class*="text-[#1a2605]/"] {
  font-weight: inherit !important;
}

/* Green surfaces own their color — don't let the cream rules above leak in */
.section-brand span[class*="text-[#6B7280]"],
.section-brand span[class*="text-[#1a2605]/50"],
.section-brand span[class*="text-[#1a2605]/60"],
.hero-on-green span[class*="text-[#1a2605]/60"],
.page-hero span[class*="text-[#1a2605]/60"] {
  color: rgba(255, 255, 255, 0.9) !important;
}

/* Contact page business details — smallest, faintest copy on the site */
.business-info dd,
.business-info dd a {
  color: #1a2605 !important;
  font-weight: 700 !important;
}

.business-info dt {
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  color: rgba(26, 38, 5, 0.8) !important;
}

/* Nav + mobile menu links */
.site-nav a,
.nav-link,
.mobile-menu a {
  font-weight: 700;
  color: var(--brand-dark);
}

/* Bolder gray / body copy on cream backgrounds */
.text-body-emphasis,
.text-body-emphasis p,
.about-body p,
.services-list p,
.gallery-page p:not(.heading-display),
.gallery-caption,
.service-card p,
.service-card .learn-more {
  font-weight: 700 !important;
  color: #1a2605 !important;
}

.text-body-muted {
  font-weight: 700 !important;
  color: rgba(26, 38, 5, 0.85) !important;
}

.text-label-emphasis {
  font-weight: 700 !important;
  color: rgba(26, 38, 5, 0.85) !important;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* Request estimate links on cream pages.
   Previously the lime --brand-green, which is 1.7:1 on the cream page
   background — the owner reported these as unreadable. Dark green matches
   what the home page "Learn more" links already render as. */
.cta-estimate,
.service-card .learn-more {
  color: var(--brand-dark) !important;
  font-weight: 700 !important;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-size: 0.75rem;
  transition: color 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.cta-estimate span::after {
  background-color: var(--brand-dark) !important;
}

.cta-estimate:hover {
  color: var(--brand-green-deep) !important;
}

.cta-estimate:hover span::after {
  background-color: var(--brand-green-deep) !important;
}

/* Service section icons — 3–4× larger */
/* ============================================================
   Home "Our Services" — boxed cards, each with its own photo.
   Previously these were open text blocks separated by a top rule,
   and two of them reused images already shown in the Our Work
   grid further down the same page.
   ============================================================ */
.service-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: 1px solid rgba(26, 38, 5, 0.14);
  box-shadow: 0 10px 26px rgba(26, 38, 5, 0.06);
  overflow: hidden;
  transition:
    box-shadow 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover {
  box-shadow: 0 18px 40px rgba(26, 38, 5, 0.13);
  transform: translateY(-3px);
}

.service-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: rgba(26, 38, 5, 0.06);
  overflow: hidden;
}

.service-card__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover .service-card__img {
  transform: scale(1.05);
}

/* Icon badge straddling the photo edge — keeps the icons present now that
   every card leads with a photograph. */
.service-card__badge {
  position: absolute;
  left: 1.5rem;
  bottom: 0;
  transform: translateY(50%);
  width: 4.25rem;
  height: 4.25rem;
  border-radius: 50%;
  background: var(--brand-green-deep);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(26, 38, 5, 0.28);
}

/* Same ~68% fill as the services page badges, so the two pages match */
.service-card__badge iconify-icon {
  width: 2.875rem;
  height: 2.875rem;
}

.service-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 3.25rem 1.75rem 1.75rem;
}

.service-card__body h3 {
  margin-bottom: 0.875rem;
}

/* ============================================================
   Services page — each service is a self-contained card carrying
   its own photo. Previously these were rows in a 12-column grid
   separated only by a hairline, which read as floating text with
   nothing holding it together.
   ============================================================ */
.services-list {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .services-list {
    gap: 3.5rem;
  }
}

.service-block {
  display: grid;
  grid-template-columns: 1fr;
  background: #fff;
  border: 1px solid rgba(26, 38, 5, 0.14);
  overflow: hidden;
  box-shadow: 0 12px 34px rgba(26, 38, 5, 0.07);
}

@media (min-width: 900px) {
  .service-block {
    grid-template-columns: 5fr 6fr;
  }

  /* Alternate which side the photo sits on so six stacked cards
     don't read as one repeating block. */
  .service-block--reverse .service-block__media {
    order: 2;
  }
}

.service-block__media {
  position: relative;
  min-height: 15rem;
  background: rgba(26, 38, 5, 0.06);
}

@media (min-width: 900px) {
  .service-block__media {
    min-height: 24rem;
  }
}

.service-block__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-block__body {
  padding: 2.25rem 1.75rem 2.5rem;
}

@media (min-width: 768px) {
  .service-block__body {
    padding: 3.5rem;
  }
}

/* Icon chip. The card now leads with a photo, so the icon becomes a
   deliberate badge rather than a large floating outline. */
.service-block__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 6rem;
  height: 6rem;
  border-radius: 50%;
  background: var(--brand-green-deep);
  color: #fff;
  margin-bottom: 1.75rem;
}

/* ~68% of the circle. The solar/mdi glyphs carry their own padding inside a
   24x24 viewBox, so at the old 54% they read as small dots in a large disc. */
.service-block__icon iconify-icon {
  width: 4.125rem;
  height: 4.125rem;
}

@media (min-width: 768px) {
  .service-block__icon {
    width: 7rem;
    height: 7rem;
  }

  .service-block__icon iconify-icon {
    width: 4.75rem;
    height: 4.75rem;
  }
}

/* Slightly tighter than the global H2 — these sit in a half-width card */
.service-block h2 {
  font-size: clamp(1.875rem, 2.6vw, 2.75rem) !important;
  margin-bottom: 0.75rem;
}

.service-block__kicker {
  display: block;
  margin-bottom: 1.75rem;
}

.service-block__body p {
  margin-bottom: 1.75rem;
}

/* Footer — much larger logo, on a white card.
   images/logo.png is RGB with no alpha channel, so its background is solid
   white. Scaled up on the green band it would read as a stray white slab;
   the card + padding makes that white deliberate. Swap for a transparent
   PNG later and this rule can drop the background. */
/* The logo now owns its own row, so it can run at full size at every
   breakpoint instead of fighting the contact columns for space. */
.footer-logo {
  display: block;
  width: 26rem;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  opacity: 1;
  background: #fff;
  padding: 0.875rem 1.125rem;
  box-shadow: 0 8px 28px rgba(26, 38, 5, 0.12);
}

@media (min-width: 768px) {
  .footer-logo {
    width: 34rem;
    padding: 1.25rem 1.75rem;
  }
}

@media (min-width: 1280px) {
  .footer-logo {
    width: 38rem;
  }
}

/* Footer social — a bare white glyph on green was easy to miss */
.footer-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  border: 2px solid rgba(255, 255, 255, 0.65);
  border-radius: 50%;
  transition:
    background-color 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    color 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.footer-social:hover,
.footer-social:focus-visible {
  background-color: #fff;
  border-color: #fff;
  color: var(--brand-green-deep) !important;
}

footer.section-brand .footer-brand,
footer.section-brand .footer-brand a,
footer.section-brand .footer-brand p,
footer.section-brand .footer-copyright,
footer.section-brand a[aria-label] {
  font-weight: 700 !important;
  color: #fff !important;
}

footer.section-brand .section-brand__label {
  font-weight: 700 !important;
  color: #fff !important;
}

footer.section-brand p strong {
  font-weight: 700 !important;
  color: #fff !important;
}

/* Override body font-light inside green footers only */
footer.section-brand,
footer.section-brand .footer-brand,
footer.section-brand .footer-brand p,
footer.section-brand .footer-brand a,
footer.section-brand .section-brand__label,
footer.section-brand .footer-copyright {
  font-weight: 700 !important;
  color: #fff !important;
}

/* Facebook CTA — high contrast on cream */
.btn-facebook {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.25rem 2.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #fff !important;
  background-color: var(--brand-dark);
  border: 2px solid var(--brand-dark);
  transition:
    background-color 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    color 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-facebook:hover {
  background-color: transparent;
  color: var(--brand-dark) !important;
}

/* Before / After tag overlaid on a gallery figure */
.photo-tag {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  padding: 0.5rem 1.125rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #fff;
  background-color: var(--brand-dark);
}

/* The About frame is set to aspect-[7/8] to match this photo's own 717x829
   ratio, so almost nothing is cropped at any width and the truck lettering
   — "The Tree Service / Commercial & Residential / 865-688-0730" — stays
   readable next to the operator. The slight low bias absorbs rounding. */
.media-img--boom {
  object-position: center 55%;
}

/* Gallery page bold captions */
.gallery-page .gallery-heading-block,
.gallery-page .gallery-caption {
  font-weight: 700;
}

.about-hours iconify-icon {
  width: 3.5rem !important;
  height: 3.5rem !important;
  color: rgba(26, 38, 5, 0.55) !important;
}
