:root {
  --bg: #f7f1e8;
  --surface: #ffffff;
  --surface-soft: #fdf7ef;
  --text: #2f271e;
  --muted: #6f6152;
  --brand: #2f6b57;
  --brand-dark: #214a3d;
  --brand-soft: #e7f1ec;
  --accent: #c26d3d;
  --line: #e6d7c8;
  --shadow: 0 10px 24px rgba(40, 30, 18, 0.09);
  --white: #ffffff;
  --surface-glass: rgba(255, 255, 255, 0.96);
  --hover-border-strong: rgba(47, 107, 87, 0.32);
  --hover-shadow-soft: 0 8px 14px rgba(33, 54, 44, 0.12);
  --hover-shadow-medium: 0 10px 18px rgba(33, 54, 44, 0.14);
  --radius: 14px;
}

/* Global base and page backdrop */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Source Sans 3", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 8% 6%, rgba(47, 107, 87, 0.2), transparent 30%),
    radial-gradient(circle at 86% 12%, rgba(194, 109, 61, 0.24), transparent 24%),
    radial-gradient(circle at 50% 100%, rgba(228, 194, 129, 0.2), transparent 36%),
    linear-gradient(180deg, #fcf7f0, var(--bg));
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.page,
.site-header,
.site-footer,
.top-keywords {
  width: min(1100px, calc(100% - 24px));
  margin: 0 auto;
}

/* Top announcement strip */

.top-keywords {
  margin-top: 12px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: linear-gradient(90deg, rgba(47, 107, 87, 0.12), rgba(47, 107, 87, 0.04));
}

.top-keywords p {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 14px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-dark);
}

.top-keywords span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.top-keywords span:not(:last-child)::after {
  content: "";
  width: 1px;
  height: 12px;
  background: rgba(33, 74, 61, 0.24);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow);
  position: sticky;
  top: 8px;
  z-index: 40;
}

/* Header brand, nav, and quote button */

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.brand:hover .brand-mark {
  border-color: var(--hover-border-strong);
  box-shadow: var(--hover-shadow-soft);
}

.brand strong,
.section-heading h2,
.hero h1,
.ba-card h4 {
  font-family: "Montserrat", sans-serif;
}

.brand strong {
  display: block;
  font-size: 1rem;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
}

.brand-mark {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--white);
  border: 1px solid var(--line);
  overflow: hidden;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.site-nav {
  display: flex;
  gap: 18px;
  color: var(--muted);
}

.nav-quote-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--brand-dark);
  background: var(--brand);
  color: var(--white);
  font-weight: 700;
  line-height: 1;
  box-shadow: var(--hover-shadow-soft);
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.nav-quote-btn:hover {
  transform: translateY(-1px);
  background: var(--brand-dark);
  box-shadow: var(--hover-shadow-medium);
}

.site-nav a:hover,
.contact-details a:hover {
  color: var(--brand-dark);
}

.page {
  display: grid;
  gap: 18px;
  padding: 18px 0 28px;
}

/* Shared card surfaces for the main sections. */
.hero,
.services,
.contact,
.about {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-glass);
  box-shadow: var(--shadow);
}

.about p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  max-width: 68ch;
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 18px;
  align-items: center;
  padding: 28px;
  background:
    linear-gradient(135deg, rgba(231, 241, 236, 0.9), rgba(255, 255, 255, 0.98) 55%),
    rgba(255, 255, 255, 0.96);
}

  /* Hero content and actions */

.eyebrow {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--brand-dark);
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  line-height: 0.98;
  max-width: 11ch;
}

.hero-text,
.section-heading p,
.contact-copy p,
.contact-details,
.ba-card figcaption {
  color: var(--muted);
  line-height: 1.6;
}

.hero-text {
  margin: 16px 0 0;
  max-width: 46ch;
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.button,
.contact-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 18px;
  border-radius: 10px;
  border: 1px solid var(--line);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.button:hover,
.contact-form button:hover {
  transform: translateY(-1px);
  box-shadow: var(--hover-shadow-medium);
}

.button-primary,
.contact-form button {
  background: var(--brand);
  color: var(--white);
  border-color: var(--brand-dark);
}

.button-secondary {
  background: var(--white);
  color: var(--brand-dark);
}

.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.hero-highlights span {
  padding: 9px 12px;
  border: 1px solid rgba(47, 107, 87, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--brand-dark);
  font-size: 0.92rem;
  font-weight: 700;
}

.hero-image {
  position: relative;
  min-height: 420px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(47, 107, 87, 0.2);
  box-shadow: 0 18px 34px rgba(33, 54, 44, 0.18);
}

/* Hero slider controls */

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transform: scale(var(--hero-zoom, 1));
  transition: opacity 180ms ease, transform 220ms ease;
  cursor: zoom-in;
}

.hero-image img.is-padded-source {
  --hero-zoom: 1.34;
}

.hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(19, 42, 34, 0.06), rgba(19, 42, 34, 0.52));
}

.hero-image img.is-changing {
  opacity: 0.35;
}

.hero-slider-dots {
  position: absolute;
  left: 50%;
  bottom: 14px;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  transform: translateX(-50%);
  max-width: calc(100% - 28px);
}

.hero-slider-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease;
}

