/* ============================================================
   CourtAlert Modern CSS - 2026 Redesign
   Color Palette: Navy (#0A1628, #1a2744) / Gold (#C9A84C, #D4AF37)
   Fonts: Playfair Display (headings), Inter (body)
   ============================================================ */

/* --- CSS Custom Properties --- */
:root {
    --navy-900: #0A1628;
    --navy-800: #111d32;
    --navy-700: #1a2744;
    --navy-600: #243456;
    --navy-500: #2e4168;
    --navy-400: #3d5580;
    --navy-300: #5a7299;
    --navy-200: #8da3c0;
    --navy-100: #c4d0e1;
    --navy-50: #e8edf4;

    --gold-600: #A88932;
    --gold-500: #C9A84C;
    --gold-400: #D4AF37;
    --gold-300: #E0C66A;
    --gold-200: #ECD998;
    --gold-100: #F5ECCC;
    --gold-50: #FBF6E8;

    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;

    --red-500: #ef4444;
    --red-600: #dc2626;
    --green-500: #22c55e;
    --blue-500: #3b82f6;
    --amber-500: #f59e0b;

    --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);

    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;

    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 350ms ease;
}

/* --- Reset & Base --- */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    height: 100%;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.6;
    color: var(--gray-800);
    background-color: var(--gray-50);
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

img {
    border: 0;
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: var(--navy-600);
    transition: color var(--transition-fast);
}
a:hover {
    color: var(--gold-500);
    text-decoration: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--navy-900);
    margin-top: 0;
    line-height: 1.2;
}

h1 { font-size: 2.5rem; font-weight: 700; }
h2 { font-size: 2rem; font-weight: 600; }
h3 { font-size: 1.5rem; font-weight: 600; }
h4 { font-size: 1.25rem; font-weight: 600; }

/* --- Layout Container --- */
.ca-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Top Bar (above nav) --- */
.ca-topbar {
    background-color: var(--navy-900);
    color: var(--navy-200);
    font-size: 13px;
    padding: 6px 0;
    border-bottom: 1px solid var(--navy-700);
}
.ca-topbar .ca-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.ca-topbar a {
    color: var(--navy-200);
    transition: color var(--transition-fast);
}
.ca-topbar a:hover {
    color: var(--gold-400);
}
.ca-topbar-links {
    display: flex;
    gap: 16px;
    align-items: center;
}
.ca-topbar-links a {
    font-size: 13px;
}
.ca-topbar-contact {
    display: flex;
    gap: 16px;
    align-items: center;
    font-size: 13px;
}

/* --- Header / Navigation --- */
.ca-header {
    background-color: var(--white);
    border-bottom: none;
    position: relative;
    z-index: 1000;
    box-shadow: none;
}
.ca-header .ca-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    padding-bottom: 12px;
}

.ca-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-shrink: 0;
}
.ca-logo img {
    height: 50px;
    width: auto;
}
.ca-logo-text {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    color: var(--navy-900);
    line-height: 1.1;
}
.ca-logo-text span {
    color: var(--gold-500);
}

/* Search Bar */
.ca-search {
    flex: 0 1 360px;
    margin: 0 24px;
}
.ca-search-form {
    display: flex;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: border-color var(--transition-fast);
}
.ca-search-form:focus-within {
    border-color: var(--gold-500);
}
.ca-search-input {
    flex: 1;
    border: none;
    padding: 8px 14px;
    font-size: 14px;
    font-family: var(--font-body);
    outline: none;
    background: var(--white);
    color: var(--gray-800);
}
.ca-search-input::placeholder {
    color: var(--gray-400);
}
.ca-search-btn {
    background: var(--navy-700);
    color: var(--white);
    border: none;
    padding: 8px 14px;
    cursor: pointer;
    transition: background var(--transition-fast);
    display: flex;
    align-items: center;
}
.ca-search-btn:hover {
    background: var(--gold-500);
}
.ca-search-btn svg {
    width: 18px;
    height: 18px;
}

