:root {
  --color-primary: #f8a20f;
  --color-primary-dark: #e48d00;
  --color-dark: #404040;
  --color-light: #ffffff;
  --color-muted: #666666;
  --bg-alt: #f5f5f5;
  --max-width: 1120px;
  --radius: 4px;
}

* {
  box-sizing: border-box;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
  height: 100%;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--color-dark);
  background-color: #fafafa;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

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

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  display: block;
}

h1,
h2,
h3,
h4,
h5,
h6,
.brand {
  font-family: "Barlow", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

header {
  background-color: var(--color-light);
  border-bottom: 1px solid #e0e0e0;
}

.brand {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.03em;
}

.brand-logo {
  max-height: 48px;
  width: auto;
  height: auto;
  display: block;
}

.navbar-light .navbar-nav .nav-link {
  color: #404040;
  font-weight: 500;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link:focus {
  color: var(--color-primary-dark);
}

/* Dropdown menu styling to avoid default blue active state */
.navbar-light .dropdown-menu {
  border-radius: var(--radius);
  border-color: #e5e7eb;
}

.navbar-light .dropdown-item {
  color: #404040;
  font-weight: 500;
}

.navbar-light .dropdown-item:hover,
.navbar-light .dropdown-item:focus,
.navbar-light .dropdown-item.active,
.navbar-light .dropdown-item:active {
  color: var(--color-primary-dark);
  background-color: transparent;
}

/* Header contact bar */
.top-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
}

.top-contact i {
  color: var(--color-primary-dark);
  font-size: 1rem;
  margin-right: 4px;
}

.top-contact-link {
  font-weight: 600;
  color: #111827;
  text-decoration: none;
}

.top-contact-link:hover {
  color: var(--color-primary-dark);
  text-decoration: underline;
}

.top-social {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
}

.top-social a {
  color: #6b7280;
}

.top-social a:hover {
  color: var(--color-primary-dark);
}

/* Footer contact */
.footer-contact-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  font-size: 0.95rem;
}

.footer-contact-line i {
  color: var(--color-primary-dark);
  font-size: 1rem;
}

.footer-contact-link {
  font-weight: 600;
  color: #111827;
  text-decoration: none;
}

.footer-contact-link:hover {
  color: var(--color-primary-dark);
  text-decoration: underline;
}

/* Hero */
.hero {
  position: relative;
  background-size: cover;
  background-position: center;
  color: var(--color-light);
  padding: 72px 0 80px;
}

.hero-home {
  background-image:
    linear-gradient(135deg, rgba(15, 23, 42, 0.75), rgba(31, 41, 55, 0.85)),
    url("../images/decorators-in-worksop-splash.webp");
}

.hero-domestic {
  background-image:
    linear-gradient(135deg, rgba(15, 23, 42, 0.75), rgba(31, 41, 55, 0.85)),
    url("../images/domestic-interior-living-room.webp");
}

.hero-commercial {
  background-image:
    linear-gradient(135deg, rgba(15, 23, 42, 0.75), rgba(31, 41, 55, 0.85)),
    url("../images/commercial-industrial-decorating.webp");
}

.hero-industrial {
  background-image:
    linear-gradient(135deg, rgba(15, 23, 42, 0.75), rgba(31, 41, 55, 0.85)),
    url("../images/industrial-painting.webp");
}

.hero-spraying {
  background-image:
    linear-gradient(135deg, rgba(15, 23, 42, 0.75), rgba(31, 41, 55, 0.85)),
    url("../images/pvc-kitchen-spraying.webp");
}

.hero-contact {
  background-image:
    linear-gradient(135deg, rgba(15, 23, 42, 0.75), rgba(31, 41, 55, 0.85)),
    url("../images/about-work-van.webp");
}

.hero-areas {
  background-image:
    linear-gradient(135deg, rgba(15, 23, 42, 0.75), rgba(31, 41, 55, 0.85)),
    url("../images/areas-we-cover.webp");
}

.hero-faqs {
  background-image:
    linear-gradient(135deg, rgba(15, 23, 42, 0.75), rgba(31, 41, 55, 0.85)),
    url("../images/about-work-van.webp");
}

.hero h1 {
  font-size: clamp(2rem, 3vw, 2.6rem);
  margin: 0 0 16px;
}

.hero-strip {
  max-width: 260px;
  margin: 4px 0 20px;
}

.hero-lead {
  font-size: 1.05rem;
  margin-bottom: 12px;
}

.hero-sub {
  font-size: 0.98rem;
  color: #e2e8f0;
  margin-bottom: 20px;
}

.hero-meta {
  font-size: 0.95rem;
  color: #cbd5e1;
  margin-bottom: 24px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--color-primary);
  color: #222222;
}

.btn-primary:hover {
  background-color: var(--color-primary-dark);
  color: var(--color-light);
}

.btn-outline {
  background: transparent;
  color: var(--color-light);
  border: 1px solid rgba(248, 250, 252, 0.7);
}

