/* ===================================
   Nurture Care and Support - Modern Fresh Design
   2024 Contemporary Healthcare Website
   =================================== */

/* Modern Color Palette from Logo */
:root {
    /* Primary Colors from Logo */
    --primary-teal: #3B8BA5;
    --primary-green: #6CB24E;
    
    /* Extended Palette */
    --teal-light: #5BA5BE;
    --teal-dark: #2A6B7F;
    --teal-ultra-light: #E8F4F8;
    
    --green-light: #8BC96A;
    --green-dark: #4F9638;
    --green-ultra-light: #F0F8EC;
    
    /* Neutrals */
    --white: #FFFFFF;
    --off-white: #FAFBFC;
    --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;
    
    /* Semantic Colors */
    --text-primary: #1F2937;
    --text-secondary: #4B5563;
    --text-light: #6B7280;
    
    /* Effects */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 0.75rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
    --spacing-4xl: 6rem;
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===================================
   RESET & BASE STYLES
   =================================== */

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--off-white);
    font-size: 1rem;
    overflow-x: hidden;
}

img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all var(--transition-base);
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    padding: 0;
}

input, textarea, select {
    font-family: inherit;
}

/* ===================================
   TYPOGRAPHY
   =================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    line-height: 1.2;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: var(--spacing-lg);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700;
    letter-spacing: -0.01em;
}

h3 {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
}

h4 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

h5 {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
}

h6 {
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary-teal);
}

p {
    margin-bottom: var(--spacing-lg);
    color: var(--text-secondary);
    line-height: 1.75;
    font-size: 1.0625rem;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary-teal) 0%, var(--primary-green) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===================================
   SKIP LINK (Accessibility)
   =================================== */

.skip-link {
    position: absolute;
    top: -100px;
    left: 20px;
    background: var(--primary-teal);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    z-index: 10000;
    box-shadow: var(--shadow-lg);
}

.skip-link:focus {
    top: 20px;
}

/* ===================================
   HEADER - Redesigned Modern Layout
   =================================== */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    transition: all var(--transition-base);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.site-header.scrolled {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-bottom-color: var(--gray-300);
}

.header-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 1rem 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 3rem;
}

/* Logo Section - Enhanced */
.logo-section {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    z-index: 1001;
    flex-shrink: 0;
}

.logo-link {
    display: flex;
    align-items: center;
    transition: transform var(--transition-base);
}

.logo-link:hover {
    transform: none;
}

.logo-img {
    height: 64px;
    width: auto;
    display: block;
}

.site-title {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding-left: 1rem;
    border-left: 2px solid var(--gray-200);
}

.site-title-link {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1.2;
    letter-spacing: -0.02em;
    transition: color var(--transition-fast);
}

.site-title-link:hover {
    color: var(--primary-teal);
}

.tagline {
    font-size: 0.8125rem;
    color: var(--primary-teal);
    font-weight: 600;
    font-style: normal;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ===================================
   NAVIGATION - Clean Modern
   =================================== */

.main-navigation {
    display: flex;
    align-items: center;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.nav-menu li {
    list-style: none;
}

.nav-menu li::before,
.nav-menu li::after {
    display: none;
    content: none;
}

.nav-menu > li > a {
    display: block;
    padding: 0.75rem 1.25rem;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.9375rem;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    position: relative;
}

.nav-menu > li > a:hover {
    color: var(--primary-teal);
    background: var(--teal-ultra-light);
    transform: translateY(-1px);
}

/* Dropdown Menu - Modern Floating */
.menu-item-has-children {
    position: relative;
}

.menu-item-has-children > a::before {
    content: '';
    display: none;
}

.sub-menu {
    position: absolute;
    top: calc(100% + 0.75rem);
    left: 0;
    min-width: 300px;
    background: white;
    border-radius: var(--radius-xl);
    padding: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-base);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--gray-200);
    list-style: none;
}

.sub-menu li {
    list-style: none;
}

