/* Bouza Construction and Lumber */
:root {
  --color-bg: #f4f3ef;
  --color-surface: #ffffff;
  --color-ink: #1c1a16;
  --color-muted: #5f5a52;
  --color-accent: #b45309;
  --color-accent-hover: #d97706;
  --color-cool: #166534;
  --color-nav: #1b1813;
  --color-nav-border: rgba(255, 255, 255, 0.08);
  --shadow-sm: 0 2px 8px rgba(15, 20, 25, 0.06);
  --shadow-md: 0 12px 40px rgba(15, 20, 25, 0.12);
  --radius: 12px;
  --font-display: "Outfit", system-ui, sans-serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;
}

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

body {
  font-family: var(--font-body);
  margin: 0;
  padding: 0;
  line-height: 1.65;
  color: var(--color-ink);
  scroll-behavior: smooth;
  text-align: center;
  background-color: var(--color-bg);
}

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
}

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

a:hover {
  text-decoration: underline;
}

.section-lead {
  max-width: 640px;
  margin: 0 auto 2.5rem;
  color: var(--color-muted);
  font-size: 1.125rem;
}

.cta-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--color-accent), #92400e);
  color: #fff;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-family: var(--font-display);
  font-size: 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  box-shadow: 0 4px 20px rgba(180, 83, 9, 0.35);
  border: none;
  cursor: pointer;
}

.cta-button:hover {
  filter: brightness(1.05);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(180, 83, 9, 0.4);
  text-decoration: none;
  color: #fff;
}

.cta-button--ghost {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.85);
  box-shadow: none;
}

.cta-button--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.cta-button--submit {
  width: 100%;
  font-size: 1.05rem;
}

.cta-button:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

/* Navigation */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--color-nav);
  color: #e8ecf1;
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  color: inherit;
  flex-shrink: 0;
}

.logo:hover {
  text-decoration: none;
  color: inherit;
  opacity: 0.92;
}

.logo-img {
  display: block;
  height: 52px;
  width: auto;
  max-width: min(280px, 58vw);
}

.nav-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links li a {
  font-weight: 600;
  font-size: 0.95rem;
  color: #c8d4e0;
  padding: 10px 14px;
  border-radius: 8px;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-links li a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  text-decoration: none;
}

.hamburger-menu {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  cursor: pointer;
  flex-shrink: 0;
}

.hamburger-menu span {
  display: block;
  height: 3px;
  background-color: #e8ecf1;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger-menu.open span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.hamburger-menu.open span:nth-child(2) {
  opacity: 0;
}

.hamburger-menu.open span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    height: 0;
    overflow: hidden;
    background: #161c24;
    border-top: 1px solid var(--color-nav-border);
    transition: height 0.3s ease;
  }

  .nav-links.active {
    height: auto;
  }

  .nav-links ul {
    flex-direction: column;
    padding: 12px 0 20px;
    gap: 0;
    width: 100%;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links li a {
    display: block;
    width: 100%;
    padding: 14px 24px;
    border-radius: 0;
  }

  .hamburger-menu {
    display: flex;
  }

  .nav-inner {
    padding: 10px 16px;
    gap: 12px;
  }

  .logo {
    flex: 1;
    min-width: 0;
  }

  .logo-img {
    height: 36px;
    max-width: min(190px, 48vw);
  }
}

/* Hero */
.hero {
  position: relative;
  color: #fff;
  padding: clamp(72px, 12vw, 120px) 24px 88px;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slides {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.4s ease;
}

.hero-slide--active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(27, 24, 19, 0.94) 0%, rgba(35, 31, 24, 0.85) 50%, rgba(22, 101, 52, 0.32) 100%);
  z-index: 1;
}

.hero-logo {
  display: block;
  width: min(420px, 88vw);
  height: auto;
  margin: 0 auto 1.25rem;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.35));
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
}

.hero-eyebrow {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.75);
  margin: 0 0 1rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.15;
  margin-bottom: 1.25rem;
  animation: fadeInDown 0.8s ease;
}

.hero-sub {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.88);
  margin: 0 0 2rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeInUp 0.85s ease;
}

