/* Strategic Color Design for Shekhtman IP - Patent Law Firm */

/* CSS Variables - Refined Color System */
:root {
    /* Base Colors - 85% Almond/White, 15% strategic accents */
    --color-almond-50: #fefcf9;
    --color-almond-100: #fbf8f4;
    --color-almond-200: #f8f2ec;
    --color-almond-300: #f4ebe3;
    --color-almond-400: #f1e5da;
    --color-almond-500: #efdecd; /* Primary Almond */
    --color-almond-600: #d7c8b9;
    --color-almond-700: #bfb2a5;
    --color-almond-800: #a79c91;
    --color-almond-900: #8f867d;
    
    --color-black: #000000;
    --color-white: #ffffff;
    
    /* Accent Colors - Simplified to strategic use only */
    --color-deepblue-500: #1e3a8a; /* Trust - strategic use only */
    --color-deepblue-600: #18327c;
    --color-deepblue-700: #122a6e;
    
    --color-richgreen-500: #065f46; /* Growth - strategic use only */
    --color-richgreen-600: #05553f;
    --color-richgreen-700: #044b38;
    
    --color-copper-500: #b45309; /* Highlight - special use only */
    --color-copper-600: #a14907;
    --color-copper-700: #8e3f05;
    --color-copper-800: #7c3504;
    
    /* Semantic Colors */
    --color-success: #065f46;
    --color-error: #dc2626;
    --color-warning: #f59e0b;
    --color-info: #1e3a8a;
    
    /* UI Colors - Softer, more subtle */
    --color-background: var(--color-white);
    --color-surface: var(--color-white);
    --color-text: #1f2937; /* Dark gray for better contrast on mobile */
    --color-text-secondary: #4b5563; /* Medium gray */
    --color-border: rgba(0, 0, 0, 0.1);
    
    /* Softer Gray Scale with almond tint */
    --color-gray-50: #fbfaf8;
    --color-gray-100: #f6f5f2;
    --color-gray-200: #eae8e4;
    --color-gray-300: #dcdad6;
    --color-gray-400: #b1afa9;
    --color-gray-500: #8a8882;
    --color-gray-600: #6c6a64;
    --color-gray-700: #55534e;
    --color-gray-800: #3c3a36;
    --color-gray-900: #2a2825;
}

/* Base styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Inter-fallback', system-ui, sans-serif;
    line-height: 1.6;
    color: var(--color-text);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', 'Poppins-fallback', 'Inter', system-ui, sans-serif;
    font-weight: 600;
    color: var(--color-black);
    line-height: 1.2;
    letter-spacing: -0.025em;
}

h1 {
    font-weight: 700;
    letter-spacing: -0.035em;
}

/* Typography utilities */
.font-heading {
    font-family: 'Poppins', 'Poppins-fallback', 'Inter', system-ui, sans-serif;
}

.font-body {
    font-family: 'Inter', 'Inter-fallback', system-ui, sans-serif;
}

/* Typography Scale */
.text-display-lg {
    font-size: 3.75rem;
    line-height: 1;
    font-weight: 700;
}

.text-display-md {
    font-size: 3rem;
    line-height: 1.2;
    font-weight: 700;
}

.text-display-sm {
    font-size: 2.25rem;
    line-height: 1.2;
    font-weight: 600;
}

.text-heading-lg {
    font-size: 1.875rem;
    line-height: 1.3;
    font-weight: 600;
}

.text-heading-md {
    font-size: 1.5rem;
    line-height: 1.4;
    font-weight: 600;
}

.text-heading-sm {
    font-size: 1.25rem;
    line-height: 1.4;
    font-weight: 600;
}

.text-body-lg {
    font-size: 1.125rem;
    line-height: 1.6;
}

.text-body-md {
    font-size: 1rem;
    line-height: 1.6;
}

.text-body-sm {
    font-size: 0.875rem;
    line-height: 1.6;
}

/* Custom container - only use if needed, Tailwind has .container class */
.custom-container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Link styles */
a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--color-secondary);
}

/* Button styles - Strategic Color Implementation */
.btn, .custom-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    border-radius: 0.5rem;
    font-family: 'Inter', 'Inter-fallback', system-ui, sans-serif;
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.btn:focus-visible, .custom-btn:focus-visible {
    outline: 2px solid var(--color-copper-500);
    outline-offset: 2px;
}

.custom-btn-primary {
    background: linear-gradient(135deg, var(--color-deepblue-500), var(--color-deepblue-700));
    color: var(--color-white);
    box-shadow: 0 2px 8px rgba(30, 58, 138, 0.15);
}

