/* =====================================================
   KCM Exteriors — styles
   Brand accent comes from the logo (lime green).
   To switch CTAs to safety orange, change --accent
   (and --accent-dark) below — everything follows.
   ===================================================== */
:root {
  --accent: #93c31d;
  --accent-dark: #7aa513;
  --charcoal: #2b2e30;
  --ink: #33383b;
  --navy: #1d2a33;
  --gray-bg: #f4f5f4;
  --gray-line: #e3e6e3;
  --white: #ffffff;
  --font-head: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(29, 42, 51, 0.10);
  --shadow-lg: 0 18px 44px rgba(29, 42, 51, 0.16);
  --container: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

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

h1, h2, h3 {
  font-family: var(--font-head);
  color: var(--navy);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: 6px;
  padding: 0.7rem 1.4rem;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-primary {
  background: var(--accent);
  color: var(--charcoal);
}
.btn-primary:hover {
  background: var(--accent-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(147, 195, 29, 0.35);
}
.btn-outline {
  border-color: rgba(255, 255, 255, 0.7);
  color: var(--white);
}
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--white);
  transform: translateY(-2px);
}
.btn-lg { padding: 0.95rem 2rem; font-size: 1.05rem; }
.btn-block { width: 100%; border: none; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--gray-line);
  transition: box-shadow 0.25s ease;
}
.nav.scrolled { box-shadow: var(--shadow); }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.nav-logo img { height: 44px; width: auto; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}
.nav-links a:not(.btn) {
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink);
  transition: color 0.2s ease;
}
.nav-links a:not(.btn):hover { color: var(--accent-dark); }
.nav-cta { padding: 0.55rem 1.1rem; font-size: 0.92rem; }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span {
  width: 24px;
  height: 2.5px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--navy);
  color: var(--white);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 75% 20%, rgba(147, 195, 29, 0.14), transparent 55%),
    linear-gradient(160deg, rgba(35, 47, 56, 0.92) 0%, rgba(23, 34, 42, 0.86) 55%, rgba(16, 24, 32, 0.92) 100%),
    url("../assets/projects/hero-tesla.jpg") center 65% / cover no-repeat;
}
.hero-bg::after {
  content: "";
  position: absolute;
  right: -140px;
  bottom: -160px;
  width: 640px;
  height: 640px;
  background: url("../assets/logo-mark.png") center/contain no-repeat;
  opacity: 0.07;
  transform: rotate(-6deg);
}
.hero-content {
  position: relative;
  padding: 7.5rem 20px 8rem;
  max-width: 820px;
  margin: 0;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}
.hero-eyebrow {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 1.1rem;
}
.hero h1 {
  color: var(--white);
  font-size: clamp(2.5rem, 6vw, 4.2rem);
  font-weight: 800;
  margin-bottom: 1.2rem;
}
.hero-sub {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.82);
  max-width: 620px;
  margin-bottom: 2.2rem;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ---------- Trust bar ---------- */
.trust-bar {
  background: var(--charcoal);
  color: var(--white);
  padding: 2.2rem 0;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  text-align: center;
}
.trust-num {
  display: block;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 2.6rem;
  color: var(--accent);
  line-height: 1.1;
}
.trust-label {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.75);
}

/* ---------- Sections ---------- */
.section { padding: 5.5rem 0; }
.section-gray { background: var(--gray-bg); }
.section-eyebrow {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent-dark);
  margin-bottom: 0.6rem;
}
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  margin-bottom: 1rem;
}
.section-sub {
  max-width: 640px;
  color: #5c6367;
  margin-bottom: 3rem;
}

/* ---------- Service cards ---------- */
.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
  margin-top: 2.5rem;
}
.card {
  background: var(--white);
  border: 1px solid var(--gray-line);
  border-radius: var(--radius);
  padding: 2.2rem 1.9rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}
.card-masonry,
.card-stucco,
.card-panels {
  border: 2px solid var(--charcoal);
  border-radius: var(--radius);
}
.card h3 { font-size: 1.25rem; margin-bottom: 0.9rem; }
.card ul { list-style: none; }
.card li {
  padding: 0.4rem 0 0.4rem 1.5rem;
  position: relative;
  color: #4c5357;
  font-size: 0.97rem;
}
.card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent-dark);
  font-weight: 700;
}