/* Header Auth */
.ca-header-auth {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.ca-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 18px;
    font-size: 14px;
    font-weight: 600;
    font-family: var(--font-body);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
    border: 2px solid transparent;
    line-height: 1.4;
}
.ca-btn-primary {
    background: var(--navy-700);
    color: var(--white);
    border-color: var(--navy-700);
}
.ca-btn-primary:hover {
    background: var(--navy-900);
    border-color: var(--navy-900);
    color: var(--white);
}
.ca-btn-outline {
    background: transparent;
    color: var(--navy-700);
    border-color: var(--navy-700);
}
.ca-btn-outline:hover {
    background: var(--navy-700);
    color: var(--white);
}
.ca-btn-gold {
    background: var(--gold-500);
    color: var(--navy-900);
    border-color: var(--gold-500);
    font-weight: 700;
}
.ca-btn-gold:hover {
    background: var(--gold-600);
    border-color: var(--gold-600);
    color: var(--white);
}
.ca-btn-sm {
    padding: 5px 12px;
    font-size: 13px;
}

/* Logged In User */
.ca-user-info {
    text-align: right;
    font-size: 14px;
}
.ca-user-info strong {
    color: var(--navy-900);
    display: block;
}
.ca-user-info a {
    color: var(--gold-500);
    font-size: 13px;
}

/* --- Main Navigation Bar --- */
.ca-nav {
    background: var(--navy-900);
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: var(--shadow-lg);
    border-bottom: 3px solid var(--gold-500);
}
.ca-nav .ca-container {
    padding-top: 0;
    padding-bottom: 0;
}
.ca-nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
}
.ca-nav-item {
    position: relative;
}
.ca-nav-link {
    display: block;
    padding: 12px 16px;
    color: var(--white);
    font-size: 14px;
    font-weight: 600;
    font-family: var(--font-body);
    white-space: nowrap;
    transition: all var(--transition-fast);
    border-bottom: 3px solid transparent;
}
.ca-nav-link:hover,
.ca-nav-item.active .ca-nav-link {
    color: var(--gold-400);
    background: var(--navy-800);
    border-bottom-color: var(--gold-500);
}

/* Dropdown */
.ca-nav-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 280px;
    padding: 16px;
    box-shadow: var(--shadow-xl);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    border-top: 3px solid var(--gold-500);
    z-index: 1000;
}
.ca-nav-item:hover .ca-nav-dropdown {
    display: block;
}
.ca-nav-dropdown.multi-col {
    min-width: 560px;
    display: none;
}
.ca-nav-item:hover .ca-nav-dropdown.multi-col {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}
.ca-nav-dropdown-col {
    flex: 1;
    min-width: 240px;
}
.ca-nav-dropdown h4 {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 700;
    color: var(--navy-700);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--gray-200);
}
.ca-nav-dropdown a {
    display: block;
    padding: 5px 0;
    font-weight: 600;
    color: var(--navy-800);
    font-size: 13px;
    transition: all var(--transition-fast);
}
.ca-nav-dropdown a:hover {
    color: var(--gold-500);
    padding-left: 4px;
}

/* Mobile hamburger */
.ca-nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    padding: 10px 16px;
    cursor: pointer;
    font-size: 24px;
}

/* Dropdown arrow indicator */
.ca-nav-link::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 6px;
    vertical-align: middle;
    border-top: 4px solid currentColor;
    border-right: 4px solid transparent;
    border-left: 4px solid transparent;
    opacity: 0.6;
}
.ca-nav-link.no-arrow::after {
    display: none;
}

/* --- Hero Section --- */
.ca-hero {
    background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 100%);
    color: var(--white);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}
.ca-hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(135deg, transparent 0%, rgba(201, 168, 76, 0.08) 100%);
}
.ca-hero .ca-container {
    position: relative;
    z-index: 1;
}
.ca-hero-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 48px;
    align-items: center;
}
.ca-hero-content {
    max-width: 700px;
}
.ca-hero h1 {
    color: var(--white);
    font-size: 3rem;
    margin-bottom: 16px;
    line-height: 1.15;
}
.ca-hero h1 span {
    color: var(--gold-400);
}
.ca-hero p {
    font-size: 18px;
    line-height: 1.7;
    color: var(--navy-200);
    margin-bottom: 28px;
    max-width: 560px;
}
.ca-hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.ca-hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--navy-600);
}
.ca-hero-stat {
    text-align: left;
}
.ca-hero-stat-value {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--gold-400);
    display: block;
    line-height: 1.1;
}
.ca-hero-stat-label {
    font-size: 13px;
    color: var(--navy-300);
    margin-top: 4px;
    display: block;
}