.custom-btn-primary:hover {
    background: linear-gradient(135deg, var(--color-deepblue-600), var(--color-deepblue-800));
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(30, 58, 138, 0.2);
}

.custom-btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(30, 58, 138, 0.15);
}

.custom-btn-secondary {
    background: transparent;
    color: var(--color-deepblue-500);
    border: 1.5px solid rgba(30, 58, 138, 0.3);
    backdrop-filter: blur(8px);
}

.custom-btn-secondary:hover {
    background: rgba(30, 58, 138, 0.05);
    border-color: var(--color-deepblue-500);
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(30, 58, 138, 0.1);
}

.custom-btn-outline {
    background: transparent;
    color: var(--color-white);
    border: 1.5px solid var(--color-white);
}

.custom-btn-outline:hover {
    background: rgba(30, 58, 138, 0.05);
    transform: translateY(-2px);
}

.custom-btn-success {
    background: linear-gradient(135deg, var(--color-richgreen-500), var(--color-richgreen-700));
    color: var(--color-white);
    box-shadow: 0 2px 8px rgba(6, 95, 70, 0.15);
}

.custom-btn-success:hover {
    background: linear-gradient(135deg, var(--color-richgreen-600), var(--color-richgreen-800));
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(6, 95, 70, 0.2);
}

.custom-btn-copper {
    background: linear-gradient(135deg, var(--color-copper-500), var(--color-copper-700));
    color: var(--color-white);
    box-shadow: 0 2px 8px rgba(180, 83, 9, 0.15);
}

.custom-btn-copper:hover {
    background: linear-gradient(135deg, var(--color-copper-500), var(--color-copper-700));
    transform: translateY(-2px) scale(1.02);
    box-shadow: 
        0 4px 20px rgba(180, 83, 9, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset,
        0 0 0 2px rgba(255, 255, 255, 0.05);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.custom-btn-copper:active {
    transform: translateY(0) scale(0.98);
    background: linear-gradient(135deg, var(--color-copper-600), var(--color-copper-800));
    box-shadow: 
        0 1px 4px rgba(180, 83, 9, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}

/* Custom button sizes */
.custom-btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.custom-btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
    font-weight: 600;
}

/* Custom card styles - use custom-card prefix to avoid Tailwind conflicts */
.custom-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.custom-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 0, 0, 0.12);
}

.custom-card-deepblue {
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.95), rgba(18, 42, 110, 0.95));
    color: var(--color-white);
    box-shadow: 0 2px 8px rgba(30, 58, 138, 0.1);
}

.custom-card-deepblue:hover {
    border-color: rgba(30, 58, 138, 0.3);
    box-shadow: 0 8px 24px rgba(30, 58, 138, 0.15);
}

.custom-card-deepblue h1,
.custom-card-deepblue h2,
.custom-card-deepblue h3,
.custom-card-deepblue h4,
.custom-card-deepblue h5,
.custom-card-deepblue h6 {
    color: var(--color-white);
}

.custom-card-richgreen {
    background: linear-gradient(135deg, rgba(6, 95, 70, 0.95), rgba(4, 75, 56, 0.95));
    color: var(--color-white);
    box-shadow: 0 2px 8px rgba(6, 95, 70, 0.1);
}

.custom-card-richgreen:hover {
    border-color: rgba(6, 95, 70, 0.3);
    box-shadow: 0 8px 24px rgba(6, 95, 70, 0.15);
}

.custom-card-richgreen h1,
.custom-card-richgreen h2,
.custom-card-richgreen h3,
.custom-card-richgreen h4,
.custom-card-richgreen h5,
.custom-card-richgreen h6 {
    color: var(--color-white);
}

.custom-card-copper {
    background: linear-gradient(135deg, rgba(180, 83, 9, 0.95), rgba(142, 63, 5, 0.95));
    color: var(--color-white);
    box-shadow: 0 2px 8px rgba(180, 83, 9, 0.1);
}

.custom-card-copper:hover {
    border-color: rgba(180, 83, 9, 0.3);
    box-shadow: 0 8px 24px rgba(180, 83, 9, 0.15);
}

.custom-card-copper h1,
.custom-card-copper h2,
.custom-card-copper h3,
.custom-card-copper h4,
.custom-card-copper h5,
.custom-card-copper h6 {
    color: var(--color-white);
}

/* Card accent borders */
.custom-card-accent-left {
    border-left: 4px solid var(--color-deepblue-500);
}

