/* Auxiliary Pages CSS - RNFAI - Modern Design */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #1f2937;
    background-color: #ffffff;
    font-size: 16px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    font-weight: 600;
    color: #111827;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    line-height: 1.6;
    margin-bottom: 1rem;
}

a {
    color: #1e3a8a;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #0891b2;
}

ul {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

li {
    margin-bottom: 0.5rem;
}

/* Layout */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    margin-bottom: 1rem;
    color: #111827;
}

.section-header p {
    font-size: 1.125rem;
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto;
}

/* Header */
.header {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 2rem 0;
    border-bottom: 1px solid #e5e7eb;
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://images.pexels.com/photos/3184465/pexels-photo-3184465.jpeg?auto=compress&cs=tinysrgb&w=1920&h=400&fit=crop') center/cover;
    opacity: 0.1;
    z-index: 1;
}

.header .container {
    position: relative;
    z-index: 2;
}

.brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.logo {
    width: 50px;
    height: 50px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.brand-name {
    font-size: 2rem;
    font-weight: 700;
    color: #1e3a8a;
    letter-spacing: -0.025em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Page Hero */
.page-hero {
    background: linear-gradient(135deg, #1e3a8a 0%, #0891b2 100%);
    padding: 6rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://images.pexels.com/photos/3184339/pexels-photo-3184339.jpeg?auto=compress&cs=tinysrgb&w=1920&h=600&fit=crop') center/cover;
    opacity: 0.2;
    z-index: 1;
}

.page-hero .container {
    position: relative;
    z-index: 2;
}

.page-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.page-hero p {
    font-size: 1.25rem;
    color: #e2e8f0;
    margin-bottom: 0.5rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.last-updated {
    font-size: 1rem;
    color: #cbd5e1;
    font-style: italic;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Content Sections */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 4rem;
}

.content-grid.reverse {
    direction: rtl;
}

.content-grid.reverse > * {
    direction: ltr;
}

.content-text h2 {
    margin-bottom: 1.5rem;
    color: #1e3a8a;
}

.content-text p {
    margin-bottom: 1.5rem;
    color: #4b5563;
}

.content-image {
    display: flex;
    justify-content: center;
}

.content-image img {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
    object-fit: cover;
    transition: transform 0.3s ease;
}

.content-image img:hover {
    transform: scale(1.02);
}

.image-placeholder {
    background-color: #f3f4f6;
    border: 2px dashed #d1d5db;
    border-radius: 12px;
    padding: 3rem;
    text-align: center;
    color: #6b7280;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    width: 100%;
    max-width: 400px;
}

.placeholder-icon {
    width: 80px;
    height: 80px;
    opacity: 0.6;
}

/* Mission and Vision Sections */
.mission, .vision {
    padding: 6rem 0;
    position: relative;
}

.mission {
    background-color: #ffffff;
}

.mission::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://images.pexels.com/photos/3184418/pexels-photo-3184418.jpeg?auto=compress&cs=tinysrgb&w=1920&h=800&fit=crop') center/cover;
    opacity: 0.03;
    z-index: 1;
}

.mission .container {
    position: relative;
    z-index: 2;
}

.vision {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.vision::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://images.pexels.com/photos/3184360/pexels-photo-3184360.jpeg?auto=compress&cs=tinysrgb&w=1920&h=800&fit=crop') center/cover;
    opacity: 0.05;
    z-index: 1;
}

.vision .container {
    position: relative;
    z-index: 2;
}

/* Values Section */
.values {
    padding: 6rem 0;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    position: relative;
}

.values::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://images.pexels.com/photos/3184287/pexels-photo-3184287.jpeg?auto=compress&cs=tinysrgb&w=1920&h=800&fit=crop') center/cover;
    opacity: 0.03;
    z-index: 1;
}

.values .container {
    position: relative;
    z-index: 2;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.value-card {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    text-align: center;
    border: 1px solid #e5e7eb;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.value-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #1e3a8a 0%, #0891b2 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.value-card:hover::before {
    opacity: 0.05;
}

.value-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.value-card > * {
    position: relative;
    z-index: 2;
}

.value-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1.5rem;
    display: block;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.value-card h3 {
    margin-bottom: 1rem;
    color: #1e3a8a;
}

.value-card p {
    color: #6b7280;
}

/* Team Section */
.team {
    padding: 6rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
}

.team::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://images.pexels.com/photos/3184292/pexels-photo-3184292.jpeg?auto=compress&cs=tinysrgb&w=1920&h=800&fit=crop') center/cover;
    opacity: 0.05;
    z-index: 1;
}

.team .container {
    position: relative;
    z-index: 2;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.team-member {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.team-member::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #1e3a8a 0%, #0891b2 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.team-member:hover::before {
    opacity: 0.03;
}

.team-member:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.team-member > * {
    position: relative;
    z-index: 2;
}

.member-photo {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
}

.member-photo img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #e5e7eb;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.team-member:hover .member-photo img {
    transform: scale(1.05);
}

.photo-placeholder {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #1e3a8a 0%, #0891b2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.25rem;
    margin: 0 auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.team-member h3 {
    margin-bottom: 0.5rem;
    color: #111827;
}

.member-title {
    color: #1e3a8a;
    font-weight: 500;
    margin-bottom: 1rem;
}

.member-bio {
    color: #6b7280;
    font-size: 0.95rem;
}

/* Legal Content */
.legal-content {
    padding: 6rem 0;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    position: relative;
}

.legal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://images.pexels.com/photos/8386422/pexels-photo-8386422.jpeg?auto=compress&cs=tinysrgb&w=1920&h=1200&fit=crop') center/cover;
    opacity: 0.02;
    z-index: 1;
}

.legal-content .container {
    position: relative;
    z-index: 2;
}

.content-wrapper {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
}

.legal-section {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e5e7eb;
    position: relative;
}

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

.legal-section h2 {
    color: #1e3a8a;
    margin-bottom: 1.5rem;
    font-size: 1.75rem;
    position: relative;
}

.legal-section h2::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #1e3a8a 0%, #0891b2 100%);
    border-radius: 2px;
}

.legal-section h3 {
    color: #111827;
    margin-bottom: 1rem;
    margin-top: 1.5rem;
    position: relative;
    padding-left: 1rem;
}

.legal-section h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background: linear-gradient(135deg, #1e3a8a 0%, #0891b2 100%);
    border-radius: 2px;
}

.legal-section p {
    color: #4b5563;
    margin-bottom: 1rem;
    line-height: 1.7;
}

.legal-section ul {
    color: #4b5563;
}

.legal-section li {
    margin-bottom: 0.75rem;
    position: relative;
    padding-left: 1.5rem;
}

.legal-section li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #1e3a8a;
    font-weight: bold;
    font-size: 1.2rem;
}

