/* =========================================================
FOOTER.CSS
Footer gallery, main footer, cookie banner and WhatsApp widget.
========================================================= */

/* =========================================================
FOOTER GALLERY
========================================================= */

.footer-gallery,
.scrolling-gallery {
position: relative;
z-index: 5;
overflow: visible;
padding: 22px 0 0;
background: var(--colour-primary);
}

.footer-gallery .section-title,
.scrolling-gallery .section-title {
margin-bottom: -26px;
color: var(--colour-white);
font-weight: 800;
text-shadow: 0 -1px 4px rgba(0, 0, 0, 0.25);
}

.gallery-scroll,
.scroll-container {
position: relative;
z-index: 6;

overflow-x: clip;
overflow-y: visible;

margin-bottom: 0;
padding: 0;

white-space: nowrap;
cursor: grab;
scroll-behavior: smooth;
-webkit-overflow-scrolling: touch;

transform: translateY(58px);
}

.gallery-scroll:active,
.scroll-container:active {
cursor: grabbing;
}

.gallery-scroll::-webkit-scrollbar,
.scroll-container::-webkit-scrollbar {
display: none;
}

.gallery-track,
.scroll-track {
display: inline-flex;
gap: 18px;
will-change: transform;
transition: transform 0.02s linear;
}

.gallery-slide,
.scroll-slide {
position: relative;
z-index: 7;
flex: 0 0 auto;

width: min(400px, 82vw);
margin: 0;

overflow: hidden;
border-radius: var(--radius-md);
scroll-snap-align: center;
box-shadow: 0 18px 38px rgba(0, 0, 0, 0.18);
}

.gallery-slide a,
.scroll-slide a {
display: block;
position: relative;
color: var(--colour-white);
}

.gallery-slide img,
.scroll-slide img {
display: block;
width: 100%;
height: 400px;

object-fit: cover;
pointer-events: none;
user-select: none;

transform: scale(1);
transition:
transform 0.35s ease,
filter 0.35s ease;
}

.gallery-slide:hover img,
.scroll-slide:hover img {
transform: scale(1.045);
filter: brightness(1.08);
}

.gallery-slide figcaption,
.scroll-slide figcaption {
position: absolute;
inset-inline: 0;
bottom: 0;

padding: 18px 16px;

background:
linear-gradient(
180deg,
rgba(0, 0, 0, 0) 0%,
rgba(0, 0, 0, 0.68) 38%,
rgba(0, 0, 0, 0.82) 100%
);

color: var(--colour-white);
font-size: 17px;
font-weight: 750;
line-height: 1.25;
text-align: center;

opacity: 0;
transform: translateY(8px);
transition:
opacity 0.25s ease,
transform 0.25s ease;
}

.gallery-slide:hover figcaption,
.gallery-slide:focus-within figcaption,
.scroll-slide:hover figcaption,
.scroll-slide:focus-within figcaption {
opacity: 1;
transform: translateY(0);
}

.gallery-slide figcaption span,
.scroll-slide .description,
.scroll-slide figcaption span {
display: block;
margin-top: 4px;
color: rgba(255, 255, 255, 0.78);
font-size: 13px;
font-weight: 500;
}

/* =========================================================
MAIN FOOTER
========================================================= */

