/* =============================================================================
   COMPONENTS.CSS — UE Landworks
   Reusable component styles. All colors via global.css custom properties.
   Requires global.css to be loaded first.
   ============================================================================= */


/* -----------------------------------------------------------------------------
   BUTTONS — PRIMARY
   Orange background, black text, Barlow Condensed 700, clip-path parallelogram.
   ----------------------------------------------------------------------------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.875rem var(--space-8);
  min-height: 48px;

  background-color: var(--orange);
  color: var(--black);

  font-family: var(--font-ui);
  font-size: var(--text-base);
  font-weight: 700;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  white-space: nowrap;

  clip-path: polygon(var(--clip-md) 0%, 100% 0%, calc(100% - var(--clip-md)) 100%, 0% 100%);
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: background-color var(--transition-fast),
              color var(--transition-fast),
              box-shadow var(--transition-fast);
}

.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background-color: var(--black);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.btn-primary:hover {
  background-color: var(--orange-light);
  box-shadow: var(--orange-glow-sm);
}

.btn-primary:active {
  background-color: var(--orange-dark);
  box-shadow: none;
}

.btn-primary:disabled,
.btn-primary[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

/* Large size variant */
.btn-primary--lg {
  padding: 1.125rem var(--space-10);
  font-size: var(--text-lg);
  clip-path: polygon(var(--clip-lg) 0%, 100% 0%, calc(100% - var(--clip-lg)) 100%, 0% 100%);
}

/* Small size variant */
.btn-primary--sm {
  padding: 0.625rem var(--space-6);
  font-size: var(--text-sm);
  clip-path: polygon(var(--clip-sm) 0%, 100% 0%, calc(100% - var(--clip-sm)) 100%, 0% 100%);
}


/* -----------------------------------------------------------------------------
   BUTTONS — SECONDARY
   No background, white text, bottom-border underline, arrow suffix on hover.
   ----------------------------------------------------------------------------- */
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.5rem 0;
  min-height: 48px;

  background: none;
  color: var(--white);
  border: none;
  border-bottom: 1px solid var(--gray);

  font-family: var(--font-ui);
  font-size: var(--text-base);
  font-weight: 600;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  cursor: pointer;
  position: relative;
  transition: color var(--transition-fast),
              border-color var(--transition-fast);
}

.btn-secondary .btn-secondary__arrow {
  display: inline-block;
  transition: transform var(--transition-fast);
  opacity: 0.5;
}

.btn-secondary:hover {
  color: var(--orange);
  border-color: var(--orange);
}

.btn-secondary:hover .btn-secondary__arrow {
  transform: translateX(4px);
  opacity: 1;
}


/* -----------------------------------------------------------------------------
   BUTTONS — NAV CTA
   The "Free Quote" button in the navbar. Slightly more compact than btn-primary.
   ----------------------------------------------------------------------------- */
.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem var(--space-6);
  min-height: 40px;

  background-color: var(--orange);
  color: var(--black);

  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  white-space: nowrap;

  clip-path: polygon(var(--clip-sm) 0%, 100% 0%, calc(100% - var(--clip-sm)) 100%, 0% 100%);
  border: none;
  cursor: pointer;
  transition: background-color var(--transition-fast),
              box-shadow var(--transition-fast);
}

.nav-cta:hover {
  background-color: var(--orange-light);
  box-shadow: var(--orange-glow-sm);
}

.nav-cta:active {
  background-color: var(--orange-dark);
}


/* -----------------------------------------------------------------------------
   SECTION LABEL
   Small-caps orange label with 24px left rule line — precedes every H2.
   Usage: <p class="section-label">Our Services</p>
   ----------------------------------------------------------------------------- */
.section-label {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);

  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--orange);
}

.section-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--orange);
  flex-shrink: 0;
}


/* -----------------------------------------------------------------------------
   SERVICE CARD
   Numbered card: icon + name + description + hover arrow.
   Card 01 (Forestry Mulching) receives the --featured modifier.
   ----------------------------------------------------------------------------- */
.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-8) var(--space-6);

  background-color: var(--dark2);
  border: 1px solid var(--gray);
  overflow: hidden;
  cursor: pointer;

  transition: border-color var(--transition-base),
              transform var(--transition-base),
              box-shadow var(--transition-base);
}

/* Diagonal orange gradient overlay — fades in on hover */
.service-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(244, 123, 0, 0.06) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--transition-base);
  pointer-events: none;
}

.service-card:hover::after {
  opacity: 1;
}

/* Top accent bar — slides in on hover via scaleX */
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-base);
}

.service-card:hover {
  border-color: rgba(244, 123, 0, 0.3);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.service-card:hover::before {
  transform: scaleX(1);
}

/* Card number — e.g. "01" */
.service-card__number {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  letter-spacing: var(--tracking-wide);
  color: var(--text-muted);
  line-height: 1;
  transition: color var(--transition-base);
}

.service-card:hover .service-card__number {
  color: var(--orange);
}

/* Icon box — clip-path parallelogram wrapper */
.service-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background-color: var(--gray);
  color: var(--orange);
  clip-path: polygon(var(--clip-sm) 0%, 100% 0%, calc(100% - var(--clip-sm)) 100%, 0% 100%);
  flex-shrink: 0;
  transition: background-color var(--transition-base);
}

.service-card:hover .service-card__icon {
  background-color: var(--orange);
  color: var(--black);
}

.service-card__name {
  font-family: var(--font-ui);
  font-size: var(--text-lg);
  font-weight: 700;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--white);
}

.service-card__desc {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 400;
  line-height: var(--leading-normal);
  color: var(--text-muted);
  flex: 1;
}

/* Arrow CTA at card bottom */
.service-card__arrow {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: auto;
  transition: color var(--transition-fast);
}

.service-card__arrow span {
  display: inline-block;
  transition: transform var(--transition-fast);
}

.service-card:hover .service-card__arrow {
  color: var(--orange);
}

.service-card:hover .service-card__arrow span {
  transform: translateX(4px);
}

/* Featured variant — card 01 (Forestry Mulching) */
.service-card--featured {
  background-color: var(--dark2);
  border-color: rgba(244, 123, 0, 0.2);
  background-image: radial-gradient(ellipse at 100% 0%, rgba(244, 123, 0, 0.07), transparent 60%);
}

