/*
  FRONT-PAGE.ORGANIZED.CSS
  - Exact byte-for-byte copy of front-page.css at commit time
  - Intended as a safe working copy for re-ordering/organization.
  - DO NOT EDIT this file directly unless you want a snapshot preserved.
*/

/**
 * Company Darta - Front Page Styles (Cleaned)
 * Removed unused CSS, matched to actual PHP structure
 */
@font-face {
    font-family: 'Merriweather';
    src: url('../webfonts/merriweather-variablefont_opszwdthwght-webfont.woff2') format('woff2'),
         url('../webfonts/merriweather-variablefont_opszwdthwght-webfont.woff') format('woff');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Merriweather';
    src: url('../webfonts/merriweather-variablefont_opszwdthwght-webfont.woff2') format('woff2'),
         url('../webfonts/merriweather-variablefont_opszwdthwght-webfont.woff') format('woff');
    font-weight: 100 900;
    font-style: italic;
    font-display: swap;
}
/* ============================================ */
/* CSS CUSTOM PROPERTIES */
/* ============================================ */
:root {
  /* BRAND — authoritative red */
  --primary: #8A1E3F;          /* deep legal red */
  --primary-dark: #6E172F;     /* hover / emphasis */

  /* STRUCTURE */
  --secondary: #1C1F24;        /* near-black */
  --text: #1F2328;             /* readable body text */

  /* ACCENT — neutral, not colorful */
  --accent: #E4E6EA;           /* premium light gray */
  --accent-hover: #D3D6DC;

  /* NEUTRALS */
  --white: #FFFFFF;
  --light-gray: #F6F7F9;       /* section backgrounds */
  --medium-gray: #7A828E;      /* meta text */
  --dark-gray: #2A2F36;        /* footer / headers */

  /* TYPOGRAPHY */
  --font-primary: 'Merriweather', Georgia, serif;  
  --font-secondary: 'Inter', system-ui, sans-serif; 


  --font-base: 16px;
  --font-small: 14px;
  --line-height: 1.7;

  /* LAYOUT */
  --section-padding: 96px 0;
  --container-max: 1200px;

  /* INTERACTION */
    --transition: all 0.25s ease;
    /* Z-INDEX STACK - keep consistent */
    --z-overlay: 990;
    --z-primary-nav: 995;
    --z-site-header: 1000;
    --z-toggle: 1001;
    --z-top-info: 1002;
    --z-frontmost: 10000;
    /* height of the top info bar (used to pull hero overlay up on small screens) */
    --top-info-height: 32px;
    /* low-level stacking variables */
    --z-layer-neg: -1;
    --z-layer-1: 1;
    --z-layer-2: 2;
    --z-layer-5: 5;
    --z-layer-10: 10;
}

/* When WP admin bar is present, increase the top-info height variable */
body.admin-bar {
    --top-info-height: 46px;
}


/* ============================================ */
/* BASE RESET & TYPOGRAPHY */
/* ============================================ */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: var(--font-base);
    line-height: var(--line-height);
    color: var(--text);
}

