/* ============================================
   Berg's Stump Grinding - Styles
   Brand: Black & Yellow
   ============================================ */

:root {
  --yellow: #ffcc00;
  --yellow-dark: #e6b800;
  --yellow-soft: #fff4cc;
  --black: #0d0d0d;
  --black-soft: #1a1a1a;
  --gray-900: #222;
  --gray-700: #444;
  --gray-500: #777;
  --gray-300: #d8d8d8;
  --gray-100: #f5f5f5;
  --white: #ffffff;
  --shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 14px 40px rgba(0, 0, 0, 0.18);
  --radius: 10px;
  --radius-lg: 16px;
  --max: 1140px;
  --transition: 0.25s ease;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--black); text-decoration: none; }
a:hover { color: var(--yellow-dark); }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* -------- Buttons -------- */
.btn {
  display: inline-block;
  padding: 0.85rem 1.5rem;
  font-weight: 700;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), background var(--transition), color var(--transition), border-color var(--transition);
  font-size: 1rem;
  letter-spacing: 0.2px;
  text-align: center;
}
.btn-small { padding: 0.5rem 0.95rem; font-size: 0.9rem; }
.btn-primary {
  background: var(--yellow);
  color: var(--black);
  border-color: var(--yellow);
}
.btn-primary:hover {
  background: var(--yellow-dark);
  border-color: var(--yellow-dark);
  color: var(--black);
  transform: translateY(-2px);
}
.btn-secondary {
  background: var(--black);
  color: var(--yellow);
  border-color: var(--black);
}
.btn-secondary:hover {
  background: var(--gray-900);
  color: var(--yellow);
  transform: translateY(-2px);
}
.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: var(--yellow);
}
.btn-ghost:hover {
  background: var(--yellow);
  color: var(--black);
}
.btn-block { display: block; width: 100%; margin-bottom: 0.75rem; }

/* -------- Header -------- */
.site-header {
  position: sticky;
  top: 0;
  background: var(--black);
  color: var(--white);
  z-index: 50;
  border-bottom: 3px solid var(--yellow);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
  gap: 1rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--white);
}
.brand:hover { color: var(--yellow); }
.brand-logo {
  height: 48px;
  width: auto;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-weight: 800; font-size: 1.05rem; }
.brand-tag { font-size: 0.75rem; color: var(--yellow); letter-spacing: 0.5px; }

.nav { display: flex; align-items: center; gap: 1.5rem; }
.nav a { color: var(--white); font-weight: 600; }
.nav a:hover { color: var(--yellow); }
.nav a.active { color: var(--yellow); }

/* Nav CTA button (e.g. "Free Quote") - override generic .nav a styles */
.nav a.btn {
  background: var(--yellow);
  color: var(--black);
  border-color: var(--yellow);
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius);
  margin-left: 0.5rem;
  box-shadow: 0 2px 10px rgba(255, 204, 0, 0.25);
}
.nav a.btn:hover {
  background: var(--yellow-dark);
  border-color: var(--yellow-dark);
  color: var(--black);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(255, 204, 0, 0.35);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 26px; height: 3px; background: var(--yellow); border-radius: 2px;
}

/* -------- Hero -------- */
.hero {
  position: relative;
  background-color: var(--black);
  background-image:
    linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.92) 0%,
      rgba(0, 0, 0, 0.85) 35%,
      rgba(0, 0, 0, 0.55) 60%,
      rgba(0, 0, 0, 0.25) 85%,
      rgba(0, 0, 0, 0.1) 100%
    ),
    url("assets/hero.webp");
  background-size: cover, cover;
  background-position: center, center right;
  background-repeat: no-repeat, no-repeat;
  color: var(--white);
  padding: 6rem 0 5rem;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.25) 0%, transparent 30%, transparent 70%, rgba(0,0,0,0.4) 100%),
    radial-gradient(circle at 85% 30%, rgba(255, 204, 0, 0.18), transparent 55%);
  pointer-events: none;
}
.hero-content {
  position: relative;
}
.hero-tagline {
  display: inline-block;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  font-style: italic;
  font-weight: 700;
  color: var(--black);
  background: var(--yellow);
  padding: 0.4rem 1rem;
  border-radius: 999px;
  margin: 0 0 1.25rem;
  letter-spacing: 0.3px;
  box-shadow: 0 4px 14px rgba(255, 204, 0, 0.25);
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  margin: 0 0 1rem;
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -0.5px;
}
.hero h1::after {
  content: "";
  display: block;
  width: 80px; height: 5px;
  background: var(--yellow);
  margin-top: 1rem;
  border-radius: 4px;
}
.hero-sub {
  font-size: 1.15rem;
  color: #e8e8e8;
  margin: 0 0 1.75rem;
  max-width: 820px;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}
