:root {
  --brown: #3b2508;
  --brown-2: #5a3a13;
  --beige: #f4ead9;
  --white: #ffffff;
  --black: #15120f;
  --gold: #c99a3d;
  --gold-dark: #a87a25;
  --muted: #6f675d;
  --line: #e7dccb;
}

* {
  box-sizing: border-box;
}

body {
  color: var(--black);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  margin: 0;
}

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

.site-header {
  background: rgba(59, 37, 8, 0.96);
  left: 0;
  position: sticky;
  right: 0;
  top: 0;
  z-index: 20;
}

.navbar-brand,
.nav-link,
.nav-link:hover {
  color: var(--white);
}

.logo-link {
  align-items: center;
  display: inline-flex;
  padding: 0;
}

.logo-link img {
  display: block;
  height: 50px;
  max-width: 214px;
  object-fit: contain;
  width: auto;
}

.nav-link {
  font-weight: 700;
}

.phone-link {
  color: var(--gold);
}

.btn {
  border-radius: 6px;
  font-weight: 800;
  padding: 0.78rem 1.15rem;
}

.btn-gold {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--black);
}

.btn-gold:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  color: var(--white);
}

.btn-light-outline {
  border: 1px solid rgba(255, 255, 255, 0.65);
  color: var(--white);
}

.btn-dark-outline {
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--white);
}

.hero {
  align-items: center;
  background: linear-gradient(rgba(20, 12, 2, 0.36), rgba(20, 12, 2, 0.76)), url("/assets/images/projects/maxco-project-1-exterior.jpg");
  background-color: var(--brown);
  background-position: center;
  background-size: cover;
  color: var(--white);
  display: flex;
  min-height: 78vh;
  position: relative;
}

.hero-content {
  max-width: 820px;
  padding-bottom: 3rem;
  padding-top: 5rem;
}

.hero h1 {
  font-size: clamp(4rem, 10vw, 8rem);
  font-weight: 950;
  letter-spacing: 0;
  line-height: 0.95;
  margin: 0 0 1rem;
}

.hero-copy {
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  max-width: 720px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.eyebrow {
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.trust-bar {
  background: var(--black);
  color: var(--white);
  padding: 1rem 0;
}

.trust-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(5, 1fr);
  text-align: center;
}

.section {
  padding: 5rem 0;
}

.section-heading {
  margin-bottom: 2rem;
  max-width: 760px;
}

.section h1,
.section h2 {
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.05;
}

.section h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
}

.band-light {
  background: var(--beige);
}

.about-section {
  background: linear-gradient(135deg, var(--white) 0%, #fbf6ee 100%);
}

.about-copy p {
  font-size: 1.08rem;
  max-width: 680px;
}

.about-card {
  background: var(--brown);
  border-radius: 8px;
  box-shadow: 0 18px 48px rgba(59, 37, 8, 0.14);
  color: var(--white);
  display: grid;
  gap: 1px;
  overflow: hidden;
}

.about-card div {
  background: rgba(255, 255, 255, 0.06);
  padding: 1.35rem;
}

.about-card strong {
  color: var(--gold);
  display: block;
  font-size: 1.18rem;
  font-weight: 900;
  margin-bottom: 0.35rem;
}

.about-card span {
  display: block;
}

.dark-section {
  background: var(--brown);
  color: var(--white);
}

.narrow {
  max-width: 860px;
}

.split {
  align-items: center;
  display: grid;
  gap: 3rem;
  grid-template-columns: 1fr 1fr;
}

.service-grid,
.card-grid,
.review-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, 1fr);
}

.service-card,
.content-card,
.review-grid article,
.lead-form,
.calculator-form,
.cta-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.5rem;
}

.service-card {
  box-shadow: 0 18px 40px rgba(59, 37, 8, 0.08);
  display: flex;
  flex-direction: column;
  min-height: 100%;
  position: relative;
}

