/*
Theme Name: Red Door Harm Reduction
Theme URI: https://reddoorrecovery.com
Description: Standalone theme for the Harm Reduction subdomain - a separate site focused on harm reduction resources and agencies.
Version: 2.0.0
Author: Red Door Recovery Network
Author URI: https://reddoorrecovery.com
Text Domain: reddoor-hr
*/

/* ===========================
   CSS VARIABLES
   =========================== */
:root {
    --hr-primary: #e91e63;
    --hr-primary-dark: #c2185b;
    --hr-primary-light: #fce4ec;
    --hr-charcoal: #1F2933;
    --hr-success: #22c55e;
    --hr-success-light: #f0fdf4;
    --hr-danger: #dc2626;
    --hr-white: #ffffff;
    --hr-gray-50: #f9fafb;
    --hr-gray-100: #f3f4f6;
    --hr-gray-200: #e5e7eb;
    --hr-gray-300: #d1d5db;
    --hr-gray-500: #6b7280;
    --hr-gray-600: #4b5563;
    --hr-gray-700: #374151;
    --hr-shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --hr-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    --hr-shadow-lg: 0 10px 25px -3px rgba(0,0,0,0.1);
    --hr-shadow-xl: 0 20px 40px -5px rgba(0,0,0,0.15);
    --hr-radius-sm: 8px;
    --hr-radius: 12px;
    --hr-radius-lg: 16px;
    --hr-radius-xl: 20px;
    --hr-radius-full: 50px;
    --hr-transition: all 0.3s ease;
}

/* ===========================
   RESET & BASE STYLES
   =========================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--hr-gray-50);
    color: var(--hr-charcoal);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: var(--hr-primary);
    text-decoration: none;
    transition: var(--hr-transition);
}

a:hover {
    color: var(--hr-primary-dark);
}

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

button {
    font-family: inherit;
    cursor: pointer;
}

/* ===========================
   CONTAINER
   =========================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

@media (min-width: 640px) {
    .container {
        padding: 0 24px;
    }
}

/* ===========================
   CRISIS BANNER
   =========================== */
.crisis-banner {
    background: linear-gradient(90deg, var(--hr-danger) 0%, #b91c1c 100%);
    color: var(--hr-white);
    padding: 10px 16px;
    text-align: center;
    font-size: 0.875rem;
    line-height: 1.4;
}

.crisis-banner strong {
    display: block;
    margin-bottom: 4px;
}

.crisis-banner a {
    color: var(--hr-white);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}

@media (min-width: 640px) {
    .crisis-banner {
        padding: 12px 20px;
        font-size: 0.9375rem;
    }

    .crisis-banner strong {
        display: inline;
        margin-right: 8px;
        margin-bottom: 0;
    }
}

/* ===========================
   HEADER
   =========================== */
.site-header {
    background: var(--hr-charcoal);
    padding: 10px 12px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--hr-shadow-lg);
}

@media (min-width: 480px) {
    .site-header {
        padding: 12px 16px;
    }
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

@media (min-width: 480px) {
    .header-container {
        gap: 16px;
    }
}

.site-logo {
    flex: 1;
    min-width: 0; /* Allow shrinking below content size */
}

.site-logo a {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.site-logo h1 {
    color: var(--hr-white);
    font-size: clamp(0.75rem, 3.5vw, 1rem);
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}

.site-logo h1 span {
    color: var(--hr-primary);
}

/* Very small screens - stack logo text */
@media (max-width: 359px) {
    .site-logo h1 {
        font-size: 0.6875rem;
    }
}

@media (min-width: 480px) {
    .site-logo h1 {
        font-size: 1rem;
    }
}

@media (min-width: 640px) {
    .site-logo h1 {
        font-size: 1.25rem;
    }
}

/* Desktop Navigation */
.header-nav {
    display: none;
}

.header-nav ul {
    list-style: none;
    display: flex;
    gap: 24px;
}

.header-nav a {
    color: rgba(255,255,255,0.85);
    font-weight: 500;
    font-size: 0.9375rem;
    padding: 8px 0;
    position: relative;
}

.header-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--hr-primary);
    transition: width 0.3s;
}

.header-nav a:hover {
    color: var(--hr-white);
}

.header-nav a:hover::after {
    width: 100%;
}

/* Header CTA */
.header-cta {
    display: none;
}

.header-cta .btn-primary {
    background: var(--hr-primary);
    color: var(--hr-white);
    padding: 10px 20px;
    border-radius: var(--hr-radius-full);
    font-weight: 600;
    font-size: 0.875rem;
    border: none;
    transition: var(--hr-transition);
}

