
/* Fonts */
:root {
  --default-font: "Source Sans 3", "Source Sans Pro", "Helvetica Neue", Arial, sans-serif;
  --heading-font: "Manrope", "Segoe UI", sans-serif;
  --nav-font: "Manrope", "Segoe UI", sans-serif;
}

/* Brand + theme tokens (light default) */
:root,
html[data-theme="light"] {
  --background-color: #F4FBFB;
  --default-color: #334155;
  --heading-color: #0F172A;
  --accent-color: #0D9488;
  --accent-strong: #0F766E;
  --brand-red: #DC2626;
  --brand-red-strong: #B91C1C;
  --surface-color: #ffffff;
  --surface-elevated: #ffffff;
  --border-color: rgba(15, 23, 42, 0.08);
  --muted-color: #64748B;
  --contrast-color: #ffffff;
  --header-bg: rgba(244, 251, 251, 0.82);
  --header-border: rgba(13, 148, 136, 0.12);
  --footer-bg: #0F766E;
  --footer-text: #E6FFFB;
  --footer-muted: rgba(230, 255, 251, 0.78);
  --section-wash: radial-gradient(ellipse 80% 60% at 10% 0%, rgba(13, 148, 136, 0.10), transparent 55%),
                   radial-gradient(ellipse 70% 50% at 90% 20%, rgba(220, 38, 38, 0.05), transparent 50%);
  --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.06);
  --focus-ring: 0 0 0 3px rgba(13, 148, 136, 0.35);
  --nav-color: #334155;
  --nav-hover-color: #0D9488;
  --nav-mobile-background-color: #ffffff;
  --nav-dropdown-background-color: #ffffff;
  --nav-dropdown-color: #334155;
  --nav-dropdown-hover-color: #0D9488;
  color-scheme: light;
}

html[data-theme="dark"] {
  --background-color: #0B1220;
  --default-color: #E2E8F0;
  --heading-color: #F8FAFC;
  --accent-color: #2DD4BF;
  --accent-strong: #14B8A6;
  --brand-red: #F87171;
  --brand-red-strong: #EF4444;
  --surface-color: #1E293B;
  --surface-elevated: #243247;
  --border-color: rgba(248, 250, 252, 0.10);
  --muted-color: #94A3B8;
  --contrast-color: #0B1220;
  --header-bg: rgba(11, 18, 32, 0.86);
  --header-border: rgba(45, 212, 191, 0.16);
  --footer-bg: #0A1628;
  --footer-text: #E2E8F0;
  --footer-muted: rgba(226, 232, 240, 0.72);
  --section-wash: radial-gradient(ellipse 80% 60% at 10% 0%, rgba(45, 212, 191, 0.12), transparent 55%),
                   radial-gradient(ellipse 70% 50% at 90% 20%, rgba(248, 113, 113, 0.06), transparent 50%);
  --shadow-soft: 0 12px 36px rgba(0, 0, 0, 0.35);
  --focus-ring: 0 0 0 3px rgba(45, 212, 191, 0.40);
  --nav-color: #E2E8F0;
  --nav-hover-color: #2DD4BF;
  --nav-mobile-background-color: #1E293B;
  --nav-dropdown-background-color: #1E293B;
  --nav-dropdown-color: #E2E8F0;
  --nav-dropdown-hover-color: #2DD4BF;
  color-scheme: dark;
}

/* Color Presets - section helpers */
.light-background {
  --background-color: #EAF7F6;
  --surface-color: #ffffff;
  --default-color: #334155;
  --heading-color: #0F172A;
}

html[data-theme="dark"] .light-background {
  --background-color: #111827;
  --surface-color: #1E293B;
  --default-color: #E2E8F0;
  --heading-color: #F8FAFC;
}

.dark-background {
  --background-color: #0B1220;
  --default-color: #ffffff;
  --heading-color: #ffffff;
  --surface-color: #1E293B;
  --contrast-color: #ffffff;
}

.accent-background {
  --background-color: var(--accent-color);
  --default-color: #ffffff;
  --heading-color: #ffffff;
  --accent-color: #ffffff;
  --surface-color: var(--accent-strong);
  --contrast-color: #ffffff;
}

/* Smooth scroll */
:root {
  scroll-behavior: smooth;
}

/*--------------------------------------------------------------
# General Styling & Shared Classes
--------------------------------------------------------------*/
body {
  color: var(--default-color);
  background-color: var(--background-color);
  font-family: var(--default-font);
}

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

a:hover {
  color: color-mix(in srgb, var(--accent-color), transparent 25%);
  text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--heading-color);
  font-family: var(--heading-font);
}

/* PHP Email Form Messages
------------------------------*/
.php-email-form .error-message {
  display: none;
  background: #df1529;
  color: #ffffff;
  text-align: left;
  padding: 15px;
  margin-bottom: 24px;
  font-weight: 600;
}

.php-email-form .sent-message {
  display: none;
  color: #ffffff;
  background: #059652;
  text-align: center;
  padding: 15px;
  margin-bottom: 24px;
  font-weight: 600;
}

.php-email-form .loading {
  display: none;
  background: var(--surface-color);
  text-align: center;
  padding: 15px;
  margin-bottom: 24px;
}

.php-email-form .loading:before {
  content: "";
  display: inline-block;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  margin: 0 10px -6px 0;
  border: 3px solid var(--accent-color);
  border-top-color: var(--surface-color);
  animation: php-email-form-loading 1s linear infinite;
}

@keyframes php-email-form-loading {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/*--------------------------------------------------------------
# Global Header
--------------------------------------------------------------*/
.header {
  color: var(--default-color);
  background-color: transparent;
  padding: 12px 0;
  transition: box-shadow 0.35s ease;
  z-index: 997;
  border-bottom: 1px solid transparent;
  box-shadow: none;
  isolation: isolate;
}

/* Blur lives on a pseudo-element so it does not become a containing block for mobile nav */
.header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-color: var(--header-bg);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--header-border);
  pointer-events: none;
}

body.scrolled .header {
  box-shadow: var(--shadow-soft);
}

.header .logo {
  line-height: 1;
  color: var(--heading-color);
}

.header .logo:hover,
.header .logo:focus,
.header .logo .sitename,
.header .logo h1 {
  color: var(--heading-color);
}

.header .logo img {
  max-height: 44px;
  width: auto;
  margin-right: 10px;
  border-radius: 8px;
}

.header .logo h1 {
  font-size: inherit;
  margin: 0;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--heading-color);
  line-height: 1.2;
  max-width: none;
}

.header .logo .sitename {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-width: none;
  white-space: nowrap;
}

.header .logo .sitename-desktop {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.header .logo .sitename-primary {
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.1;
  color: var(--heading-color);
}

.header .logo .sitename-secondary {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-color);
  line-height: 1.2;
}

.header .logo .sitename-short {
  display: none;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--heading-color);
}

.header .logo span {
  color: var(--accent-color);
  font-size: 26px;
  font-weight: 700;
}

.header .header-social-links {
  padding: 0 0 0 15px;
}

.header .header-social-links a {
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  padding-left: 10px;
  display: inline-block;
  transition: 0.3s;
  font-size: 16px;
}

.header .header-social-links a:hover {
  color: var(--accent-color);
}

.header .header-social-links a i {
  line-height: 0px;
}

@media (max-width: 1199px) {
  .header .logo {
    order: 1;
  }

  .header .logo h1 {
    font-size: 1rem;
    max-width: none;
  }

  .header .header-social-links {
    order: 2;
    padding: 0;
  }

  .header .navmenu {
    order: 3;
  }
}

/*--------------------------------------------------------------
# Navigation Menu
--------------------------------------------------------------*/
/* Navmenu - Desktop */
@media (min-width: 1200px) {
  .navmenu {
    padding: 0;
  }

  .navmenu ul {
    margin: 0;
    padding: 0;
    display: flex;
    list-style: none;
    align-items: center;
  }

  .navmenu li {
    position: relative;
  }

  .navmenu a,
  .navmenu a:focus {
    color: var(--nav-color);
    padding: 18px 15px;
    font-size: 13px;
    font-family: var(--nav-font);
    text-transform: uppercase;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
    white-space: nowrap;
    transition: 0.3s;
  }

  .navmenu a i,
  .navmenu a:focus i {
    font-size: 12px;
    line-height: 0;
    margin-left: 5px;
    transition: 0.3s;
  }

  .navmenu li:last-child a {
    padding-right: 0;
  }

  .navmenu li:hover>a,
  .navmenu .active,
  .navmenu .active:focus {
    color: var(--nav-hover-color);
  }

  .navmenu .dropdown ul {
    margin: 0;
    padding: 10px 0;
    background: var(--nav-dropdown-background-color);
    display: block;
    position: absolute;
    visibility: hidden;
    left: 14px;
    top: 130%;
    opacity: 0;
    transition: 0.3s;
    border-radius: 4px;
    z-index: 99;
    box-shadow: 0px 0px 30px rgba(0, 0, 0, 0.1);
  }

  .navmenu .dropdown ul li {
    min-width: 200px;
  }

  .navmenu .dropdown ul a {
    padding: 10px 20px;
    font-size: 15px;
    text-transform: none;
    color: var(--nav-dropdown-color);
  }

  .navmenu .dropdown ul a i {
    font-size: 12px;
  }

  .navmenu .dropdown ul a:hover,
  .navmenu .dropdown ul .active:hover,
  .navmenu .dropdown ul li:hover>a {
    color: var(--nav-dropdown-hover-color);
  }

  .navmenu .dropdown:hover>ul {
    opacity: 1;
    top: 100%;
    visibility: visible;
  }

  .navmenu .dropdown .dropdown ul {
    top: 0;
    left: -90%;
    visibility: hidden;
  }

  .navmenu .dropdown .dropdown:hover>ul {
    opacity: 1;
    top: 0;
    left: -100%;
    visibility: visible;
  }
}

