/* L&D Rendering — External Rendering & Plastering */

:root {
  /* Palette taken from the L&D logo: navy, warm grey, off-white */
  --stone-50: #f7f7f5;
  --stone-100: #edecea;
  --stone-200: #dcdad6;
  --stone-400: #a29f9a;

  --grey-500: #827f7a;
  --grey-600: #6b6863;
  --grey-700: #57544f;

  --navy-800: #22303d;
  --navy-900: #18222c;

  --star: #e8a23a;
  --facebook: #1877f2;
  --whatsapp: #25d366;

  --ink: #18222c;
  --muted: #5d636a;
  --line: rgba(24, 34, 44, 0.12);
  --line-light: rgba(247, 247, 245, 0.14);

  --sans: "Manrope", "Helvetica Neue", Arial, sans-serif;
  --serif: "Fraunces", Georgia, serif;

  --shell: 1160px;
  --gut: clamp(16px, 5vw, 48px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--stone-50);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0; }

.sprite { display: none; }
svg symbol { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--navy-800); color: var(--stone-50);
  padding: 12px 20px; font-weight: 600;
}
.skip:focus { left: 12px; top: 12px; }

:focus-visible { outline: 2px solid var(--navy-800); outline-offset: 3px; }

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gut);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--grey-600);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

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

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px;
  border: 1.5px solid transparent;
  border-radius: 6px;
  font: 600 16px/1 var(--sans);
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn svg { width: 18px; height: 18px; }
.btn-solid { background: var(--grey-600); color: var(--stone-50); }
.btn-solid:hover { background: var(--grey-700); }
.btn-line { border-color: currentColor; }
.btn-line:hover { background: var(--stone-50); color: var(--navy-900); border-color: var(--stone-50); }

/* ---------- Header ---------- */

.site-header {
  position: fixed; inset-block-start: 0; inset-inline: 0; z-index: 50;
  padding-block: 16px;
  padding-top: calc(16px + env(safe-area-inset-top, 0px));
  color: var(--stone-50);
  transition: background-color .3s ease, color .3s ease, box-shadow .3s ease;
}
.site-header.stuck {
  background: var(--stone-50);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
}

.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark {
  display: grid; place-items: center;
  width: 46px; height: 46px; padding: 4px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 0 0 1px var(--line);
}
.brand-mark img { display: block; width: 100%; height: 100%; }
.brand-text { display: grid; gap: 4px; font: 600 20px/1 var(--serif); }
.brand-text small { font: 600 10px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; opacity: .8; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a { text-decoration: none; font-weight: 500; font-size: 15px; white-space: nowrap; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--navy-800); }
.nav .nav-cta {
  padding: 10px 16px;
  border: 1.5px solid currentColor;
  border-radius: 6px;
}

.header-call { display: none; }
.nav .nav-contact {
  padding: 11.5px 16px;
  border-radius: 6px;
  background: var(--grey-600); color: var(--stone-50);
  font-weight: 600;
}
.nav .nav-contact:hover { background: var(--grey-700); color: var(--stone-50); }

.burger { display: none; }

@media (max-width: 1080px) {
  .header-call {
    display: inline-flex; align-items: center; gap: 8px;
    height: 40px; padding-inline: 14px; margin-left: auto; margin-right: -8px;
    border-radius: 20px;
    background: var(--grey-600); color: var(--stone-50);
    font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap;
  }
  .header-call svg { width: 16px; height: 16px; flex: none; }
  .nav .nav-contact { padding: 14px 24px; }
  .burger {
    display: grid; gap: 5px;
    padding: 10px; margin-right: -10px;
    background: none; border: 0; color: inherit; cursor: pointer;
    position: relative; z-index: 2;
  }
  .burger span { display: block; width: 24px; height: 2px; background: currentColor; transition: transform .25s ease, opacity .25s ease; }
  .burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .nav {
    position: fixed; inset: 0;
    flex-direction: column; justify-content: center; gap: 28px;
    background: var(--navy-900); color: var(--stone-50);
    opacity: 0; visibility: hidden;
    transition: opacity .25s ease, visibility .25s ease;
  }
  .nav.open { opacity: 1; visibility: visible; }
  .nav a { font-size: 22px; }
  .nav.open ~ .burger { color: var(--stone-50); }
}