.container {
    max-width: var(--container-max);
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

.img-fluid {
    width: 100%;
    height: auto;
    display: block;
}

.section-padding {
    padding: var(--section-padding);
}

.bg-light {
    background-color: var(--light-gray);
}

.bg-dark {
    background-color: var(--secondary);
    color: var(--white);
}

.text-center {
    text-align: center;
}

.text-white {
    color: var(--white);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 15px;
    color: var(--secondary);
}

.bg-dark h2,
.bg-dark h3,
.bg-dark h4 {
    color: var(--white);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.5rem; }

h1, h2, h3, .heading {
  font-family: var(--font-primary);
  font-weight: 700; /* Merriweather Bold */
}

p, .body-text, button {
  font-family: var(--font-secondary);
  font-weight: 400; /* Inter Regular */
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

/* ============================================ */
/* BUTTONS */
/* ============================================ */
.btn,
.btn-primary,
.btn-cta,
.btn-hero {
    display: inline-block;
    padding: 12px 30px;
    font-family: var(--font-primary);
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    border-radius: 4px;
    text-decoration: none;
}

.btn-primary,
.btn-cta {
    background-color: var(--primary);
    color: var(--white);
}

.btn-primary:hover,
.btn-cta:hover {
    background-color: var(--primary-dark);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-hero {
    background-color: var(--accent);
    color: var(--primary);
}

.btn-hero:hover {
    background-color: var(--primary);
    color: var(white);
}

.btn-outline-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    background: transparent;
    border: 2px solid var(--primary);
    border-radius: 6px;
    text-decoration: none;
    transition: var(--transition);
}

.btn-outline-primary:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-block {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 30px;
}

/* ============================================ */
/* SECTION COMMON STYLES */
/* ============================================ */
.section-header {
    margin-bottom: 50px;
    text-align: center;
}

.section-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary);
    margin-bottom: 12px;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 12px;
    line-height: 1.2;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--medium-gray);
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================ */
/* TOP INFO BAR */
/* ============================================ */
.top-info-bar {
    height: 32px;
    background-color: var(--primary-dark);
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: var(--z-top-info);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.top-info-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.top-info-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.contact-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 12px;
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-link:hover {
    color: var(--accent);
}

.contact-link i {
    font-size: 11px;
    color: var(--accent);
}

.contact-link span {
    font-weight: 400;
    letter-spacing: 0.2px;
}

.social-icons {
    display: flex;
    align-items: center;
    gap: 4px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    text-decoration: none;
    transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.social-link:hover {
    color: var(--white);
    background: var(--accent);
    transform: translateY(-1px);
}

.social-link i {
    font-size: 11px;
    line-height: 1;
}

.top-info-bar.hidden {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}

/* ============================================ */
/* HEADER & NAVIGATION */
/* ============================================ */
.site-header {
    position: fixed;
    top: 32px;
    left: 0;
    width: 100%;
    z-index: var(--z-site-header);
    background: transparent;
    transition: top 0.3s ease, background-color 0.3s ease, opacity 0.3s ease, box-shadow 0.3s ease;
}

.admin-bar .top-info-bar {
    top: 32px;
}

.admin-bar .site-header {
    top: 64px;
}

.admin-bar .site-header.header-scrolled {
    top: 32px !important;
}

.header-scrolled {
    top: 0 !important;
    background: var(--primary-dark) !important;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

/* Only apply heavy backdrop-filter if supported to avoid mobile jank */
@supports ((-webkit-backdrop-filter: blur(0)) or (backdrop-filter: blur(0))) {
    .header-scrolled {
        -webkit-backdrop-filter: blur(12px);
        backdrop-filter: blur(12px);
    }
}

.header-content {
    display: flex;
    justify-content: space-between; /* Changed from flex-start */
    align-items: center;
    padding: 0; /* removed padding so header height doesn't grow */
}

.site-logo {
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

.site-logo img,
.custom-logo,
.custom-logo-link img {
    max-height: 80px; /* restored to 80px per request */
    width: auto;
    height: auto;
    display: block;
    margin: 0;
    padding: 0;
    object-fit: contain;
}

/* Smaller logo on narrow screens */
/* smaller-logo handled in consolidated responsive section below */

.text-logo {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--white);
    text-decoration: none;
}

.text-logo:hover {
    color: var(--accent);
}

.primary-navigation {
    margin-left: auto; /* Push to the right */
    margin-right: 20px; /* Space before CTA button */
    flex-grow: 0; /* Changed from 1 - don't expand */
}

.nav-menu {
    display: flex;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
    justify-content: flex-end; /* Changed from flex-start */
}

.nav-menu li {
    margin: 0;
}

.nav-menu a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
    padding: 8px 14px;
    position: relative;
    display: inline-block;
    transition: color 0.2s ease;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 14px;
    right: 14px;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: width 0.3s ease;
}

.nav-menu a:hover,
.nav-menu .current-menu-item a {
    color: var(--accent);
}

.nav-menu a:hover::after,
.nav-menu .current-menu-item a::after {
    width: calc(100% - 28px);
}

/* Active/current menu item: white text and custom underline color */
.nav-menu .current-menu-item > a,
.nav-menu .current-menu-ancestor > a {
    color: var(--white);
}

.nav-menu .current-menu-item > a::after,
.nav-menu .current-menu-ancestor > a::after {
    background-color: var(--accent); /* change underline color */
    width: calc(100% - 28px);
}

.header-cta {
    margin-left: 0;
}

.header-cta .btn-cta {
    background-color: var(--accent);
    color: var(--primary);
    padding: 10px 20px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.header-cta .btn-cta:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

/* Mobile Menu Toggle - hidden by default, shown in media queries */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: var(--z-toggle);
}

.hamburger {
    display: block;
    width: 22px;
    height: 2px;
    background-color: var(--white);
    position: relative;
    transition: var(--transition);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: var(--white);
    transition: var(--transition);
    left: 0;
}

.hamburger::before { top: -7px; }
.hamburger::after { top: 7px; }

.mobile-menu-toggle.active .hamburger {
    background-color: transparent;
}

.mobile-menu-toggle.active .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}

.mobile-menu-toggle.active .hamburger::after {
    top: 0;
    transform: rotate(-45deg);
}

/* ========= Responsive for Header & Navigation ========= */
@media (max-width: 991px) {
    .header-content { justify-content: space-between; }
    .mobile-menu-toggle { display: block; position: relative; z-index: var(--z-toggle); order:3; }
    .header-cta { display: block; order: 2; margin-right: 15px; }
    .header-cta .btn-cta { padding: 8px 14px; font-size: 11px; }
    .primary-navigation { position: fixed; top:0; left:0; right:0; bottom:0; background: rgba(26,26,26,0.98); display:flex; align-items:center; justify-content:center; opacity:0; visibility:hidden; transition: opacity 0.3s ease, visibility 0.3s ease; z-index: var(--z-primary-nav); margin-left:0; margin-right:0; }
    .primary-navigation.mobile-active { opacity:1; visibility: visible; }
    .nav-menu { flex-direction: column; align-items: center; gap: 15px; -webkit-overflow-scrolling: touch; }
    .nav-menu a { font-size: 18px; padding: 12px 25px; }
    .nav-menu a::after { display: none; }
    .mobile-menu-overlay { position: fixed; top:0; left:0; right:0; bottom:0; background: rgba(0,0,0,0.5); opacity:0; visibility:hidden; z-index: var(--z-overlay); transition: opacity 0.3s ease, visibility 0.3s ease; }
    .mobile-menu-overlay.active { opacity:1; visibility:visible; }
    .col-lg-4 { flex: 0 0 50%; max-width: 50%; }
}

@media (max-width: 768px) {
    .mobile-menu-toggle { display: inline-block; margin-left: 12px; background: transparent; border: none; }
    .primary-navigation { position: fixed; top: 0; right: 0; height: 100vh; width: 300px; max-width: 85%; transform: translateX(100%); background: rgba(6,10,15,0.85); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); box-shadow: -8px 0 30px rgba(0,0,0,0.35); overflow-y: auto; z-index: calc(var(--z-site-header) + 1); -webkit-overflow-scrolling: touch; transition: transform 0.28s ease; padding: 20px; }
    .primary-navigation.mobile-active { transform: translateX(0); }
    .primary-navigation .nav-menu { display: block; gap: 8px; }
    .primary-navigation .nav-menu li { margin: 0 0 8px 0; }
    .primary-navigation .nav-menu a { display: block; padding: 14px 12px; color: var(--white); background: transparent; border-radius: 6px; font-size: 15px; text-transform: none; border-bottom: 1px solid rgba(255,255,255,0.04); }
    .primary-navigation .nav-menu a:hover { background: rgba(255,255,255,0.03); color: var(--white); }
}

@media (max-width: 480px) {
    .site-logo img { max-height: 44px; }
}


/* Accessibility */
.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--primary);
    color: var(--white);
    padding: 12px 20px;
    z-index: var(--z-frontmost);
    text-decoration: none;
    font-weight: 600;
}

.skip-link:focus {
    top: 0;
}

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

/* ============================================ */
/* HERO SECTION */
/* ============================================ */
.hero-section {
    margin-top: 0;
    position: relative;
    z-index: var(--z-layer-1);
}

