:root {
  --header-h: 116px; /* fixed header height: logo 100px + 2 x 8px nav padding */
  --primary: #1a1a1a;
  --accent: #8b7355;
  --light: #f8f7f5;
  --text: #333;
  --muted: #666;
}

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

/* Keep anchor jumps from hiding headings under the fixed header */
section[id] {
  scroll-margin-top: var(--header-h);
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: #fff;
}

h1, h2, h3 {
  font-family: 'Playfair Display', serif;
  font-weight: 500;
  color: var(--primary);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

nav.container {
  padding-top: 8px;
  padding-bottom: 8px;
}

.logo a {
  display: block;
  line-height: 0;
}

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

.nav-links {
  display: flex;
  list-style: none;
  gap: 30px;
}

.nav-links a {
  text-decoration: none;
  color: var(--primary);
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: var(--accent);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
}

.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  margin-top: var(--header-h);
}

.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  z-index: -1;
  filter: brightness(0.7);
}

/* Slightly stronger overlay so hero text stays readable over the light house */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(0,0,0,0.38) 0%, rgba(0,0,0,0.22) 55%, rgba(0,0,0,0.08) 100%);
  pointer-events: none;
}

.hero-content {
  color: white;
  max-width: 700px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  color: white;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 30px;
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: white;
  padding: 14px 28px;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 500;
  transition: background 0.3s;
  border: none;
  cursor: pointer;
}

.btn:hover {
  background: #6e5a42;
}

.about {
  padding: 100px 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.about p {
  margin-bottom: 15px;
  color: var(--muted);
}

.about-image img.headshot {
  width: 100%;
  max-width: 320px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  display: block;
  margin: 0 auto;
}

.about-image .caption {
  text-align: center;
  margin-top: 12px;
  font-size: 0.95rem;
  color: var(--muted);
  font-style: italic;
}

.services {
  background: var(--light);
  padding: 100px 0;
}

.services h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 50px;
}

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

.service-card {
  background: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transition: transform 0.3s;
}

.service-card:hover {
  transform: translateY(-5px);
}

.service-card h3 {
  margin-bottom: 10px;
  font-size: 1.4rem;
}

.design-fees {
  margin-top: 50px;
  background: white;
  border-radius: 8px;
  padding: 44px 48px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  border-left: 4px solid var(--accent);
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 44px;
  align-items: center;
  scroll-margin-top: calc(var(--header-h) + 20px);
}

.design-fees-text h3 {
  font-size: 2rem;
  margin-bottom: 18px;
  color: var(--primary);
}

.design-fees-text p {
  margin-bottom: 14px;
  color: var(--muted);
}

.design-fees-text p:last-child {
  margin-bottom: 0;
  color: var(--primary);
  font-weight: 500;
}

.design-fees-text a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.design-fees-text a:hover {
  color: #6e5a42;
  text-decoration: underline;
}

.design-fees-visual {
  margin: 0;
}

.design-fees-visual img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  display: block;
}

.design-fees-visual figcaption {
  text-align: center;
  margin-top: 12px;
  font-size: 0.9rem;
  color: var(--muted);
  font-style: italic;
}

.projects {
  padding: 100px 20px;
}

