:root {
  --red: #680B0B;
  --yellow: #D4AE0F;
  --blue: #020A68;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background: white;
  color: #222;
}

/* ── Header ── */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 40px;
  border-bottom: 4px solid var(--red);
}

.site-header .logo img {
  max-height: 90px;
  display: block;
}

.contact-info {
  text-align: right;
}

.contact-info .phone {
  font-size: 1.6rem;
  font-weight: bold;
  color: var(--red);
}

.contact-info .location {
  font-size: 1rem;
  color: #555;
  margin-top: 4px;
}

/* ── Nav ── */
nav {
  background: var(--yellow);
  padding: 0 40px;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 0;
}

nav ul li a {
  display: block;
  padding: 14px 20px;
  text-decoration: none;
  color: #111;
  font-weight: bold;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: background 0.2s, color 0.2s;
}

nav ul li a:hover {
  background: var(--red);
  color: white;
}

/* ── Slideshow ── */
.slideshow {
  position: relative;
  width: 100%;
  height: 480px;
  overflow: hidden;
  background: #444;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide.active {
  opacity: 1;
}

/* placeholder slides — replace background-color with background-image: url(...) */
.slide-1 { background-color: #6b7c85; }
.slide-2 { background-color: #7a6b5a; }
.slide-3 { background-color: #5a6b7a; }
.slide-4 { background-color: #6b5a7a; }
.slide-5 { background-color: #7a7a5a; }

.slide-placeholder-label {
  color: rgba(255,255,255,0.35);
  font-size: 1.1rem;
  font-style: italic;
  user-select: none;
}

.slide-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: white;
  border: none;
  font-size: 3rem;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  z-index: 10;
  opacity: 0.5;
  transition: opacity 0.2s;
  user-select: none;
}

.slide-arrow:hover {
  opacity: 0.9;
}

.slide-prev { left: 0; }
.slide-next { right: 0; }

.slideshow-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

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

.dot.active {
  background: white;
}

/* ── Offerings ── */
.offerings {
  padding: 56px 40px;
}

.offerings h2 {
  color: var(--blue);
  font-size: 2rem;
  margin-bottom: 36px;
  text-align: center;
  border-bottom: 3px solid var(--red);
  padding-bottom: 12px;
}

.offerings-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

/* 3 on first row */
.offering-card {
  position: relative;
  width: calc(33.333% - 14px);
  min-width: 220px;
  height: 220px;
  overflow: hidden;
  cursor: default;
}

/* 2 on second row */
.offering-card:nth-child(n+4) {
  width: calc(50% - 10px);
}

.card-bg {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.4s ease;
}

.offering-card:hover .card-bg {
  transform: scale(1.05);
}

/* placeholder card backgrounds — replace with background-image: url(...) */
.card-kitchens { background-color: #8a7a6a; }
.card-basement { background-color: #6a8a7a; }
.card-doors    { background-color: #7a6a8a; }
.card-roofing  { background-color: #8a8a6a; }
.card-decks    { background-color: #6a7a8a; }

.card-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--red);
  padding: 12px 16px;
  color: white;
  font-weight: bold;
  font-size: 0.95rem;
}

/* ── Modal ── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.open {
  display: flex;
}

.modal-box {
  background: white;
  max-width: 560px;
  width: 100%;
  position: relative;
  border-top: 5px solid var(--red);
  overflow: hidden;
}

#modal-image {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: center;
}

.modal-content {
  padding: 28px 36px 36px;
}

.modal-box h2 {
  color: var(--blue);
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.modal-box p {
  line-height: 1.75;
  color: #333;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  color: #555;
}

.modal-close:hover {
  color: var(--red);
}

.offering-card {
  cursor: pointer;
}

/* ── Who Am I ── */
.about {
  padding: 56px 40px;
  background: #f7f7f7;
  border-top: 4px solid var(--red);
}

.about h2 {
  color: var(--blue);
  font-size: 2rem;
  margin-bottom: 28px;
}

.about-content {
  max-width: 860px;
}

.about p {
  margin-bottom: 18px;
  line-height: 1.75;
  color: #333;
}

/* ── Footer ── */
footer {
  background: var(--blue);
  color: rgba(255,255,255,0.8);
  text-align: center;
  padding: 20px 40px;
  font-size: 0.875rem;
}

footer a {
  color: var(--yellow);
  text-decoration: none;
}

/* ── Responsive ── */
@media (max-width: 820px) {
  .offering-card,
  .offering-card:nth-child(n+4) {
    width: calc(50% - 10px);
  }
}

@media (max-width: 600px) {
  .site-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
    padding: 16px 20px;
  }

  .contact-info {
    text-align: center;
  }

  nav {
    padding: 0 20px;
  }

  nav ul {
    flex-wrap: wrap;
  }

  nav ul li a {
    padding: 10px 14px;
    font-size: 0.85rem;
  }

  .slideshow {
    height: 260px;
  }

  .offerings {
    padding: 36px 20px;
  }

  .offering-card,
  .offering-card:nth-child(n+4) {
    width: 100%;
    min-width: unset;
    height: 180px;
  }

  .about {
    padding: 36px 20px;
  }
}