.hero-carousel {
    position: relative;
    overflow: hidden;
}

.hero-slide {
    display: flex !important;
    align-items: center;
    justify-content: center;
    /* Use aspect-ratio to reserve space and avoid layout shift; allow max-height of viewport */
    height: auto;
    aspect-ratio: 16/9;
    min-height: 50vh;
    max-height: 100vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

/* Decorative responsive image placed for better srcset handling and faster responsive loads.
   Kept visually behind content; role="presentation" used in template. */
.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    z-index: var(--z-layer-neg);
    pointer-events: none;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient( 135deg,
    rgba(11, 28, 45, 0.88) 0%,   /* --primary */
    rgba(16, 42, 67, 0.75) 80%  /* --secondary */);
}

.hero-content {
    position: relative;
    z-index: var(--z-layer-2);
    text-align: center;
    color: var(--white);
    max-width: 800px;
    margin: 0 auto;
    padding: 120px 20px 80px;
    width: 100%;
}

.hero-slide {
    /* minimum tall enough to show headline on phones; allow natural growth via content/viewport */
    min-height: clamp(220px, 40vh, 600px);
    height: auto;
}
.hero-bg {
    /* keep absolute inset so background fully covers the slide */
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
/* Slick Carousel Styles */
.slick-dots {
    position: absolute;
    bottom: 40px;
    width: 100%;
    list-style: none;
    display: flex !important;
    justify-content: center;
    padding: 0;
    margin: 0;
    z-index: var(--z-layer-5);
}

.slick-dots li {
    margin: 0 6px;
}

.slick-dots li button {
    font-size: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    padding: 0;
    cursor: pointer;
}

.slick-dots li button:before {
    display: none;
}

.slick-dots li.slick-active button {
    background: var(--accent);
    width: 25px;
    border-radius: 10px;
}

.hero-carousel .slick-dots {
    bottom: 30px;
}

/* Hide dots for Testimonials and Partners carousels (keep hero dots visible) */
.testimonials-carousel .slick-dots,
.partners-carousel .slick-dots,
.partners-carousel.is-carousel .slick-dots {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.hero-carousel .slick-dots li button {
    background: rgba(255, 255, 255, 0.4);
}

.hero-carousel .slick-dots li.slick-active button {
    background: var(--accent);
}

/* ============================================ */
/* Responsive rules for HERO SECTION */
@media (max-width: 1024px) {
    .hero-section { margin-top: 0; }
    .hero-carousel, .hero-carousel .slick-list, .hero-carousel .slick-track { margin-top: 0; padding-top: 0; }
}

@media (max-width: 991px) {
    .hero-section { margin-top: 0; }
    .hero-slide { position: relative; }
    .hero-overlay { top: 0; height: 100%; }
    .hero-carousel, .hero-carousel .slick-list, .hero-carousel .slick-track { margin-top: 0; padding-top: 0; }
    .hero-slide { min-height: clamp(260px, 38vh, 520px); height: auto; }
    .hero-content { padding: 60px 16px 40px; max-width: 95%; }
}

@media (max-width: 768px) {
    .hero-slide { min-height: clamp(240px, 36vh, 480px); }
    .hero-content { padding: 60px 16px 40px; }
}

@media (max-width: 576px) {
    .hero-section { margin-top: 0; }
    .hero-slide { min-height: clamp(240px, 34vh, 460px); }
}

@media (max-width: 480px) {
    .hero-section { margin-top: 0; }
    .hero-slide { min-height: clamp(220px, 34vh, 420px); }
}

/* ABOUT SECTION */
/* ============================================ */
.about-section {
    background: var(--white);
    overflow: hidden;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-content .section-label {
    margin-bottom: 8px;
}

.about-content .section-title {
    text-align: left;
    margin-bottom: 20px;
}

.about-description {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--dark-gray);
    margin-bottom: 25px;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 30px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 50%;
    flex-shrink: 0;
}

.feature-icon i {
    font-size: 11px;
    color: var(--accent);
}

.feature-text {
    font-size: 14px;
    font-weight: 500;
    color: var(--dark-gray);
}

.about-stats {
    display: flex;
    gap: 40px;
    margin-bottom: 30px;
    padding: 25px 0;
    border-top: 1px solid rgba(0,0,0,0.08);
    border-bottom: 1px solid rgba(0,0,0,0.08);
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.stat-number::after {
    content: '+';
}

.stat-label {
    display: block;
    font-size: 13px;
    color: var(--medium-gray);
    margin-top: 5px;
}

.about-image-wrapper {
    position: relative;
}

.about-image {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}

.about-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

.about-image-accent {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 60%;
    height: 60%;
    background: var(--accent);
    opacity: 0.1;
    border-radius: 12px;
    z-index: var(--z-layer-neg);
}

/* ============================================ */
/* SERVICES SECTION */
/* ============================================ */
.services-section {
    background: var(--light-gray);
}

.service-card {
    background: var(--white);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 25px rgba(0,0,0,0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.service-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(139, 21, 56, 0.1);
    border-radius: 50%;
    margin: 0 auto 20px;
}

.service-icon i {
    font-size: 28px;
    color: var(--primary);
}

.service-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 12px;
}

.service-excerpt {
    font-size: 14px;
    line-height: 1.7;
    color: var(--medium-gray);
    margin-bottom: 15px;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease, gap 0.3s ease;
}

.service-link:hover {
    color: var(--accent);
    gap: 10px;
}

.service-link i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.service-link:hover i {
    transform: translateX(3px);
}

/* Responsive rules for SERVICES SECTION */
@media (max-width: 767px) {
    .services-section .services-grid,
    .services-section .services-list,
    .services-section .services,
    .services-section .service-items {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 18px !important;
    }
    .services-section .service-card {
        width: 100% !important;
        box-sizing: border-box;
        height: auto !important;
        padding-left: 12px !important;
        padding-right: 12px !important;
    }
    .services-section .row > [class*="col-"] {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

@media (max-width: 576px) {
    .services-section .services-grid,
    .services-section .services-list,
    .services-section .services,
    .services-section .service-items {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 18px !important;
    }
    .services-section .service-card {
        width: 100% !important;
        box-sizing: border-box;
    }
}

/* ============================================ */
/* ATTORNEYS SECTION */
/* ============================================ */
.attorneys-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
}

.attorneys-carousel {
    display: flex;
    gap: 25px;
    padding-bottom: 60px;
}

.attorneys-carousel .slick-dots {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}

.attorneys-carousel .slick-track {
    display: flex;
}

.attorneys-carousel .slick-slide {
    height: auto;
}

.attorneys-carousel .slick-slide > div {
    height: 100%;
}

.attorney-slide {
    padding: 0 10px;
    height: 100%;
}

.attorney-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 12px rgba(0,0,0,0.04);
    position: relative;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}


.attorney-image {
    position: relative;
    height: 280px;
    overflow: hidden;
}

.attorney-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.attorney-social {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 0;
    background: transparent; /* no dark overlay */
    opacity: 1;
    transition: none;
    z-index: 4;
}

/* card and hover defined above */

.attorney-image {
    position: relative;
    height: 280px;
    overflow: hidden;
    z-index: 1;
}

.attorney-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease, filter 0.35s ease;
}

.attorney-card:hover .attorney-image img {
    transform: scale(1.03);
    filter: brightness(1.03);
}
.attorney-card:hover .attorney-image::after {
    opacity: 1;
}
.attorney-image::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 4px;
    background: var(--primary);
    opacity: 0;
    transition: opacity 0.25s ease;
}

/* Responsive rules for ATTORNEYS SECTION */
@media (max-width: 768px) {
    .attorney-image { height: 240px; }
    .attorneys-carousel .slick-prev,
    .attorneys-carousel .slick-next { display: block; }
}



.attorney-social a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    color: var(--secondary);
    border-radius: 50%;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.attorney-social a:hover {
    background: var(--accent);
    color: var(--white);
}

.attorney-info {
    padding: 20px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.attorney-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 5px;
}

/* Make linked names inherit card text color and keep a clean underline on hover */
.attorney-name a {
    color: inherit;
    text-decoration: none;
}
.attorney-name a:hover {
    color:#8A1E3F;
}

.team-name a {
    color: inherit;
    text-decoration: none;
}
.team-name a:hover {
    text-decoration: underline;
}

.attorney-profession {
    font-size: 13px;
    font-weight: 500;
    color: var(--secondary);
    margin-bottom: 10px;
}

.attorney-excerpt {
    font-size: 13px;
    line-height: 1.6;
    color: var(--medium-gray);
    margin: 0;
    flex-grow: 1;
}

.attorneys-carousel .slick-prev,
.attorneys-carousel .slick-next {
    display: none;
}

/* ============================================ */
/* TESTIMONIALS SECTION */
/* ============================================ */
.testimonials-section {
    background: var(--secondary);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.testimonials-section::before {
    content: '"';
    position: absolute;
    top: 50px;
    left: 50px;
    font-size: 300px;
    font-family: Georgia, serif;
    color: rgba(255,255,255,0.03);
    line-height: 1;
    pointer-events: none;
}

.testimonials-section .section-label {
    color: var(--accent);
}

.testimonials-section .section-title {
    color: var(--white);
}

.testimonials-section .section-subtitle {
    color: rgba(255,255,255,0.7);
}

.testimonials-wrapper {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 60px 70px;
}

.testimonials-carousel {
    overflow: hidden;
    min-height: 300px; /* Layout stability placeholder */
    display: flex;
}

.testimonials-carousel .slick-dots {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
}

.testimonials-carousel .slick-dots li button {
    background: rgba(255, 255, 255, 0.3);
}

.testimonials-carousel .slick-dots li.slick-active button {
    background: var(--accent);
}

.testimonial-slide {
    padding: 0 15px;
}

.testimonial-card {
    text-align: center;
    padding: 40px 30px;
    margin: 0;
    border: none;
}

.testimonial-rating {
    margin-bottom: 20px;
}

.testimonial-rating i {
    color: var(--accent);
    font-size: 16px;
    margin: 0 2px;
}

.testimonial-text {
    font-size: 1.2rem;
    line-height: 1.8;
    font-style: italic;
    color: rgba(255,255,255,0.9);
    margin-bottom: 30px;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.author-name {
    font-size: 1rem;
    font-weight: 700;
    font-style: normal;
    color: var(--white);
}

.author-company {
    font-size: 13px;
    color: var(--accent);
}

.testimonial-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    color: var(--white);
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
    z-index: var(--z-layer-10);
}

.testimonial-nav:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--secondary);
}