.hero-rating {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1.75rem;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  animation: fadeInUp 0.88s ease;
}

.hero-stars {
  color: #fbbf24;
  font-size: 0.95rem;
  letter-spacing: 2px;
}

.hero-rating-text {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
}

.hero-rating-text strong {
  color: #fff;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  animation: fadeInUp 0.9s ease;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Trust strip */
.trust-strip {
  background: var(--color-surface);
  border-bottom: 1px solid rgba(15, 20, 25, 0.06);
  padding: 20px 24px;
}

.trust-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px 24px;
  align-items: center;
}

.trust-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-muted);
}

.trust-item i {
  color: var(--color-accent);
  font-size: 1.1rem;
}

/* Gallery */
.gallery-section {
  padding: 48px 20px 56px;
}

.gallery-heading {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin-bottom: 0.5rem;
}

.gallery-lead {
  margin-bottom: 2rem;
}

.gallery-layout {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.gallery-card--featured {
  max-width: 780px;
  width: 100%;
  margin: 0;
  overflow: hidden;
}

.gallery-card--featured img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  object-position: center;
  transition: transform 0.4s ease;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  width: 100%;
  max-width: 960px;
  padding-top: 16px;
}

@media (max-width: 900px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 640px;
  }
}

.gallery-card {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-sm);
  background: var(--color-surface);
}

.gallery-card img {
  display: block;
  transition: transform 0.4s ease;
}

.gallery-grid .gallery-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  object-position: center;
}

@media (min-width: 900px) {
  .gallery-grid .gallery-card img {
    height: 265px;
  }
}

.gallery-card:hover img {
  transform: scale(1.03);
}

.gallery-card figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 16px;
  background: linear-gradient(transparent, rgba(15, 20, 25, 0.85));
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  text-align: left;
}

/* Services */
.services-section {
  padding: 56px 20px 64px;
  background: var(--color-surface);
}

.services-section h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin-bottom: 0.5rem;
}

.services-container {
  display: flex;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
  max-width: 1100px;
  margin: 0 auto;
}

.service {
  background: var(--color-bg);
  padding: 28px 22px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  width: min(100%, 300px);
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border: 1px solid rgba(15, 20, 25, 0.05);
}

.service:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.service i {
  font-size: 2.25rem;
  color: var(--color-cool);
  margin-bottom: 14px;
}

.service h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
  color: var(--color-ink);
}

.service p {
  font-size: 1rem;
  color: var(--color-muted);
  margin: 0.35rem 0;
}

.contact-note {
  font-size: 0.85rem;
  color: #8a97a8;
  font-style: italic;
}

/* Reviews */
.reviews-section {
  padding: 56px 20px 64px;
  background: var(--color-bg);
}

.reviews-section h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin-bottom: 0.5rem;
}

.reviews-summary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0 auto 2.25rem;
  padding: 12px 22px;
  background: var(--color-surface);
  border: 1px solid rgba(28, 26, 22, 0.07);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}

.reviews-summary-score {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--color-ink);
  line-height: 1;
}

.reviews-summary-stars {
  color: #f59e0b;
  font-size: 1rem;
  letter-spacing: 2px;
}

.reviews-summary-count {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-muted);
}

.reviews-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
  max-width: 1100px;
  margin: 0 auto;
  text-align: left;
}

.review-card {
  margin: 0;
  padding: 28px 24px;
  background: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(15, 20, 25, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.review-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.review-stars {
  color: #f59e0b;
  font-size: 0.9rem;
  letter-spacing: 2px;
  margin-bottom: 14px;
}

.review-card p {
  font-size: 1rem;
  color: var(--color-muted);
  line-height: 1.65;
  margin: 0 0 16px;
  font-style: italic;
}

.review-card footer {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-ink);
  font-style: normal;
}

.review-card cite {
  font-style: normal;
}

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

.review-response {
  margin-top: 16px;
  padding: 14px 16px;
  background: var(--color-bg);
  border-left: 3px solid var(--color-cool);
  border-radius: 8px;
}

.review-response-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-cool);
}

.review-response p {
  margin: 8px 0 0;
  font-size: 0.92rem;
  font-style: normal;
  color: var(--color-muted);
  line-height: 1.55;
}

