/* ==========================================================================
   Phil Lester Construction (phil.build) – 2027.css
   The group's main site. Uses the same building blocks as allyearlawn.co.uk and
   greenandrubberroofs.com (header, menu, intro, footer, group strip, cookie
   banner, news, slideshow), with Phil Lester's own burgundy, logo and photos.
   Change the colours in one place: the variables just below.
   Replaces /css/2023.css and /stylesnew2017.css on updated pages.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;700&family=Quattrocento+Sans:wght@400;700&display=swap');

:root {
  --green:        #5f0a0e;   /* main brand colour: Phil Lester burgundy */
  --green-dark:   #151515;   /* footer bottom bar */
  --green-pale:   #f6f1f1;   /* light panels */
  --charcoal:     #2d302d;   /* buttons */
  --ink:          #2a2223;   /* strong text */
  --text:         #444;      /* body text */
  --muted:        #6b736c;
  --pink:         #e6968f;
  --robin:        #982021;   /* robin red from the logo, used for the menu icon */
  --white:        #fff;
  --header-bg:    #fff;
  --page-bg:      #efeded;   /* light grey page, as before */
  --footer-bg:    #2e2e2e;   /* charcoal footer */
  --awards-bg:    #555;      /* accreditations band, as before */
  --radius:       10px;

  --font-body: 'Quattrocento Sans', Arial, sans-serif;
  --font-head: 'Cinzel', Georgia, serif;
}

/* ---------- Reset ---------- */

html, body, div, span, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, address, cite, code, del, dfn, em, img, ins, kbd, q, s, samp,
small, strong, sub, sup, var, b, u, i,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, figure, figcaption, footer, header,
menu, nav, output, section, summary, time, mark, audio, video, main {
  margin: 0;
  padding: 0;
  border: 0;
  font: inherit;
  vertical-align: baseline;
}
article, aside, details, figcaption, figure, footer, header, menu, nav, section, main { display: block; }
ol, ul { list-style: none; }
blockquote, q { quotes: none; }
blockquote::before, blockquote::after, q::before, q::after { content: none; }
table { border-collapse: collapse; border-spacing: 0; }
[hidden] { display: none !important; }

html { overflow-y: scroll; }

/* ---------- Page ---------- */

