/*
Theme Name: Phuti Seanego Theme
Theme URI: https://pseanego.vercel.app/
Author: Phuti Seanego Attorneys
Author URI: https://pseanego.vercel.app/
Description: Custom WordPress Bootstrap theme for Phuti Seanego Attorneys.
Version: 1.1.1
Requires at least: 6.5
Tested up to: 6.8
Requires PHP: 8.0
Text Domain: phuti-seanego-theme
*/

:root {
  --psa-primary: #1f3b73;
  --psa-primary-dark: #162c56;
  --psa-primary-soft: rgba(31, 59, 115, 0.12);
  --psa-secondary: #b9954d;
  --psa-neutral-900: #1b1f28;
  --psa-neutral-700: #3d4452;
  --psa-neutral-500: #5c6474;
  --psa-neutral-200: #e5eaf2;
  --psa-neutral-100: #f5f7fb;
  --psa-success: #0f766e;
  --psa-radius-lg: 1.125rem;
  --psa-radius-xl: 1.25rem;
  --psa-shadow-card: 0 4px 24px rgba(22, 44, 86, 0.06);
  --psa-shadow-card-hover: 0 12px 40px rgba(22, 44, 86, 0.1);
  --psa-section-space: clamp(3rem, 6vw, 5rem);
  --psa-prose-width: 42rem;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--psa-neutral-900);
  line-height: 1.65;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
}

body.psa-has-sticky-rail {
  padding-bottom: 5.5rem;
}

@media (min-width: 768px) {
  body.psa-has-sticky-rail {
    padding-bottom: 0;
    padding-right: 4.25rem;
  }
}

h1,
h2,
h3,
h4,
h5,
h6 {
  letter-spacing: -0.02em;
  font-weight: 650;
}

a {
  color: var(--psa-primary);
}

a:hover,
a:focus {
  color: var(--psa-primary-dark);
}

.prose-narrow {
  max-width: var(--psa-prose-width);
}

.section-spacing {
  padding-top: var(--psa-section-space);
  padding-bottom: var(--psa-section-space);
}

.btn-primary {
  background-color: var(--psa-primary);
  border-color: var(--psa-primary);
  font-weight: 600;
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--psa-primary-dark);
  border-color: var(--psa-primary-dark);
}

.btn-outline-primary {
  color: var(--psa-primary);
  border-color: var(--psa-primary);
  font-weight: 600;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  color: #fff;
  background-color: var(--psa-primary);
  border-color: var(--psa-primary);
}

.btn-cta-primary {
  background-color: #fff;
  color: var(--psa-primary);
  border: 0;
  font-weight: 650;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.btn-cta-primary:hover,
.btn-cta-primary:focus {
  background-color: var(--psa-neutral-100);
  color: var(--psa-primary-dark);
}

.btn-cta-secondary {
  background-color: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.55);
  font-weight: 600;
}

.btn-cta-secondary:hover,
.btn-cta-secondary:focus {
  background-color: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: #fff;
}

.site-header {
  backdrop-filter: saturate(130%) blur(8px);
}

.site-brand-logo {
  display: inline-flex;
  align-items: center;
  margin-right: 0.5rem;
  text-decoration: none;
}

.site-brand-logo:hover .site-brand-logo__img,
.site-brand-logo:focus .site-brand-logo__img {
  opacity: 0.92;
}

.site-brand-logo__img {
  display: block;
  width: auto;
  height: 2.25rem;
  max-width: min(220px, 72vw);
}

@media (min-width: 576px) {
  .site-brand-logo__img {
    height: 2.5rem;
  }
}

@media (min-width: 992px) {
  .site-brand-logo__img {
    height: 2.75rem;
    max-width: 220px;
  }
}

.hero-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(130deg, #0f1f3f 0%, #1f3b73 52%, #2f4f95 100%);
  color: #fff;
  padding: clamp(4rem, 10vw, 7rem) 0;
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
      circle at 20% 40%,
      rgba(185, 149, 77, 0.18) 0%,
      transparent 45%
    ),
    radial-gradient(circle at 85% 20%, rgba(255, 255, 255, 0.08) 0%, transparent 35%);
  pointer-events: none;
}

.hero-section::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.06'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-section .container {
  position: relative;
  z-index: 1;
}

.hero-section .hero-text {
  max-width: 40rem;
}

.hero-section .lead {
  color: rgba(255, 255, 255, 0.88);
  max-width: 36rem;
}

