/* MyInsureCT Theme - Global Styles */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Montserrat:wght@400;500;600;700;800;900&family=Oswald:wght@400;500;600;700&display=swap');

/* Import Font Awesome */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');

/* CSS Variables */
:root {
    /* Brand Colors - Authentic MyInsureCT Logo Colors */
    --brand-primary: #1E3A8A;     /* Primary Blue from logo - Connecticut state shape */
    --brand-primary-dark: #1e40af; /* Darker blue variant for gradients */
    --brand-primary-darker: #0F2A5E; /* Even darker blue for depth */
    --brand-dark: #000000;        /* Black text from actual website */
    --brand-light: #F8F9FA;       /* Light background */
    --brand-light-blue: #E8F2FF;  /* Light blue for soft backgrounds */
    --brand-light-orange: #FFF4ED; /* Light orange for soft backgrounds */
    --brand-accent: #FF5F24;      /* Orange accent from logo - location pin and "CT" text */
    --brand-secondary: #1E3A8A;   /* Blue secondary */
    --brand-neutral: #6B7280;
    
    /* Additional Colors */
    --white: #FFFFFF;
    --black: #000000;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;
    
    /* Success, Warning, Error Colors */
    --success: #10B981;
    --success-dark: #059669;
    --warning: #F59E0B;
    --warning-light: #fef3c7;
    --error: #EF4444;
    --info: #3B82F6;
    
    /* Typography Scale */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;
    --text-6xl: 3.75rem;
    
    /* Font Families */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-hero: 'Oswald', sans-serif;
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    
    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Global Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Base Typography */
body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--gray-800);
    background: var(--white);
}

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

h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-3xl); }
h4 { font-size: var(--text-2xl); }
h5 { font-size: var(--text-xl); }
h6 { font-size: var(--text-lg); }

/* Required CMS Classes - Background Colors */
.cms-bg-primary { background-color: var(--brand-primary) !important; }
.cms-bg-dark { background-color: var(--brand-dark) !important; }
.cms-bg-light { background-color: var(--brand-light) !important; }
.cms-bg-accent { background-color: var(--brand-accent) !important; }
.cms-bg-neutral { background-color: var(--brand-neutral) !important; }

/* Required CMS Classes - Text Colors */
.cms-text-primary { color: var(--brand-primary) !important; }
.cms-text-dark { color: var(--brand-dark) !important; }
.cms-text-light { color: var(--brand-light) !important; }
.cms-text-accent { color: var(--brand-accent) !important; }
.cms-text-neutral { color: var(--brand-neutral) !important; }

/* Required CMS Classes - Border Colors */
.cms-border-primary { border-color: var(--brand-primary) !important; }
.cms-border-dark { border-color: var(--brand-dark) !important; }
.cms-border-light { border-color: var(--brand-light) !important; }
.cms-border-accent { border-color: var(--brand-accent) !important; }
.cms-border-neutral { border-color: var(--brand-neutral) !important; }

/* Utility Classes */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 4rem 0;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.font-light { font-weight: 300; }
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--brand-primary);
    color: var(--white);
    border: 2px solid var(--brand-primary);
}

.btn-primary:hover {
    background: var(--white);
    color: var(--brand-primary);
    border: 2px solid var(--brand-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 95, 36, 0.2);
}

.btn-secondary {
    background: var(--white);
    color: var(--brand-accent);
    border: 2px solid var(--brand-accent);
}

.btn-secondary:hover {
    background: var(--brand-accent);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 238, 0.2);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: var(--text-lg);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: var(--text-sm);
}

/* Cards */
.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--gray-700);
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    font-size: var(--text-base);
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(0, 107, 143, 0.1);
}

/* Grid System */
.grid {
    display: grid;
    gap: 2rem;
}

.grid-cols-1 { grid-template-columns: repeat(1, 1fr); }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

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

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.animate-fadeIn { animation: fadeIn 0.6s ease-out; }
.animate-slideInLeft { animation: slideInLeft 0.6s ease-out; }
.animate-slideInRight { animation: slideInRight 0.6s ease-out; }
.animate-pulse { animation: pulse 2s infinite; }

/* Responsive Breakpoints */
@media (max-width: 1279px) {
    .container { max-width: 1024px; }
}

@media (max-width: 1023px) {
    .container { max-width: 768px; }
    .grid-cols-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-cols-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
    .container { 
        max-width: 100%; 
        padding: 0 1rem;
    }
    .section { padding: 3rem 0; }
    .grid-cols-4,
    .grid-cols-3,
    .grid-cols-2 { grid-template-columns: 1fr; }
    
    h1 { font-size: var(--text-3xl); }
    h2 { font-size: var(--text-2xl); }
    h3 { font-size: var(--text-xl); }
}

/* 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;
}

/* Focus Styles */
*:focus-visible {
    outline: 2px solid var(--brand-primary);
    outline-offset: 2px;
}

/* Template Engine Component Utilities */
.site-posts {
    display: block;
    width: 100%;
}

.site-posts-grid {
    display: grid;
    gap: 2rem;
}

.site-featured-posts {
    display: grid;
    gap: 2rem;
}

.post-item {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.post-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.post-feature-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.post-content {
    padding: 1.5rem;
}

.post-title {
    font-size: var(--text-xl);
    font-weight: 600;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.post-link {
    color: var(--brand-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-link:hover {
    color: var(--brand-accent);
}

.post-excerpt {
    color: var(--gray-600);
    font-size: var(--text-sm);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.post-tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.post-tag {
    background: var(--brand-primary);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.post-tag:hover {
    background: var(--brand-accent);
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(255, 95, 36, 0.2);
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: var(--text-xs);
    color: var(--gray-500);
}

.post-date,
.post-min-read,
.post-reading-time {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Site Navigation Classes */
.site-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    font-weight: 700;
    font-size: var(--text-xl);
    color: var(--brand-dark);
}

.site-navigation-1 {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.site-navigation-1 a {
    text-decoration: none;
    color: var(--gray-700);
    font-weight: 500;
    transition: color 0.3s ease;
}

.site-navigation-1 a:hover {
    color: var(--brand-accent);
}

.site-button {
    padding: 0.5rem 1rem;
    background: var(--brand-primary);
    color: var(--white);
    border: 2px solid var(--brand-primary);
    border-radius: var(--radius-md);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.site-button:hover {
    background: var(--white);
    color: var(--brand-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 95, 36, 0.15);
}

/* Footer Navigation */
.site-secondary-navigation-1 {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-nav-item {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-nav-item:hover {
    color: var(--white);
}

/* Content Wrapper */
.site-post {
    max-width: 100%;
    margin: 0 auto;
}

.content-header {
    margin-bottom: 2rem;
}

.content-body {
    line-height: 1.8;
}

.content-body p {
    margin-bottom: 1.5rem;
}

.content-body h2,
.content-body h3,
.content-body h4 {
    margin: 2rem 0 1rem;
}

/* Responsive Template Engine Components */
@media (max-width: 1023px) {
    .site-posts-grid.grid-cols-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .site-featured-posts {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .site-posts-grid {
        grid-template-columns: 1fr;
    }
    
    .post-feature-image {
        height: 150px;
    }
    
    .post-content {
        padding: 1rem;
    }
    
    .post-title {
        font-size: var(--text-lg);
    }
    
    .site-navigation-1 {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Print Styles */
@media print {
    .no-print { display: none !important; }
}