body {
  margin: 0;
  background: var(--page-bg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1;
  text-align: center;
  -webkit-text-size-adjust: 100%;
}
body.home,
body.inner { background: var(--page-bg); }

/* ---------- Headings ---------- */

h1 {
  font-family: var(--font-head);
  color: var(--ink);
  font-size: 23px;
  letter-spacing: 0.5px;
  font-variant: small-caps;
  text-align: left;
  margin: 0 0 0 17px;
  padding: 0;
  min-height: 67px;
  background: transparent url(https://phil.build/gifs/phillogo.png) no-repeat;
  text-indent: -9999px;  /* the logo image shows; the text is for Google and screen readers */
}

h2 {
  font-family: var(--font-head);
  color: var(--green);
  font-size: 19px;
  font-weight: 400;
  letter-spacing: 1px;
  text-align: left;
  margin: 10px 10px 7px 12px;
  padding: 2px 11px 11px;
}
h2.white {
  color: var(--white);
  font-size: 21px;
  font-weight: 700;
  margin-left: 11px;
  border-bottom: 1px solid var(--white);
}
h2.green {
  color: var(--white);
  font-size: 29px;
  margin-left: 335px;
  padding-top: 34px;
  text-shadow: 1px 1px 0 #111;
}

h3 {
  font-family: var(--font-head);
  color: var(--green);
  font-size: 17px;
  font-weight: 400;
  letter-spacing: 1px;
  text-align: left;
  margin: 46px 10px 7px 12px;
  padding: 2px 11px 11px;
}
h3.white { color: var(--white); }
h3.dark  { color: var(--green); margin-top: 16px; }
.greenblock h2, .greenblock h3, .greenblock2 h2, .greenblock2 h3, .greenblock2trans h2 { color: var(--white); }

/* ---------- Text ---------- */

p {
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  letter-spacing: 0.5px;
  line-height: 2;
  text-align: left;
  margin: 0 0 0 12px;
}
p.dark       { font-size: 14px; margin: 0; }
p.white      { color: var(--white); font-size: 16px; margin: 12px 12px 12px 23px; }
p.nagyondark { color: #333; font-size: 16px; margin: 12px; }
p.darknav    { margin-top: 23px; margin-left: 18px; }
p.darknavcenter { text-align: center; margin-left: 4px; }
p.navigation { text-align: center; }
p.tag        { font-size: 24px; color: var(--white); }
p.tag2       { font-size: 24px; color: #222; margin: 33px 0 0 335px; }
p.clear      { clear: both; }

ul { padding-left: 11px; margin-left: 11px; }
li {
  color: #000;
  font-size: 16px;
  line-height: 1.2;
  text-align: left;
  margin: 2px 11px 11px;
  padding: 0 15px;
  list-style: disc url(https://phil.build/gifs/bullet.png);
}

/* ---------- Links ---------- */

a:link, a:visited, a:active { color: var(--text); text-decoration: none; padding: 4px; }
a:hover { color: #999; text-decoration: underline; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--pink);
  outline-offset: 2px;
}

/* ---------- Header (fixed white bar with logo and menu) ---------- */

.topnewbanner {
  position: fixed;
  top: 0;
  z-index: 100;
  width: 100%;
  min-height: 104px;
  margin: 0;
  padding: 0;
  background: var(--header-bg);
}
.innertopnewbanner {
  max-width: 960px;
  margin: 0 auto;
}
.mobhide { display: block; }
.navbar  { display: none; }

/* Soft shadow so the white header lifts off the photo */
.topnewbanner { box-shadow: 0 1px 0 rgba(0,0,0,.05), 0 6px 18px rgba(0,0,0,.08); }

/* Desktop menu: even spacing, green underline slides in on hover, current page marked */
.topnewbanner p.darknav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 30px;
  margin: 12px 0 0 22px;
  padding-bottom: 6px;
  line-height: 1.4;
}
.topnewbanner .darknav a:link,
.topnewbanner .darknav a:visited {
  position: relative;
  padding: 5px 0;
  font-size: 15px;
  letter-spacing: 1.2px;
  color: var(--ink);
  text-decoration: none;
  transition: color .2s ease;
}
.topnewbanner .darknav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 1px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.topnewbanner .darknav a:hover,
.topnewbanner .darknav a[aria-current="page"] {
  color: var(--green);
  text-decoration: none;
}
.topnewbanner .darknav a:hover::after,
.topnewbanner .darknav a:focus-visible::after,
.topnewbanner .darknav a[aria-current="page"]::after { transform: scaleX(1); }

@media (prefers-reduced-motion: reduce) {
  .topnewbanner .darknav a, .topnewbanner .darknav a::after { transition: none; }
}

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

.main4,
.main2 {
  width: 100%;
  min-height: 899px;
  margin: 122px auto 0;
  padding: 39px 0 0;
  text-align: center;
  background-color: var(--awards-bg);   /* grey below the photo, as before */
  background-repeat: no-repeat;
  background-position: center top;
}
.main4 { background-image: url(https://phil.build/gifs/newbck18.jpg); }
.main2 { background-image: url(https://phil.build/gifs/newbck18.jpg); }

.greenblock,
.greenblock2,
.greenblock2trans {
  margin: 9px;
  padding: 7px;
  border-radius: var(--radius);
  background: var(--green);
}
.greenblock       { max-width: 699px; }
.greenblock2      { width: 299px; }
.greenblock2trans { width: 299px; background: transparent; }

.navbutton { margin-top: 353px; }

.buttonlink {
  width: 179px;
  padding: 9px;
  color: var(--white);
  background: var(--charcoal);
  border: 1px solid #000;
  transition: border-color .2s, background .2s;
}
.buttonlink:hover { border-color: var(--white); background: #000; transform: scale(1.05); }
.buttonlink { transition: border-color .2s, background .2s, transform .2s; }
.buttonlink a:link, .buttonlink a:visited { color: var(--white); letter-spacing: 1px; }
.buttonlink a:hover { color: var(--white); }
.buttonlink img { vertical-align: middle; }

/* ---------- Content boxes used on other pages ---------- */

.main {
  width: 100%;
  min-height: 466px;
  margin: 399px auto 15px;
  padding: 12px;
  text-align: center;
  background: var(--white);
  border-radius: var(--radius) var(--radius) 0 0;
}
.main2home {
  width: 100%;
  min-height: 466px;
  margin: 0 auto 15px;
  padding: 12px;
  text-align: center;
  background: var(--white);
  border-radius: var(--radius) var(--radius) 0 0;
}
.maintransparent { min-height: 1066px; background: transparent; }
.maindark {
  max-width: 960px;
  margin: 11px auto 15px;
  padding: 12px;
  text-align: center;
  background: var(--white);
  border: 1px solid #000;
  border-radius: 5px;
  box-shadow: 0 0 0 8px rgba(0,0,0,.3);
  opacity: .9;
}

.textblock {
  max-width: 699px;
  margin: 9px;
  padding: 10px 14px 22px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 6px 24px rgba(0,0,0,.12);
}
.textblock p { margin-right: 12px; margin-bottom: 10px; }
.textblock img.fullscreenall { border-radius: 6px; }
.textblock .buttonlink { margin-top: 18px; }

.bodyboxnoop {
  max-width: 494px;
  margin: 430px auto 50px;
  padding: 11px;
  text-align: left;
  background: #eee;
  border-radius: var(--radius);
  opacity: .9;
}

.whitebox,
.whiteboxtransparent {
  max-width: 991px;
  margin: 0 auto;
  padding: 11px;
}
.whitebox {
  min-height: 474px;
  background: #e5d9d9;
  border-radius: var(--radius) var(--radius) 0 0;
}
.whiteboxtransparent { min-height: 584px; background: transparent; }

.grass       { width: 100%; min-height: 550px; background: transparent; }
.homeimg     { min-height: 500px; background: #555; }
.slideshow   { max-width: 999px; margin: 109px auto 0; }
.header      { max-width: 999px; margin: 0 auto; background: var(--white); }
.nav         { margin-left: 221px; background: transparent; }
.centerbox   { margin: 0 auto; text-align: center; }
.logobox     { text-align: center; background: var(--white); }
.moreinfo    { width: 100%; padding-top: 10px; font-size: 15px; background: #a1dba5; border-radius: 15px; }
.booknow     { text-align: left; margin-left: 335px; padding-top: 23px; }

.halfbox        { width: 45%; float: left; }
.newsletterbox  { width: 45%; float: left; padding: 11px; }
.contactbox,
.gallerybox     { width: 32%; float: left; text-align: center; }
.servicesbox    { width: 22%; float: left; text-align: center; }
.floatleftbox   { float: left; margin: 7px; }
.smallboxnew    { float: left; margin: 1px; padding: 5px; }
.smallbox {
  float: left;
  margin: 1px;
  padding: 11px;
  border: 1px solid #1e281b;
  background: linear-gradient(to right, #d2ff52 0%, #91e842 100%);
}

/* Old footer classes, still used on other pages */
.footer    { width: 100%; margin: 0; padding-top: 10px; font-size: 15px; background: #555; }
.footerbox { max-width: 960px; margin: 10px auto 0; padding: 32px 12px 12px; font-size: 15px; background: #555; }
.bottomnewbanner      { width: 100%; margin: 0; padding: 0; background: #000; }
.innerbottomnewbanner { max-width: 980px; margin: 0 auto; background: #000; }

hr.topbar {
  height: 1px;
  border: 0;
  background: linear-gradient(to right, #ccc, #3a5997, #ccc);
}

/* ---------- Images ---------- */

img { max-width: 100%; height: auto; }
img.logo            { float: right; }
img.left            { float: left; padding: 5px; }
img.right           { float: right; padding: 5px; }
img.gallery         { height: 172px; margin: 7px; float: left; }
img.projectgallery  { width: 80%; margin-top: 31px; }
img.fullscreenall   { width: 90%; margin: 13px; }
img.halffloatright  { width: 50%; float: right; margin: 13px; border-radius: 6px; }
img.logoboxes       { width: 129px; margin: 11px; }
img.fullscreenall,
img.gallerypagepic  { box-shadow: rgb(38,57,77) 0 20px 30px -10px; border-radius: 2px; }
img.gallerypagepic  { width: 90%; margin: 7px 7px 13px; }
img.halfscreenleft,
img.halfscreenright { display: inline; width: 45%; margin: 7px; box-shadow: rgb(38,57,77) 0 20px 30px -10px; }
img.halfscreenleft  { float: left;  margin-left: 0; }
img.halfscreenright { float: right; margin-right: 0; }

/* News cards (photo faded behind the text) */
.bluebox {
  position: relative;
  z-index: 0;
  min-height: 30px;
  padding: 4px;
  background: var(--green);
  box-shadow: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -2px rgba(0,0,0,.05);
  transition: transform .2s;
}
.bluebox:hover { transform: scale(1.05); }
.bluebox h3 { margin-top: 3px; padding-top: 2px; }
.bluebox::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url(https://phil.build/gifs/newbck18.jpg) center / cover;
  opacity: .18;
}
img.laura           { float: right; }

/* ---------- Forms and buttons ---------- */

.select, .largeselect, .smallselect {
  width: 300px;
  padding: 4px;
  font-size: 13px;
  border: 1px solid #c4c4c4;
  border-radius: 4px;
  box-shadow: 0 0 8px #d9d9d9;
}
.smallselect { width: 140px; }
.select:focus, .largeselect:focus, .smallselect:focus {
  outline: none;
  border-color: #7bc1f7;
  box-shadow: 0 0 8px #7bc1f7;
}

.button {
  display: block;
  width: 100%;
  padding: 12px 15px;
  font: 16px var(--font-body);
  letter-spacing: 1px;
  text-align: center;
  color: var(--white);
  background: var(--green);
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  transition: background .2s;
}
.button:hover { background: var(--charcoal); }
.button:disabled { cursor: not-allowed; opacity: .6; }

#myBtn, #myBtn2 {
  position: fixed;
  z-index: 98;
  padding: 15px;
  font-size: 18px;
  letter-spacing: 2px;
  color: var(--white);
  background: #333;
  border: 0;
  border-radius: var(--radius);
  opacity: .8;
  cursor: pointer;
}
#myBtn  { display: none; bottom: 20px; right: 30px; }
#myBtn2 { display: inline; top: 50%; left: 40%; }
#myBtn:hover  { background: #555; }
#myBtn2:hover { background: #555; text-decoration: underline; }

/* ==========================================================================
   NEW: intro section (the short description under the hero)
   ========================================================================== */

.intro {
  background: var(--page-bg);
  padding: 64px 20px 72px;
}
.intro-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: left;
}
.intro h2 {
  color: var(--green);
  font-size: 28px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: .5px;
  margin: 0 0 22px;
  padding: 0;
}
.intro h2::after {
  content: "";
  display: block;
  width: 64px;
  height: 3px;
  margin-top: 16px;
  background: var(--green);
  border-radius: 2px;
}
.intro p {
  margin: 0 0 16px;
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: .2px;
}
.intro .intro-lead {
  color: var(--ink);
  font-size: 20px;
  line-height: 1.6;
}
.intro p a:link,
.intro p a:visited {
  padding: 0;
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.intro p a:hover { color: var(--ink); }

.ticks {
  margin: 26px 0 30px;
  padding: 22px 26px;
  background: var(--green-pale);
  border-left: 4px solid var(--green);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.ticks li {
  position: relative;
  list-style: none;
  margin: 0 0 10px;
  padding: 0 0 0 32px;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
}
.ticks li:last-child { margin-bottom: 0; }
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat;
}

.intro .intro-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin: 0;
}
a.btn:link, a.btn:visited,
.intro p a.btn:link, .intro p a.btn:visited {
  display: inline-block;
  padding: 13px 26px;
  font-family: var(--font-head);
  font-size: 15px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--white);
  background: var(--green);
  border-radius: 6px;
  transition: background .2s;
}
a.btn:hover, .intro p a.btn:hover { background: var(--charcoal); color: var(--white); text-decoration: none; }

/* ==========================================================================
   NEW: customer review (Reviews page)
   ========================================================================== */

.review {
  position: relative;
  padding: 18px 18px 24px;
  box-shadow: 0 6px 24px rgba(0,0,0,.18);
}
.review::before {             /* large decorative quote mark */
  content: "\201C";
  position: absolute;
  top: 4px;
  right: 22px;
  font-family: var(--font-head);
  font-size: 110px;
  line-height: 1;
  color: rgba(255,255,255,.14);
  pointer-events: none;
}
.review h3 {
  margin: 8px 60px 14px 12px;
  font-size: 20px;
  line-height: 1.4;
  letter-spacing: .5px;
}
.review blockquote {
  margin: 0 0 0 12px;
  padding-left: 14px;
  border-left: 2px solid rgba(255,255,255,.3);
}
.review blockquote p.white { margin: 0 10px 12px 8px; font-size: 16px; line-height: 1.85; }
.review p.review-name {
  margin: 18px 12px 6px 23px;
  font-family: var(--font-head);
  font-size: 17px;
  letter-spacing: 1px;
}
.review img.fullscreenall { display: block; width: auto; max-width: calc(100% - 24px); margin: 14px auto 20px; border-radius: 6px; }

/* ==========================================================================
   NEW: contact page – details card, form and human check
   ========================================================================== */

.contact-card {
  margin: 18px 12px 8px;
  padding: 14px 18px;
  background: var(--green-pale);
  border-left: 4px solid var(--green);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.contact-card p { margin: 0; line-height: 2; color: var(--ink); }
.contact-card .contact-label {
  display: inline-block;
  min-width: 92px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
}
.contact-card a:link, .contact-card a:visited { padding: 0; color: var(--green); font-weight: 700; }
.contact-card a:hover { color: var(--ink); }

.contact-form { margin: 0 12px; }
.contact-form p { margin: 0 0 14px; line-height: 1.5; }
.contact-form label {
  display: block;
  margin-bottom: 5px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .5px;
  color: var(--ink);
}
.contact-form .req { font-weight: 400; color: var(--muted); font-size: 13px; }
.contact-form input[type="text"],
.contact-form input[type="tel"],
.contact-form input[type="email"],
.contact-form textarea {
  display: block;
  box-sizing: border-box;
  width: 100%;
  max-width: 460px;
  padding: 10px 12px;
  font: 16px/1.4 var(--font-body);   /* 16px stops iPhones zooming in */
  color: var(--ink);
  background: var(--white);
  border: 1px solid #c9cfc7;
  border-radius: 6px;
  transition: border-color .2s, box-shadow .2s;
}
.contact-form textarea { max-width: 100%; min-height: 120px; resize: vertical; }
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(84,97,85,.18);
}

.btn-submit {
  padding: 13px 28px;
  font-family: var(--font-head);
  font-size: 15px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--white);
  background: var(--green);
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  transition: background .2s;
}
.btn-submit:hover { background: var(--charcoal); }

/* Spam trap: hidden from people, visible to bots */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* "Tap the lawn" human check */
.human-check {
  margin: 6px 0 18px;
  padding: 14px 16px;
  background: var(--green-pale);
  border-radius: var(--radius);
}
.contact-form .human-title { margin: 0 0 10px; font-size: 15px; color: var(--ink); }
.contact-form .human-title b { font-weight: 700; }
.human-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.human-tile {
  padding: 0;
  background: var(--white);
  border: 3px solid transparent;
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(0,0,0,.15);
  cursor: pointer;
  transition: border-color .15s, transform .15s;
}
.human-tile:hover { transform: translateY(-2px); }
.human-tile img {
  display: block;
  width: 96px;
  height: 72px;
  object-fit: cover;
  border-radius: 7px;
}
.human-tile.is-picked { border-color: var(--green); box-shadow: 0 0 0 3px rgba(84,97,85,.25); }
.contact-form .human-hint { margin: 8px 0 0; font-size: 13px; color: var(--muted); }
.contact-form .human-hint.is-error { color: #a32a22; font-weight: 700; }

/* ==========================================================================
   NEW: privacy policy
   ========================================================================== */

.policy h3.dark { margin-top: 26px; }
.policy .policy-date { font-size: 13px; color: var(--muted); letter-spacing: 1px; text-transform: uppercase; }
.policy p { margin-bottom: 10px; }
.policy ul { margin: 0 12px 14px 4px; }
.policy li { margin: 0 0 8px 18px; padding: 0 0 0 6px; color: var(--text); font-size: 15px; line-height: 1.7; }
.policy b { font-weight: 700; color: var(--ink); }
.policy p a:link, .policy p a:visited { padding: 0; color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.policy p a:hover { color: var(--ink); }

.btn-outline {
  padding: 10px 20px;
  font: 700 14px var(--font-body);
  letter-spacing: .5px;
  color: var(--green);
  background: var(--white);
  border: 2px solid var(--green);
  border-radius: 6px;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.btn-outline:hover { color: var(--white); background: var(--green); }

/* ==========================================================================
   NEW: 404 page not found
   ========================================================================== */

.notfound { padding-top: 24px; }
.notfound p.notfound-code {
  margin: 0 12px -6px;
  font-family: var(--font-head);
  font-size: 72px;
  line-height: 1;
  letter-spacing: 4px;
  color: var(--green);
  opacity: .25;
}
.notfound h3.dark { font-size: 22px; margin-top: 6px; }

.notfound-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 8px 12px 24px;
  padding: 0;
}
.notfound-links li { list-style: none; margin: 0; padding: 0; }
.notfound-links a:link,
.notfound-links a:visited {
  display: block;
  height: 100%;
  box-sizing: border-box;
  padding: 14px 16px;
  color: var(--ink);
  text-decoration: none;
  background: var(--green-pale);
  border-left: 4px solid var(--green);
  border-radius: 0 8px 8px 0;
  transition: background .2s, transform .2s;
}
.notfound-links a:hover { background: #e6ebe3; transform: translateX(3px); text-decoration: none; }
.notfound-links strong { display: block; font-family: var(--font-head); font-size: 16px; color: var(--green); margin-bottom: 4px; }
.notfound-links .sep { display: none; }
.notfound-links span { display: block; font-size: 14px; line-height: 1.4; color: var(--text); }

.textblock .notfound-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin: 0 12px 6px; }
.notfound-cta span a:link, .notfound-cta span a:visited { padding: 0; color: var(--green); text-decoration: underline; text-underline-offset: 3px; }

/* ==========================================================================
   NEW: contact form reply page (from the /mail script)
   ========================================================================== */

.mail-result {
  padding: 18px 18px 22px;
  box-shadow: 0 6px 24px rgba(0,0,0,.18);
}
.mail-result h3 { margin-top: 8px; font-size: 20px; }
.mail-result p.white { line-height: 1.8; }
.mail-result a:link, .mail-result a:visited { padding: 0; color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
.mail-result a:hover { color: var(--white); opacity: .85; }

/* ==========================================================================
   Shared content pieces (both group sites)
   ========================================================================== */

/* Links inside text */
.textblock p a:link, .textblock p a:visited { padding: 0; color: var(--green); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.textblock p a:hover { color: var(--ink); }
.textblock p.buttonlink a:link, .textblock p.buttonlink a:visited { color: var(--white); font-weight: 400; text-decoration: none; }
.textblock p a.btn:link, .textblock p a.btn:visited, .textblock p a.btn:hover { color: var(--white); font-weight: 400; text-decoration: none; padding: 13px 26px; }

/* Row of dark buttons */
.button-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 12px 8px; }
.button-row .buttonlink { margin: 0; width: auto; min-width: 179px; white-space: nowrap; }

/* Free-quote card */
a.quote-card:link, a.quote-card:visited { display: block; margin: 26px 12px 8px; padding: 0; text-decoration: none; border-radius: var(--radius); overflow: hidden; }
.quote-card .bluebox { padding: 14px 10px 12px; border-radius: var(--radius); }
.quote-card .bluebox p { margin: 0 0 0 12px; }
.quote-card .bluebox h3 { margin: 6px 10px 2px 12px; font-size: 20px; }

/* News list and articles */
.news-list { margin: 10px 12px 6px; }
.news-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 18px;
  padding: 18px 0;
  border-top: 1px solid #e3e7e0;
}
.news-card:first-child { border-top: 0; }
.news-thumb:link, .news-thumb:visited { display: block; padding: 0; }
.news-thumb img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; box-shadow: 0 6px 16px rgba(0,0,0,.15); background: var(--green-pale); }
.news-text p { margin-left: 0; }
.news-text h3.dark { margin: 2px 0 6px; padding: 0; font-size: 19px; line-height: 1.35; }
.news-text h3 a:link, .news-text h3 a:visited { padding: 0; color: var(--ink); text-decoration: none; }
.news-text h3 a:hover { color: var(--green); text-decoration: underline; }
.news-text .buttonlink { margin-top: 8px; }
.textblock .news-text p.buttonlink a:link, .textblock .news-text p.buttonlink a:visited { color: var(--white); }
p.news-date { margin: 0 0 0 12px; font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); }
.news-text p.news-date { margin-left: 0; }
.textblock > h2 { margin-top: 2px; font-size: 24px; line-height: 1.3; }

/* Photo gallery */
.photo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 6px 12px 18px; }
.photo-grid img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; box-shadow: 0 6px 16px rgba(0,0,0,.15); }

/* Photo slideshow (opens when a gallery photo is clicked) */
.photo-grid img { cursor: zoom-in; transition: transform .2s, box-shadow .2s; }
.photo-grid img:hover { transform: scale(1.02); box-shadow: 0 10px 22px rgba(0,0,0,.22); }
body.lb-open { overflow: hidden; }
.lightbox {
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  max-height: 100vh;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: hidden;
}
.lightbox::backdrop { background: rgba(14, 18, 13, .94); }
.lightbox[open] { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.lb-figure { margin: 0; text-align: center; }
.lb-img {
  display: block;
  max-width: 88vw;
  max-height: 76vh;
  margin: 0 auto;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 12px 40px rgba(0,0,0,.5);
}
.lb-caption {
  max-width: 80vw;
  margin: 14px auto 0;
  font: 15px/1.5 var(--font-body);
  letter-spacing: .3px;
  color: rgba(255,255,255,.88);
}
.lb-bar { display: flex; align-items: center; gap: 16px; margin-top: 12px; }
.lb-count { font: 13px var(--font-body); letter-spacing: 2px; color: rgba(255,255,255,.65); }
.lb-btn, .lb-play {
  color: var(--white);
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.45);
  cursor: pointer;
  transition: background .2s, border-color .2s;
}
.lb-btn:hover, .lb-play:hover { background: rgba(255,255,255,.2); border-color: var(--white); }
.lb-btn {
  position: absolute;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font: 30px/1 var(--font-body);
}
.lb-prev  { left: 18px;  top: 50%; transform: translateY(-50%); }
.lb-next  { right: 18px; top: 50%; transform: translateY(-50%); }
.lb-close { right: 18px; top: 18px; font-size: 28px; }
.lb-play  { padding: 7px 16px; border-radius: 20px; font: 13px var(--font-body); letter-spacing: 1px; }

/* Map */
.map-embed { margin: 6px 12px 12px; }
.map-embed iframe { display: block; width: 100%; height: 380px; border: 0; border-radius: 8px; }

/* ==========================================================================
   Phil Lester Construction home page
   ========================================================================== */

/* Full-width photo with the brand box, like the other group sites */
.hero {
  position: relative;
  min-height: 560px;
  margin-top: 121px;
  padding: 40px 0 0;
  background: #555 url(https://phil.build/gifs/newbck18.jpg) center / cover no-repeat;
}
.hero .greenblock2 { position: relative; z-index: 1; opacity: .96; }
.hero .greenblock2 h2 { color: var(--white); }
.hero .navbutton { margin-top: 300px; }
.hero .buttonlink { display: inline-block; width: auto; min-width: 179px; white-space: nowrap; }

/* Pull-quote */
.pullquote {
  margin: 30px 0 26px;
  padding: 6px 0 6px 22px;
  border-left: 4px solid var(--green);
}
.pullquote p {
  margin: 0;
  font-family: var(--font-head);
  font-size: 22px;
  line-height: 1.5;
  color: var(--green);
}
.intro h3 { margin: 30px 0 12px; padding: 0; font-size: 19px; line-height: 1.4; text-align: left; }

/* Three feature cards */
.feature-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px 64px;
}
.feature-cards a:link, .feature-cards a:visited {
  display: block;
  padding: 0 0 18px;
  overflow: hidden;
  text-align: left;
  text-decoration: none;
  color: var(--ink);
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 6px 20px rgba(0,0,0,.08);
  transition: transform .2s, box-shadow .2s;
}
.feature-cards a:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(0,0,0,.14); text-decoration: none; }
.feature-cards img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.feature-cards h3 { margin: 16px 18px 4px; padding: 0; font-size: 18px; text-align: left; }
.feature-cards p { margin: 0 18px; font-size: 15px; line-height: 1.6; }
.feature-cards .more { display: inline-block; margin-top: 8px; font-weight: 700; color: var(--green); }

/* Accreditations and awards band */
.awards {
  padding: 40px 20px 44px;
  background: var(--awards-bg);
  text-align: center;
}
.awards h2 {
  margin: 0 0 22px;
  padding: 0;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-align: center;
  color: rgba(255,255,255,.8);
}
.awards-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 18px 26px;
  margin-bottom: 24px;
}
.awards-logos img { height: 64px; width: auto; }
.awards-logos img.robin { height: 90px; }
.awards img.award-winner { max-width: 100%; height: auto; border-radius: 4px; box-shadow: 0 8px 24px rgba(0,0,0,.3); }

/* Services: grid of photo tiles */
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 8px 12px 10px;
}
.service-grid a:link, .service-grid a:visited {
  position: relative;
  display: block;
  padding: 0;
  overflow: hidden;
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(0,0,0,.15);
}
.service-grid img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; transition: transform .3s; background: var(--green-pale); }
.service-grid a:hover img { transform: scale(1.06); }
.service-grid .service-name {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 26px 10px 9px;
  font-family: var(--font-head);
  font-size: 15px;
  letter-spacing: 1px;
  text-align: center;
  color: var(--white);
  background: linear-gradient(to top, rgba(40,6,8,.85), rgba(40,6,8,0));
}
.textblock .pullquote { margin: 18px 12px 12px; }
.textblock .pullquote p { margin: 0; font-size: 20px; }

/* A single photo that still opens in the slideshow */
.photo-grid.single { grid-template-columns: 1fr; }
.photo-grid.single img { aspect-ratio: auto; }

/* Simple list of links (e.g. related projects) */
.textblock ul.link-list { margin: 4px 12px 16px; padding: 0; }
.textblock ul.link-list li { list-style: none; margin: 0 0 8px; padding: 0 0 0 22px; position: relative; font-size: 16px; line-height: 1.5; }
.textblock ul.link-list li::before { content: "›"; position: absolute; left: 4px; top: -1px; font-size: 20px; color: var(--green); }
.textblock ul.link-list a:link, .textblock ul.link-list a:visited { padding: 0; color: var(--green); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.textblock ul.link-list a:hover { color: var(--ink); }

.textblock p.photo-caption { margin: -8px 12px 14px; font-size: 13px; letter-spacing: 1px; text-transform: uppercase; text-align: center; color: var(--muted); }
.textblock ul.ticks { margin: 6px 12px 18px; }

/* Gallery: project tiles */
.service-grid.projects { grid-template-columns: repeat(3, 1fr); }
.service-grid.projects img { aspect-ratio: 4 / 3; }
.service-grid .service-name small { display: block; margin-top: 3px; font-family: var(--font-body); font-size: 12px; letter-spacing: .5px; opacity: .85; }
.photo-count { font-family: var(--font-body); font-size: 14px; color: var(--muted); }
.gallery-login { margin: 26px 12px 0; padding: 14px 16px; background: var(--green-pale); border-radius: var(--radius); }
.gallery-login p { margin: 0; }

/* Longer galleries: three across */
.photo-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }

/* ==========================================================================
   NEW: footer
   ========================================================================== */

.site-footer {
  color: var(--white);
  background: var(--footer-bg);
  text-align: left;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
  max-width: 960px;
  margin: 0 auto;
  padding: 56px 20px 48px;
}
.site-footer h2 {
  color: var(--white);
  margin: 0 0 14px;
  padding: 0;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.site-footer h3 {
  color: var(--white);
  margin: 4px 0 16px;
  padding: 0 0 10px;
  font-family: var(--font-head);
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255,255,255,.25);
}
.site-footer p {
  margin: 0 0 10px;
  color: rgba(255,255,255,.88);
  font-size: 15px;
  line-height: 1.7;
  letter-spacing: .3px;
}
.site-footer .footer-small { font-size: 13px; color: rgba(255,255,255,.65); }
.site-footer .footer-logo {
  display: block;
  width: 160px;            /* about half the size of the main logo */
  height: auto;
  margin-top: 6px;
  padding: 8px 12px;
  background: var(--white); /* white tile so a dark logo stays readable on the green */
  border-radius: 6px;
}

.footer-links { margin: 0; padding: 0; }
.footer-links li {
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--white);
}

.site-footer a:link,
.site-footer a:visited {
  padding: 0;
  color: var(--white);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-footer a:hover { color: var(--white); text-decoration: none; border-bottom-color: rgba(255,255,255,.7); }

.site-footer a.footer-phone {
  font-family: var(--font-head);
  font-size: 22px;
  letter-spacing: 1px;
}

/* Group strip: links to the other Phil Lester Construction Group companies (same on every group site) */
.group-strip {
  padding: 14px 20px;
  border-top: 1px solid rgba(255,255,255,.15);
}
.group-strip p {
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
  font-size: 14px;
  line-height: 1.8;
  color: rgba(255,255,255,.75);
}
.group-strip .group-label {
  margin-right: 10px;
  font-family: var(--font-head);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
}
.site-footer .group-strip a:link,
.site-footer .group-strip a:visited { margin: 0 8px; color: var(--white); }

.footer-bar {
  padding: 16px 20px;
  background: var(--green-dark);
}
.footer-bar p {
  margin: 0;
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,.7);
}
.footer-bar a:link, .footer-bar a:visited { color: rgba(255,255,255,.85); }

/* ==========================================================================
   NEW: cookie banner
   ========================================================================== */

.cookie-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 24px;
  padding: 14px 20px;
  background: var(--charcoal);
  box-shadow: 0 -4px 16px rgba(0,0,0,.2);
}
.cookie-bar p { margin: 0; color: var(--white); font-size: 14px; line-height: 1.6; }
.cookie-bar a:link, .cookie-bar a:visited { padding: 0; color: var(--white); text-decoration: underline; }
.cookie-bar .consent { display: flex; gap: 8px; }
.cookie-bar button {
  padding: 8px 18px;
  font: 14px var(--font-body);
  color: var(--white);
  background: transparent;
  border: 1px solid rgba(255,255,255,.6);
  border-radius: 4px;
  cursor: pointer;
}
.cookie-bar button.accept { background: var(--green); border-color: var(--green); }
.cookie-bar button:hover  { border-color: var(--white); }

/* ==========================================================================
   Phones and small tablets
   ========================================================================== */

@media only screen and (max-width: 799px) {

  .mobhide { display: none; }
  .navbar  { display: block; }

  h1 { font-size: 21px; letter-spacing: 0; padding: 1px 0; margin-left: 4px; background-size: auto 64px; min-height: 66px; background-position: center; }
  h2 { font-size: 19px; }

  .main4, .main2 {
    margin-top: 112px;
    min-height: 560px;
    background-size: cover;
  }
  .navbutton { margin-top: 240px; }
  .greenblock2 { width: auto; max-width: 299px; }

  .greenblock, .whitebox, .header,
  .main2home, .select, .largeselect,
  .innerbottomnewbanner { width: 90%; }
  .main { width: 90%; min-height: 566px; margin-top: 322px; }
  .maintransparent { width: 90%; min-height: 566px; }
  .homeimg   { min-height: 300px; margin-top: 99px; }
  .slideshow { width: 90%; margin-top: 99px; }
  img.fullscreen { width: 90%; }
  .bigbox { width: 95%; float: none; }
  .homebox, .bodybox, .bigbodybox, .bigbodyboxnoop, .subbox { width: 90%; }
  .narrowbox { width: 80%; }
  .homeboxsummer { margin: 0; }
  p.top { width: 100%; }

  .textblock img.halffloatright { float: none; display: block; width: auto; max-width: calc(100% - 24px); margin: 6px 12px 12px; }
  .textblock { width: auto; margin-left: 4%; margin-right: 4%; }
  .greenblock.review { width: auto; margin-left: 4%; margin-right: 4%; }
  .review h3 { font-size: 18px; margin-right: 40px; }
  .review::before { font-size: 80px; right: 12px; }
  .human-tile img { width: 72px; height: 56px; }
  .contact-card .contact-label { display: block; min-width: 0; line-height: 1.6; margin-top: 4px; }
  .contact-card p { line-height: 1.6; margin-bottom: 4px; }
  .notfound-links { grid-template-columns: 1fr; }
  .greenblock.mail-result { width: auto; margin-left: 4%; margin-right: 4%; }
  .photo-grid { grid-template-columns: 1fr; }
  .map-embed iframe { height: 280px; }
  .news-card { grid-template-columns: 1fr; gap: 12px; }
  .textblock > h2 { font-size: 21px; }
  .lb-prev, .lb-next { top: auto; bottom: 18px; transform: none; }
  .lb-img { max-width: 94vw; max-height: 66vh; }
  .hero { margin-top: 112px; min-height: 420px; padding-top: 24px; }
  .hero .navbutton { margin-top: 170px; }
  .feature-cards { grid-template-columns: 1fr; padding-bottom: 44px; }
  .awards-logos img { height: 48px; }
  .awards-logos img.robin { height: 70px; }
  .photo-grid.cols-3 { grid-template-columns: 1fr 1fr; }
  .pullquote p { font-size: 19px; }
  .service-grid { grid-template-columns: 1fr 1fr; }
  .intro { padding: 44px 20px 52px; }
  .intro h2 { font-size: 23px; }
  .intro .intro-lead { font-size: 18px; }

  .footer-grid { grid-template-columns: 1fr; gap: 28px; padding: 44px 24px 36px; }
}

/* ==========================================================================
   Mobile menu (#cssmenu) – replaces the old /2023.css
   Only shown on phones (under 800px); desktop uses the text links instead.
   script.js adds the "Menu" button and opens/closes the list.
   If script.js fails to load, the links simply show as a list, so the menu always works.
   ========================================================================== */

#cssmenu,
#cssmenu ul,
#cssmenu li,
#cssmenu a,
#cssmenu #menu-button {
  display: block;
  position: relative;
  margin: 0;
  padding: 0;
  border: 0;
  line-height: 1;
  list-style: none;
  list-style-image: none;
  box-sizing: border-box;
}
#cssmenu {
  z-index: 283;
  font-family: var(--font-body);
  text-align: left;
  background: var(--header-bg);
}
#cssmenu > ul { border-top: 1px solid #e6e8e4; }
#cssmenu li   { font-size: 16px; color: var(--ink); }

#cssmenu a:link,
#cssmenu a:visited {
  padding: 15px 22px;
  color: var(--ink);
  letter-spacing: 1px;
  text-decoration: none;
  border-bottom: 1px solid #eef0ec;
}
#cssmenu a:hover {
  color: var(--ink);
  text-decoration: none;
  background: var(--green-pale);
}
#cssmenu a[aria-current="page"] {
  color: var(--green);
  font-weight: 700;
  border-left: 4px solid var(--green);
  padding-left: 18px;
}
#cssmenu ul ul a:link,
#cssmenu ul ul a:visited { padding-left: 40px; font-size: 15px; }

/* "Menu" button with hamburger icon */
#cssmenu #menu-button {
  padding: 13px 22px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink);
  border-top: 1px solid #e6e8e4;
  cursor: pointer;
}
#cssmenu #menu-button::before,
#cssmenu #menu-button::after {
  content: "";
  position: absolute;
  right: 22px;
  width: 22px;
  transition: transform .2s, top .2s;
}
#cssmenu #menu-button::before { top: 13px; height: 0; border-top: 2px solid var(--robin); }
#cssmenu #menu-button::after  { top: 19px; height: 4px; border-top: 2px solid var(--robin); border-bottom: 2px solid var(--robin); }

/* Turns into an X when open */
#cssmenu #menu-button.menu-opened::before { top: 20px; transform: rotate(45deg); }
#cssmenu #menu-button.menu-opened::after  { top: 20px; height: 0; border-bottom: 0; transform: rotate(-45deg); }

/* Closed until the button is pressed (only once script.js has added the button) */
#cssmenu #menu-button + ul      { display: none; }
#cssmenu #menu-button + ul.open { display: block; }

/* script.js may add these for sub-menus; the site has none at the moment */
#cssmenu .submenu-button { display: none; }