/* ============================================================
   Murfreesboro Garage Door Repair — site styles
   Palette: pine green, warm cream, brick red
   Fonts: Merriweather (headings), Source Sans 3 (body)
   ============================================================ */

:root {
  --pine-900: #12241a;
  --pine-800: #1d3620;
  --pine-700: #2f5233;
  --pine-600: #3f6b45;
  --cream: #faf6ee;
  --cream-100: #f4ecdd;
  --brick-500: #b5442e;
  --brick-600: #9e3a27;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Source Sans 3', system-ui, -apple-system, sans-serif;
}

h1, h2, h3, h4, .font-head {
  font-family: 'Merriweather', Georgia, 'Times New Roman', serif;
}

/* Skip link for keyboard users */
.jump-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 100;
  background: var(--pine-800);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 0.5rem 0;
  font-weight: 600;
}
.jump-link:focus { left: 0; }

/* Subtle grain / paper texture on cream sections */
.paper {
  background-color: var(--cream);
  background-image:
    radial-gradient(circle at 1px 1px, rgba(29, 54, 32, 0.04) 1px, transparent 0);
  background-size: 22px 22px;
}

/* Hero backdrop: soft pine-tinted wash over cream with a chevron edge */
.hero-wash {
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(63, 107, 69, 0.10), transparent 70%),
    linear-gradient(180deg, #fffdf8 0%, var(--cream) 100%);
}

/* Thin decorative rule with a diamond in the middle */
.rule-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: var(--brick-500);
}
.rule-mark::before,
.rule-mark::after {
  content: "";
  height: 1px;
  width: 2.5rem;
  background: currentColor;
  opacity: 0.5;
}

/* Badge chips above hero headline */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  background: #fff;
  color: var(--pine-700);
  border: 1px solid rgba(47, 82, 51, 0.18);
  box-shadow: 0 1px 2px rgba(18, 36, 26, 0.05);
}

/* Card lift on hover */
.raise {
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.raise:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px -12px rgba(18, 36, 26, 0.28);
}

/* Primary (brick) button glow on hover */
.btn-brick {
  background: var(--brick-500);
  color: #fff;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}
.btn-brick:hover {
  background: var(--brick-600);
  box-shadow: 0 10px 24px -8px rgba(181, 68, 46, 0.6);
}

/* Vertical process timeline */
.timeline-step { position: relative; padding-left: 4.25rem; padding-bottom: 2.5rem; }
.timeline-step:last-child { padding-bottom: 0; }
.timeline-marker {
  position: absolute;
  left: 0;
  top: 0;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Merriweather', serif;
  font-weight: 700;
  color: #fff;
  background: var(--pine-700);
  z-index: 2;
}
.timeline-step:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 1.31rem;
  top: 2.75rem;
  bottom: 0.5rem;
  width: 2px;
  background: linear-gradient(180deg, var(--pine-600), rgba(63, 107, 69, 0.15));
}

/* FAQ accordion */
.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.accordion-item.is-open .accordion-panel { max-height: 460px; }
.accordion-item.is-open .accordion-sign { transform: rotate(45deg); }
.accordion-sign { transition: transform 0.25s ease; }

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.shown { opacity: 1; transform: none; }

/* Mobile drawer */
.drawer {
  transform: translateX(100%);
  transition: transform 0.28s ease;
}
.drawer.is-open { transform: translateX(0); }

/* Dropdown (desktop hover) */
.has-menu > .menu-pop {
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}
.has-menu:hover > .menu-pop,
.has-menu:focus-within > .menu-pop {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Decorative corner notch used on service rows */
.notch {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