.hero-badges {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  padding: 0; margin: 0;
  color: var(--yellow);
  font-weight: 600;
  font-size: 0.95rem;
}

/* -------- Sections -------- */
.section {
  padding: 5rem 0;
}
.section-alt {
  background: var(--gray-100);
}
.section-dark {
  background: var(--black);
  color: var(--white);
}
.section-dark .section-title { color: var(--yellow); }
.section-dark .section-title::after { background: var(--yellow); }

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  margin: 0 0 0.75rem;
  font-weight: 800;
  position: relative;
}
.section-title::after {
  content: "";
  display: block;
  width: 56px; height: 4px;
  background: var(--yellow);
  border-radius: 3px;
  margin-top: 0.6rem;
}
.section-lead {
  color: var(--gray-700);
  margin: 0 0 2.5rem;
  font-size: 1.1rem;
}
.section-dark .section-lead { color: #ccc; }

/* -------- Services -------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.25rem;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--yellow);
}
.service-icon {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}
.service-card h3 {
  margin: 0.25rem 0 0.5rem;
  font-size: 1.2rem;
}
.service-card p {
  margin: 0;
  color: var(--gray-700);
}

/* -------- About -------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 3rem;
  align-items: center;
}
.about-grid p { color: var(--gray-700); }
.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.stat {
  background: var(--black);
  color: var(--white);
  padding: 1.5rem 1rem;
  border-radius: var(--radius-lg);
  text-align: center;
  border-bottom: 4px solid var(--yellow);
}
.stat strong {
  display: block;
  font-size: 1.8rem;
  color: var(--yellow);
  font-weight: 900;
}
.stat span {
  font-size: 0.9rem;
  color: #ddd;
}

/* -------- Gallery -------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.gallery-cta {
  text-align: center;
  margin-top: 2.5rem;
}

/* -------- Page Hero (sub-pages) -------- */
.page-hero {
  background: var(--black);
  color: var(--white);
  padding: 4rem 0 3rem;
  border-bottom: 4px solid var(--yellow);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 90% 30%, rgba(255, 204, 0, 0.18), transparent 55%);
  pointer-events: none;
}
.page-hero .container { position: relative; }
.page-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  margin: 0 0 0.75rem;
  font-weight: 900;
  letter-spacing: -0.5px;
}
.page-hero h1::after {
  content: "";
  display: block;
  width: 70px; height: 4px;
  background: var(--yellow);
  margin-top: 0.85rem;
  border-radius: 4px;
}
.page-hero-sub {
  font-size: 1.1rem;
  color: #ddd;
  margin: 0;
  max-width: 720px;
}
.gallery-loading {
  grid-column: 1/-1;
  text-align: center;
  color: var(--gray-500);
  padding: 2rem;
}
.job-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition);
}
.job-card:hover { transform: translateY(-4px); }
.job-thumbs {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 3px;
  background: var(--black);
  aspect-ratio: 4 / 3;
}
.job-thumbs.single { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.job-thumbs.double { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr; }
.job-thumb {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: var(--gray-100);
}
.job-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.job-thumbs > .job-thumb:first-child { grid-row: 1 / -1; }
.job-thumbs.single > .job-thumb:first-child { grid-row: auto; }
.job-thumb:hover img { transform: scale(1.06); }
.job-thumb-more {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  color: var(--yellow);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}
.job-info {
  padding: 1.1rem 1.25rem 1.25rem;
}
.job-date {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: var(--yellow);
  color: var(--black);
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  margin-bottom: 0.65rem;
}
.job-title {
  margin: 0 0 0.4rem;
  font-size: 1.1rem;
}
.job-desc {
  margin: 0;
  color: var(--gray-900);
  font-size: 1rem;
  line-height: 1.5;
}

/* -------- Lightbox -------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 1rem;
}
.lightbox.open { display: flex; }
.lightbox-img {
  max-width: 92vw;
  max-height: 82vh;
  border-radius: 6px;
  box-shadow: var(--shadow-lg);
}
.lightbox-caption {
  position: absolute;
  bottom: 1rem; left: 0; right: 0;
  text-align: center;
  color: var(--white);
  padding: 0 1rem;
  font-size: 0.95rem;
}
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: rgba(255,204,0,0.9);
  color: var(--black);
  border: 0;
  width: 48px; height: 48px;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover { background: var(--yellow); }
.lightbox-close { top: 1rem; right: 1rem; }
.lightbox-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 1rem; top: 50%; transform: translateY(-50%); }

/* -------- Contact -------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 3rem;
  align-items: start;
}
.contact-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
}
.contact-list li {
  padding: 1rem 0;
  border-bottom: 1px solid #2a2a2a;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.contact-list li:last-child { border-bottom: 0; }
.contact-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--yellow);
  font-weight: 700;
}
.contact-list a { color: var(--white); font-size: 1.15rem; font-weight: 600; }
.contact-list a:hover { color: var(--yellow); }
.contact-sub { font-size: 0.85rem; color: #aaa; }
.contact-cta {
  background: var(--black-soft);
  border: 2px solid var(--yellow);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
}

/* -------- Footer -------- */
.site-footer {
  background: var(--black);
  color: #aaa;
  padding: 1.5rem 0;
  border-top: 3px solid var(--yellow);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.9rem;
}
.footer-brand { display: flex; align-items: center; gap: 0.75rem; }
.footer-logo { height: 32px; width: auto; }
.footer-links { display: flex; gap: 1.25rem; }
.footer-links a { color: var(--yellow); font-weight: 600; }

/* -------- Responsive -------- */
@media (max-width: 820px) {
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--black); flex-direction: column; padding: 1rem 1.25rem; gap: 0.75rem; border-bottom: 3px solid var(--yellow); }
  .nav.open { display: flex; }
  .nav-toggle { display: flex; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero { padding: 4rem 0 3.5rem; }
  .hero {
    background-image:
      linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.85) 0%,
        rgba(0, 0, 0, 0.7) 50%,
        rgba(0, 0, 0, 0.5) 100%
      ),
      url("assets/hero.webp");
    background-position: center, center;
  }
  .section { padding: 3.5rem 0; }
}

