/* style.css - Prime Insight Group */

:root {
    --color-primary: #0f172a; /* Dark Navy */
    --color-secondary: #334155;
    --color-accent: #2563eb; /* Trust Blue */
    --color-background: #ffffff;
    --color-surface: #f8fafc;
    --color-surface-hover: #f1f5f9;
    --color-border: #e2e8f0;
    --color-text: #1e293b;
    --color-text-muted: #64748b;
    --color-white: #ffffff;
    
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    
    --transition: all 0.3s ease;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    
    --container-max: 1200px;
    --container-medium: 900px;
    --container-narrow: 700px;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    color: var(--color-text);
    background-color: var(--color-background);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--color-accent);
}

ul {
    list-style: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--color-primary);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.75rem); }
h4 { font-size: 1.25rem; }

p { margin-bottom: 1.5rem; }

.lead-text {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    line-height: 1.8;
}

/* Layout Containers */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.container-medium {
    max-width: var(--container-medium);
}

.container-narrow {
    max-width: var(--container-narrow);
}

.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-2 { margin-top: 1rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }
.mb-4 { margin-bottom: 2rem; }
.bg-light { background-color: var(--color-surface); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.75rem;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 4px;
    transition: var(--transition);
    cursor: pointer;
    text-align: center;
    border: 1px solid transparent;
}

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

.btn-primary:hover {
    background-color: var(--color-secondary);
    color: var(--color-white);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn-outline:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.btn-outline-subtle {
    border: 1px solid var(--color-border);
    color: var(--color-text);
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-outline-subtle:hover {
    border-color: var(--color-primary);
    background-color: var(--color-surface);
}

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

/* Header */
.site-header {
    background-color: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.site-header.scrolled {
    box-shadow: var(--shadow-sm);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo-text a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: -0.03em;
    text-transform: uppercase;
}

.logo img {
    height: 40px; /* Adjust based on actual logo */
    width: auto;
}

.main-nav ul {
    display: flex;
    gap: 2rem;
}

.main-nav a {
    color: var(--color-text);
    font-weight: 500;
    font-size: 0.95rem;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--color-accent);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger, .hamburger::before, .hamburger::after {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--color-primary);
    position: relative;
    transition: var(--transition);
}

.hamburger::before, .hamburger::after {
    content: '';
    position: absolute;
    left: 0;
}

.hamburger::before { top: -8px; }
.hamburger::after { top: 8px; }

.menu-toggle.active .hamburger { background-color: transparent; }
.menu-toggle.active .hamburger::before { top: 0; transform: rotate(45deg); }
.menu-toggle.active .hamburger::after { top: 0; transform: rotate(-45deg); }

/* Hero Section */
.hero {
    padding: 6rem 0;
    background: linear-gradient(to bottom, #ffffff, var(--color-surface));
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    max-width: 600px;
}

.subheadline {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.microcopy {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.microcopy::before {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    background-color: var(--color-accent);
    border-radius: 50%;
}

.hero-visual img {
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
}

/* Sections General */
section {
    padding: 6rem 0;
}

.section-header {
    margin-bottom: 4rem;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: var(--color-white);
    padding: 2.5rem;
    border-radius: 8px;
    border: 1px solid var(--color-border);
    transition: var(--transition);
}

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

.feature-icon {
    width: 48px;
    height: 48px;
    background-color: var(--color-surface);
    color: var(--color-primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

/* Process Grid */
.process-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

.process-step {
    padding: 2.5rem;
    background: var(--color-surface);
    border-radius: 8px;
    position: relative;
    border-left: 4px solid var(--color-primary);
}

.step-number {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--color-accent);
    display: block;
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
}

/* Reviews Grid */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.review-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 2.5rem;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.review-card:hover {
    box-shadow: var(--shadow-md);
}

.review-category {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    color: var(--color-text-muted);
    margin-bottom: 1rem;
}

.review-desc {
    color: var(--color-text-muted);
    flex-grow: 1;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-top: 1.5rem;
}

.text-link svg {
    transition: transform 0.2s ease;
}

.text-link:hover svg {
    transform: translateX(4px);
}

/* Categories Grid */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.category-card {
    display: block;
    padding: 2rem;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    text-align: center;
}

.category-card:hover {
    border-color: var(--color-primary);
    background: var(--color-surface);
}

.category-info h3 {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.category-info span {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    font-weight: 500;
}

/* Editorial Standards */
.shield-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background-color: var(--color-white);
    color: var(--color-primary);
    border-radius: 50%;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
}

/* Final CTA */
.final-cta {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 8rem 0;
}

.final-cta h2, .final-cta p {
    color: var(--color-white);
}

.final-cta p {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Footer */
.site-footer {
    background-color: #020617; /* Even darker navy for footer */
    color: var(--color-surface);
    padding: 5rem 0 2rem;
}

.site-footer a {
    color: #94a3b8;
}

.site-footer a:hover {
    color: var(--color-white);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

.footer-logo img {
    height: 32px;
    width: auto;
    margin-bottom: 1.5rem;
    filter: brightness(0) invert(1);
}

.footer-brand p {
    color: #94a3b8;
    max-width: 400px;
}

.footer-links h4 {
    color: var(--color-white);
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-bottom {
    border-top: 1px solid #1e293b;
    padding-top: 2rem;
    text-align: center;
    color: #64748b;
    font-size: 0.875rem;
}

/* Page Headers (Internal Pages) */
.page-header {
    padding: 6rem 0 4rem;
    background-color: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
}

.page-header h1 {
    margin-bottom: 1rem;
}

.page-header .lead-text {
    max-width: 700px;
}

/* Content Pages */
.content-section {
    padding: 5rem 0;
}

.content-body {
    font-size: 1.125rem;
    color: var(--color-text);
}

.content-body h2 {
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.content-body h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

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

.content-body ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.content-body li {
    margin-bottom: 0.5rem;
}

/* Contact Page */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info-card {
    background: var(--color-surface);
    padding: 3rem;
    border-radius: 8px;
    height: 100%;
}

.contact-method {
    margin-bottom: 2rem;
}

.contact-method h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.contact-method p {
    color: var(--color-text-muted);
    margin-bottom: 0;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-container, .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-content {
        max-width: 100%;
        text-align: center;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .microcopy {
        justify-content: center;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .main-nav {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: var(--color-white);
        padding: 2rem;
        border-bottom: 1px solid var(--color-border);
        box-shadow: var(--shadow-md);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
        z-index: 999;
    }
    
    .main-nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .main-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
    
    .header-actions .btn-outline-subtle {
        display: none;
    }

    .process-grid {
        grid-template-columns: 1fr;
    }
}