/* ==========================================================================
   Cedars Pharma - Standardized Style Sheets
   ========================================================================== */

/* --- CSS CUSTOM PROPERTIES (DESIGN SYSTEM) --- */
:root {
    /* Color Palette */
    --primary: #2e7d32;            /* Health-aligned Green */
    --primary-hover: #1b5e20;
    --secondary: #004a99;          /* Trust-aligned Blue */
    --secondary-hover: #003366;
    --canada-red: #da291c;         /* Official Canadian Maple Leaf Red */
    --text-main: #2c3e50;          /* Sleek Dark Blue-Grey */
    --text-muted: #4f5d75;         /* Muted Slate Gray */
    --border-color: rgba(225, 228, 232, 0.8);
    
    /* Surface & Backgrounds */
    --bg-base: #f0f2f5;
    --card-bg: #ffffff;
    --badge-bg: #eef2f6;
    --feature-bg: #ffffff;
    --feature-hover-bg: #f8fafc;
    
    /* Layout & Shadows */
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 12px;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
    --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.08);
    
    /* Transitions */
    --transition-base: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- TYPOGRAPHY (MONTSERRAT) --- */
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('fonts/montserrat-v31-latin-300.woff2') format('woff2');
}
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('fonts/montserrat-v31-latin-regular.woff2') format('woff2');
}
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('fonts/montserrat-v31-latin-600.woff2') format('woff2');
}
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('fonts/montserrat-v31-latin-700.woff2') format('woff2');
}

/* --- FONT AWESOME LOCAL IMPLEMENTATION --- */
/* Solid Icons (Globe, Clipboard, Envelope) */
@font-face {
    font-family: 'Font Awesome 6 Free';
    font-style: normal;
    font-weight: 900;
    font-display: block;
    src: url('webfonts/fa-solid-900.woff2') format('woff2');
}

/* Brand Icons (Canadian Maple Leaf) */
@font-face {
    font-family: 'Font Awesome 6 Brands';
    font-style: normal;
    font-weight: 400;
    font-display: block;
    src: url('webfonts/fa-brands-400.woff2') format('woff2');
}

.fas, .fab {
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
    display: inline-block;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    line-height: 1;
}

.fas { font-family: 'Font Awesome 6 Free'; font-weight: 900; }
.fab { font-family: 'Font Awesome 6 Brands'; font-weight: 400; }

/* --- BASE STYLES & RESET --- */
html {
    box-sizing: border-box;
    scroll-behavior: smooth;
}

*, *:before, *:after {
    box-sizing: inherit;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-base);
    background-image: 
        radial-gradient(at 0% 0%, hsla(210, 100%, 96%, 1) 0, transparent 50%), 
        radial-gradient(at 100% 0%, hsla(130, 100%, 96%, 1) 0, transparent 50%);
    background-attachment: fixed;
    background-size: cover;
    line-height: 1.6;
}

/* --- MAIN CARD LAYOUT --- */
main {
    background: var(--card-bg);
    width: 90%;
    max-width: 860px;
    padding: 60px 45px;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.7);
    margin: 40px 20px;
    animation: slideUpFade 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(8px);
}

/* --- BRANDING --- */
.brand {
    margin-bottom: 35px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo-img {
    height: auto;
    width: 100%;
    max-width: 450px;
    margin-bottom: 20px;
    object-fit: contain;
    transition: transform var(--transition-base);
}

.logo-img:hover {
    transform: scale(1.02);
}

/* --- HEADLINE & BADGE --- */
.headline-group {
    margin-bottom: 25px;
}

.headline-group h1 {
    font-weight: 400;
    font-size: 1.35rem;
    color: var(--text-main);
    margin: 0 0 10px 0;
    letter-spacing: -0.2px;
}

.headline-group h2 {
    font-weight: 700;
    font-size: 2.1rem;
    color: var(--secondary);
    margin: 0 0 15px 0;
    line-height: 1.25;
    letter-spacing: -0.5px;
}

.status-text {
    font-size: 1.05rem;
    color: var(--text-muted);
    font-weight: 300;
}

.badge {
    display: inline-block;
    background: var(--badge-bg);
    color: var(--secondary);
    padding: 10px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-size: 0.8rem;
    margin: 20px 0 30px 0;
    border: 1px solid rgba(0, 74, 153, 0.08);
}

hr {
    border: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
    margin: 30px auto;
    width: 60%;
}

/* --- FEATURE GRID --- */
.feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 30px;
    max-width: 800px;
    margin: 0 auto;
    padding: 10px 0;
}

.feature-item {
    display: flex;
    align-items: center;
    background: var(--feature-bg);
    padding: 16px 24px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(225, 228, 232, 0.4);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
    text-align: left;
}

.feature-item:hover {
    transform: translateY(-3px);
    background: var(--feature-hover-bg);
    box-shadow: var(--shadow-md);
    border-color: rgba(225, 228, 232, 0.8);
}

.feature-item:nth-child(1) {
    grid-column: 1 / -1;
    width: fit-content;
    margin: 0 auto;
}

.feature-text {
    font-weight: 500;
    font-size: 1.05rem;
    color: var(--text-main);
}

.icon-box {
    font-size: 1.8rem;
    margin-right: 18px;
    width: 35px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-canada { color: var(--canada-red); }
.icon-global { color: var(--primary); }
.icon-reg { color: var(--secondary); }

/* --- FOOTER --- */
footer {
    margin-top: 45px;
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.footer-address {
    font-style: normal;
    color: var(--text-main);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-address i {
    color: var(--secondary);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

footer .sep {
    color: #cbd5e0;
    margin: 0 4px;
}

footer a {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color var(--transition-base);
}

footer a:hover {
    color: var(--primary);
}

/* --- KEYFRAME ANIMATIONS --- */
@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- RESPONSIVENESS & MOBILE OPTIMIZATIONS (SAMSUNG S24 / S25 ULTRA SUPPORT) --- */
@media (max-width: 768px) {
    main {
        padding: 45px 30px;
        margin: 30px 15px;
        width: calc(100% - 30px);
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .feature-item:nth-child(1) {
        grid-column: auto;
        width: 100%;
        margin: 0;
    }
    
    .headline-group h2 {
        font-size: 1.75rem;
    }
}

/* Strict targets for mobile viewports like Samsung S24 & S25 Ultra (widths 360px - 412px) */
@media (max-width: 450px) {
    main {
        padding: 35px 20px;
        margin: 15px 10px;
        width: calc(100% - 20px);
        border-radius: var(--radius-md);
    }
    
    .brand {
        margin-bottom: 25px;
    }
    
    .logo-img {
        max-width: 300px;
        margin-bottom: 12px;
    }
    
    .headline-group h1 {
        font-size: 1.15rem;
    }
    
    .headline-group h2 {
        font-size: 1.45rem;
        margin-bottom: 10px;
    }
    
    .status-text {
        font-size: 0.95rem;
    }
    
    .badge {
        padding: 8px 20px;
        margin: 15px 0 20px 0;
        font-size: 0.75rem;
    }
    
    .feature-item {
        padding: 12px 16px;
        border-radius: var(--radius-sm);
    }
    
    .icon-box {
        font-size: 1.5rem;
        margin-right: 12px;
        width: 28px;
    }
    
    .feature-text {
        font-size: 0.95rem;
    }
    
    footer {
        margin-top: 30px;
        gap: 8px;
    }

    .footer-links {
        flex-direction: column;
        gap: 4px;
    }
    
    .sep {
        display: none;
    }
}
