/* ==========================================================================
   PM Plastering — main stylesheet
   Colours and fonts are set once here so they are easy to change.
   ========================================================================== */

:root {
  --navy: #1c2b3a;
  --navy-dark: #121d28;
  --sand: #c8a165;
  --sand-dark: #a9844b;
  --plaster: #f4efe8;
  --white: #ffffff;
  --text: #2b2f33;
  --muted: #646b72;
  --border: #e3ddd4;
  --radius: 6px;
  --shadow: 0 8px 24px rgba(18, 29, 40, 0.12);
  --max: 1180px;
  --font-head: "Montserrat", "Segoe UI", Arial, sans-serif;
  --font-body: "Open Sans", "Segoe UI", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
}

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

a {
  color: var(--sand-dark);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-head);
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 80px 0;
}

.section--alt {
  background: var(--plaster);
}

.section--dark {
  background: var(--navy);
  color: #d7dde3;
}

.section--dark h2,
.section--dark h3 {
  color: var(--white);
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--sand-dark);
  margin-bottom: 10px;
}

.section--dark .eyebrow,
.hero .eyebrow,
.page-hero .eyebrow {
  color: var(--sand);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 28px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}

.btn:hover { transform: translateY(-2px); }

.btn--primary {
  background: var(--sand);
  color: var(--navy-dark);
}

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

.btn--outline {
  border-color: var(--white);
  color: var(--white);
}

.btn--outline:hover { background: var(--white); color: var(--navy); }

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

.btn--dark:hover { background: var(--navy-dark); }

/* ---------- Top bar & header ---------- */

.topbar {
  background: var(--navy-dark);
  color: #b9c3cc;
  font-size: 0.875rem;
}

.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-top: 8px;
  padding-bottom: 8px;
  flex-wrap: wrap;
}

.topbar a {
  color: #b9c3cc;
  text-decoration: none;
}

.topbar a:hover { color: var(--sand); }

.topbar__contact {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo img {
  height: 56px;
  width: auto;
}

.nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav a {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--navy);
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}

.nav a:hover,
.nav a.active {
  border-bottom-color: var(--sand);
}

.nav .btn {
  color: var(--navy-dark);
  padding: 11px 20px;
  border-bottom: 2px solid transparent;
}

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

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  margin: 5px 0;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  color: var(--white);
  background:
    linear-gradient(100deg, rgba(18, 29, 40, 0.92) 0%, rgba(18, 29, 40, 0.75) 55%, rgba(18, 29, 40, 0.45) 100%),
    url("../images/hero.jpg") center / cover no-repeat,
    var(--navy);
  padding: 130px 0 120px;
}

.hero__content {
  max-width: 640px;
}

.hero h1 {
  color: var(--white);
}

.hero h1 span {
  color: var(--sand);
}

.hero p {
  font-size: 1.15rem;
  color: #d7dde3;
  margin-bottom: 32px;
}

.hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero__badges {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  margin-top: 44px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.9rem;
  color: #d7dde3;
}

.hero__badges li {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero__badges ul {
  margin: 0;
  padding: 0;
  display: contents;
}

.tick {
  color: var(--sand);
  font-weight: 800;
}

/* ---------- Page hero (inner pages) ---------- */

.page-hero {
  background: linear-gradient(rgba(18, 29, 40, 0.88), rgba(18, 29, 40, 0.88)), url("../images/hero.jpg") center / cover no-repeat, var(--navy);
  color: #d7dde3;
  padding: 80px 0 70px;
  text-align: center;
}

.page-hero h1 {
  color: var(--white);
  margin-bottom: 12px;
}

.page-hero p {
  max-width: 640px;
  margin: 0 auto;
  font-size: 1.1rem;
}

/* ---------- Stats strip ---------- */

.stats {
  background: var(--sand);
  color: var(--navy-dark);
}

.stats .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  text-align: center;
  padding-top: 34px;
  padding-bottom: 34px;
  gap: 20px;
}

.stat__num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 2.4rem;
  line-height: 1;
}

.stat__label {
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: 6px;
}

/* ---------- Services ---------- */

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

.service {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: box-shadow 0.25s, transform 0.25s;
}

.service:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.service__icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--plaster);
  color: var(--sand-dark);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}

.service__icon svg {
  width: 26px;
  height: 26px;
}

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

/* ---------- Split (image + text) ---------- */

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

.split--reverse .split__media { order: 2; }

.split__media {
  position: relative;
}

.split__media img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: var(--plaster);
}

.experience-badge {
  position: absolute;
  right: -18px;
  bottom: -18px;
  background: var(--sand);
  color: var(--navy-dark);
  border-radius: var(--radius);
  padding: 20px 24px;
  text-align: center;
  font-family: var(--font-head);
  box-shadow: var(--shadow);
}

.experience-badge strong {
  display: block;
  font-size: 2.6rem;
  line-height: 1;
  font-weight: 800;
}

.experience-badge span {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
}

.checklist li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 12px;
}

.checklist li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--sand);
  color: var(--navy-dark);
  font-size: 0.75rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  margin-top: 2px;
}

/* ---------- Gallery ---------- */

.gallery-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}

.filter-btn {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.9rem;
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--navy);
  padding: 9px 20px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

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

.gallery__item {
  position: relative;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: zoom-in;
  background: var(--plaster);
  aspect-ratio: 4 / 3;
}

.gallery__item.is-hidden { display: none; }

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.gallery__item:hover img { transform: scale(1.06); }

.gallery__item figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 56px 16px 14px;
  background: linear-gradient(rgba(18, 29, 40, 0), rgba(18, 29, 40, 0.75) 45%, rgba(18, 29, 40, 0.92));
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
}