.btn-outline:hover {
  background: rgba(15, 23, 42, 0.2);
}

.hero-phone-note {
  font-size: 0.86rem;
  color: #cbd5e1;
  margin-top: 10px;
  opacity: .7;
}

.hero-aside {
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.55);
  padding: 20px 18px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.35);
  font-size: 0.9rem;
}

.hero-aside h2 {
  font-size: 1.05rem;
  margin: 0 0 10px;
}

.hero-aside ul {
  padding-left: 18px;
  margin: 0 0 12px;
}

/* Emphasise contact details on contact page */
.hero-contact .hero-aside .contact-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 0;
  margin-bottom: 6px;
}

.hero-contact .hero-aside .contact-chip-icon {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.9);
  color: var(--color-primary);
  flex-shrink: 0;
}

.hero-contact .hero-aside .contact-chip-text {
  display: flex;
  flex-direction: column;
}

.hero-contact .hero-aside .contact-chip-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.75;
}

.hero-contact .hero-aside .contact-chip-text a {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: none;
}

.hero-contact .hero-aside .contact-chip-text a:hover {
  color: var(--color-primary-dark);
  text-decoration: underline;
}

.hero-contact .hero-aside .contact-chip-address {
  font-size: 0.9rem;
}

/* Generic sections */
section {
  padding: 56px 0;
}

/* Tighter spacing around USP / feature trio and About */
.usp-section {
  padding-bottom: 28px;
}

#about {
  padding-top: 32px;
}

/* Constrain main content width so hero and sections don't sit flush to the edges */
main > section > .container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

.section-heading {
  text-align: center;
  margin-bottom: 32px;
}

.section-heading h2 {
  margin: 0 0 8px;
  font-size: 1.7rem;
}

.section-heading h2::after {
  content: "";
  display: block;
  width: 64px;
  height: 3px;
  margin: 12px auto 0;
  background: var(--color-primary);
  border-radius: 999px;
}

.section-heading p {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.98rem;
}

.section-heading.section-heading-left {
  text-align: left;
}

.section-heading.section-heading-left h2::after {
  margin-left: 0;
  margin-right: 0;
}

/* Feature trio */
.feature-row {
  align-items: stretch;
}

.feature-box {
  background: #ffffff;
  padding: 18px 18px 16px;
  border-radius: var(--radius);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  height: 100%;
}

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(248, 162, 15, 0.12);
  color: var(--color-primary-dark);
  font-size: 1.25rem;
  flex-shrink: 0;
}

.feature-text h3 {
  margin: 0 0 4px;
  font-size: 1rem;
  font-weight: 600;
}

.feature-text p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-muted);
}

/* About */
.about-grid {
  align-items: center;
}

.about-grid p {
  margin-top: 0;
}

.about-image {
  border-radius: var(--radius);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.18);
}

/* Map embed */
.map-embed {
  position: relative;
  height: 300px;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.18);
}

.map-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.map-section {
  padding-top: 0;
  padding-bottom: 0;
}

.map-section .map-embed {
  border-radius: 0;
  box-shadow: none;
}

/* Services */
.service-card {
  background: var(--color-light);
  border-radius: var(--radius);
  padding: 0 18px 18px;
  border: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.08);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  overflow: hidden;
  height: 100%;
}

.service-card h3 {
  margin: 0 0 4px;
  font-size: 1.1rem;
}

.service-card p {
  margin: 0 0 8px;
  font-size: 0.95rem;
  color: var(--color-muted);
}

.service-card a {
  margin-top: auto;
  font-weight: 600;
  font-size: 0.9rem;
}

.service-card:hover {
  /* transform: translateY(-4px); */
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.12);
}

.service-icon {
  width: calc(100% + 36px);
  height: 170px;
  margin: 0 -18px 14px;
  overflow: hidden;
}

.service-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Why choose us */
.why-grid {
  align-items: center;
}

.why-grid ul {
  padding-left: 0;
  margin: 0 0 16px;
  list-style: none;
}

.why-grid li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 6px;
}

.why-grid li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--color-primary);
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
}

.badge-row img {
  max-height: 70px;
  width: auto;
}

/* Gallery (grid with lightbox) */
#gallery {
  background-color: var(--bg-alt);
}

.gallery-grid {
  max-width: var(--max-width);
  margin: 0 auto;
}

.gallery-item {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.18);
}

.gallery-item img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  transition: transform 0.3s ease, opacity 0.3s ease;
  display: block;
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.7), transparent 45%);
  opacity: 0.7;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.gallery-item-label {
  position: absolute;
  left: 14px;
  bottom: 12px;
  color: #f9fafb;
  font-size: 0.92rem;
  font-weight: 500;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
  background: rgba(0, 0, 0, 0.5);
  padding: 2px 10px;
  border-radius: 9px;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item:hover::after {
  opacity: 0.5;
}

/* Lightbox modal */
.lightbox-modal .modal-content {
  background: #000;
  border-radius: 0;
}

.lightbox-modal img {
  max-height: calc(100vh - 140px);
  object-fit: contain;
  background: #000;
}

.lightbox-caption {
  background: rgba(15, 23, 42, 0.85);
  font-size: 0.9rem;
}

.lightbox-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: none;
  background: rgba(15, 23, 42, 0.75);
  color: #f9fafb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 10;
}

