/*
Theme Name: M/M Renovations
Theme URI: https://mmrenovations.net
Author: M/M Renovations
Description: Custom one-page website theme for M/M Renovations.
Version: 1.0.3
Text Domain: mm-renovations
*/

:root {
  --ink: #050505;
  --navy: #071d49;
  --paper: #f3f3f1;
  --muted: #666a70;
  --line: #d5d5d0;
  --white: #ffffff;
}
.logo-img {
  width: 210px;
  height: auto;
  display: block;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  text-align:center;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  align-items: center;
  background: rgba(243, 243, 241, 0.94);
  display: grid;
  gap: 24px;
  grid-template-columns: auto 1fr auto;
  left: 0;
  padding: 18px clamp(20px, 5vw, 68px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.logo {
  align-items: center;
  display: inline-flex;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1rem, 1.4vw, 1.35rem);
  font-weight: 700;
  gap: 12px;
  letter-spacing: 5px;
  text-transform: uppercase;
  white-space: nowrap;
}

.slash {
  background: var(--ink);
  display: inline-block;
  height: 44px;
  transform: rotate(18deg);
  width: 2px;
}

.nav-links {
  align-items: center;
  display: flex;
  gap: clamp(16px, 3vw, 48px);
  justify-content: center;
}

.nav-links a,
.quote-button,
.primary-button,
.text-link {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.nav-links a {
  padding: 10px 0;
  position: relative;
}

.nav-links a::after {
  background: var(--ink);
  bottom: 2px;
  content: "";
  height: 1px;
  left: 0;
  position: absolute;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
  width: 100%;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
}

.quote-button,
.primary-button {
  background: var(--ink);
  color: var(--white);
  display: inline-flex;
  justify-content: center;
  min-width: 154px;
  padding: 15px 22px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(320px, 0.86fr) minmax(420px, 1.14fr);
  min-height: 560px;
}

.hero-copy {
  align-self: center;
  padding: clamp(44px, 6vw, 90px) clamp(26px, 5vw, 70px);
}

.hero h1,
.about-copy h2,
.section-heading h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  line-height: 0.98;
  margin: 0;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(3.1rem, 6vw, 5.7rem);
  max-width: 720px;
}

.hero h1 span,
.about-copy h2 span {
  color: var(--navy);
  display: block;
}

.short-line {
  background: var(--ink);
  height: 4px;
  margin: 34px 0 26px;
  width: 58px;
}

.hero-copy p {
  max-width: 330px;
}

.hero-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 28px 44px;
  margin-top: 30px;
}

.text-link {
  align-items: center;
  display: inline-flex;
  gap: 12px;
  text-decoration: underline;
  text-underline-offset: 5px;
}
.hero-image {
  align-self: center;
  margin: 36px 5vw 0 0;
  padding: 4px;
  background: #071d49;
  width: 100%;
  max-width: 520px;
  justify-self: end;
}

.hero-image img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
}

.services {
  background: #f8f8f6;
  border-top: 1px solid rgba(0, 0, 0, 0.04);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 28px clamp(20px, 5vw, 68px) 38px;
}

.services article {
  min-height: 190px;
  padding: 24px clamp(18px, 3vw, 54px);
  position: relative;
}

.services article + article {
  border-left: 1px solid var(--line);
}

.service-number {
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  position: static;
  display: block;
  margin-bottom: 12px;
}

.service-icon {
  color: var(--navy);
  font-size: 3rem;
  height: auto;
  margin: 0 0 12px;
}

.services h2,
.comparison-card h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  letter-spacing: 2px;
  margin: 12px 0 8px;
  text-transform: uppercase;
}

.services p,
.about-copy p,
.trust-list span,
.comparison-card p,
.site-footer {
  color: var(--muted);
  font-size: 0.93rem;
}

.services a {
  display: inline-block;
  font-size: 1.35rem;
  margin-top: 6px;
}
.about {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 24px;
  padding: 40px 3vw;
  background: linear-gradient(90deg, #071d49 0 25%, #f3f3f1 25% 100%);
}

.about-band {
  padding: clamp(44px, 6vw, 84px) clamp(20px, 5vw, 68px);
}

.about-photo {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 2vw, 24px);
  justify-content: center;
  margin: 0 auto 34px;
  max-width: 1180px;
  width: 100%;
}

.about-photo img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  object-position: center;
  filter: grayscale(0.5);
  display: block;
}

.about-copy {
  background: var(--paper);
  padding: 16px 4px 28px;
}

.eyebrow {
  align-items: center;
  color: var(--ink);
  display: flex;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.78rem;
  font-weight: 700;
  gap: 16px;
  letter-spacing: 2px;
  margin: 0 0 14px;
  text-transform: uppercase;
}

.eyebrow::before {
  background: var(--ink);
  content: "";
  height: 3px;
  width: 40px;
}

.about-copy h2 {
  font-size: clamp(1.9rem, 3vw, 3rem);
  margin-bottom: 18px;
}

.about-copy .primary-button {
  margin-top: 8px;
}

.trust-list {
  list-style: none;
  margin: 0;
  padding: 8px 0 0;
}

.trust-list li {
  border-bottom: 1px solid var(--line);
  padding: 16px 0 16px 58px;
  position: relative;
}

.trust-list li::before {
  border: 1px solid var(--ink);
  border-radius: 50%;
  content: "";
  height: 30px;
  left: 4px;
  position: absolute;
  top: 18px;
  width: 30px;
}