/* --- Cloud Announcement Banner --- */
.ca-announcement-banner {
    background: linear-gradient(90deg, var(--gold-500), var(--gold-600));
    color: var(--navy-900);
    text-align: center;
    padding: 10px 0;
    font-weight: 600;
    font-size: 14px;
}
.ca-announcement-top {
    margin-bottom: 4px;
}
.ca-announcement-banner a {
    color: var(--navy-900);
    text-decoration: underline;
    font-weight: 700;
}
.ca-announcement-banner a:hover {
    color: var(--white);
}
.ca-announcement-stats {
    display: flex;
    justify-content: center;
    gap: 12px;
    font-size: 12px;
    font-weight: 600;
}
.ca-announcement-stats span {
    background: var(--navy-900);
    color: var(--gold-400);
    padding: 4px 14px;
    border-radius: 20px;
}
.ca-announcement-stats strong {
    font-weight: 800;
    color: var(--gold-300);
    margin-right: 2px;
}

/* --- Main Content + News Sidebar Layout --- */
.ca-main-with-sidebar {
    padding: 40px 0;
    background: var(--white);
}
.ca-content-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 32px;
    align-items: start;
}
.ca-content-main {
    min-width: 0;
}

/* Inline services (inside sidebar layout, no extra section padding) */
.ca-services-inline {
    margin-bottom: 40px;
}
.ca-services-saas-inline {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 32px;
}

/* News Sidebar */
.ca-sidebar-news {
    position: sticky;
    top: 60px;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
}
.ca-sidebar-news-inner {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 20px;
}
.ca-sidebar-heading {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--navy-700);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--gold-500);
}
.ca-sidebar-divider {
    border: none;
    border-top: 1px solid var(--gray-200);
    margin: 16px 0;
}

/* Sidebar news card (compact) */
.ca-sidebar-news .ca-news-card {
    padding: 12px 0;
    border: none;
    border-bottom: 1px solid var(--gray-100);
    border-radius: 0;
    display: block;
}
.ca-sidebar-news .ca-news-card:last-child {
    border-bottom: none;
}
.ca-sidebar-news .ca-news-card:hover {
    box-shadow: none;
    background: var(--gray-50);
    margin: 0 -8px;
    padding: 12px 8px;
    border-radius: var(--radius-sm);
}
.ca-sidebar-news .ca-news-title {
    font-size: 13px;
    line-height: 1.4;
}
.ca-sidebar-news .ca-news-date {
    font-size: 11px;
}
.ca-sidebar-news .ca-news-category {
    font-size: 10px;
    padding: 1px 6px;
}

/* --- Services Grid (Homepage Squares) --- */
.ca-services {
    padding: 60px 0;
    background: var(--white);
}

/* SaaS section - alternate background */
.ca-services-saas {
    background: var(--gray-50);
    border-top: 1px solid var(--gray-200);
    padding-top: 50px;
    padding-bottom: 50px;
}

/* Section Badge */
.ca-section-badge {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--navy-500);
    background: var(--navy-50);
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 16px;
}
.ca-section-badge-gold {
    color: var(--gold-600);
    background: var(--gold-50);
}

.ca-section-header {
    text-align: center;
    margin-bottom: 48px;
}
.ca-section-header h2 {
    margin-bottom: 12px;
}
.ca-section-header h2 span {
    color: var(--gold-500);
}
.ca-section-header p {
    color: var(--gray-500);
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* --- 3-Column Services Layout (CourtAlert.com section) --- */
.ca-services-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    align-items: start;
}
.ca-services-col {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    position: relative;
    overflow: hidden;
}
.ca-services-col-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
}
.ca-services-col-header h3 {
    font-family: var(--font-body);
    font-size: 20px;
    font-weight: 700;
    color: var(--navy-900);
    margin-bottom: 0;
}
.ca-services-col-icon {
    width: 46px;
    height: 46px;
    border-radius: var(--radius-md);
    background: var(--navy-50);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--navy-700);
    flex-shrink: 0;
}
.ca-services-col-desc {
    font-size: 14px;
    color: var(--gray-500);
    line-height: 1.5;
    margin: 0 0 20px;
}
/* Service mini-cards (individual clickable items inside category columns) */
.ca-svc-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.ca-svc-item {
    display: block;
    padding: 12px 14px;
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-md);
    background: var(--white);
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-base);
}
.ca-svc-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gold-500);
    transform: scaleX(0);
    transition: transform var(--transition-base);
}
.ca-svc-item:hover {
    border-color: var(--gold-300);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
    color: inherit;
}
.ca-svc-item:hover::before {
    transform: scaleX(1);
}
.ca-svc-item strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--navy-700);
    line-height: 1.3;
}
.ca-svc-item span {
    display: block;
    font-size: 12px;
    color: var(--gray-400);
    line-height: 1.4;
    margin-top: 2px;
}

