/* About Page - Figma design match (Pixleo node 2960-213) */
/* Theme, font & style: https://www.figma.com/design/EKUsClUhLaaR4LieE3HtcO/Pixleo?node-id=2960-213 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* Figma design tokens (same as Pixleo) */
:root {
    --about-figma-red: #d00000;
    --about-figma-red-hover: #b00000;
    --about-figma-bg-dark: #1a1a1a;
    --about-figma-bg-secondary: #2a2a2a;
    --about-figma-text-dark: #1a1a1a;
    --about-figma-text-body: #374151;
    --about-figma-text-muted: #6b7280;
    --about-figma-radius: 8px;
    --about-figma-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    --about-figma-shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.15);
}

/* ========== DESTINATION MODAL ========== */
.about-page-figma .destination-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.about-page-figma .destination-modal.hidden {
    display: none;
}

.about-page-figma .destination-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
}

.about-page-figma .destination-modal-panel {
    position: relative;
    z-index: 1;
    width: min(940px, 100%);
    background: rgba(18, 18, 22, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
}

.about-page-figma .destination-modal-close {
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
}

.about-page-figma .destination-modal-grid {
    display: grid;
    grid-template-columns: 32% 68%;
}

.about-page-figma .destination-modal-image-wrap {
    min-height: 420px;
    position: relative;
}

.about-page-figma .destination-modal-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-page-figma .destination-modal-flag-wrap {
    position: absolute;
    top: 1.25rem;
    left: 1.25rem;
    padding: 0.4rem 0.6rem;
    border-radius: 0.5rem;
    background: rgba(0, 0, 0, 0.75);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
}

.about-page-figma .destination-modal-content {
    padding: 1.5rem 1.75rem;
    color: #e5e7eb;
}

.about-page-figma .destination-modal-heading-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.about-page-figma .destination-modal-flag {
    width: 70px;
    height: auto;
    object-fit: contain;
}

.about-page-figma .destination-modal-content h3,
.about-page-figma .destination-modal-content h4 {
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
}

.about-page-figma .destination-modal-content h3 {
    font-size: 3rem;
    line-height: 1.05;
}

.about-page-figma .destination-modal-content h4 {
    margin: 1rem 0 0.55rem;
    font-size: 3rem;
    line-height: 1.2;
}

.about-page-figma .destination-modal-content ul {
    margin: 0;
    padding-left: 1.3rem;
    list-style-type: disc;
}

.about-page-figma .destination-modal-content li {
    margin-bottom: 0.3rem;
    font-size: 0.95rem;
    line-height: 1.45;
}

@media (max-width: 900px) {
    .about-page-figma .destination-modal-grid {
        grid-template-columns: 1fr;
    }

    .about-page-figma .destination-modal-image-wrap {
        min-height: 220px;
    }

    .about-page-figma .destination-modal-content h3,
    .about-page-figma .destination-modal-content h4 {
        font-size: 2rem;
    }
}

/* Base: theme + font (Inter) – dark mode only */
.about-page-figma {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-size: 16px;
    line-height: 1.6;
    color: #e5e7eb;
    background-color: #111827;
}
.about-page-figma * {
    font-family: inherit;
}

/* ========== HERO - Updated Design ========== */
.about-page-figma .hero.hero-dark {
    display: flex;
    align-items: center;
    padding: 0;
    position: relative;
    overflow: hidden;
}

/* Use higher-specificity selector so this background overrides the default hero
   and add extra top padding so the heading sits lower below the main header */
.about-page-figma .hero.hero-dark.about-hero-section {
    background: url('/static/img/aboutusbackground.png') no-repeat center;
    background-size: cover;
    min-height: 600px;
    padding-top: 5rem; /* pushes "UK'S PREMIER" down away from the header */
}

/* Some global hero styles also set a background on ::before.
   Override that here so we always see aboutusbackground.png on About Us. */
.about-page-figma .hero.hero-dark.about-hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('/static/img/aboutusbackground.png') no-repeat center;
    background-size: cover;
    z-index: 0;
}

/* Ensure overlay sits above the background image */
.about-page-figma .hero.hero-dark.about-hero-section .hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
}

/* And the main hero content above both */
.about-page-figma .hero.hero-dark.about-hero-section .hero-content {
    position: relative;
    z-index: 2;
}

.about-page-figma .hero-overlay {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.6) 100%) !important;
}

.about-page-figma .hero-content {
    position: relative;
    z-index: 2;
}

