/* ============================================================
   MUFFS CONTRACTING — STYLES
   Colour palette:
     Primary green:   #1a3a2a
     Mid green:       #1e3d2f
     Light green tint:#eef3f0
     White:           #ffffff
     Off-white:       #f5f5f0
     Text dark:       #1a2a20
     Text body:       #3a4a40
   ============================================================ */

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

:root {
  --green-dark: #1a3a2a;
  --green-mid:  #1e3d2f;
  --green-light-tint: #eef3f0;
  --white: #ffffff;
  --off-white: #f5f5f0;
  --text-dark: #1a2a20;
  --text-body: #3a4a40;
  --nav-height: 68px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--text-body);
  background: var(--white);
  line-height: 1.65;
  font-size: 16px;
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* ============================================================
   UTILITIES
   ============================================================ */

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.section-intro {
  font-size: 1.05rem;
  color: var(--text-body);
  max-width: 640px;
  margin-bottom: 48px;
}

.section-light {
  background: var(--off-white);
}

.section-light .section-title,
.section-light .section-intro {
  color: var(--text-dark);
}

.btn {
  display: inline-block;
  padding: 13px 30px;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
  border: none;
  text-align: center;
}

.btn:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--green-dark);
  color: var(--white);
}

.hero .btn-primary {
  border: 2px solid rgba(255,255,255,0.8);
}

.section-green .btn-primary {
  background: var(--white);
  color: var(--green-dark);
}

.btn-full {
  width: 100%;
}

/* ============================================================
   HEADER / NAV
   ============================================================ */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--green-dark);
  transition: box-shadow 0.2s;
}

.site-header.scrolled {
  box-shadow: 0 2px 16px rgba(0,0,0,0.25);
}

.nav-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  gap: 28px;
  margin-left: auto;
}

.nav-links a {
  color: rgba(255,255,255,0.85);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--white);
}

.nav-cta-btn {
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 700;
  background: var(--green-mid, #2d6a4f);
  padding: 9px 20px;
  border-radius: 5px;
  white-space: nowrap;
  border: 2px solid rgba(255,255,255,0.5);
  transition: background 0.2s, border-color 0.2s;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 0.82rem;
}

.nav-cta-btn:hover {
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.9);
}

.nav-fb-link {
  display: inline-flex;
  align-items: center;
  color: var(--white);
  opacity: 0.85;
  transition: opacity 0.2s;
  flex-shrink: 0;
}

.nav-fb-link:hover {
  opacity: 1;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  margin-left: auto;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

/* Mobile menu */
.nav-mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--green-mid);
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.nav-mobile-menu.open {
  display: flex;
  max-height: 400px;
  padding: 8px 0 16px;
}

.mobile-link {
  color: rgba(255,255,255,0.9);
  font-size: 1rem;
  font-weight: 500;
  padding: 12px 24px;
  display: block;
  transition: background 0.15s;
}

.mobile-link:hover {
  background: rgba(255,255,255,0.08);
}

.mobile-phone {
  font-weight: 700;
  color: var(--white);
  margin-top: 4px;
}

/* ============================================================
   HERO
   ============================================================ */

.hero {
  position: relative;
  height: 100svh;
  min-height: 560px;
  background-image: url('hero.jpg');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.52);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  padding: 90px 24px 40px;
  margin: 0 auto 0 max(24px, calc((100vw - 1140px) / 2 + 24px));
}

.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.92);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.3);
  margin-bottom: 20px;
}

.hero-content h1 {
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 18px;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  color: rgba(255,255,255,0.88);
  max-width: 520px;
  margin-bottom: 32px;
  line-height: 1.6;
}

/* ============================================================
   SERVICES
   ============================================================ */

.services {
  padding: 80px 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
}

.service-card:nth-child(1) { grid-column: 1 / 3; }
.service-card:nth-child(2) { grid-column: 3 / 5; }
.service-card:nth-child(3) { grid-column: 5 / 7; }
.service-card:nth-child(4) { grid-column: 2 / 4; }
.service-card:nth-child(5) { grid-column: 4 / 6; }

.service-card {
  background: var(--white);
  border: 1.5px solid #d8e4dc;
  border-top: 3px solid var(--green-dark);
  border-radius: 10px;
  padding: 28px 24px;
  transition: box-shadow 0.2s, transform 0.2s;
}

.service-card:hover {
  box-shadow: 0 6px 24px rgba(26,58,42,0.1);
  transform: translateY(-3px);
}

.service-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.service-card p {
  font-size: 0.93rem;
  color: var(--text-body);
  line-height: 1.6;
}

/* ============================================================
   ABOUT
   ============================================================ */

.about {
  padding: 80px 0;
  background: var(--green-dark);
}

.about .section-title {
  color: var(--white);
}

.about .section-intro {
  color: rgba(255,255,255,0.82);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.about-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 10px;
  padding: 28px 24px;
  transition: background 0.2s;
}

.about-card:hover {
  background: rgba(255,255,255,0.12);
}

.about-card-marker {
  width: 32px;
  height: 4px;
  background: rgba(255,255,255,0.5);
  border-radius: 2px;
  margin-bottom: 16px;
}

.about-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
}

.about-card p {
  font-size: 0.93rem;
  color: rgba(255,255,255,0.78);
  line-height: 1.6;
}