.ca-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

/* 3-column grid for SaaS section */
.ca-services-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

/* SaaS card variant */
.ca-service-card-saas {
    background: var(--white);
    border: 1px solid var(--gray-200);
}
.ca-service-card-saas:hover {
    border-color: var(--gold-400);
}

/* SaaS icon variant */
.ca-service-icon-saas {
    background: var(--gold-50);
    color: var(--gold-600);
}
.ca-service-card-saas:hover .ca-service-icon-saas {
    background: var(--navy-50);
    color: var(--navy-700);
}

.ca-service-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
}
.ca-service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gold-500);
    transform: scaleX(0);
    transition: transform var(--transition-base);
}
.ca-service-card:hover {
    border-color: var(--gold-300);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    color: inherit;
}
.ca-service-card:hover::before {
    transform: scaleX(1);
}

.ca-service-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    background: var(--navy-50);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    font-size: 24px;
    color: var(--navy-700);
    transition: all var(--transition-base);
}
.ca-service-card:hover .ca-service-icon {
    background: var(--gold-100);
    color: var(--gold-600);
}

.ca-service-card h3 {
    font-family: var(--font-body);
    font-size: 17px;
    font-weight: 700;
    color: var(--navy-900);
    margin-bottom: 8px;
}
.ca-service-card p {
    font-size: 14px;
    color: var(--gray-500);
    line-height: 1.5;
    margin: 0;
    flex: 1;
}
.ca-service-card .ca-card-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 14px;
    color: var(--gold-600);
    font-weight: 600;
    font-size: 14px;
    transition: gap var(--transition-fast);
}
.ca-service-card:hover .ca-card-link {
    gap: 8px;
    color: var(--gold-500);
}

/* --- News & Announcements Section --- */
.ca-news-section {
    padding: 60px 0;
    background: var(--gray-50);
}
.ca-news-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}
.ca-news-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.ca-news-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    transition: all var(--transition-base);
    display: block;
    text-decoration: none;
    color: inherit;
}
.ca-news-card:hover {
    border-color: var(--gold-300);
    box-shadow: var(--shadow-md);
    color: inherit;
}
.ca-news-date {
    font-size: 12px;
    color: var(--gray-400);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.ca-news-title {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 700;
    color: var(--navy-900);
    margin: 6px 0 4px;
}
.ca-news-category {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 8px;
    border-radius: 4px;
    margin-top: 4px;
}
.ca-news-category.cat-news {
    background: var(--navy-50);
    color: var(--navy-700);
}
.ca-news-category.cat-announcement {
    background: var(--gold-100);
    color: var(--gold-600);
}
.ca-news-category.cat-tip {
    background: #ecfdf5;
    color: #059669;
}
.ca-news-category.cat-closures {
    background: #fef2f2;
    color: var(--red-600);
}

.ca-announcements-panel {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 24px;
}
.ca-announcements-panel h3 {
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--navy-700);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--gold-500);
}
.ca-announcement-item {
    padding: 10px 0;
    border-bottom: 1px solid var(--gray-100);
    font-size: 13px;
}
.ca-announcement-item:last-child {
    border-bottom: none;
}
.ca-announcement-item a {
    color: var(--navy-700);
    font-weight: 600;
}
.ca-announcement-item a:hover {
    color: var(--gold-500);
}
.ca-announcement-item .ann-date {
    color: var(--gray-400);
    font-size: 12px;
    display: block;
    margin-bottom: 2px;
}

.ca-news-viewall {
    text-align: center;
    margin-top: 20px;
}

/* Loading Spinner */
.ca-loading {
    text-align: center;
    padding: 40px;
    color: var(--gray-400);
}
.ca-loading-spinner {
    display: inline-block;
    width: 32px;
    height: 32px;
    border: 3px solid var(--gray-200);
    border-top-color: var(--gold-500);
    border-radius: 50%;
    animation: ca-spin 0.8s linear infinite;
}
@keyframes ca-spin {
    to { transform: rotate(360deg); }
}