.contact-info {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 2rem;
    border-radius: 12px;
    margin-top: 1rem;
    border: 1px solid #e5e7eb;
    position: relative;
    overflow: hidden;
}

.contact-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://images.pexels.com/photos/3184298/pexels-photo-3184298.jpeg?auto=compress&cs=tinysrgb&w=800&h=400&fit=crop') center/cover;
    opacity: 0.05;
    z-index: 1;
}

.contact-info > * {
    position: relative;
    z-index: 2;
}

.contact-info p {
    margin-bottom: 0.5rem;
}

.contact-info a {
    font-weight: 500;
    color: #1e3a8a;
}

.contact-info a:hover {
    color: #0891b2;
}

/* Cookie Policy Specific Styles */
.cookie-category {
    margin-bottom: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 12px;
    border-left: 4px solid #1e3a8a;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cookie-category:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.cookie-category h3 {
    color: #1e3a8a;
    margin-bottom: 1rem;
    margin-top: 0;
}

.cookie-management {
    margin-bottom: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 12px;
    border: 1px solid #0891b2;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cookie-management:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.cookie-management h3 {
    color: #0891b2;
    margin-bottom: 1rem;
    margin-top: 0;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #111827 0%, #1f2937 100%);
    color: #d1d5db;
    padding: 4rem 0 2rem;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://images.pexels.com/photos/3184465/pexels-photo-3184465.jpeg?auto=compress&cs=tinysrgb&w=1920&h=600&fit=crop') center/cover;
    opacity: 0.05;
    z-index: 1;
}

.footer .container {
    position: relative;
    z-index: 2;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-brand .brand {
    margin-bottom: 1rem;
}

.footer-brand .brand-name {
    color: white;
    font-size: 1.5rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.footer-brand .logo {
    width: 40px;
    height: 40px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.footer-brand p {
    color: #d1d5db;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
}

.footer-section h4 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

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

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #d1d5db;
    transition: color 0.3s ease;
    position: relative;
}

.footer-section ul li a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #1e3a8a 0%, #0891b2 100%);
    transition: width 0.3s ease;
}

.footer-section ul li a:hover {
    color: #0891b2;
}

.footer-section ul li a:hover::after {
    width: 100%;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 2rem;
    text-align: center;
    color: #9ca3af;
    font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .page-hero h1 {
        font-size: 2.5rem;
    }
    
    .page-hero p {
        font-size: 1.125rem;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .content-grid.reverse {
        direction: ltr;
    }
    
    .values-grid,
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .legal-section h2 {
        font-size: 1.5rem;
    }
    
    .content-wrapper {
        padding: 2rem;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.25rem; }
}

@media (max-width: 480px) {
    .page-hero h1 {
        font-size: 2rem;
    }
    
    .brand-name {
        font-size: 1.75rem;
    }
    
    .page-hero p {
        font-size: 1rem;
    }
    
    .value-card,
    .team-member {
        padding: 1.5rem;
    }
    
    .cookie-category,
    .cookie-management {
        padding: 1.5rem;
    }
    
    .content-wrapper {
        padding: 1.5rem;
    }
    
    .legal-section h3 {
        padding-left: 0.75rem;
    }
    
    .legal-section li {
        padding-left: 1rem;
    }
}

/* Print Styles */
@media print {
    .header,
    .footer {
        display: none;
    }
    
    * {
        background: white !important;
        color: black !important;
    }
    
    .page-hero {
        background: white !important;
        padding: 2rem 0;
    }
    
    .page-hero h1,
    .page-hero p {
        color: black !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .value-card,
    .team-member,
    .content-wrapper {
        border: 2px solid #000000;
    }
    
    .legal-section h2::after,
    .legal-section h3::before {
        background: #000000;
    }
}

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

/* Focus Styles for Accessibility */
a:focus,
button:focus {
    outline: 2px solid #1e3a8a;
    outline-offset: 2px;
}

/* Selection Styles */
::selection {
    background-color: #1e3a8a;
    color: white;
}

::-moz-selection {
    background-color: #1e3a8a;
    color: white;
}