/* Brand colors taken from the logo */
:root {
  --navy: #14233f;
  --navy-dark: #0d182c;
  --red: #8c2b1c;
  --red-dark: #6f2115;
  --cream: #f7f1e6;
  --tan: #b08a55;
  /* Each device's built-in UI font: Segoe UI, San Francisco, Roboto */
  --bs-body-font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body {
  color: #222;
  font-size: 1.05rem;
}

h1, h2, h3 {
  font-weight: 800;
  letter-spacing: -.01em;
}

/* Nav */
.site-nav {
  background: #fff;
  border-bottom: 3px solid var(--navy);
}
.brand-name {
  color: var(--navy);
  font-weight: 800;
  line-height: 1.1;
  font-size: 1.3rem;
}
.brand-sub {
  color: var(--red);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.site-nav .nav-link {
  color: var(--navy);
  font-weight: 500;
}
.site-nav .nav-link:hover {
  color: var(--red);
}

/* Buttons */
.btn-brand {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--red);
  --bs-btn-border-color: var(--red);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--red-dark);
  --bs-btn-hover-border-color: var(--red-dark);
  --bs-btn-active-bg: var(--red-dark);
  font-weight: 600;
}

/* Hero */
.hero {
  --hero-shade: linear-gradient(90deg, rgba(13, 24, 44, .92) 0%, rgba(13, 24, 44, .75) 55%, rgba(13, 24, 44, .35) 100%);
  /* Phones get the smaller photo; keep these in sync with the preload links in index.html */
  background: var(--hero-shade), url("../images/hero-bathroom-900.jpg") center / cover no-repeat;
  min-height: min(70vh, 640px);
  display: flex;
  align-items: center;
}
@media (min-width: 768px) {
  .hero {
    background-image: var(--hero-shade), url("../images/hero-bathroom-1600.jpg");
  }
}
.eyebrow {
  color: #e9d6b4;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .9rem;
}

/* Sections */
.section {
  padding: 5rem 0;
}
.section-title {
  color: var(--navy);
  font-weight: 700;
  margin-bottom: 1rem;
}
.measure {
  max-width: 38rem;
}
.bg-cream {
  background: var(--cream);
}
.bg-navy {
  background: var(--navy);
}

/* Services */
.service-card {
  background: #fff;
  border: 1px solid #e6e1d8;
  border-top: 4px solid var(--navy);
  border-radius: .5rem;
  padding: 1.5rem;
}
.service-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
}
.service-card p {
  margin-bottom: 0;
  color: #555;
}
.service-card-alt {
  border-top-color: var(--red);
}

/* Project photos: photo with an attached caption bar */
.work-item {
  margin: 0;
  height: 100%;
  background: #fff;
  border-radius: .5rem;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(20, 35, 63, .12);
}
.work-item img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}
.work-item figcaption {
  padding: .75rem 1rem;
  font-weight: 600;
  color: var(--navy);
  border-top: 3px solid var(--red);
}
.work-cta {
  background: var(--navy);
  color: #fff;
  border-radius: .5rem;
}
.work-cta h3 {
  color: #fff;
}

/* About */
.checks {
  list-style: none;
  padding: 0;
}
.checks li {
  padding-left: 1.75rem;
  position: relative;
  margin-bottom: .4rem;
}
.checks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--red);
  font-weight: 700;
}

/* Service area */
.town-list {
  list-style: none;
  padding: 0;
  margin: 0;
  columns: 2;
}
@media (min-width: 576px) {
  .town-list { columns: 3; }
}
.town-list li {
  padding: .35rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, .15);
  break-inside: avoid;
}

/* Contact */
.contact-line .label {
  display: inline-block;
  min-width: 5.5rem;
  font-weight: 600;
  color: var(--navy);
}
.contact-line a {
  color: var(--red);
  word-break: break-word;
}
.hours-card {
  background: var(--cream);
  border-radius: .5rem;
  padding: 1.5rem;
}
.hours-card .table {
  --bs-table-bg: transparent;
}

/* Footer */
.site-footer {
  background: var(--navy-dark);
}

/* Offset anchor jumps for the sticky header */
section[id] {
  scroll-margin-top: 80px;
}