/* Navmenu - Mobile */
@media (max-width: 1199px) {
  .mobile-nav-toggle {
    color: var(--nav-color);
    font-size: 28px;
    line-height: 0;
    margin-right: 10px;
    cursor: pointer;
    transition: color 0.3s;
  }

  .navmenu {
    padding: 0;
    z-index: 9997;
  }

  .navmenu ul {
    display: none;
    list-style: none;
    position: fixed;
    top: 72px;
    left: 16px;
    right: 16px;
    bottom: auto;
    max-height: calc(100vh - 96px);
    height: auto;
    padding: 12px 0;
    margin: 0;
    border-radius: 12px;
    background-color: var(--nav-mobile-background-color);
    overflow-y: auto;
    transition: 0.3s;
    z-index: 9998;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-color);
  }

  .navmenu a,
  .navmenu a:focus {
    color: var(--nav-dropdown-color);
    padding: 10px 20px;
    font-family: var(--nav-font);
    font-size: 17px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
    white-space: nowrap;
    transition: 0.3s;
  }

  .navmenu a i,
  .navmenu a:focus i {
    font-size: 12px;
    line-height: 0;
    margin-left: 5px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: 0.3s;
    background-color: color-mix(in srgb, var(--accent-color), transparent 90%);
  }

  .navmenu a i:hover,
  .navmenu a:focus i:hover {
    background-color: var(--accent-color);
    color: var(--contrast-color);
  }

  .navmenu a:hover,
  .navmenu .active,
  .navmenu .active:focus {
    color: var(--nav-dropdown-hover-color);
  }

  .navmenu .active i,
  .navmenu .active:focus i {
    background-color: var(--accent-color);
    color: var(--contrast-color);
    transform: rotate(180deg);
  }

  .navmenu .dropdown ul {
    position: static;
    display: none;
    z-index: 99;
    padding: 10px 0;
    margin: 10px 20px;
    background-color: var(--nav-dropdown-background-color);
    border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
    box-shadow: none;
    transition: all 0.5s ease-in-out;
  }

  .navmenu .dropdown ul ul {
    background-color: rgba(33, 37, 41, 0.1);
  }

  .navmenu .dropdown>.dropdown-active {
    display: block;
    background-color: rgba(33, 37, 41, 0.03);
  }

  .mobile-nav-active {
    overflow: hidden;
  }

  .mobile-nav-active .mobile-nav-toggle {
    color: #fff;
    position: absolute;
    font-size: 32px;
    top: 15px;
    right: 15px;
    margin-right: 0;
    z-index: 9999;
  }

  .mobile-nav-active .navmenu {
    position: fixed;
    overflow: hidden;
    inset: 0;
    background: rgba(33, 37, 41, 0.8);
    transition: 0.3s;
  }

  .mobile-nav-active .navmenu>ul {
    display: block;
  }
}

/*--------------------------------------------------------------
# Global Footer
--------------------------------------------------------------*/
.footer {
  color: var(--default-color);
  background-color: var(--background-color);
  font-size: 14px;
  position: relative;
}

.footer .footer-top {
  padding-top: 50px;
  border-top: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
}

.footer .footer-about .logo {
  line-height: 1;
  margin-bottom: 25px;
}

.footer .footer-about .logo img {
  max-height: 40px;
  margin-right: 6px;
}

.footer .footer-about .logo span {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 1px;
  font-family: var(--heading-font);
  color: var(--heading-color);
}

.footer .footer-about p {
  font-size: 14px;
  font-family: var(--heading-font);
}

.footer .social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 50%);
  font-size: 16px;
  color: color-mix(in srgb, var(--default-color), transparent 30%);
  margin-right: 10px;
  transition: 0.3s;
}

.footer .social-links a:hover {
  color: var(--accent-color);
  border-color: var(--accent-color);
}

.footer h4 {
  font-size: 16px;
  font-weight: bold;
  position: relative;
  padding-bottom: 12px;
}

.footer .footer-links {
  margin-bottom: 30px;
}

.footer .footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer .footer-links ul i {
  padding-right: 2px;
  font-size: 12px;
  line-height: 0;
}

.footer .footer-links ul li {
  padding: 10px 0;
  display: flex;
  align-items: center;
}

.footer .footer-links ul li:first-child {
  padding-top: 0;
}

.footer .footer-links ul a {
  color: color-mix(in srgb, var(--default-color), transparent 30%);
  display: inline-block;
  line-height: 1;
}

.footer .footer-links ul a:hover {
  color: var(--accent-color);
}

.footer .footer-contact p {
  margin-bottom: 5px;
}

.footer .footer-newsletter .newsletter-form {
  margin-top: 30px;
  margin-bottom: 15px;
  padding: 6px 8px;
  position: relative;
  border-radius: 4px;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 80%);
  display: flex;
  background-color: var(--surface-color);
  transition: 0.3s;
}

.footer .footer-newsletter .newsletter-form:focus-within {
  border-color: var(--accent-color);
}

.footer .footer-newsletter .newsletter-form input[type=email] {
  border: 0;
  padding: 4px;
  width: 100%;
  background-color: var(--surface-color);
  color: var(--default-color);
}

.footer .footer-newsletter .newsletter-form input[type=email]:focus-visible {
  outline: none;
}

.footer .footer-newsletter .newsletter-form input[type=submit] {
  border: 0;
  font-size: 16px;
  padding: 0 20px;
  margin: -7px -8px -7px 0;
  background: var(--accent-color);
  color: var(--contrast-color);
  transition: 0.3s;
  border-radius: 0 4px 4px 0;
}

.footer .footer-newsletter .newsletter-form input[type=submit]:hover {
  background: color-mix(in srgb, var(--accent-color), transparent 20%);
}

.footer .copyright {
  padding: 25px 0;
  border-top: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
}

.footer .copyright p {
  margin-bottom: 0;
}

.footer .credits {
  margin-top: 6px;
  font-size: 13px;
}

/*--------------------------------------------------------------
# Preloader
--------------------------------------------------------------*/
#preloader {
  position: fixed;
  inset: 0;
  z-index: 999999;
  overflow: hidden;
  background: var(--background-color);
  transition: all 0.6s ease-out;
}

#preloader:before {
  content: "";
  position: fixed;
  top: calc(50% - 30px);
  left: calc(50% - 30px);
  border: 6px solid #ffffff;
  border-color: var(--accent-color) transparent var(--accent-color) transparent;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: animate-preloader 1.5s linear infinite;
}

@keyframes animate-preloader {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/*--------------------------------------------------------------
# Scroll Top Button
--------------------------------------------------------------*/
.scroll-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 15px;
  bottom: 15px;
  z-index: 99999;
  background-color: var(--accent-color);
  width: 40px;
  height: 40px;
  border-radius: 4px;
  transition: all 0.4s;
}

.scroll-top i {
  font-size: 24px;
  color: var(--contrast-color);
  line-height: 0;
}

.scroll-top:hover {
  background-color: color-mix(in srgb, var(--accent-color), transparent 20%);
  color: var(--contrast-color);
}

.scroll-top.active {
  visibility: visible;
  opacity: 1;
}

/*--------------------------------------------------------------
# Disable aos animation delay on mobile devices
--------------------------------------------------------------*/
@media screen and (max-width: 768px) {
  [data-aos-delay] {
    transition-delay: 0 !important;
  }
}

/*--------------------------------------------------------------
# Global Page Titles & Breadcrumbs
--------------------------------------------------------------*/
.page-title {
  color: var(--default-color);
  background-color: var(--background-color);
  padding: 25px 0;
  position: relative;
}

.page-title h1 {
  font-size: 24px;
  font-weight: 700;
}

.page-title .breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 14px;
  font-weight: 400;
}

.page-title .breadcrumbs ol li+li {
  padding-left: 10px;
}

.page-title .breadcrumbs ol li+li::before {
  content: "/";
  display: inline-block;
  padding-right: 10px;
  color: color-mix(in srgb, var(--default-color), transparent 70%);
}