@media (max-width: 400px) {
  .header-inner { gap: 10px; }
  .brand { gap: 8px; }
  .brand-text { font-size: 17px; }
  .brand-text small { font-size: 8.5px; letter-spacing: .1em; }
  .header-call { padding-inline: 12px; font-size: 13px; }
  .header-call svg { display: none; }
}

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

.hero {
  position: relative;
  min-height: min(92vh, 760px);
  display: flex; align-items: center;
  padding-block: 140px 96px;
  color: var(--stone-50);
  background:
    linear-gradient(115deg, rgba(24, 34, 44, .9) 0%, rgba(34, 48, 61, .72) 55%, rgba(130, 127, 122, .5) 100%),
    url("assets/work/hero-detached-house.jpg") center / cover no-repeat,
    var(--navy-900);
}
/* Background video on the home page; the photo above shows if it can't play */
.hero-media { position: absolute; inset: 0; overflow: hidden; }
.hero-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(115deg, rgba(24, 34, 44, .88) 0%, rgba(34, 48, 61, .62) 55%, rgba(130, 127, 122, .4) 100%);
}
.hero-inner { position: relative; }
@media (prefers-reduced-motion: reduce) { .hero-media { display: none; } }
.hero .eyebrow { color: var(--stone-200); }
.hero h1 { max-width: 760px; font-size: clamp(38px, 6.4vw, 68px); }
.lede { max-width: 600px; margin: 22px 0 34px; font-size: clamp(17px, 2vw, 19px); color: var(--stone-100); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Sections ---------- */

.section { padding-block: clamp(72px, 10vw, 112px); }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head h2, .contact-copy h2 { font-size: clamp(30px, 4.4vw, 44px); }

.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
@media (max-width: 820px) { .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }

.svc { perspective: 1000px; }
.svc-inner {
  display: grid;
  width: 100%; min-height: 190px;
  padding: 0; border: 0; border-radius: 10px;
  background: none; color: inherit;
  font: inherit; text-align: left;
  cursor: pointer;
  transform-style: preserve-3d;
  transition: transform .6s ease;
}
.svc-inner[aria-pressed="true"] { transform: rotateY(180deg); }
.svc-face {
  grid-area: 1 / 1;
  display: flex; flex-direction: column;
  padding: 22px;
  border-radius: 10px;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.svc-front { background: #fff; border: 1px solid var(--line); transition: border-color .2s ease; }
@media (hover: hover) { .svc-inner:hover .svc-front { border-color: var(--navy-800); } }
.svc-back {
  justify-content: center; gap: 8px;
  background: var(--navy-800); color: var(--stone-50);
  transform: rotateY(180deg);
}
.svc-icon { width: 30px; height: 30px; color: var(--navy-800); margin-bottom: 14px; }
.svc-title { font: 600 20px/1.2 var(--serif); }
.svc-hint {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: auto; padding-top: 14px;
  font-size: 13px; font-weight: 600; color: var(--navy-800);
}
.svc-hint svg { width: 14px; height: 14px; }
.svc-text { font-size: 15px; line-height: 1.5; color: var(--stone-100); }

@media (max-width: 560px) {
  .svc-inner { min-height: 180px; }
  .svc-face { padding: 16px; }
  .svc-icon { width: 26px; height: 26px; margin-bottom: 10px; }
  .svc-title { font-size: 17px; }
  .svc-back .svc-title { font-size: 15px; }
  .svc-text { font-size: 13.5px; line-height: 1.45; }
}

.work-slider { --per: 4; --gap: 16px; }
@media (max-width: 980px) { .work-slider { --per: 2; } }
@media (max-width: 560px) { .work-slider { --per: 1; } }

.work-viewport { overflow: hidden; }
.work-track {
  display: flex;
  gap: var(--gap);
  transition: transform .6s ease;
}
.work-item {
  flex: 0 0 calc((100% - (var(--per) - 1) * var(--gap)) / var(--per));
  margin: 0;
  overflow: hidden;
  border-radius: 10px;
  background: var(--stone-200);
  aspect-ratio: 4 / 3;
}
.work-item img {
  display: block;
  width: 100%; height: 100%;
  object-fit: cover;
}

.work-controls { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 20px; }
.work-all {
  display: inline-flex; align-items: center; gap: 8px;
  margin-right: auto;
  font-weight: 600; color: var(--navy-800); text-decoration: none;
}
.work-all svg { width: 16px; height: 16px; }
.work-all:hover { color: var(--navy-900); }
.work-btn {
  display: grid; place-items: center;
  width: 46px; height: 46px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  background: none; color: var(--ink);
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease;
}
@media (hover: hover) { .work-btn:hover { background: var(--ink); color: var(--stone-50); } }
.work-btn svg { width: 20px; height: 20px; }
.work-prev svg { transform: scaleX(-1); }

/* ---------- Reviews ---------- */

.reviews { background: var(--navy-800); color: var(--stone-50); }
.reviews .section-head h2 { color: var(--stone-50); }
.reviews .eyebrow { color: var(--stone-400); }

.stars { display: inline-flex; gap: 2px; color: var(--star); }
.stars svg { width: 18px; height: 18px; }
.rating { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 16px 0 0; font-weight: 600; }
.rating .stars svg { width: 22px; height: 22px; }

.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 16px;
}
.review {
  display: flex; flex-direction: column; gap: 14px;
  margin: 0; padding: 26px;
  background: var(--navy-900);
  border-radius: 10px;
}
.review blockquote { margin: 0; font: 500 18px/1.5 var(--serif); }
.review figcaption { margin-top: auto; font-size: 14px; font-weight: 600; color: var(--stone-400); }
/* review cards on a light page */
.section:not(.reviews) .review { background: #fff; border: 1px solid var(--line); }
.section:not(.reviews) .review figcaption { color: var(--muted); }

.reviews-foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
  margin-top: 32px;
}
.badges { display: flex; flex-wrap: wrap; gap: 12px; }
.badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 16px;
  border: 1.5px solid currentColor; border-radius: 8px;
  text-decoration: none; font-weight: 700; line-height: 1.2;
}
.badge svg { width: 24px; height: 24px; color: var(--star); flex: none; }
.badge small { display: block; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; opacity: .75; }

/* ---------- Inner pages ---------- */

.hero.hero-sm { min-height: 0; padding-block: 150px 72px; }
.hero-sm .rating { color: var(--stone-50); }

.owners { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 560px) { .owners { grid-template-columns: 1fr; } }
.owner-photo {
  display: grid; place-items: center;
  margin: 0; aspect-ratio: 4 / 5;
  border: 2px dashed var(--stone-400); border-radius: 10px;
  background: var(--stone-100);
  color: var(--muted); font-weight: 600;
}
.owners-text { max-width: 680px; margin: 32px 0 0; font-size: 18px; color: var(--muted); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 12px;
}
.gallery-item { display: block; overflow: hidden; border-radius: 10px; aspect-ratio: 4 / 3; background: var(--stone-200); }
.gallery-item img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
@media (hover: hover) { .gallery-item:hover img { transform: scale(1.04); } }

.lightbox {
  width: 100vw; height: 100vh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: rgba(24, 34, 44, .95);
}
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgba(24, 34, 44, .6); }
.lightbox img { max-width: calc(100vw - 32px); max-height: calc(100vh - 140px); border-radius: 6px; }
.lightbox-btn {
  position: absolute;
  display: grid; place-items: center;
  width: 48px; height: 48px;
  border: 1.5px solid var(--stone-50); border-radius: 50%;
  background: rgba(24, 34, 44, .5); color: var(--stone-50);
  font: 400 30px/1 var(--sans); cursor: pointer;
}
.lightbox-btn svg { width: 22px; height: 22px; }
.lightbox-close { top: 16px; right: 16px; }
.lightbox-prev { left: 16px; top: 50%; translate: 0 -50%; }
.lightbox-prev svg { transform: scaleX(-1); }
.lightbox-next { right: 16px; top: 50%; translate: 0 -50%; }
@media (max-width: 560px) {
  .lightbox-prev, .lightbox-next { top: auto; bottom: 24px; translate: none; }
  .lightbox-prev { left: calc(50% - 60px); }
  .lightbox-next { right: calc(50% - 60px); }
}