.service-card--featured::before {
  transform: scaleX(0.4);
  opacity: 0.6;
}

.service-card--featured .service-card__number {
  color: var(--orange);
  opacity: 0.7;
}

.service-card--featured:hover {
  border-color: rgba(244, 123, 0, 0.45);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), var(--orange-glow-sm);
}

.service-card--featured:hover::before {
  transform: scaleX(1);
  opacity: 1;
}


/* -----------------------------------------------------------------------------
   STAT ITEM
   Large Bebas number + small-caps label. Used in the 4-column stats strip.
   ----------------------------------------------------------------------------- */
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  text-align: center;
  padding: var(--space-6);
}

.stat-item__value {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, var(--text-4xl));
  letter-spacing: var(--tracking-wider);
  color: var(--orange);
  line-height: 1;
}

.stat-item__label {
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--text-muted);
  max-width: 14ch;
  line-height: var(--leading-snug);
}

/* Dividers between stats — use border-right on all but last */
.stat-item + .stat-item {
  border-left: 1px solid var(--gray);
}

@media (max-width: 767px) {
  .stat-item + .stat-item {
    border-left: none;
    border-top: 1px solid var(--gray);
  }
}


/* -----------------------------------------------------------------------------
   TESTIMONIAL CARD
   Stars + quote text + avatar + name + county.
   ----------------------------------------------------------------------------- */
.testimonial-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-8) var(--space-6);

  background-color: var(--dark2);
  border: 1px solid var(--gray);
  position: relative;
  overflow: hidden;

  transition: border-color var(--transition-base),
              box-shadow var(--transition-base);
}

.testimonial-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-base);
}

.testimonial-card:hover {
  border-color: rgba(244, 123, 0, 0.3);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

.testimonial-card:hover::before {
  transform: scaleX(1);
}

/* Star rating row */
.testimonial-card__stars {
  display: flex;
  gap: var(--space-1);
  color: var(--orange);
  font-size: var(--text-base);
}

/* Opening quotemark */
.testimonial-card__quote-mark {
  font-family: var(--font-display);
  font-size: 3.5rem;
  line-height: 0.6;
  color: var(--orange);
  opacity: 0.35;
  user-select: none;
  flex-shrink: 0;
}

.testimonial-card__body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: var(--leading-relaxed);
  color: var(--white);
  flex: 1;
  font-style: italic;
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-top: auto;
  padding-top: var(--space-4);
  border-top: 1px solid var(--gray);
}

.testimonial-card__name {
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--white);
}

.testimonial-card__county {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  color: var(--text-muted);
}


/* -----------------------------------------------------------------------------
   AUTHOR AVATAR
   1:1 ratio circle — used in testimonial cards and team section.
   ----------------------------------------------------------------------------- */
.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  background-color: var(--gray);
  border: 2px solid var(--gray);
  flex-shrink: 0;
  overflow: hidden;
}

/* Placeholder state when no real photo provided */
.author-avatar--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--dark2) 0%, var(--gray) 100%);
  color: var(--text-muted);
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}


/* -----------------------------------------------------------------------------
   PROCESS STEP
   Numbered clip-path circle + title + description. 4-step horizontal timeline.
   ----------------------------------------------------------------------------- */
.process-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-4);
  flex: 1;
  position: relative;
}

/* Dashed connector line between steps (all but last) */
.process-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 28px; /* vertically centered on the number circle */
  left: calc(50% + 36px);
  right: calc(-50% + 36px);
  height: 1px;
  border-top: 2px dashed var(--orange);
  opacity: 0.35;
}

/* Step number — clip-path parallelogram circle */
.process-step__number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  flex-shrink: 0;

  background-color: var(--dark2);
  border: 2px solid var(--orange);
  color: var(--orange);

  font-family: var(--font-display);
  font-size: var(--text-xl);
  letter-spacing: var(--tracking-wide);
  line-height: 1;

  clip-path: polygon(var(--clip-sm) 0%, 100% 0%, calc(100% - var(--clip-sm)) 100%, 0% 100%);
  position: relative;
  z-index: var(--z-base);
}

.process-step__title {
  font-family: var(--font-ui);
  font-size: var(--text-base);
  font-weight: 700;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--white);
}

.process-step__desc {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: var(--leading-normal);
  max-width: 20ch;
}

@media (max-width: 767px) {
  .process-step:not(:last-child)::after {
    display: none;
  }
}


/* -----------------------------------------------------------------------------
   CTA BAND
   Full-width orange section: headline left, button + phone right.
   ----------------------------------------------------------------------------- */
.cta-band {
  background-color: var(--orange);
  padding-block: var(--space-16);
  position: relative;
  overflow: hidden;
}

/* Subtle dark texture overlay on orange */
.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(ellipse at 0% 50%, rgba(0, 0, 0, 0.1), transparent 60%),
                    radial-gradient(ellipse at 100% 50%, rgba(0, 0, 0, 0.08), transparent 60%);
  pointer-events: none;
}

.cta-band__inner {
  position: relative;
  z-index: var(--z-base);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
  flex-wrap: wrap;
}

.cta-band__headline {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, var(--text-4xl));
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--black);
  max-width: 18ch;
  line-height: var(--leading-tight);
}

.cta-band__actions {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  flex-wrap: wrap;
}

/* Dark button variant — used on orange backgrounds */
.btn-primary--dark {
  background-color: var(--black);
  color: var(--white);
}