.header-cta .btn-primary:hover {
    background: var(--hr-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(233,30,99,0.4);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    min-width: 40px; /* Prevent shrinking */
    background: rgba(255,255,255,0.1);
    border: none;
    border-radius: var(--hr-radius-sm);
    color: var(--hr-white);
    font-size: 1.25rem;
    transition: var(--hr-transition);
}

.mobile-menu-toggle:hover {
    background: rgba(255,255,255,0.2);
}

@media (min-width: 480px) {
    .mobile-menu-toggle {
        width: 44px;
        height: 44px;
        min-width: 44px;
        font-size: 1.5rem;
    }
}

/* Mobile Navigation Menu */
.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--hr-charcoal);
    z-index: 9999;
    padding: 20px;
    overflow-y: auto;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-nav.active {
    display: block;
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.mobile-nav-header h2 {
    color: var(--hr-white);
    font-size: 1.25rem;
}

.mobile-nav-header h2 span {
    color: var(--hr-primary);
}

.mobile-nav-close {
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.1);
    border: none;
    border-radius: var(--hr-radius-sm);
    color: var(--hr-white);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-nav ul {
    list-style: none;
}

.mobile-nav li {
    margin-bottom: 8px;
}

.mobile-nav a {
    display: block;
    color: var(--hr-white);
    font-size: 1.125rem;
    font-weight: 500;
    padding: 16px 20px;
    background: rgba(255,255,255,0.05);
    border-radius: var(--hr-radius);
    transition: var(--hr-transition);
}

.mobile-nav a:hover {
    background: rgba(255,255,255,0.1);
    color: var(--hr-primary);
}

.mobile-nav-cta {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.mobile-nav-cta a {
    display: block;
    background: var(--hr-primary);
    color: var(--hr-white);
    text-align: center;
    padding: 16px;
    border-radius: var(--hr-radius-full);
    font-weight: 600;
    font-size: 1rem;
}

.mobile-nav-crisis {
    margin-top: 30px;
    padding: 20px;
    background: rgba(220, 38, 38, 0.2);
    border-radius: var(--hr-radius);
    text-align: center;
}

.mobile-nav-crisis h4 {
    color: var(--hr-white);
    margin-bottom: 12px;
    font-size: 0.875rem;
}

.mobile-nav-crisis a {
    display: inline-block;
    background: var(--hr-danger);
    color: var(--hr-white);
    padding: 12px 24px;
    border-radius: var(--hr-radius-full);
    font-weight: 600;
}

@media (min-width: 900px) {
    .site-header {
        padding: 15px 24px;
    }

    .header-nav {
        display: block;
    }

    .header-cta {
        display: block;
    }

    .mobile-menu-toggle {
        display: none;
    }
}

/* ===========================
   NEVER USE ALONE BANNER
   =========================== */
.never-use-alone-banner {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    padding: 16px;
}

.nua-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.nua-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    padding: 20px;
    border-radius: var(--hr-radius-lg);
    background: rgba(255,255,255,0.05);
}

.nua-box-call {
    border-left: none;
    border-top: 4px solid var(--hr-primary);
}

.nua-box-naloxone {
    border-top: 4px solid var(--hr-success);
    background: rgba(34, 197, 94, 0.1);
}

.nua-icon {
    font-size: 2rem;
}

.nua-text {
    flex: 1;
}

.nua-text strong {
    color: var(--hr-white);
    font-size: 1rem;
    display: block;
    margin-bottom: 6px;
}

.nua-text p {
    color: rgba(255,255,255,0.85);
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.5;
}

.nua-phone,
.nua-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    border-radius: var(--hr-radius-full);
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: var(--hr-transition);
    width: 100%;
}

.nua-phone {
    background: var(--hr-primary);
    color: var(--hr-white);
}

.nua-phone:hover {
    background: #C9A227;
    color: var(--hr-white);
    transform: scale(1.02);
    box-shadow: 0 5px 20px rgba(201,162,39,0.4);
}

.nua-btn-naloxone {
    background: var(--hr-success);
    color: var(--hr-white);
}

.nua-btn-naloxone:hover {
    background: #16a34a;
    transform: scale(1.02);
}

@media (min-width: 640px) {
    .nua-wrapper {
        padding: 0 8px;
    }

    .nua-box {
        flex-direction: row;
        text-align: left;
        padding: 24px;
        border-top: none;
        border-left: 4px solid var(--hr-primary);
    }

    .nua-box-naloxone {
        border-left: 4px solid var(--hr-success);
    }

    .nua-phone,
    .nua-btn {
        width: auto;
    }
}

@media (min-width: 900px) {
    .nua-wrapper {
        flex-direction: row;
    }

    .nua-wrapper.nua-two-column .nua-box {
        flex: 1;
    }
}