@media (max-width: 480px) {
  .brand-tag { display: none; }
  .brand-name { font-size: 0.95rem; }
  .brand-logo { height: 40px; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }
}

/* ============================================
   Skip link (accessibility)
   ============================================ */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--yellow);
  color: var(--black);
  padding: 0.75rem 1.25rem;
  font-weight: 700;
  border-radius: 6px;
  z-index: 1000;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 1rem;
  outline: 3px solid var(--black);
}

/* ============================================
   Service Area list
   ============================================ */
.area-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.area-list li {
  background: var(--yellow-soft);
  color: var(--black);
  border: 1px solid var(--yellow);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
}
.area-note {
  color: var(--gray-700);
  font-size: 0.95rem;
}
.area-note a {
  color: var(--black);
  font-weight: 700;
  text-decoration: underline;
}

/* ============================================
   Testimonials
   ============================================ */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.testimonial {
  background: #fff;
  border: 1px solid var(--gray-300);
  border-left: 4px solid var(--yellow);
  border-radius: 8px;
  padding: 1.5rem 1.5rem 1.25rem;
  margin: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.testimonial blockquote {
  margin: 0;
  padding: 0;
  border: 0;
  position: relative;
}
.testimonial blockquote p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--gray-900);
  font-style: italic;
}
.testimonial blockquote p::before {
  content: "\201C";
  display: inline;
  color: var(--yellow);
  font-weight: 700;
  font-size: 1.2em;
  margin-right: 0.1em;
}
.testimonial figcaption {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-size: 0.9rem;
  color: var(--gray-700);
}
.testimonial figcaption strong {
  color: var(--black);
  font-size: 0.95rem;
}

/* ============================================
   FAQ
   ============================================ */
.faq-list {
  max-width: 820px;
  margin: 2rem auto 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.faq-item {
  background: #fff;
  border: 1px solid var(--gray-300);
  border-radius: 8px;
  padding: 0;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.faq-item[open] {
  border-color: var(--yellow);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 1rem 1.25rem;
  font-weight: 600;
  color: var(--black);
  font-size: 1.05rem;
  position: relative;
  padding-right: 3rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--yellow-dark);
  font-weight: 700;
  line-height: 1;
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after {
  content: "\2013";
  transform: translateY(-50%) rotate(0deg);
}
.faq-item summary:hover {
  background: var(--yellow-soft);
}
.faq-item p {
  margin: 0;
  padding: 0 1.25rem 1.25rem;
  color: var(--gray-700);
  line-height: 1.6;
}
.faq-item p a {
  color: var(--black);
  font-weight: 600;
  text-decoration: underline;
}