.about-page-figma .hero-content h1 {
    font-family: 'Inter', sans-serif !important;
    font-weight: 700 !important;
    line-height: 1.1 !important;
    color: #ffffff !important;
    margin-bottom: 1.5rem !important;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.about-page-figma .hero-content p {
    font-family: 'Inter', sans-serif !important;
    font-weight: 400 !important;
    line-height: 1.6 !important;
    color: rgba(255, 255, 255, 0.95) !important;
    margin-bottom: 2rem !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Logo styling */
.about-page-figma .hero-content img {
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
}

.about-page-figma .hero-content h2 {
    font-family: 'Inter', sans-serif !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.05em;
}

/* Thin divider between hero and export destinations */
.about-page-figma .about-export-divider {
    border: 0;
    height: 1px;
    width: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.25), transparent);
    margin: 0;
}

/* ========== EXPORT DESTINATIONS SECTION - dark black background ========== */
.about-page-figma .export-destinations-section {
    background: #0c0c0c !important; /* pure black background like in screenshot */
    padding: 4rem 0 4.5rem !important;
}

.about-page-figma .export-destinations-section h2 {
    font-family: 'Inter', sans-serif !important;
    font-size: 2.25rem !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    margin-bottom: 1.5rem !important;
    line-height: 1.3;
}

.about-page-figma .export-destinations-section p {
    font-family: 'Inter', sans-serif !important;
    font-size: 1.0625rem !important;
    font-weight: 400 !important;
    line-height: 1.65 !important;
    color: #d1d5db !important;
}

/* Inner wrapper with subtle fade-in from below */
.about-page-figma .export-destinations-section .export-inner {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    animation: about-export-fade-in 0.9s ease-out 0.1s both;
}

/* Country logos styling */
.about-page-figma .export-destinations-section .country-logo-item {
    background: transparent;
    border: 0;
    padding: 0;
    cursor: pointer;
    width: 100%;
    transition: transform 0.25s ease, filter 0.25s ease;
}

.about-page-figma .export-destinations-section .country-logo-item:hover {
    transform: scale(1.1);
}

.about-page-figma .export-destinations-section .country-logo-item:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.7);
    outline-offset: 6px;
    border-radius: 10px;
}