/* ===========================
   BUTTONS
   =========================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: var(--hr-radius-full);
    font-weight: 600;
    font-size: 0.9375rem;
    text-decoration: none;
    transition: var(--hr-transition);
    cursor: pointer;
    border: 2px solid transparent;
    text-align: center;
    line-height: 1.4;
}

.btn-primary {
    background: var(--hr-primary);
    color: var(--hr-white);
    border-color: var(--hr-primary);
}

.btn-primary:hover {
    background: var(--hr-primary-dark);
    border-color: var(--hr-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(233,30,99,0.3);
    color: var(--hr-white);
}

.btn-secondary {
    background: var(--hr-white);
    color: var(--hr-primary);
    border-color: var(--hr-primary);
}

.btn-secondary:hover {
    background: var(--hr-primary-light);
    color: var(--hr-primary-dark);
}

.btn-white {
    background: var(--hr-white);
    color: var(--hr-primary);
    border-color: var(--hr-white);
}

.btn-white:hover {
    background: var(--hr-gray-100);
    color: var(--hr-primary-dark);
}

/* ===========================
   HERO SECTION
   =========================== */
.hero-section {
    background: linear-gradient(135deg, var(--hr-charcoal) 0%, #323f4b 100%);
    padding: 40px 16px;
    text-align: center;
    color: var(--hr-white);
}

.hero-section h1 {
    font-size: 1.75rem;
    margin-bottom: 16px;
    line-height: 1.2;
    font-weight: 800;
}

.hero-section h1 span {
    color: var(--hr-primary);
}

.hero-section > .container > p {
    font-size: 1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 30px;
    line-height: 1.6;
}

.hero-stats {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hero-stat {
    text-align: center;
    padding: 16px;
    background: rgba(255,255,255,0.05);
    border-radius: var(--hr-radius);
}

.hero-stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--hr-primary);
    line-height: 1;
    margin-bottom: 4px;
}

.hero-stat-label {
    opacity: 0.8;
    font-size: 0.875rem;
}

@media (min-width: 480px) {
    .hero-stats {
        flex-direction: row;
        justify-content: center;
        gap: 16px;
    }

    .hero-stat {
        flex: 1;
        max-width: 150px;
    }
}

@media (min-width: 640px) {
    .hero-section {
        padding: 60px 24px;
    }

    .hero-section h1 {
        font-size: 2.5rem;
    }

    .hero-section > .container > p {
        font-size: 1.125rem;
    }

    .hero-stats {
        gap: 30px;
    }

    .hero-stat {
        padding: 20px 24px;
        max-width: 180px;
    }

    .hero-stat-number {
        font-size: 2.5rem;
    }
}

@media (min-width: 900px) {
    .hero-section h1 {
        font-size: 3rem;
    }

    .hero-stats {
        gap: 50px;
    }
}

/* ===========================
   SEARCH SECTION
   =========================== */
.search-section {
    background: var(--hr-white);
    padding: 24px 16px;
    margin: -20px 16px 0;
    border-radius: var(--hr-radius-xl);
    box-shadow: var(--hr-shadow-xl);
    position: relative;
    z-index: 10;
}

@media (min-width: 640px) {
    .search-section {
        padding: 30px 24px;
        margin: -30px 24px 0;
    }
}

@media (min-width: 1150px) {
    .search-section {
        max-width: 1100px;
        margin: -30px auto 0;
    }
}

/* Location Banner */
.location-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: linear-gradient(135deg, var(--hr-primary-light) 0%, #fce4ec 100%);
    border: 2px solid var(--hr-primary);
    border-radius: var(--hr-radius);
    margin-bottom: 20px;
}

.location-icon {
    font-size: 1.25rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

.location-banner span:not(.location-icon) {
    flex: 1;
    min-width: 150px;
    font-weight: 600;
    color: var(--hr-primary-dark);
    font-size: 0.9375rem;
}

.clear-location-btn {
    background: transparent;
    border: 1px solid var(--hr-primary);
    color: var(--hr-primary);
    padding: 6px 14px;
    border-radius: var(--hr-radius-full);
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--hr-transition);
}

.clear-location-btn:hover {
    background: var(--hr-primary);
    color: var(--hr-white);
}

/* Search Form */
.search-row {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 20px;
}

.search-field {
    flex: 1;
}

.search-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--hr-charcoal);
    font-size: 0.875rem;
}

.search-field input,
.search-field select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--hr-gray-200);
    border-radius: var(--hr-radius);
    font-size: 1rem;
    transition: var(--hr-transition);
    background: var(--hr-white);
    color: var(--hr-charcoal);
    -webkit-appearance: none;
}

.search-field input::placeholder {
    color: var(--hr-gray-500);
}

.search-field input:focus,
.search-field select:focus {
    outline: none;
    border-color: var(--hr-primary);
    box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.1);
}

.search-field .btn {
    width: 100%;
    padding: 14px 24px;
}

@media (min-width: 640px) {
    .search-row {
        flex-direction: row;
        align-items: flex-end;
    }

    .search-field:first-child {
        flex: 2;
    }

    .search-field:nth-child(2) {
        flex: 1;
        min-width: 180px;
    }

    .search-field:last-child {
        flex: 0 0 auto;
    }

    .search-field .btn {
        width: auto;
        min-width: 120px;
    }
}

