/* ==========================================================================
   CompliSanc Marketing Website Styles
   Professional, SEO-optimized design
   ========================================================================== */

:root {
    --primary-color: #0b3c5d;
    --primary-dark: #082a42;
    --primary-light: #1a5a7a;
    --secondary-color: #3b82f6;
    --accent-color: #10b981;
    --text-dark: #1f2937;
    --text-medium: #4b5563;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --border-color: #e5e7eb;
    --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);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
}

/* Allow text selection only in form inputs and textareas */
input, textarea {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

/* Prevent image dragging */
img {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    pointer-events: none;
}

/* Allow logo to be clickable and ensure proper display */
.logo img {
    pointer-events: auto !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: 100px !important;
    width: auto !important;
    max-width: 300px !important;
    min-height: 100px !important;
    min-width: 100px !important;
    max-height: 100px !important;
    -ms-object-fit: contain !important;
    -o-object-fit: contain !important;
    object-fit: contain !important;
    flex-shrink: 0 !important;
    -ms-flex-negative: 0 !important;
    box-sizing: border-box !important;
}

/* Prevent text selection on all elements */
body {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--text-dark);
    background-color: var(--bg-white);
}

/* ==========================================================================
   Typography
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

h1 {
    font-size: 1.75rem;
    font-weight: 700;
}

h2 {
    font-size: 1.5rem;
}

h3 {
    font-size: 1.125rem;
}

h4 {
    font-size: 1rem;
}

p {
    margin-bottom: 0.625rem;
    color: var(--text-medium);
    font-size: 0.875rem;
    line-height: 1.6;
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--primary-color);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

.header {
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    height: auto;
    min-height: 100px;
}

/* Logo image - consolidated styling (also defined above for pointer-events) */
.logo img {
    height: 100px !important;
    width: auto !important;
    max-width: 300px !important;
    min-height: 100px !important;
    min-width: 100px !important;
    max-height: 100px !important;
    -ms-object-fit: contain !important;
    -o-object-fit: contain !important;
    object-fit: contain !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    flex-shrink: 0 !important;
    -ms-flex-negative: 0 !important;
    box-sizing: border-box !important;
}

.nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-dark);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.btn {
    display: inline-block !important;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid;
    font-size: 0.875rem;
    text-decoration: none;
    opacity: 1 !important;
    visibility: visible !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    min-width: 140px;
}

.btn-primary {
    background: var(--secondary-color) !important;
    color: white !important;
    border-color: var(--secondary-color) !important;
    opacity: 1 !important;
}

.btn-primary:hover {
    background: var(--primary-color) !important;
    color: white !important;
    border-color: var(--primary-color) !important;
    opacity: 1 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
    background: var(--bg-white) !important;
    color: var(--secondary-color) !important;
    border-color: var(--secondary-color) !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: inline-block !important;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.2) !important;
}

.btn-secondary:hover {
    background: var(--secondary-color) !important;
    color: white !important;
    border-color: var(--secondary-color) !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(59, 130, 246, 0.3) !important;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-dark);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
    padding: 2.5rem 2rem;
    text-align: center;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
}

.hero h1 {
    color: white;
    font-size: 1.875rem;
    margin-bottom: 0.75rem;
    line-height: 1.25;
    font-weight: 700;
}

.hero p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9375rem;
    margin-bottom: 1.25rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-buttons .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    min-width: 140px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-buttons .btn-primary {
    background: white !important;
    color: var(--primary-color) !important;
    border: 2px solid white !important;
}

.hero-buttons .btn-primary:hover {
    background: var(--bg-light) !important;
    color: var(--primary-color) !important;
    border-color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25);
}

/* Hero section buttons (dark background) */
.hero .hero-buttons .btn-secondary {
    background: transparent !important;
    border: 2px solid white !important;
    color: white !important;
    opacity: 1 !important;
    visibility: visible !important;
    box-shadow: 0 2px 4px rgba(255, 255, 255, 0.2);
}

