:root {
  --ink: #0f1215;
  --slate: #6b6f74;
  --sand: #fdfdfc;
  --linen: #f7f3ee;
  --clay: #cba279;
  --forest: #2a3a32;
  --moss: #b1c7bb;
  --gold: #d8b68e;
  --cream: #fffefb;
  --shadow: 0 20px 40px rgba(15, 18, 21, 0.08);
  --radius-lg: 32px;
  --radius-md: 20px;
  --radius-sm: 12px;
  --content-width: min(1240px, 94vw);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Nunito Sans", "Segoe UI", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at top, #ffffff 0%, #f9f7f4 55%, #fefefe 100%);
  line-height: 1.6;
}

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

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

p {
  margin: 0 0 1rem;
}

main {
  display: block;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(195, 166, 142, 0.35);
}

.navbar {
  width: var(--content-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-size: 1.4rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.brand span {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--slate);
  font-family: "Nunito Sans", "Segoe UI", sans-serif;
}

.nav-links {
  display: flex;
  gap: 24px;
  align-items: center;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--slate);
}

.nav-links a {
  position: relative;
  padding-bottom: 4px;
  color: var(--slate);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--clay);
  transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--slate);
  background: transparent;
  color: var(--ink);
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 600;
}

.hero {
  width: var(--content-width);
  margin: 28px auto 0;
  padding: 72px 70px 64px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(244, 239, 231, 0.95));
  color: #153328;
  box-shadow: 0 25px 40px rgba(15, 18, 21, 0.08);
  position: relative;
  overflow: hidden;
}

.hero.hero-home {
  background-image:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(247, 244, 238, 0.92)),
    url("/images/hardwood_floors/hardwood-flooring-002.webp");
  background-size: cover;
  background-position: center;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.15), transparent 55%);
  pointer-events: none;
}

.hero h1 {
  font-family: "Times New Roman", "Times", serif;
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  margin-bottom: 14px;
}