/* --- Footer --- */
.ca-footer {
    background: var(--navy-900);
    color: var(--navy-300);
    padding: 48px 0 0;
    margin-top: auto;
}

.ca-footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(4, 1fr);
    gap: 32px;
    padding-bottom: 40px;
}

.ca-footer-brand {
    padding-right: 20px;
}
.ca-footer-brand .ca-logo-text {
    color: var(--white);
    font-size: 22px;
    margin-bottom: 12px;
}
.ca-footer-brand .ca-logo-text span {
    color: var(--gold-400);
}
.ca-footer-brand p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--navy-300);
    margin: 0 0 16px;
}
.ca-footer-contact-item {
    font-size: 13px;
    margin-bottom: 6px;
    color: var(--navy-300);
}
.ca-footer-contact-item strong {
    color: var(--navy-200);
}

.ca-footer-social {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}
.ca-footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--navy-700);
    color: var(--navy-200);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    font-size: 16px;
}
.ca-footer-social a:hover {
    background: var(--gold-500);
    color: var(--navy-900);
}

.ca-footer-col h4 {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--gold-400);
    margin-bottom: 14px;
}
.ca-footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.ca-footer-col li {
    margin-bottom: 8px;
}
.ca-footer-col a {
    color: var(--navy-300);
    font-size: 13px;
    transition: all var(--transition-fast);
}
.ca-footer-col a:hover {
    color: var(--gold-400);
    padding-left: 4px;
}

.ca-footer-bottom {
    border-top: 1px solid var(--navy-700);
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--navy-400);
}
.ca-footer-bottom a {
    color: var(--navy-400);
}
.ca-footer-bottom a:hover {
    color: var(--gold-400);
}

/* --- Hero Contact Form --- */
.ca-hero-form {
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 32px 28px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}
.ca-hero-form h3 {
    font-family: var(--font-heading);
    color: var(--white);
    font-size: 1.5rem;
    margin: 0 0 4px 0;
    font-weight: 600;
}
.ca-hero-form .ca-form-subtitle {
    color: var(--navy-300);
    font-size: 14px;
    margin: 0 0 20px 0;
}
.ca-hero-form .ca-form-group {
    margin-bottom: 14px;
}
.ca-hero-form label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--gold-300);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.ca-hero-form input,
.ca-hero-form select {
    width: 100%;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: var(--white);
    font-family: var(--font-body);
    font-size: 14px;
    transition: border-color 0.2s, background 0.2s;
    box-sizing: border-box;
    outline: none;
}
.ca-hero-form input::placeholder {
    color: var(--navy-300);
}
.ca-hero-form input:focus,
.ca-hero-form select:focus {
    border-color: var(--gold-400);
    background: rgba(255, 255, 255, 0.12);
}
.ca-hero-form select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 8L1 3h10z' fill='%23C9A84C'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
    cursor: pointer;
}
.ca-hero-form select option {
    background: var(--navy-800);
    color: var(--white);
}
.ca-hero-form select optgroup {
    background: var(--navy-900);
    color: var(--gold-400);
    font-weight: 700;
    font-style: normal;
    padding: 6px 0;
}
.ca-hero-form select optgroup option {
    font-weight: 400;
    color: var(--white);
    padding-left: 12px;
}
.ca-hero-form .ca-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.ca-hero-form .ca-form-submit {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, var(--gold-500) 0%, var(--gold-400) 100%);
    color: var(--navy-900);
    border: none;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    margin-top: 4px;
    letter-spacing: 0.3px;
}
.ca-hero-form .ca-form-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(201, 168, 76, 0.4);
}
.ca-hero-form .ca-form-note {
    text-align: center;
    font-size: 11px;
    color: var(--navy-400);
    margin-top: 10px;
}

/* ============================================================
   Content Pages (sidebar + main content layout)
   Used by legacy pages migrated to header-modern.inc:
   NYSSupreme.asp, USDC-SDNY.asp, Research.asp, etc.
   ============================================================ */

/* --- Sidebar + Content Layout --- */
.ca-page-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 20px 60px;
    background: var(--white);
    min-height: 500px;
}