.testimonial-prev {
    left: 0;
}

.testimonial-next {
    right: 0;
}

/* Responsive rules for TESTIMONIALS SECTION */
@media (max-width: 768px) {
    /* testimonials responsive padding moved to TESTIMONIALS SECTION */
}

/* ============================================ */
/* PARTNERS SECTION */
/* ============================================ */
.partners-section {
    background: var(--light-gray);
}

.partners-carousel-wrapper {
    position: relative;
    padding-bottom: 20px;
    min-height: 120px; /* Layout stability placeholder */
}

.partners-carousel.is-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

/* Responsive rules for PARTNERS SECTION */
@media (max-width: 1024px) {
    .partners-carousel.is-grid .partner-slide { flex: 0 0 calc(25% - 22px); max-width: calc(25% - 22px); }
    .partner-logo, .partner-item img { max-width: 150px; max-height: 80px; }
}

@media (min-width: 481px) and (max-width: 768px) {
    .partners-carousel.is-grid .partner-slide { flex: 0 0 calc(33.333% - 14px); max-width: calc(33.333% - 14px); }
    .partner-logo, .partner-item img { max-width: 140px; max-height: 70px; }
}

@media (max-width: 576px) {
    .partners-carousel.is-grid { gap: 18px; display: flex; flex-wrap: wrap; justify-content: center; }
    .partners-carousel.is-grid .partner-slide { display: block; box-sizing: border-box; flex: 0 0 calc(50% - 18px); max-width: calc(50% - 18px); }
    .partner-logo, .partner-item img { max-width: 140px; max-height: 70px; }
}