.site-footer,
footer {
position: relative;
z-index: 3;

margin-top: 0;
padding: 100px 0 0;

background:
linear-gradient(180deg, var(--colour-dark) 0%, #171e26 100%);
color: var(--colour-white);
text-align: left;
}


.footer-grid,
.footer-container {
display: grid;
grid-template-columns:
minmax(260px, 1.25fr)
minmax(220px, 1fr)
minmax(180px, 0.8fr)
minmax(180px, 0.8fr);
gap: clamp(26px, 4vw, 48px);

align-items: start;
padding-block: 22px 42px;
}

.footer-section {
min-width: 0;
}

.footer-brand {
max-width: 360px;
}

.footer-logo {
display: inline-flex;
align-items: center;
margin-bottom: 18px;
}

.footer-logo img {
display: block;
width: 190px;
max-width: 100%;
height: auto;
}

.footer-intro {
margin: 0 0 22px;
max-width: 330px;

color: rgba(255, 255, 255, 0.70);
font-size: 14px;
line-height: 1.65;
}

.footer-title {
margin: 0 0 16px;

color: var(--colour-primary);
font-size: 15px;
font-weight: 800;
line-height: 1.2;
letter-spacing: 0.02em;
text-transform: lowercase;
}

.footer-title-spaced {
margin-top: 28px;
}

/* =========================================================
FOOTER CONTACT
========================================================= */

.footer-contact {
display: grid;
gap: 12px;

margin: 0;
padding: 0;
list-style: none;
}

.footer-contact li,
.footer-contact address {
display: flex;
align-items: center;
gap: 10px;

margin: 0;
color: rgba(255, 255, 255, 0.82);
font-style: normal;
font-weight: 600;
line-height: 1.35;
}

.footer-contact a {
color: rgba(255, 255, 255, 0.84);
text-decoration: none;
transition: color 0.18s ease;
}

.footer-contact a:hover,
.footer-contact a:focus-visible {
color: var(--colour-primary);
}

.footer-contact .site-icon {
width: 22px;
height: 22px;
flex: 0 0 auto;
color: var(--colour-primary);
}

/* =========================================================
FOOTER LINKS
========================================================= */

.footer-links {
display: grid;
gap: 13px;

margin: 0;
padding: 0;
list-style: none;
}

.footer-links li {
margin: 0;
}

.footer-links a {
display: inline-flex;

color: rgba(255, 255, 255, 0.88);
font-size: 14px;
font-weight: 650;
line-height: 1.3;
text-decoration: none;

transition:
color 0.18s ease,
transform 0.18s ease;
}

.footer-links a:hover,
.footer-links a:focus-visible {
color: var(--colour-primary);
transform: translateX(2px);
}

.footer-links small,
.link-note {
display: block;
margin-top: 4px;

color: rgba(255, 255, 255, 0.45);
font-size: 12.5px;
font-weight: 400;
line-height: 1.45;
}

.footer-links-simple {
gap: 10px;
}

/* =========================================================
FOOTER SOCIAL
========================================================= */

.footer-social {
display: flex;
flex-wrap: wrap;
gap: 10px;
}

.footer-social a {
display: inline-flex;
align-items: center;
justify-content: center;

width: 42px;
height: 42px;

border-radius: 12px;
background: rgba(255, 255, 255, 0.08);
color: var(--colour-white);

text-decoration: none;
transition:
transform 0.18s ease,
background-color 0.18s ease,
box-shadow 0.18s ease;
}

.footer-social a:hover,
.footer-social a:focus-visible {
transform: translateY(-2px);
box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
}

.footer-social .site-icon {
width: 22px;
height: 22px;
color: currentColor;
fill: currentColor;
}

.footer-social .icon-review {
width: 23px;
height: 23px;
}

/* Social colours */
.footer-social a:has(use[href$="#wcc-icon-facebook"]) {
background: #1877f2;
}

.footer-social a:has(use[href$="#wcc-icon-instagram"]) {
background:
radial-gradient(
circle at 30% 107%,
#fdf497 0%,
#fdf497 5%,
#fd5949 45%,
#d6249f 60%,
#285aeb 90%
);
}

.footer-social a:has(use[href$="#wcc-icon-x"]) {
background: #000000;
}

.footer-social a:has(use[href$="#wcc-icon-youtube"]) {
background: #ff0000;
}

.footer-social a:has(use[href$="#wcc-icon-google"]) {
background: #ffffff;
color: #4285f4;
}

.footer-social a:has(use[href$="#wcc-icon-google"]) .site-icon {
color: #4285f4;
fill: #4285f4;
}

.footer-social a:has(use[href$="#wcc-icon-star"]) {
background: #00b67a;
}

.footer-social a:has(use[href$="#wcc-icon-yell"]) {
background: #ffd800;
color: #000000;
}

/* =========================================================
FOOTER BOTTOM
========================================================= */

.footer-bottom {
background: rgba(0, 0, 0, 0.10);
}

.footer-bottom-inner {
min-height: 74px;

display: flex;
align-items: center;
justify-content: space-between;
gap: 18px;

padding-block: 16px;
}

.footer-copy {
margin: 0;
color: rgba(255, 255, 255, 0.48);
font-size: 12.5px;
}

.footer-credit {
display: inline-flex;
align-items: center;
gap: 8px;

color: rgba(255, 255, 255, 0.48);
font-size: 11.5px;
}

.footer-credit a {
display: inline-flex;
align-items: center;
}

.footer-credit img {
display: block;
width: 70px;
height: auto;
opacity: 0.85;
transition:
opacity 0.18s ease,
transform 0.18s ease;
}

.footer-credit a:hover img,
.footer-credit a:focus-visible img {
opacity: 1;
transform: translateY(-1px);
}

/* =========================================================
SCREEN READER UTILITY
========================================================= */

.sr-only {
position: absolute;
width: 1px;
height: 1px;

margin: -1px;
padding: 0;

overflow: hidden;
clip: rect(0, 0, 0, 0);
white-space: nowrap;
border: 0;
}

/* =========================================================
FOOTER RESPONSIVE
========================================================= */

@media (max-width: 1120px) {
.footer-grid,
.footer-container {
grid-template-columns:
minmax(240px, 1.1fr)
minmax(210px, 1fr)
minmax(170px, 0.9fr)
minmax(170px, 0.9fr);
gap: 28px;
}
}

@media (max-width: 960px) {
.footer-grid,
.footer-container {
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 34px 42px;
}

.footer-brand {
max-width: none;
}
}

@media (max-width: 760px) {
.footer-gallery,
.scrolling-gallery {
padding-top: 38px;
overflow: visible;
}

.footer-gallery .section-title,
.scrolling-gallery .section-title {
margin-bottom: -18px;
font-size: clamp(1.9rem, 8vw, 2.4rem);
}

.gallery-scroll,
.scroll-container {
padding-inline: 8px;
transform: translateY(46px);
}

.gallery-track,
.scroll-track {
gap: 10px;
}

.gallery-slide,
.scroll-slide {
width: 84vw;
border-radius: 14px;
}

.gallery-slide img,
.scroll-slide img {
height: 250px;
}

.gallery-slide figcaption,
.scroll-slide figcaption {
opacity: 1;
transform: none;
padding: 16px 14px;
font-size: 15px;
}

.site-footer,
footer {
padding-top: 84px;
}

.footer-grid,
.footer-container {
grid-template-columns: 1fr;
gap: 30px;
padding-block: 24px 34px;
}

.footer-section {
text-align: left;
}

.footer-logo img {
width: 172px;
}

.footer-intro {
max-width: none;
margin-bottom: 20px;
}

.footer-title {
margin-bottom: 12px;
}

.footer-title-spaced {
margin-top: 22px;
}

.footer-links {
gap: 11px;
}

.footer-social {
gap: 9px;
}

.footer-social a {
width: 40px;
height: 40px;
}

.footer-bottom-inner {
min-height: auto;
flex-direction: column;
justify-content: center;
gap: 10px;
text-align: center;
}
}

@media (max-width: 440px) {
.footer-gallery,
.scrolling-gallery {
padding-top: 34px;
}

.footer-gallery .section-title,
.scrolling-gallery .section-title {
margin-bottom: -14px;
}

.gallery-scroll,
.scroll-container {
transform: translateY(40px);
}

.gallery-slide,
.scroll-slide {
width: 86vw;
}

.gallery-slide img,
.scroll-slide img {
height: 225px;
}

.site-footer,
footer {
padding-top: 58px;
}

.footer-grid,
.footer-container {
gap: 26px;
padding-block: 22px 30px;
}

.footer-contact li,
.footer-contact address,
.footer-links a {
font-size: 13.5px;
}

.footer-links small,
.link-note {
font-size: 12px;
}
}


/* =========================================================
COOKIE BANNER
========================================================= */

#cookie-banner {
position: fixed;
inset-inline: 0;
bottom: 0;
z-index: 2147483646 !important;
pointer-events: auto;
}