/* Service Filters */
.service-filters {
    border-top: 1px solid var(--hr-gray-200);
    padding-top: 20px;
}

.filter-label {
    font-weight: 600;
    color: var(--hr-charcoal);
    display: block;
    margin-bottom: 12px;
    font-size: 0.875rem;
}

.filter-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-checkbox {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: var(--hr-gray-50);
    border: 2px solid var(--hr-gray-200);
    border-radius: var(--hr-radius-full);
    cursor: pointer;
    transition: var(--hr-transition);
    font-size: 0.8125rem;
    user-select: none;
}

.filter-checkbox:hover {
    border-color: var(--hr-primary);
    background: var(--hr-primary-light);
}

.filter-checkbox input {
    display: none;
}

.filter-checkbox:has(input:checked) {
    border-color: var(--hr-primary);
    background: var(--hr-primary-light);
}

.filter-checkbox:has(input:checked) .filter-text {
    color: var(--hr-primary-dark);
}

.filter-icon {
    font-size: 1rem;
}

.filter-text {
    font-weight: 500;
}

@media (min-width: 640px) {
    .filter-checkbox {
        padding: 10px 16px;
        font-size: 0.875rem;
    }
}

/* ===========================
   THREE COLUMN LAYOUT
   =========================== */
.three-column-layout {
    padding: 40px 16px;
    background: var(--hr-gray-50);
}

.three-column-wrapper {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Main Content First on Mobile */
.main-content {
    order: -1;
}

.sidebar-widget {
    order: 1;
}

@media (min-width: 900px) {
    .three-column-layout {
        padding: 60px 24px;
    }

    .three-column-wrapper {
        display: grid;
        grid-template-columns: 1fr 2fr 1fr;
        gap: 30px;
    }

    .main-content {
        order: 0;
    }

    .sidebar-widget {
        order: 0;
    }

    .sidebar-widget:first-child {
        grid-column: 1;
    }

    .main-content {
        grid-column: 2;
    }

    .sidebar-widget:last-of-type {
        grid-column: 3;
    }
}

@media (min-width: 1200px) {
    .three-column-wrapper {
        grid-template-columns: 300px 1fr 300px;
        gap: 40px;
    }
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 30px;
}

.section-header h2 {
    font-size: 1.5rem;
    margin-bottom: 8px;
    color: var(--hr-charcoal);
}

.section-header p {
    color: var(--hr-gray-600);
    font-size: 1rem;
}

@media (min-width: 640px) {
    .section-header h2 {
        font-size: 1.75rem;
    }
}

/* Agencies List */
.agencies-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 640px) {
    .agencies-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===========================
   AGENCY CARDS
   =========================== */
.agencies-section {
    padding: 40px 16px;
}

.agencies-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    max-width: 1200px;
    margin: 0 auto;
}

@media (min-width: 640px) {
    .agencies-section {
        padding: 60px 24px;
    }

    .agencies-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

.agency-card {
    background: var(--hr-white);
    border-radius: var(--hr-radius-lg);
    overflow: hidden;
    box-shadow: var(--hr-shadow);
    transition: var(--hr-transition);
    display: flex;
    flex-direction: column;
}

.agency-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--hr-shadow-xl);
}

.agency-card-header {
    background: linear-gradient(135deg, var(--hr-charcoal) 0%, #323f4b 100%);
    padding: 12px 14px;
    color: var(--hr-white);
}

@media (min-width: 640px) {
    .agency-card-header {
        padding: 14px 16px;
    }
}

.agency-card-header h3 {
    font-size: 0.9375rem;
    margin-bottom: 2px;
    line-height: 1.3;
}

.agency-card-header h3 a {
    color: var(--hr-white);
}

.agency-card-header h3 a:hover {
    text-decoration: underline;
}

.agency-card-location {
    opacity: 0.9;
    font-size: 0.75rem;
    line-height: 1.3;
}

.agency-card-body {
    padding: 12px 14px;
    flex: 1;
}

@media (min-width: 640px) {
    .agency-card-body {
        padding: 14px 16px;
    }
}

/* Phone Box - Prominent */
.agency-phone-box {
    margin-bottom: 10px;
}

.agency-phone-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--hr-success) 0%, #16a34a 100%);
    color: var(--hr-white);
    padding: 10px 14px;
    border-radius: var(--hr-radius);
    font-weight: 700;
    font-size: 0.9375rem;
    text-decoration: none;
    transition: var(--hr-transition);
}

.agency-phone-link:hover {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(34, 197, 94, 0.4);
    color: var(--hr-white);
}

.agency-phone-link .phone-icon {
    font-size: 1.25rem;
}

.agency-phone-link .phone-number {
    letter-spacing: 0.5px;
}

/* Hours Box */
.agency-hours-box {
    background: var(--hr-gray-50);
    border: 1px solid var(--hr-gray-200);
    border-radius: var(--hr-radius);
    padding: 8px 12px;
    margin-bottom: 10px;
}

