:root {
  --black: #0d0d0d;
  --charcoal: #242424;
  --gray: #f2f2ef;
  --muted: #66645f;
  --white: #ffffff;
  --yellow: #ecae07;
  --yellow-dark: #b88705;
  --green: #565e32;
  --line: #dedbd2;
  --max-width: 1120px;
  --font-display: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  --font-body: "Barlow", Arial, Helvetica, sans-serif;
}

::selection {
  background: var(--yellow);
  color: var(--black);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--black);
  background: #e8e6e1;
  line-height: 1.6;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px max(20px, calc((100vw - var(--max-width)) / 2));
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 4px 16px rgba(13, 13, 13, 0.06);
  gap: 40px;
}

.site-nav-left,
.site-nav-right {
  display: flex;
  align-items: center;
  gap: 50px;
  font-family: var(--font-display);
  font-weight: 600;
}

.site-nav-left a,
.site-nav-right a {
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 1.05rem;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.site-nav-left a:hover,
.site-nav-left a:focus,
.site-nav-right a:hover,
.site-nav-right a:focus {
  color: var(--yellow-dark);
  border-bottom-color: var(--yellow);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-img {
  display: block;
  height: 48px;
  width: auto;
}

.menu-toggle {
  display: none;
  padding: 8px 12px;
  font: inherit;
  font-weight: 700;
  color: var(--black);
  background: var(--yellow);
  border: 2px solid var(--black);
  cursor: pointer;
}

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

section[id] {
  scroll-margin-top: 96px;
}

#services {
  padding-top: 40px;
}

.hero {
  min-height: 640px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 480px at 85% -10%, rgba(236, 174, 7, 0.12), transparent 60%),
    #e8e6e1;
}

.hero::before {
  content: "603";
  position: absolute;
  right: -0.04em;
  bottom: -0.3em;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(11rem, 28vw, 24rem);
  line-height: 1;
  color: rgba(13, 13, 13, 0.04);
  pointer-events: none;
  user-select: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  align-items: center;
  column-gap: 42px;
  row-gap: 0;
  padding: 48px 20px;
}

.hero-copy {
  grid-column: 1;
}

.carousel {
  grid-column: 2;
}

.carousel {
  position: relative;
  width: 100%;
  aspect-ratio: 2.5 / 4;
  overflow: visible;
  display: flex;
  align-items: center;
}

.carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.07);
  transition: transform 0.55s cubic-bezier(0.22, 0.61, 0.36, 1), z-index 0s 0.28s;
  z-index: 1;
}

.carousel-track img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-label {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 12px;
  background: rgba(0, 0, 0, 0.7);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.carousel-label.after {
  left: auto;
  right: 12px;
  background: rgba(236, 174, 7, 0.9);
  color: var(--black);
}

.carousel-prev,
.carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, 0.5);
  color: var(--white);
  border: none;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
  z-index: 10;
}

.carousel-prev:hover,
.carousel-next:hover {
  background: var(--yellow);
  color: var(--black);
}

.carousel-prev {
  left: 8px;
}

.carousel-next {
  right: 8px;
}

.carousel-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: background 0.3s;
}

.carousel-dot.active {
  background: var(--yellow);
}


.hero-content h1,
.section-heading h2,
.about-copy h2,
.contact h2,
.panel-title,
.service-card h3,
.about-list h3 {
  font-family: var(--font-display);
}

.hero-content h1,
.section-heading h2,
.about-copy h2,
.contact h2 {
  margin: 0;
  line-height: 1.04;
  letter-spacing: 0.005em;
}

.hero-content h1 {
  max-width: 780px;
  font-size: clamp(2.5rem, 6.5vw, 4.8rem);
  margin-top: -20px;
  margin-bottom: 16px;
}

.hero-content h1 em {
  text-decoration: underline;
  text-decoration-color: var(--yellow);
  text-decoration-thickness: 5px;
  text-underline-offset: 6px;
}

.section-heading h2 u {
  text-decoration-color: var(--yellow);
  text-decoration-thickness: 5px;
  text-underline-offset: 5px;
}

.hero-text {
  max-width: 640px;
  margin: 24px 0 12px;
  font-size: 1.2rem;
  color: var(--charcoal);
}

.eyebrow {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--yellow-dark);
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 26px;
  height: 3px;
  background: var(--yellow);
  margin-right: 10px;
  vertical-align: middle;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid var(--black);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(13, 13, 13, 0.18);
}

.button.primary {
  color: var(--black);
  background: var(--yellow);
}

.button.primary:hover {
  background: #f6bb1e;
}

.button.secondary {
  color: var(--white);
  background: var(--black);
}

.button.secondary:hover {
  color: var(--yellow);
}

.hero-panel,
.about-list,
.contact-card {
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.07);
}

.hero-panel {
  padding: 28px;
  border-top: 8px solid var(--yellow);
}

.panel-title,
.service-card h3 {
  margin: 0 0 12px;
  font-size: 1.5rem;
}

.about-list h3 {
  margin: 0 0 16px;
  font-size: 1.7rem;
}

.about-list,
.contact-card {
  border-top: 6px solid var(--yellow);
}