/* --- Sidebar (left nav) --- */
.ca-sidebar {
    font-size: 14px;
    line-height: 1.5;
}
.ca-sidebar h3 {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--navy-700);
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--gold-500);
}
.ca-sidebar ul {
    list-style: none;
    margin: 0 0 20px;
    padding: 0;
}
.ca-sidebar ul li {
    padding: 5px 0 5px 16px;
    font-size: 13px;
    line-height: 1.4;
    position: relative;
}
.ca-sidebar ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 11px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gold-500);
}
.ca-sidebar ul li a {
    color: var(--navy-600);
    font-weight: 500;
    transition: color var(--transition-fast);
}
.ca-sidebar ul li a:hover {
    color: var(--gold-500);
}
.ca-sidebar-header {
    background: var(--navy-50);
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
}
.ca-sidebar-header h2 {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 700;
    color: var(--navy-800);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
    padding: 0;
}

/* --- Content Area (right of sidebar) --- */
.ca-page-content {
    min-width: 0;
    padding-bottom: 40px;
}
.ca-page-content h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--navy-900);
    margin-bottom: 16px;
    line-height: 1.2;
}
.ca-page-content h2 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--navy-800);
    margin-top: 28px;
    margin-bottom: 8px;
    padding-top: 0;
}
.ca-page-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--navy-700);
    margin-bottom: 8px;
}
.ca-page-content p {
    margin: 0 0 16px;
    line-height: 1.7;
    color: var(--gray-700);
}
.ca-page-content a {
    color: var(--navy-600);
    font-weight: 600;
    transition: color var(--transition-fast);
}
.ca-page-content a:hover {
    color: var(--gold-500);
}

/* Intro layout: image left, text right */
.ca-intro {
    display: flex;
    gap: 20px;
    margin-bottom: 24px;
    align-items: flex-start;
}
.ca-intro-image {
    flex-shrink: 0;
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-200);
}
.ca-intro-text {
    font-size: 16px;
    line-height: 1.7;
    color: var(--gray-700);
}

/* County / multi-column lists */
.ca-columns {
    display: flex;
    gap: 40px;
    margin: 16px 0 24px;
    line-height: 1.6;
    font-size: 14px;
    color: var(--gray-700);
}
.ca-columns > div {
    min-width: 150px;
}

/* --- Alert Boxes (form notes, errors, info) --- */
.ca-alert {
    padding: 14px 18px;
    border-radius: var(--radius-md);
    margin: 16px 0;
    font-size: 14px;
    line-height: 1.5;
}
.ca-alert-success {
    background: #ecfdf5;
    border: 1px solid #059669;
    color: #065f46;
}
.ca-alert-error {
    background: #fef2f2;
    border: 1px solid var(--red-500);
    color: #991b1b;
}
.ca-alert-info {
    background: var(--navy-50);
    border: 1px solid var(--navy-200);
    color: var(--navy-800);
}
.ca-alert-warning {
    background: var(--gold-50);
    border: 1px solid var(--gold-300);
    color: var(--gold-600);
}

/* --- Content Highlight Link (replaces .red-link) --- */
.ca-link-highlight {
    color: var(--gold-600);
    font-weight: 700;
}
.ca-link-highlight:hover {
    color: var(--gold-500);
}

/* --- Rounded Content Box --- */
.ca-box {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin: 16px 0;
    background: var(--white);
}
.ca-box-highlight {
    border-color: var(--gold-300);
    background: var(--gold-50);
}

/* --- Data Tables (legacy DataTables overrides) --- */
.ca-page-content table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    margin: 16px 0;
}
.ca-page-content table th {
    background: var(--navy-50);
    color: var(--navy-800);
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 10px 12px;
    text-align: left;
    border-bottom: 2px solid var(--navy-200);
}
.ca-page-content table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--gray-100);
    color: var(--gray-700);
}
.ca-page-content table tr:hover td {
    background: var(--gray-50);
}

/* --- Form Elements (for content page forms) --- */
.ca-page-content input[type="text"],
.ca-page-content input[type="password"],
.ca-page-content input[type="email"],
.ca-page-content input[type="tel"],
.ca-page-content select,
.ca-page-content textarea {
    padding: 8px 12px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--gray-800);
    background: var(--white);
    transition: border-color var(--transition-fast);
    outline: none;
}
.ca-page-content input:focus,
.ca-page-content select:focus,
.ca-page-content textarea:focus {
    border-color: var(--gold-500);
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.15);
}
.ca-page-content input[type="submit"],
.ca-page-content input[type="button"],
.ca-page-content button[type="submit"] {
    padding: 8px 20px;
    background: var(--navy-700);
    color: var(--white);
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition-fast);
}
.ca-page-content input[type="submit"]:hover,
.ca-page-content input[type="button"]:hover,
.ca-page-content button[type="submit"]:hover {
    background: var(--gold-500);
    color: var(--navy-900);
}