.hours-label {
    font-weight: 600;
    color: var(--hr-charcoal);
    font-size: 0.8125rem;
    margin-bottom: 4px;
}

.hours-text {
    color: var(--hr-gray-700);
    font-size: 0.8125rem;
    line-height: 1.5;
}

/* Service Icons */
.agency-service-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--hr-gray-200);
}

.service-icon-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--hr-gray-50);
    border: 1px solid var(--hr-gray-200);
    border-radius: var(--hr-radius);
    padding: 4px 10px;
    font-size: 0.8125rem;
    cursor: help;
}

.service-icon-label {
    font-size: 0.75rem;
    color: var(--hr-gray-700);
    font-weight: 500;
}

@media (min-width: 640px) {
    .service-icon-badge {
        font-size: 0.875rem;
        padding: 5px 12px;
    }

    .service-icon-label {
        font-size: 0.8125rem;
    }
}

/* Contact Grid */
.agency-contact-grid {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.8125rem;
    line-height: 1.4;
}

.contact-icon {
    flex-shrink: 0;
    width: 20px;
    text-align: center;
    font-size: 0.9375rem;
}

.contact-item a {
    color: var(--hr-primary);
    word-break: break-word;
}

.contact-item span:not(.contact-icon) {
    color: var(--hr-gray-600);
}

/* How To Access */
.agency-how-to {
    background: var(--hr-success-light);
    padding: 8px 10px;
    border-radius: var(--hr-radius-sm);
    font-size: 0.75rem;
    color: #166534;
    margin-top: 8px;
    line-height: 1.4;
}

.agency-how-to strong {
    color: #15803d;
}

/* Card Footer */
.agency-card-footer {
    padding: 10px 14px;
    background: var(--hr-gray-50);
    display: flex;
    gap: 8px;
}

@media (min-width: 640px) {
    .agency-card-footer {
        padding: 12px 16px;
    }
}

.agency-card-footer .btn {
    flex: 1;
    text-align: center;
    padding: 8px 12px;
    font-size: 0.8125rem;
}

