/*
 * SAFRIQ Consulting Website Styles - Updated Brand Color Scheme
 * Colors aligned with Profile.pdf brand palette: Green, Grey, White
 * Registration: 2025/521773/07
 */

:root {
    /* Brand Colors - Green, Grey, White Palette */
    --color-primary: #4ab941;           /* SAFRIQ Green - Primary CTA & links */
    --color-primary-dark: #16a34a;      /* Darker Green for hover/active states */
    --color-primary-light: #f0fdf4;     /* Light Green background */
    --color-secondary: #64748b;         /* Safriq Grey - borders, secondary elements */
    --color-white: #ffffff;             /* White - backgrounds, text */
    
    /* Accent Colors */
    --color-green: #4ab941;             /* Primary green */
    --color-green-light: #f0fdf4;       
    --color-green-dark: #22c55e;
    
    --color-gray-500: #64748b;          /* Grey - secondary */
    --color-gray-100: #f1f5f9;
    --color-gray-200: #e2e8f0;
    --color-gray-300: #cbd5e1;
    --color-gray-800: #1e293b;
    
    /* Text Colors */
    --color-text: #1e293b;
    --color-text-light: #64748b;
    --color-text-white: #ffffff;
    
    /* Status Colors */
    --color-success: #4ab941;
    --color-warning: #eab308;
    --color-danger: #ef4444;
    --color-info: #0ea5e9;
    
    /* Portal Colors - Aligned with brand palette */
    .portal-safety {
        background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
        border-top: 4px solid #4ab941;
    }
    
    .portal-environmental {
        background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
        border-top: 4px solid #22c55e;
    }
    
    .portal-quality {
        background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
        border-top: 4px solid #4ab941;
    }
    
    .portal-hr {
        background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
        border-top: 4px solid #4ab941;
    }
    
    .portal-audit {
        background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
        border-top: 4px solid #4ab941;
    }
    
    .portal-document {
        background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
        border-top: 4px solid #4ab941;
    }
    
    .portal-procon {
        background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
        border-top: 4px solid #4ab941;
    }
}

/* Google Fonts Integration - Updated to Inter for brand consistency */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Montserrat:wght@600;700&display=swap');

:root {
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

body {
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.65;
    color: var(--color-text);
    background-color: var(--color-white);
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--color-text);
}

h1 {
    font-size: 2.5rem;
    line-height: 1.2;
}

h2 {
    font-size: 2rem;
    line-height: 1.3;
}

h3 {
    font-size: 1.5rem;
    line-height: 1.4;
}

h4 {
    font-size: 1.25rem;
    line-height: 1.5;
}

/* Links */
a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.2s;
}

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

/* Buttons */
button, .btn-primary {
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: var(--color-white);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #38a169 0%, #16a34a 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(74, 185, 65, 0.3);
}

/* Containers - Responsive Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Mobile Container Paddings */
@media (max-width: 768px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Reduced margin utilities for mobile */
    .mx-auto {
        margin-left: auto;
        margin-right: auto;
    }
    
    /* Responsive grid columns */
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    
    /* Stack columns on mobile */
    .flex-col { flex-direction: column; }
    
    /* Wider spacing on mobile for better touch targets */
    .gap-4 { gap: 1rem; }
    .gap-6 { gap: 1.5rem; }
    .gap-8 { gap: 2rem; }
}

/* Typography Helpers */
.text-primary {
    color: var(--color-primary);
}

.text-success {
    color: var(--color-success);
}

.text-gray-700, .text-dark {
    color: var(--color-text);
}

.text-gray-600, .text-medium {
    color: var(--color-text-light);
}

.font-heading {
    font-family: var(--font-heading);
}

.font-body {
    font-family: var(--font-body);
}

/* Spacing */
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }

/* Flexbox */
.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

/* Grid */
.grid {
    display: grid;
}

.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-12 { gap: 3rem; }

.md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* Rounded Corners */
.rounded {
    border-radius: 0.25rem;
}

.rounded-lg {
    border-radius: 0.5rem;
}

.rounded-xl {
    border-radius: 0.75rem;
}

.rounded-full {
    border-radius: 9999px;
}

/* Shadows */
.shadow-sm {
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.shadow-md {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Width and Height */
.w-full {
    width: 100%;
}

.h-auto {
    height: auto;
}

/* Background Colors - SAFRIQ Brand Palette */
.bg-white {
    background-color: var(--color-white);
}

.bg-gray-50 {
    background-color: var(--color-gray-100);
}

.bg-gray-100 {
    background-color: #f3f4f6;
}

.bg-gray-200 {
    background-color: #e5e7eb;
}

.bg-gray-900 {
    background-color: #111827;
}

/* SAFRIQ Brand Colors */
.bg-green-50 {
    background-color: #f0fdf4;
}

.bg-green-100 {
    background-color: #dcfce7;
}

.bg-green-500 {
    background-color: #22c55e;
}

.bg-green-600 {
    background-color: #16a34a;
}

.bg-green-700 {
    background-color: #15803d;
}

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

.bg-primary-light {
    background-color: var(--color-primary-light);
}

.bg-secondary {
    background-color: var(--color-secondary);
}

/* Card Styles */
.card {
    background: var(--color-white);
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--color-gray-200);
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Hero Section - Green Gradient */
.hero-gradient {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
}

/* Button variants */
.btn-secondary {
    background-color: var(--color-secondary);
    color: var(--color-white);
}

.btn-success {
    background-color: var(--color-success);
    color: var(--color-white);
}

/* Icon Colors */
.icon-primary { color: var(--color-primary); }
.icon-success { color: var(--color-success); }
.icon-warning { color: var(--color-warning); }
.icon-danger { color: var(--color-danger); }
.icon-info { color: var(--color-info); }

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-auto { margin-top: auto; }
.mb-auto { margin-bottom: auto; }

/* Responsive Design */
@media (max-width: 768px) {
    .hidden { display: none !important; }
    .block { display: block !important; }
    
    .md\:hidden { display: none !important; }
    .md\:flex { display: flex !important; }
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
    .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate__animated {
    animation: fadeIn 0.3s ease-in-out;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    header, footer {
        -webkit-print-color-adjust: exact;
        color-adjust: exact;
    }
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Consistent Icon Container Styles */
.icon-container {
    background-color: #dcfce7;
    width: 48px;
    height: 48px;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-primary {
    color: #16a34a;
}

/* Consistent Card Styles */
.value-card {
    background-color: #ffffff;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

.service-card {
    background-color: #ffffff;
    border-radius: 0.75rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

/* Consistent Heading Sizes */
.heading-sm {
    font-size: 1rem;
    line-height: 1.5;
}

.heading-base {
    font-size: 1.25rem;
    line-height: 1.5;
}

.heading-lg {
    font-size: 1.5rem;
    line-height: 1.4;
}

.heading-xl {
    font-size: 2rem;
    line-height: 1.3;
}

/* Consistent Text Sizes */
.text-xs {
    font-size: 0.75rem;
    line-height: 1.6;
}

.text-sm {
    font-size: 0.875rem;
    line-height: 1.5;
}

.text-base {
    font-size: 1rem;
    line-height: 1.5;
}

.text-lg {
    font-size: 1.125rem;
    line-height: 1.5;
}

/* Icon Size Consistency */
.icon-sm {
    font-size: 1rem;
}

.icon-lg {
    font-size: 1.25rem;
}

.icon-xl {
    font-size: 1.5rem;
}