/* Lilvex Group Global Design System */

:root {
  /* Lilvex Core Brand Colors */
  --lilvex-yellow: #E8BF00;
  --lilvex-yellow-dark: #CDA900;
  --lilvex-charcoal: #4A4A4A;
  --lilvex-charcoal-dark: #292929;
  --lilvex-black: #161616;
  --lilvex-white: #FFFFFF;
  --lilvex-offwhite: #F8F8F5;
  --lilvex-light: #F2F2ED;
  --lilvex-border: #E5E5DE;
  --lilvex-text: #333333;
  --lilvex-muted: #6E6E6E;

  /* Global Theme Tokens mapped to Lilvex System */
  --color-primary: var(--lilvex-charcoal-dark);
  --color-secondary: var(--lilvex-charcoal);
  --color-text: var(--lilvex-text);
  --color-accent: var(--lilvex-yellow);
  --color-accent-dark: var(--lilvex-yellow-dark);
  --color-lime: var(--lilvex-yellow);
  --color-yellow: var(--lilvex-yellow);
  --color-white: var(--lilvex-white);
  --color-bg-soft: var(--lilvex-offwhite);
  --color-muted: var(--lilvex-muted);
  --color-muted-2: #8C8C85;
  --color-border: var(--lilvex-border);
  --color-blush: var(--lilvex-light);
  --color-mint: var(--lilvex-light);
  --color-dark: var(--lilvex-black);
  --color-blue: var(--lilvex-charcoal);
  --color-green-soft: var(--lilvex-yellow);

  /* Popup / UI accents */
  --color-popup-green: var(--lilvex-yellow);
  --color-popup-primary: var(--lilvex-charcoal-dark);
  --color-popup-teal: var(--lilvex-charcoal);
  --color-popup-label: var(--lilvex-charcoal-dark);
  --color-popup-border: var(--lilvex-border);
  --color-popup-input-bg: var(--lilvex-white);
  --color-popup-placeholder: #8C8C85;
  --color-popup-note: var(--lilvex-muted);
  --color-overlay: rgba(22, 22, 22, 0.75);

  /* Typography */
  --font-heading: "DM Sans", sans-serif;
  --font-body: "Open Sans", sans-serif;

  --fs-h1: 60px;
  --fs-h2: 50px;
  --fs-h3: 36px;
  --fs-h4: 28px;
  --fs-h5: 22px;
  --fs-h6: 18px;
  --fs-body: 17px;
  --fs-nav: 16px;
  --fs-label: 14px;
  --fs-small: 14px;
  --fs-btn: 18px;

  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  --fw-extrabold: 800;

  --lh-tight: 1.1;
  --lh-snug: 1.2;
  --lh-heading: 1.3;
  --lh-body: 1.5;

  /* Layout — Elementor container */
  --container-width: 1440px;
  --container-pad: 20px;
  --header-pad-y: 20px;
  --header-pad-x: 20px;
  --nav-item-gap: 40px;
  --nav-item-pad: 10px;
  --footer-gap: 60px;
  --footer-pad-top: 50px;
  --footer-pad-bottom: 30px;
  --widget-spacing: 20px;

  /* Radii / shadows from live components */
  --radius-sm: 0px;
  --radius-md: 12px;
  --radius-lg: 15px;
  --radius-xl: 20px;
  --radius-pill: 999px;
  --shadow-card: 0 20px 45px rgba(15, 23, 42, 0.1);
  --shadow-popup: 2px 8px 23px 3px rgba(0, 0, 0, 0.2);
  --shadow-btn-hover: 0 14px 28px rgba(21, 94, 117, 0.18);

  /* Breakpoints (Elementor defaults observed) */
  --bp-mobile: 767px;
  --bp-tablet: 1024px;

  /* Transitions */
  --transition-fast: 0.25s ease;
  --transition-med: 0.3s ease;
  --transition-input: 350ms;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: var(--fw-regular);
  line-height: var(--lh-body);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.is-locked {
  overflow: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-accent);
  text-decoration: none;
}

a:hover {
  text-decoration: none;
}

p {
  margin-block-start: 0;
  margin-block-end: 20px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--color-primary);
  font-family: var(--font-heading);
  margin-block-start: 0;
  margin-block-end: 0.5em;
}

h1 {
  font-size: var(--fs-h1);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  line-height: var(--lh-tight);
}

h2 {
  font-size: var(--fs-h2);
  font-weight: var(--fw-bold);
  line-height: var(--lh-snug);
}

h3 {
  font-size: var(--fs-h3);
  font-weight: var(--fw-medium);
  line-height: var(--lh-heading);
}