/*--------------------------------------------------------------
# Global Sections
--------------------------------------------------------------*/
section,
.section {
  color: var(--default-color);
  background-color: var(--background-color);
  padding: 60px 0;
  scroll-margin-top: 100px;
  overflow: clip;
}

@media (max-width: 1199px) {

  section,
  .section {
    scroll-margin-top: 66px;
  }
}

/*--------------------------------------------------------------
# Global Section Titles
--------------------------------------------------------------*/
.section-title {
  text-align: center;
  padding-bottom: 60px;
  position: relative;
}

.section-title h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 20px;
  text-transform: uppercase;
  padding-bottom: 20px;
  position: relative;
}

.section-title h2:after {
  content: "";
  position: absolute;
  display: block;
  width: 50px;
  height: 3px;
  background: var(--accent-color);
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
}

.section-title p {
  margin-bottom: 0;
}

/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
.hero {
  padding: 0;
}

.hero .carousel {
  width: 100%;
  min-height: calc(100vh - 75px);
  padding: 0;
  margin: 0;
  position: relative;
}

@media (max-height: 500px),
(max-width: 1200px) {
  .hero .carousel {
    min-height: calc(100vh - 48px);
  }
}

.hero img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero .carousel-item {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.hero .carousel-item::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(11, 18, 32, 0.82) 0%, rgba(11, 18, 32, 0.48) 48%, rgba(11, 18, 32, 0.12) 78%, transparent 100%);
}

.hero .container {
  background: transparent;
  position: relative;
  text-align: left;
  padding-top: 48px;
  padding-bottom: 88px;
  margin-left: auto;
  margin-right: auto;
  border-top: 0;
  z-index: 3;
  /* inherit Bootstrap .container max-widths so copy aligns with header logo */
}

.hero .hero-copy {
  max-width: 560px;
}

.hero .hero-brand {
  display: inline-block;
  margin: 0 0 12px;
  font-family: var(--heading-font);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-color);
}

.hero h2 {
  margin: 0 0 16px;
  font-size: clamp(2.1rem, 4.8vw, 3.75rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: #F8FAFC;
}

.hero .hero-copy > p:not(.hero-brand) {
  margin: 0 0 24px;
  color: rgba(248, 250, 252, 0.88);
  font-size: 1.05rem;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.hero .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.hero .btn-get-started {
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  transition: 0.3s;
  margin: 0;
  border-radius: 999px;
  color: #ffffff;
  background: #0F766E;
  border: 2px solid #0F766E;
}

.hero .btn-get-started:hover {
  background: #0D9488;
  border-color: #0D9488;
  color: #ffffff;
  transform: translateY(-2px);
}

html[data-theme="dark"] .hero .btn-get-started {
  background: #2DD4BF;
  border-color: #2DD4BF;
  color: #042F2E;
}

html[data-theme="dark"] .hero .btn-get-started:hover {
  background: #5EEAD4;
  border-color: #5EEAD4;
  color: #042F2E;
}

.hero .btn-hero-secondary {
  font-weight: 600;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 999px;
  color: #F8FAFC;
  border: 1.5px solid rgba(248, 250, 252, 0.55);
  background: transparent;
  transition: 0.3s;
}

.hero .btn-hero-secondary:hover {
  border-color: #ffffff;
  color: #ffffff;
  background: rgba(248, 250, 252, 0.08);
}

@media (max-width: 768px) {
  .hero .carousel-item::after {
    background: linear-gradient(180deg, rgba(11, 18, 32, 0.35) 0%, rgba(11, 18, 32, 0.78) 55%, rgba(11, 18, 32, 0.9) 100%);
  }

  .hero .container {
    padding-top: 72px;
    padding-bottom: 88px;
  }

  .hero .hero-copy > p:not(.hero-brand) {
    -webkit-line-clamp: 3;
    font-size: 0.98rem;
  }
}

.hero .carousel-control-prev,
.hero .carousel-control-next {
  width: 56px;
  height: 56px;
  top: auto;
  bottom: 28px;
  opacity: 0.85;
  z-index: 5;
}

.hero .carousel-control-prev {
  left: auto;
  right: 96px;
  justify-content: center;
  padding: 0;
}

.hero .carousel-control-next {
  right: 28px;
  justify-content: center;
  padding: 0;
}

@media (max-width: 767.98px) {
  /* Keep carousel arrows clear of the fixed WhatsApp button (bottom-right) */
  .hero .carousel-control-prev,
  .hero .carousel-control-next {
    bottom: 18px;
    left: auto;
    right: auto;
  }

  .hero .carousel-control-prev {
    left: 16px;
    right: auto;
  }

  .hero .carousel-control-next {
    left: 78px;
    right: auto;
  }
}

.hero .carousel-control-next-icon,
.hero .carousel-control-prev-icon {
  background: none;
  font-size: 26px;
  line-height: 0;
  background: color-mix(in srgb, var(--default-color), transparent 90%);
  border-radius: 50px;
  color: var(--contrast-color);
  transition: 0.3s;
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero .carousel-control-prev,
.hero .carousel-control-next {
  transition: 0.3s;
}

.hero .carousel-control-prev:focus,
.hero .carousel-control-next:focus,
.hero .carousel-control-prev:hover,
.hero .carousel-control-next:hover {
  opacity: 1;
}

.hero .carousel-control-prev:hover .carousel-control-next-icon,
.hero .carousel-control-prev:hover .carousel-control-prev-icon,
.hero .carousel-control-next:hover .carousel-control-next-icon,
.hero .carousel-control-next:hover .carousel-control-prev-icon {
  background: var(--accent-color);
  color: var(--default-color);
}

.hero .carousel-indicators li {
  cursor: pointer;
  background: var(--default-color);
  overflow: hidden;
  border: 0;
  width: 12px;
  height: 12px;
  border-radius: 50px;
  opacity: 0.6;
  transition: 0.3s;
}

.hero .carousel-indicators li.active {
  opacity: 1;
  background: var(--accent-color);
}

/*--------------------------------------------------------------
# About Section
--------------------------------------------------------------*/
.about .inner-title {
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  font-weight: 700;
  margin: 16px 0 24px;
  letter-spacing: -0.02em;
  color: var(--heading-color);
}

@media (min-width: 991px) {
  .about .inner-title {
    max-width: 100%;
    margin: 0 0 28px 0;
  }
}

.about .our-story {
  padding: 36px 32px;
  background-color: var(--surface-color);
  border: 1px solid var(--border-color);
  border-left: 3px solid var(--accent-color);
  border-radius: 0 14px 14px 0;
  box-shadow: var(--shadow-soft);
}

@media (min-width: 991px) {
  .about .our-story {
    padding-right: 32%;
  }
}

.about .our-story h4 {
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent-color);
  margin-bottom: 1.25rem;
}

.about .our-story h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--heading-color);
  opacity: 1;
  margin: 1.5rem 0 0.75rem;
  padding-bottom: 0.45rem;
  border-bottom: 2px solid color-mix(in srgb, var(--accent-color), transparent 70%);
  display: inline-block;
}

.about .our-story p:last-child {
  margin-bottom: 0;
}

.about ul {
  list-style: none;
  padding: 0;
  font-size: 15px;
}

.about ul li {
  padding: 5px 0;
  display: flex;
  align-items: center;
}

.about ul i {
  font-size: 1.25rem;
  margin-right: 0.5rem;
  line-height: 1.2;
  color: var(--accent-color);
}

.about .watch-video i {
  font-size: 2rem;
  transition: 0.3s;
  color: var(--accent-color);
}

.about .watch-video a {
  font-weight: 600;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
  margin-left: 8px;
  transition: 0.3s;
}

.about .watch-video:hover a {
  color: var(--accent-color);
}

.about .about-img {
  position: relative;
  min-height: 320px;
}

@media (min-width: 992px) {
  .about .about-img {
    position: sticky;
    top: 100px;
    min-height: 560px;
    height: 560px;
    align-self: flex-start;
  }
}

.about .about-img img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 1;
  border-radius: 14px;
}

/*--------------------------------------------------------------
# Services Section
--------------------------------------------------------------*/
.services .service-item {
  background-color: var(--surface-color);
  box-shadow: var(--shadow-soft);
  height: 100%;
  padding: 32px 28px;
  text-align: left;
  transition: 0.3s;
  border-radius: 14px;
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.services .service-item .icon {
  margin: 0 0 18px;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: ease-in-out 0.3s;
  position: relative;
  border-radius: 50%;
  flex-shrink: 0;
}

.services .service-item .icon i {
  font-size: 24px;
  transition: 0.5s;
  position: relative;
}

.services .service-item .icon svg {
  position: absolute;
  top: 0;
  left: 0;
}

.services .service-item .icon svg path {
  transition: 0.5s;
  fill: color-mix(in srgb, var(--default-color), transparent 95%);
}

.services .service-item h3 {
  font-weight: 700;
  margin: 0 0 12px 0;
  font-size: 1.25rem;
  color: var(--heading-color);
}

.services .service-item p {
  line-height: 1.55;
  font-size: 0.95rem;
  margin-bottom: 0;
  color: var(--default-color);
  flex-grow: 1;
}

.services .service-item > a.stretched-link {
  margin-top: auto;
  padding-top: 18px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--accent-color);
  position: relative;
  display: inline-block;
  align-self: flex-start;
}