/* ---------- Photo placeholders ---------- */
.photo-ph {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  background: linear-gradient(150deg, #35414a, #1d2a33);
}
.photo-ph-tall { aspect-ratio: 4 / 5; }
.photo-ph-portrait { aspect-ratio: 3 / 4; }
.ph-mark {
  width: 34%;
  opacity: 0.16;
  filter: grayscale(35%);
}
/* Hover/tap overlay with Jake's project description */
.ph-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 1.1rem 1.2rem;
  background: linear-gradient(180deg, rgba(16, 24, 32, 0.15) 0%, rgba(16, 24, 32, 0.88) 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.ph-overlay p {
  color: rgba(255, 255, 255, 0.94);
  font-size: 0.88rem;
  line-height: 1.5;
}
.project-card:hover .ph-overlay,
.project-card:focus-within .ph-overlay,
.project-card.overlay-open .ph-overlay {
  opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
  .ph-overlay { transition: none; }
}

/* Real photos dropped into a placeholder frame */
.ph-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Retro 90s "under construction" GIF placeholders — swap for real photos */
.ph-gif {
  width: 68%;
  max-height: 62%;
  height: auto;
  object-fit: contain;
  image-rendering: pixelated;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.45));
}
.ph-note {
  position: absolute;
  bottom: 12px;
  right: 14px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}
.project-card[data-hue="a"] .photo-ph { background: linear-gradient(150deg, #3b4852, #1d2a33); }
.project-card[data-hue="b"] .photo-ph { background: linear-gradient(150deg, #46503c, #232a1c); }
.project-card[data-hue="c"] .photo-ph { background: linear-gradient(150deg, #4a4640, #26231f); }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}
.about-copy p:not(.section-eyebrow) { margin-bottom: 1.1rem; color: #4c5357; }

/* ---------- Projects marquee ---------- */
.projects-marquee {
  overflow-x: auto;
  scrollbar-width: none;
}
/* Full-bleed: break out of .container so cards run to the screen edges */
.projects-marquee.is-animated {
  overflow: hidden;
  width: 100vw;
  margin-left: calc(50% - 50vw);
}
.marquee-track {
  display: flex;
  width: max-content;
}
.marquee-group {
  display: flex;
  gap: 1.6rem;
  padding-right: 1.6rem;
}
/* One period = exactly one group (cards + trailing gap), so -50% of the
   duplicated track lands seamlessly back at the start */
.marquee-track.marquee-on {
  animation: marquee-scroll 63s linear infinite;
}
.projects-marquee:hover .marquee-track,
.projects-marquee:focus-within .marquee-track {
  animation-play-state: paused;
}
@keyframes marquee-scroll {
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track.marquee-on { animation: none; }
  .projects-marquee.is-animated { overflow-x: auto; }
}
.project-card {
  flex: 0 0 372px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--gray-line);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.project-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.project-card .photo-ph {
  border-radius: 0;
  aspect-ratio: 16 / 10;
  transition: transform 0.4s ease;
}
.project-card:hover .ph-mark { opacity: 0.28; transition: opacity 0.3s ease; }
.project-meta { padding: 1rem 1.3rem 1.1rem; }
.project-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  margin-bottom: 0.15rem;
}
.project-meta h3 { font-size: 1.12rem; }
.project-city { color: #6a7176; font-size: 0.92rem; }
.project-scope {
  margin-top: 0.35rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent-dark);
}
.project-tag { flex-shrink: 0; }
.project-tag {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-dark);
  background: rgba(147, 195, 29, 0.14);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
}

/* ---------- Why us ---------- */
.section-dark {
  background: var(--navy);
}
.section-dark .section-title { color: var(--white); }
.section-dark .section-eyebrow { color: var(--accent); }
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 2.5rem;
}
.why-item h3 {
  color: var(--white);
  font-size: 1.08rem;
  margin: 0.8rem 0 0.5rem;
}
.why-item p { color: rgba(255, 255, 255, 0.68); font-size: 0.93rem; }
.check {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--charcoal);
  font-weight: 800;
  font-size: 1.2rem;
}

/* ---------- Process timeline ---------- */
.timeline { max-width: 900px; }
.timeline-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  margin-bottom: 2rem;
}
.timeline-line {
  position: absolute;
  top: 21px;
  left: calc(100% / 12);
  right: calc(100% / 12);
  height: 3px;
  background: var(--gray-line);
  border-radius: 2px;
  overflow: hidden;
}
.timeline-line-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: var(--progress, 0%);
  background: var(--accent);
  transition: width 0.45s ease, height 0.45s ease;
}
.timeline-step {
  position: relative;
  background: none;
  border: 0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  padding: 0;
  font: inherit;
}
.timeline-dot {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--gray-line);
  font-family: var(--font-head);
  font-weight: 800;
  color: #8a9196;
  transition: border-color 0.3s ease, background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}