.hero p {
  max-width: 560px;
  font-size: 1.05rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

.hero img {
  margin-top: 18px;
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 12px 26px rgba(31, 26, 23, 0.2);
  aspect-ratio: 16 / 9;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #fef9f4, #f2e6cd);
  color: var(--forest);
  box-shadow: 0 12px 28px rgba(47, 74, 62, 0.15);
}

.btn-secondary {
  background: transparent;
  color: var(--forest);
  border: 1px solid rgba(47, 74, 62, 0.2);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(31, 26, 23, 0.2);
}

.section {
  width: var(--content-width);
  margin: 0 auto;
  padding: 64px 0;
}

.section.section--paired {
  padding-top: 40px;
  padding-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.breadcrumbs {
  width: var(--content-width);
  margin: 20px auto 0;
  font-size: 0.9rem;
  color: var(--slate);
}

.breadcrumbs ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.breadcrumbs li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.breadcrumbs li::after {
  content: "/";
  color: rgba(75, 85, 89, 0.5);
}

.breadcrumbs li:last-child::after {
  content: "";
}

.breadcrumbs a {
  color: var(--forest);
  font-weight: 600;
}

.section h2 {
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-size: clamp(2rem, 3.2vw, 2.8rem);
  margin-bottom: 18px;
}

.section.lede {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
  align-items: center;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}

.card {
  padding: 28px;
  border-radius: var(--radius-md);
  background: #ffffff;
  box-shadow: 0 18px 38px rgba(15, 18, 21, 0.08);
  border: 1px solid rgba(31, 26, 23, 0.08);
}

.card h3 {
  margin-top: 0;
  font-size: 1.2rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(47, 74, 62, 0.12);
  color: var(--forest);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.feature-list {
  display: grid;
  gap: 16px;
}

.feature {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.feature span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: rgba(194, 106, 58, 0.2);
  color: var(--clay);
  font-weight: 700;
}

.gallery-preview {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 110px;
  gap: 14px;
}

.gallery-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 12px 22px rgba(31, 26, 23, 0.16);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-preview img:nth-child(1),
.gallery-preview img:nth-child(4) {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-preview img:nth-child(3) {
  grid-column: span 2;
}

.gallery-preview img:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 16px 30px rgba(31, 26, 23, 0.2);
}
.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  align-items: center;
}

.review-card {
  padding: 22px;
  border-radius: 18px;
  background: var(--cream);
  border: 1px solid rgba(47, 74, 62, 0.1);
  box-shadow: 0 10px 24px rgba(31, 26, 23, 0.08);
}

.review-card .stars {
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.2em;
}

.review-card cite {
  display: block;
  margin-top: 12px;
  font-style: normal;
  color: var(--slate);
  font-weight: 600;
}

.review-text.clamped {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.review-toggle {
  background: none;
  border: none;
  color: var(--clay);
  font-weight: 700;
  padding: 0;
  margin-top: 8px;
  cursor: pointer;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.service-card {
  background: var(--cream);
  border-radius: var(--radius-md);
  padding: 24px;
  border: 1px solid rgba(31, 26, 23, 0.1);
  box-shadow: 0 10px 24px rgba(31, 26, 23, 0.08);
}

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

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag {
  background: rgba(194, 106, 58, 0.15);
  color: var(--clay);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.8rem;
  font-weight: 600;
}

.city-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.city-service-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(31, 26, 23, 0.12);
  background: rgba(255, 255, 255, 0.7);
  color: var(--charcoal);
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(31, 26, 23, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.city-service-card:hover,
.city-service-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 16px 26px rgba(31, 26, 23, 0.14);
}

.city-service-card .service-name {
  font-weight: 700;
  font-size: 0.95rem;
}

.city-service-card .service-city {
  font-size: 0.85rem;
  color: rgba(31, 26, 23, 0.7);
}

.service-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.service-list li {
  border-radius: 14px;
  border: 1px solid rgba(31, 26, 23, 0.1);
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 8px 18px rgba(31, 26, 23, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-list li:hover,
.service-list li:focus-within {
  transform: translateY(-2px);
  box-shadow: 0 12px 20px rgba(31, 26, 23, 0.12);
}

.service-list li a {
  display: block;
  font-weight: 600;
  color: var(--ink);
}

.city-directory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.city-directory-card {
  background: rgba(255, 255, 255, 0.85);
  padding: 22px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(31, 26, 23, 0.12);
  box-shadow: 0 12px 24px rgba(31, 26, 23, 0.08);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.city-directory-card h3 {
  margin: 0;
  font-size: 1.15rem;
}

.city-directory-card h3 a {
  color: var(--ink);
  font-weight: 700;
}

.city-directory-card p {
  margin: 0;
  color: var(--slate);
}

.city-directory-card .city-link-note {
  font-size: 0.8rem;
  color: rgba(31, 26, 23, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.city-directory-card:hover,
.city-directory-card:focus-within {
  transform: translateY(-2px);
  box-shadow: 0 16px 26px rgba(31, 26, 23, 0.12);
}

.gallery-section {
  margin-bottom: 44px;
}

.gallery-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.gallery-nav a {
  padding: 8px 14px;
  background: rgba(47, 74, 62, 0.12);
  color: var(--forest);
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.85rem;
}

.service-areas-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 24px;
  position: sticky;
  top: 78px;
  z-index: 20;
  background: rgba(255, 250, 242, 0.92);
  backdrop-filter: blur(8px);
  padding: 10px 0;
}

.service-areas-nav a {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(194, 106, 58, 0.15);
  color: var(--clay);
  font-weight: 700;
  font-size: 0.8rem;
}

.service-areas-nav a.active {
  background: var(--clay);
  color: var(--cream);
}

.gallery-grid {
  column-count: 3;
  column-gap: 16px;
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 16px;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 22px rgba(31, 26, 23, 0.12);
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.04);
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(20, 18, 16, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 2000;
}

.lightbox.active {
  display: flex;
}

.lightbox-inner {
  position: relative;
  max-width: min(1100px, 92vw);
  max-height: 84vh;
}

.lightbox img {
  width: 100%;
  max-height: 84vh;
  object-fit: contain;
  border-radius: 16px;
  transition: opacity 0.2s ease;
  position: relative;
  z-index: 1;
}

.lightbox-loading {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  color: var(--cream);
  font-weight: 700;
  background: rgba(28, 26, 23, 0.35);
  border-radius: 16px;
  z-index: 2;
}

.lightbox-controls {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  gap: 10px;
  z-index: 3;
}

.icon-btn {
  background: rgba(255, 250, 242, 0.92);
  border: none;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
}

.lightbox-nav {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
  z-index: 2;
}

.lightbox-nav button {
  pointer-events: all;
  background: rgba(255, 250, 242, 0.85);
  border: none;
  padding: 12px 16px;
  border-radius: 999px;
  margin: 0 12px;
  cursor: pointer;
  font-weight: 700;
}

.form-card {
  background: var(--cream);
  padding: 28px;
  border-radius: 20px;
  box-shadow: 0 14px 30px rgba(31, 26, 23, 0.1);
  border: 1px solid rgba(31, 26, 23, 0.1);
}

form label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
}

form input,
form select,
form textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(31, 26, 23, 0.2);
  margin-bottom: 16px;
  font-family: inherit;
}

form textarea {
  min-height: 140px;
  resize: vertical;
}

.photo-input-group {
  margin-bottom: 16px;
}

.photo-input-wrapper {
  display: block;
  position: relative;
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(31, 26, 23, 0.12);
  background: #fff;
  padding: 4px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.photo-input-wrapper .photo-input-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(242, 226, 214, 0.95), rgba(226, 204, 176, 0.95));
  color: #2f4a3e;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: 1px solid rgba(31, 26, 23, 0.08);
  box-shadow: inset 0 -2px 0 rgba(255, 255, 255, 0.6), 0 18px 30px rgba(31, 26, 23, 0.1);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
}

.photo-input-wrapper .photo-input-button:hover,
.photo-input-wrapper:focus-within .photo-input-button {
  transform: translateY(-1px);
  box-shadow: inset 0 -2px 0 rgba(255, 255, 255, 0.6), 0 22px 36px rgba(31, 26, 23, 0.15);
  background: linear-gradient(135deg, rgba(244, 232, 219, 0.95), rgba(234, 210, 181, 0.95));
}

.photo-input-wrapper input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.photo-hint {
  margin: 6px 0 14px;
  font-size: 0.85rem;
  color: rgba(31, 26, 23, 0.65);
}


.service-directory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.service-directory-card {
  background: rgba(255, 255, 255, 0.95);
  padding: 22px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(31, 26, 23, 0.08);
  box-shadow: 0 12px 26px rgba(15, 18, 21, 0.08);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.service-directory-card h3 {
  margin: 0;
  font-size: 1.05rem;
}

.service-directory-card p {
  margin: 0;
  color: var(--slate);
}

.service-area-callout {
  margin-top: 14px;
  display: flex;
  justify-content: center;
}

.service-area-callout .card {
  width: min(560px, 100%);
  text-align: center;
  background: linear-gradient(135deg, rgba(247, 245, 240, 0.9), rgba(237, 229, 220, 0.9));
  border: 1px solid rgba(31, 26, 23, 0.08);
}

.service-area-callout h2 {
  margin-top: 0;
}

.service-area-callout p {
  margin-bottom: 16px;
}

.service-areas-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(15, 18, 21, 0.3);
  background: #2f4a3e;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-areas-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(15, 18, 21, 0.25);
}

.form-status {
  margin-top: 12px;
  font-weight: 600;
}

.site-footer {
  background: #fefdf8;
  color: var(--ink);
  padding: 48px 0;
  margin-top: 60px;
  border-top: 1px solid rgba(15, 18, 21, 0.08);
}

.footer-grid {
  width: var(--content-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.footer-grid h3 {
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  margin-top: 0;
}

.footer-grid a {
  color: var(--forest);
}

.footer-bottom {
  text-align: center;
  margin-top: 24px;
  font-size: 0.85rem;
  color: var(--slate);
}

@media (max-width: 960px) {
  .hero {
    padding: 56px 36px;
  }
  .gallery-grid {
    column-count: 2;
  }
  .gallery-preview {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 120px;
  }
  .gallery-preview img:nth-child(1),
  .gallery-preview img:nth-child(4),
  .gallery-preview img:nth-child(3) {
    grid-column: span 1;
    grid-row: span 1;
  }
}

@media (max-width: 720px) {
  .navbar {
    flex-wrap: wrap;
  }
  .nav-toggle {
    display: inline-flex;
  }
  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 0;
  }
  .nav-links a {
    width: 100%;
    padding: 12px 0;
  }
  .nav-links.open {
    display: flex;
  }
  .hero {
    padding: 48px 28px;
  }
  .gallery-grid {
    column-count: 2;
  }
  .gallery-preview {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 120px;
  }
  .gallery-preview img:nth-child(1),
  .gallery-preview img:nth-child(4),
  .gallery-preview img:nth-child(3) {
    grid-column: span 2;
    grid-row: span 1;
  }
  .gallery-item img {
    aspect-ratio: 4 / 3;
    object-fit: cover;
  }
  .lightbox-nav button {
    margin: 0 6px;
  }
}

@media (max-width: 600px) {
  .service-areas-nav {
    top: 62px;
    padding: 6px 0;
    gap: 8px;
  }
  .service-areas-nav a {
    padding: 5px 10px;
    font-size: 0.75rem;
  }
}

@media (max-width: 520px) {
  .gallery-grid {
    column-count: 1;
  }
  .gallery-item img {
    max-height: 260px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