.custom-card-accent-top {
    border-top: 4px solid var(--color-richgreen-500);
}

.custom-card-accent-copper {
    border-top: 4px solid var(--color-copper-500);
}

/* Card sizes */
.custom-card-lg {
    padding: 2rem;
    border-radius: 1rem;
}

.custom-card-xl {
    padding: 2.5rem;
    border-radius: 1.25rem;
}

/* Section styles - Background Strategy */
.custom-section {
    padding: 4rem 0;
    position: relative;
}

.custom-section-bg-almond {
    background: linear-gradient(135deg, var(--color-almond-100) 0%, var(--color-white) 100%);
}

.custom-section-bg-glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.custom-section-bg-deepblue {
    background: linear-gradient(135deg, var(--color-deepblue-500) 0%, var(--color-deepblue-700) 100%);
    color: var(--color-white);
}

.custom-section-bg-deepblue h1,
.custom-section-bg-deepblue h2,
.custom-section-bg-deepblue h3,
.custom-section-bg-deepblue h4,
.custom-section-bg-deepblue h5,
.custom-section-bg-deepblue h6 {
    color: var(--color-white);
}

.custom-section-bg-richgreen {
    background: linear-gradient(135deg, var(--color-richgreen-500) 0%, var(--color-richgreen-700) 100%);
    color: var(--color-white);
}

.custom-section-bg-richgreen h1,
.custom-section-bg-richgreen h2,
.custom-section-bg-richgreen h3,
.custom-section-bg-richgreen h4,
.custom-section-bg-richgreen h5,
.custom-section-bg-richgreen h6 {
    color: var(--color-white);
}

.custom-section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    display: inline-block;
    color: var(--color-black);
}

.custom-section-title-accent {
    color: var(--color-deepblue-500);
}

.custom-section-title::after {
    content: '';
    position: absolute;
    bottom: -0.75rem;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--color-copper-500);
    border-radius: 2px;
}

.custom-section-subtitle {
    font-size: 1.25rem;
    color: var(--color-gray-600);
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem;
    line-height: 1.6;
}

/* Form styles - Semantic Color */
.custom-form-group {
    margin-bottom: 1.5rem;
}

.custom-form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--color-gray-700);
    font-family: 'Inter', system-ui, sans-serif;
}

.custom-form-input,
.custom-form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--color-gray-300);
    border-radius: 0.375rem;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 1rem;
    color: var(--color-gray-800);
    background: var(--color-white);
    transition: all 0.2s ease;
}

.custom-form-input:focus,
.custom-form-textarea:focus {
    outline: none;
    border-color: var(--color-deepblue-500);
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
    background: var(--color-white);
}

.custom-form-input-success {
    border-color: var(--color-success);
}

.custom-form-input-error {
    border-color: var(--color-error);
}

.custom-form-textarea {
    min-height: 120px;
    resize: vertical;
}

.custom-form-submit {
    width: 100%;
}

/* Form validation messages */
.custom-form-error {
    color: var(--color-error);
    font-size: 0.875rem;
    margin-top: 0.25rem;
    font-family: 'Inter', system-ui, sans-serif;
}

.custom-form-success {
    color: var(--color-success);
    font-size: 0.875rem;
    margin-top: 0.25rem;
    font-family: 'Inter', system-ui, sans-serif;
}

/* Custom grid utilities - use custom- prefix to avoid Tailwind conflicts */
.custom-grid {
    display: grid;
    gap: 2rem;
}

.custom-grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

