/* ==========================================================================
   United Law – global.css
   Typography: Plus Jakarta Sans
   Theming: theme-white / theme-blue
   ========================================================================== */

/* ==========================================================================
   1) Root Variables
   ========================================================================== */
:root {
  --ul-bg-white: #f7f9fa;
  --ul-bg-blue: #486a8c;

  --ul-primary: #486a8c;
  --ul-primary-light: #5e7fa0;
  --ul-primary-lighter: #7a97b5;

  --ul-secondary: #a7c7e7;
  --ul-secondary-light: #bed5ec;
  --ul-secondary-lighter: #d6e5f3;

  --ul-cta: #4a9da6;
  --ul-white: #ffffff;
  --ul-black: #111111;

  --section-bg: var(--ul-bg-white);
  --card-bg: var(--ul-white);
  --text-color: var(--ul-black);
  --accent-color: var(--ul-primary);

  --font-primary: "Plus Jakarta Sans", sans-serif;

  --radius-sm: 14px;
  --radius-md: 20px;
  --radius-lg: 26px;
  --radius-xl: 32px;
  --radius-2xl: 38px;

  --space-2xs: 0.25rem;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;
  --space-2xl: 8rem;
  --space-3xl: 10rem;
  --space-4xl: 12rem;
  --space-5xl: 14rem;
  --space-6xl: 16rem;
  --space-section: clamp(3rem, 6vw, 6rem);

  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --vh-100: 100svh;
}

/* ==========================================================================
   2) Theme Switching
   ========================================================================== */
.theme-white {
  --section-bg: var(--ul-bg-white);
  --card-bg: var(--ul-white);
  --text-color: var(--ul-black);
  --accent-color: var(--ul-primary);
  background: var(--section-bg);
  color: var(--text-color);
}

.theme-blue {
  --section-bg: var(--ul-bg-blue);
  --card-bg: var(--ul-white);
  --text-color: var(--ul-white);
  --accent-color: var(--ul-primary-light);
  background: var(--section-bg);
  color: var(--text-color);
}

/* ==========================================================================
   3) Base
   ========================================================================== */
html {
  font-size: 62.5%;
  box-sizing: border-box;
  overflow-x: clip;
}
*,
*::before,
*::after {
  box-sizing: inherit;
}
body {
  margin: 0;
  background: #273a65;
  background: url("/wp-content/themes/unitedlaw/assets/images/body/default/ULG%20Homepage%20BG%20desktop.webp");
  background-repeat: no-repeat;
  background-size: cover;
  color: var(--text-color);
  font-family: var(--font-primary);
  font-size: 1.6rem;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: clip;
}
body.page-id-18 {
  background-image: url("/wp-content/themes/unitedlaw/assets/images/body/aboutus/BG-image-for-ABOUT-US.png");
}
main {
  flex-grow: 1;
}

section:not(.site-footer) {
  background: var(--section-bg);
  border-radius: 0;
  margin: 0;
  padding-top: var(--space-section);
  padding-bottom: var(--space-section);
  max-width: 100%;
  box-shadow: none;
}