/* --- Responsive --- */
@media (max-width: 991px) {
    .ca-content-layout {
        grid-template-columns: 1fr;
    }
    .ca-sidebar-news {
        position: static;
        max-height: none;
    }
    .ca-hero-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .ca-hero h1 {
        font-size: 2.2rem;
    }
    .ca-hero-stats {
        gap: 24px;
        flex-wrap: wrap;
    }
    .ca-services-columns {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .ca-services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .ca-services-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    .ca-news-grid {
        grid-template-columns: 1fr;
    }
    .ca-footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .ca-search {
        display: none;
    }
    .ca-nav-list {
        flex-wrap: wrap;
    }
    .ca-nav-link {
        font-size: 13px;
        padding: 10px 12px;
    }
    .ca-page-layout {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .ca-sidebar {
        border-bottom: 1px solid var(--gray-200);
        padding-bottom: 16px;
        margin-bottom: 24px;
    }
    .ca-intro {
        flex-direction: column;
    }
    .ca-columns {
        flex-wrap: wrap;
    }
    .ca-announcement-stats {
        flex-wrap: wrap;
        gap: 8px;
    }
}

@media (max-width: 767px) {
    .ca-topbar { display: none; }
    .ca-header .ca-container {
        flex-wrap: wrap;
        gap: 8px;
    }
    .ca-nav-toggle { display: block; }
    .ca-nav-list {
        display: none;
        flex-direction: column;
        width: 100%;
    }
    .ca-nav-list.open {
        display: flex;
    }
    .ca-nav-dropdown {
        position: static;
        box-shadow: none;
        border-top: none;
        border-radius: 0;
        padding: 8px 16px 8px 24px;
        background: var(--navy-800);
    }
    .ca-nav-dropdown a {
        color: var(--navy-200);
    }
    .ca-nav-dropdown h4 {
        color: var(--gold-400);
        border-bottom-color: var(--navy-600);
    }
    .ca-hero {
        padding: 40px 0;
    }
    .ca-hero h1 {
        font-size: 1.75rem;
    }
    .ca-services-grid {
        grid-template-columns: 1fr;
    }
    .ca-services-grid-3 {
        grid-template-columns: 1fr;
    }
    .ca-footer-grid {
        grid-template-columns: 1fr;
    }
    .ca-page-content h1 {
        font-size: 1.5rem;
    }
    .ca-page-layout {
        padding: 16px 12px 40px;
    }
}

/* --- Utility Classes --- */
.text-gold { color: var(--gold-500); }
.text-navy { color: var(--navy-900); }
.text-muted { color: var(--gray-500); }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* ============================================================
   Legacy Compatibility
   Maps old Bootstrap 3 / default.css IDs and classes to modern
   CSS Grid layout. This makes sidebar.inc output work without
   any changes to the 240+ individual ASP pages.
   ============================================================ */

.nyclawonly { display: none; }
.notnyclaw { display: inherit; }

/* Page body wrapper (replaces old #content with Bootstrap row) */
.ca-page-body {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 20px 0;
    background: var(--white);
    min-height: 500px;
}

/* Sidebar pages: sidebar.inc outputs #sidebar-left + #content-right */
/* Use CSS Grid on the parent to lay them out as sidebar + content */
.ca-page-body:has(#sidebar-left) {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 28px;
}

/* Left sidebar (from sidebar.inc) */
#sidebar-left {
    font-size: 13px;
    line-height: 1.5;
    padding: 0;
}
#sidebar-left h3 {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--navy-700);
    margin-bottom: 10px;
    padding-bottom: 8px;
    padding-top: 0;
    border-bottom: 2px solid var(--gold-500);
}
#sidebar-left ul {
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
}
#sidebar-left ul li {
    padding: 4px 0 4px 14px;
    font-size: 13px;
    line-height: 1.4;
    position: relative;
    margin-left: 0;
    background-image: none;
}
#sidebar-left ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--gold-500);
}
#sidebar-left ul li a {
    color: var(--navy-600);
    font-weight: 500;
    text-decoration: none;
}
#sidebar-left ul li a:hover {
    color: var(--gold-500);
    text-decoration: none;
}

