/*
Theme Name: Tanabe Theme
Author: Assistant
Description: A custom WordPress theme based on Tanabe Pharma design.
Version: 1.0.0
*/

/* Custom Styles for Tanabe Pharma Clone */

:root {
    --bs-primary: #0056b3;
    --bs-primary-rgb: 0, 86, 179;
    --bs-secondary: #6c757d;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #333;
    -webkit-font-smoothing: antialiased;
    letter-spacing: -0.2px;
}

/* Utilities & Overrides */
.text-primary {
    color: var(--bs-primary) !important;
}

.text-dark {
    color: #1a1a1a !important;
}

.bg-primary {
    background-color: var(--bs-primary) !important;
}

.bg-primary-subtle {
    background-color: rgba(var(--bs-primary-rgb), 0.1) !important;
}

.btn-primary {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
    background-color: #004494 !important;
    border-color: #004494 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(var(--bs-primary-rgb), 0.25) !important;
}

.hover-primary {
    transition: color 0.2s ease;
}

.hover-primary:hover {
    color: var(--bs-primary) !important;
}

.hover-white {
    transition: color 0.2s ease;
}

.hover-white:hover {
    color: #ffffff !important;
}

.transition-all {
    transition: all 0.3s ease;
}

.transition-colors {
    transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

.cursor-pointer {
    cursor: pointer;
}

.shrink-0 {
    flex-shrink: 0;
}

.tracking-wider {
    letter-spacing: 0.05em;
}

.letter-spacing {
    letter-spacing: 1px;
}

.heading-line {
    width: 60px;
    height: 4px;
}

/* Navbar */
.navbar {
    box-shadow: 0 2px 15px rgba(0,0,0,0.03);
}

.logo-text {
    letter-spacing: -0.5px;
}

.nav-link-custom {
    font-size: 1.05rem;
    position: relative;
    padding-bottom: 5px;
}

.nav-link-custom::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--bs-primary);
    transition: width 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

@media (min-width: 992px) {
    .nav-link-custom:hover::after {
        width: 100%;
    }
}

/* Hero Section */
.hero {
    min-height: 600px;
    height: auto;
    background-color: #f8f9fa;
    position: relative;
    display: flex;
    align-items: center;
    padding: 80px 0 120px;
    overflow: hidden;
}

@media (max-width: 991.98px) {
    .hero {
        min-height: auto;
        padding: 60px 15px 100px;
    }
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://images.unsplash.com/photo-1542810634-71277d95dcbb?auto=format&fit=crop&w=2000&q=80');
    background-size: cover;
    background-position: center;
    opacity: 0.85;
    z-index: -1;
    animation: slowZoom 20s infinite alternate;
}

@keyframes slowZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.05); }
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    letter-spacing: -1.5px;
    text-shadow: 0 2px 10px rgba(255, 255, 255, 0.9);
    line-height: 1.2;
}

.hero-bottom-gradient {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 180px;
    background: linear-gradient(to top, rgba(255,255,255,1) 0%, rgba(255,255,255,0.8) 40%, rgba(255,255,255,0) 100%);
    z-index: 0;
    pointer-events: none;
}

.slider-controls .dot {
    width: 10px;
    height: 10px;
    background-color: #cbd5e1;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.slider-controls .dot.active {
    background-color: var(--bs-primary);
    width: 32px;
    border-radius: 6px;
}

.slider-controls .dot:not(.active):hover {
    background-color: #94a3b8;
}

/* News Section */
.news-item {
    border: 1px solid transparent;
}

.news-item.hover-bg:hover {
    background-color: #f8fcfd;
    border-color: rgba(var(--bs-primary-rgb), 0.1);
    transform: translateX(5px);
}

.news-title {
    transition: color 0.2s ease;
}

.news-item:hover .news-title {
    color: var(--bs-primary) !important;
}

.bg-custom-light {
    background-color: rgba(var(--bs-primary-rgb), 0.05) !important;
}

.hover-scale {
    display: inline-block;
}

.hover-scale:hover {
    transform: scale(1.15) rotate(5deg);
}

/* Museum Card */
.museum-card {
    background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
}

.museum-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1) !important;
}

.pattern-container {
    background-color: #f8fafc;
}

.pattern-bg {
    background-image: radial-gradient(#cbd5e1 1px, transparent 1px);
    background-size: 16px 16px;
    opacity: 0.5;
}

.museum-card:hover .img-zoom {
    transform: scale(1.1);
}

/* Split Feature Sections */
.feature-section {
    padding: 0;
    overflow: hidden;
}

.feature-bg {
    position: absolute;
    top: 0;
    height: 100%;
    width: 55%;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.feature-bg.img-right {
    right: 0;
    clip-path: polygon(10% 0, 100% 0, 100% 100%, 0 100%);
}

.feature-bg.img-left {
    left: 0;
    clip-path: polygon(0 0, 100% 0, 90% 100%, 0 100%);
}

.feature-card {
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    background-color: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08) !important;
}

.view-more-btn {
    transition: all 0.3s ease;
}

.view-more-btn i {
    transition: transform 0.3s ease;
}

.view-more-btn:hover i {
    transform: translateX(4px);
}

/* Mobile adjustments for feature sections */
@media (max-width: 991.98px) {
    .feature-bg {
        width: 100%;
        height: 40%;
        opacity: 0.2;
        clip-path: none !important;
    }
    
    .feature-bg.img-left, .feature-bg.img-right {
        left: 0;
        right: 0;
        top: 0;
    }
    
    .feature-card {
        background-color: rgba(255, 255, 255, 0.98) !important;
        margin-top: 2rem;
    }
}

/* Links bottom section */
.list-links a.hover-link {
    transition: all 0.25s ease;
    opacity: 0.85;
}

.list-links a.hover-link:hover {
    opacity: 1;
    transform: translateX(6px);
}


/* Footer */
footer {
    background-color: #1a202c !important;
}

.footer-list a {
    text-decoration: none;
    display: inline-block;
}

.footer-list a:hover {
    text-decoration: none;
}

.return-top {
    border: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.return-top:hover {
    background-color: #004494 !important;
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 91, 181, 0.3) !important;
}