.btn-primary--dark:hover {
  background-color: var(--dark);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.cta-band__phone {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.cta-band__phone-label {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: rgba(13, 13, 13, 0.6);
}

.cta-band__phone-number {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  letter-spacing: var(--tracking-wide);
  color: var(--black);
  transition: opacity var(--transition-fast);
}

.cta-band__phone-number:hover {
  opacity: 0.75;
}

@media (max-width: 767px) {
  .cta-band__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}


/* -----------------------------------------------------------------------------
   MARQUEE BAR
   Orange background strip with infinite-scroll service names.
   Content is doubled in HTML to create seamless loop — see animations.css.
   ----------------------------------------------------------------------------- */
.marquee-bar {
  background-color: var(--orange);
  padding-block: var(--space-4);
  overflow: hidden;
  position: relative;
  z-index: var(--z-base);
}

.marquee-bar__track {
  display: flex;
  align-items: center;
  width: max-content;
  /* Animation class applied: .marquee-scroll (defined in animations.css) */
}

.marquee-bar__item {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  padding-inline: var(--space-6);
  white-space: nowrap;

  font-family: var(--font-display);
  font-size: var(--text-xl);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--black);
}

/* Bullet separator between items */
.marquee-bar__item::after {
  content: '◆';
  font-size: 0.5rem;
  opacity: 0.5;
  flex-shrink: 0;
}

.marquee-bar__item:last-child::after {
  display: none;
}


/* -----------------------------------------------------------------------------
   MODAL BACKDROP
   Full-screen dark overlay behind the quote modal.
   ----------------------------------------------------------------------------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  background-color: rgba(13, 13, 13, 0.85);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);

  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);

  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-base),
              visibility var(--transition-base);
}

.modal-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

@media (max-width: 767px) {
  .modal-backdrop {
    align-items: flex-end;
    padding: 0;
  }
}


/* -----------------------------------------------------------------------------
   MODAL BOX
   The actual modal container. Dark background, scrollable on mobile.
   ----------------------------------------------------------------------------- */
.modal-box {
  position: relative;
  width: 100%;
  max-width: 640px;
  max-height: 90vh;
  overflow-y: auto;

  background-color: var(--dark);
  border: 1px solid var(--gray);
  padding: var(--space-10) var(--space-8);

  transform: translateY(20px);
  opacity: 0;
  transition: transform var(--transition-base),
              opacity var(--transition-base);

  /* Thin scrollbar styling */
  scrollbar-width: thin;
  scrollbar-color: var(--gray) transparent;
}

.modal-box::-webkit-scrollbar {
  width: 4px;
}

.modal-box::-webkit-scrollbar-track {
  background: transparent;
}

.modal-box::-webkit-scrollbar-thumb {
  background-color: var(--gray);
  border-radius: 0;
}

.modal-backdrop.is-open .modal-box {
  transform: translateY(0);
  opacity: 1;
}

/* Close button */
.modal-box__close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  width: 36px;
  height: 36px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: none;
  border: 1px solid var(--gray);
  color: var(--text-muted);
  cursor: pointer;

  font-size: var(--text-lg);
  line-height: 1;

  clip-path: polygon(var(--clip-sm) 0%, 100% 0%, calc(100% - var(--clip-sm)) 100%, 0% 100%);
  transition: color var(--transition-fast),
              border-color var(--transition-fast);
}

.modal-box__close:hover {
  color: var(--white);
  border-color: var(--text-muted);
}

/* Modal header */
.modal-box__header {
  margin-bottom: var(--space-8);
}

.modal-box__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, var(--text-3xl));
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--white);
  line-height: var(--leading-tight);
  margin-bottom: var(--space-2);
}

.modal-box__subtitle {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: var(--leading-normal);
}

/* Phone alternative at top of form */
.modal-box__phone-alt {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  margin-bottom: var(--space-6);
  background-color: var(--dark2);
  border-left: 3px solid var(--orange);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.modal-box__phone-alt a {
  color: var(--orange);
  font-weight: 500;
  transition: color var(--transition-fast);
}

.modal-box__phone-alt a:hover {
  color: var(--orange-light);
}

/* Success / error state */
.modal-box__success {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-4);
  padding: var(--space-12) var(--space-6);
}

.modal-box__success.is-visible {
  display: flex;
}

.modal-box__success-icon {
  font-size: var(--text-4xl);
  color: var(--orange);
}

.modal-box__success-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--white);
}

.modal-box__success-body {
  font-size: var(--text-base);
  color: var(--text-muted);
  line-height: var(--leading-relaxed);
}

.modal-box__error-msg {
  display: none;
  padding: var(--space-3) var(--space-4);
  margin-top: var(--space-4);
  background-color: rgba(244, 123, 0, 0.08);
  border: 1px solid rgba(244, 123, 0, 0.3);
  color: var(--orange);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
}

.modal-box__error-msg.is-visible {
  display: block;
}

@media (max-width: 767px) {
  .modal-box {
    max-width: 100%;
    max-height: 96vh;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-bottom: none;
    padding: var(--space-8) var(--space-6);
  }
}


/* -----------------------------------------------------------------------------
   FORM INPUTS
   Text, email, tel, select, textarea, checkbox group.
   Orange focus outline; error state turns border orange.
   ----------------------------------------------------------------------------- */
.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
}

.form-label {
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--white);
}

.form-label .form-label__required {
  color: var(--orange);
  margin-left: var(--space-1);
}

.form-input {
  width: 100%;
  padding: 0.75rem var(--space-4);
  min-height: 48px;

  background-color: var(--dark2);
  border: 1px solid var(--gray);
  color: var(--white);

  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: var(--leading-normal);

  appearance: none;
  -webkit-appearance: none;
  border-radius: 0; /* enforce square corners */

  transition: border-color var(--transition-fast),
              outline var(--transition-fast);
}

.form-input::placeholder {
  color: var(--text-muted);
  font-style: italic;
}

.form-input:focus,
.form-input:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 0;
  border-color: var(--orange);
}

/* Error state — triggered by JS after failed validation */
.form-input.is-error {
  border-color: var(--orange);
  background-color: rgba(244, 123, 0, 0.04);
}

/* Shake animation applied by JS on validation fail */
.form-input.shake {
  animation: input-shake 300ms ease;
}

@keyframes input-shake {
  0%, 100% { transform: translateX(0); }
  20%       { transform: translateX(-6px); }
  40%       { transform: translateX(6px); }
  60%       { transform: translateX(-4px); }
  80%       { transform: translateX(4px); }
}

/* Inline field error message */
.form-error {
  display: none;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  color: var(--orange);
  margin-top: var(--space-1);
}

.form-error.is-visible {
  display: block;
}

/* Select — custom dropdown arrow */
select.form-input {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888888' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-4) center;
  padding-right: var(--space-10);
}

select.form-input:focus {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23F47B00' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
}