.services .service-item > a.stretched-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s ease;
}

.services .service-item:hover > a.stretched-link::after {
  transform: scaleX(1);
}

.services .service-item:hover {
  box-shadow: var(--shadow-soft);
  transform: translateY(-4px);
}

.services .service-item.brand-care .icon {
  background: color-mix(in srgb, var(--accent-color), transparent 88%);
  color: var(--accent-color);
}

.services .service-item.brand-care .icon i {
  color: var(--accent-color);
}

.services .service-item.brand-law .icon {
  background: color-mix(in srgb, var(--brand-red), transparent 88%);
  color: var(--brand-red);
}

.services .service-item.brand-law .icon i {
  color: var(--brand-red);
}

.services .service-item.brand-law > a.stretched-link {
  color: var(--brand-red);
}

/* Legacy rainbow template colors removed — use .brand-care / .brand-law */

/*--------------------------------------------------------------
#  Resources Section
--------------------------------------------------------------*/
. resources . resources-filters {
  padding: 0;
  margin: 0 auto 20px auto;
  list-style: none;
  text-align: center;
}

. resources . resources-filters li {
  cursor: pointer;
  display: inline-block;
  padding: 8px 20px 10px 20px;
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  margin-bottom: 5px;
  border-radius: 4px;
  transition: all 0.3s ease-in-out;
  font-family: var(--heading-font);
}

. resources . resources-filters li:hover,
. resources . resources-filters li.filter-active {
  color: var(--contrast-color);
  background-color: var(--accent-color);
}

. resources . resources-filters li:first-child {
  margin-left: 0;
}

. resources . resources-filters li:last-child {
  margin-right: 0;
}

@media (max-width: 575px) {
  . resources . resources-filters li {
    font-size: 14px;
    margin: 0 0 10px 0;
  }
}

. resources . resources-item {
  position: relative;
  overflow: hidden;
}

. resources . resources-item . resources-info {
  opacity: 0;
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: -100%;
  z-index: 3;
  transition: all ease-in-out 0.5s;
  background: color-mix(in srgb, var(--surface-color), transparent 10%);
  padding: 15px;
}

. resources . resources-item . resources-info h4 {
  font-size: 18px;
  font-weight: 600;
  padding-right: 50px;
}

. resources . resources-item . resources-info p {
  color: color-mix(in srgb, var(--default-color), transparent 30%);
  font-size: 14px;
  margin-bottom: 0;
  padding-right: 50px;
}

. resources . resources-item . resources-info .preview-link,
. resources . resources-item . resources-info .details-link {
  position: absolute;
  right: 50px;
  font-size: 24px;
  top: calc(50% - 14px);
  color: color-mix(in srgb, var(--default-color), transparent 30%);
  transition: 0.3s;
  line-height: 0;
}

. resources . resources-item . resources-info .preview-link:hover,
. resources . resources-item . resources-info .details-link:hover {
  color: var(--accent-color);
}

. resources . resources-item . resources-info .details-link {
  right: 14px;
  font-size: 28px;
}

. resources . resources-item:hover . resources-info {
  opacity: 1;
  bottom: 0;
}

/*--------------------------------------------------------------
# Clients Section
--------------------------------------------------------------*/
.clients .clients-wrap {
  border-top: 1px solid color-mix(in srgb, var(--default-color), transparent 85%);
  border-left: 1px solid color-mix(in srgb, var(--default-color), transparent 85%);
}

.clients .client-logo {
  background-color: var(--surface-color);
  display: flex;
  justify-content: center;
  align-items: center;
  border-right: 1px solid color-mix(in srgb, var(--default-color), transparent 85%);
  border-bottom: 1px solid color-mix(in srgb, var(--default-color), transparent 85%);
  overflow: hidden;
}

.clients .client-logo img {
  padding: 50px;
  max-width: 80%;
  transition: 0.3s;
}

@media (max-width: 640px) {
  .clients .client-logo img {
    padding: 30px;
    max-width: 50%;
  }
}

.clients .client-logo:hover img {
  transform: scale(1.1);
}

/*--------------------------------------------------------------
# Skills Section
--------------------------------------------------------------*/
.skills .progress {
  height: 60px;
  display: block;
  background: none;
  border-radius: 0;
}

.skills .progress .skill {
  color: var(--heading-color);
  padding: 0;
  margin: 0 0 6px 0;
  text-transform: uppercase;
  display: block;
  font-weight: 600;
  font-family: var(--heading-font);
}

.skills .progress .skill .val {
  float: right;
  font-style: normal;
}

.skills .progress-bar-wrap {
  background: color-mix(in srgb, var(--default-color), transparent 90%);
  height: 10px;
}

.skills .progress-bar {
  width: 1px;
  height: 10px;
  transition: 0.9s;
  background-color: var(--accent-color);
}

/*--------------------------------------------------------------
# Team Section
--------------------------------------------------------------*/
.team .team-member {
  background-color: var(--surface-color);
  box-shadow: 0px 2px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  border-radius: 5px;
}

.team .team-member .member-img {
  position: relative;
  overflow: hidden;
}

