/* ============================================
   ANEWEX Front Page Custom Styles
   Sections:
     0. CSS Variables
     1. Global / Theme
     2. Header & Navigation
     3. Banner
     4. Pillars Section
     5. Products Section
     6. Services Section
     7. Workflow Section
     8. CRISPR Section
     9. Organoid Section
    10. Responsive
   ============================================ */


/* ============================================
   0. CSS VARIABLES
   ============================================ */
:root {
    --anewex-maroon:       #8B1E3F;
    --anewex-maroon-hover: #A41932;
    --anewex-gold:         #D4AF37;
    --anewex-light-gold:   #E8D4B8;
    --anewex-cream:        #F5F1ED;
    --anewex-dark-blue:    #7A0019;
}


/* ============================================
   1. GLOBAL / THEME
   ============================================ */
.theme-title h6 { color: var(--anewex-gold) !important; }
.theme-title h2 { color: #1C1E22 !important; }


/* ============================================
   2. HEADER & NAVIGATION
   ============================================ */
.logo-wrapper img {
    height: 55px;
    width: auto;
    max-width: 180px;
    transition: opacity 0.3s ease;
}
.logo-wrapper:hover img { opacity: 0.9; }

/* Auth buttons */
.auth-buttons {
    display: flex;
    gap: 12px;
    align-items: center;
}
.auth-buttons .btn {
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    padding: 9px 18px;
    letter-spacing: 0.3px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.auth-buttons .btn-outline-primary {
    background: transparent;
    color: var(--anewex-gold);
    border: 2px solid var(--anewex-gold);
}
.auth-buttons .btn-outline-primary:hover {
    background: var(--anewex-gold);
    color: #1C1E22;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.25);
}
.auth-buttons .btn-primary {
    background: var(--anewex-gold);
    color: #1C1E22;
    border: 2px solid var(--anewex-gold);
}
.auth-buttons .btn-primary:hover {
    background: var(--anewex-light-gold);
    border-color: var(--anewex-light-gold);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.25);
}

/* Nav links */
#headerMenu .nav-link {
    color: #1C1E22 !important;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.2px;
    transition: color 0.3s ease;
}
#headerMenu .nav-link:hover { color: var(--anewex-gold) !important; }

/* Contact CTA */
.btn-contact-cta {
    background: var(--anewex-gold);
    color: #1C1E22;
    border: none;
    border-radius: 6px;
    font-weight: 700;
    padding: 9px 18px;
    font-size: 12px;
    letter-spacing: 0.3px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-contact-cta:hover {
    background: var(--anewex-light-gold);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.25);
}

/* Search & cart icons */
.search-icon .btn,
.cart-icon .btn {
    color: var(--anewex-maroon);
    border-color: var(--anewex-light-gold);
    padding: 8px 12px;
    font-size: 13px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.search-icon .btn:hover,
.cart-icon .btn:hover {
    color: var(--anewex-gold);
    background: rgba(212, 175, 55, 0.08);
    border-color: var(--anewex-gold);
}


/* ============================================
   3. BANNER
   ============================================ */
.banner-content {
    background: rgba(0, 0, 0, 0.3);
    height: 100vh;
}
.banner-text h1 { color: white; }
.banner-text h6 { color: var(--anewex-light-gold); }

.primary-btn {
    background: var(--anewex-gold) !important;
    color: #1C1E22 !important;
    border-color: var(--anewex-gold) !important;
    padding: 12px 30px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    border-radius: 6px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
.primary-btn:hover {
    background: var(--anewex-light-gold) !important;
    border-color: var(--anewex-light-gold) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.35) !important;
}

.dark-btn {
    background: transparent !important;
    color: white !important;
    border-color: white !important;
    padding: 12px 30px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    border-radius: 6px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
.dark-btn:hover {
    background: white !important;
    color: var(--anewex-maroon) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.3) !important;
}


/* ============================================
   4. PILLARS SECTION
   ============================================ */
.pillars-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.pillar-card {
    background: #fff;
    border-radius: 12px;
    padding: 40px 30px;
    text-align: center;
    height: 100%;
    border-top: 4px solid transparent;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-top-color 0.3s ease;
}
.pillar-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    border-top-color: var(--anewex-gold);
}

.pillar-icon {
    font-size: 48px;
    color: var(--anewex-maroon);
    margin-bottom: 20px;
}
.pillar-title-jp {
    font-size: 20px;
    font-weight: 700;
    color: #222;
    margin-bottom: 4px;
}
.pillar-title-en {
    font-size: 16px;
    font-weight: 600;
    color: #555;
    margin-bottom: 16px;
}
.pillar-desc-jp {
    font-size: 14px;
    color: #444;
    line-height: 1.7;
    margin-bottom: 8px;
}
.pillar-desc-en {
    font-size: 13px;
    color: #777;
    line-height: 1.6;
    font-style: italic;
}