/* Textarea */
textarea.form-input {
  min-height: 120px;
  resize: vertical;
  cursor: text;
}

/* Checkbox group — "Service Needed" multi-select */
.form-checkbox-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2) var(--space-4);
}

@media (max-width: 479px) {
  .form-checkbox-group {
    grid-template-columns: 1fr;
  }
}

.form-checkbox {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  cursor: pointer;
  min-height: 36px;
}

.form-checkbox input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  background-color: var(--dark2);
  border: 1px solid var(--gray);
  clip-path: polygon(3px 0%, 100% 0%, calc(100% - 3px) 100%, 0% 100%);
  cursor: pointer;
  transition: background-color var(--transition-fast),
              border-color var(--transition-fast);
  position: relative;
}

.form-checkbox input[type="checkbox"]:checked {
  background-color: var(--orange);
  border-color: var(--orange);
}

/* Custom checkmark via ::after */
.form-checkbox input[type="checkbox"]::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='10' viewBox='0 0 12 10'%3E%3Cpath d='M1 5l3.5 3.5L11 1' stroke='%230D0D0D' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.form-checkbox input[type="checkbox"]:checked::after {
  opacity: 1;
}

.form-checkbox input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

.form-checkbox__label {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--white);
  user-select: none;
  line-height: var(--leading-snug);
}

/* Two-column form row */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

@media (max-width: 559px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* Submit button — full width inside modal */
.form-submit {
  width: 100%;
  margin-top: var(--space-6);
  clip-path: polygon(var(--clip-md) 0%, 100% 0%, calc(100% - var(--clip-md)) 100%, 0% 100%);
}


/* -----------------------------------------------------------------------------
   GALLERY ITEM
   Image container with hover overlay showing project name.
   ----------------------------------------------------------------------------- */
.gallery-item {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--dark) 0%, #2a1500 100%);
  cursor: pointer;
}

/* Maintain aspect ratio */
.gallery-item__media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-slow);
}

/* Hover overlay */
.gallery-item__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13, 13, 13, 0.9) 0%, rgba(13, 13, 13, 0.2) 50%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-5);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.gallery-item:hover .gallery-item__media {
  transform: scale(1.04);
}

.gallery-item:hover .gallery-item__overlay {
  opacity: 1;
}

.gallery-item__name {
  font-family: var(--font-ui);
  font-size: var(--text-base);
  font-weight: 700;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: var(--space-1);
}

.gallery-item__meta {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  color: var(--text-muted);
}

/* Image placeholder — used until real photography provided */
.gallery-item__placeholder {
  width: 100%;
  height: 100%;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  background: linear-gradient(135deg, var(--dark) 0%, #2a1500 100%);
}

.gallery-item__placeholder-icon {
  color: rgba(244, 123, 0, 0.2);
}

.gallery-item__placeholder-label {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--text-muted);
  opacity: 0.6;
}


/* -----------------------------------------------------------------------------
   MOBILE CTA BAR
   Sticky bottom bar on mobile: phone number + quote button.
   Hidden on desktop (>= 768px).
   ----------------------------------------------------------------------------- */
.mobile-cta-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: var(--z-nav);

  display: flex;
  align-items: stretch;
  height: 60px;

  background-color: var(--dark);
  border-top: 1px solid var(--gray);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.5);
}

.mobile-cta-bar__phone {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);

  color: var(--white);
  font-family: var(--font-ui);
  font-size: var(--text-base);
  font-weight: 700;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.mobile-cta-bar__phone:hover {
  color: var(--orange);
}

.mobile-cta-bar__phone svg,
.mobile-cta-bar__phone .icon {
  color: var(--orange);
  flex-shrink: 0;
}

.mobile-cta-bar__quote {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;

  background-color: var(--orange);
  color: var(--black);
  border: none;
  cursor: pointer;

  font-family: var(--font-ui);
  font-size: var(--text-base);
  font-weight: 700;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  transition: background-color var(--transition-fast);
}

.mobile-cta-bar__quote:hover {
  background-color: var(--orange-light);
}

/* Hide on desktop */
@media (min-width: 768px) {
  .mobile-cta-bar {
    display: none;
  }
}

/* Nudge page content up on mobile to avoid overlap with bar */
@media (max-width: 767px) {
  body {
    padding-bottom: 60px;
  }
}


/* =============================================================================
   PAGE LAYOUT — Grid and flex rules for index.html sections.
   No color, font, or brand values here — layout only.
   ============================================================================= */


/* -----------------------------------------------------------------------------
   NAV
   ----------------------------------------------------------------------------- */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-nav);
  transition: background-color var(--transition-base),
              backdrop-filter var(--transition-base);
}

.site-nav--scrolled {
  background-color: rgba(13, 13, 13, 0.98);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.site-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: var(--space-6);
}

.site-nav__logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.site-nav__logo-img {
  filter: var(--logo-glow);
}

/* Desktop menu */
.site-nav__menu {
  display: flex;
  align-items: center;
  flex: 1;
  justify-content: center;
}

.site-nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  list-style: none;
}

.site-nav__link {
  color: var(--white);
  opacity: 0.8;
  transition: color var(--transition-fast), opacity var(--transition-fast);
}

.site-nav__link:hover,
.site-nav__link.is-active {
  color: var(--orange);
  opacity: 1;
}

.site-nav__actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-shrink: 0;
}

/* Hamburger — hidden on desktop */
.site-nav__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-2);
}

.site-nav__hamburger-bar {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--white);
  transition: transform var(--transition-base), opacity var(--transition-fast);
}

/* Hamburger → X when open */
.site-nav--open .site-nav__hamburger-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.site-nav--open .site-nav__hamburger-bar:nth-child(2) {
  opacity: 0;
}
.site-nav--open .site-nav__hamburger-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav */
@media (max-width: 767px) {
  .site-nav__hamburger {
    display: flex;
  }

  .site-nav__menu {
    position: fixed;
    inset: 0;
    z-index: calc(var(--z-nav) - 1);
    background-color: var(--black);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--space-8);
    transform: translateX(100%);
    transition: transform var(--transition-base);
    pointer-events: none;
  }

  .site-nav__menu.nav-menu--open {
    transform: translateX(0);
    pointer-events: auto;
  }

  .site-nav__links {
    flex-direction: column;
    gap: var(--space-6);
    text-align: center;
  }

  .site-nav__link {
    font-size: var(--text-xl);
  }
}