.service-card::before {
  background: linear-gradient(90deg, var(--gold), rgba(201, 154, 61, 0));
  content: "";
  height: 4px;
  left: 1.5rem;
  position: absolute;
  right: 1.5rem;
  top: 0;
}

.service-card-top {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 1.15rem;
}

.service-icon {
  align-items: center;
  background: #fbf3e3;
  border: 1px solid rgba(201, 154, 61, 0.28);
  border-radius: 999px;
  color: var(--brown);
  display: inline-flex;
  height: 48px;
  justify-content: center;
  width: 48px;
}

.service-icon svg {
  fill: none;
  height: 26px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  width: 26px;
}

.service-badge {
  background: var(--brown);
  border-radius: 999px;
  color: var(--white);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  padding: 0.35rem 0.7rem;
  text-transform: uppercase;
}

.service-card h3,
.content-card h2,
.content-card h3 {
  font-size: 1.25rem;
  font-weight: 900;
}

.project-card {
  overflow: hidden;
  padding: 0;
}

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

.project-card-body {
  padding: 1.5rem;
}

.project-card-body a {
  display: inline-block;
}

.project-hero-media {
  border-radius: 8px;
  display: block;
  margin-top: 1.5rem;
  max-height: 420px;
  object-fit: cover;
  width: 100%;
}

.service-card p {
  color: var(--muted);
}

.service-features {
  display: grid;
  gap: 0.55rem;
  margin: 0.35rem 0 1.25rem;
}

.service-features span {
  align-items: center;
  color: var(--black);
  display: flex;
  font-size: 0.94rem;
  font-weight: 750;
  gap: 0.5rem;
}

.service-features span::before {
  background: var(--gold);
  border-radius: 999px;
  content: "";
  height: 7px;
  width: 7px;
}

.service-card a {
  font-weight: 900;
  margin-top: auto;
}

.steps {
  display: grid;
  gap: 0.75rem;
}

.steps div {
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  gap: 1rem;
  padding: 1rem;
}

.steps strong {
  color: var(--gold);
  font-size: 1.4rem;
}

.calculator-form {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, 1fr);
}

.calculator-form button {
  grid-column: span 3;
}

.gallery-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, 1fr);
}

.gallery-tile {
  align-items: flex-start;
  aspect-ratio: 4 / 3;
  background: var(--brown);
  border-radius: 8px;
  color: var(--white);
  display: flex;
  flex-direction: column;
  font-weight: 800;
  justify-content: flex-end;
  padding: 1rem;
  overflow: hidden;
  position: relative;
}

.gallery-tile {
  border: 0;
  cursor: pointer;
  text-align: left;
  width: 100%;
}

.gallery-tile::after {
  background: linear-gradient(180deg, transparent 35%, rgba(21, 18, 15, 0.78));
  content: "";
  inset: 0;
  position: absolute;
  z-index: 1;
}

.gallery-tile span {
  background: rgba(21, 18, 15, 0.72);
  border-radius: 6px;
  padding: 0.4rem 0.6rem;
  position: relative;
  z-index: 2;
}

.gallery-tile small {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.35;
  margin-top: 0.45rem;
  max-width: 90%;
  position: relative;
  z-index: 2;
}

.gallery-tile img {
  height: 100%;
  inset: 0;
  object-fit: cover;
  position: absolute;
  width: 100%;
}

.gallery-video-tile .video-play {
  align-items: center;
  background: var(--gold);
  border-radius: 999px;
  color: var(--black);
  display: inline-flex;
  font-size: 0.75rem;
  font-weight: 950;
  height: 48px;
  justify-content: center;
  left: 50%;
  padding: 0;
  position: absolute;
  text-transform: uppercase;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  z-index: 3;
}

.before-after {
  aspect-ratio: 16 / 7;
  border-radius: 8px;
  margin-top: 1rem;
  overflow: hidden;
  position: relative;
}

