/* =========================================
   Spovigo Brand Experience Demo
   Theme: White Corporate / Trusted Manufacturer
   Font: Shippori Mincho (Headings), Inter (Body)
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Shippori+Mincho:wght@400;500;700&family=Inter:wght@300;400;600&display=swap');

:root {
    --color-bg: #f9fafb;
    /* Off-white foundation */
    --color-white: #ffffff;
    --color-text-main: #1a1f2e;
    /* Dark Navy-Black for text */
    --color-text-sub: #5c6270;
    --color-accent: #0f4c81;
    /* Corporate Blue (Classic) */
    --color-border: #e2e4e8;

    --font-heading: "Shippori Mincho", serif;
    --font-body: "Inter", sans-serif;
}

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

body {
    background-color: var(--color-bg);
    color: var(--color-text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

img {
    max-width: 100%;
    display: block;
}

ul {
    list-style: none;
}

/* Header */
.demo-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 40px;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1.2rem;
    color: #fff;
    /* Hero is dark image usually, so white logo initially */
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.logo .sub {
    font-weight: 300;
    opacity: 0.8;
    font-size: 0.9rem;
}

.back-link {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    background: rgba(0, 0, 0, 0.2);
    padding: 8px 16px;
    border-radius: 4px;
    backdrop-filter: blur(4px);
}

.back-link:hover {
    background: #fff;
    color: var(--color-text-main);
}

/* Hero Section (Static Full Screen) */
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: -1;
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.2);
    /* Slight tint for text readability */
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    margin-top: 40px;
    /* Visual balance */
}

.hero-sub {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    letter-spacing: 0.2em;
    margin-bottom: 24px;
    opacity: 0.9;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.1em;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.scroll-prompt {
    position: absolute;
    bottom: 40px;
    right: 40px;
    /* ALVAMOS/Corporate style often places scroll right or center */
    color: #fff;
    font-size: 0.75rem;
    letter-spacing: 2px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.scroll-prompt .line {
    width: 1px;
    height: 60px;
    background: #fff;
    animation: extendLine 2s infinite;
}

@keyframes extendLine {
    0% {
        transform: scaleY(0);
        transform-origin: top;
    }

    50% {
        transform: scaleY(1);
        transform-origin: top;
    }

    51% {
        transform: scaleY(1);
        transform-origin: bottom;
    }

    100% {
        transform: scaleY(0);
        transform-origin: bottom;
    }
}

/* Sections General */
.section {
    padding: 50px 0;
}

.container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
}

.container.narrow {
    max-width: 1000px;
}

.section-label {
    font-family: var(--font-body);
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    color: var(--color-accent);
    margin-bottom: 40px;
    font-weight: 600;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 40px;
    text-align: center;
}

/* Philosophy (Shelf) */
.philosophy-section {
    background: var(--color-white);
}

.philosophy-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.philo-item h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 30px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--color-border);
}

.philo-text-main {
    font-size: 1.6rem;
    line-height: 1.8;
    font-family: var(--font-heading);
    color: var(--color-text-main);
    font-weight: 500;
}

.principle-list li {
    padding: 12px 0;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    font-family: var(--font-heading);
    font-size: 1.1rem;
}

.principle-list li span {
    font-family: var(--font-body);
    font-weight: 700;
    color: var(--color-accent);
    margin-right: 16px;
    font-size: 0.9rem;
}

.corp-image-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.corp-image-row img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    filter: grayscale(100%);
    /* Corporate monochrome vibe */
    transition: 0.5s;
}

.corp-image-row img:hover {
    filter: grayscale(0%);
}

/* Athlete Section */
.athlete-section {
    background: #f4f5f7;
}

.athlete-layout {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 60px;
    align-items: start;
}

.athlete-photo {
    position: relative;
}

.athlete-photo img {
    width: 100%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.athlete-name-overlay {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background: #fff;
    padding: 24px 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.athlete-name-overlay h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    line-height: 1;
    margin-bottom: 4px;
}

.athlete-name-overlay span {
    font-size: 0.85rem;
    color: var(--color-text-sub);
    letter-spacing: 1px;
}

.athlete-info {
    padding-top: 20px;
}

.info-block {
    margin-bottom: 40px;
}

.info-block h4 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    border-left: 4px solid var(--color-accent);
    padding-left: 16px;
    margin-bottom: 20px;
}

.info-block dl {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 12px;
}