.hero-slider-dot:hover {
  background: rgba(255, 255, 255, 0.72);
  transform: scale(1.1);
}

.hero-slider-dot.is-active {
  background: #ffffff;
  transform: scale(1.2);
}

.hero-slider-dot:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

/* Compact service cards for quick scanning. */
.section-heading {
  margin-bottom: 14px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}

.service-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.service-item {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-soft);
}

.service-item strong {
  font-family: "Montserrat", sans-serif;
  font-size: 0.98rem;
  color: var(--brand-dark);
}

.service-item span {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.ba-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
}

/* Project gallery layouts */

.ba-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.ba-pair figure {
  margin: 0;
}

.ba-pair img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center center;
  border-radius: 10px;
  border: 1px solid var(--line);
  cursor: zoom-in;
}


.projects-page {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-glass);
  box-shadow: var(--shadow);
}

.projects-page h1 {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
}

.gallery-pair-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.project-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.project-gallery-grid figure {
  margin: 0;
}

.trade-gallery-sections {
  display: grid;
  gap: 14px;
}

.trade-quick-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 16px;
}

.trade-quick-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--brand-dark);
  font-weight: 700;
  font-size: 0.9rem;
}

.trade-quick-nav a:hover {
  border-color: var(--hover-border-strong);
  box-shadow: var(--hover-shadow-soft);
}

.trade-gallery-section {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
  scroll-margin-top: 108px;
}

.trade-gallery-section h3 {
  margin: 0 0 10px;
  font-family: "Montserrat", sans-serif;
  font-size: 1.04rem;
  color: var(--brand-dark);
}

/* Contact section and form */

.project-gallery-grid img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center center;
  border-radius: 10px;
  border: 1px solid var(--line);
  cursor: zoom-in;
}

.ba-pair figcaption {
  margin-top: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-dark);
}

.missing-after-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  display: grid;
  place-items: center;
  border: 1px dashed var(--line);
  border-radius: 10px;
  background: var(--white);
  color: var(--muted);
  font-weight: 700;
  text-align: center;
  padding: 10px;
}

/* Simple contact layout with form on the right. */
.contact {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 16px;
}

.contact-details {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.contact-phones {
  display: grid;
  gap: 10px;
}

.contact-phone-card {
  display: grid;
  gap: 2px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-soft);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.contact-phone-card:hover {
  transform: translateY(-1px);
  border-color: rgba(47, 107, 87, 0.3);
  box-shadow: var(--hover-shadow-soft);
}

.contact-phone-label {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.contact-phone-card strong {
  font-family: "Montserrat", sans-serif;
  color: var(--brand-dark);
  font-size: 1.08rem;
  letter-spacing: 0.01em;
}

.contact-details a {
  font-weight: 700;
  color: var(--brand-dark);
}

.contact-form {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
}

.contact-form label {
  display: grid;
  gap: 6px;
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  color: var(--text);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid rgba(47, 107, 87, 0.2);
  border-color: rgba(47, 107, 87, 0.4);
}

.site-footer {
  padding: 10px 2px 14px;
  color: var(--muted);
  text-align: center;
}

/* Footer branding and developer credit */

.site-credit {
  margin: 6px 0 0;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--brand-dark);
}

.footer-logo {
  display: inline-block;
  width: min(180px, 42vw);
  margin-bottom: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  overflow: hidden;
}

.footer-logo img {
  width: 100%;
  height: auto;
  display: block;
}

.lightbox {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(8, 18, 34, 0.82);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
  z-index: 80;
}

/* Fullscreen image preview */

.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-image {
  width: auto;
  height: auto;
  max-width: min(92vw, 1100px);
  max-height: 86vh;
  object-fit: contain;
  object-position: center center;
  border-radius: 16px;
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.36);
  transform: scale(0.98);
  transition: transform 180ms ease;
}

.lightbox.is-open .lightbox-image {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

@media (max-width: 900px) {

  /* Tablet and small laptop adjustments */
  .hero,
  .contact {
    grid-template-columns: 1fr;
  }

  .service-list,
  .gallery-pair-grid {
    grid-template-columns: 1fr;
  }

  .project-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-image {
    min-height: 340px;
  }

  .lightbox {
    padding: 14px;
  }

  .lightbox-close {
    top: 12px;
    right: 12px;
  }
}

@media (max-width: 640px) {
  /* Mobile layout and spacing */
  .top-keywords {
    width: min(100% - 16px, 1100px);
    padding: 8px 12px;
  }

  .top-keywords p {
    justify-content: flex-start;
    gap: 6px 10px;
    font-size: 0.74rem;
    letter-spacing: 0.06em;
  }

  .top-keywords span:not(:last-child)::after {
    display: none;
  }

  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav {
    flex-wrap: wrap;
  }

  .nav-quote-btn {
    width: 100%;
  }

  .page,
  .site-header,
  .site-footer {
    width: min(100% - 16px, 1100px);
  }

  .hero,
  .services,
  .contact,
  .about {
    padding: 18px;
  }

  .hero-slider-dots {
    bottom: 10px;
  }

  .hero-highlights {
    flex-direction: column;
    align-items: stretch;
  }

  .ba-pair {
    grid-template-columns: 1fr;
  }

  .project-gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-pair-grid {
    grid-template-columns: 1fr;
  }
}