.before-after img,
.after-layer {
  height: 100%;
  inset: 0;
  object-fit: cover;
  position: absolute;
  width: 100%;
}

.before-after input {
  bottom: 1rem;
  left: 1rem;
  position: absolute;
  right: 1rem;
  width: calc(100% - 2rem);
  z-index: 3;
}

.before-after span {
  background: rgba(21, 18, 15, 0.72);
  border-radius: 6px;
  color: var(--white);
  font-weight: 900;
  left: 1rem;
  padding: 0.45rem 0.7rem;
  position: absolute;
  top: 1rem;
  z-index: 3;
}

.review-grid article {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
}

.review-grid strong {
  color: var(--gold);
}

details {
  border-bottom: 1px solid var(--line);
  padding: 1rem 0;
}

summary {
  cursor: pointer;
  font-weight: 900;
}

.lead-form,
.mini-form {
  display: grid;
  gap: 1rem;
}

.form-control,
.form-select {
  border-radius: 6px;
  min-height: 48px;
}

.slot-list {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 1rem;
}

.slot-button {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-weight: 850;
  padding: 0.8rem;
}

.slot-button.is-selected {
  background: var(--gold);
  border-color: var(--gold);
}

.lightbox {
  align-items: center;
  background: rgba(0, 0, 0, 0.88);
  bottom: 0;
  display: flex;
  justify-content: center;
  left: 0;
  padding: 2rem;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 100;
}

.lightbox img {
  max-height: 90vh;
  max-width: 90vw;
}

.lightbox video {
  background: var(--black);
  max-height: 90vh;
  max-width: 90vw;
}

.lightbox button {
  background: var(--gold);
  border: 0;
  border-radius: 6px;
  font-size: 2rem;
  position: absolute;
  right: 1rem;
  top: 1rem;
}

.form-check {
  color: var(--muted);
  display: flex;
  gap: 0.55rem;
}

.page-hero {
  background: var(--beige);
  padding-top: 6rem;
}

.article-body {
  font-size: 1.08rem;
}

.cta-panel {
  background: var(--beige);
  margin-top: 2rem;
}

.site-footer {
  background: var(--black);
  color: var(--white);
  padding: 4rem 0 2rem;
}

.site-footer a {
  color: var(--gold);
}

.site-footer h2,
.site-footer h3 {
  font-weight: 900;
}

.footer-logo {
  display: block;
  height: auto;
  margin-bottom: 1rem;
  max-width: 260px;
  width: 100%;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

.social-links a {
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  color: var(--gold);
  display: inline-flex;
  height: 42px;
  justify-content: center;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
  width: 42px;
}

.social-links a:hover {
  background: var(--gold);
  color: var(--black);
  transform: translateY(-2px);
}

.social-links svg {
  fill: currentColor;
  height: 20px;
  width: 20px;
}

.social-links svg rect,
.social-links svg circle,
.social-links svg path {
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.social-links svg rect,
.social-links svg circle {
  fill: none;
}

.social-links svg path {
  fill: none;
}

.social-links a:first-child svg path,
.social-links a:last-child svg path {
  fill: currentColor;
  stroke: none;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 2rem;
  padding-top: 1.5rem;
}

.mobile-call {
  background: var(--gold);
  bottom: 1rem;
  border-radius: 6px;
  color: var(--black);
  display: none;
  font-weight: 900;
  left: 1rem;
  padding: 0.85rem 1rem;
  position: fixed;
  right: 1rem;
  text-align: center;
  z-index: 30;
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 650ms ease, transform 650ms ease;
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal-on-scroll {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 991px) {
  .trust-grid,
  .service-grid,
  .card-grid,
  .review-grid,
  .gallery-grid,
  .split,
  .calculator-form {
    grid-template-columns: 1fr;
  }

  .calculator-form button {
    grid-column: auto;
  }

  .section {
    padding: 3.5rem 0;
  }

  .mobile-call {
    display: block;
  }
}