.timeline-step:hover .timeline-dot { border-color: var(--accent); transform: scale(1.08); }
.timeline-step.done .timeline-dot { border-color: var(--accent); color: var(--accent-dark); }
.timeline-step.active .timeline-dot {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--charcoal);
}
.timeline-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.82rem;
  color: #6a7176;
}
.timeline-step.active .timeline-name { color: var(--navy); }
.timeline-detail {
  background: var(--white);
  border: 1px solid var(--gray-line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.8rem 2rem;
  box-shadow: var(--shadow);
  min-height: 130px;
}
.timeline-detail h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.timeline-detail p { color: #4c5357; }

/* ---------- Owner ---------- */
.owner-grid {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 3.5rem;
  align-items: center;
}
.owner-media { margin: 0; }
.owner-caption {
  margin-top: 0.8rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--navy);
  text-align: center;
}
.owner-quote {
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--navy);
  border-left: 4px solid var(--accent);
  padding-left: 1.2rem;
  margin: 0 0 1.4rem;
  line-height: 1.4;
}
.owner-copy p:not(.section-eyebrow) { margin-bottom: 1.1rem; color: #4c5357; }

/* ---------- Testimonials ---------- */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.6rem;
  max-width: 1040px;
  margin: 0 auto;
}
.testimonial {
  background: var(--white);
  border: 1px solid var(--gray-line);
  border-radius: var(--radius);
  padding: 2rem 1.8rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.testimonial:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
/* Single featured testimonial — remove `.single` from the grid once there are 2-3 */
.testimonial-grid.single { display: block; }
.testimonial-grid.single .testimonial {
  max-width: 760px;
  margin: 0 auto;
  padding: 2.6rem 2.8rem;
  border-top: 4px solid var(--accent);
}
.testimonial-grid.single blockquote { font-size: 1.35rem; }
.stars { color: var(--accent); letter-spacing: 0.15em; margin-bottom: 1rem; }
.testimonial blockquote {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 1.2rem;
  line-height: 1.5;
}
.testimonial figcaption { font-size: 0.9rem; color: #6a7176; }

/* ---------- Contact ---------- */
.section-contact { background: var(--gray-bg); }
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3.5rem;
  align-items: start;
}
.contact-copy p:not(.section-eyebrow) { color: #4c5357; margin-bottom: 1.6rem; }
.contact-details { list-style: none; }
.contact-details li { padding: 0.45rem 0; color: #4c5357; }
.contact-details a { color: var(--accent-dark); font-weight: 600; text-decoration: none; }
.contact-details a:hover { text-decoration: underline; }

.contact-form {
  background: var(--white);
  border: 1px solid var(--gray-line);
  border-radius: var(--radius);
  padding: 2.2rem;
  box-shadow: var(--shadow);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}
.contact-form label {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--navy);
  margin-bottom: 1.2rem;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  margin-top: 0.4rem;
  padding: 0.75rem 0.9rem;
  font: inherit;
  font-size: 0.95rem;
  border: 1.5px solid var(--gray-line);
  border-radius: 6px;
  background: var(--white);
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(147, 195, 29, 0.2);
}
.form-status { margin-top: 1rem; font-size: 0.9rem; color: var(--accent-dark); font-weight: 600; }

/* ---------- Footer ---------- */
.footer {
  background: var(--charcoal);
  color: rgba(255, 255, 255, 0.7);
  padding: 3rem 0;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.4rem;
  text-align: center;
}
.footer-logo {
  height: 40px;
  width: auto;
  background: var(--white);
  border-radius: 6px;
  padding: 5px 10px;
}
.footer-links { display: flex; gap: 1.6rem; flex-wrap: wrap; justify-content: center; }
.footer-links a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 0.92rem;
}
.footer-links a:hover { color: var(--accent); }
.footer-note { font-size: 0.85rem; }
.footer-credit {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.4);
  margin-top: -0.7rem;
}
.lb-mark {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  margin-left: 0.35em;
  opacity: 0.9;
  transition: opacity 0.2s ease;
}
.lb-mark:hover { opacity: 1; }
.lb-icon {
  height: 22px;
  width: auto;
  background: var(--white);
  border-radius: 4px;
  padding: 2px 5px;
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Mobile ---------- */
@media (max-width: 960px) {
  .cards-3 { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .owner-grid, .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .owner-media { max-width: 420px; }
}

@media (max-width: 680px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--gray-line);
    box-shadow: var(--shadow);
    padding: 0.6rem 20px 1.2rem;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a:not(.btn) { padding: 0.85rem 0; border-bottom: 1px solid var(--gray-line); }
  .nav-cta { margin-top: 1rem; text-align: center; }
  .nav.menu-open .nav-toggle span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .nav.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

  .timeline-track {
    grid-template-columns: 1fr;
    gap: 0.4rem;
    justify-items: start;
  }
  .timeline-line {
    top: 8px;
    bottom: 8px;
    left: 21px;
    right: auto;
    width: 3px;
    height: auto;
  }
  .timeline-line-fill { width: 100%; height: var(--progress, 0%); }
  .timeline-step { flex-direction: row; padding: 0.35rem 0; }
  .timeline-step:hover .timeline-dot { transform: none; }

  .hero-content { padding: 5rem 20px 5.5rem; }
  .section { padding: 3.8rem 0; }
  .cards-3, .why-grid, .form-row { grid-template-columns: 1fr; }
  .project-card { flex-basis: 330px; }
  .project-meta h3 { font-size: 1rem; }
  .trust-grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .hero-actions .btn { flex: 1; text-align: center; }
}