.hero .hero-buttons .btn-secondary:hover {
    background: white !important;
    color: var(--primary-color) !important;
    border-color: white !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 255, 255, 0.3);
}

/* CTA section buttons (light background) - override hero styles with higher specificity */
.section .hero-buttons .btn-primary,
section.section .hero-buttons .btn-primary,
.section:not(.hero) .hero-buttons .btn-primary {
    background: var(--secondary-color) !important;
    color: white !important;
    border: 2px solid var(--secondary-color) !important;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.2) !important;
}

.section .hero-buttons .btn-primary:hover,
section.section .hero-buttons .btn-primary:hover,
.section:not(.hero) .hero-buttons .btn-primary:hover {
    background: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(59, 130, 246, 0.3) !important;
}

.section .hero-buttons .btn-secondary,
section.section .hero-buttons .btn-secondary,
.section:not(.hero) .hero-buttons .btn-secondary {
    background: var(--bg-white) !important;
    border: 2px solid var(--secondary-color) !important;
    color: var(--secondary-color) !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: inline-block !important;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.2) !important;
}

.section .hero-buttons .btn-secondary:hover,
section.section .hero-buttons .btn-secondary:hover,
.section:not(.hero) .hero-buttons .btn-secondary:hover {
    background: var(--secondary-color) !important;
    color: white !important;
    border-color: var(--secondary-color) !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(59, 130, 246, 0.3) !important;
}

/* ==========================================================================
   Container & Sections
   ========================================================================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 2.5rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 1.5rem;
}

.section-title h2 {
    margin-bottom: 0.5rem;
}

.section-title p {
    font-size: 0.875rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ==========================================================================
   Features Grid
   ========================================================================== */

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.feature-card {
    background: var(--bg-white);
    padding: 1.25rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--secondary-color);
}

.feature-icon {
    font-size: 1.75rem;
    margin-bottom: 0.625rem;
}

.feature-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.feature-card p {
    color: var(--text-medium);
    font-size: 0.8125rem;
    line-height: 1.5;
}

/* ==========================================================================
   Pricing
   ========================================================================== */

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.pricing-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.2s ease;
    position: relative;
    box-shadow: var(--shadow-sm);
}

