/*
Theme Name: Astra Child - Specialty Pharmacy
Theme URI: https://example.com/specialty-pharmacy-theme
Description: Custom, high-speed, SEO-optimized child theme for Specialty Pharmacy and healthcare services.
Author: Specialty Pharmacy Developer
Author URI: https://example.com
Template: astra
Version: 1.0.0
Text Domain: specialty-pharmacy-child
*/

/* ==========================================================================
   Healthcare Core Design System (CSS Custom Properties)
   ========================================================================== */
:root {
    /* Colors */
    --primary-color: #0070D2;
    --primary-hover: #0055AA;
    --secondary-color: #0A84FF;
    --bg-light: #F5FAFF;
    --bg-accent: #EAF4FF;
    --neutral-white: #FFFFFF;
    --neutral-light: #F7F7F7;
    --neutral-dark: #222222;
    --text-muted: #555555;
    
    /* Semantic Colors */
    --color-success: #2EC4B6;
    --color-warning: #FFBF00;
    --color-danger: #E63946;
    
    /* Layout & Spacing */
    --max-width: 1200px;
    --section-spacing-desktop: 80px;
    --section-spacing-mobile: 40px;
    --card-radius: 14px;
    --button-radius: 8px;
    
    /* Typography Scales */
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* ==========================================================================
   Base Layout Overrides & Helper Classes
   ========================================================================== */
body {
    font-family: var(--font-body);
    color: var(--neutral-dark);
    background-color: var(--neutral-white);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--neutral-dark);
}

.container-custom {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   SEO Optimized Content Sections (Below the fold layout helper)
   ========================================================================== */
.seo-content-section {
    background-color: var(--neutral-light);
    padding: var(--section-spacing-desktop) 0;
    border-top: 1px solid #E2E8F0;
    margin-top: 40px;
}

@media (max-width: 768px) {
    .seo-content-section {
        padding: var(--section-spacing-mobile) 0;
    }
}

.seo-content-wrap {
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.8;
    font-size: 16px;
}

.seo-content-wrap h2 {
    font-size: 28px;
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.seo-content-wrap h3 {
    font-size: 22px;
    margin-top: 25px;
    margin-bottom: 12px;
}

/* Internal Linking Grid */
.internal-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
    margin: 25px 0;
}

.internal-link-card {
    background: var(--neutral-white);
    border: 1px solid var(--bg-accent);
    padding: 15px;
    border-radius: var(--button-radius);
    text-align: center;
    text-decoration: none;
    font-weight: 500;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.internal-link-card:hover {
    background: var(--bg-accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 112, 210, 0.05);
}

/* Interactive FAQ Accordion */
.faq-accordion {
    margin-top: 30px;
}

.faq-item {
    border-bottom: 1px solid #E2E8F0;
    padding: 15px 0;
}

.faq-question {
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--neutral-dark);
}

.faq-answer {
    padding-top: 10px;
    color: var(--text-muted);
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

/* ==========================================================================
   WooCommerce Specialty Layout Adaptations
   ========================================================================== */

/* Conversion Zone (Above the Fold) */
.product-conversion-zone {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    .product-conversion-zone {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Dosage Swatches styling */
.dosage-swatches {
    display: flex;
    gap: 10px;
    margin: 20px 0;
}

.dosage-swatch {
    border: 2px solid #D2D6DC;
    border-radius: var(--button-radius);
    padding: 8px 16px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
}

.dosage-swatch.active, .dosage-swatch:hover {
    border-color: var(--primary-color);
    background-color: var(--bg-accent);
    color: var(--primary-color);
}

/* Prescription Upload Styling */
.prescription-upload-box {
    background-color: var(--bg-light);
    border: 2px dashed var(--secondary-color);
    padding: 20px;
    border-radius: var(--card-radius);
    margin: 20px 0;
    text-align: center;
}

.prescription-upload-box input[type="file"] {
    display: none;
}

.prescription-upload-label {
    display: block;
    cursor: pointer;
    font-weight: 600;
    color: var(--primary-color);
}

.prescription-upload-label i {
    font-size: 24px;
    display: block;
    margin-bottom: 8px;
}

.prescription-upload-status {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 5px;
}