.sub-menu li::before,
.sub-menu li::after {
    display: none;
    content: none;
}

.menu-item-has-children:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sub-menu li a {
    display: block;
    padding: 0.875rem 1rem;
    color: var(--text-primary);
    font-size: 0.9375rem;
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.sub-menu li a:hover {
    background: linear-gradient(90deg, var(--teal-ultra-light) 0%, transparent 100%);
    color: var(--primary-teal);
    padding-left: 1.5rem;
    transform: translateX(4px);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: var(--gray-100);
    color: var(--gray-700);
    font-size: 1.5rem;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    z-index: 1001;
}

.mobile-menu-toggle:hover {
    background: var(--primary-teal);
    color: white;
}

/* ===================================
   MAIN CONTENT - Spacious Layout
   =================================== */

main {
    min-height: 70vh;
    padding-top: 88px; /* Header height */
}

article {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ===================================
   HERO SECTION - Modern Split Design
   =================================== */

.hero-section {
    min-height: calc(100vh - 90px);
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    align-items: center;
    gap: var(--spacing-4xl);
    padding: var(--spacing-4xl) 2rem;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 80%;
    height: 150%;
    background: radial-gradient(circle, var(--teal-ultra-light) 0%, transparent 70%);
    opacity: 0.6;
    z-index: -1;
}

.hero-content {
    z-index: 1;
}

.hero-label {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: linear-gradient(135deg, var(--teal-ultra-light) 0%, var(--green-ultra-light) 100%);
    color: var(--primary-teal);
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    margin-bottom: var(--spacing-lg);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.hero-section h1 {
    margin-bottom: var(--spacing-xl);
    line-height: 1.1;
}

.hero-section p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-2xl);
    max-width: 600px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
    text-decoration: none;
    border: 2px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-teal) 0%, var(--primary-green) 100%);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(59, 139, 165, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(59, 139, 165, 0.35);
}

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

.btn-secondary:hover {
    border-color: var(--primary-teal);
    background: var(--teal-ultra-light);
}

.hero-image {
    position: relative;
    height: 600px;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(59, 139, 165, 0.1) 0%, rgba(108, 178, 78, 0.1) 100%);
}

/* ===================================
   STATS SECTION - Modern Cards
   =================================== */

.stats-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
    margin: var(--spacing-4xl) 0;
}

.stat-card {
    background: white;
    padding: var(--spacing-2xl);
    border-radius: var(--radius-xl);
    text-align: center;
    box-shadow: var(--shadow);
    transition: all var(--transition-base);
    border: 1px solid var(--gray-100);
}

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

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-teal) 0%, var(--primary-green) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: var(--spacing-sm);
}

.stat-label {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ===================================
   SECTION LAYOUTS
   =================================== */

.section {
    padding: var(--spacing-4xl) 2rem;
}

.section-alt {
    background: white;
    border-radius: var(--radius-2xl);
    margin: var(--spacing-4xl) 0;
    padding: var(--spacing-4xl) 2rem;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--spacing-4xl);
}

.section-label {
    display: inline-block;
    padding: 0.375rem 1rem;
    background: var(--teal-ultra-light);
    color: var(--primary-teal);
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    margin-bottom: var(--spacing-md);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.section-title {
    margin-bottom: var(--spacing-lg);
}

.section-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 0;
}

/* ===================================
   CARD GRID - Modern Design
   =================================== */

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-2xl);
}

.card {
    background: white;
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--gray-100);
    transition: all var(--transition-base);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-teal);
}

.card-image {
    width: 100%;
    height: 240px;
    overflow: hidden;
    position: relative;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: none;
}

/* Disable hover effects on all images */
img:hover {
    transform: none !important;
    opacity: 1 !important;
    filter: none !important;
    box-shadow: none !important;
}

.card-content {
    padding: var(--spacing-xl);
}

.card-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--teal-ultra-light) 0%, var(--green-ultra-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-lg);
    color: var(--primary-teal);
    font-size: 1.5rem;
}

