/* Base styles for Lakeshore Construction and Contracting */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --ls-black: #111111;
  --ls-white: #ffffff;
  --ls-gray-light: #f3f3f3;
  --ls-gray: #666666;
  --ls-red: #c6122f;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ls-black);
  background-color: var(--ls-white);
  line-height: 1.6;
}

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

a:hover {
  text-decoration: underline;
}

header {
  border-bottom: 1px solid #000;
  background-color: var(--ls-black);
  position: sticky;
  top: 0;
  z-index: 10;
}

.navbar {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem 0.75rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-brand img {
  height: 104px;
  width: auto;
  background-color: transparent;
  border-radius: 0;
  border: none;
  box-shadow: none;
}

/* Larger hero logo on home page */
.hero-logo {
  max-width: 180px;
  margin-bottom: 1rem;
}

.hero-logo img {
  display: block;
  width: 100%;
  height: auto;
}

.nav-brand-text {
  font-size: 0.85rem;
  color: #f5f5f5;
}

.nav-brand-text strong {
  white-space: nowrap;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.25rem;
  font-size: 0.95rem;
}

nav a {
  position: relative;
  color: #f5f5f5;
  font-weight: 500;
  padding-bottom: 0.15rem;
  white-space: nowrap;
}

nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: var(--ls-red);
  transition: width 0.18s ease-out;
}

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

nav a.active {
  color: var(--ls-red);
}

.nav-cta {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.18s ease-out, color 0.18s ease-out,
    border-color 0.18s ease-out, box-shadow 0.18s ease-out,
    transform 0.12s ease-out;
}

.btn-primary {
  background-color: var(--ls-red);
  color: var(--ls-white);
  border-color: var(--ls-red);
}

.btn-outline {
  background-color: #e1e1e1;
  color: var(--ls-black);
  border-color: #d0d0d0;
}

/* Outline style for dark backgrounds (navbar) */
.btn-outline-invert {
  background-color: transparent;
  color: #f5f5f5;
  border-color: #f5f5f5;
}

.btn-primary:hover {
  background-color: #a10f27;
  box-shadow: 0 8px 14px rgba(198, 18, 47, 0.25);
  transform: translateY(-1px);
}

.btn-outline:hover {
  border-color: var(--ls-black);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}

main {
  max-width: 1080px;
  margin: 0 auto;
  padding: 1.5rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 2.5rem;
  padding: 3rem 0 2.5rem;
  margin: 0;
  border-bottom: 1px solid #e1e1e1;
  background: linear-gradient(
      to bottom,
      #fafafa 0%,
      #f5f5f5 55%,
      #ffffff 100%
    );
}

.hero-copy h1 {
  font-size: clamp(2.1rem, 3vw + 1rem, 2.8rem);
  margin-bottom: 1rem;
}

.hero-copy h1 span {
  color: var(--ls-red);
}

.hero-copy p {
  color: var(--ls-gray);
  margin-bottom: 1.25rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.9rem;
  color: var(--ls-gray);
}

.hero-badge {
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  border: 1px solid #e1e1e1;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.hero-panel {
  background-color: var(--ls-black);
  color: var(--ls-white);
  padding: 1.75rem 1.5rem;
  border-radius: 0.75rem;
}

.hero-panel h2 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.hero-panel p {
  font-size: 0.9rem;
  color: #e6e6e6;
}

.section {
  padding: 2.5rem 0;
  border-bottom: 1px solid #e1e1e1;
}

/* Alternate section backgrounds for visual separation */
.section:nth-of-type(even) {
  background-color: #fafafa;
}

.section-header {
  margin-bottom: 1.5rem;
}

.section-kicker {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ls-red);
  margin-bottom: 0.25rem;
}

.section h2 {
  font-size: 1.6rem;
}

.section p {
  color: var(--ls-gray);
  max-width: 680px;
  font-size: 0.95rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.card {
  border-radius: 0.75rem;
  border: 1px solid #e1e1e1;
  padding: 1.25rem;
  background-color: var(--ls-white);
  transition: border-color 0.18s ease-out, box-shadow 0.18s ease-out,
    transform 0.12s ease-out;
}

.card h3 {
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.card p {
  font-size: 0.9rem;
}

.card-tag {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ls-gray);
  margin-bottom: 0.25rem;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.project-card {
  border-radius: 0.75rem;
  border: 1px solid #e1e1e1;
  overflow: hidden;
  background-color: var(--ls-white);
  transition: border-color 0.18s ease-out, box-shadow 0.18s ease-out,
    transform 0.12s ease-out;
}

.project-body {
  padding: 1rem 1.1rem 1.25rem;
}

.project-title {
  font-size: 0.98rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.project-meta {
  font-size: 0.8rem;
  color: var(--ls-gray);
}

.project-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  background-color: var(--ls-gray-light);
  font-size: 0.75rem;
  margin-top: 0.35rem;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 2rem;
  margin-top: 1.75rem;
}

.contact-info p {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.contact-info strong {
  color: var(--ls-black);
}

.contact-form {
  border-radius: 0.75rem;
  border: 1px solid #e1e1e1;
  padding: 1.25rem 1.5rem;
  background-color: var(--ls-gray-light);
}

.form-row {
  display: flex;
  gap: 1rem;
}

.form-group {
  margin-bottom: 1rem;
  flex: 1;
}

label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

input,
textarea,
select {
  width: 100%;
  border-radius: 0.5rem;
  border: 1px solid #d0d0d0;
  padding: 0.45rem 0.6rem;
  font-size: 0.9rem;
  font-family: inherit;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--ls-red);
  box-shadow: 0 0 0 1px rgba(198, 18, 47, 0.12);
}

.badge-muted {
  display: inline-flex;
  padding: 0.15rem 0.5rem;
  font-size: 0.75rem;
  border-radius: 999px;
  background-color: var(--ls-gray-light);
  color: var(--ls-gray);
}

.notice {
  font-size: 0.8rem;
  color: var(--ls-gray);
  margin-top: 0.5rem;
}

footer {
  border-top: 1px solid #e1e1e1;
  background-color: #fafafa;
  margin-top: 2rem;
}

.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--ls-gray);
}

.footer-links {
  display: flex;
  gap: 0.75rem;
}

@media (max-width: 800px) {
  .navbar {
    flex-wrap: wrap;
  }

  nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .contact-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .grid-3,
  .projects-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  main {
    padding: 1.25rem;
  }
}