.process { background: var(--stone-100); }
.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: 32px;
  counter-reset: step;
}
.steps li { counter-increment: step; border-top: 2px solid var(--navy-800); padding-top: 22px; }
.steps li::before {
  content: "0" counter(step);
  display: block; margin-bottom: 10px;
  font: 600 15px/1 var(--sans); letter-spacing: .1em; color: var(--navy-800);
}
.steps h3 { font-size: 21px; margin-bottom: 8px; }
.steps p { margin: 0; color: var(--muted); }

@media (max-width: 560px) {
  .hero { min-height: 0; padding-block: 112px 64px; }
  .hero-actions .btn { flex: 1 1 auto; justify-content: center; }
  .section { padding-block: 56px; }
  .section-head { margin-bottom: 28px; }
  .steps { gap: 24px; }
}

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

.contact-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: clamp(36px, 6vw, 80px);
  align-items: start;
}
@media (max-width: 860px) { .contact-inner { grid-template-columns: 1fr; } }

.contact-copy > p:not(.eyebrow) { color: var(--muted); margin: 16px 0 28px; }

.details { margin: 0; display: grid; gap: 16px; }
.details div { display: grid; gap: 2px; }
.details dt { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.details dt svg { width: 16px; height: 16px; color: var(--navy-800); }
.details dd { margin: 0; font-size: 18px; font-weight: 600; }
.details a { text-decoration: none; }
.details a:hover { color: var(--navy-800); }

.form {
  display: grid; gap: 18px;
  padding: clamp(24px, 4vw, 36px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; }
.field label { font-size: 14px; font-weight: 600; }
.opt { font-weight: 400; color: var(--muted); }
.field input, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--stone-200);
  border-radius: 6px;
  background: var(--stone-50);
  color: var(--ink);
  font: 16px/1.5 var(--sans);
}
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--navy-800); box-shadow: 0 0 0 3px rgba(34, 48, 61, .18); }
.field.invalid input, .field.invalid textarea { border-color: #b3261e; }
.err { font-size: 13px; color: #b3261e; min-height: 0; }
.err:empty { display: none; }
.hp { position: absolute; left: -9999px; }

.submit { justify-self: start; }
.submit:disabled { opacity: .6; cursor: progress; }
.form-status { margin: 0; font-size: 15px; }
.form-status:empty { display: none; }
.form-status[data-state="ok"] { color: #2e6b34; }
.form-status[data-state="bad"] { color: #b3261e; }

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

.site-footer {
  padding-block: 40px;
  padding-bottom: calc(40px + env(safe-area-inset-bottom, 0px));
  background: var(--navy-900);
  color: var(--stone-200);
}
.footer-inner { display: grid; gap: 24px; }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.footer-base { padding-top: 24px; border-top: 1px solid var(--line-light); }
@media (max-width: 640px) { .footer-row { flex-direction: column; align-items: flex-start; } }
.site-footer .brand { color: var(--stone-50); }
.site-footer p { margin: 0; font-size: 15px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--stone-50); }
.footer-contact { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px; }
.footer-contact a { display: inline-flex; align-items: center; gap: 8px; }
.footer-contact svg { width: 18px; height: 18px; flex: none; }
.social { display: flex; gap: 10px; }
.social a {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  color: #fff;
  transition: filter .2s ease, transform .2s ease;
}
.social a:hover { filter: brightness(1.12); transform: translateY(-1px); }
.social .social-fb { background: var(--facebook); }
.social .social-wa { background: var(--whatsapp); }
.social svg { width: 20px; height: 20px; }