/* ============================================================
   CONTACT
   ============================================================ */

.contact {
  padding: 80px 0;
}

.contact-dark {
  background: var(--green-dark);
  padding: 80px 0;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.82fr);
  gap: 40px;
  align-items: center;
}

/* Left column — info */
.contact-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.5);
  margin-bottom: 12px;
}

.contact-heading {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.contact-subtext {
  font-size: 0.97rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.65;
  margin-bottom: 32px;
  max-width: 420px;
}

.contact-rows {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.contact-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.contact-row-icon {
  flex-shrink: 0;
  color: rgba(255,255,255,0.55);
  margin-top: 2px;
}

.contact-row-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.45);
  margin-bottom: 3px;
}

.contact-row-value {
  display: block;
  font-size: 0.97rem;
  color: rgba(255,255,255,0.9);
  line-height: 1.5;
}

a.contact-row-value:hover {
  color: var(--white);
  text-decoration: underline;
}

/* Right column — form card */
.contact-form-wrap h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 24px;
}

.contact-dark .contact-form-wrap {
  background: #e7f0e8;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.16);
  max-width: 520px;
  width: 100%;
  justify-self: end;
}

/* Form */
.quote-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-dark);
}

.required-star {
  color: #c0392b;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 10px 13px;
  border: 1.5px solid #c8d2cb;
  border-radius: 6px;
  font-size: 0.97rem;
  color: var(--text-dark);
  background: #f8fbf8;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: inherit;
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--green-dark);
  box-shadow: 0 0 0 3px rgba(26,58,42,0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 84px;
}

/* ============================================================
   GALLERY
   ============================================================ */

.gallery {
  padding: 80px 0;
  background: var(--white);
}

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

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  aspect-ratio: 4 / 3;
  cursor: pointer;
  background: #d0dbd4;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

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

.gallery-item:focus {
  outline: 3px solid var(--green-dark);
  outline-offset: 2px;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(0,0,0,0.92);
  align-items: center;
  justify-content: center;
}

.lightbox.open {
  display: flex;
}

.lightbox-content {
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-content img {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.6);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: fixed;
  background: rgba(255,255,255,0.12);
  border: none;
  color: var(--white);
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 501;
}

.lightbox-close {
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  font-size: 1.6rem;
  line-height: 1;
}

.lightbox-prev,
.lightbox-next {
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  font-size: 2rem;
  line-height: 1;
}

.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255,255,255,0.25);
}

.lightbox-close:focus,
.lightbox-prev:focus,
.lightbox-next:focus {
  outline: 2px solid rgba(255,255,255,0.7);
  outline-offset: 2px;
}

/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
  background: var(--green-dark);
  color: rgba(255,255,255,0.8);
}

.footer-main {
  padding: 64px 0 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 48px;
}

/* Column 1 — Brand */
.footer-col-brand .footer-brand-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  display: block;
  margin-bottom: 12px;
}

.footer-tagline {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.6;
  margin-bottom: 24px;
  max-width: 260px;
}

.footer-contact-quick {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-contact-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.75);
  font-size: 0.88rem;
  transition: color 0.2s;
}

.footer-contact-link:hover {
  color: var(--white);
}

.footer-contact-link svg {
  flex-shrink: 0;
  opacity: 0.7;
}

/* Columns 2-4 — generic */
.footer-col-heading {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.45);
  margin-bottom: 20px;
}

.footer-col-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col-links a,
.footer-col-links span {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.72);
  transition: color 0.2s;
}

.footer-col-links a:hover {
  color: var(--white);
}

/* Bottom bar */
.footer-bottom-bar {
  background: var(--green-dark);
  border-top: 1px solid rgba(255,255,255,0.15);
}

.footer-bottom-inner {
  padding: 16px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
}

.footer-built-by {
  color: rgba(255,255,255,0.45);
  transition: color 0.2s;
}

.footer-built-by:hover {
  color: rgba(255,255,255,0.85);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 960px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}

@media (max-width: 768px) {
  .nav-links,
  .nav-cta-btn,
  .nav-fb-link {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-mobile-menu {
    display: flex;
  }

  .hero-content {
    padding: 80px 20px 32px;
    margin: 0;
  }

  .hero-badge {
    display: inline-flex;
    width: fit-content;
    max-width: 255px;
    font-size: 0.72rem;
    margin-bottom: 12px;
    padding: 5px 12px;
    line-height: 1.35;
    white-space: normal;
    text-wrap: pretty;
  }

  .hero .btn-primary {
    border: none;
  }

  .hero-content h1 {
    margin-bottom: 12px;
  }

  .hero-subtitle {
    margin-bottom: 24px;
    font-size: 0.93rem;
  }

  .services,
  .about,
  .contact,
  .gallery {
    padding: 60px 0;
  }

  .services-grid {
    grid-template-columns: 1fr 1fr;
  }
  .service-card:nth-child(1),
  .service-card:nth-child(2),
  .service-card:nth-child(3),
  .service-card:nth-child(4),
  .service-card:nth-child(5) { grid-column: auto; }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
}

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

  .about-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-main {
    padding: 48px 0 36px;
  }

  .footer-tagline {
    max-width: 100%;
  }
}