.custom-grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.custom-grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.custom-grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* Responsive utilities */
@media (max-width: 768px) {
    .custom-section {
        padding: 4rem 0;
    }
    
    .custom-section-title {
        font-size: 2.25rem;
    }
    
    .custom-section-subtitle {
        font-size: 1.25rem;
        margin-bottom: 3rem;
    }
    
    .custom-card {
        padding: 1.5rem;
    }
    
    .custom-btn {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    /* Force all custom grids to single column on mobile */
    .custom-grid {
        grid-template-columns: 1fr;
    }
    
    .custom-grid-cols-2,
    .custom-grid-cols-3,
    .custom-grid-cols-4 {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .custom-grid-cols-3,
    .custom-grid-cols-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Animation utilities */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

.fade-in-delay-1 {
    animation-delay: 0.1s;
}

.fade-in-delay-2 {
    animation-delay: 0.2s;
}

.fade-in-delay-3 {
    animation-delay: 0.3s;
}

.fade-in-delay-4 {
    animation-delay: 0.4s;
}

.fade-in-delay-5 {
    animation-delay: 0.5s;
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Loading spinner */
.spinner {
    width: 3rem;
    height: 3rem;
    border: 3px solid var(--color-gray-200);
    border-top: 3px solid var(--color-secondary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

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

/* Decorative elements - Subtle with opacity */
.decorative-line {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.1), transparent);
    margin: 1.5rem 0;
}

.decorative-line-deepblue {
    background: linear-gradient(90deg, transparent, rgba(30, 58, 138, 0.3), transparent);
}

.decorative-line-copper {
    background: linear-gradient(90deg, transparent, rgba(180, 83, 9, 0.3), transparent);
}

.decorative-dot {
    width: 6px;
    height: 6px;
    background: rgba(180, 83, 9, 0.5);
    border-radius: 50%;
    display: inline-block;
    margin: 0 0.25rem;
}

.decorative-dot-deepblue {
    background: rgba(30, 58, 138, 0.5);
}

.decorative-dot-richgreen {
    background: rgba(6, 95, 70, 0.5);
}

/* Gradient accents */
.glow-blue {
    background: radial-gradient(circle at 50% 50%, rgba(30, 58, 138, 0.15), transparent 70%);
}

.glow-green {
    background: radial-gradient(circle at 50% 50%, rgba(6, 95, 70, 0.15), transparent 70%);
}

.glow-copper {
    background: radial-gradient(circle at 50% 50%, rgba(180, 83, 9, 0.15), transparent 70%);
}

/* Soft shadows */
.soft-shadow {
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.04),
        0 1px 4px rgba(0, 0, 0, 0.02),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.soft-shadow-lg {
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.06),
        0 2px 8px rgba(0, 0, 0, 0.03),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

/* Gradient text - Strategic Use */
.text-gradient-deepblue {
    background: linear-gradient(135deg, var(--color-deepblue-500), var(--color-deepblue-300));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-innovation {
    background: linear-gradient(135deg, var(--color-richgreen-500), var(--color-copper-500));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Status indicators */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    font-family: 'Inter', system-ui, sans-serif;
}

.status-success {
    background: var(--color-success);
    color: var(--color-white);
}

.status-error {
    background: var(--color-error);
    color: var(--color-white);
}

.status-warning {
    background: var(--color-warning);
    color: var(--color-black);
}

.status-info {
    background: var(--color-info);
    color: var(--color-white);
}

.status-pending {
    background: var(--color-copper-500);
    color: var(--color-white);
}

/* Background patterns - Subtle Texture */
.bg-pattern-dots {
    background-image: radial-gradient(var(--color-gray-400) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.1;
}

.bg-pattern-grid {
    background-image: linear-gradient(var(--color-gray-300) 1px, transparent 1px),
                      linear-gradient(90deg, var(--color-gray-300) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.1;
}

.bg-pattern-law {
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%231e3a8a' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.bg-pattern-innovation {
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23065f46' fill-opacity='0.03'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Utility classes */
.text-balance {
    text-wrap: balance;
}

.leading-relaxed {
    line-height: 1.625;
}

.leading-loose {
    line-height: 2;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--color-almond-200);
}

::-webkit-scrollbar-thumb {
    background: var(--color-deepblue-500);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-deepblue-600);
}

/* Selection styles */
::selection {
    background-color: rgba(30, 58, 138, 0.2);
    color: var(--color-black);
}

/* Focus styles */
:focus {
    outline: 2px solid var(--color-copper-500);
    outline-offset: 2px;
}

:focus:not(:focus-visible) {
    outline: none;
}

:focus-visible {
    outline: 2px solid var(--color-copper-500);
    outline-offset: 2px;
}

/* Color utility classes */
.text-deepblue {
    color: var(--color-deepblue-500);
}

.text-richgreen {
    color: var(--color-richgreen-500);
}

.text-copper {
    color: var(--color-copper-500);
}

.bg-almond {
    background: var(--color-almond-100);
}

.bg-almond-dark {
    background: var(--color-almond-300);
}

.border-deepblue {
    border-color: var(--color-deepblue-500);
}

.border-richgreen {
    border-color: var(--color-richgreen-500);
}

.border-copper {
    border-color: var(--color-copper-500);
}

/* Hover color utilities */
.hover\:text-deepblue:hover {
    color: var(--color-deepblue-500);
}

.hover\:text-richgreen:hover {
    color: var(--color-richgreen-500);
}

.hover\:bg-deepblue:hover {
    background: var(--color-deepblue-500);
}

.hover\:bg-richgreen:hover {
    background: var(--color-richgreen-500);
}

/* Glass morphism effects */
.glass {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.glass-dark {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Subtle border gradients */
.border-gradient {
    border: 1px solid transparent;
    background: 
        linear-gradient(var(--color-white), var(--color-white)) padding-box,
        linear-gradient(135deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.02)) border-box;
}

.border-gradient-blue {
    border: 1px solid transparent;
    background: 
        linear-gradient(var(--color-white), var(--color-white)) padding-box,
        linear-gradient(135deg, rgba(30, 58, 138, 0.1), rgba(30, 58, 138, 0.05)) border-box;
}

.border-gradient-green {
    border: 1px solid transparent;
    background: 
        linear-gradient(var(--color-white), var(--color-white)) padding-box,
        linear-gradient(135deg, rgba(6, 95, 70, 0.1), rgba(6, 95, 70, 0.05)) border-box;
}

/* Opacity utilities */
.opacity-10 {
    opacity: 0.1;
}

.opacity-15 {
    opacity: 0.15;
}

.opacity-20 {
    opacity: 0.2;
}

.opacity-25 {
    opacity: 0.25;
}

.opacity-30 {
    opacity: 0.3;
}

/* Gradient text effects */
.text-gradient-subtle {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.6));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Hero image overlay */
.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-overlay img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.15;
    mix-blend-mode: multiply;
}

.hero-content {
    position: relative;
    z-index: 10;
}

/* Refined hero section */
.hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--color-almond-100) 0%, var(--color-white) 100%);
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23000000' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
    z-index: 0;
}

.hero-gradient-1 {
    position: absolute;
    width: 24rem;
    height: 24rem;
    border-radius: 50%;
    filter: blur(4rem);
    opacity: 0.5;
}

.hero-gradient-2 {
    position: absolute;
    width: 24rem;
    height: 24rem;
    border-radius: 50%;
    filter: blur(4rem);
    opacity: 0.5;
}

/* Portrait photo support for team cards */
.portrait-container {
    position: relative;
    overflow: hidden;
}

.portrait-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.portrait-initials {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

/* ===== MOBILE RESPONSIVE FIXES ===== */
@media (max-width: 768px) {
    /* Fix horizontal overflow - large decorative elements are handled by hero gradient adjustments below */
    
    /* Ensure body doesn't overflow */
    body {
        overflow-x: clip;
        background: linear-gradient(135deg, #fbf8f4 0%, #f8f2ec 100%);
        min-height: 100vh;
    }
    
    /* Text contrast already fixed via CSS variables */
    
    /* Fix navbar transparency - make more opaque on mobile */
    header.glass,
    .glass {
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }
    
    /* Fix mobile menu background */
    #mobileMenu.glass {
        background: rgba(255, 255, 255, 0.98);
    }
    
    /* Fix custom button font consistency */
    .custom-btn {
        font-family: 'Inter', 'Inter-fallback', system-ui, sans-serif;
    }
    
    /* Full-width custom buttons in main content on mobile */
    section .custom-btn:not(.custom-btn-sm) {
        width: 100%;
        justify-content: center;
    }
    
    /* Hero section - ensure overlay works */
    .hero {
        min-height: auto;
    }
    
    .hero-overlay {
        position: absolute;
        inset: 0;
    }
    
    /* Form inputs - prevent zoom on iOS */
    .custom-form-input,
    .custom-form-textarea,
    select.custom-form-input {
        font-size: 16px;
    }
    
    /* Custom card with absolute icons - prevent overflow */
    .custom-card {
        overflow: visible;
    }
    
    /* Adjust custom card icon positioning for mobile */
    .custom-card .absolute.-top-3.-right-3 {
        top: 0.5rem;
        right: 0.5rem;
    }
    
    /* Hero gradients - adjust for mobile */
    .hero-gradient-1,
    .hero-gradient-2 {
        width: 12rem;
        height: 12rem;
    }
    
    /* Fix glass-dark sections for mobile */
    .glass-dark {
        background: rgba(0, 0, 0, 0.9);
    }
    
    /* Ensure containers don't overflow */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
        max-width: 100%;
    }
    
    /* Fix section overflow */
    section {
        overflow-x: hidden;
    }
}

@media (max-width: 480px) {
    /* Extra small screens */
    .hero-gradient-1,
    .hero-gradient-2 {
        width: 8rem;
        height: 8rem;
    }
}