section.section-boxed {
  background: var(--section-bg);
  border-radius: var(--radius-2xl);
  margin: var(--space-lg) auto;
  padding-top: var(--space-section);
  padding-bottom: var(--space-section);
  max-width: calc(1300px + (var(--space-md) * 2));
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

section.section-blend {
  background: transparent;
  border-radius: 0;
  margin: 0;
  padding: var(--space-section) 0;
  max-width: 100%;
  box-shadow: none;
  position: relative;
  padding-top: var(--space-section);
  padding-bottom: var(--space-section);
}

section.section-blend::before {
  top: 0;
  mask-image: radial-gradient(
    ellipse 100% 100% at 50% 0%,
    transparent 50%,
    black 50%
  );
  -webkit-mask-image: radial-gradient(
    ellipse 100% 100% at 50% 0%,
    transparent 50%,
    black 50%
  );
}

section.section-blend::after {
  bottom: 0;
  mask-image: radial-gradient(
    ellipse 100% 100% at 50% 100%,
    transparent 50%,
    black 50%
  );
  -webkit-mask-image: radial-gradient(
    ellipse 100% 100% at 50% 100%,
    transparent 50%,
    black 50%
  );
}

section.section-blend .container {
  position: relative;
  z-index: 2;
}

/* ==========================================================================
   4) Typography
   ========================================================================== */
h1,
h2,
h3,
h4,
p,
ul,
ol,
small {
  line-height: 1.3;
  color: var(--text-color);
}
h1 {
  font-size: clamp(2.8rem, 2.6vw + 1rem, 4.4rem);
  font-weight: 700;
}
h2 {
  font-size: clamp(2.2rem, 2vw + 0.8rem, 3.4rem);
  font-weight: 700;
}
h3 {
  font-size: clamp(1.9rem, 1.4vw + 0.6rem, 2.6rem);
  font-weight: 700;
}
h4 {
  font-size: clamp(1.7rem, 1.1vw + 0.5rem, 2.2rem);
  font-weight: 700;
}
p {
  font-size: 1.6rem;
  line-height: 1.6;
}
small {
  font-size: 1.3rem;
  line-height: 1.4;
}
ul,
ol {
  padding-left: 2em;
}

li,
span {
  font-size: 1.6rem;
  line-height: 1.6;
}

/* ==========================================================================
   5) Links
   ========================================================================== */
a {
  color: var(--accent-color);
  text-decoration: none;
  transition: color 0.15s ease, text-decoration-color 0.15s ease,
    text-underline-offset 0.15s ease;
}
a:hover,
a:focus {
  color: var(--ul-primary-light);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

/* ==========================================================================
   6) Layout Utilities
   ========================================================================== */
.container {
  width: 100%;
  max-width: 1300px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-md);
  padding-right: var(--space-md);
}
.section-padding {
  padding-top: var(--space-section);
  padding-bottom: var(--space-section);
}
.hero {
  --hero-min: clamp(42vh, 56svh, 70vh);
  --hero-pad: clamp(2.4rem, 4vw, 5.6rem);
  min-height: var(--hero-min);
  display: grid;
  place-items: center;
  padding-block: var(--hero-pad);
  position: relative;
  isolation: isolate;
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal-on-scroll.reveal {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   7) Cards / Surfaces
   ========================================================================== */
.card,
.surface {
  background: var(--card-bg);
  border: 1px solid var(--accent-color);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
}

/* ==========================================================================
   8) Buttons
   ========================================================================== */
.btn {
  display: inline-block;
  padding: 12px 28px;
  font-size: 1.6rem;
  font-weight: 600;
  text-align: center;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease,
    outline-color 0.2s ease;
  text-decoration: none;
  border: none;
  gap: 0.5rem;
}

.btn-normal {
  background: var(--accent-color);
  color: var(--ul-white);
}
.btn-normal:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  color: var(--ul-white);
}

.btn-cta {
  background: var(--ul-cta);
  color: var(--ul-white);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}
.btn-cta:hover {
  color: var(--ul-white);
  transform: scale(1.02);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  outline: 2px solid var(--ul-primary-lighter);
  outline-offset: 2px;
}
.btn-cta:focus-visible {
  outline: 3px solid var(--ul-primary);
  outline-offset: 2px;
}

/* ==========================================================================
   9) Forms
   ========================================================================== */
input,
textarea,
select {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--accent-color);
  border-radius: var(--radius-sm);
  font-family: var(--font-primary);
  font-size: 1.45rem;
  line-height: 1.5;
  color: var(--ul-black);
  background: #ffffff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
input:focus,
textarea:focus,
select:focus {
  border-color: var(--accent-color);
  outline: none;
  box-shadow: 0 0 0 2px rgba(72, 106, 140, 0.35);
}
textarea {
  resize: vertical;
  min-height: 120px;
}

/* ==========================================================================
   10) Header & Footer
   ========================================================================== */
.site-header {
  top: 0;
  z-index: 1000;
  transition: all 0.3s ease;
}
.site-header.is-sticky {
  position: sticky;
  top: 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   11) Accessibility
   ========================================================================== */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
:focus-visible {
  outline: 2px solid var(--ul-primary);
  outline-offset: 2px;
}
.skip-link:focus {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 9999;
  padding: var(--space-sm) var(--space-md);
  background: var(--accent-color);
  color: var(--ul-white);
}

/* ==========================================================================
   12) Cross-browser Fixes
   ========================================================================== */
@supports not (overflow: clip) {
  html,
  body {
    overflow-x: hidden;
  }
}
* {
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}
html,
body {
  -webkit-overflow-scrolling: touch;
}

.safe-pad-top {
  padding-top: max(var(--safe-top), 0px);
}
.safe-pad-bottom {
  padding-bottom: max(var(--safe-bottom), 0px);
}
.safe-pad-left {
  padding-left: max(var(--safe-left), 0px);
}
.safe-pad-right {
  padding-right: max(var(--safe-right), 0px);
}
.full-height-svh {
  min-height: var(--vh-100);
}

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

.sticky-safe-top {
  top: calc(var(--safe-top) + 0px);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   13. Zoho Chat Bot
   ========================================================================== */
.zsiq-float {
  right: var(--space-md) !important;
  bottom: var(--space-2xl) !important;
  transform: translateY(100px) !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transition: transform 0.3s ease, opacity 0.3s ease !important;
}

.zsiq-float.visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
  pointer-events: all !important;
}

.chat-iframe-wrap {
  bottom: calc(var(--zsiqf-float-close-height) + 80px) !important;
}

@media (max-width: 768px) {
  .zsiq-float {
    right: var(--space-md) !important;
    bottom: var(--space-5xl) !important;
  }
}