.hero-panel ul,
.about-list ul {
  margin: 0;
  padding-left: 20px;
}

.about-list ul li {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.hero-panel ul li::marker,
.about-list ul li::marker {
  color: var(--green);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 30px;
}

.section-heading h2,
.about-copy h2,
.contact h2 {
  font-size: clamp(2.2rem, 4.2vw, 3.4rem);
}

.section-heading p,
.about-copy p,
.contact p {
  color: var(--muted);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.service-card {
  min-height: 200px;
  perspective: 1000px;
  cursor: pointer;
  outline: none;
}

.service-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 200px;
  transition: transform 0.6s ease;
  transform-style: preserve-3d;
}

.service-card:hover .service-card-inner,
.service-card:focus .service-card-inner,
.service-card:focus-within .service-card-inner {
  transform: rotateY(180deg);
}

.service-card-front,
.service-card-back {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  text-align: center;
  border: 1px solid var(--line);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.07);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.service-card-front {
  background: linear-gradient(180deg, #ffffff 0%, #faf7f0 100%);
  border-top: 4px solid var(--yellow);
}

.service-card-front h3 {
  margin: 0;
}

.service-card-back {
  background: var(--black);
  color: var(--white);
  transform: rotateY(180deg);
}

.service-card-back p {
  margin: 0;
}

.service-card:focus-visible .service-card-front,
.service-card:focus-visible .service-card-back {
  outline: 3px solid var(--yellow-dark);
  outline-offset: 2px;
}

.about,
.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.8fr);
  gap: 36px;
  align-items: start;
}

.about-list,
.contact-card {
  padding: 40px;
}


.quote {
  max-width: none;
  background:
    repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.025) 0 2px, transparent 2px 16px),
    var(--black);
  border-top: 6px solid var(--yellow);
  color: var(--white);
}

.quote .section-heading,
.quote-form {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}

.quote .section-heading p {
  color: #d6d1c4;
}

.quote-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.quote-form label {
  display: grid;
  gap: 8px;
  font-weight: 800;
}

.quote-form input,
.quote-form textarea {
  width: 100%;
  padding: 14px;
  font: inherit;
  color: var(--black);
  background: var(--white);
  border: 2px solid transparent;
}

.quote-form input:focus,
.quote-form textarea:focus {
  outline: none;
  border-color: var(--yellow);
}

.full-width {
  grid-column: 1 / -1;
}

.quote-form .button {
  justify-self: start;
}

.contact-card p {
  margin: 0 0 16px;
  color: var(--black);
  font-size: 1.05rem;
}

.contact-card a {
  text-decoration: none;
}

.contact-card p:last-child {
  margin-bottom: 0;
}

.site-footer {
  padding: 30px 20px;
  color: #d6d1c4;
  text-align: center;
  background: var(--black);
  border-top: 4px solid var(--yellow);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 880px) {
  .menu-toggle {
    display: none;
  }

  .site-header {
    justify-content: center;
    gap: 0;
    padding-top: calc(18px + env(safe-area-inset-top));
    padding-bottom: 18px;
  }

  .site-nav-left,
  .site-nav-right {
    display: none !important;
  }

  .logo {
    flex: 0;
  }

  .logo-img {
    height: 58px;
  }

  .hero-inner {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .hero-copy {
    display: contents;
  }

  .about,
  .contact,
  .quote-form {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-inner {
    padding-top: 52px;
  }

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

  .hero-content {
    display: contents;
  }

  .hero-content h1 {
    order: 1;
    margin-top: 0;
  }

  .hero {
    overflow-x: clip;
  }

  .carousel {
    order: 2;
    aspect-ratio: 3 / 4;
    max-width: 280px;
    margin: 0 auto;
    align-self: center;
  }

  .hero-text {
    order: 3;
  }

  .hero-actions {
    order: 4;
    justify-content: center;
  }

  .service-card {
    min-height: auto;
    perspective: none;
  }

  .service-card-inner {
    transform: none !important;
    position: static;
    min-height: 0;
    height: auto;
  }

  .service-card-front,
  .service-card-back {
    position: static;
    transform: none !important;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    display: block;
  }

  .service-card-back {
    color: var(--black);
  }

  .service-card {
    padding: 12px 0;
  }

  .service-card-front h3 {
    font-size: 1.1rem;
    margin-bottom: 4px;
  }

  .service-card-back p {
    font-size: 0.95rem;
    color: var(--muted);
    margin: 0;
  }

  .contact-card strong {
    display: block;
    margin-bottom: 2px;
  }
}

@media (max-width: 560px) {
  .section {
    padding: 34px 18px;
  }

  .site-header {
    padding-left: 18px;
    padding-right: 18px;
  }

  .logo-img {
    height: 56px;
  }

  .hero-inner {
    padding-top: 28px;
  }

  .service-grid {
    grid-template-columns: 1fr;
    gap: 0;
    background: var(--white);
    border: 1px solid var(--line);
    border-top: 4px solid var(--yellow);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.07);
    padding: 4px 20px;
  }

  .service-card {
    padding: 14px 0;
  }

  .service-card + .service-card {
    border-top: 1px solid var(--line);
  }

  .hero-actions,
  .button {
    width: 100%;
  }
}