.card h3 {
    color: var(--gray-900);
    margin-bottom: var(--spacing-md);
    font-size: 1.5rem;
}

.card p {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
    line-height: 1.7;
}

.card-link {
    color: var(--primary-teal);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap var(--transition-base);
}

.card-link:hover {
    gap: 0.75rem;
}

/* ===================================
   FEATURES - Icon Grid
   =================================== */

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-2xl);
    margin-top: var(--spacing-4xl);
}

.feature-item {
    text-align: center;
    padding: var(--spacing-2xl);
    background: white;
    border-radius: var(--radius-xl);
    border: 1px solid var(--gray-100);
    transition: all var(--transition-base);
}

.feature-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-green);
}

.feature-icon {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, var(--primary-teal) 0%, var(--primary-green) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-lg);
    color: white;
    font-size: 2rem;
    box-shadow: 0 8px 16px rgba(59, 139, 165, 0.2);
}

.feature-item h4 {
    color: var(--gray-900);
    margin-bottom: var(--spacing-sm);
}

.feature-item p {
    color: var(--text-secondary);
    margin-bottom: 0;
    font-size: 0.9375rem;
}

/* ===================================
   TEAM SECTION
   =================================== */

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-3xl);
}

.team-member {
    background: white;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-100);
}

.team-photo {
    width: 100%;
    height: 400px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, var(--teal-ultra-light) 0%, var(--green-ultra-light) 100%);
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-info {
    padding: var(--spacing-2xl);
}

.team-info h4 {
    color: var(--gray-900);
    margin-bottom: var(--spacing-sm);
    font-size: 1.5rem;
}

.team-role {
    color: var(--primary-teal);
    font-weight: 600;
    margin-bottom: var(--spacing-lg);
    font-size: 0.9375rem;
}

.team-info p {
    color: var(--text-secondary);
    line-height: 1.75;
}

/* Quote Section */
.quote-section {
    margin-top: var(--spacing-3xl);
}

.quote-card {
    background: linear-gradient(135deg, var(--primary-teal) 0%, var(--primary-green) 100%);
    padding: var(--spacing-3xl);
    border-radius: var(--radius-2xl);
    color: white;
    position: relative;
    overflow: hidden;
    margin-bottom: var(--spacing-2xl);
}

.quote-card::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: 30px;
    font-size: 120px;
    opacity: 0.1;
    font-family: Georgia, serif;
}

.quote-card p {
    color: white;
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
    position: relative;
    z-index: 1;
}

.quote-author {
    font-weight: 600;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

/* ===================================
   FORM STYLES - Modern Clean
   =================================== */

.form-wrapper {
    max-width: 700px;
    margin: 0 auto;
    background: white;
    padding: var(--spacing-3xl);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-lg);
}

.form-group {
    margin-bottom: var(--spacing-xl);
}

.form-group label {
    display: block;
    margin-bottom: var(--spacing-sm);
    font-weight: 600;
    color: var(--gray-700);
    font-size: 0.9375rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.875rem 1.125rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    font-size: 1rem;
    transition: all var(--transition-fast);
    background: var(--gray-50);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-teal);
    background: white;
    box-shadow: 0 0 0 3px rgba(59, 139, 165, 0.1);
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.radio-group label {
    display: flex;
    align-items: center;
    font-weight: normal;
    cursor: pointer;
    padding: 0.75rem;
    border-radius: var(--radius-md);
    transition: background var(--transition-fast);
}

.radio-group label:hover {
    background: var(--gray-50);
}

.radio-group input[type="radio"] {
    width: auto;
    margin-right: var(--spacing-sm);
}

.form-group fieldset {
    border: none;
    padding: 0;
    margin: 0;
}

.form-group legend {
    display: block;
    margin-bottom: var(--spacing-sm);
    font-weight: 600;
    color: var(--gray-700);
    font-size: 0.9375rem;
}