/* -----------------------------------------------------------------------------
   HERO
   ----------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  background-color: var(--black);
  padding-top: 72px; /* clear the fixed nav */
}

.hero__trees,
.hero__glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero__trees {
  z-index: 0;
}

.hero__trees-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.hero__glow {
  z-index: 1;
}

.hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  min-height: calc(100vh - 72px);
  padding-block: var(--space-20);
}

.hero__copy {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.hero__headline {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.hero__desc {
  max-width: 48ch;
  color: var(--text-muted);
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  flex-wrap: wrap;
}

.hero__phone {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.hero__phone:hover {
  color: var(--orange);
}

.hero__logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__logo-badge {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__logo-img {
  width: 100%;
  max-width: 360px;
  height: auto;
  filter: var(--logo-glow);
}

@media (max-width: 1023px) {
  .hero__inner {
    gap: 48px;
  }

  .hero__logo-img {
    max-width: 280px;
  }
}

@media (max-width: 767px) {
  .hero__inner {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-block: var(--space-16) var(--space-12);
    gap: var(--space-10);
  }

  .hero__logo-wrap {
    display: none;
  }
}


/* -----------------------------------------------------------------------------
   STATS STRIP
   ----------------------------------------------------------------------------- */
.stats-strip__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 767px) {
  .stats-strip__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Reset the left-border dividers from components.css and use a grid gap instead */
  .stat-item + .stat-item {
    border-left: none;
  }

  .stat-item:nth-child(2n) {
    border-left: 1px solid var(--gray);
  }

  .stat-item:nth-child(3),
  .stat-item:nth-child(4) {
    border-top: 1px solid var(--gray);
  }
}


/* -----------------------------------------------------------------------------
   SERVICES GRID
   ----------------------------------------------------------------------------- */
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.services__footer {
  margin-top: var(--space-10);
}

@media (max-width: 1023px) {
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .services__grid {
    grid-template-columns: 1fr;
  }
}


/* -----------------------------------------------------------------------------
   WHY CHOOSE US
   ----------------------------------------------------------------------------- */
.why-us__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.why-us__image {
  aspect-ratio: 4 / 3;
  width: 100%;
  min-height: 320px;
}

.why-us__media {
  position: relative;
}

.why-us__badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background-color: var(--orange);
  color: var(--black);
  padding: var(--space-4) var(--space-6);
  clip-path: polygon(var(--clip-md) 0%, 100% 0%, calc(100% - var(--clip-md)) 100%, 0% 100%);
  line-height: var(--leading-tight);
  text-align: center;
}

.why-us__copy {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.why-us__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  list-style: none;
}

.why-us__item {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
}

.why-us__item-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background-color: rgba(244, 123, 0, 0.12);
  color: var(--orange);
  flex-shrink: 0;
  clip-path: polygon(var(--clip-sm) 0%, 100% 0%, calc(100% - var(--clip-sm)) 100%, 0% 100%);
}

@media (max-width: 1023px) {
  .why-us__inner {
    gap: 48px;
  }
}

@media (max-width: 767px) {
  .why-us__inner {
    grid-template-columns: 1fr;
    gap: var(--space-12);
  }

  .why-us__badge {
    right: 0;
    bottom: -16px;
  }
}


/* -----------------------------------------------------------------------------
   PROCESS STEPS
   ----------------------------------------------------------------------------- */
.process__steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  position: relative;
  list-style: none;
  margin-top: var(--space-12);
}

.section-header--center {
  text-align: center;
}

.section-header--center .section-label {
  justify-content: center;
}

@media (max-width: 767px) {
  .process__steps {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-10);
  }
}

@media (max-width: 479px) {
  .process__steps {
    grid-template-columns: 1fr;
  }
}


/* -----------------------------------------------------------------------------
   GALLERY GRID
   Asymmetric: 2fr left column spans 2 rows, right 2×2 grid of short items.
   ----------------------------------------------------------------------------- */
.gallery__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 300px 300px;
  gap: 3px;
}

.gallery__item--tall {
  grid-row: span 2;
}

.gallery__item--short {
  grid-row: span 1;
}

.gallery__item--wide {
  grid-column: span 2;
  grid-row: span 1;
}

.gallery__footer {
  margin-top: var(--space-10);
}

/* Ensure placeholder fills the full grid cell */
.gallery__item--tall .gallery-item__placeholder,
.gallery__item--short .gallery-item__placeholder {
  height: 100%;
  min-height: unset;
}

@media (max-width: 767px) {
  .gallery__grid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    gap: 3px;
  }

  .gallery__item--tall,
  .gallery__item--short,
  .gallery__item--wide {
    grid-row: span 1;
    grid-column: span 1;
    height: 240px;
  }
}


/* -----------------------------------------------------------------------------
   TESTIMONIALS
   ----------------------------------------------------------------------------- */
.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 1023px) {
  .testimonials__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .testimonials__grid {
    grid-template-columns: 1fr;
  }
}


/* -----------------------------------------------------------------------------
   CTA BAND (layout override — flex rules live here, brand colors in components)
   ----------------------------------------------------------------------------- */
.cta-band__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

@media (max-width: 767px) {
  .cta-band__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}


/* -----------------------------------------------------------------------------
   FOOTER
   ----------------------------------------------------------------------------- */
.site-footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  padding-block: var(--space-16);
}

.site-footer__col {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.site-footer__col--brand {
  gap: var(--space-6);
}

.site-footer__logo {
  filter: var(--logo-glow);
}

.site-footer__tagline {
  max-width: 28ch;
}

.site-footer__social {
  display: flex;
  gap: var(--space-4);
}

.site-footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: var(--text-muted);
  border: 1px solid var(--gray);
  clip-path: polygon(var(--clip-sm) 0%, 100% 0%, calc(100% - var(--clip-sm)) 100%, 0% 100%);
  transition: color var(--transition-fast), border-color var(--transition-fast);
}

.site-footer__social-link:hover {
  color: var(--orange);
  border-color: var(--orange);
}

