/* ═══════════════════════════════════════════════════
   DAMIRICA DESIGN TOKENS
   ═══════════════════════════════════════════════════ */
:root {
    --color-canvas: #F5F2EA;
    --color-surface: #FFFFFF;
    --color-ink: #1A1A1A;
    --color-midnight: #001F3F;
    --color-gold: #D4AF37;
    --color-navy: #101E36;
}

/* ═══════════════════════════════════════════════════
   DAMIRICA ABOUT HERO
   Full-width centered layout for the About page.
   ═══════════════════════════════════════════════════ */

.damirica-about-hero {
    position: relative;
    width: 100%;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #F5F2EA; /* Canvas-Cream */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 144px 24px; /* 3xl spacing */
    box-sizing: border-box;
    text-align: center;
    overflow: hidden;
}

/* Background Overlay for Image Contrast */
.damirica-about-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(245, 242, 234, 0.4); /* Light overlay on top of BG image */
    z-index: 0;
}

/* Background Grain Texture (Consistent with Brand) */
.damirica-about-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
    pointer-events: none;
    z-index: 1;
}

.damirica-about-hero__container {
    position: relative;
    z-index: 2;
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
}

.damirica-about-hero__counter-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    font-family: 'Playfair Display', serif;
    font-size: clamp(48px, 8vw, 80px); /* Larger than heading */
    line-height: 1;
}

.damirica-about-hero__counter {
    color: #D4AF37; /* Brand-Gold */
    font-weight: 500;
}

.damirica-about-hero__counter-suffix {
    color: #D4AF37;
    font-weight: 500;
    margin-left: 4px;
}

.damirica-about-hero__heading {
    font-family: 'Playfair Display', serif;
    font-size: clamp(32px, 5vw, 48px); /* Adjusted size */
    font-weight: 400;
    line-height: 1.2;
    color: #1A1A1A; /* Ink-Charcoal */
    margin: 0 0 32px 0;
    opacity: 0;
    transform: translateY(30px);
    animation: damiricaAboutFadeUp 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.damirica-about-hero__subheading {
    font-family: 'Inter', sans-serif;
    font-size: clamp(16px, 2vw, 20px);
    font-weight: 400;
    line-height: 1.6;
    color: #1A1A1A; /* Ink-Charcoal */
    max-width: 720px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(20px);
    animation: damiricaAboutFadeUp 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.3s forwards;
}

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

/* Mobile Adjustments */
@media (max-width: 768px) {
    .damirica-about-hero {
        min-height: 70vh;
        padding: 96px 20px;
    }
    
    .damirica-about-hero__heading {
        margin-bottom: 24px;
    }
}

/* ═══════════════════════════════════════════════════
   DAMIRICA ABOUT HERITAGE
   Overlapping grid layout for historical context.
   ═══════════════════════════════════════════════════ */

.damirica-about-heritage {
    width: 100%;
    background-color: var(--color-canvas);
    padding: 144px 0 144px 24px; /* Bleed right means 0 padding on right */
    box-sizing: border-box;
    overflow: hidden;
}

.damirica-about-heritage__container {
    max-width: 1400px;
    margin: 0 0 0 auto;
    display: flex;
    align-items: center;
    position: relative;
}

.damirica-about-heritage__text-col {
    flex: 0 0 45%;
    padding: 64px 0;
    z-index: 2;
    margin-right: -10%; /* Layered overlap without a box */
    position: relative;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
}

.damirica-about-heritage__heading {
    font-family: 'Playfair Display', serif;
    font-size: clamp(40px, 4vw, 56px);
    color: var(--color-ink);
    margin-bottom: 32px;
    line-height: 1.1;
}

.damirica-about-heritage__body {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    line-height: 1.7;
    color: var(--color-ink);
    max-width: 500px;
}

.damirica-about-heritage__image-col {
    flex: 0 0 60%;
    z-index: 1;
}

.damirica-about-heritage__image-wrapper {
    width: 100%;
    height: 700px;
    border-radius: 0; /* Bleed off right edge */
    overflow: hidden;
}

.damirica-heritage-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

@media (max-width: 1200px) {
    .damirica-about-heritage__text-col {
        flex: 0 0 50%;
        margin-right: -15%;
    }
    .damirica-about-heritage__image-col {
        flex: 0 0 65%;
    }
}

@media (max-width: 768px) {
    .damirica-about-heritage {
        padding: 96px 20px;
    }
    .damirica-about-heritage__container {
        flex-direction: column;
        margin: 0;
    }
    .damirica-about-heritage__text-col {
        flex: 1;
        margin-right: 0;
        margin-bottom: 40px;
        order: 2;
        padding: 0;
    }
    .damirica-about-heritage__image-col {
        width: 100%;
        order: 1;
        margin-bottom: 40px;
    }
    .damirica-about-heritage__image-wrapper {
        height: 400px;
    }
    .damirica-about-heritage__heading {
        font-size: 32px;
    }
}

/* ═══════════════════════════════════════════════════
   DAMIRICA ABOUT BRIDGE
   Bento Grid layout for modern export statistics.
   ═══════════════════════════════════════════════════ */

.damirica-about-bridge {
    width: 100%;
    background-color: var(--color-navy);
    padding: 144px 24px;
    box-sizing: border-box;
}

.damirica-about-bridge__grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 250px;
    gap: 16px;
}

.damirica-about-bridge__cell {
    background: transparent;
    border-radius: 4px; /* Sharper edges */
    overflow: hidden;
    position: relative;
    box-shadow: none;
}

.damirica-about-bridge__cell--main {
    grid-column: span 2;
    grid-row: span 2;
    padding: 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: transparent; /* Remove card background */
}

.damirica-about-bridge__heading {
    font-family: 'Playfair Display', serif;
    font-size: clamp(32px, 3vw, 44px);
    color: var(--color-gold); /* Gold heading */
    margin-bottom: 24px;
    line-height: 1.2;
}

.damirica-about-bridge__body {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    line-height: 1.7;
    color: var(--color-surface); /* White body */
    margin-bottom: 32px;
}

.damirica-bridge-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px; /* Sharper edges */
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.damirica-about-bridge__cell:hover .damirica-bridge-img {
    transform: scale(1.05);
}

/* CTA Button Styles (Consistent with Design System) */
.damirica-btn-midnight {
    display: inline-flex;
    align-items: center;
    padding: 16px 32px;
    background-color: #001F3F; /* Action-Midnight */
    color: #FFFFFF;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.damirica-btn-midnight:hover {
    opacity: 0.9;
    box-shadow: 0px 5px 15px rgba(0, 31, 63, 0.2);
}

.damirica-btn-arrow {
    margin-left: 12px;
    font-size: 18px;
    transition: transform 0.3s ease;
}

.damirica-btn-midnight:hover .damirica-btn-arrow {
    transform: translateX(4px);
}

@media (max-width: 1024px) {
    .damirica-about-bridge__grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 200px;
    }
    .damirica-about-bridge__cell--main {
        grid-column: span 2;
        grid-row: span 2;
    }
}

@media (max-width: 768px) {
    .damirica-about-bridge {
        padding: 96px 20px;
    }
    .damirica-about-bridge__grid {
        display: flex;
        flex-direction: column;
        gap: 24px;
    }
    .damirica-about-bridge__cell {
        height: auto;
    }
    .damirica-about-bridge__cell--main {
        padding: 32px;
    }
    .damirica-about-bridge__cell:not(.damirica-about-bridge__cell--main) {
        height: 300px;
    }
}