.agency-card-footer .btn-primary {
    background: linear-gradient(135deg, var(--hr-charcoal) 0%, #323f4b 100%);
    border-color: var(--hr-charcoal);
    color: var(--hr-white);
}

.agency-card-footer .btn-primary:hover {
    background: linear-gradient(135deg, #323f4b 0%, var(--hr-charcoal) 100%);
    box-shadow: 0 5px 20px rgba(31, 41, 51, 0.4);
}

.agency-card-footer .btn-secondary {
    background: var(--hr-white);
    color: var(--hr-charcoal);
    border-color: var(--hr-charcoal);
}

.agency-card-footer .btn-secondary:hover {
    background: var(--hr-charcoal);
    color: var(--hr-white);
}

/* ===========================
   SIDEBAR WIDGETS
   =========================== */
.tips-widget,
.goals-widget {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: var(--hr-radius-xl);
    padding: 24px 20px;
    color: var(--hr-white);
    box-shadow: var(--hr-shadow-lg);
}

@media (min-width: 640px) {
    .tips-widget,
    .goals-widget {
        padding: 30px 25px;
    }
}

.widget-quote {
    font-style: italic;
    font-size: 0.9375rem;
    line-height: 1.6;
    padding: 16px;
    margin: 0 0 24px 0;
    background: rgba(233, 30, 99, 0.2);
    border-left: 4px solid var(--hr-primary);
    border-radius: 0 var(--hr-radius) var(--hr-radius) 0;
}

.widget-title {
    color: var(--hr-primary);
    font-size: 1.25rem;
    margin: 0 0 12px 0;
}

.widget-intro {
    font-size: 0.9375rem;
    line-height: 1.6;
    opacity: 0.9;
    margin: 0 0 24px 0;
}

.widget-section {
    margin-bottom: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.widget-section h4 {
    color: var(--hr-primary);
    font-size: 1rem;
    margin: 0 0 16px 0;
}

/* Safety Tips */
.safety-tips .safety-tip {
    display: flex;
    gap: 12px;
    padding: 12px;
    margin-bottom: 10px;
    background: rgba(255,255,255,0.05);
    border-radius: var(--hr-radius);
}

.safety-tip:last-child {
    margin-bottom: 0;
}

.tip-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.safety-tip strong {
    color: var(--hr-primary);
    display: block;
    font-size: 0.875rem;
    margin-bottom: 4px;
}

.safety-tip p {
    margin: 0;
    font-size: 0.8125rem;
    line-height: 1.5;
    opacity: 0.9;
}

.safety-tip a {
    color: var(--hr-white);
    font-weight: 600;
    text-decoration: underline;
}

/* Goals List */
.goals-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.goals-list li {
    padding: 12px 14px;
    margin-bottom: 10px;
    background: rgba(255,255,255,0.05);
    border-radius: var(--hr-radius);
    border-left: 3px solid var(--hr-primary);
    font-size: 0.8125rem;
    line-height: 1.6;
}

.goals-list li:last-child {
    margin-bottom: 0;
}

.goals-list li strong {
    color: var(--hr-primary);
    display: block;
    margin-bottom: 4px;
    font-size: 0.875rem;
}

/* Widget Crisis Buttons */
.widget-crisis {
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.widget-crisis h4 {
    color: var(--hr-white);
    font-size: 0.9375rem;
    margin: 0 0 16px 0;
    text-align: center;
}

.crisis-btn {
    display: block;
    background: var(--hr-primary);
    color: var(--hr-white);
    padding: 12px 16px;
    border-radius: var(--hr-radius-full);
    text-align: center;
    font-weight: 600;
    font-size: 0.8125rem;
    margin-bottom: 10px;
    transition: var(--hr-transition);
}

.crisis-btn:last-child {
    margin-bottom: 0;
}

.crisis-btn:hover {
    background: var(--hr-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(233,30,99,0.4);
    color: var(--hr-white);
}

/* ===========================
   SERVICES SHOWCASE
   =========================== */
.services-showcase {
    background: var(--hr-primary-light);
    padding: 40px 16px;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    max-width: 1200px;
    margin: 0 auto;
}

@media (min-width: 480px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 640px) {
    .services-showcase {
        padding: 60px 24px;
    }

    .services-grid {
        gap: 20px;
    }
}

@media (min-width: 900px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }
}

.service-card {
    background: var(--hr-white);
    padding: 24px 20px;
    border-radius: var(--hr-radius-lg);
    text-align: center;
    transition: var(--hr-transition);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--hr-shadow-lg);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: var(--hr-primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 16px;
}

@media (min-width: 640px) {
    .service-icon {
        width: 70px;
        height: 70px;
        font-size: 2rem;
    }
}

.service-card h3 {
    margin-bottom: 8px;
    color: var(--hr-charcoal);
    font-size: 1rem;
}

.service-card p {
    color: var(--hr-gray-600);
    font-size: 0.875rem;
    line-height: 1.5;
}

/* ===========================
   BROWSE BY STATE
   =========================== */
.states-section {
    padding: 40px 16px;
    background: var(--hr-white);
}

@media (min-width: 640px) {
    .states-section {
        padding: 60px 24px;
    }
}

.states-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    max-width: 800px;
    margin: 0 auto;
}

@media (min-width: 480px) {
    .states-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 640px) {
    .states-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
}

@media (min-width: 900px) {
    .states-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

.state-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 12px;
    background: var(--hr-gray-50);
    border: 2px solid var(--hr-gray-200);
    border-radius: var(--hr-radius);
    text-decoration: none;
    transition: var(--hr-transition);
}

.state-card:hover {
    border-color: var(--hr-primary);
    background: var(--hr-primary-light);
    transform: translateY(-3px);
    box-shadow: var(--hr-shadow-lg);
}

.state-abbr {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--hr-primary);
    line-height: 1;
    margin-bottom: 6px;
}

.state-card:hover .state-abbr {
    color: var(--hr-primary-dark);
}

.state-name {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--hr-gray-600);
    text-align: center;
}

.state-card:hover .state-name {
    color: var(--hr-primary-dark);
}

/* ===========================
   INFO SECTION
   =========================== */
.info-section {
    padding: 40px 16px;
    background: var(--hr-white);
}

.info-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

@media (min-width: 640px) {
    .info-section {
        padding: 60px 24px;
    }
}

@media (min-width: 900px) {
    .info-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 60px;
        align-items: center;
    }
}

.info-content h2 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    color: var(--hr-charcoal);
}

@media (min-width: 640px) {
    .info-content h2 {
        font-size: 2rem;
    }
}

.info-content p {
    color: var(--hr-gray-600);
    margin-bottom: 16px;
    line-height: 1.7;
}

.info-content ul {
    list-style: none;
    margin: 24px 0;
}

.info-content li {
    padding: 10px 0 10px 30px;
    position: relative;
    font-size: 0.9375rem;
    color: var(--hr-gray-700);
}

.info-content li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--hr-success);
    font-weight: bold;
    font-size: 1.125rem;
}

.info-image {
    border-radius: var(--hr-radius-xl);
    overflow: hidden;
    box-shadow: var(--hr-shadow-lg);
}

/* ===========================
   CTA SECTION
   =========================== */
.cta-section {
    background: linear-gradient(135deg, var(--hr-primary) 0%, var(--hr-primary-dark) 100%);
    padding: 50px 16px;
    text-align: center;
    color: var(--hr-white);
}

@media (min-width: 640px) {
    .cta-section {
        padding: 80px 24px;
    }
}

.cta-section h2 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