.site-footer__heading {
  color: var(--white);
  margin-bottom: var(--space-2);
}

.site-footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  list-style: none;
}

.site-footer__link {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.site-footer__link:hover {
  color: var(--orange);
}

.site-footer__contact {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  list-style: none;
}

.site-footer__contact-link {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.site-footer__contact-link:hover {
  color: var(--orange);
}

.site-footer__contact-note {
  margin-top: var(--space-2);
  line-height: var(--leading-normal);
}

/* Bottom bar */
.site-footer__bar {
  border-top: 1px solid var(--gray);
}

.site-footer__bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-block: var(--space-5);
}

.site-footer__legal {
  display: flex;
  gap: var(--space-6);
  list-style: none;
}

@media (max-width: 1023px) {
  .site-footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
  }
}

@media (max-width: 767px) {
  .site-footer__inner {
    grid-template-columns: 1fr;
    gap: var(--space-10);
    padding-block: var(--space-12);
  }

  .site-footer__bar-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-3);
  }
}


/* =============================================================================
   SERVICES PAGE LAYOUT
   ============================================================================= */

/* -----------------------------------------------------------------------------
   Page hero (shared across interior pages)
   ----------------------------------------------------------------------------- */
.page-hero {
  position: relative;
  overflow: hidden;
  padding-top: 72px; /* clear fixed nav */
}

.page-hero__glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.page-hero__inner {
  position: relative;
  z-index: 1;
  padding-block: var(--space-16) var(--space-12);
}

.page-hero__copy {
  max-width: 640px;
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.page-hero__desc {
  color: var(--text-muted);
  max-width: 52ch;
}

/* Breadcrumb */
.breadcrumb {
  margin-bottom: var(--space-8);
}

.breadcrumb__list {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  list-style: none;
}

.breadcrumb__link {
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.breadcrumb__link:hover {
  color: var(--orange);
}

.breadcrumb__item--sep {
  color: var(--gray);
}

.breadcrumb__current {
  color: var(--orange);
}


/* -----------------------------------------------------------------------------
   Services intro — 2-column approach + trust badges
   ----------------------------------------------------------------------------- */
.services-intro__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.services-intro__copy {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.services-intro__badges {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

/* Trust badge — icon + text row */
.trust-badge {
  display: flex;
  align-items: flex-start;
  gap: var(--space-5);
  padding: var(--space-6);
  background-color: var(--dark2);
  border: 1px solid var(--gray);
  border-left: 3px solid var(--orange);
}

.trust-badge__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  color: var(--orange);
  background-color: rgba(244, 123, 0, 0.1);
  clip-path: polygon(var(--clip-sm) 0%, 100% 0%, calc(100% - var(--clip-sm)) 100%, 0% 100%);
}

.trust-badge__copy {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.trust-badge__title {
  color: var(--white);
}

@media (max-width: 1023px) {
  .services-intro__inner {
    gap: 48px;
  }
}

@media (max-width: 767px) {
  .services-intro__inner {
    grid-template-columns: 1fr;
    gap: var(--space-12);
  }
}


/* -----------------------------------------------------------------------------
   Services full grid — 2×3 larger cards with ideal-for line
   ----------------------------------------------------------------------------- */
.services-full__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
}

/* Larger card variant — more padding and visible ideal-for line */
.service-card--large {
  padding: var(--space-10) var(--space-8);
}

.service-card__ideal {
  margin-top: auto;
  padding-top: var(--space-3);
  border-top: 1px solid var(--gray);
}

@media (max-width: 767px) {
  .services-full__grid {
    grid-template-columns: 1fr;
  }

  .service-card--large {
    padding: var(--space-8) var(--space-6);
  }
}


/* =============================================================================
   FORESTRY MULCHING SERVICE PAGE LAYOUT
   (shared patterns also used by other service pages)
   ============================================================================= */

/* -----------------------------------------------------------------------------
   Page hero — service variant with actions row
   ----------------------------------------------------------------------------- */
.page-hero--service .page-hero__copy {
  max-width: 720px;
}

.page-hero__actions {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  flex-wrap: wrap;
  margin-top: var(--space-2);
}


/* -----------------------------------------------------------------------------
   Section 2: What it is — 2-column copy + stacked images
   ----------------------------------------------------------------------------- */
.svc-what__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.svc-what__copy {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.svc-what__media {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  position: sticky;
  top: calc(72px + var(--space-6));
}

.svc-what__image {
  width: 100%;
  aspect-ratio: 4 / 3;
}

.svc-what__image--sm {
  aspect-ratio: 16 / 7;
}

@media (max-width: 1023px) {
  .svc-what__inner {
    gap: 48px;
  }
}

@media (max-width: 767px) {
  .svc-what__inner {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }

  .svc-what__media {
    position: static;
  }
}


/* -----------------------------------------------------------------------------
   Section 3: What's included — vertical icon list
   ----------------------------------------------------------------------------- */
.svc-includes__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  list-style: none;
  max-width: 860px;
}

.svc-includes__item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-5);
  padding: var(--space-6) var(--space-6);
  background-color: var(--dark2);
  border: 1px solid var(--gray);
  border-left: 3px solid var(--orange);
  transition: border-color var(--transition-base);
}

.svc-includes__item:hover {
  border-color: rgba(244, 123, 0, 0.4);
}

.svc-includes__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  background-color: rgba(244, 123, 0, 0.12);
  color: var(--orange);
  clip-path: polygon(var(--clip-sm) 0%, 100% 0%, calc(100% - var(--clip-sm)) 100%, 0% 100%);
}

.svc-includes__copy {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.svc-includes__title {
  color: var(--white);
}


/* -----------------------------------------------------------------------------
   Section 4: Ideal for — 4-card use-case grid
   ----------------------------------------------------------------------------- */
.svc-ideal__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
}

.svc-ideal__card {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-8) var(--space-6);
  background-color: var(--dark2);
  border: 1px solid var(--gray);
  position: relative;
  overflow: hidden;
  transition: border-color var(--transition-base);
}

.svc-ideal__card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background-color: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-base);
}

.svc-ideal__card:hover {
  border-color: rgba(244, 123, 0, 0.3);
}

.svc-ideal__card:hover::before {
  transform: scaleX(1);
}