.partners-carousel.is-grid .partner-slide {
    flex: 0 0 calc(20% - 24px);
    max-width: 180px;
}

.partners-carousel.is-carousel .partner-slide {
    padding: 0 15px;
}

.partner-slide {
    padding: 0 10px;
}

.partner-item {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
    padding: 10px;
}

.partner-item a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    transition: transform 0.3s ease;
}

.partner-item a:hover {
    transform: scale(1.05);
}

.partner-logo,
.partner-item img {
    max-width: 200px;
    max-height: 90px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.partner-item:hover .partner-logo,
.partner-item:hover img {
    opacity: 1;
}

.partner-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--medium-gray);
    text-align: center;
}

.partners-carousel-wrapper .slick-dots {
    position: relative;
    bottom: -10px;
    margin-top: 20px;
}

/* Find RECENT POSTS SECTION and replace with: */

/* ============================================ */
/* RECENT POSTS SECTION - Compact List Layout */
/* ============================================ */
.posts-section {
    background: var(--white);
}

.posts-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.post-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    background: var(--light-gray);
    border-radius: 8px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.post-item:hover {
    background: #eef1f5;
    transform: translateX(5px);
}

/* Featured post (first one) spans full width */
.post-item.post-featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 25px;
    padding: 20px;
    background: var(--white);
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.post-item.post-featured:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.post-item-thumbnail {
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

.post-item-thumbnail img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.post-item.post-featured:hover .post-item-thumbnail img {
    transform: scale(1.05);
}

.post-item-content {
    flex: 1;
    min-width: 0;
}

.post-item-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 12px;
}

.post-item-date {
    color: var(--medium-gray);
}

.post-item-category,
.post-item-category a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    font-size: 11px;
    text-transform: uppercase;
}

.post-item-title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
}

.post-item.post-featured .post-item-title {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

/* Responsive rules for RECENT POSTS SECTION */
@media (max-width: 768px) {
    /* posts-list responsive behavior moved to RECENT POSTS SECTION */
    .post-item.post-featured { grid-template-columns: 1fr; }
    .post-item-thumbnail img { height: 200px; }
}

.post-item-title a {
    color: var(--secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.post-item-title a:hover {
    color: var(--primary);
}

.post-item-excerpt {
    font-size: 14px;
    color: var(--medium-gray);
    line-height: 1.6;
    margin: 0;
}

/* posts-list/post-item responsive handled in consolidated responsive section below */
/* ============================================ */
/* CONTACT SECTION */
/* ============================================ */
.contact-section {
    position: relative;
    background: var(--secondary);
    overflow: hidden;
    padding: 80px 0;
    margin-bottom: 0;
}

.contact-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    filter: blur(3px);
}

.contact-section .container {
    position: relative;
    z-index: var(--z-layer-1);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.contact-form-wrapper {
    background: var(--white);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.form-header {
    margin-bottom: 30px;
}

.form-header .section-title {
    font-size: 1.75rem;
    margin-bottom: 10px;
}

.form-header p {
    color: var(--medium-gray);
    font-size: 14px;
}

.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.contact-form .form-group {
    position: relative;
    margin-bottom: 25px;
}

.contact-form .form-control {
    width: 100%;
    padding: 16px;
    font-size: 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    background: var(--white);
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.contact-form .form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(139, 21, 56, 0.1);
}

.contact-form label {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    color: var(--medium-gray);
    pointer-events: none;
    transition: top 0.3s ease, transform 0.3s ease, color 0.3s ease;
    background: var(--white);
    padding: 0 5px;
}

.contact-form textarea ~ label {
    top: 20px;
    transform: none;
}

.contact-form .form-control:focus ~ label,
.contact-form .form-control:not(:placeholder-shown) ~ label {
    top: 0;
    transform: translateY(-50%);
    font-size: 12px;
    color: var(--primary);
}

.contact-form select.form-control {
    appearance: none;
    cursor: pointer;
}

.contact-info-wrapper {
    color: var(--white);
}

.contact-info-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.info-card {
    display: flex;
    gap: 15px;
    padding: 20px;
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.info-card:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-3px);
}

.info-icon {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent);
    border-radius: 10px;
    flex-shrink: 0;
}

.info-icon i {
    font-size: 18px;
    color: var(--secondary);
}

.info-content h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--white);
}

.info-content p,
.info-content a {
    font-size: 13px;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    line-height: 1.5;
}

.info-content a:hover {
    color: var(--accent);
}

.contact-map {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.contact-map iframe {
    display: block;
}

/* Responsive rules for CONTACT SECTION */
@media (max-width: 768px) {
    /* contact responsive rules moved to CONTACT SECTION */
}

/* ============================================ */
/* FOOTER STYLES */
/* ============================================ */
.site-footer {
    background-color: var(--secondary);
    color: rgba(255, 255, 255, 0.8);
    padding-top: 60px;
    margin-top: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-widget {
    padding: 0;
}

.widget-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 12px;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--accent);
}
.widget-title a{
    color:var(--white);
    text-decoration: none;
}
.footer-about p {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.footer-social a {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    font-size: 14px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.footer-social a:hover {
    /* Only change icon color on hover; no background or movement */
    color: var(--white);
}

.footer-links ul,
.footer-services ul,
.footer-menu,
.footer-links .menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links ul li,
.footer-links .menu li {
    margin-bottom: 10px;
}

.footer-links ul a,
.footer-links .menu a,
.footer-services ul a,
.footer-services .menu a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links ul a:hover,
.footer-links .menu a:hover,
.footer-services ul a:hover,
.footer-services .menu a:hover {
    /* Only change color to full white; do not change padding or cause movement */
    color: var(--white);
}

/* Reduce font-size for the Our Practices footer list by 5px (base 14px -> 9px) */
.footer-widget.footer-links .footer-menu a {
    font-size: 14px;
}

.footer-contact .contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
}

.footer-contact .contact-item i {
    color: var(--accent);
    font-size: 16px;
    margin-top: 3px;
    width: 20px;
}

.footer-contact .contact-item span,
.footer-contact .contact-item a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    line-height: 1.5;
}