.cookie-banner {
display: flex;
align-items: center;
justify-content: center;
gap: 18px;

padding: 14px var(--container-padding);

background: rgba(0, 0, 0, 0.84);
color: var(--colour-white);
box-shadow: 0 -12px 32px rgba(0, 0, 0, 0.22);
}

.cookie-banner.hidden,
#cookie-preferences.hidden {
display: none !important;
}

.cookie-banner p {
max-width: 760px;
margin: 0;

color: rgba(255, 255, 255, 0.84);
font-size: 13px;
line-height: 1.5;
}

.cookie-banner a {
color: var(--colour-white);
text-decoration: underline;
text-underline-offset: 3px;
}

.cookie-buttons,
.preference-buttons {
display: flex;
gap: 10px;
flex: 0 0 auto;
}

.cookie-banner button {
min-height: 42px;
padding: 10px 18px;

border: 0;
border-radius: var(--radius-sm);

background: rgba(255, 255, 255, 0.12);
color: var(--colour-white);

font-family: inherit;
font-size: 12px;
font-weight: 750;
text-transform: uppercase;

cursor: pointer;
transition:
background-color 0.18s ease,
transform 0.18s ease;
}

.cookie-banner button:hover,
.cookie-banner button:focus-visible {
background: var(--colour-primary);
transform: translateY(-1px);
}