/* Form error states */
.form-group.has-error input,
.form-group.has-error textarea,
.form-group.has-error select {
    border-color: #dc2626;
    background-color: #fef2f2;
}

.form-group.has-error input:focus,
.form-group.has-error textarea:focus,
.form-group.has-error select:focus {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.error-message {
    display: block;
    color: #dc2626;
    font-size: 0.875rem;
    margin-top: var(--spacing-xs);
    font-weight: 500;
}

.form-errors {
    background-color: #fef2f2;
    border: 2px solid #dc2626;
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    color: #dc2626;
    font-weight: 600;
    display: none;
}

.form-success {
    background-color: #f0fdf4;
    border: 2px solid #16a34a;
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    color: #16a34a;
    font-weight: 600;
    display: none;
}

.form-success:focus {
    outline: 3px solid #16a34a;
    outline-offset: 2px;
}

.submit-button {
    width: 100%;
    background: linear-gradient(135deg, var(--primary-teal) 0%, var(--primary-green) 100%);
    color: white;
    padding: 1.125rem 2rem;
    border-radius: var(--radius-full);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    box-shadow: 0 4px 14px 0 rgba(59, 139, 165, 0.25);
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(59, 139, 165, 0.35);
}

/* ===================================
   FOOTER - Redesigned Modern Layout
   =================================== */

.site-footer {
    background: linear-gradient(180deg, var(--gray-900) 0%, #0a0a0a 100%);
    color: var(--gray-300);
    padding: 0;
    margin-top: var(--spacing-4xl);
    border-top: 4px solid var(--primary-teal);
}

.footer-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0;
}

/* NCAS Logo in Footer Branding */
.footer-ncas-logo {
    display: block;
    max-width: 600px;
    height: auto;
    margin-bottom: var(--spacing-xl);
    opacity: 1;
    transition: all var(--transition-base);
}

.footer-ncas-logo:hover {
    opacity: 1;
    transform: none;
}

.footer-ncas-logo img {
    width: 100%;
    height: auto;
    max-height: 180px;
    object-fit: contain;
    filter: none;
    display: block;
}

/* Footer Main Content */
.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--spacing-4xl);
    padding: var(--spacing-4xl) 2.5rem var(--spacing-xl);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    align-items: start;
}

.footer-branding {
    max-width: 600px;
    display: flex;
    flex-direction: column;
}

.footer-branding p {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--gray-400);
    margin-bottom: var(--spacing-lg);
}

.footer-branding p:first-of-type {
    margin-top: 0;
}

.footer-logos {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xl);
    align-items: center;
    margin-top: var(--spacing-lg);
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logos img {
    height: 60px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    opacity: 0.9;
    transition: all var(--transition-base);
    display: block;
    background: transparent;
}

/* PNG logos - invert to white */
.footer-logos img[src$=".png"] {
    filter: brightness(0) invert(1);
}

/* SVG logos - show in natural colors (teal should work well on dark) */
.footer-logos img[src$=".svg"] {
    filter: none;
    /* Teal logo should be visible on dark background */
}