@media (min-width: 640px) {
    .cta-section h2 {
        font-size: 2rem;
    }
}

.cta-section p {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

@media (min-width: 640px) {
    .cta-section p {
        font-size: 1.125rem;
    }
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 400px;
    margin: 0 auto;
}

@media (min-width: 480px) {
    .cta-buttons {
        flex-direction: row;
        justify-content: center;
        max-width: none;
    }
}

/* ===========================
   NO RESULTS
   =========================== */
.no-results {
    text-align: center;
    padding: 40px 20px;
    background: var(--hr-white);
    border-radius: var(--hr-radius-lg);
    margin: 20px 0;
}

.no-results h2 {
    margin-bottom: 12px;
    font-size: 1.25rem;
}

.no-results p {
    color: var(--hr-gray-600);
    margin-bottom: 20px;
}

/* ===========================
   PAGINATION
   =========================== */
.pagination {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 40px;
}

.pagination a,
.pagination span {
    padding: 10px 16px;
    background: var(--hr-white);
    border-radius: var(--hr-radius-sm);
    color: var(--hr-charcoal);
    box-shadow: var(--hr-shadow-sm);
    transition: var(--hr-transition);
    font-size: 0.875rem;
}

.pagination a:hover {
    background: var(--hr-primary);
    color: var(--hr-white);
}

.pagination .current {
    background: var(--hr-primary);
    color: var(--hr-white);
}

/* ===========================
   SINGLE AGENCY PAGE
   =========================== */
.single-agency {
    background: var(--hr-gray-50);
    min-height: 100vh;
}

.single-header {
    background: var(--hr-charcoal);
    padding: 24px 16px;
}

@media (min-width: 640px) {
    .single-header {
        padding: 30px 24px;
    }
}

.single-header-inner {
    max-width: 1000px;
    margin: 0 auto;
}

.breadcrumb {
    margin-bottom: 12px;
    font-size: 0.8125rem;
}

.breadcrumb a {
    color: rgba(255,255,255,0.7);
}

.breadcrumb a:hover {
    color: var(--hr-white);
}

.breadcrumb span {
    color: rgba(255,255,255,0.5);
    margin: 0 6px;
}

.single-header h1 {
    color: var(--hr-white);
    font-size: 1.5rem;
    margin: 0;
    line-height: 1.3;
}

@media (min-width: 640px) {
    .single-header h1 {
        font-size: 2rem;
    }
}

.single-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

@media (min-width: 640px) {
    .single-container {
        padding: 40px 24px;
        gap: 30px;
    }
}

@media (min-width: 900px) {
    .single-container {
        display: grid;
        grid-template-columns: 1fr 320px;
        gap: 40px;
        align-items: start;
    }
}

.single-main {
    background: var(--hr-white);
    border-radius: var(--hr-radius-lg);
    box-shadow: var(--hr-shadow);
    overflow: hidden;
}

.single-section {
    padding: 20px;
    border-bottom: 1px solid var(--hr-gray-200);
}

@media (min-width: 640px) {
    .single-section {
        padding: 25px 30px;
    }
}

.single-section:last-child {
    border-bottom: none;
}

.single-section h2 {
    font-size: 1rem;
    color: var(--hr-primary);
    margin: 0 0 16px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--hr-primary-light);
}

/* Info Rows */
.info-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}

.info-row:last-child {
    margin-bottom: 0;
}

.info-row .info-icon {
    width: 40px;
    height: 40px;
    background: var(--hr-primary-light);
    border-radius: var(--hr-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    flex-shrink: 0;
}

@media (min-width: 640px) {
    .info-row .info-icon {
        width: 45px;
        height: 45px;
        font-size: 1.25rem;
    }
}

.info-row .info-content {
    flex: 1;
    min-width: 0;
}

.info-label {
    font-size: 0.75rem;
    color: var(--hr-gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.info-value {
    color: var(--hr-charcoal);
    font-weight: 500;
    font-size: 0.9375rem;
    word-break: break-word;
}

.info-value a {
    color: var(--hr-primary);
}

.info-value.hours-value {
    line-height: 1.7;
    white-space: pre-line;
}

.info-row-hours {
    background: var(--hr-gray-50);
    padding: 16px;
    border-radius: var(--hr-radius);
    margin-top: 8px;
}

/* Service Icons Grid (Single Page) */
.services-icon-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

@media (min-width: 480px) {
    .services-icon-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 640px) {
    .services-icon-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 15px;
    }
}

.service-icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 16px 12px;
    background: var(--hr-primary-light);
    border-radius: var(--hr-radius);
    transition: var(--hr-transition);
}

.service-icon-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(233,30,99,0.2);
}

.service-icon-large {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

@media (min-width: 640px) {
    .service-icon-large {
        font-size: 2rem;
    }
}

.service-icon-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--hr-primary-dark);
    line-height: 1.3;
}