.trust-list strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.9rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.project-ticker {
  overflow: hidden;
  padding: clamp(52px, 6vw, 86px) 0;
}

.section-heading {
  display: block;
  text-align: center;
  padding: 0 clamp(20px, 5vw, 68px) 26px;
}

.section-heading .eyebrow {
  justify-content: center;
}

.section-heading h2 {
  color: var(--navy);
  font-size: clamp(2rem, 4vw, 4.2rem);
  text-align: center;
}

.ticker-window {
  overflow: hidden;
  width: 100%;
}

.ticker-track {
  animation: tickerScroll 42s linear infinite;
  display: flex;
  gap: 28px;
  transform: translate3d(0, 0, 0);
  will-change: transform;
  width: max-content;
}

.ticker-window:hover .ticker-track,
.ticker-window:focus-within .ticker-track {
  animation-play-state: paused;
}
.comparison-card  video{
  width: 100%;
  height:100%;
  object-fit:contain;
  content: attr(data-after);
  left: auto;
  opacity: 1;
  right: 12px;

}
.comparison-card {
  background: var(--white);
  border: 1px solid var(--line);
  flex: 0 0 min(720px, 86vw);
  padding: 12px 12px 18px;
}

.comparison-card--portrait {
  flex-basis: min(680px, 86vw);
}

.comparison-card--kitchen {
  flex-basis: min(680px, 86vw);
}

.compare-slider {
  background: #d8d8d4;
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  position: relative;
}

.compare-slider--portrait {
  aspect-ratio: auto;
}

.compare-slider--kitchen {
  aspect-ratio: auto;
}

.compare-slider::before,
.compare-slider::after {
  background: rgba(5, 5, 5, 0.76);
  color: var(--white);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.72rem;
  left: 12px;
  letter-spacing: 1px;
  padding: 6px 9px;
  position: absolute;
  text-transform: uppercase;
  top: 12px;
  z-index: 3;
}

.compare-slider::before {
  content: attr(data-before);
  opacity: 1;
}

.compare-slider::after {
  content: attr(data-after);
  left: auto;
  opacity: 1;
  right: 12px;
}

.compare-slider img {
  background: #d8d8d4;
  height: 300px;
  object-fit: contain;
  object-position: center;
  width: 100%;
}
.compare-slider video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.before-mask img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.compare-slider {
  position: relative;
  height: 400px; /* adjust as needed */
  overflow: hidden;
}
.compare-slider > .after-image {
  grid-column: 2;
  grid-row: 1;
}

.before-mask {
  grid-column: 1;
  grid-row: 1;
}

.comparison-card h3,
.comparison-card p {
  padding: 0 8px;
}

.comparison-card p {
  margin-bottom: 0;
}

footer {
    text-align: center;
    padding: 20px;
    background-color: #333;
    color: white;
    margin-top: 20px;
}

footer a {
    color: white;
    text-decoration: none;
}


@keyframes tickerScroll {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(calc(-50% - 14px), 0, 0);
  }
}

@media (max-width: 1100px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    overflow-x: auto;
  }

  .hero,
  .about-band {
    grid-template-columns: 1fr;
  }

  .hero-image {
    margin-left: clamp(20px, 5vw, 68px);
  }

  .hero-image img {
    height: 420px;
  }

  .services {
    grid-template-columns: repeat(2, 1fr);
  }

  .services article {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-bottom: 26px;
    padding-top: 24px;
  }

  .about-band {
    background: var(--paper);
  }

  .about-photo {
    grid-template-columns: repeat(2, 1fr);
    max-width: 760px;
  }

  .about-photo img {
    aspect-ratio: 16 / 9;
    height: auto;
  }
}

@media (max-width: 700px) {
  .site-header {
    padding: 16px 18px;
  }

  .logo {
    font-size: 0.9rem;
    gap: 8px;
    letter-spacing: 3px;
  }

  .slash {
    height: 34px;
  }

  .quote-button {
    min-width: auto;
    padding: 12px 14px;
  }

  .hero {
    min-height: 0;
  }

  .hero-copy {
    padding-top: 46px;
  }

  .hero h1 {
    font-size: clamp(2.7rem, 14vw, 4.2rem);
  }

  .hero-image {
    margin: 0 18px;
    padding: 14px 0 0 14px;
  }

  .hero-image img {
    height: 300px;
  }

  .services {
    grid-template-columns: 1fr;
  }

  .services article + article {
    border-left: 0;
  }

  .about-photo {
    grid-template-columns: 1fr;
  }

  .section-heading,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .section-heading h2 {
    text-align: left;
  }

  .project-ticker {
    overflow: visible;
  }

  .ticker-window {
    -webkit-overflow-scrolling: touch;
    overflow-x: scroll;
    padding: 0 18px 14px;
    scrollbar-color: var(--navy) var(--line);
    scrollbar-width: thin;
  }

  .ticker-window::-webkit-scrollbar {
    height: 8px;
  }

  .ticker-window::-webkit-scrollbar-track {
    background: var(--line);
  }

  .ticker-window::-webkit-scrollbar-thumb {
    background: var(--navy);
  }

  .ticker-track {
    animation: none;
    gap: 16px;
    scroll-snap-type: x mandatory;
  }

  .comparison-card {
    flex-basis: calc(100vw - 56px);
    scroll-snap-align: start;
  }

  .compare-slider {
    height: auto;
    min-height: 260px;
  }

  .compare-slider img,
  .compare-slider video,
  .before-mask img {
    height: 260px;
  }
}