.info-block dt {
    font-size: 0.9rem;
    color: var(--color-text-sub);
    font-weight: 600;
}

.info-block dd {
    font-size: 1rem;
}

.career-list li {
    padding: 8px 0;
    border-bottom: 1px dotted var(--color-border);
    font-size: 0.95rem;
}

.quote-box {
    background: #fff;
    padding: 15px;
    border: 1px solid var(--color-border);
}

.quote-box p {
    font-family: var(--font-heading);
    font-style: normal;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--color-text-main);
}

.quote-box strong {
    color: var(--color-accent);
    font-weight: 700;
}

/* Why Section */
.why-section {
    background: #fff;
    text-align: center;
}

.essay-content {
    margin-bottom: 60px;
}

.essay-content p {
    font-family: var(--font-heading);
    font-size: 1rem;
    line-height: 2.2;
    margin-bottom: 2rem;
}

.ceo-sig {
    text-align: right;
    border-top: 1px solid var(--color-border);
    display: inline-block;
    padding-top: 20px;
    padding-left: 40px;
}

.ceo-sig span {
    display: block;
    font-size: 0.8rem;
    color: var(--color-text-sub);
}

.ceo-sig strong {
    font-family: var(--font-heading);
    font-size: 1.2rem;
}

/* Gallery Section */
.gallery-section {
    background: #fff;
    padding-top: 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 300px 300px;
    gap: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 76, 129, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-overlay span {
    color: #fff;
    font-family: var(--font-heading);
    /* Shippori Mincho */
    font-size: 1.2rem;
    letter-spacing: 0.1em;
    transform: translateY(10px);
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover .gallery-overlay span {
    transform: translateY(0);
}

/* Grid Layout specific */
.item-large {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
}

/* Responsive Gallery */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        /* Auto height stack */
    }

    .item-large {
        grid-column: span 1;
        grid-row: span 1;
        height: 300px;
    }

    .gallery-item {
        height: 300px;
    }
}

/* News Section */
.news-section {
    background: var(--color-bg);
}

.section-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--color-text-main);
    padding-bottom: 10px;
}

.section-title-sm {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1.5rem;
}

.view-all {
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: underline;
}

.news-list li {
    padding: 24px 0;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    gap: 30px;
    align-items: center;
    transition: 0.2s;
}

.news-list li:hover {
    background: rgba(0, 0, 0, 0.02);
    padding-left: 10px;
}

.news-list .date {
    font-family: var(--font-body);
    font-weight: 600;
    color: var(--color-text-sub);
}

.news-list .cat {
    font-size: 0.75rem;
    background: var(--color-text-main);
    color: #fff;
    padding: 4px 10px;
    border-radius: 2px;
    text-transform: uppercase;
    min-width: 80px;
    text-align: center;
}

.news-list .news-title {
    font-weight: 500;
}

/* Footer */
.demo-footer {
    background: #111;
    color: #fff;
    text-align: center;
    padding: 80px 0 40px;
}

.cta-box h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 16px;
}

.cta-box p {
    margin-bottom: 40px;
    color: #aaa;
}

.cta-btn {
    display: inline-block;
    background: #fff;
    color: #000;
    padding: 16px 50px;
    font-weight: 700;
    border-radius: 50px;
}

.cta-btn:hover {
    background: var(--color-accent);
    color: #fff;
}

.copyright {
    margin-top: 80px;
    font-size: 0.8rem;
    color: #555;
    border-top: 1px solid #333;
    padding-top: 20px;
}

/* Fixed CTA */
.fixed-cta {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--color-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    box-shadow: 0 5px 20px rgba(15, 76, 129, 0.4);
    z-index: 900;
}

.fixed-cta:hover {
    transform: scale(1.1);
}

/* Responsive */
@media (max-width: 768px) {
    .philosophy-grid {
        grid-template-columns: 1fr;
    }

    .athlete-layout {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 3rem;
    }

    .news-list li {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

/* =========================================
   Demo Site Logo Styles
   ========================================= */
.brand-logo-container {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--color-border);
}

.brand-logo {
    height: 48px;
    /* Slightly larger for presence */
    width: auto;
    display: block;
}

@media (max-width: 768px) {
    .brand-logo {
        height: 36px;
        margin: 0 auto;
        /* Center on mobile */
    }

    .brand-logo-container {
        text-align: center;
    }
}