.projects h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.subtitle {
  text-align: center;
  color: var(--muted);
  margin-bottom: 40px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.project-card {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.project-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.5s;
}

.project-card:hover img {
  transform: scale(1.05);
}

.project-info {
  padding: 20px;
  background: white;
}

.project-info h3 {
  margin-bottom: 8px;
}

.contact {
  background: var(--light);
  padding: 100px 0;
}

.contact h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 40px;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contact-info p {
  margin-bottom: 10px;
}

.contact-info a {
  color: var(--accent);
  text-decoration: none;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form input,
.contact-form textarea {
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: inherit;
}

footer {
  background: var(--primary);
  color: white;
  text-align: center;
  padding: 30px 0;
}

@media (max-width: 1024px) and (min-width: 769px) {
  .nav-links {
    gap: 20px;
    font-size: 0.95rem;
  }
}

@media (max-width: 768px) {
  :root {
    --header-h: 82px; /* logo 70px + 2 x 6px nav padding */
  }
  nav.container {
    padding-top: 6px;
    padding-bottom: 6px;
  }
  .logo img {
    height: 70px;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 20px;
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
  }
  .nav-links.active {
    display: flex;
  }
  .menu-toggle {
    display: block;
  }
  .hero h1 {
    font-size: 2.2rem;
  }
  .about, .contact-content, .design-fees {
    grid-template-columns: 1fr;
  }
  .design-fees {
    padding: 28px 24px;
    gap: 28px;
    margin-top: 36px;
  }
  .design-fees-text h3 {
    font-size: 1.7rem;
  }
  .hero {
    height: 70vh;
  }
  .hero::after {
    background: rgba(0,0,0,0.3);
  }
}

/* ===== Top of Utah Parade of Homes ===== */
.parade {
  padding: 100px 20px;
  border-top: 1px solid #eee;
}

.parade h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.parade-intro {
  max-width: 820px;
  margin: 0 auto 50px;
  text-align: center;
  color: var(--muted);
}

.parade-intro p {
  margin-bottom: 15px;
}

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

.parade-card {
  display: flex;
  flex-direction: column;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
  transition: transform 0.3s;
}

.parade-card:hover {
  transform: translateY(-5px);
}

.parade-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: cover;
  display: block;
}

/* Card photo links to the project page */
.parade-card-media {
  display: block;
  position: relative;
  overflow: hidden;
}

.parade-card-media img {
  transition: transform 0.5s;
}

.parade-card-media:hover img {
  transform: scale(1.05);
}

.parade-card-media:focus-visible {
  outline: none;
}

/* Focus ring drawn on top of the (scaled) photo so it stays visible */
.parade-card-media:focus-visible::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 8px 8px 0 0;
  box-shadow: inset 0 0 0 3px var(--accent), inset 0 0 0 5px #fff;
  pointer-events: none;
}

.parade-card-media:focus-visible img {
  transform: scale(1.05);
}

@media (prefers-reduced-motion: reduce) {
  .parade-card-media img { transition: none; }
}

.parade-card-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.parade-year {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: var(--accent);
}

.parade-card h3 {
  font-size: 1.5rem;
  margin: 2px 0 10px;
}

.parade-card p {
  color: var(--muted);
  margin: 12px 0 18px;
  flex: 1;
}

.badge {
  display: inline-block;
  align-self: flex-start;
  border: 1px solid var(--accent);
  color: var(--accent);
  background: #faf8f5;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.4;
}

.text-link {
  color: var(--accent);
  font-weight: 500;
  text-decoration: none;
}

.text-link:hover {
  color: #6e5a42;
  text-decoration: underline;
}

/* Neutral placeholder used until real photos / plans are added */
.placeholder {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #f3f0eb 0%, #e7e2da 100%);
  color: #9a917f;
  font-size: 0.85rem;
  text-align: center;
  padding: 12px;
}

.placeholder svg {
  width: 56px;
  height: 56px;
  stroke: #b3a993;
}

.placeholder.wide {
  aspect-ratio: 16 / 9;
}

/* ===== Parade project pages ===== */
.page-intro {
  margin-top: var(--header-h);
  padding: 60px 0 40px;
}

.breadcrumb {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 20px;
}

.breadcrumb a {
  color: var(--accent);
  text-decoration: none;
}

.page-intro h1 {
  font-size: 3rem;
  margin: 4px 0 14px;
}

.page-intro .lead {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.1rem;
  margin-top: 20px;
}

.project-meta {
  margin-top: 16px;
  color: var(--text);
}

.project-meta p {
  margin-bottom: 6px;
}

.listing-link {
  font-size: 0.9rem;
  color: var(--muted);
}

.page-section {
  padding: 50px 0;
}