.team .team-member .social {
  position: absolute;
  left: 0;
  bottom: 0;
  right: 0;
  height: 40px;
  opacity: 0;
  transition: ease-in-out 0.3s;
  background: color-mix(in srgb, var(--background-color), transparent 20%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.team .team-member .social a {
  transition: color 0.3s;
  color: var(--heading-color);
  margin: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.team .team-member .social a i {
  line-height: 0;
}

.team .team-member .social a:hover {
  color: var(--accent-color);
}

.team .team-member .social i {
  font-size: 18px;
  margin: 0 2px;
}

.team .team-member .member-info {
  padding: 25px 15px;
  text-align: center;
}

.team .team-member .member-info h4 {
  font-weight: 700;
  margin-bottom: 5px;
  font-size: 18px;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
}

.team .team-member .member-info span {
  display: block;
  font-size: 13px;
  font-weight: 400;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
}

.team .team-member .member-info p {
  font-style: italic;
  font-size: 14px;
  line-height: 26px;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
}

.team .team-member:hover .social {
  opacity: 1;
}

/*--------------------------------------------------------------
# Testimonials Section
--------------------------------------------------------------*/
.testimonials .testimonial-item {
  background-color: var(--surface-color);
  box-shadow: 0px 2px 12px rgba(0, 0, 0, 0.1);
  padding: 30px;
  position: relative;
  height: 100%;
}

.testimonials .testimonial-item .testimonial-img {
  width: 90px;
  border-radius: 50px;
  border: 6px solid var(--background-color);
  float: left;
  margin: 0 10px 0 0;
}

.testimonials .testimonial-item h3 {
  font-size: 18px;
  font-weight: bold;
  margin: 10px 0 5px 0;
}

.testimonials .testimonial-item h4 {
  font-size: 14px;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
  margin: 0;
}

.testimonials .testimonial-item .stars {
  margin: 10px 0;
}

.testimonials .testimonial-item .stars i {
  color: #ffc107;
  margin: 0 1px;
}

.testimonials .testimonial-item .quote-icon-left,
.testimonials .testimonial-item .quote-icon-right {
  color: color-mix(in srgb, var(--accent-color), transparent 50%);
  font-size: 26px;
  line-height: 0;
}

.testimonials .testimonial-item .quote-icon-left {
  display: inline-block;
  left: -5px;
  position: relative;
}

.testimonials .testimonial-item .quote-icon-right {
  display: inline-block;
  right: -5px;
  position: relative;
  top: 10px;
  transform: scale(-1, -1);
}

.testimonials .testimonial-item p {
  font-style: italic;
  margin: 15px 0 0 0;
  padding: 0;
}

/*--------------------------------------------------------------
# Features Section
--------------------------------------------------------------*/
.features .features-item {
  background-color: var(--surface-color);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 22px 18px;
  transition: 0.3s;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  position: relative;
  height: 100%;
  min-height: 88px;
}

.features .features-item i {
  font-size: 22px;
  line-height: 0;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.features .features-item.brand-care i {
  color: var(--accent-color);
  background: color-mix(in srgb, var(--accent-color), transparent 88%);
}

.features .features-item.brand-law i {
  color: var(--brand-red);
  background: color-mix(in srgb, var(--brand-red), transparent 88%);
}

.features .features-item h3 {
  font-weight: 700;
  margin: 0;
  padding: 0;
  line-height: 1.3;
  font-size: 15px;
}

.features .features-item h3 a {
  color: var(--heading-color);
  transition: 0.3s;
}

.features .features-item:hover {
  border-color: var(--accent-color);
}

.features .features-item.brand-law:hover {
  border-color: var(--brand-red);
}

.features .features-item:hover h3 a {
  color: var(--accent-color);
}

.features .features-item.brand-law:hover h3 a {
  color: var(--brand-red);
}

/*--------------------------------------------------------------
# Service Details Section
--------------------------------------------------------------*/
.service-details .services-list {
  background-color: var(--surface-color);
  padding: 10px 30px;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
  margin-bottom: 20px;
}

.service-details .services-list a {
  display: block;
  line-height: 1;
  padding: 8px 0 8px 15px;
  border-left: 3px solid color-mix(in srgb, var(--default-color), transparent 70%);
  margin: 20px 0;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
  transition: 0.3s;
}

.service-details .services-list a.active {
  color: var(--heading-color);
  font-weight: 700;
  border-color: var(--accent-color);
}

.service-details .services-list a:hover {
  border-color: var(--accent-color);
}

.service-details .services-img {
  margin-bottom: 20px;
}

.service-details h3 {
  font-size: 26px;
  font-weight: 700;
}

.service-details h4 {
  font-size: 20px;
  font-weight: 700;
}

.service-details p {
  font-size: 15px;
}

.service-details ul {
  list-style: none;
  padding: 0;
  font-size: 15px;
}

.service-details ul li {
  padding: 5px 0;
  display: flex;
  align-items: center;
}

.service-details ul i {
  font-size: 20px;
  margin-right: 8px;
  color: var(--accent-color);
}

/*--------------------------------------------------------------
#  Resources Details Section
--------------------------------------------------------------*/
. resources-details . resources-details-slider img {
  width: 100%;
}

. resources-details .swiper-wrapper {
  height: auto;
}

. resources-details .swiper-button-prev,
. resources-details .swiper-button-next {
  width: 48px;
  height: 48px;
}

. resources-details .swiper-button-prev:after,
. resources-details .swiper-button-next:after {
  color: rgba(255, 255, 255, 0.8);
  background-color: rgba(0, 0, 0, 0.15);
  font-size: 24px;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
}

. resources-details .swiper-button-prev:hover:after,
. resources-details .swiper-button-next:hover:after {
  background-color: rgba(0, 0, 0, 0.3);
}

@media (max-width: 575px) {

  . resources-details .swiper-button-prev,
  . resources-details .swiper-button-next {
    display: none;
  }
}

. resources-details .swiper-pagination {
  margin-top: 20px;
  position: relative;
}

. resources-details .swiper-pagination .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background-color: color-mix(in srgb, var(--default-color), transparent 85%);
  opacity: 1;
}

. resources-details .swiper-pagination .swiper-pagination-bullet-active {
  background-color: var(--accent-color);
}

. resources-details . resources-info h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 20px;
  position: relative;
}

. resources-details . resources-info h3:after {
  content: "";
  position: absolute;
  display: block;
  width: 50px;
  height: 3px;
  background: var(--accent-color);
  left: 0;
  bottom: 0;
}

. resources-details . resources-info ul {
  list-style: none;
  padding: 0;
  font-size: 15px;
}

. resources-details . resources-info ul li {
  display: flex;
  flex-direction: column;
  padding-bottom: 15px;
}

. resources-details . resources-info ul strong {
  text-transform: uppercase;
  font-weight: 400;
  color: color-mix(in srgb, var(--default-color), transparent 50%);
  font-size: 14px;
}

. resources-details . resources-info .btn-visit {
  padding: 8px 40px;
  background: var(--accent-color);
  color: var(--contrast-color);
  border-radius: 50px;
  transition: 0.3s;
}

. resources-details . resources-info .btn-visit:hover {
  background: color-mix(in srgb, var(--accent-color), transparent 20%);
}

. resources-details . resources-description h2 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 20px;
}

. resources-details . resources-description p {
  padding: 0;
}

. resources-details . resources-description .testimonial-item {
  padding: 30px 30px 0 30px;
  position: relative;
  background: color-mix(in srgb, var(--default-color), transparent 97%);
  margin-bottom: 50px;
}

. resources-details . resources-description .testimonial-item .testimonial-img {
  width: 90px;
  border-radius: 50px;
  border: 6px solid var(--background-color);
  float: left;
  margin: 0 10px 0 0;
}

. resources-details . resources-description .testimonial-item h3 {
  font-size: 18px;
  font-weight: bold;
  margin: 15px 0 5px 0;
  padding-top: 20px;
}

. resources-details . resources-description .testimonial-item h4 {
  font-size: 14px;
  color: #6c757d;
  margin: 0;
}

. resources-details . resources-description .testimonial-item .quote-icon-left,
. resources-details . resources-description .testimonial-item .quote-icon-right {
  color: color-mix(in srgb, var(--accent-color), transparent 50%);
  font-size: 26px;
  line-height: 0;
}

. resources-details . resources-description .testimonial-item .quote-icon-left {
  display: inline-block;
  left: -5px;
  position: relative;
}

. resources-details . resources-description .testimonial-item .quote-icon-right {
  display: inline-block;
  right: -5px;
  position: relative;
  top: 10px;
  transform: scale(-1, -1);
}

. resources-details . resources-description .testimonial-item p {
  font-style: italic;
  margin: 0 0 15px 0 0 0;
  padding: 0;
}

/*--------------------------------------------------------------
# Pricing Section
--------------------------------------------------------------*/
.pricing .pricing-item {
  background-color: color-mix(in srgb, var(--accent-color), transparent 96%);
  padding: 40px 40px;
  height: 100%;
  border-radius: 15px;
}

.pricing h3 {
  font-weight: 600;
  margin-bottom: 15px;
  font-size: 20px;
}

.pricing h4 {
  color: var(--accent-color);
  font-size: 48px;
  font-weight: 700;
  font-family: var(--heading-font);
  margin-bottom: 0;
}

.pricing h4 sup {
  font-size: 28px;
}

.pricing h4 span {
  color: color-mix(in srgb, var(--default-color), transparent 50%);
  font-size: 18px;
  font-weight: 500;
}

.pricing .description {
  font-size: 14px;
}

.pricing .cta-btn {
  border: 1px solid var(--default-color);
  color: var(--default-color);
  display: block;
  text-align: center;
  padding: 10px 35px;
  border-radius: 5px;
  font-size: 16px;
  font-weight: 500;
  font-family: var(--heading-font);
  transition: 0.3s;
  margin-top: 20px;
  margin-bottom: 6px;
}

.pricing .cta-btn:hover {
  background: var(--accent-color);
  color: var(--contrast-color);
  border-color: var(--accent-color);
}

.pricing ul {
  padding: 0;
  list-style: none;
  color: color-mix(in srgb, var(--default-color), transparent 30%);
  text-align: left;
  line-height: 20px;
}

.pricing ul li {
  padding: 10px 0;
  display: flex;
  align-items: center;
}

.pricing ul li:last-child {
  padding-bottom: 0;
}

.pricing ul i {
  color: #059652;
  font-size: 24px;
  padding-right: 3px;
}

.pricing ul .na {
  color: color-mix(in srgb, var(--default-color), transparent 60%);
}

.pricing ul .na i {
  color: color-mix(in srgb, var(--default-color), transparent 60%);
}

.pricing ul .na span {
  text-decoration: line-through;
}

.pricing .featured {
  position: relative;
}

.pricing .featured .popular {
  position: absolute;
  top: 15px;
  right: 15px;
  background-color: var(--accent-color);
  color: var(--contrast-color);
  padding: 4px 15px 6px 15px;
  margin: 0;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 500;
}

.pricing .featured .cta-btn {
  background: var(--accent-color);
  color: var(--contrast-color);
  border-color: var(--accent-color);
}

@media (max-width: 992px) {
  .pricing .box {
    max-width: 60%;
    margin: 0 auto 30px auto;
  }
}

@media (max-width: 767px) {
  .pricing .box {
    max-width: 80%;
    margin: 0 auto 30px auto;
  }
}

@media (max-width: 420px) {
  .pricing .box {
    max-width: 100%;
    margin: 0 auto 30px auto;
  }
}

/*--------------------------------------------------------------
# Blog Posts Section
--------------------------------------------------------------*/
.blog-posts article {
  background-color: var(--surface-color);
  box-shadow: 0px 2px 20px rgba(0, 0, 0, 0.1);
  transition: 0.3s;
}

.blog-posts .post-img img {
  transition: 0.5s;
}

.blog-posts .post-date {
  background-color: var(--accent-color);
  color: var(--contrast-color);
  position: absolute;
  right: 0;
  bottom: 0;
  text-transform: uppercase;
  font-size: 13px;
  padding: 6px 12px;
  font-weight: 500;
}

.blog-posts .post-content {
  padding: 30px;
}

.blog-posts .post-title {
  font-size: 20px;
  color: var(--heading-color);
  font-weight: 700;
  transition: 0.3s;
  margin-bottom: 15px;
}

.blog-posts .meta i {
  font-size: 16px;
  color: var(--accent-color);
}

.blog-posts .meta span {
  font-size: 15px;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
}

.blog-posts p {
  margin-top: 20px;
}

.blog-posts hr {
  color: color-mix(in srgb, var(--default-color), transparent 60%);
  margin-bottom: 15px;
}

.blog-posts .readmore {
  display: flex;
  align-items: center;
  font-weight: 600;
  line-height: 1;
  transition: 0.3s;
  color: color-mix(in srgb, var(--heading-color), transparent 20%);
}

.blog-posts .readmore i {
  line-height: 0;
  margin-left: 6px;
  font-size: 16px;
}

.blog-posts article:hover .post-title,
.blog-posts article:hover .readmore {
  color: var(--accent-color);
}

.blog-posts article:hover .post-img img {
  transform: scale(1.1);
}

/*--------------------------------------------------------------
# Blog Pagination Section
--------------------------------------------------------------*/
.blog-pagination {
  padding-top: 0;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
}

.blog-pagination ul {
  display: flex;
  padding: 0;
  margin: 0;
  list-style: none;
}

.blog-pagination li {
  margin: 0 5px;
  transition: 0.3s;
}

.blog-pagination li a {
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  padding: 7px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-pagination li a.active,
.blog-pagination li a:hover {
  background: var(--accent-color);
  color: var(--contrast-color);
}

.blog-pagination li a.active a,
.blog-pagination li a:hover a {
  color: var(--contrast-color);
}

/*--------------------------------------------------------------
# Blog Details Section
--------------------------------------------------------------*/
.blog-details {
  padding-bottom: 30px;
}

.blog-details .article {
  background-color: var(--surface-color);
  padding: 30px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.blog-details .post-img {
  margin: -30px -30px 20px -30px;
  overflow: hidden;
}

.blog-details .title {
  color: var(--heading-color);
  font-size: 28px;
  font-weight: 700;
  padding: 0;
  margin: 30px 0;
}

.blog-details .content {
  margin-top: 20px;
}

.blog-details .content h3 {
  font-size: 22px;
  margin-top: 30px;
  font-weight: bold;
}

.blog-details .content blockquote {
  overflow: hidden;
  background-color: color-mix(in srgb, var(--default-color), transparent 95%);
  padding: 60px;
  position: relative;
  text-align: center;
  margin: 20px 0;
}

.blog-details .content blockquote p {
  color: var(--default-color);
  line-height: 1.6;
  margin-bottom: 0;
  font-style: italic;
  font-weight: 500;
  font-size: 22px;
}

.blog-details .content blockquote:after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background-color: var(--accent-color);
  margin-top: 20px;
  margin-bottom: 20px;
}

.blog-details .meta-top {
  margin-top: 20px;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
}

.blog-details .meta-top ul {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  align-items: center;
  padding: 0;
  margin: 0;
}

.blog-details .meta-top ul li+li {
  padding-left: 20px;
}

.blog-details .meta-top i {
  font-size: 16px;
  margin-right: 8px;
  line-height: 0;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
}

.blog-details .meta-top a {
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  font-size: 14px;
  display: inline-block;
  line-height: 1;
}

.blog-details .meta-bottom {
  padding-top: 10px;
  border-top: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
}

.blog-details .meta-bottom i {
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  display: inline;
}

.blog-details .meta-bottom a {
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  transition: 0.3s;
}

.blog-details .meta-bottom a:hover {
  color: var(--accent-color);
}

.blog-details .meta-bottom .cats {
  list-style: none;
  display: inline;
  padding: 0 20px 0 0;
  font-size: 14px;
}

.blog-details .meta-bottom .cats li {
  display: inline-block;
}

.blog-details .meta-bottom .tags {
  list-style: none;
  display: inline;
  padding: 0;
  font-size: 14px;
}

.blog-details .meta-bottom .tags li {
  display: inline-block;
}

.blog-details .meta-bottom .tags li+li::before {
  padding-right: 6px;
  color: var(--default-color);
  content: ",";
}

.blog-details .meta-bottom .share {
  font-size: 16px;
}

.blog-details .meta-bottom .share i {
  padding-left: 5px;
}

/*--------------------------------------------------------------
# Blog Comments Section
--------------------------------------------------------------*/
.blog-comments {
  padding: 10px 0;
}

.blog-comments .comments-count {
  font-weight: bold;
}

.blog-comments .comment {
  margin-top: 30px;
  position: relative;
}

.blog-comments .comment .comment-img {
  margin-right: 14px;
}

.blog-comments .comment .comment-img img {
  width: 60px;
}

.blog-comments .comment h5 {
  font-size: 16px;
  margin-bottom: 2px;
}

.blog-comments .comment h5 a {
  font-weight: bold;
  color: var(--default-color);
  transition: 0.3s;
}

.blog-comments .comment h5 a:hover {
  color: var(--accent-color);
}

.blog-comments .comment h5 .reply {
  padding-left: 10px;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
}

.blog-comments .comment h5 .reply i {
  font-size: 20px;
}

.blog-comments .comment time {
  display: block;
  font-size: 14px;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  margin-bottom: 5px;
}

.blog-comments .comment.comment-reply {
  padding-left: 40px;
}

/*--------------------------------------------------------------
# Comment Form Section
--------------------------------------------------------------*/
.comment-form {
  padding-top: 10px;
}

.comment-form form {
  background-color: var(--surface-color);
  margin-top: 30px;
  padding: 30px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.comment-form form h4 {
  font-weight: bold;
  font-size: 22px;
}

.comment-form form p {
  font-size: 14px;
}

.comment-form form input {
  background-color: var(--surface-color);
  color: var(--default-color);
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 70%);
  font-size: 14px;
  border-radius: 4px;
  padding: 10px 10px;
}

.comment-form form input:focus {
  color: var(--default-color);
  background-color: var(--surface-color);
  box-shadow: none;
  border-color: var(--accent-color);
}

.comment-form form input::placeholder {
  color: color-mix(in srgb, var(--default-color), transparent 50%);
}

.comment-form form textarea {
  background-color: var(--surface-color);
  color: var(--default-color);
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 70%);
  border-radius: 4px;
  padding: 10px 10px;
  font-size: 14px;
  height: 120px;
}

.comment-form form textarea:focus {
  color: var(--default-color);
  box-shadow: none;
  border-color: var(--accent-color);
  background-color: var(--surface-color);
}

.comment-form form textarea::placeholder {
  color: color-mix(in srgb, var(--default-color), transparent 50%);
}

.comment-form form .form-group {
  margin-bottom: 25px;
}

.comment-form form .btn-primary {
  border-radius: 4px;
  padding: 10px 20px;
  border: 0;
  background-color: var(--accent-color);
  color: var(--contrast-color);
}

.comment-form form .btn-primary:hover {
  color: var(--contrast-color);
  background-color: color-mix(in srgb, var(--accent-color), transparent 20%);
}

/*--------------------------------------------------------------
# Contact Section
--------------------------------------------------------------*/
.contact {
  padding-top: 0;
}

.contact .info {
  background-color: var(--surface-color);
  padding: 40px;
  box-shadow: 0px 2px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.contact .info h3 {
  font-weight: 600;
  font-size: 24px;
}

.contact .info p {
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  margin-bottom: 30px;
  font-size: 15px;
}

.contact .info-item+.info-item {
  padding-top: 20px;
  margin-top: 20px;
  border-top: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
}

.contact .info-item i {
  font-size: 24px;
  color: var(--accent-color);
  transition: all 0.3s ease-in-out;
  margin-right: 20px;
}

.contact .info-item h4 {
  padding: 0;
  font-size: 18px;
  line-height: 24px;
  font-weight: 600;
  margin-bottom: 5px;
}

.contact .info-item p {
  padding: 0;
  margin-bottom: 0;
  font-size: 14px;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
}

.contact .php-email-form {
  width: 100%;
}

.contact .php-email-form .form-group {
  padding-bottom: 8px;
}

.contact .php-email-form input[type=text],
.contact .php-email-form input[type=email],
.contact .php-email-form textarea {
  color: var(--default-color);
  background-color: var(--surface-color);
  border-radius: 0px;
  box-shadow: none;
  font-size: 14px;
  border-color: color-mix(in srgb, var(--default-color), transparent 80%);
}

.contact .php-email-form input[type=text]:focus,
.contact .php-email-form input[type=email]:focus,
.contact .php-email-form textarea:focus {
  border-color: var(--accent-color);
}

.contact .php-email-form input[type=text]::placeholder,
.contact .php-email-form input[type=email]::placeholder,
.contact .php-email-form textarea::placeholder {
  color: color-mix(in srgb, var(--default-color), transparent 70%);
}

.contact .php-email-form input[type=text],
.contact .php-email-form input[type=email] {
  height: 48px;
  padding: 10px 15px;
}

.contact .php-email-form textarea {
  padding: 10px 12px;
  height: 290px;
}

.contact .php-email-form button[type=submit] {
  background: var(--accent-color);
  color: var(--contrast-color);
  border: 0;
  padding: 13px 50px;
  transition: 0.4s;
  border-radius: 4px;
}

.contact .php-email-form button[type=submit]:hover {
  background: color-mix(in srgb, var(--accent-color) 90%, black 15%);
}

/*--------------------------------------------------------------
# Starter Section Section
--------------------------------------------------------------*/
.starter-section {
  /* Add your styles here */
}

/*--------------------------------------------------------------
# Widgets
--------------------------------------------------------------*/
.widgets-container {
  background-color: var(--surface-color);
  padding: 30px;
  margin: 60px 0 30px 0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.widget-title {
  color: var(--heading-color);
  font-size: 20px;
  font-weight: 700;
  padding: 0;
  margin: 0 0 20px 0;
}

.widget-item {
  margin-bottom: 40px;
}

.widget-item:last-child {
  margin-bottom: 0;
}

.blog-author-widget img {
  max-width: 160px;
}

.blog-author-widget h4 {
  font-weight: 600;
  font-size: 24px;
  margin: 15px 0 0 0;
  padding: 0;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
}

.blog-author-widget .social-links {
  margin: 5px 0;
}

.blog-author-widget .social-links a {
  color: color-mix(in srgb, var(--default-color), transparent 60%);
  margin: 0 3px;
  font-size: 18px;
}

.blog-author-widget .social-links a:hover {
  color: var(--accent-color);
}

.blog-author-widget p {
  font-style: italic;
  color: color-mix(in srgb, var(--default-color), transparent 30%);
  margin: 10px 0 0 0;
}

.search-widget form {
  background: var(--background-color);
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 75%);
  padding: 3px 10px;
  position: relative;
  border-radius: 50px;
  transition: 0.3s;
}

.search-widget form input[type=text] {
  border: 0;
  padding: 4px 10px;
  border-radius: 4px;
  width: calc(100% - 40px);
  background-color: var(--background-color);
  color: var(--default-color);
}

.search-widget form input[type=text]:focus {
  outline: none;
}

.search-widget form button {
  background: none;
  color: var(--default-color);
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  border: 0;
  font-size: 16px;
  padding: 0 16px;
  transition: 0.3s;
  line-height: 0;
}

.search-widget form button i {
  line-height: 0;
}

.search-widget form button:hover {
  color: var(--accent-color);
}

.search-widget form:is(:focus-within) {
  border-color: var(--accent-color);
}

.recent-posts-widget .post-item {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}

.recent-posts-widget .post-item:last-child {
  margin-bottom: 0;
}

.recent-posts-widget .post-item h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 5px;
}

.recent-posts-widget .post-item h4 a {
  color: var(--default-color);
  transition: 0.3s;
}

.recent-posts-widget .post-item h4 a:hover {
  color: var(--accent-color);
}

.recent-posts-widget .post-item time {
  display: block;
  font-style: italic;
  font-size: 14px;
  color: color-mix(in srgb, var(--default-color), transparent 50%);
}

.tags-widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tags-widget ul li {
  display: inline-block;
}

.tags-widget ul a {
  background-color: color-mix(in srgb, var(--default-color), transparent 94%);
  color: color-mix(in srgb, var(--default-color), transparent 30%);
  border-radius: 50px;
  font-size: 14px;
  padding: 5px 15px;
  margin: 0 6px 8px 0;
  display: inline-block;
  transition: 0.3s;
}

.tags-widget ul a:hover {
  background: var(--accent-color);
  color: var(--contrast-color);
}

.tags-widget ul a span {
  padding-left: 5px;
  color: color-mix(in srgb, var(--default-color), transparent 60%);
  font-size: 14px;
}

/* Resources Section */
.resources {
  background: var(--background-color);
  padding: 60px 0;
}

.resource-filters {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.resource-filters li {
  padding: 10px 20px;
  cursor: pointer;
  font-weight: 600;
  border-radius: 30px;
  transition: 0.3s;
  background: var(--surface-color);
  color: var(--default-color);
  border: 1px solid var(--border-color);
}

.resource-filters li.filter-active,
.resource-filters li:hover {
  background: var(--accent-color);
  border-color: var(--accent-color);
  color: #ffffff;
}

.resource-card {
  background: var(--surface-color);
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.3s ease-in-out;
  border: 1px solid var(--border-color);
}

.resource-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.resource-info h4 {
  font-size: 18px;
  font-weight: bold;
  color: #333;
}

.resource-links a {
  margin: 5px;
  text-decoration: none;
  color: #1e3799;
  font-weight: bold;
}

.resource-links a:hover {
  text-decoration: underline;
}


.whatsapp-btn {
  position: fixed;
  bottom: 80px; /* Adjust position */
  right: 20px;
  background-color: #25D366;
  color: white;
  font-size: 28px;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
  z-index: 9999; /* Bring to front */
  transition: background 0.3s ease-in-out;
}

.whatsapp-btn:hover {
  background-color: #1EBEA5;
}

/* Preloader uses theme tokens via #preloader above */

/*--------------------------------------------------------------
# Theme modernization overrides
--------------------------------------------------------------*/
html {
  transition: color-scheme 0.3s ease;
}

body {
  transition: background-color 0.35s ease, color 0.35s ease;
  background-image: var(--section-wash);
  background-attachment: fixed;
}

*:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding-left: 0.75rem;
  margin-left: 0.25rem;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  background: color-mix(in srgb, var(--surface-color), transparent 20%);
  color: var(--heading-color);
  cursor: pointer;
  transition: transform 0.25s ease, background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.theme-toggle:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--accent-color), transparent 40%);
  color: var(--accent-color);
}

