
.review-section {padding:clamp(2rem,6vw,6rem) max(5vw,1rem);background:#f0f4ec;color:#103e2c;scroll-margin-top:5rem}
.review-controls {display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:.65rem}
.review-track {display:flex;gap:1rem;overflow:hidden;padding:.65rem 0}
.review-card {flex:0 0 calc((100% - 2rem)/3);min-width:0;background:white;border-radius:1rem;padding:1rem;overflow-wrap:anywhere}
.review-card img {width:60px;height:60px;border-radius:50%;object-fit:cover}
.review-card h3 {font-size:1.15rem;margin:.5rem 0}
.review-body > p,.review-body > details {display:inline}
.review-body > details > summary {display:inline-block}
.review-body:not(:has(> details[open])) .review-continuation,
.review-body:has(> details[open]) .review-ellipsis {display:none}
.review-card summary {cursor:pointer;text-decoration:underline;list-style:none}
.review-card summary::-webkit-details-marker {display:none}
.review-card summary::before {content:"";display:inline-block;width:.42em;height:.42em;margin-inline-end:.55em;vertical-align:.18em;border:solid currentColor;border-width:0 1.5px 1.5px 0;transform:rotate(45deg)}
.review-card details[open] > summary::before {transform:rotate(225deg);vertical-align:.03em}
.review-card details:not([open]) .review-less,
.review-card details[open] .review-more {display:none}
.review-controls button,.review-actions button {cursor:pointer;background:white;border:1px solid #315343;color:#103e2c;border-radius:.5rem;min-width:44px;min-height:44px;padding:.5rem}
.review-actions {display:flex;justify-content:center;gap:1rem;flex-wrap:wrap;margin-top:1rem}
.review-form {max-width:40rem;display:grid;gap:1rem}
.review-form label {display:grid;gap:.4rem}
.review-form input:not([type=checkbox]),.review-form select,.review-form textarea {width:100%;min-height:44px;max-width:100%;font:inherit;padding:.6rem;border:1px solid #617b6b;border-radius:.4rem;background:#fff;color:#103e2c}
.review-form .review-consent {display:flex;align-items:start}
.review-consent input {margin:.4em;flex:none}
.branch-whatsapp {position:fixed;z-index:15;right:1rem;bottom:1rem;padding:.8rem 1rem;background:#176740;color:#fff;border-radius:2rem;box-shadow:0 4px 15px #0003}
.branch-map iframe {display:block;width:100%;min-height:280px;border:0;border-radius:.6rem}
.branch-map {grid-column:1/-1;width:100%}
#contact-details {scroll-margin-top:6rem}
.sample-branch-photo {max-width:420px;margin:1rem auto}
.sample-branch-photo img {width:100%;max-height:230px;object-fit:cover}
[data-queue] .review-card {margin:.7rem 0}
[data-queue] button {margin:.25rem;padding:.5rem}
@media(max-width:700px){.review-card{flex-basis:100%}}

#review-admin form[hidden], [data-sample-label][hidden] {display:none}

.company-purpose{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:2rem 4rem;background:#e8eee4}
.company-purpose h2{margin-bottom:.75rem}
.company-purpose h3{margin:1.25rem 0 .5rem;font-size:1.1rem}
.company-purpose ul{padding-inline-start:1.25rem}
.company-purpose li{margin-bottom:.4rem}
.company-tagline{grid-column:1/-1;border-top:1px solid #b8c5ba;padding-top:1rem}
.company-tagline strong{font-size:clamp(1.2rem,3vw,2rem)}
html[lang=si] :is(h1,h2,h3,p){line-height:1.45;letter-spacing:normal}
@media(max-width:760px){.company-purpose{grid-template-columns:1fr;gap:1.5rem}}

.demo-photo{margin:0;width:100%;max-width:620px}
.demo-photo>div{aspect-ratio:1;background-image:url('/assets/demo-branch-grid.png');background-size:200% 200%;background-repeat:no-repeat;border-radius:.7rem}
.demo-exterior>div{background-position:left top}
.demo-staff>div{background-position:right top;max-width:250px}
.demo-interior>div{background-position:left bottom}
.demo-team>div{background-position:right bottom}
.demo-photo figcaption{font-size:.85rem;margin:.4rem 0 .8rem}
.staff-grid img {
  display: block;
  width: min(100%, 300px);
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center top;
}
.demo-review-face{display:block;width:60px;height:60px;border-radius:50%;background-image:url('/assets/demo-review-grid.png');background-size:200% 200%}
.demo-review-face-0{background-position:left top}
.demo-review-face-1{background-position:right top}
.demo-review-face-2{background-position:left bottom}
.demo-review-face-3{background-position:right bottom}

.branch-media-grid{display:grid;gap:1rem;grid-template-columns:repeat(auto-fit,minmax(min(100%,250px),1fr));align-items:start}.branch-media-grid img,.branch-media-grid video{width:100%;aspect-ratio:4/3;object-fit:contain;background:#e8eee4;border-radius:.7rem}.branch-media-grid .demo-photo{max-width:none}.branch-media-grid figcaption{text-align:center;text-align-last:center}.branch-media-grid .demo-photo>div{aspect-ratio:1}#gallery-admin[hidden]{display:none}

.staff-grid img[src="/assets/kalum-portrait.png"],
.staff-grid img[src="/assets/nilusha-de-silva.png"],
.staff-grid img[src="/assets/morais-portrait.png"] {
  object-position: center top;
}

.kandy-portrait-frame {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  width: min(100%, 300px);
  aspect-ratio: 1;
  overflow: hidden;
  background: linear-gradient(155deg, #776b62 0%, #a0958c 60%, #786d64 100%);
}

.staff-grid .kandy-portrait-frame img {
  display: block;
  width: 90%;
  height: 100%;
  object-fit: contain;
}
.branch-packages {background:#eef2e5;color:#103e2c}
.branch-packages h2 {margin-bottom:1.5rem}
.package-group {max-width:65rem;margin-bottom:1.5rem}
.package-group h3 {font-size:1.2rem;margin-bottom:.5rem}
.package-group ul {list-style:none;padding:0;margin:0}
.package-group li {display:flex;justify-content:space-between;gap:1rem;padding:.7rem 0;border-bottom:1px solid #bbcab8}
.package-group li p {margin:.25rem 0 0}
.package-facts {display:flex;gap:.4rem 1rem;flex-wrap:wrap;justify-content:flex-end;text-align:right;flex:none}
@media(max-width:600px){.package-group li{display:block}.package-facts{justify-content:flex-start;text-align:left;margin-top:.25rem}}
.staff-grid img[src="/assets/hiriketiya-profile.jpg"] {object-position:center 5%}
.avissawella-portrait-frame {
  width: min(100%, 300px);
  aspect-ratio: 1;
  overflow: hidden;
}
.staff-grid .avissawella-portrait-frame img {
  width: 100%;
  height: 100%;
  transform: scale(1.05);
  transform-origin: center bottom;
}

.review-controls button {
  display:grid;
  place-items:center;
  color:#103e2c;
  background:#e8eee2;
  border:1px solid #8ba38c;
  border-radius:50%;
  width:44px;
  height:44px;
}
.review-controls button:hover {background:#103e2c;color:#fff3c8}
.translation-field {display:grid;gap:.35rem;margin:.75rem 0}
.translation-field textarea {width:100%;padding:.65rem;border:1px solid #8ba38c;border-radius:.4rem;resize:vertical}
.review-card p {white-space:pre-wrap}

/* Reserve a gutter for the fixed homepage section controls. */
body:has(.section-controls) #reviews .review-controls {margin-inline-end:max(0px, calc(96px - 5vw))}
@media (max-width:600px){
  body:has(.section-controls) #reviews .review-controls {margin-inline-end:calc(72px - max(5vw, 1rem))}
}

.gallery-trigger{position:relative;display:block;width:100%;padding:0;border:0;background:none;cursor:zoom-in;border-radius:.7rem}
.gallery-trigger :is(img,video){display:block}
.gallery-video-icon{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);display:grid;place-items:center;width:3rem;height:3rem;border-radius:50%;background:#e6c875;color:#103e2c}
body:has(.gallery-viewer[open]){overflow:hidden}
.gallery-viewer{position:fixed;inset:0;width:100%;height:100%;max-width:none;max-height:none;margin:0;padding:0;border:0;background:transparent;color:#fff3c8}
.gallery-viewer[open]{display:grid;place-items:center}
.gallery-viewer::backdrop{background:#092b20db;backdrop-filter:blur(10px)}
.gallery-stage{position:relative;display:grid;place-items:center;max-width:calc(100vw - 8rem)}
.gallery-stage :is(img,video){display:block;max-width:100%;max-height:calc(100dvh - 9rem);object-fit:contain;border-radius:.6rem}
.gallery-viewer button{display:grid;place-items:center;min-width:44px;min-height:44px;cursor:pointer;background:#e6c875;color:#103e2c;border:1px solid #f0d68c;border-radius:2rem;z-index:1}
.gallery-viewer button[hidden]{display:none}
.gallery-viewer button:focus-visible,.gallery-trigger:focus-visible{outline:3px solid #e6c875;outline-offset:4px}
.gallery-viewer button svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.gallery-close,.gallery-previous,.gallery-next{position:absolute}
.gallery-close{top:1rem;right:1rem;font-size:1.65rem}
.gallery-previous{left:1rem}
.gallery-next{right:1rem}
.gallery-viewer .gallery-play{position:absolute;bottom:.65rem;padding-inline:1rem}
.gallery-viewer p.gallery-caption{position:absolute;bottom:1rem;inset-inline:3rem;margin:0;text-align:center;text-align-last:center;pointer-events:none}
@media(max-width:600px){.gallery-stage{max-width:calc(100vw - 6.75rem)}.gallery-previous{left:.35rem}.gallery-next{right:.35rem}}