@media (min-width: 640px) {
    .service-icon-label {
        font-size: 0.8125rem;
    }
}

/* Services Badges */
.services-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.service-badge {
    background: var(--hr-primary-light);
    color: var(--hr-primary-dark);
    padding: 8px 14px;
    border-radius: var(--hr-radius-full);
    font-weight: 500;
    font-size: 0.8125rem;
}

@media (min-width: 640px) {
    .service-badge {
        padding: 10px 18px;
        font-size: 0.875rem;
    }
}

/* How To Box */
.how-to-box {
    background: var(--hr-success-light);
    border-left: 4px solid var(--hr-success);
    padding: 16px;
    border-radius: 0 var(--hr-radius) var(--hr-radius) 0;
}

@media (min-width: 640px) {
    .how-to-box {
        padding: 20px;
    }
}

.how-to-box h3 {
    color: #15803d;
    margin: 0 0 8px 0;
    font-size: 0.9375rem;
}

.how-to-box p {
    color: #166534;
    margin: 0;
    line-height: 1.6;
    font-size: 0.875rem;
}

/* Single Sidebar */
.single-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

@media (min-width: 900px) {
    .single-sidebar {
        position: sticky;
        top: 80px;
    }
}

.sidebar-cta {
    background: linear-gradient(135deg, var(--hr-primary) 0%, var(--hr-primary-dark) 100%);
    border-radius: var(--hr-radius-lg);
    padding: 24px;
    text-align: center;
    color: var(--hr-white);
}

.sidebar-cta h3 {
    margin: 0 0 8px 0;
    font-size: 1.125rem;
}

.sidebar-cta p {
    opacity: 0.9;
    margin: 0 0 20px 0;
    font-size: 0.875rem;
    line-height: 1.5;
}

.cta-call {
    display: block;
    background: var(--hr-white);
    color: var(--hr-primary);
    padding: 14px;
    border-radius: var(--hr-radius-full);
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 12px;
    transition: var(--hr-transition);
}

.cta-call:hover {
    transform: scale(1.02);
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    color: var(--hr-primary);
}

.cta-directions {
    display: block;
    background: rgba(255,255,255,0.2);
    color: var(--hr-white);
    padding: 12px;
    border-radius: var(--hr-radius-full);
    font-weight: 600;
    font-size: 0.875rem;
    transition: var(--hr-transition);
}

.cta-directions:hover {
    background: rgba(255,255,255,0.3);
    color: var(--hr-white);
}

.crisis-box {
    background: var(--hr-white);
    border-radius: var(--hr-radius-lg);
    padding: 20px;
    text-align: center;
    box-shadow: var(--hr-shadow);
}

.crisis-box h4 {
    color: var(--hr-charcoal);
    margin: 0 0 8px 0;
    font-size: 1rem;
}

.crisis-box p {
    color: var(--hr-gray-600);
    font-size: 0.8125rem;
    margin: 0 0 16px 0;
    line-height: 1.5;
}

.crisis-number {
    display: block;
    background: var(--hr-primary-light);
    color: var(--hr-primary);
    padding: 12px;
    border-radius: var(--hr-radius);
    font-size: 1rem;
    font-weight: 700;
    transition: var(--hr-transition);
}

.crisis-number:hover {
    background: var(--hr-primary);
    color: var(--hr-white);
}

.map-embed {
    border-radius: var(--hr-radius-lg);
    overflow: hidden;
    box-shadow: var(--hr-shadow);
}

.map-embed iframe {
    display: block;
    width: 100%;
    height: 180px;
    border: none;
}

@media (min-width: 640px) {
    .map-embed iframe {
        height: 200px;
    }
}

/* ===========================
   FOOTER
   =========================== */
.site-footer {
    background: var(--hr-charcoal);
    color: rgba(255,255,255,0.7);
    padding: 40px 16px 24px;
    margin-top: 40px;
}

@media (min-width: 640px) {
    .site-footer {
        padding: 50px 24px 30px;
        margin-top: 60px;
    }
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 480px) {
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 900px) {
    .footer-container {
        grid-template-columns: repeat(4, 1fr);
        gap: 40px;
    }
}

.footer-section h3 {
    color: var(--hr-white);
    margin-bottom: 16px;
    font-size: 1rem;
}

.footer-section p {
    margin-bottom: 12px;
    line-height: 1.7;
    font-size: 0.875rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 10px;
}

.footer-section a {
    color: rgba(255,255,255,0.7);
    font-size: 0.875rem;
    transition: var(--hr-transition);
}

.footer-section a:hover {
    color: var(--hr-primary);
}

.footer-bottom {
    max-width: 1200px;
    margin: 30px auto 0;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    font-size: 0.8125rem;
}

.footer-bottom a {
    color: var(--hr-primary);
}

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

/* ===========================
   BODY LOCK FOR MOBILE MENU
   =========================== */
body.menu-open {
    overflow: hidden;
}