/* JPG logos - show in natural colors with subtle background */
.footer-logos img[src$=".jpg"] {
    filter: none;
    background: rgba(255, 255, 255, 0.15);
    padding: 10px;
    border-radius: var(--radius-md);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.footer-logos img:hover {
    opacity: 1;
    transform: none;
}

.footer-logos img[src$=".jpg"]:hover {
    background: transparent;
    box-shadow: none;
}

.footer-widget {
    display: flex;
    flex-direction: column;
}

.footer-widget h5 {
    color: white;
    font-size: 1.25rem;
    margin-bottom: var(--spacing-lg);
    margin-top: 0;
    font-weight: 700;
    letter-spacing: 0.02em;
}

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

.footer-widget ul li {
    margin-bottom: var(--spacing-sm);
}

.footer-widget a {
    color: var(--gray-400);
    transition: all var(--transition-fast);
    font-size: 0.9375rem;
    display: inline-block;
}

.footer-widget a:hover {
    color: var(--primary-green);
    transform: translateX(4px);
}

.footer-widget p {
    color: var(--gray-400);
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
    margin-top: 0;
}

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

.footer-widget p strong {
    color: white;
    font-weight: 600;
}

.copyright {
    text-align: center;
    color: var(--gray-500);
    font-size: 0.875rem;
    padding: var(--spacing-lg) 2.5rem;
    background: rgba(0, 0, 0, 0.2);
    margin-top: 0;
}

.copyright a {
    color: var(--gray-400);
    text-decoration: underline;
}

.copyright a:hover {
    color: var(--primary-green);
}

/* ===================================
   ACCESSIBILITY ENHANCEMENTS
   =================================== */

/* Focus visible for keyboard navigation */
*:focus-visible {
    outline: 3px solid var(--primary-teal);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

/* Skip link focus */
.skip-link:focus {
    top: 20px;
    outline: 3px solid white;
    outline-offset: 2px;
}

/* Button focus states */
.btn:focus-visible {
    outline: 3px solid var(--primary-teal);
    outline-offset: 3px;
}

/* Form input focus states */
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 3px solid var(--primary-teal);
    outline-offset: 2px;
}

/* Link focus states */
a:focus-visible {
    outline: 2px solid var(--primary-teal);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

/* Ensure minimum touch target size (44x44px) */
button,
a.btn,
.mobile-menu-toggle,
.carousel-controls {
    min-height: 44px;
    min-width: 44px;
}

/* Screen reader only content */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --primary-teal: #2A6B7F;
        --primary-green: #4F9638;
    }
    
    .btn-primary {
        border: 2px solid var(--gray-900);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

/* Tablet and below */
@media (max-width: 1024px) {
    .hero-section {
        grid-template-columns: 1fr;
        gap: var(--spacing-3xl);
        padding: var(--spacing-3xl) 2rem;
    }
    
    .hero-image {
        height: 400px;
    }
    
    .header-container {
        padding: 1rem 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-2xl);
    }
    
    .footer-ncas-logo {
        max-width: 450px;
        margin-bottom: var(--spacing-lg);
    }
    
    .footer-ncas-logo img {
        max-height: 140px;
    }
    
    /* Responsive grid adjustments */
    .stats-section {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: var(--spacing-lg);
    }
    
    .card-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    
    /* Responsive text */
    h1 {
        font-size: clamp(2rem, 6vw, 3.5rem);
    }
    
    h2 {
        font-size: clamp(1.75rem, 5vw, 2.75rem);
    }
    
    /* Responsive spacing */
    .section,
    .section-alt {
        padding: var(--spacing-3xl) 2rem;
    }
    
    /* Two-column layouts become single column */
    .section-alt > div[style*="grid-template-columns: 1fr 1fr"],
    .section > div[style*="grid-template-columns: 1fr 1fr"] {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: var(--spacing-2xl) !important;
    }
}

/* Mobile devices */
@media (max-width: 768px) {
    html {
        font-size: 15px;
    }
    
    .header-container {
        padding: 1rem 1.5rem;
        flex-wrap: wrap;
    }
    
    .logo-img {
        height: 44px;
    }
    
    .site-title {
        padding-left: 0.75rem;
    }
    
    .site-title-link {
        font-size: 1.25rem;
    }
    
    .main-navigation {
        position: fixed;
        top: 76px;
        left: 0;
        right: 0;
        bottom: 0;
        background: white;
        flex-direction: column;
        padding: 2rem 1.5rem;
        transform: translateX(-100%);
        transition: transform var(--transition-base);
        overflow-y: auto;
        z-index: 999;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    }
    
    .main-navigation.active {
        transform: translateX(0);
    }
    
    /* Prevent body scroll when menu is open */
    body.menu-open {
        overflow: hidden;
    }
    
    .nav-menu {
        flex-direction: column;
        width: 100%;
        gap: 0;
    }
    
    .nav-menu > li {
        width: 100%;
        border-bottom: 1px solid var(--gray-100);
        list-style: none;
    }
    
    .nav-menu > li::before,
    .nav-menu > li::after {
        display: none;
        content: none;
    }
    
    .sub-menu li {
        list-style: none;
    }
    
    .sub-menu li::before,
    .sub-menu li::after {
        display: none;
        content: none;
    }
    
    .nav-menu > li > a {
        padding: 1rem;
        display: block;
        border-radius: 0;
        min-height: 44px;
        font-size: 1rem;
    }
    
    .menu-item-has-children > a::after {
        content: ' ▼';
        float: right;
        font-size: 0.75rem;
        transition: transform var(--transition-fast);
    }
    
    .menu-item-has-children.active > a::after {
        transform: rotate(180deg);
    }
    
    .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding: 0;
        background: var(--gray-50);
        max-height: 0;
        overflow: hidden;
        transition: max-height var(--transition-base);
        border-radius: 0;
    }
    
    .menu-item-has-children.active .sub-menu {
        max-height: 500px;
        padding: 0.5rem 0;
    }
    
    .sub-menu li a {
        padding-left: 2rem;
        min-height: 44px;
    }
    
    .mobile-menu-toggle {
        display: flex;
        order: 2;
        margin-left: auto;
    }
    
    .hero-section {
        min-height: auto;
        padding: var(--spacing-2xl) 1.5rem;
    }
    
    .hero-image {
        height: 300px;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
        min-height: 48px;
        padding: 1rem 1.5rem;
    }
    
    .card-grid,
    .features-grid,
    .team-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }
    
    .stats-section {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }
    
    .section,
    .section-alt {
        padding: var(--spacing-2xl) 1.5rem;
    }
    
    .section-header {
        margin-bottom: var(--spacing-2xl);
    }
    
    .form-wrapper {
        padding: var(--spacing-2xl) 1.5rem;
    }
    
    .form-group {
        margin-bottom: var(--spacing-lg);
    }
    
    .footer-container {
        padding: 0;
    }
    
    .footer-ncas-logo {
        max-width: 350px;
        margin-bottom: var(--spacing-md);
    }
    
    .footer-ncas-logo img {
        max-height: 100px;
    }
    
    .footer-content {
        padding: var(--spacing-2xl) 1.5rem;
        grid-template-columns: 1fr;
    }
    
    .footer-widget {
        margin-bottom: var(--spacing-xl);
    }
    
    .copyright {
        padding: var(--spacing-lg) 1.5rem;
        font-size: 0.8125rem;
        text-align: left;
    }
    
    /* Responsive images */
    img {
        max-width: 100%;
        height: auto;
    }
    
    /* Responsive tables if any */
    table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Responsive iframes */
    iframe {
        max-width: 100%;
        height: auto;
        min-height: 300px;
    }
    
    /* Back to top button positioning */
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
    }
    
    /* Quote cards */
    .quote-card {
        padding: var(--spacing-2xl) var(--spacing-xl);
    }
    
    /* Team member cards */
    .team-member {
        margin-bottom: var(--spacing-2xl);
    }
    
    .team-photo {
        height: 300px;
    }
    
    /* Feature items */
    .feature-item {
        padding: var(--spacing-xl);
    }
    
    .feature-icon {
        width: 64px;
        height: 64px;
        margin-bottom: var(--spacing-md);
    }
    
    /* Card improvements */
    .card-content {
        padding: var(--spacing-lg);
    }
    
    /* Grid layouts with inline styles - make responsive */
    div[style*="grid-template-columns: repeat(auto-fit"] {
        grid-template-columns: 1fr !important;
    }
    
    div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    html {
        font-size: 14px;
    }
    
    .header-container {
        padding: 0.75rem 1rem;
    }
    
    .logo-img {
        height: 38px;
    }
    
    .site-title {
        padding-left: 0.5rem;
        gap: 0.125rem;
    }
    
    .site-title-link {
        font-size: 1.125rem;
    }
    
    .tagline {
        font-size: 0.75rem;
    }
    
    .hero-label,
    .section-label {
        font-size: 0.75rem;
        padding: 0.375rem 0.875rem;
    }
    
    .hero-section {
        padding: var(--spacing-xl) 1rem;
    }
    
    .hero-image {
        height: 250px;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .stats-section {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }
    
    .section,
    .section-alt {
        padding: var(--spacing-xl) 1rem;
    }
    
    .section-header {
        margin-bottom: var(--spacing-xl);
    }
    
    .form-wrapper {
        padding: var(--spacing-xl) 1rem;
    }
    
    .footer-content {
        padding: var(--spacing-xl) 1rem;
    }
    
    .footer-logos {
        justify-content: center;
        flex-direction: column;
        align-items: center;
        gap: var(--spacing-md);
    }
    
    .footer-logos img {
        height: 50px;
    }
    
    .copyright {
        padding: var(--spacing-md) 1rem;
        font-size: 0.75rem;
        line-height: 1.6;
    }
    
    .btn {
        font-size: 0.9375rem;
        padding: 0.875rem 1.25rem;
    }
    
    .card-content {
        padding: var(--spacing-md);
    }
    
    .team-info {
        padding: var(--spacing-lg);
    }
    
    .feature-item {
        padding: var(--spacing-lg);
    }
    
    .quote-card {
        padding: var(--spacing-xl) var(--spacing-lg);
    }
    
    /* Ensure text is readable */
    p {
        font-size: 1rem;
        line-height: 1.7;
    }
    
    /* Mobile menu adjustments */
    .main-navigation {
        padding: 1.5rem 1rem;
    }
    
    .mobile-menu-toggle {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }
}