.cookie-preferences {
display: flex;
flex-direction: column;
gap: 10px;

margin-top: 0;
}

.cookie-preferences label {
color: rgba(255, 255, 255, 0.86);
font-size: 13px;
}

@media (max-width: 760px) {
.cookie-banner {
flex-direction: column;
align-items: stretch;
gap: 12px;
text-align: center;
}

.cookie-banner p {
max-width: none;
}

.cookie-buttons,
.preference-buttons {
width: 100%;
flex-direction: column;
}

.cookie-banner button {
width: 100%;
}

.cookie-preferences {
width: 100%;
}
}

/* =========================================================
WHATSAPP / MESSENGER WIDGET
========================================================= */

#whatsapp-widget {
position: fixed;
right: 20px;
bottom: 20px;
z-index: 9999;
font-family: Arial, sans-serif;
}

#whatsapp-icon,
#messenger-switch {
display: flex;
align-items: center;
justify-content: center;

border: 0;
cursor: pointer;
}

#whatsapp-icon .site-icon,
#messenger-switch .site-icon {
display: block;
margin: 0;
color: #ffffff;
fill: currentColor;
}

#whatsapp-icon {
position: relative;

width: 60px;
height: 60px;

border-radius: 999px;
background: #25d366;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.16);
}

#whatsapp-icon .site-icon {
width: 34px;
height: 34px;
}

#messenger-switch {
position: absolute;
right: 70px;
bottom: 0;

width: 38px;
height: 38px;

border-radius: 999px;
background: #0084ff;
box-shadow: 0 3px 8px rgba(0, 0, 0, 0.14);

transition: transform 0.18s ease;
}

#messenger-switch:hover,
#messenger-switch:focus-visible {
transform: scale(1.08);
}

#messenger-switch .site-icon {
width: 21px;
height: 21px;
}

#notification-badge {
position: absolute;
top: -4px;
right: -4px;

width: 18px;
height: 18px;

border-radius: 999px;
background: #ff0000;
color: var(--colour-white);
box-shadow: 0 0 0 2px #25d366;

