:root {
  --brand: #2b2520;
  --brand-dark: #12100d;
  --accent: #f5b82e;
  --accent-dark: #c98a12;
  --gold-soft: #fff4d6;
  --ink: #211d18;
  --muted: #746a5d;
  --light: #fff8e8;
}

* { box-sizing: border-box; }

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  line-height: 1.65;
  background: #fff;
}

.navbar {
  background: rgba(18, 16, 13, 0.97);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.16);
  border-bottom: 1px solid rgba(245, 184, 46, 0.35);
}

.navbar-brand {
  font-weight: 650;
  letter-spacing: -0.01em;
}

.navbar-brand span {
  font-weight: 650;
  line-height: 1.15;
}

.nav-link {
  color: rgba(255, 255, 255, 0.82) !important;
  font-weight: 500;
  letter-spacing: .01em;
}

.nav-link:hover,
.nav-link.active { color: #fff !important; }

.btn-brand {
  background: var(--accent);
  border: 0;
  color: #17120c;
  font-weight: 800;
  padding: 0.85rem 1.2rem;
  border-radius: 999px;
}

.btn-brand:hover {
  background: var(--accent-dark);
  color: #111;
}

.btn-outline-brand {
  border: 2px solid var(--accent);
  color: var(--brand-dark);
  font-weight: 800;
  padding: 0.75rem 1.1rem;
  border-radius: 999px;
}

.btn-outline-brand:hover {
  background: var(--accent);
  color: var(--brand-dark);
}

.hero {
    position: relative;
    min-height: 88vh;
    display: flex;
    align-items: center;
    background: linear-gradient(120deg, rgba(18, 16, 13, 0.94), rgba(54, 42, 25, 0.78)), url('assets/photos/full/home-front-slat-fencing.webp');
    background-size: 110%;
    background-position: center;
    background-repeat: no-repeat;
    color: #fff;
    padding: 8rem 0 5rem;
}

.hero .container {
  position: relative;
  z-index: 3;
}

.hero h1,
.page-hero h1 {
  font-size: clamp(2.4rem, 5vw, 5rem);
  font-weight: lighter;
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.hero p { font-size: 1.15rem; max-width: 690px; color: rgba(255,255,255,.88); }

.hero-card {
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.25);
  padding: 2rem;
}

.hero-stat {
  border-left: 3px solid var(--accent);
  padding-left: 1rem;
  margin-bottom: 1rem;
}

.section-padding { padding: 5rem 0; }
.bg-soft { background: var(--light); }

.section-title {
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--brand-dark);
}

.kicker {
  color: var(--accent);
  text-transform: uppercase;
  font-size: .82rem;
  letter-spacing: .14em;
  font-weight: 900;
}

.service-card,
.project-card,
.contact-card,
.feature-card {
  border: 0;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 18px 45px rgba(27, 42, 38, 0.09);
  height: 100%;
}

.service-card .icon,
.feature-card .icon {
  width: 54px;
  height: 54px;
  display: inline-grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(245, 184, 46, 0.24), rgba(255, 244, 214, 0.95));
  color: var(--brand-dark);
  font-size: 1.5rem;
}

.project-img {
  height: 240px;
  object-fit: cover;
}

.check-list {
  padding: 0;
  list-style: none;
}

.check-list li {
  margin-bottom: .75rem;
  padding-left: 1.9rem;
  position: relative;
}

.check-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--brand);
  font-weight: 900;
}