.trust-strip {
  position: relative;
  z-index: 1;
  margin-top: 2.5rem;
  padding: 1rem 1.25rem;
  border-radius: var(--psa-radius-lg);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

.trust-strip__item {
  text-align: center;
  padding: 0.5rem;
}

.trust-strip__value {
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
}

.trust-strip__label {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 0.25rem;
}

@media (min-width: 768px) {
  .trust-strip__item--divider {
    border-left: 1px solid rgba(255, 255, 255, 0.22);
  }
}

.section-title {
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
  line-height: 1.18;
  letter-spacing: -0.03em;
}

.section-lead {
  color: var(--psa-neutral-500);
  max-width: 36rem;
}

.service-card,
.team-card,
.blog-card {
  border: 1px solid var(--psa-neutral-200);
  border-radius: var(--psa-radius-xl);
  background-color: #fff;
  box-shadow: var(--psa-shadow-card);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.service-card:hover,
.team-card:hover,
.blog-card:hover {
  transform: translateY(-2px);
  border-color: rgba(31, 59, 115, 0.22);
  box-shadow: var(--psa-shadow-card-hover);
}

.value-card {
  border-left: 4px solid var(--psa-secondary);
  background-color: #fff;
  border-radius: var(--psa-radius-lg);
  box-shadow: var(--psa-shadow-card);
}

.cta-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--psa-primary-dark) 0%, var(--psa-primary) 100%);
  color: #fff;
  border-radius: var(--psa-radius-xl);
  box-shadow: var(--psa-shadow-card-hover);
}

.cta-section::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -10%;
  width: 50%;
  height: 140%;
  background: radial-gradient(circle, rgba(185, 149, 77, 0.2) 0%, transparent 70%);
  pointer-events: none;
}

.cta-section .container,
.cta-section > * {
  position: relative;
  z-index: 1;
}

.practice-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.875rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--psa-primary-soft);
  color: var(--psa-primary);
}

.practice-icon-svg {
  display: block;
}

.how-it-works__step {
  position: relative;
  padding: 1.5rem;
  border-radius: var(--psa-radius-lg);
  background: #fff;
  border: 1px solid var(--psa-neutral-200);
  height: 100%;
  box-shadow: var(--psa-shadow-card);
}

.how-it-works__num {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
  background: var(--psa-primary);
  color: #fff;
  margin-bottom: 0.75rem;
}

.practice-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}

.practice-filter-chips .btn {
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.4rem 1rem;
}

.practice-filter-chips .btn.active {
  background-color: var(--psa-primary);
  border-color: var(--psa-primary);
  color: #fff;
}

.practice-filter-chips .btn:focus-visible {
  outline: 3px solid var(--psa-primary);
  outline-offset: 2px;
}

.js-practice-card.is-filtered-out {
  display: none !important;
}

.page-banner {
  background: linear-gradient(180deg, var(--psa-neutral-100) 0%, #fff 100%);
}

.psa-sticky-actions {
  position: fixed;
  right: 0.75rem;
  bottom: 0.75rem;
  left: 0.75rem;
  z-index: 1055;
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

@media (min-width: 768px) {
  .psa-sticky-actions {
    left: auto;
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
    flex-direction: column;
    align-items: stretch;
  }
}

.psa-sticky-actions__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  min-width: 3rem;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.875rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  border: 0;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.psa-sticky-actions__item:hover,
.psa-sticky-actions__item:focus {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
  color: inherit;
}

.psa-sticky-actions__item--call {
  background-color: var(--psa-primary);
  color: #fff;
}

.psa-sticky-actions__item--call:hover,
.psa-sticky-actions__item--call:focus {
  background-color: var(--psa-primary-dark);
  color: #fff;
}

.psa-sticky-actions__item--wa {
  background-color: #25d366;
  color: #fff;
}

.psa-sticky-actions__item--wa:hover,
.psa-sticky-actions__item--wa:focus {
  background-color: #1daa54;
  color: #fff;
}

.psa-sticky-actions__item--contact {
  background-color: #fff;
  color: var(--psa-primary);
  border: 1px solid var(--psa-neutral-200);
}

.psa-sticky-actions__item--contact:hover,
.psa-sticky-actions__item--contact:focus {
  color: var(--psa-primary-dark);
}

@media (min-width: 768px) {
  .psa-sticky-actions__label {
    display: inline;
  }
}

@media (max-width: 767.98px) {
  .psa-sticky-actions__label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .psa-sticky-actions__item {
    flex: 1 1 auto;
    min-width: 0;
  }
}

.contact-form-wrap {
  border: 1px solid #d9e2ef;
  border-radius: var(--psa-radius-xl);
  background-color: #fff;
  box-shadow: var(--psa-shadow-card);
}

.psa-form-step {
  padding: 1.25rem 1.5rem;
  border-radius: var(--psa-radius-lg);
  background: var(--psa-neutral-100);
  border: 1px solid var(--psa-neutral-200);
  margin: 0 0 1.5rem;
  min-width: 0;
}

.psa-form-step legend {
  font-size: 1rem;
  font-weight: 650;
  float: none;
  width: 100%;
  padding: 0;
  margin-bottom: 0.75rem;
}

.psa-form-step .row {
  margin-bottom: 0;
}

.footer-cta-row .btn {
  font-weight: 600;
}

.site-footer-brand {
  border-radius: var(--psa-radius-lg);
}

.focus-ring:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 3px solid #244892;
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: #fff;
  color: #000;
  padding: 0.5rem 0.75rem;
}

.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
  z-index: 9999;
}

@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;
  }

  .service-card:hover,
  .team-card:hover,
  .blog-card:hover,
  .psa-sticky-actions__item:hover {
    transform: none;
  }
}