.lightbox-control:hover {
  background: rgba(15, 23, 42, 0.95);
}

.lightbox-control.prev {
  left: 12px;
}

.lightbox-control.next {
  right: 12px;
}

/* Testimonial */
.testimonial {
  background: var(--bg-alt);
}

.testimonial-inner {
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
}

.testimonial-card {
  background: #ffffff;
  border-radius: var(--radius);
  padding: 18px 18px 16px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.14);
  height: auto;
  min-height: 230px;
  position: relative;
  display: flex;
  flex-direction: column;
}

.testimonial-scroller {
  overflow: hidden;
  padding: 6px 1.25rem 24px;
  margin: 0 calc(50% - 50vw) 0px;
  width: 100vw;
  position: relative;
}

.testimonial-track {
  display: inline-flex;
  gap: 1rem;
  will-change: transform;
}

.testimonial-card {
  flex: 0 0 280px;
}

.testimonial-stars {
  color: #facc15;
  font-size: 1.5rem;
  margin-bottom: 6px;
}

.testimonial-quote-icon {
  position: absolute;
  right: 14px;
  top: 12px;
  font-size: 2rem;
  color: rgba(148, 163, 184, 0.5);
  line-height: 1;
  pointer-events: none;
}

.testimonial blockquote {
  margin: auto 0;
  font-size: 0.98rem;
  font-style: italic;
}

.testimonial footer {
  font-size: 0.9rem;
  color: var(--color-muted);
  background: transparent;
  margin-top: 6px;
}

.testimonial .mybuilder-logo {
  margin: 16px auto 0;
  max-width: 260px;
  text-align: center;
}

.testimonial .mybuilder-rating {
  margin-top: 4px;
  font-size: 0.9rem;
  color: var(--color-muted);
  white-space: nowrap;
}

.testimonial .mybuilder-logo img {
  margin-left: auto;
  margin-right: auto;
}

/* CTA band */
.cta-band {
  position: relative;
  color: #000000;
  background-color: #dde7f5; /* soft, neutral blue-grey */
  overflow: hidden;
  border-top: 1px solid rgba(15, 23, 42, 0.15);
  border-bottom: 1px solid rgba(15, 23, 42, 0.04);
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../images/cta-work-completed.webp");
  background-size: cover;
  background-position: center;
  opacity: 0.22; /* subtle detail over neutral background */
  mix-blend-mode: multiply;
  filter: grayscale(55%);
  pointer-events: none;
}

.cta-band .container {
  position: relative;
  z-index: 1;
}

.cta-band-inner {
  align-items: center;
}

.cta-band h2 {
  margin: 0 0 8px;
  font-size: 1.7rem;
}

.cta-band p {
  margin: 0;
  font-size: 0.98rem;
}

.cta-phone {
  font-size: 1.3rem;
  font-weight: 700;
  margin-top: 8px;
}

/* Footer */
body > footer {
  background: #111827;
  color: #e5e7eb;
  font-size: 0.9rem;
}

body > footer .container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

.footer-top {
  padding: 40px 0 28px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.3);
  border-top: 4px solid var(--color-primary);
}

.footer-columns h3 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 1rem;
  color: #f9fafb;
}

.footer-columns p {
  margin: 4px 0;
}

.footer-columns a {
  color: #e5e7eb;
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 14px;
}

.footer-social a {
  background: rgba(31, 41, 55, 0.8);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.82rem;
}

.footer-bottom {
  padding: 18px 0 0;
  text-align: center;
  color: #9ca3af;
}

.footer-bottom a {
  color: #cbd5f5;
  font-size: 0.86rem;
}

.legal-links {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.legal-links span {
  opacity: 0.7;
}

@media (max-width: 992px) {
  .about-image {
    width: 100%;
    height: 320px;
    object-fit: cover;
  }
}

@media (max-width: 768px) {
  body {
    font-size: 0.95rem;
  }

  section {
    padding: 40px 0;
  }

  .hero {
    padding: 40px 0 44px;
  }

  .hero-aside {
    margin-top: 20px;
  }

  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
  }

  .gallery-item img {
    height: 240px;
  }

  .btn {
    width: 100%;
  }

  .footer-top {
    padding: 28px 0 22px;
  }

  .footer-bottom {
    padding: 16px 0 22px;
  }
}

@media (max-width: 480px) {
  .brand {
    font-size: 1rem;
  }

  .brand span {
    font-size: 0.82rem;
  }

  .section-heading h2 {
    font-size: 1.4rem;
  }

  .cta-band h2 {
    font-size: 1.4rem;
  }

  .about-image {
    height: 220px;
  }
}
