/* ---------- Variables & reset ---------- */
:root {
  --color-bg: #ffffff;
  --color-text: #1f2937;
  --color-muted: #6b7280;
  --color-primary: #2563eb;
  --color-primary-dark: #1d4ed8;
  --color-surface: #f9fafb;
  --color-border: #e5e7eb;
  --radius: 10px;
  --max-width: 1100px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

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

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

a:hover {
  text-decoration: underline;
}

h1, h2, h3 {
  line-height: 1.2;
  margin: 0 0 0.5em;
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.container.narrow {
  max-width: 720px;
}

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

/* ---------- Header / nav ---------- */
.site-header {
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--color-text);
}

.brand:hover {
  text-decoration: none;
}

.site-nav {
  display: flex;
  gap: 1.5rem;
  margin-left: auto;
}

.site-nav a {
  color: var(--color-muted);
  font-weight: 500;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--color-text);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 0;
  padding: 0.5rem;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  margin: 5px 0;
}

@media (max-width: 640px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    padding: 0.9rem 1.25rem;
    border-top: 1px solid var(--color-border);
  }
}

/* ---------- Hero ---------- */
.hero {
  padding: 5rem 0 4rem;
  text-align: center;
  color: #fff;
  background: var(--color-surface) url("../Sidewalk top picture.png") center / cover no-repeat;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.lead {
  font-size: 1.2rem;
  color: var(--color-muted);
  max-width: 560px;
  margin: 0 auto 2rem;
}

.hero .lead {
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: var(--color-primary);
  color: #fff;
  border: 0;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.15s ease;
}

.btn:hover {
  background: var(--color-primary-dark);
  text-decoration: none;
}

/* ---------- Review and before/after ---------- */
.spotlight {
  padding: 4.5rem 0;
  background: #fff;
}

.spotlight + .spotlight {
  padding-top: 0;
}

.spotlight-flip .spotlight-grid {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.9fr);
}

.spotlight-flip .review-quote {
  order: 2;
}

.spotlight-flip .ba-stack {
  order: 1;
  justify-content: flex-start;
}

.spotlight-flip {
  padding-bottom: 1.5rem;
}

.spotlight-photos-only {
  padding-bottom: 1.25rem;
}

.spotlight-flip .ba-card {
  width: auto;
  flex: 1 1 0;
}

.spotlight-flip .ba-card img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.spotlight-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.15fr);
  gap: 2.5rem;
  align-items: center;
}

.spotlight-photos-lg .spotlight-grid {
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.3fr);
}

.ba-stack {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
}

.spotlight-photos-only .ba-stack {
  justify-content: center;
  width: min(100%, 36rem);
  margin-inline: auto;
}

.spotlight-photos-only .ba-card {
  width: 46%;
}

.ba-stack-large .ba-card {
  width: auto;
  flex: 1 1 0;
}

.ba-card {
  width: 42%;
  margin: 0;
  padding: 0.45rem 0.45rem 0.55rem;
  background: #fff;
  border-radius: calc(var(--radius) + 4px);
}

.ba-card figcaption {
  margin: 0.45rem 0 0.1rem;
  font-weight: 600;
  text-align: center;
}

.ba-card img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
}

@media (max-width: 800px) {
  .spotlight-grid,
  .spotlight-photos-lg .spotlight-grid,
  .spotlight-flip .spotlight-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .ba-stack {
    justify-content: center;
  }

  .ba-card {
    width: 46%;
  }

  .ba-stack-large .ba-card,
  .spotlight-flip .ba-card {
    width: auto;
    flex: 1 1 0;
  }

  .spotlight-flip .review-quote,
  .spotlight-flip .ba-stack {
    order: 0;
  }
}

@media (min-width: 1100px) {
  .spotlight-photos-lg > .container,
  .spotlight-flip > .container,
  #about > .container {
    max-width: 1280px;
  }

  .spotlight-photos-lg .spotlight-grid {
    grid-template-columns: minmax(22rem, 0.7fr) minmax(0, 1.55fr);
    gap: 2rem;
  }

  .spotlight-flip .spotlight-grid {
    grid-template-columns: minmax(0, 1.55fr) minmax(22rem, 0.7fr);
    gap: 2rem;
  }
}

@media (min-width: 1400px) {
  .spotlight-photos-lg > .container,
  .spotlight-flip > .container,
  #about > .container {
    max-width: 1500px;
  }

  .spotlight-photos-lg .spotlight-grid {
    grid-template-columns: minmax(24rem, 0.55fr) minmax(0, 1.8fr);
  }

  .spotlight-flip .spotlight-grid {
    grid-template-columns: minmax(0, 1.8fr) minmax(24rem, 0.55fr);
  }
}

/* ---------- Reviews ---------- */
.review {
  padding: 4rem 0;
}

.review-quote {
  margin: 0;
  padding: 2rem;
  border-radius: var(--radius);
  background: var(--color-bg);
}

.review-quote p {
  margin: 0 0 1.25rem;
  font-size: 1.1rem;
  font-style: italic;
}

.review-quote footer {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem;
}

.review-quote cite {
  font-style: normal;
  font-weight: 600;
}

.review-meta {
  color: var(--color-muted);
  font-size: 0.9rem;
}

/* ---------- Before / After placeholders ---------- */
.placeholder-image {
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  border-radius: var(--radius);
  background: repeating-linear-gradient(
    45deg,
    #f3f4f6,
    #f3f4f6 10px,
    #e5e7eb 10px,
    #e5e7eb 20px
  );
  color: var(--color-muted);
  font-weight: 500;
}

/* ---------- Generic page ---------- */
.page {
  padding: 4rem 0;
}

#about.page {
  padding-top: 1.5rem;
}

#contact {
  text-align: center;
}

.about-grid {
  display: grid;
  gap: 1.75rem;
}

.about-copy {
  max-width: 90%;
  margin-inline: auto;
  text-align: center;
}

.about-photo {
  display: block;
  width: 100%;
  max-width: 28rem;
  margin: 0 auto;
  border-radius: var(--radius);
}

@media (min-width: 800px) {
  .about-photo {
    max-width: 36rem;
  }
}

#home,
#about,
#contact {
  scroll-margin-top: 64px;
}

/* ---------- Forms ---------- */
.form {
  display: grid;
  gap: 1.25rem;
  margin-top: 2rem;
}

.form label {
  display: grid;
  gap: 0.4rem;
  font-weight: 500;
}

.form input,
.form textarea {
  font: inherit;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  width: 100%;
}

.form input:focus,
.form textarea:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 1px;
  border-color: transparent;
}

.form .btn {
  justify-self: start;
}

.form-status {
  margin: 0;
  color: var(--color-muted);
  min-height: 1.5em;
}

.form-status.error {
  color: #b91c1c;
}

.form-status.success {
  color: #15803d;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 2rem 0;
  text-align: center;
  color: var(--color-muted);
  font-size: 0.9rem;
}

.site-footer p {
  margin: 0;
}