.page-section h2 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.page-section .section-note {
  color: var(--muted);
  margin-bottom: 25px;
  max-width: 760px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.gallery-grid figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.06);
  border: 1px solid #ece8e0;
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 3 / 2;
  height: auto;
  object-fit: cover;
  display: block;
}

.gallery-caption {
  padding: 10px 14px;
  font-size: 0.85rem;
  color: var(--muted);
  background: #faf8f5;
  border-top: 1px solid #eee;
  line-height: 1.45;
  flex: 1;
}

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

.plans-grid .placeholder,
.model-box {
  border-radius: 8px;
}

.model-box {
  overflow: hidden;
}

.model-box iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  display: block;
}

.alt-bg {
  background: var(--light);
}

.cta-band {
  background: var(--primary);
  color: white;
  text-align: center;
  padding: 70px 20px;
}

.cta-band h2 {
  color: white;
  font-size: 2rem;
  margin-bottom: 12px;
}

.cta-band p {
  max-width: 640px;
  margin: 0 auto 25px;
  color: #ddd;
}

.more-parade {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 30px;
  list-style: none;
}

@media (max-width: 768px) {
  .parade h2 {
    font-size: 2rem;
  }
  .page-intro {
    padding: 40px 0 20px;
  }
  .page-intro h1 {
    font-size: 2.2rem;
  }
}

/* Parade facts + award highlight */
.parade-card p.facts {
  flex: 0 0 auto;
  font-size: 0.85rem;
  margin: 0 0 16px;
  padding-top: 12px;
  border-top: 1px solid #eee;
}

.facts a,
.project-meta a {
  color: var(--accent);
  text-decoration: none;
}

.facts a:hover,
.project-meta a:hover {
  text-decoration: underline;
}

.award {
  border-left: 3px solid var(--accent);
  background: #faf8f5;
  padding: 8px 12px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--primary);
  border-radius: 0 4px 4px 0;
}

.parade-card p.award {
  flex: 0 0 auto;
  margin: 0 0 14px;
  color: var(--primary);
}

.page-intro .award {
  display: inline-block;
  margin-top: 18px;
  font-size: 0.95rem;
}

.page-intro .lead + .lead {
  margin-top: 12px;
}

.listing-link {
  margin-top: 10px;
}

.model-box {
  max-width: 960px;
}

/* Matterport 3D tour embeds */
.embed-16x9 {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  background: #e7e2da;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.embed-16x9 iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.tour-link {
  margin-top: 12px;
  font-size: 0.95rem;
}

.tour-tag {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 8px;
  border-radius: 4px;
  background: var(--primary);
  color: white;
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  vertical-align: middle;
}

/* Project page cover photo */
.project-cover {
  margin: 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  background: #faf8f5;
}

.project-cover img {
  width: 100%;
  height: auto;
  display: block;
}

.cover-caption {
  padding: 10px 16px;
  font-size: 0.85rem;
  color: var(--muted);
  font-style: italic;
  border-top: 1px solid #eee;
}

.parade-disclaimer {
  max-width: 760px;
  margin-top: 14px;
  padding: 12px 16px;
  background: var(--light);
  border-left: 3px solid #b3a993;
  border-radius: 0 4px 4px 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.parade-credits-note {
  max-width: 900px;
  margin: 36px auto 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
}

/* Floor plan cards & cover spacing */
.project-cover-wrap {
  padding-bottom: 30px;
}

.plans-grid.plans-stack {
  grid-template-columns: 1fr;
  max-width: 960px;
  gap: 28px;
}

.plan-card {
  margin: 0;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.06);
  border: 1px solid #ece8e0;
}

.plan-card img {
  width: 100%;
  height: auto;
  display: block;
}

.plan-caption {
  padding: 12px 18px;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--primary);
  border-top: 1px solid #eee;
  background: #faf8f5;
}

.footer-hours {
  margin-bottom: 8px;
  color: #e5e0d5;
  font-size: 0.95rem;
}