.footer-contact .contact-item a:hover {
    color: var(--accent);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 0;
}

/* Responsive rules for FOOTER */
@media (max-width: 1024px) {
    /* footer responsive widgets moved to FOOTER SECTION */
}

@media (max-width: 480px) {
    /* footer responsive widgets moved to FOOTER SECTION */
    .footer-bottom { flex-direction: column; gap: 15px; text-align: center; }
    .footer-legal ul { justify-content: center; }
}

.footer-copyright p {
    margin: 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

.footer-legal ul {
    display: flex;
    gap: 25px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: var(--accent);
}

/* ============================================ */
/* RESPONSIVE STYLES (Consolidated)             */
/* Order: large -> small for correct cascade   */
/* ============================================ */

/* Medium tablets / small laptops */
@media (max-width: 1024px) {
    .about-grid { gap: 40px; }
    .about-stats { gap: 25px; }
    .stat-number { font-size: 2rem; }
    /* footer widget responsive sizing moved to FOOTER SECTION */
    /* partners grid sizing moved to PARTNERS SECTION */
}

/* Mobile navigation and header behaviors */
@media (max-width: 991px) {
    .header-content { justify-content: space-between; }
    .mobile-menu-toggle { display: block; position: relative; z-index: var(--z-toggle); order:3; }
    .header-cta { display: block; order: 2; margin-right: 15px; }
    .header-cta .btn-cta { padding: 8px 14px; font-size: 11px; }
    .primary-navigation { position: fixed; top:0; left:0; right:0; bottom:0; background: rgba(26,26,26,0.98); display:flex; align-items:center; justify-content:center; opacity:0; visibility:hidden; transition: opacity 0.3s ease, visibility 0.3s ease; z-index: var(--z-primary-nav); margin-left:0; margin-right:0; }
    .primary-navigation.mobile-active { opacity:1; visibility: visible; }
    .nav-menu { flex-direction: column; align-items: center; gap: 15px; -webkit-overflow-scrolling: touch; }
    .nav-menu a { font-size: 18px; padding: 12px 25px; }
    .nav-menu a::after { display: none; }
    .mobile-menu-overlay { position: fixed; top:0; left:0; right:0; bottom:0; background: rgba(0,0,0,0.5); opacity:0; visibility:hidden; z-index: var(--z-overlay); transition: opacity 0.3s ease, visibility 0.3s ease; }
    .mobile-menu-overlay.active { opacity:1; visibility:visible; }
    .col-lg-4 { flex: 0 0 50%; max-width: 50%; }
}

/* Admin bar tweaks */
@media (max-width: 782px) {
    #wpadminbar { position: fixed !important; top: 0 !important; }
    html.admin-bar { margin-top: 0 !important; }
    body.admin-bar { padding-top: 46px; }
    .admin-bar .top-info-bar { top: 46px; }
    .admin-bar .site-header { top: 74px; }
    .admin-bar .site-header.header-scrolled { top: 46px !important; }
}

/* Responsive adjustments split per breakpoint so device-specific changes cascade correctly */

@media (max-width: 1024px) {
    /* Small desktops / large tablets: gentle adjustments */
    /* Avoid pulling hero under the top bar on medium screens */
    .hero-section { margin-top: 0; }
    .hero-carousel, .hero-carousel .slick-list, .hero-carousel .slick-track { margin-top: 0; padding-top: 0; }
    .site-header { z-index: calc(var(--z-site-header) + 1); }
}

@media (max-width: 991px) {
    /* Narrow desktops / tablets: keep nav accessible and roomy */
    .header-content { justify-content: space-between; }
    .mobile-menu-toggle { display: block; position: relative; z-index: var(--z-toggle); order:3; }
    .header-cta { display: block; order: 2; margin-right: 15px; }
    .header-cta .btn-cta { padding: 8px 14px; font-size: 11px; }
    .primary-navigation { position: fixed; top:0; left:0; right:0; bottom:0; background: rgba(26,26,26,0.98); display:flex; align-items:center; justify-content:center; opacity:0; visibility:hidden; transition: opacity 0.3s ease, visibility 0.3s ease; z-index: var(--z-primary-nav); margin-left:0; margin-right:0; }
    .primary-navigation.mobile-active { opacity:1; visibility: visible; }
    .nav-menu { flex-direction: column; align-items: center; gap: 15px; -webkit-overflow-scrolling: touch; }
    .nav-menu a { font-size: 18px; padding: 12px 25px; }
    .nav-menu a::after { display: none; }
    .mobile-menu-overlay { position: fixed; top:0; left:0; right:0; bottom:0; background: rgba(0,0,0,0.5); opacity:0; visibility:hidden; z-index: var(--z-overlay); transition: opacity 0.3s ease, visibility 0.3s ease; }
    .mobile-menu-overlay.active { opacity:1; visibility:visible; }
    .col-lg-4 { flex: 0 0 50%; max-width: 50%; }
}

@media (max-width: 782px) {
    /* Admin bar / very narrow tablet adjustments handled elsewhere but keep values safe */
    #wpadminbar { position: fixed !important; top: 0 !important; }
    html.admin-bar { margin-top: 0 !important; }
    body.admin-bar { padding-top: 46px; }
    .admin-bar .top-info-bar { top: 46px; }
    .admin-bar .site-header { top: 74px; }
    .admin-bar .site-header.header-scrolled { top: 46px !important; }
}

@media (max-width: 768px) {
    /* Mobile navigation: slide-in panel for narrow screens */
    .mobile-menu-toggle { display: inline-block; margin-left: 12px; background: transparent; border: none; }

    .primary-navigation { position: fixed; top: 0; right: 0; height: 100vh; width: 300px; max-width: 85%; transform: translateX(100%); background: rgba(6,10,15,0.85); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); box-shadow: -8px 0 30px rgba(0,0,0,0.35); overflow-y: auto; z-index: calc(var(--z-site-header) + 1); -webkit-overflow-scrolling: touch; transition: transform 0.28s ease; padding: 20px; }
    .primary-navigation.mobile-active { transform: translateX(0); }
    .primary-navigation .nav-menu { display: block; gap: 8px; }
    .primary-navigation .nav-menu li { margin: 0 0 8px 0; }
    .primary-navigation .nav-menu a { display: block; padding: 14px 12px; color: var(--white); background: transparent; border-radius: 6px; font-size: 15px; text-transform: none; border-bottom: 1px solid rgba(255,255,255,0.04); }
    .primary-navigation .nav-menu a:hover { background: rgba(255,255,255,0.03); color: var(--white); }
    .primary-navigation .nav-menu a .sub-menu { color: rgba(255,255,255,0.85); }

    .mobile-menu-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.45); opacity: 0; visibility: hidden; transition: opacity 0.25s ease, visibility 0.25s ease; z-index: calc(var(--z-site-header) - 1); }
    .mobile-menu-overlay.active { opacity: 1; visibility: visible; }

    /* Keep header compact on mobile: sit below the top-info bar */
    .site-header { top: var(--top-info-height); background: transparent; box-shadow: none; }
    .site-header.header-scrolled { background: rgba(255,255,255,0.97); box-shadow: 0 2px 12px rgba(0,0,0,0.06); }
    /* Remove tiny top-bar border on small screens to avoid a 1px white line */
    .top-info-bar { border-bottom: none; }
    /* Ensure header draws above hero content */
    .site-header { z-index: calc(var(--z-site-header) + 2); }

    /* Ensure hero sits under the top-info bar without pulling the overlay to the very top */
    /* Don't pull hero under top bar on narrow screens */
    .hero-section { margin-top: 0; }
    .hero-slide { position: relative; }
    .hero-overlay { top: 0; height: 100%; }

    /* Force slick wrappers to have no extra top spacing (prevents a gap between top bar and slides) */
    .hero-carousel, .hero-carousel .slick-list, .hero-carousel .slick-track { margin-top: 0; padding-top: 0; }
    .header-content { gap: 12px; }
    /* Keep CTA visible on phones even when nav is collapsed */
    .header-cta { display: block; order: 2; margin-right: 12px; z-index: calc(var(--z-site-header) + 5); }

    /* Reduce hero height to avoid excessive scrolling on phones */
    .hero-slide { min-height: 60vh; height: 60vh; }
    .hero-content { padding: 60px 16px 40px; max-width: 95%; }

    /* Improve touch targets */
    .btn, .btn-cta, .btn-primary { padding: 12px 18px; }

    /* Ensure images scale and don't overflow */
    .about-image-accent { display: none; }
    .site-logo img, .custom-logo, .custom-logo-link img { max-height: 48px; }
    /* posts-list responsive behavior moved to RECENT POSTS SECTION */
    .post-item.post-featured { grid-template-columns: 1fr; }
    .post-item-thumbnail img { height: 200px; }
    .post-item { padding: 12px; }
    .post-item-title { font-size: 0.95rem; }
    .post-item.post-featured .post-item-title { font-size: 1.1rem; }

    /* Contact section - tablet / mobile adjustments (stack and scale) */
    /* contact responsive rules moved to CONTACT SECTION */
    .contact-form-wrapper { padding: 28px 18px; box-shadow: 0 12px 40px rgba(0,0,0,0.12); }
    .contact-map { height: 240px; overflow: hidden; border-radius: 12px; }
    .contact-map iframe { width: 100%; height: 100%; display: block; }
    .contact-form .form-row { grid-template-columns: 1fr; gap: 12px; }
    .contact-form .form-control { padding: 12px; font-size: 15px; }
    .contact-info-cards { grid-template-columns: 1fr; gap: 12px; }
    .contact-info .contact-link span { display: none; }

    .section-padding { padding: 60px 0; }
    .section-title { font-size: 1.75rem; }
    .section-header { margin-bottom: 35px; }

    .hero-slide { min-height: 500px; }
    .hero-content { padding: 100px 20px 60px; }

    .top-info-bar { height: auto; min-height: 28px; padding: 5px 0; }
    .top-info-content { flex-wrap: wrap; justify-content: center; gap: 8px; }
    .contact-info { gap: 12px; }
    .contact-link span { display: none; }
    .contact-link i { font-size: 14px; }
    .social-icons { gap: 3px; }
    .social-link { width: 24px; height: 24px; }

    .about-grid { grid-template-columns: 1fr; gap: 30px; }
    .about-image-wrapper { order: -1; }
    .about-features { grid-template-columns: 1fr; }
    .about-stats { justify-content: space-around; }
    .about-image-accent { display: none; }

    /* attorney responsive height moved to ATTORNEYS SECTION */
    .testimonials-wrapper { padding: 0 20px 70px; }
    .testimonial-nav { width: 40px; height: 40px; font-size: 14px; }
    .testimonial-prev { left: -5px; }
    .testimonial-next { right: -5px; }
    .testimonial-text { font-size: 1rem; }
}