/* Content area (right of sidebar) */
#content-right {
    min-width: 0;
    padding: 0;
    border-left: none;
    border-right: none;
}
#content-right h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--navy-900);
    margin-bottom: 16px;
}
#content-right h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--navy-800);
    margin-top: 24px;
    margin-bottom: 8px;
    padding-top: 0;
    clear: both;
}
#content-right a {
    color: var(--navy-600);
    font-weight: 600;
}
#content-right a:hover {
    color: var(--gold-500);
    text-decoration: none;
}

/* Content-left (homepage layout before sidebar) */
#content-left {
    min-width: 0;
    padding: 0;
    border-right: none;
}

/* Homepage right sidebar */
#sidebar-right {
    font-size: 13px;
    line-height: 1.5;
}

/* Old sidebar header bar */
.sidebar-header {
    background: var(--navy-50);
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
}
.sidebar-header h2 {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 700;
    color: var(--navy-700);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
    padding: 0;
}

/* Old sidebar indent */
.sidebar-right-indent {
    padding: 0 4px;
}
.sidebar-right-item {
    padding-left: 14px;
    position: relative;
    background-image: none;
}
.sidebar-right-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--gold-500);
}
#sidebar-right h3 {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 700;
    color: var(--navy-700);
    margin-top: 12px;
    margin-bottom: 6px;
}
#sidebar-right a {
    color: var(--navy-600);
    font-weight: 600;
    text-decoration: none;
}
#sidebar-right a:hover {
    color: var(--gold-500);
    text-decoration: none;
}

/* Legacy intro layout */
.intro-image {
    float: left;
    margin-right: 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-200);
}
.intro-text {
    float: left;
    font-size: 16px;
    line-height: 1.7;
    color: var(--gray-700);
    width: 380px;
}

/* Legacy form styles */
.form-note {
    padding: 14px 18px;
    border-radius: var(--radius-md);
    margin: 16px 0;
    background: #ecfdf5;
    border: 1px solid #059669;
    color: #065f46;
}
.form-error {
    padding: 14px 18px;
    border-radius: var(--radius-md);
    margin: 16px 0;
    background: #fef2f2;
    border: 1px solid var(--red-500);
    color: #991b1b;
}
.important-note {
    padding: 14px 18px;
    border-radius: var(--radius-md);
    margin: 16px 0;
    background: var(--gold-50);
    border: 1px solid var(--gold-300);
    color: var(--gold-600);
}

/* Legacy rounded box */
.rounded-box {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 16px;
}

/* Legacy form buttons */
.formbutton {
    padding: 6px 16px;
    font-size: 13px;
    background: var(--navy-700);
    color: var(--white);
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background var(--transition-fast);
}
.formbutton:hover {
    background: var(--gold-500);
    color: var(--navy-900);
    text-decoration: none;
}

/* Legacy red-link → gold highlight */
a.red-link, a.red-link:hover {
    color: var(--gold-600);
    font-weight: 700;
}

/* Hide old external wrapper indicator on sidebar */
.hideIfExternalWrapper { /* no-op: controlled by JS */ }

/* Strip old Bootstrap col-* classes (we use CSS Grid now) */
.col-md-3, .col-md-9, .col-xs-12 {
    float: none;
    width: auto;
    padding: 0;
}

/* Old row/container resets */
.row { margin: 0; display: block; }
.row-margin-0 { margin: 0 !important; }
.col-padding-0 { padding: 0 !important; }

/* Legacy mobile-only class */
.mobile-only { display: none; }

/* Responsive: sidebar collapses on tablet/mobile */
@media (max-width: 991px) {
    .ca-page-body:has(#sidebar-left) {
        grid-template-columns: 1fr;
        gap: 0;
    }
    #sidebar-left {
        border-bottom: 1px solid var(--gray-200);
        padding-bottom: 16px;
        margin-bottom: 24px;
    }
}

/* --- Print --- */
@media print {
    .ca-topbar, .ca-nav, .ca-hero, .ca-footer { display: none; }
    body { background: white; }
}