.theme-toggle .theme-icon-light {
  display: none;
}

html[data-theme="dark"] .theme-toggle .theme-icon-dark {
  display: none;
}

html[data-theme="dark"] .theme-toggle .theme-icon-light {
  display: inline-block;
}

.header .header-social-links {
  padding: 0;
}

@media (max-width: 1199px) {
  .header-actions {
    order: 2;
    margin-left: auto;
    padding-left: 0;
  }

  .header .logo {
    order: 1;
  }

  .header .navmenu {
    order: 3;
  }
}

.btn-get-started,
.cta-btn,
a.btn-get-started {
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}

.btn-get-started:hover,
.cta-btn:hover {
  transform: translateY(-2px);
}

.section-title h2 {
  letter-spacing: 0.04em;
}

.section-title h2:after {
  width: 56px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-color), var(--brand-red));
}

/* Service / icon hover lift */
.services .service-item,
.services .icon-box,
.service-item,
.icon-box {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, background-color 0.35s ease;
}

.services .service-item:hover,
.services .icon-box:hover,
.service-item:hover,
.icon-box:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-soft);
}

.services .icon i,
.service-item .icon i,
.icon-box i {
  transition: transform 0.3s ease, color 0.3s ease;
}

.services .service-item:hover .icon i,
.service-item:hover .icon i,
.icon-box:hover i {
  transform: translateY(-2px);
  color: var(--accent-color);
}