@media (max-width: 576px) {
    /* Small phones: increase negative offset a touch to ensure no 1px gaps */
    /* Prevent overlap on very small phones */
    .hero-section { margin-top: 0; }
    .hero-slide { min-height: 55vh; }
    /* Make About container fit the image (avoid squeezing / right-gap) */
    .about-image-wrapper { display: flex; justify-content: center; align-items: center; }
    .about-image { display: inline-block; width: auto; max-width: 100%; margin: 0; }
    .about-image img { width: auto; max-width: 100%; height: auto; object-fit: contain; }
}

@media (max-width: 480px) {
    /* Very small phones: fine-tune spacing and touch targets */
    /* Further small-phone tweak: keep hero below top bar */
    .hero-section { margin-top: 0; }
    .hero-slide { min-height: 50vh; }
    .site-logo img { max-height: 44px; }
    .post-thumbnail { height: 180px; }
    .contact-grid { grid-template-columns: 1fr; gap: 30px; }
    .contact-form-wrapper { padding: 30px 20px; }
    .contact-form .form-row { grid-template-columns: 1fr; }
    .contact-info-cards { grid-template-columns: 1fr; }

    /* Further ensure About container fits image cleanly on very small phones */
    .about-image-wrapper { display: flex; justify-content: center; align-items: center; }
    .about-image { display: inline-block; width: auto; max-width: 100%; margin: 0; }
    .about-image img { width: auto; max-width: 100%; height: auto; object-fit: contain; }

    .footer-widgets { grid-template-columns: 1fr; gap: 30px; }
    .footer-bottom { flex-direction: column; gap: 15px; text-align: center; }
    .footer-legal ul { justify-content: center; }

    /* Partners grid fallback sizing (when JS carousel isn't active) */
    .partners-carousel.is-grid { gap: 18px; display: flex; flex-wrap: wrap; justify-content: center; }
    /* Mobile: show two items per row */
    /* partners grid fallback sizing moved to PARTNERS SECTION */
    .partner-logo, .partner-item img { max-width: 140px; max-height: 70px; }
}