/* Extra small devices */
@media (max-width: 360px) {
    html {
        font-size: 13px;
    }
    
    .header-container {
        padding: 0.5rem 0.75rem;
    }
    
    .logo-img {
        height: 32px;
    }
    
    .site-title-link {
        font-size: 1rem;
    }
    
    .tagline {
        font-size: 0.6875rem;
    }
    
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .section,
    .section-alt {
        padding: var(--spacing-lg) 0.75rem;
    }
}

/* ===================================
   UTILITIES
   =================================== */

.text-center {
    text-align: center;
}

.max-w-prose {
    max-width: 65ch;
}

.mb-0 { margin-bottom: 0 !important; }
.mt-1 { margin-top: var(--spacing-md); }
.mt-2 { margin-top: var(--spacing-xl); }
.mt-3 { margin-top: var(--spacing-2xl); }
.mb-1 { margin-bottom: var(--spacing-md); }
.mb-2 { margin-bottom: var(--spacing-xl); }
.mb-3 { margin-bottom: var(--spacing-2xl); }

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 56px;
    height: 56px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--primary-teal) 0%, var(--primary-green) 100%);
    color: white;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-lg);
    z-index: 999;
    cursor: pointer;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

/* Loading Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* ===================================
   RESPONSIVE UTILITY CLASSES
   =================================== */