.about-page-figma .export-destinations-section .country-logo-item img {
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.about-page-figma .export-destinations-section .country-logo-item:hover img {
    opacity: 1;
}

/* Stats cards - red numbers to match theme */
.about-page-figma .export-destinations-section .stat-card {
    background: #1f2937 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 0.75rem !important;
    padding: 1.5rem !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-page-figma .export-destinations-section .stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
}

.about-page-figma .export-destinations-section .stat-number {
    font-family: 'Inter', sans-serif !important;
    font-size: 2.25rem !important;
    font-weight: 700 !important;
    color: var(--about-figma-red) !important;
}

.about-page-figma .export-destinations-section .stat-label {
    font-family: 'Inter', sans-serif !important;
    font-size: 0.875rem !important;
    color: #9ca3af !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Fade-in animation keyframes */
@keyframes about-export-fade-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== MISSION & VALUES (dark bg) ========== */
.about-page-figma .about-mission-section {
    background: #1f2937 !important;
    padding: 4rem 0 !important;
}
.about-page-figma .about-mission-section .text-xl {
    font-family: 'Inter', sans-serif !important;
    color: #9ca3af !important;
}

.about-page-figma .about-mission-section h2,
.about-page-figma .about-mission-section h3 {
    font-family: 'Inter', sans-serif !important;
    font-weight: 700 !important;
    color: #f3f4f6 !important;
}

.about-page-figma .about-mission-section p {
    font-family: 'Inter', sans-serif !important;
    color: #9ca3af !important;
}

.about-page-figma .about-mission-section .mission-icon-wrap {
    width: 5rem;
    height: 5rem;
    background: var(--about-figma-red) !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.about-page-figma .about-mission-section .mission-icon-wrap i,
.about-page-figma .about-mission-section .mission-icon-wrap [data-lucide] {
    color: #ffffff !important;
}

/* ========== SERVICES - red accents ========== */

.about-page-figma .about-services-section .service-icon-wrap {
    width: 4rem;
    height: 4rem;
    background: rgba(208, 0, 0, 0.1) !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-page-figma .about-services-section .service-icon-wrap i,
.about-page-figma .about-services-section .service-icon-wrap [data-lucide] {
    color: var(--about-figma-red) !important;
}

/* Services section – dark bg */
.about-page-figma .about-services-section {
    background: #111827 !important;
}
.about-page-figma .about-services-section .card {
    background: #1f2937 !important;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--about-figma-radius);
    box-shadow: var(--about-figma-shadow);
}
.about-page-figma .about-services-section h2,
.about-page-figma .about-services-section h3 {
    font-family: 'Inter', sans-serif !important;
    font-weight: 700 !important;
    color: #f3f4f6 !important;
}
.about-page-figma .about-services-section p,
.about-page-figma .about-services-section ul {
    font-family: 'Inter', sans-serif !important;
    color: #9ca3af !important;
}

.about-page-figma .about-services-section .text-green-500,
.about-page-figma .about-services-section [data-lucide="check"] {
    color: var(--about-figma-red) !important;
}

.about-page-figma .about-services-section ul li [data-lucide="check"] {
    vertical-align: middle;
    flex-shrink: 0;
}

/* ========== TEAM SECTION (dark bg) ========== */
.about-page-figma .about-team-section {
    background: #1f2937 !important;
}

.about-page-figma .about-team-section h2,
.about-page-figma .about-team-section h3 {
    font-family: 'Inter', sans-serif !important;
    font-weight: 700 !important;
    color: #f3f4f6 !important;
}

.about-page-figma .about-team-section .team-role {
    color: var(--about-figma-red) !important;
}
.about-page-figma .about-team-section p.text-gray-600 {
    font-family: 'Inter', sans-serif !important;
    color: #9ca3af !important;
}

/* Director avatar: user icon in circle */
.about-page-figma .about-team-section .director-avatar {
    background: rgba(208, 0, 0, 0.08) !important;
    border: 2px solid rgba(208, 0, 0, 0.2);
    transition: background 0.2s ease, border-color 0.2s ease;
}
.about-page-figma .about-team-section .director-avatar [data-lucide] {
    color: var(--about-figma-red) !important;
}
.about-page-figma .about-team-section .director-avatar:hover {
    background: rgba(208, 0, 0, 0.12) !important;
    border-color: rgba(208, 0, 0, 0.35);
}

/* ========== CTA SECTION - red background ========== */
.about-page-figma .about-cta-section {
    background: var(--about-figma-red) !important;
    color: #ffffff !important;
    padding: 4rem 0 !important;
}

.about-page-figma .about-cta-section h2 {
    font-family: 'Inter', sans-serif !important;
    font-weight: 700 !important;
    color: #ffffff !important;
}

.about-page-figma .about-cta-section p {
    color: #ffffff !important;
    opacity: 1 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.about-page-figma .about-cta-section .btn.bg-white {
    background: #ffffff !important;
    color: var(--about-figma-red) !important;
    font-family: 'Inter', sans-serif !important;
    font-weight: 600 !important;
    border-radius: var(--about-figma-radius) !important;
    padding: 0.875rem 1.75rem !important;
}

.about-page-figma .about-cta-section .btn.bg-white:hover {
    background: #f3f4f6 !important;
}

.about-page-figma .about-cta-section .btn-outline.border-white {
    border: 2px solid #ffffff !important;
    color: #ffffff !important;
    background: transparent !important;
    font-family: 'Inter', sans-serif !important;
    font-weight: 600 !important;
    border-radius: var(--about-figma-radius) !important;
    padding: 0.875rem 1.75rem !important;
}

.about-page-figma .about-cta-section .btn-outline.border-white:hover {
    background: #ffffff !important;
    color: var(--about-figma-red) !important;
}

/* Figma theme: links use red accent */
.about-page-figma a:not([class*="btn"]):not([class*="bg-"]) {
    color: var(--about-figma-red);
}
.about-page-figma a:not([class*="btn"]):not([class*="bg-"]):hover {
    color: var(--about-figma-red-hover);
}

/* Section rhythm (Figma-style spacing) */
.about-page-figma section {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

/* ========== Responsive - About page ========== */
@media (max-width: 768px) {
    .about-page-figma .about-hero-section .container,
    .about-page-figma .export-destinations-section .export-inner {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    .about-page-figma .hero-content h1 {
        font-size: 1.75rem !important;
    }
    .about-page-figma .hero-content p {
        font-size: 1rem !important;
    }
    .about-page-figma .export-destinations-section {
        padding: 2.5rem 0 !important;
    }
    .about-page-figma .export-destinations-section h2 {
        font-size: 1.5rem !important;
    }
    .about-page-figma .export-destinations-section .country-logo-item img {
        max-height: 48px;
    }
}

@media (max-width: 640px) {
    .about-page-figma section {
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
    }
}

/* Destination modal - stack on mobile */
.about-page-figma .destination-modal-panel {
    max-height: 90vh;
    overflow-y: auto;
}
@media (max-width: 768px) {
    .about-page-figma .destination-modal-grid {
        grid-template-columns: 1fr;
    }
    .about-page-figma .destination-modal-image-wrap {
        min-height: 200px;
    }
    .about-page-figma .destination-modal {
        padding: 0.75rem;
        align-items: flex-end;
    }
    .about-page-figma .destination-modal-panel {
        width: 100%;
        max-height: 85vh;
    }
}