.pricing-card:hover {
    border-color: var(--secondary-color);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.pricing-card.featured {
    border-color: var(--secondary-color);
    box-shadow: var(--shadow-md);
    border-width: 2px;
}

.pricing-card.featured::before {
    content: 'Most Popular';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--secondary-color);
    color: white;
    padding: 0.25rem 1rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.pricing-name {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.375rem;
}

.pricing-price {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0.625rem 0;
}

.pricing-price span {
    font-size: 0.875rem;
    color: var(--text-light);
    font-weight: 400;
}

.pricing-features {
    list-style: none;
    margin: 1.25rem 0;
    text-align: left;
}

.pricing-features li {
    padding: 0.5rem 0;
    color: var(--text-medium);
    border-bottom: 1px solid var(--border-color);
    font-size: 0.8125rem;
    line-height: 1.5;
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features li::before {
    content: '✓';
    color: var(--accent-color);
    font-weight: bold;
    margin-right: 0.5rem;
}

/* ==========================================================================
   Contact Form
   ========================================================================== */

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.375rem;
    font-weight: 500;
    color: var(--text-dark);
    font-size: 0.875rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.625rem;
    border: 1px solid var(--border-color);
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-family: inherit;
    transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
    background: var(--text-dark);
    color: white;
    padding: 3rem 0 1.5rem;
    margin-top: 5rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: white;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.2s ease;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* ==========================================================================
   Content Sections
   ========================================================================== */

.content-section {
    max-width: 800px;
    margin: 0 auto;
}

.content-section h2 {
    margin-top: 1.25rem;
    margin-bottom: 0.625rem;
}

.content-section h3 {
    margin-top: 1rem;
    margin-bottom: 0.375rem;
}

.content-section ul,
.content-section ol {
    margin-left: 1.25rem;
    margin-bottom: 0.625rem;
}

.content-section li {
    margin-bottom: 0.25rem;
    color: var(--text-medium);
    font-size: 0.8125rem;
    line-height: 1.6;
}

/* ==========================================================================
   Cross-Browser Compatibility
   ========================================================================== */

/* Vendor prefixes for better browser support */
.btn {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.feature-card,
.pricing-card {
    -webkit-transform: translateY(0);
    -moz-transform: translateY(0);
    -ms-transform: translateY(0);
    transform: translateY(0);
}

/* Flexbox fallbacks */
.header-container,
.nav,
.hero-buttons {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
}

/* Grid fallbacks for older browsers */
.features-grid,
.pricing-grid,
.footer-grid {
    display: -ms-grid;
    display: grid;
}

/* Smooth scrolling with fallback */
html {
    -webkit-scroll-behavior: smooth;
    -moz-scroll-behavior: smooth;
    scroll-behavior: smooth;
}

/* Box-sizing for all browsers */
*,
*::before,
*::after {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

/* Additional cross-browser fixes */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Fix for older browsers without grid support */
@supports not (display: grid) {
    .features-grid,
    .pricing-grid,
    .footer-grid {
        display: block;
    }
    
    .features-grid > *,
    .pricing-grid > *,
    .footer-grid > * {
        display: inline-block;
        vertical-align: top;
        width: 100%;
        margin-bottom: 1rem;
    }
    
    @media (min-width: 600px) {
        .features-grid > *,
        .pricing-grid > * {
            width: calc(50% - 0.5rem);
            margin-right: 1rem;
        }
    }
    
    @media (min-width: 900px) {
        .features-grid > *,
        .pricing-grid > *,
        .footer-grid > * {
            width: calc(33.333% - 0.67rem);
        }
    }
}

/* IE11 specific fixes */
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
    .features-grid,
    .pricing-grid {
        display: -ms-grid;
        -ms-grid-columns: 1fr 1fr 1fr;
    }
    
    .header-container {
        display: -ms-flexbox;
    }
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 1rem;
        box-shadow: var(--shadow-lg);
        z-index: 1000;
    }

    .nav-links.active {
        display: -webkit-box;
        display: -webkit-flex;
        display: -ms-flexbox;
        display: flex;
    }

    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .hero h1 {
        font-size: 1.875rem;
    }

    .hero p {
        font-size: 0.95rem;
    }

    .section {
        padding: 2rem 0;
    }

    .features-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
        -ms-grid-columns: 1fr;
    }

    .hero {
        padding: 2rem 1rem;
    }

    .container {
        padding: 0 1rem;
    }

    .header-container {
        padding: 1rem;
    }

    .logo {
        font-size: 1.25rem;
    }

    .logo img {
        height: 70px !important;
        min-height: 70px !important;
        min-width: 70px !important;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.5rem;
    }

    .hero p {
        font-size: 0.875rem;
    }

    .logo img {
        height: 60px !important;
        min-height: 60px !important;
        min-width: 60px !important;
        max-height: 60px !important;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
        min-width: auto;
        padding: 0.75rem 1.25rem;
        border: 2px solid;
    }

    .pricing-card,
    .feature-card {
        padding: 1rem;
    }

    .contact-form {
        padding: 1.25rem;
    }
}

/* Edge-specific fixes for logo sizing - Legacy Edge */
@supports (-ms-ime-align: auto) {
    .logo img {
        height: 100px !important;
        width: 100px !important;
        min-width: 100px !important;
        max-width: 300px !important;
        max-height: 100px !important;
    }
}

/* Modern Edge (Chromium-based) specific fixes */
@supports (-webkit-appearance: none) and (not (display: -ms-grid)) {
    .logo img {
        height: 100px !important;
        width: auto !important;
        min-width: 100px !important;
        max-width: 300px !important;
        max-height: 100px !important;
    }
}

/* Print styles */
@media print {
    .header,
    .footer,
    .hero-buttons,
    .btn {
        display: none;
    }

    .section {
        page-break-inside: avoid;
    }
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

.text-center {
    text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