.responsive-grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.responsive-grid-3col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.responsive-order-1 {
    order: 1;
}

.responsive-order-2 {
    order: 2;
}

@media (max-width: 1024px) {
    .responsive-grid-2col {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .responsive-grid-3col {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .responsive-order-1,
    .responsive-order-2 {
        order: 0;
    }
}

@media (max-width: 768px) {
    .responsive-grid-2col,
    .responsive-grid-3col {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* ===================================
   FEEDBACK & COMMENTS STYLES
   =================================== */

.feedback-form {
    max-width: 100%;
}

.required {
    color: #dc2626;
    font-weight: 600;
}

/* Comments Container */
#comments-container {
    margin-top: var(--spacing-2xl);
}

.comment-item {
    background: white;
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

.comment-item:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-teal);
}

.comment-item.comment-pending {
    border-left: 4px solid #f59e0b;
    background: #fffbeb;
}

.pending-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: #f59e0b;
    color: white;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--spacing-md);
}

.comment-author {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.comment-name {
    color: var(--gray-900);
    font-size: 1.125rem;
    font-weight: 600;
}

.comment-date {
    color: var(--text-light);
    font-size: 0.875rem;
}

.comment-body {
    margin-bottom: var(--spacing-lg);
}

.comment-body p {
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 0;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* Comment Replies */
.comment-replies {
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-xl);
    border-top: 1px solid var(--gray-200);
}

.reply-item {
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
    border-left: 3px solid var(--primary-teal);
}

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

.reply-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
}