.page-hero {
  padding: 8rem 0 4.5rem;
  background: linear-gradient(120deg, var(--brand-dark), #3a2b16);
  color: #fff;
}

.form-control,
.form-select {
  border-radius: 14px;
  padding: .9rem 1rem;
  border: 1px solid #ead8aa;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 .25rem rgba(245, 184, 46, .22);
}

footer {
  background: linear-gradient(180deg, var(--brand-dark), #21180d);
  color: rgba(255,255,255,.78);
  padding: 3rem 0 1.5rem;
}

footer a { color: rgba(255,255,255,.88); text-decoration: none; }
footer a:hover { color: #fff; }

.footer-brand { font-weight: 900; color: #fff; }

@media (max-width: 991px) {
  .hero { min-height: auto; padding-top: 7rem; }
  .hero-card { margin-top: 2rem; }
}


.brand-logo {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.28);
  background: #fff;
}

.footer-logo {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.photo-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  box-shadow: 0 18px 45px rgba(27, 42, 38, 0.09);
  background: #fff;
  height: 100%;
}

.photo-card > img:not(.photo-logo-overlay) {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}

.photo-card:hover > img:not(.photo-logo-overlay) { transform: scale(1.04); }

.photo-logo-overlay {
  position: absolute;
  top: .85rem;
  left: .85rem;
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.92);
  background: #fff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
  z-index: 2;
  pointer-events: none;
}

.photo-caption {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  background: rgba(18, 16, 13, 0.88);
  color: #fff;
  font-weight: 800;
  border-radius: 999px;
  padding: .45rem .9rem;
  box-shadow: 0 10px 25px rgba(0,0,0,.18);
}

@media (max-width: 575px) {
  .navbar-brand span { font-size: .95rem; }
  .brand-logo { width: 40px; height: 40px; }
  .photo-card > img:not(.photo-logo-overlay) { height: 220px; }
}

.gallery-grid .gallery-item[hidden] { display: none !important; }

.gallery-link {
  display: block;
  color: inherit;
  text-decoration: none;
  cursor: zoom-in;
}

.photo-caption {
  max-width: calc(100% - 2rem);
  border-radius: 18px;
  line-height: 1.25;
}

.photo-caption span {
  display: block;
  color: var(--accent);
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.gallery-filters .btn {
  padding: .55rem .9rem;
  font-size: .9rem;
}

.gallery-filters .btn.active {
  background: var(--accent);
  color: var(--brand-dark);
}

.gallery-modal img {
  max-height: 82vh;
  object-fit: contain;
  background: #111;
}


/* MS logo inspired theme polish */
.nav-link:hover,
.nav-link.active {
  color: var(--accent) !important;
}

.btn-brand {
  box-shadow: 0 12px 28px rgba(245, 184, 46, 0.28);
}

.btn-outline-brand:hover,
.gallery-filters .btn.active {
  border-color: var(--accent);
  box-shadow: 0 10px 24px rgba(245, 184, 46, 0.18);
}

.hero-card {
  background: rgba(18, 16, 13, 0.42);
  border-color: rgba(245, 184, 46, 0.24);
}

.section-title {
  text-shadow: 0 1px 0 rgba(245, 184, 46, 0.08);
}

.service-card,
.project-card,
.contact-card,
.feature-card,
.photo-card {
  border: 1px solid rgba(245, 184, 46, 0.18);
}

.brand-logo,
.footer-logo,
.photo-logo-overlay {
  border-color: rgba(245, 184, 46, 0.9);
}

.photo-caption {
  border: 1px solid rgba(245, 184, 46, 0.35);
}

footer {
  border-top: 4px solid var(--accent);
}


/* Gallery modal title now appears inside the popup, above the enlarged image */
.gallery-modal-content {
  position: relative;
  background: #111;
  border-radius: 24px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.gallery-modal.fade .modal-dialog {
  transform: scale(.88);
  transition: transform .24s ease-out, opacity .24s ease-out;
}

.gallery-modal.show .modal-dialog {
  transform: scale(1);
}

.gallery-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 5;
}

.gallery-modal-nav {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(245, 184, 46, 0.55);
  border-radius: 50%;
  background: rgba(18, 16, 13, 0.82);
  color: #fff;
  font-size: 2.4rem;
  line-height: 1;
  display: grid;
  place-items: center;
  transform: translateY(-50%);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.32);
}

.gallery-modal-nav:hover {
  background: var(--accent);
  color: var(--brand-dark);
}

.gallery-modal-nav[hidden] {
  display: none !important;
}

.gallery-modal-prev {
  left: 18px;
}

.gallery-modal-next {
  right: 18px;
}

.gallery-modal-title {
  color: #fff;
  background: linear-gradient(90deg, rgba(18, 16, 13, 0.98), rgba(58, 43, 22, 0.96));
  border-bottom: 2px solid var(--accent);
  font-weight: 700;
  text-align: center;
  padding: 1rem 3.5rem 1rem 1.25rem;
  min-height: 3.5rem;
}

.gallery-modal-img {
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  background: #111;
}

.gallery-modal-img.is-zooming {
  animation: galleryImageZoom .24s ease-out;
}

@keyframes galleryImageZoom {
  from {
    opacity: .55;
    transform: scale(.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.quote-highlight {
  border-left: 5px solid var(--accent);
  background: var(--gold-soft);
  color: var(--brand-dark);
  border-radius: 18px;
  padding: 1rem 1.2rem;
  font-weight: 800;
}

.nav-cta-secondary {
  font-weight: 600 !important;
}


/* Static customer reviews slider */
.reviews-section {
  background: linear-gradient(180deg, #fff, var(--light));
  overflow: hidden;
}

.review-controls {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
}

.review-arrow {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  background: #fff;
  color: var(--brand-dark);
  font-size: 2rem;
  line-height: 1;
  font-weight: 700;
  display: inline-grid;
  place-items: center;
  box-shadow: 0 10px 24px rgba(245, 184, 46, 0.16);
}

.review-arrow:hover {
  background: var(--accent);
  color: var(--brand-dark);
}

.review-arrow:disabled {
  opacity: .45;
  cursor: not-allowed;
  box-shadow: none;
}

.reviews-carousel {
  width: 100%;
  overflow-x: auto;
  overflow-y: visible;
  position: relative;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: .25rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: .75rem .25rem 1.25rem;
}

.reviews-carousel::-webkit-scrollbar {
  display: none;
}

.reviews-carousel::before,
.reviews-carousel::after {
  content: '';
  position: absolute;
  top: 0;
  width: 70px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.reviews-carousel::before {
  left: 0;
  
}

.reviews-carousel::after {
  right: 0;
  
}

.reviews-track {
  display: flex;
  gap: 1.25rem;
  width: max-content;
  padding-right: .25rem;
}

.review-card {
  flex: 0 0 360px;
  scroll-snap-align: start;
  min-height: 250px;
  background: #fff;
  border: 1px solid rgba(245, 184, 46, 0.22);
  border-radius: 24px;
  padding: 1.35rem;
  box-shadow: 0 18px 45px rgba(27, 42, 38, 0.09);
}

.review-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: .9rem;
}

.stars {
  color: var(--accent-dark);
  letter-spacing: .08em;
  font-weight: 900;
}

.review-pill {
  font-size: .78rem;
  font-weight: 800;
  border-radius: 999px;
  padding: .25rem .65rem;
  background: var(--gold-soft);
  color: var(--brand-dark);
  border: 1px solid rgba(245, 184, 46, 0.35);
  white-space: nowrap;
}

.review-card h5 {
  font-weight: 800;
  margin-bottom: .5rem;
  color: var(--brand-dark);
}

.review-card p {
  color: var(--muted);
  margin-bottom: .85rem;
}

.review-author {
  font-weight: 800;
  color: var(--brand-dark);
}

.review-service {
    color: #bb8339;
    font-size: 1.2rem;
    font-weight: bolder;
    margin-top: .15rem;
}

@media (max-width: 575px) {
  .review-card { flex-basis: 290px; }
  .review-controls { width: 100%; justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .reviews-carousel { scroll-behavior: auto; }
}



/* Scroll-to-top button */
.back-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 1050;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: var(--brand-dark);
  font-weight: 800;
  padding: .75rem 1rem;
  box-shadow: 0 16px 34px rgba(0, 0, 0, .22);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s ease, background .25s ease;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--accent-dark);
}

.back-to-top span {
  font-size: 1.1rem;
  line-height: 1;
}

.project-filter-description {
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
  padding: 1.2rem 1.35rem;
  border-radius: 22px;
  background: var(--light);
  border: 1px solid rgba(245, 184, 46, 0.28);
  box-shadow: 0 16px 36px rgba(27, 42, 38, 0.07);
  text-align: center;
}

.project-filter-description h2 {
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--brand-dark);
  margin-bottom: .35rem;
}

.project-filter-description p {
  margin-bottom: 0;
  color: var(--muted);
}

@media (max-width: 575px) {
  .back-to-top {
    right: .85rem;
    bottom: .85rem;
    padding: .65rem .85rem;
    font-size: .9rem;
  }

  .project-filter-description {
    text-align: left;
  }
}