.svc-ideal__card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background-color: var(--gray);
  color: var(--orange);
  clip-path: polygon(var(--clip-sm) 0%, 100% 0%, calc(100% - var(--clip-sm)) 100%, 0% 100%);
  flex-shrink: 0;
  transition: background-color var(--transition-base);
}

.svc-ideal__card:hover .svc-ideal__card-icon {
  background-color: rgba(244, 123, 0, 0.15);
}

.svc-ideal__card-title {
  color: var(--white);
}

@media (max-width: 1023px) {
  .svc-ideal__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .svc-ideal__grid {
    grid-template-columns: 1fr;
  }
}


/* -----------------------------------------------------------------------------
   Section 5: Educational — 2-column copy + stat sidebar
   ----------------------------------------------------------------------------- */
.svc-edu__inner {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 80px;
  align-items: start;
}

.svc-edu__copy {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.svc-edu__stats {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  position: sticky;
  top: calc(72px + var(--space-6));
}

.svc-edu__stat {
  padding: var(--space-6);
  background-color: var(--dark2);
  border: 1px solid var(--gray);
  border-left: 3px solid var(--orange);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.svc-edu__stat-value {
  line-height: 1;
}

@media (max-width: 1023px) {
  .svc-edu__inner {
    grid-template-columns: 1fr;
    gap: var(--space-12);
  }

  .svc-edu__stats {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2px;
  }
}

@media (max-width: 767px) {
  .svc-edu__stats {
    grid-template-columns: 1fr;
  }
}


/* -----------------------------------------------------------------------------
   Section 6: Process — 3-step variant
   ----------------------------------------------------------------------------- */
.process__steps--three {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 767px) {
  .process__steps--three {
    grid-template-columns: 1fr;
  }
}


/* -----------------------------------------------------------------------------
   Section 7: FAQ accordion — details/summary
   ----------------------------------------------------------------------------- */
.svc-faq__inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
  align-items: start;
}

.faq__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.faq__item {
  background-color: var(--dark2);
  border: 1px solid var(--gray);
  overflow: hidden;
  transition: border-color var(--transition-base);
}

.faq__item[open] {
  border-color: rgba(244, 123, 0, 0.3);
}

.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-6);
  cursor: pointer;
  list-style: none;

  font-family: var(--font-ui);
  font-size: var(--text-base);
  font-weight: 600;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--white);

  transition: color var(--transition-fast);
  user-select: none;
}

/* Remove default marker in all browsers */
.faq__question::-webkit-details-marker { display: none; }
.faq__question::marker { display: none; }

.faq__item[open] .faq__question {
  color: var(--orange);
}

.faq__icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-lg);
  color: var(--orange);
  font-family: var(--font-body);
  font-weight: 400;
  transition: transform var(--transition-base);
}

.faq__item[open] .faq__icon {
  transform: rotate(45deg);
}

.faq__answer {
  padding: 0 var(--space-6) var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  color: var(--text-muted);
  line-height: var(--leading-relaxed);
}

.faq__answer a {
  color: var(--orange);
  transition: color var(--transition-fast);
}

.faq__answer a:hover {
  color: var(--orange-light);
}

@media (max-width: 1023px) {
  .svc-faq__inner {
    grid-template-columns: 1fr;
    gap: var(--space-12);
  }
}


/* -----------------------------------------------------------------------------
   Section 8: Related services — 3-column card row
   ----------------------------------------------------------------------------- */
.svc-related__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

@media (max-width: 767px) {
  .svc-related__grid {
    grid-template-columns: 1fr;
  }
}


/* =============================================================================
   GET A QUOTE — standalone form page
   ============================================================================= */

/* Center the form card on the page */
.quote-page__container {
  display: flex;
  justify-content: center;
  padding-block: var(--space-16);
}

/* Override modal-box defaults for inline page use */
.modal-box--page {
  position: static;
  max-width: 780px;
  width: 100%;
  transform: none;
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.5);
}

/* Show the standalone success block (not an overlay) */
.modal-box--page .modal-box__success {
  position: static;
  opacity: 1;
  pointer-events: auto;
  transform: none;
  text-align: center;
  padding: var(--space-16) var(--space-8);
}

.modal-box--page .modal-box__success:not(.is-visible) {
  display: none;
}


/* =============================================================================
   QUOTE RECEIVED — confirmation page
   ============================================================================= */

.quote-received__container {
  display: flex;
  justify-content: center;
  padding-block: var(--space-20);
}

.quote-received__card {
  max-width: 640px;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-6);
}

.quote-received__icon {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: rgba(244, 123, 0, 0.12);
  border: 2px solid rgba(244, 123, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--orange);
  margin-bottom: var(--space-4);
}

.quote-received__promise {
  max-width: 480px;
}

.quote-received__sub {
  margin-top: calc(-1 * var(--space-2));
}

.quote-received__phone {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 1px;
  color: var(--orange);
  text-decoration: none;
  transition: color 0.2s ease;
}

.quote-received__phone:hover {
  color: var(--orange-light);
}

.quote-received__phone svg {
  color: var(--orange);
}

.quote-received__actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  justify-content: center;
  margin-top: var(--space-4);
}

@media (max-width: 479px) {
  .quote-received__actions {
    flex-direction: column;
    width: 100%;
  }

  .quote-received__actions .btn-primary,
  .quote-received__actions .btn-secondary {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}


/* =============================================================================
   404 ERROR PAGE
   ============================================================================= */

.error-page__container {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  padding-block: var(--space-20);
}

.error-page__inner {
  max-width: 640px;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-6);
}

/* Large 404 numeral — outline style, decorative */
.error-page__code {
  font-family: var(--font-display);
  font-size: clamp(7rem, 20vw, 14rem);
  line-height: 1;
  letter-spacing: 4px;
  color: transparent;
  -webkit-text-stroke: 2px rgba(244, 123, 0, 0.35);
  margin-bottom: calc(-1 * var(--space-4));
  user-select: none;
}

.error-page__desc {
  max-width: 460px;
}

.error-page__actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  justify-content: center;
  margin-top: var(--space-2);
}

.error-page__phone {
  margin-top: var(--space-2);
}