/* Narrow tablets / larger phones */
@media (max-width: 767px) {
    .col-lg-4, .col-md-6 { flex: 0 0 100%; max-width: 100%; }
}
/* Ensure services collapse to a single column on narrow tablets and larger phones */
/* Moved to SERVICES SECTION for locality */

/* Small phones */
@media (max-width: 576px) {
    .section-padding { padding: 50px 0; }
    .section-title { font-size: 1.5rem; }
    .about-stats { flex-direction: column; gap: 20px; align-items: center; }
    .stat-number { font-size: 2.5rem; }
    .testimonial-card { padding: 20px 10px; }
    .contact-form-wrapper { padding: 25px 15px; }
      .services-section .row > [class*="col-"] {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .services-section .service-card {
        padding: 14px 12px !important;
        height: auto !important;
    }
}

/* Very small phones */
@media (max-width: 480px) {
    .top-info-bar { padding: 4px 0; }
    .contact-info { gap: 8px; }
    .social-link { width: 22px; height: 22px; }
    .social-link i { font-size: 10px; }
    /* partners grid fallback sizing moved to PARTNERS SECTION */
    .partner-logo, .partner-item img { max-width: 120px; max-height: 60px; }
}

/* Small tablets / larger phones: show 3 partners per row when grid fallback active */
@media (min-width: 481px) and (max-width: 768px) {
    /* partners grid sizing moved to PARTNERS SECTION */
    .partner-logo, .partner-item img { max-width: 140px; max-height: 70px; }
}

/* Tablets / small desktops: show 4 partners per row when grid fallback active */
@media (min-width: 769px) and (max-width: 1024px) {
    /* partners grid sizing moved to PARTNERS SECTION */
    .partner-logo, .partner-item img { max-width: 150px; max-height: 80px; }
}

/* ============================================ */
/* UTILITY CLASSES */
/* ============================================ */
.mt-4 {
    margin-top: 1.5rem;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col-lg-4 {
    flex: 0 0 33.333%;
    max-width: 33.333%;
    padding: 0 15px;
}

.col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 0 15px;
}



/* ============================================ */
/* FLUID HERO SIZING (applies across breakpoints) */
/* Use clamp() so hero text and CTA scale proportionally
   between a sensible minimum on small phones and the
   current desktop maximum. This keeps visual hierarchy
   but makes L->S phones much smaller in proportion. */
.hero-content .hero-title {
    font-size: clamp(1rem, 4.5vw, 3rem);
    color: var(--white);
}

.hero-content .hero-subtitle {
    font-size: clamp(0.85rem, 2.2vw, 1.1rem);
    color: rgba(255,255,255,0.9);
}

.hero-content .btn-hero,
.btn-hero {
    font-size: clamp(0.85rem, 1.6vw, 1.1rem);
    padding: clamp(8px, 1.6vw, 15px) clamp(14px, 3.5vw, 40px);
}

/* Slightly reduce hero-content padding fluidly on smaller viewports */
.hero-content {
    padding: clamp(40px, 10vw, 120px) 20px clamp(24px, 6vw, 80px);
}

/* ============================================ */
/* FLUID SITE SIZING - conservative, non-destructive */
/* Apply clamp() to major typographic tokens and a few
   structural sizes so the site scales smoothly without
   removing breakpoint-driven layout changes. */

/* Base text scales slightly between small and desktop */
body {
    font-size: clamp(14px, 0.9vw + 0.6rem, 16px);
}

/* Headings scale proportionally with sensible mins and maxes */
h1 { font-size: clamp(1.6rem, 4.2vw, 2.5rem); }
h2 { font-size: clamp(1.25rem, 3.2vw, 2.2rem); }
h3 { font-size: clamp(1rem, 2.2vw, 1.5rem); }

/* Buttons: keep touch targets, scale font & padding */
.btn,
.btn-primary,
.btn-cta {
    font-size: clamp(0.85rem, 1.1vw, 1rem);
    padding: clamp(8px, 1.2vw, 12px) clamp(12px, 2.6vw, 30px);
}

/* Service / card titles and post titles */
.service-title { font-size: clamp(1rem, 1.6vw, 1.2rem); }
.attorney-name { font-size: clamp(1rem, 1.3vw, 1.1rem); }
.post-item-title { font-size: clamp(0.95rem, 1.2vw, 1rem); }
.post-item.post-featured .post-item-title { font-size: clamp(1.05rem, 1.6vw, 1.25rem); }

/* Stat numbers scale but keep visual weight */
.stat-number { font-size: clamp(1.6rem, 4.5vw, 2.5rem); }

/* Images with fixed heights become fluid within bounds */
.attorney-image { height: clamp(180px, 28vh, 280px); }
.post-item-thumbnail img { height: clamp(120px, 22vh, 180px); }

/* Keep partner logos responsive without forcing huge sizes */
.partner-logo, .partner-item img { max-width: clamp(120px, 18vw, 200px); max-height: clamp(60px, 8vh, 90px); }

/* Minimal card padding scaling (prevents cramped layouts on tiny phones) */
.service-card, .attorney-card, .post-item { padding: clamp(10px, 1.8vw, 30px); }

/* ============================================ */
/* HERO IMAGE - fluid sizing so background/img scales nicely */
/* Keep conservative bounds to avoid layout shifts while allowing
   images to be proportionally smaller on phones and larger on desktop. */

:root {
    --z-toggle: 1001;
}


    