font-size: 11px;
font-weight: 800;
line-height: 18px;
text-align: center;
}

/* =========================================================
WHATSAPP CHAT WINDOW
========================================================= */

#whatsapp-chat {
position: absolute;
right: 0;
bottom: 72px;

display: flex;
flex-direction: column;

width: min(320px, calc(100vw - 40px));
height: 400px;
overflow: hidden;

border-radius: 14px;
background: var(--colour-white);
box-shadow: 0 12px 34px rgba(0, 0, 0, 0.32);

opacity: 0;
transform: translateY(36px);
pointer-events: none;

transition:
opacity 0.28s ease,
transform 0.28s ease;
}

#whatsapp-chat.visible {
opacity: 1;
transform: translateY(0);
pointer-events: auto;
}

#chat-header {
display: flex;
align-items: center;
justify-content: space-between;

padding: 10px;
background: #075e54;
color: var(--colour-white);
}

#chat-header-left {
display: flex;
align-items: center;
min-width: 0;
}

#chat-header img {
width: 40px;
height: 40px;

margin-right: 10px;
border-radius: 999px;
}

.status {
display: flex;
align-items: center;
gap: 5px;

color: #d1e7dd;
font-size: 12px;
}

.status .dot {
width: 10px;
height: 10px;

border-radius: 999px;
background: #25d366;
}

.minimize-btn {
border: 0;
background: transparent;
color: var(--colour-white);
font-size: 22px;
cursor: pointer;
}

#chat-messages {
display: flex;
flex-grow: 1;
flex-direction: column;

overflow-y: auto;
padding: 10px;

background: #ece5dd;
}

.timestamp {
margin-bottom: 5px;
color: #777777;
font-size: 11px;
text-align: center;
}

.message {
max-width: 80%;
margin-bottom: 10px;
padding: 8px 12px;

border-radius: 8px;

color: #111111;
font-size: 14px;
word-wrap: break-word;
}

.message.agent {
align-self: flex-start;
background: var(--colour-white);
}

.message.user {
align-self: flex-end;
background: #dcf8c6;
}

.message.typing em::after {
content: " .";
animation: dots 1s steps(3, end) infinite;
}

@keyframes dots {
0% {
content: " .";
}

33% {
content: " ..";
}

66% {
content: " ...";
}

100% {
content: " .";
}
}

#chat-input {
display: flex;
padding: 8px;

border-top: 1px solid #dddddd;
background: var(--colour-white);
}

#chat-input input {
flex-grow: 1;

min-width: 0;
padding: 8px 14px;

border: 1px solid #dddddd;
border-radius: 999px;

font-size: 14px;
outline: none;
}

#chat-input button {
margin-left: 8px;
padding: 0 18px;

border: 0;
border-radius: 999px;

background: #25d366;
color: var(--colour-white);

font-size: 13px;
font-weight: 800;
cursor: pointer;
}

@media (max-width: 480px) {
#whatsapp-widget {
right: 14px;
bottom: 14px;
}

#whatsapp-chat {
right: 0;
bottom: 72px;
width: calc(100vw - 28px);
height: 380px;
}

#whatsapp-icon {
width: 52px;
height: 52px;
}

#whatsapp-icon .site-icon {
width: 30px;
height: 30px;
}

#messenger-switch {
right: 60px;
width: 34px;
height: 34px;
}

#notification-badge {
width: 15px;
height: 15px;
font-size: 10px;
line-height: 15px;
}

#chat-input button {
padding-inline: 14px;
}
}

/* =========================================================
REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {
.gallery-track,
.scroll-track,
.gallery-slide img,
.scroll-slide img,
.gallery-slide figcaption,
.scroll-slide figcaption,
.footer-links a,
.footer-social a,
.footer-credit img,
.cookie-banner button,
#messenger-switch,
#whatsapp-chat {
transition: none;
}
}