.reply-author {
    color: var(--primary-teal);
    font-weight: 600;
    font-size: 0.9375rem;
}

.reply-date {
    color: var(--text-light);
    font-size: 0.8125rem;
}

.reply-body {
    margin-top: var(--spacing-sm);
}

.reply-body p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 0;
    white-space: pre-wrap;
    word-wrap: break-word;
    font-size: 0.9375rem;
}

/* Comment Actions */
.comment-actions {
    margin-top: var(--spacing-lg);
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--gray-200);
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.btn-reply {
    background: var(--primary-teal);
    color: white;
    border: none;
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    margin-right: 0.5rem;
}

.btn-reply:hover {
    background: var(--teal-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.btn-delete {
    background: #dc2626;
    color: white;
    border: none;
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
}

.btn-delete:hover {
    background: #b91c1c;
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.btn-delete:disabled {
    background: var(--gray-400);
    cursor: not-allowed;
    transform: none;
}

.btn-approve {
    background: #16a34a;
    color: white;
    border: none;
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    margin-right: 0.5rem;
}

.btn-approve:hover {
    background: #15803d;
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.btn-approve:disabled {
    background: var(--gray-400);
    cursor: not-allowed;
    transform: none;
}

.btn-reject {
    background: #dc2626;
    color: white;
    border: none;
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
}

.btn-reject:hover {
    background: #b91c1c;
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.btn-reject:disabled {
    background: var(--gray-400);
    cursor: not-allowed;
    transform: none;
}

/* Reply Form */
.reply-form-container {
    margin-top: var(--spacing-lg);
    padding: var(--spacing-lg);
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
}

.reply-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.reply-textarea {
    width: 100%;
    padding: 0.875rem 1.125rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    min-height: 100px;
    transition: all var(--transition-fast);
    background: white;
}

.reply-textarea:focus {
    outline: none;
    border-color: var(--primary-teal);
    box-shadow: 0 0 0 3px rgba(59, 139, 165, 0.1);
}

.reply-form-actions {
    display: flex;
    gap: var(--spacing-md);
    justify-content: flex-end;
}

/* Loading and Empty States */
.loading-message,
.no-comments {
    text-align: center;
    padding: var(--spacing-4xl);
    color: var(--text-secondary);
    font-size: 1.125rem;
}

.error-message {
    text-align: center;
    padding: var(--spacing-4xl);
    color: #dc2626;
    font-weight: 600;
}

/* Admin Controls */
#admin-controls {
    margin-bottom: var(--spacing-2xl);
}

#admin-login-section {
    margin-top: var(--spacing-2xl);
}

/* Responsive Comments */
@media (max-width: 768px) {
    .comment-item {
        padding: var(--spacing-lg);
    }

    .comment-name {
        font-size: 1rem;
    }

    .comment-date {
        font-size: 0.8125rem;
    }

    .reply-item {
        padding: var(--spacing-md);
    }

    .reply-form-container {
        padding: var(--spacing-md);
    }

    .reply-form-actions {
        flex-direction: column;
    }

    .reply-form-actions .btn {
        width: 100%;
    }
}
