/* ==========================================================================
   Yakulaas — footer.css
   Cream footer with the Himalayan illustration behind the menu row.
   Layout, top to bottom:
       [ logo + about text ]  [ Pages ]  [ Policies ]     over the artwork
       ----------------------------------------------------
                         © year name. All rights reserved.
   Colours come from the theme tokens in base.css. The footer colour is --yk-footer-bg below
   (default: the brand tint). The artwork is drawn on a white paper and multiplied with that
   colour, so changing --yk-footer-bg recolours the whole footer, artwork included.
   --yk-art / --yk-art-half (the two artwork files) are set in footer.php; --yk-art-* below tune their size.
   ========================================================================== */

.yk-footer {
	--yk-footer-bg:  var(--yk-brand-tint);
	--yk-f-text:     var(--yk-body);
	--yk-f-line:     color-mix(in srgb, var(--yk-brand) 18%, transparent);
	--yk-art-max:    2200px;    /* art stops growing beyond this width */
	--yk-art-w:      min(100vw, var(--yk-art-max));
	--yk-art-gap:    .12;       /* room kept under the menus for the scenery, as a fraction of art width */
	--yk-art-top:    44px;

	background: var(--yk-footer-bg);
	color: var(--yk-f-text);
}

.yk-footer a { color: var(--yk-brand); }
.yk-footer a:hover { color: var(--yk-brand-dark); }

/* ---------- Menu row carries the artwork -------------------------------- */
.yk-footer__top {
	padding-top: var(--yk-art-top);
	padding-bottom: calc(var(--yk-art-w) * var(--yk-art-gap));
	background-color: var(--yk-footer-bg);
	background-image: var(--yk-art, none);
	background-blend-mode: multiply;
	background-repeat: no-repeat;
	background-position: center bottom;
	background-size: min(100%, var(--yk-art-max)) auto;
}

.yk-footer__grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: var(--yk-space-xl) var(--yk-space-lg);
}
.yk-footer__brand { grid-column: 1 / -1; max-width: 26rem; }

.yk-footer__title { margin: 0 0 var(--yk-space-sm); color: var(--yk-brand-dark); font-size: 1rem; font-weight: 700; }

.yk-footer__list, .yk-footer__social { margin: 0; padding: 0; list-style: none; }
.yk-footer__list li + li { margin-top: .55rem; }
.yk-footer__list a { text-decoration: none; }
.yk-footer__list a:hover { text-decoration: underline; text-underline-offset: .2em; }

/* ---------- Logo + about ------------------------------------------------- */
.yk-footer .custom-logo { max-height: 3rem; width: auto; }
.yk-footer__about { margin: var(--yk-space-sm) 0 0; font-size: .9375rem; line-height: 1.6; }
.yk-footer__lic { margin: var(--yk-space-xs) 0 0; font-size: .8125rem; color: var(--yk-muted); }
.yk-footer__social { display: flex; flex-wrap: wrap; gap: var(--yk-space-2xs); margin-top: var(--yk-space-sm); margin-inline-start: -.5rem; }
.yk-footer__social .yk-icon-btn { color: var(--yk-brand); }
.yk-footer__social .yk-icon-btn:hover { background: var(--yk-paper); color: var(--yk-brand-dark); }

/* ---------- Bottom bar: copyright only ----------------------------------- */
.yk-footer__bar { border-top: 1px solid var(--yk-f-line); }
.yk-footer__bar-inner { padding-block: var(--yk-space-md); text-align: center; }
.yk-footer__legal { margin: 0; font-size: .875rem; color: var(--yk-muted); }

/* ---------- Tablet and up ------------------------------------------------ */
@media (min-width: 768px) {
	.yk-footer__grid { grid-template-columns: 2fr repeat(2, 1fr); }
	.yk-footer__brand { grid-column: auto; }
	.yk-footer { --yk-art-top: 56px; }
}

/* ---------- Phones: right half of the art, zoomed in --------------------- */
@media (max-width: 600px) {
	.yk-footer { --yk-art-w: 150vw; --yk-art-gap: .32; --yk-art-top: 36px; }
	.yk-footer__top {
		background-image: var(--yk-art-half, var(--yk-art, none));
		background-position: right bottom;
		background-size: 150% auto;
	}
}