@media (max-width: 479px) {
  .error-page__actions {
    flex-direction: column;
    width: 100%;
  }

  .error-page__actions .btn-primary,
  .error-page__actions .btn-secondary {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}


/* ============================================================
   ABOUT PAGE — TEAM SECTION
   ============================================================ */

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-8);
}

.team-card {
  background: var(--dark2);
  border: 1px solid var(--gray);
  padding: var(--space-6);
  transition: border-color 0.25s ease;
}

.team-card:hover {
  border-color: rgba(244, 123, 0, 0.3);
}

.team-card__photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  margin-bottom: var(--space-4);
  overflow: hidden;
}

.team-card__photo-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1e1e1e 0%, #2a1500 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  color: rgba(244, 123, 0, 0.25);
}

.team-card__photo-label {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(244, 123, 0, 0.35);
  text-align: center;
  padding: 0 var(--space-2);
}

.team-card__name {
  margin-bottom: var(--space-1);
  color: var(--white);
}

.team-card__role {
  margin-bottom: var(--space-3);
  color: var(--orange);
}

.team-card__bio {
  color: var(--text-muted);
  line-height: 1.6;
}

@media (max-width: 1023px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 639px) {
  .team-grid {
    grid-template-columns: 1fr;
  }
}


/* ============================================================
   ABOUT PAGE — CERTIFICATIONS SECTION
   ============================================================ */

.certs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-8);
}

.cert-badge {
  background: var(--dark2);
  border: 1px solid var(--gray);
  border-top: 3px solid var(--orange);
  padding: var(--space-6);
  clip-path: polygon(10px 0%, 100% 0%, calc(100% - 10px) 100%, 0% 100%);
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.cert-badge:hover {
  border-color: rgba(244, 123, 0, 0.4);
  transform: translateY(-2px);
}

.cert-badge__icon {
  width: 52px;
  height: 52px;
  background: rgba(244, 123, 0, 0.1);
  border: 1px solid rgba(244, 123, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
  color: var(--orange);
}

.cert-badge__title {
  color: var(--white);
  margin-bottom: var(--space-2);
}

.cert-badge__desc {
  line-height: 1.65;
}

@media (max-width: 1023px) {
  .certs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 639px) {
  .certs-grid {
    grid-template-columns: 1fr;
  }
}


/* ============================================================
   ABOUT PAGE — SECTION FOOTER (centered CTA link below grid)
   ============================================================ */

.section-footer {
  margin-top: var(--space-8);
  display: flex;
  justify-content: center;
}


/* ============================================================
   EQUIPMENT PAGE — REVERSED 2-COLUMN LAYOUT
   ============================================================ */

.svc-what__inner--reversed {
  direction: rtl;
}

.svc-what__inner--reversed > * {
  direction: ltr;
}


/* ============================================================
   OUR WORK — GALLERY PAGE
   ============================================================ */

/* Filter tabs */
.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-10);
}

.gallery-filter {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid var(--gray);
  padding: 10px 18px;
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}

.gallery-filter:hover {
  color: var(--white);
  border-color: rgba(244, 123, 0, 0.4);
}

.gallery-filter.is-active {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--black);
}

/* Gallery grid — auto-fill masonry-style */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 260px;
  gap: var(--space-4);
}

/* Tall card spans 2 row tracks */
.gallery-card--tall {
  grid-row: span 2;
}

/* Card base */
.gallery-card {
  position: relative;
  overflow: hidden;
  cursor: default;
}

.gallery-card[hidden] {
  display: none;
}

.gallery-card__image {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

/* Placeholder fill */
.gallery-card__placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1e1e1e 0%, #2a1500 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  color: rgba(244, 123, 0, 0.2);
  transition: transform 0.4s ease;
}

/* Before & After placeholder tint */
.gallery-card__placeholder--before-after {
  background: linear-gradient(135deg, #1a1500 0%, #2a1e00 100%);
}

.gallery-card__ba-label {
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(244, 123, 0, 0.5);
}

.gallery-card__placeholder-icon {
  flex-shrink: 0;
}

/* Real image — replaces placeholder when photo is available */
.gallery-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.gallery-card:hover .gallery-card__img {
  transform: scale(1.04);
}

/* Hover: scale placeholder image */
.gallery-card:hover .gallery-card__placeholder {
  transform: scale(1.04);
}

/* Overlay — slides up on hover */
.gallery-card__overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(13, 13, 13, 0.96) 0%, rgba(13, 13, 13, 0.7) 60%, transparent 100%);
  padding: var(--space-5) var(--space-4) var(--space-4);
  transform: translateY(calc(100% - 44px));
  transition: transform 0.3s ease;
}

.gallery-card:hover .gallery-card__overlay,
.gallery-card:focus-within .gallery-card__overlay {
  transform: translateY(0);
}

/* Orange top accent bar on overlay reveal */
.gallery-card__overlay::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease 0.05s;
}

.gallery-card:hover .gallery-card__overlay::before {
  transform: scaleX(1);
}

.gallery-card__project-name {
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: var(--space-3);
  line-height: 1.3;
}

.gallery-card__meta {
  display: flex;
  flex-direction: column;
  gap: 5px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s ease 0.1s, transform 0.25s ease 0.1s;
}

.gallery-card:hover .gallery-card__meta {
  opacity: 1;
  transform: translateY(0);
}

.gallery-card__meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

.gallery-card__meta-item--service {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--orange);
  margin-top: 2px;
}

/* Empty state */
.gallery-empty {
  text-align: center;
  padding: var(--space-16) var(--space-4);
}

.gallery-empty__reset {
  margin-top: var(--space-4);
}

/* Responsive */
@media (max-width: 1023px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 240px;
  }
}

@media (max-width: 639px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 220px;
  }

  /* On mobile all cards are the same height — tall modifier has no effect */
  .gallery-card--tall {
    grid-row: span 1;
  }

  .gallery-filters {
    gap: var(--space-2);
  }

  .gallery-filter {
    font-size: 11px;
    padding: 8px 14px;
  }

  /* Overlay always visible on touch devices */
  .gallery-card__overlay {
    transform: translateY(0);
  }

  .gallery-card__meta {
    opacity: 1;
    transform: translateY(0);
  }
}