h4 {
  font-size: var(--fs-h4);
  font-weight: var(--fw-medium);
  line-height: var(--lh-heading);
}

h5 {
  font-size: var(--fs-h5);
  font-weight: var(--fw-medium);
  line-height: var(--lh-heading);
}

h6 {
  font-size: var(--fs-h6);
  font-weight: var(--fw-bold);
  line-height: var(--lh-snug);
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

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

.site-main {
  min-height: 40vh;
}

.page-shell {
  /* Phase 1 placeholder — page sections implemented in later phases */
  padding: 48px 0 64px;
}

.page-shell__label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--fs-label);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-accent);
  margin-bottom: 12px;
}

.page-shell__note {
  color: var(--color-secondary);
  max-width: 42rem;
}

/* Shared button — Lilvex Group design system */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: var(--fs-btn);
  font-weight: var(--fw-bold);
  line-height: var(--lh-snug);
  text-transform: none;
  color: var(--lilvex-charcoal-dark);
  background-color: var(--lilvex-yellow);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 16px 36px;
  cursor: pointer;
  text-decoration: none;
  transition: background-color var(--transition-fast), color var(--transition-fast), transform var(--transition-med), box-shadow var(--transition-med);
}

.btn:hover,
.btn:focus-visible {
  color: var(--lilvex-black);
  background-color: var(--lilvex-yellow-dark);
  text-decoration: none;
}

.btn--dark {
  background-color: var(--lilvex-charcoal);
  color: var(--lilvex-white);
}

.btn--dark:hover,
.btn--dark:focus-visible {
  background-color: var(--lilvex-black);
  color: var(--lilvex-white);
  text-decoration: none;
}

.btn--inquiry {
  background-color: var(--lilvex-yellow);
  color: var(--lilvex-charcoal-dark);
  border-radius: var(--radius-md);
  padding: 12px 22px;
  font-size: 15px;
  font-weight: var(--fw-bold);
  border: none;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(232, 191, 0, 0.25);
}

.btn--inquiry:hover {
  background-color: var(--lilvex-yellow-dark);
  color: var(--lilvex-black);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(205, 169, 0, 0.35);
}

.btn--inquiry:focus-visible {
  outline: 2px solid var(--lilvex-yellow-dark);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10000;
  background: var(--color-primary);
  color: var(--color-white);
  padding: 12px 16px;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
}

/* ==========================================================================
   LILVEX GROUP - FLOATING WHATSAPP BUTTON
   ========================================================================== */

.lilvex-whatsapp-float {
  position: fixed;
  right: calc(24px + env(safe-area-inset-right, 0px));
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  z-index: 990;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 50px;
  padding: 12px 18px;
  background-color: #25D366;
  color: #ffffff !important;
  font-family: "DM Sans", "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.2px;
  text-decoration: none !important;
  border-radius: 999px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18), 0 2px 6px rgba(37, 211, 102, 0.25);
  transition: transform 0.22s ease, box-shadow 0.22s ease, background-color 0.22s ease, opacity 0.22s ease, visibility 0.22s ease;
  user-select: none;
  -webkit-user-select: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.lilvex-whatsapp-float:hover {
  background-color: #20ba5a;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22), 0 4px 10px rgba(32, 186, 90, 0.3);
}

.lilvex-whatsapp-float:active {
  transform: translateY(0);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.16);
}

.lilvex-whatsapp-float:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 3px;
}

.lilvex-whatsapp-float__icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  fill: currentColor;
  display: block;
}

.lilvex-whatsapp-float span {
  white-space: nowrap;
}

/* Tablet viewports */
@media (max-width: 1024px) {
  .lilvex-whatsapp-float {
    right: calc(20px + env(safe-area-inset-right, 0px));
    bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  }
}

/* Mobile viewports (430px, 390px, 375px, 360px, 320px) */
@media (max-width: 768px) {
  .lilvex-whatsapp-float {
    right: calc(14px + env(safe-area-inset-right, 0px));
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    width: 54px;
    height: 54px;
    min-height: 54px;
    min-width: 54px;
    padding: 0;
    border-radius: 50%;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
  }

  .lilvex-whatsapp-float span {
    display: none;
  }

  .lilvex-whatsapp-float__icon {
    width: 27px;
    height: 27px;
  }
}

/* Popup / Modal Compatibility: Hide button when inquiry modal is open */
body.is-locked .lilvex-whatsapp-float,
body.modal-open .lilvex-whatsapp-float,
[data-inquiry-modal].is-open ~ .lilvex-whatsapp-float {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: scale(0.85) !important;
}

/* Mobile Nav Compatibility: Lower/hide button when mobile navigation drawer is open */
.site-header.is-nav-open ~ .lilvex-whatsapp-float {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