/* Underline reveal on nav */
@media (min-width: 1200px) {
  .navmenu a {
    position: relative;
  }

  .navmenu > ul > li > a::after {
    content: "";
    position: absolute;
    left: 15px;
    right: 15px;
    bottom: 12px;
    height: 2px;
    border-radius: 999px;
    background: var(--accent-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.28s ease;
  }

  .navmenu > ul > li > a:hover::after,
  .navmenu > ul > li > a.active::after {
    transform: scaleX(1);
  }
}

/* Cards / surfaces */
.pricing .pricing-item,
.team .team-member,
.testimonials .testimonial-item,
.contact .info-item,
.php-email-form {
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-soft);
}

.pricing .pricing-item,
.team .team-member {
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pricing .pricing-item:hover,
.team .team-member:hover {
  transform: translateY(-4px);
}

.pricing .featured {
  border-color: color-mix(in srgb, var(--accent-color), transparent 35%);
}

.pricing .featured .popular {
  background: var(--brand-red);
}

/* Footer themed (no Bootstrap bg-dark / text-info) */
.footer {
  --background-color: var(--footer-bg);
  --default-color: var(--footer-muted);
  --heading-color: var(--footer-text);
  color: var(--footer-muted);
  background: linear-gradient(180deg, color-mix(in srgb, var(--footer-bg), #0D9488 12%) 0%, var(--footer-bg) 40%);
  margin-top: 2rem;
}

.footer .sitename,
.footer h4,
.footer strong {
  color: var(--footer-text);
}

.footer a,
.footer .footer-links ul a {
  color: var(--footer-muted);
}

.footer a:hover,
.footer .footer-links ul a:hover {
  color: #ffffff;
}

.footer .logo img {
  max-height: 40px;
  border-radius: 8px;
  margin-right: 10px;
}

.footer .social-links a {
  border-color: rgba(255, 255, 255, 0.22);
  color: var(--footer-text);
}

.footer .social-links a:hover {
  border-color: var(--accent-color);
  color: var(--accent-color);
  background: transparent;
}

.footer .copyright {
  border-top-color: rgba(255, 255, 255, 0.12);
  color: var(--footer-muted);
}

/* Forms */
.php-email-form input,
.php-email-form textarea,
.php-email-form select,
.contact input,
.contact textarea {
  background: var(--surface-color);
  color: var(--default-color);
  border: 1px solid var(--border-color);
  border-radius: 10px;
}

.php-email-form input:focus,
.php-email-form textarea:focus,
.contact input:focus,
.contact textarea:focus {
  border-color: var(--accent-color);
  box-shadow: var(--focus-ring);
}

.php-email-form button[type=submit],
.contact button[type=submit] {
  background: var(--accent-color);
  border: 0;
  border-radius: 999px;
  color: var(--contrast-color);
  font-weight: 600;
  transition: transform 0.25s ease, background 0.25s ease;
}

.php-email-form button[type=submit]:hover,
.contact button[type=submit]:hover {
  background: var(--accent-strong);
  transform: translateY(-1px);
}

/* Hero type */
.hero h2 {
  font-family: var(--heading-font);
}

/* Mobile nav close button contrast on overlay */
.mobile-nav-active .mobile-nav-toggle {
  color: #fff;
}

html[data-theme="dark"] .mobile-nav-active .navmenu {
  background: rgba(11, 18, 32, 0.88);
}

/* Ensure Bootstrap utility overrides don't fight theme footer */
.footer.bg-dark,
.footer.text-light {
  background: linear-gradient(180deg, color-mix(in srgb, var(--footer-bg), #0D9488 12%) 0%, var(--footer-bg) 40%) !important;
  color: var(--footer-muted) !important;
}

.footer .text-info {
  color: var(--footer-text) !important;
}

.footer .text-light {
  color: var(--footer-muted) !important;
}


/*--------------------------------------------------------------
# Evaluation pass refinements
--------------------------------------------------------------*/

/* Bootstrap utility theme safety */
html[data-theme="dark"] .bg-light,
html[data-theme="dark"] .bg-white {
  background-color: var(--surface-color) !important;
  color: var(--default-color) !important;
}

html[data-theme="dark"] .text-dark {
  color: var(--heading-color) !important;
}

html[data-theme="dark"] .text-muted {
  color: var(--muted-color) !important;
  opacity: 1;
}

.services .service-item .icon i {
  font-size: 1.35rem;
  line-height: 1;
  display: inline-block;
}

.services .service-item.brand-care .icon,
.services .service-item.brand-law .icon {
  border: 1px solid color-mix(in srgb, currentColor, transparent 70%);
}

.resources.section,
.resources.light-background {
  background-color: var(--background-color);
  color: var(--default-color);
}

.resources .section-title h2,
.resources .section-title p {
  color: var(--heading-color);
}

.resources .section-title p {
  color: var(--default-color);
}

.resources .resource-filters,
.resources .isotope-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}

.resources .resource-filters li,
.resources .isotope-filters li {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 1rem;
  margin: 0;
  border-radius: 999px;
  border: 1px solid var(--border-color);
  background: var(--surface-color);
  color: var(--default-color);
  font-family: var(--heading-font);
  font-size: 0.9rem;
  font-weight: 600;
  transition: 0.25s ease;
}

.resources .resource-filters li:hover,
.resources .isotope-filters li:hover,
.resources .resource-filters li.filter-active,
.resources .isotope-filters li.filter-active {
  background: var(--accent-color);
  border-color: var(--accent-color);
  color: #ffffff;
}

html[data-theme="dark"] .resources .resource-filters li.filter-active,
html[data-theme="dark"] .resources .isotope-filters li.filter-active {
  color: #0B1220;
}

/* Header brand + tablet/mobile spacing */
@media (max-width: 1199px) {
  .header {
    padding: 10px 0;
  }

  .header .container {
    gap: 10px;
  }

  .header .logo img {
    max-height: 34px;
  }

  .header .logo .sitename-desktop {
    display: none;
  }

  .header .logo .sitename-short {
    display: inline;
  }

  .header-actions {
    gap: 0.5rem;
    margin-left: auto;
  }

  .mobile-nav-toggle {
    margin-right: 0;
    margin-left: 4px;
  }
}

@media (max-width: 991.98px) {
  .header .header-social-links {
    display: none !important;
  }
}

/* Ensure mobile menu list is fully visible when open */
.mobile-nav-active .navmenu > ul {
  display: block !important;
  position: fixed !important;
  top: 72px !important;
  left: 16px !important;
  right: 16px !important;
  bottom: auto !important;
  max-height: calc(100vh - 96px) !important;
  height: auto !important;
  overflow-y: auto !important;
}

.mobile-nav-active .mobile-nav-toggle {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 10000;
}

/* Dual-tone hover consistency */
.services .service-item.brand-care:hover .icon i {
  color: var(--accent-color);
}

.services .service-item.brand-law:hover .icon i {
  color: var(--brand-red);
}

@media (min-width: 992px) {
  .about .our-story {
    padding-right: 36px;
  }
}

/* Red urgent CTA option for secondary marketing moments */
.btn-brand-red {
  background: var(--brand-red);
  border-color: var(--brand-red);
  color: #fff;
}

.btn-brand-red:hover {
  background: var(--brand-red-strong);
  border-color: var(--brand-red-strong);
  color: #fff;
}


/*--------------------------------------------------------------
# Attempt 3 refinements — craft + originality
--------------------------------------------------------------*/

/* Editorial left-aligned section titles */
.section-title.section-title-editorial {
  text-align: left;
  padding-bottom: 36px;
}

.section-title.section-title-editorial h2 {
  text-transform: none;
  letter-spacing: -0.02em;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  padding-bottom: 0;
  margin-bottom: 0;
}

.section-title.section-title-editorial h2:after {
  display: none;
}

.section-eyebrow {
  margin: 0 0 10px;
  font-family: var(--heading-font);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-color);
}

.section-title-row {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 1.25rem 2rem;
  align-items: end;
}

.section-title-row p {
  margin: 0;
  color: var(--default-color);
  max-width: 36rem;
}

@media (max-width: 767.98px) {
  .section-title-row {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
}

/* Brand S-curve divider */
.brand-curve-divider {
  line-height: 0;
  margin: -8px 0;
  pointer-events: none;
}

.brand-curve-divider svg {
  width: 100%;
  height: 48px;
  display: block;
}

/* Care | Justice dual services */
.services-dual {
  display: grid;
  grid-template-columns: 1fr 48px 1fr;
  gap: 1.25rem;
  align-items: start;
}

.services-group-label {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.1rem;
}

.services-group-label h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--heading-color);
}

.tone-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.tone-dot.tone-care {
  background: var(--accent-color);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent-color), transparent 80%);
}