/* About */
.about-section {
  padding: 56px 24px 64px;
  text-align: center;
  background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-surface) 100%);
}

.about-section h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin-bottom: 1.25rem;
}

.about-section p {
  font-size: 1.1rem;
  max-width: 720px;
  margin: 0 auto 1rem;
  color: var(--color-muted);
}

.about-section strong {
  color: var(--color-ink);
}

.decorative-divider {
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-cool));
  margin: 20px auto;
  border-radius: 3px;
}

/* Contact */
.contact-section {
  padding: 56px 20px 48px;
}

.contact-section h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin-bottom: 0.5rem;
}

.contact-layout {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 32px;
  text-align: left;
}

@media (max-width: 768px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 22px;
  background: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(15, 20, 25, 0.05);
}

.contact-card i {
  font-size: 1.25rem;
  color: var(--color-accent);
  margin-top: 4px;
  width: 24px;
  text-align: center;
}

.contact-card h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-muted);
  margin-bottom: 4px;
  font-family: var(--font-body);
  font-weight: 600;
}

.contact-card p {
  margin: 0;
  font-size: 1rem;
  color: var(--color-ink);
  font-weight: 600;
}

.contact-card a {
  color: var(--color-ink);
}

.contact-map-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: var(--color-cool);
  color: #fff;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  transition: filter 0.2s ease;
}

.contact-map-link:hover {
  filter: brightness(1.1);
  text-decoration: none;
  color: #fff;
}

.contact-form {
  background: var(--color-surface);
  padding: 32px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(15, 20, 25, 0.06);
}

.contact-form-title {
  font-size: 1.35rem;
  margin-bottom: 1.5rem;
  text-align: left;
}

.form-row {
  margin-bottom: 1.1rem;
  text-align: left;
}

.form-row--half {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (max-width: 480px) {
  .form-row--half {
    grid-template-columns: 1fr;
  }
}

.form-row label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-ink);
  margin-bottom: 6px;
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-ink);
  background: var(--color-bg);
  border: 1px solid rgba(15, 20, 25, 0.1);
  border-radius: 10px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--color-cool);
  box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.15);
}

.form-row textarea {
  resize: vertical;
  min-height: 100px;
}

.form-consent {
  margin: 14px 0 0;
  font-size: 0.72rem;
  line-height: 1.5;
  color: var(--color-muted);
  text-align: center;
}

.form-status {
  margin: 0;
  font-size: 0.9rem;
  text-align: center;
}

.form-status:not(:empty) {
  margin-top: 12px;
}

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

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

.form-status--info {
  color: var(--color-muted);
}

/* CTA banner */
.cta-banner {
  width: min(92%, 900px);
  margin: 0 auto 28px;
  padding: 40px 28px;
  text-align: center;
  background: linear-gradient(135deg, #166534 0%, #14532d 50%, #1b1813 100%);
  color: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.cta-banner p {
  margin: 0 0 1.25rem;
  opacity: 0.92;
  font-size: 1.05rem;
}

.cta-banner .cta-button {
  background: #fff;
  color: var(--color-ink);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.cta-banner .cta-button:hover {
  color: var(--color-ink);
  filter: none;
}

/* Scroll to top */
.scroll-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: var(--color-accent);
  color: #fff;
  font-size: 1.25rem;
  cursor: pointer;
  z-index: 999;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.2s ease;
}

.scroll-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}

.scroll-to-top:hover {
  transform: scale(1.05);
}

.nav-links a.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

/* Footer */
.footer {
  background: #0a0d11;
  color: #8a97a8;
  text-align: center;
  padding: 28px 20px 16px;
}

.footer p {
  margin: 0.25rem 0;
}

.footer-sub {
  font-size: 0.9rem;
  color: #6a7686;
}

.footer p.footer-credit {
  margin: 0.75rem auto 0;
  padding-top: 16px;
  font-size: 0.85rem;
  color: #6a7686;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  max-width: 320px;
}

.footer-credit a {
  color: #9fb3c8;
  font-weight: 600;
  text-decoration: none;
}

.footer-credit a:hover {
  color: #cfe0f0;
  text-decoration: underline;
}
