/* Floating shadows (owner, 2026-10-11; "approved, go live" the same day): every build links this file after site.css.
   Same strength as the Water Park Villas sandbox (25% less, lift 25% less again). Shadows are tinted with the site's own
   darkest colour, which follows the colour option. Change the strength here, in one place. Shadows and movement only. */
:root, [data-theme="navy"] { --float-rgb: 20, 33, 61; }        /* #14213D */
[data-theme="charcoal"] { --float-rgb: 31, 35, 40; }            /* #1F2328 */
[data-theme="blush"] { --float-rgb: 43, 45, 48; }               /* #2B2D30, the live colour option */
:root {
  --btn-rest:  0 1.5px 3.75px rgba(var(--float-rgb), .24), 0 6px 13.5px rgba(var(--float-rgb), .18);
  --btn-hover: 0 4.5px 9px rgba(var(--float-rgb), .26), 0 18px 33.75px rgba(var(--float-rgb), .26);
  --btn-press: 0 1px 2px rgba(var(--float-rgb), .28);
  --card-rest:  0 1.5px 3.75px rgba(var(--float-rgb), .14), 0 6.75px 18px rgba(var(--float-rgb), .12);
  --card-hover: 0 3.75px 8.25px rgba(var(--float-rgb), .20), 0 20.25px 40.5px rgba(var(--float-rgb), .22);
  --float-up: -2.25px;
  --float-down: 1px;
  --float-speed: .15s;
  --header-shadow: 0 3px 12px rgba(var(--float-rgb), .30);
}
/* the top bar sits above the page */
header.site { box-shadow: var(--header-shadow); }
/* buttons ("View property", "Visit www.waterparkvillas.com") */
.btn { box-shadow: var(--btn-rest); transition: transform var(--float-speed) ease, box-shadow var(--float-speed) ease, background-color var(--float-speed) ease; }
@media (hover: hover) { .btn:hover { transform: translateY(var(--float-up)); box-shadow: var(--btn-hover); } }
.btn:focus-visible { transform: translateY(var(--float-up)); box-shadow: var(--btn-hover); }
.btn:active { transform: translateY(var(--float-down)); box-shadow: var(--btn-press); }
/* portfolio cards */
.card { box-shadow: var(--card-rest); transition: transform var(--float-speed) ease, box-shadow var(--float-speed) ease; }
@media (hover: hover) { .card:hover { transform: translateY(var(--float-up)); box-shadow: var(--card-hover); } }
.card:focus-within { box-shadow: var(--card-hover); }
.card:active { transform: translateY(var(--float-down)); box-shadow: var(--btn-press); }
/* "reduce motion" on the device: keep the shadows, skip the movement */
@media (prefers-reduced-motion: reduce) {
  .btn, .card { transition: box-shadow var(--float-speed) ease, background-color var(--float-speed) ease; }
  .btn:hover, .btn:focus-visible, .btn:active, .card:hover, .card:active { transform: none; }
}