.tone-dot.tone-law {
  background: var(--brand-red);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand-red), transparent 80%);
}

.services-dual-divider {
  display: flex;
  justify-content: center;
  align-self: stretch;
  padding-top: 2.5rem;
}

.services-dual-divider svg {
  width: 24px;
  height: 100%;
  min-height: 280px;
}

.services-group .service-item {
  height: auto;
}

@media (max-width: 991.98px) {
  .services-dual {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .services-dual-divider {
    display: none;
  }
}

/* Why Choose equal grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

@media (max-width: 991.98px) {
  .features-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}

.features-grid-item {
  display: flex;
  height: 100%;
}

.features-grid-item .features-item {
  width: 100%;
  height: 100%;
  min-height: 92px;
  opacity: 1;
}

/* Primary filled buttons AA contrast */
.btn-get-started,
.php-email-form button[type=submit],
.contact button[type=submit] {
  background: #0F766E;
  border-color: #0F766E;
  color: #ffffff;
}

.btn-get-started:hover,
.php-email-form button[type=submit]:hover,
.contact button[type=submit]:hover {
  background: #0D9488;
  border-color: #0D9488;
  color: #ffffff;
}

html[data-theme="dark"] .btn-get-started:not(.hero .btn-get-started),
html[data-theme="dark"] .php-email-form button[type=submit],
html[data-theme="dark"] .contact button[type=submit] {
  background: #2DD4BF;
  border-color: #2DD4BF;
  color: #042F2E;
}

/* About image stretch */
@media (min-width: 992px) {
  #about .row.align-items-start {
    align-items: stretch !important;
  }

  .about .about-img {
    position: sticky;
    top: 110px;
    min-height: 100%;
    height: auto;
    align-self: stretch;
  }

  .about .about-img img {
    position: absolute;
    inset: 0;
    height: 100%;
    min-height: 560px;
  }
}

/* Hero indicators stay clear of bottom controls */
.hero .carousel-indicators {
  bottom: 28px;
  margin-right: 180px;
}

@media (max-width: 767.98px) {
  .hero .carousel-indicators {
    margin-right: 140px;
    bottom: 20px;
  }
}