/* ============================================
   5. PRODUCTS SECTION
   ============================================ */
.products-section {
    padding: 80px 0;
    background: linear-gradient(180deg, var(--anewex-cream) 0%, #fff 100%);
}

.product-group-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--anewex-maroon);
    margin: 40px 0 20px;
    padding-left: 15px;
    padding-bottom: 12px;
    border-left: 4px solid var(--anewex-gold);
    border-bottom: 2px solid var(--anewex-gold);
    display: inline-block;
}

.product-card {
    background: #FEFDFB;
    border: 1px solid #F0F0F0;
    border-radius: 12px;
    padding: 28px 24px;
    height: 100%;
    position: relative;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.product-card:hover {
    transform: translateY(-6px);
    border-color: var(--anewex-gold);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.1);
}

.badge-new {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--anewex-gold);
    color: #1C1E22;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
}

.product-title-jp {
    font-size: 16px;
    font-weight: 700;
    color: var(--anewex-maroon);
    margin-bottom: 2px;
}
.product-title-en {
    font-size: 14px;
    font-weight: 600;
    color: #999;
    font-style: italic;
    margin-bottom: 14px;
}
.product-spec {
    font-size: 13px;
    color: #444;
    line-height: 1.7;
    margin-bottom: 6px;
    padding-left: 20px;
    position: relative;
}
.product-spec i {
    color: var(--anewex-gold);
    position: absolute;
    left: 0;
    margin-right: 6px;
}
.product-application {
    font-size: 13px;
    color: #666;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #ddd;
}
.product-application strong { color: #333; }

.qc-badge {
    display: inline-block;
    background: var(--anewex-maroon);
    color: #fff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin: 12px 0;
    border-top: 1px solid #eee;
}
.qc-badge i {
    color: var(--anewex-gold);
    margin-right: 4px;
}

.product-actions {
    margin-top: 16px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.product-actions .btn-sm {
    font-size: 12px;
    padding: 6px 14px;
    border-radius: 20px;
}

.btn-datasheet,
.btn-quote {
    flex: 1;
    font-size: 11px;
    font-weight: 700;
    padding: 7px 10px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    text-decoration: none !important;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-datasheet {
    background: transparent;
    border: 1.5px solid var(--anewex-gold);
    color: var(--anewex-maroon);
}
.btn-datasheet:hover {
    background: var(--anewex-gold);
    color: #1C1E22;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.25);
}
.btn-quote {
    background: var(--anewex-gold);
    border: 1.5px solid var(--anewex-gold);
    color: #1C1E22;
}
.btn-quote:hover {
    background: var(--anewex-light-gold);
    border-color: var(--anewex-light-gold);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.25);
}


/* ============================================
   6. SERVICES SECTION
   ============================================ */
.services-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.service-card-custom {
    background: #fff;
    border-left: 4px solid var(--anewex-gold);
    border-radius: 8px;
    padding: 30px 24px;
    height: 100%;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-card-custom:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.service-title-jp {
    font-size: 18px;
    font-weight: 700;
    color: var(--anewex-maroon);
    margin-bottom: 2px;
}
.service-title-en {
    font-size: 13px;
    color: #999;
    font-style: italic;
    margin-bottom: 12px;
}
.service-turnaround {
    display: inline-block;
    background: rgba(139, 30, 63, 0.08);
    color: var(--anewex-gold);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 12px;
}
.service-turnaround i { color: var(--anewex-maroon); }

.service-description {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 16px;
}
.service-deliverable {
    font-size: 13px;
    color: #444;
    padding: 12px;
    padding-top: 10px;
    border-top: 1px dashed #ddd;
    background: rgba(139, 30, 63, 0.05);
    border-left: 3px solid var(--anewex-maroon);
    border-radius: 4px;
}
.service-deliverable strong { color: var(--anewex-maroon); }


/* ============================================
   7. WORKFLOW SECTION
   ============================================ */
.workflow-section {
    padding: 60px 0;
    background: var(--anewex-cream);
}

.workflow-step {
    background: linear-gradient(135deg, var(--anewex-cream) 0%, #fff 100%);
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.workflow-step:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}
.workflow-step::after {
    content: '→';
    position: absolute;
    right: -12px;
    top: 40px;
    font-size: 24px;
    color: #ccc;
}
.workflow-step:last-child::after { display: none; }

.step-number {
    width: 60px;
    height: 60px;
    line-height: 60px;
    border-radius: 50%;
    background: var(--anewex-maroon);
    color: #fff;
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    margin: 0 auto 20px;
    box-shadow: 0 8px 20px rgba(139, 30, 63, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}
.step-title-jp {
    font-size: 16px;
    font-weight: 700;
    color: var(--anewex-maroon);
    margin-bottom: 4px;
}
.step-title-en {
    font-size: 12px;
    color: #888;
    font-style: italic;
    margin-bottom: 10px;
}
.step-desc {
    font-size: 13px;
    color: #555;
    line-height: 1.6;
}


/* ============================================
   8. CRISPR SECTION
   ============================================ */
.crispr-section {
    padding: 80px 0;
    background: var(--anewex-dark-blue);
    color: #fff;
    position: relative;
    overflow: hidden;
}
.crispr-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.03)"/></svg>') repeat;
    background-size: 30px 30px;
}
.crispr-section .theme-title h2 { color: #fff; }
.crispr-section .theme-title h6 { color: rgba(255, 255, 255, 0.7); }

.crispr-headline-jp {
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}
.crispr-headline-en {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
}
.crispr-desc {
    font-size: 15px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 30px;
}

.crispr-workflow-step {
    background: var(--anewex-cream);
    border-left: 4px solid var(--anewex-gold);
    border-radius: 12px;
    padding: 24px 20px;
    text-align: center;
    height: 100%;
    transition: background 0.3s ease;
}
.crispr-workflow-step .step-num {
    font-size: 28px;
    font-weight: 700;
    color: var(--anewex-maroon);
    margin-bottom: 8px;
}
.crispr-workflow-step .step-title-jp {
    font-size: 16px;
    font-weight: 700;
    color: #1C1E22;
    margin-bottom: 4px;
}
.crispr-workflow-step .step-title-en {
    font-size: 13px;
    color: #666;
    margin-bottom: 10px;
}
.crispr-workflow-step .step-desc {
    font-size: 13px;
    color: #555;
    line-height: 1.6;
}

.crispr-turnaround {
    display: inline-block;
    background: rgba(79, 195, 247, 0.15);
    border: 1px solid rgba(79, 195, 247, 0.3);
    border-radius: 8px;
    padding: 16px 24px;
    margin-top: 30px;
    margin-bottom: 20px;
}
.crispr-turnaround .turnaround-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}
.crispr-turnaround .turnaround-value {
    font-size: 18px;
    font-weight: 700;
    color: #4fc3f7;
}

.btn-crispr-cta {
    background: #4fc3f7;
    color: #1a1a2e;
    border: none;
    padding: 14px 32px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 700;
    display: inline-block;
    text-decoration: none;
    transition: all 0.3s ease;
}
.btn-crispr-cta:hover {
    background: #81d4fa;
    color: #1a1a2e;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(79, 195, 247, 0.35);
}


/* ============================================
   9. ORGANOID SECTION
   ============================================ */
.organoid-section {
    padding: 80px 0;
    background: linear-gradient(180deg, #f0fdf4 0%, #fff 100%);
}

.organoid-headline-jp {
    font-size: 32px;
    font-weight: 700;
    color: var(--anewex-maroon);
    margin-bottom: 4px;
}
.organoid-headline-en {
    font-size: 18px;
    color: var(--anewex-gold);
    font-weight: 600;
    margin-bottom: 20px;
}
.organoid-desc {
    font-size: 15px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 30px;
}

.organoid-card {
    background: #fff;
    border-top: 3px solid #27ae60;
    border-radius: 12px;
    padding: 28px 24px;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.organoid-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(39, 174, 96, 0.15);
}

.organoid-title-jp {
    font-size: 16px;
    font-weight: 700;
    color: #222;
    margin-bottom: 2px;
}
.organoid-title-en {
    font-size: 14px;
    color: #555;
    margin-bottom: 12px;
}
.organoid-model {
    font-size: 13px;
    color: #27ae60;
    font-weight: 600;
    margin-bottom: 8px;
}
.organoid-application {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    padding-top: 8px;
    border-top: 1px dashed #ddd;
}

.organoid-actions {
    margin-top: auto;
    padding-top: 16px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.btn-buy-media {
    background: #27ae60;
    border: 1px solid #27ae60;
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.3s;
}
.btn-buy-media:hover {
    background: #219a52;
    color: #fff;
}

.btn-culture-service {
    background: transparent;
    border: 1px solid #27ae60;
    color: #27ae60;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}
.btn-culture-service:hover {
    background: #27ae60;
    color: #fff;
}

.btn-protocol {
    background: #2c3e50;
    border: none;
    color: #fff !important;
    padding: 12px 28px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    display: inline-block;
    text-decoration: none;
    transition: all 0.3s;
}
.btn-protocol:hover {
    background: #1a252f;
    transform: translateY(-2px);
}


/* ============================================
   10. RESPONSIVE
   ============================================ */
@media (max-width: 991px) {
    .workflow-step::after { display: none; }
    .workflow-step { margin-bottom: 20px; }

    .crispr-headline-jp,
    .organoid-headline-jp { font-size: 26px; }
}

@media (max-width: 767px) {
    .pillar-card,
    .product-card,
    .service-card-custom,
    .crispr-workflow-step,
    .organoid-card { margin-bottom: 16px; }
}