.gallery__item figcaption small {
  display: block;
  font-weight: 500;
  font-size: 0.78rem;
  color: var(--sand);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.center { text-align: center; }
.mt-40 { margin-top: 40px; }

/* Lightbox */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(10, 16, 22, 0.94);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
}

.lightbox.open { display: flex; }

.lightbox img {
  max-width: min(1100px, 100%);
  max-height: 80vh;
  border-radius: var(--radius);
}

.lightbox__caption {
  position: absolute;
  bottom: 22px;
  left: 0;
  right: 0;
  text-align: center;
  color: var(--white);
  font-family: var(--font-head);
}

.lightbox button {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  border: 0;
  color: var(--white);
  font-size: 1.8rem;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  cursor: pointer;
}

.lightbox button:hover { background: var(--sand); color: var(--navy-dark); }

.lightbox__close { top: 18px; right: 18px; }
.lightbox__prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 18px; top: 50%; transform: translateY(-50%); }

/* ---------- Testimonials ---------- */

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

.testimonial {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 30px;
  margin: 0;
}

.testimonial .stars {
  color: var(--sand);
  letter-spacing: 3px;
  margin-bottom: 12px;
}

.testimonial blockquote {
  margin: 0 0 18px;
  font-style: italic;
}

.testimonial figcaption {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--white);
}

.testimonial figcaption span {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.85rem;
  color: #9aa6b1;
}

/* ---------- Timeline (about page) ---------- */

.timeline {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  padding-left: 34px;
  border-left: 3px solid var(--sand);
}

.timeline__item {
  position: relative;
  margin-bottom: 34px;
}

.timeline__item:last-child { margin-bottom: 0; }

.timeline__item::before {
  content: "";
  position: absolute;
  left: -45px;
  top: 4px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: var(--white);
  border: 4px solid var(--sand);
}

.timeline__year {
  font-family: var(--font-head);
  font-weight: 800;
  color: var(--sand-dark);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
}

.values {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.value h3 { margin-top: 12px; }
.value p { color: var(--muted); margin: 0; }
.section--dark .value p { color: #b9c3cc; }

.value .service__icon { margin: 0 auto; }

/* ---------- CTA band ---------- */

.cta-band {
  background: var(--sand);
  padding: 56px 0;
}

.cta-band .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cta-band h2 {
  margin: 0 0 6px;
  color: var(--navy-dark);
}

.cta-band p {
  margin: 0;
  color: var(--navy);
  font-weight: 600;
}

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 50px;
  align-items: start;
}

.contact-info {
  background: var(--navy);
  color: #d7dde3;
  border-radius: var(--radius);
  padding: 38px 32px;
}

.contact-info h2,
.contact-info h3 { color: var(--white); }

.contact-info ul {
  list-style: none;
  padding: 0;
  margin: 24px 0;
}

.contact-info li {
  display: flex;
  gap: 14px;
  margin-bottom: 20px;
}

.contact-info li svg {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  color: var(--sand);
  margin-top: 3px;
}

.contact-info a {
  color: var(--white);
  text-decoration: none;
}

.contact-info a:hover { color: var(--sand); }

.contact-info strong {
  display: block;
  color: var(--sand);
  font-family: var(--font-head);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 38px 34px;
  box-shadow: var(--shadow);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--navy);
  margin-bottom: 6px;
}

.field label .req { color: #b4432f; }

.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 0.98rem;
  color: var(--text);
  padding: 12px 14px;
  border: 1px solid #cfc8bd;
  border-radius: var(--radius);
  background: #fdfcfa;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--sand);
  box-shadow: 0 0 0 3px rgba(200, 161, 101, 0.25);
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.field .hint {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 4px;
}

.hp-field {
  position: absolute;
  left: -9999px;
}

.form-status {
  display: none;
  margin-top: 18px;
  padding: 14px 18px;
  border-radius: var(--radius);
  font-weight: 600;
}

.form-status.success {
  display: block;
  background: #e7f4ea;
  color: #1f6b35;
}

.form-status.error {
  display: block;
  background: #fbeaea;
  color: #9b2c2c;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy-dark);
  color: #9aa6b1;
  font-size: 0.93rem;
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
}

.site-footer h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 18px;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer li { margin-bottom: 10px; }

.site-footer a {
  color: #9aa6b1;
  text-decoration: none;
}

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

.site-footer .logo { margin-bottom: 18px; }
.site-footer .logo img { height: 64px; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 48px;
  padding: 20px 0;
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .services,
  .testimonials,
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .values { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .split,
  .contact-grid { grid-template-columns: 1fr; gap: 50px; }
  .split--reverse .split__media { order: 0; }
  .split__media { max-width: 480px; }
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }

  .nav {
    position: absolute;
    top: 78px;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.08);
    display: none;
  }

  .nav.open { display: block; }

  .nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 20px 20px;
  }

  .nav li a {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
  }

  .nav li a.btn {
    margin-top: 14px;
    text-align: center;
    border-bottom: 0;
  }

  .stats .container { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .section { padding: 60px 0; }
  .hero { padding: 90px 0 80px; }
  .services,
  .testimonials,
  .gallery,
  .values,
  .form-row,
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { gap: 0; }
  .form-card { padding: 28px 20px; }
  .topbar__hours { display: none; }
  .experience-badge { right: 12px; bottom: 12px; padding: 14px 18px; }
  .experience-badge strong { font-size: 2rem; }
  .cta-band .container { text-align: center; justify-content: center; }
}
