/*
Theme Name: Insights Management
Theme URI: 
Author: Jerin
Author URI: 
Description: A modern custom theme for Insights Management Consultants
Version: 2.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: insights-management
*/

:root {
    /* Modern Palette */
    --primary: #0f172a;      /* Slate 900 - Deep Navy */
    --primary-light: #1e293b; /* Slate 800 */
    --secondary: #2563eb;    /* Blue 600 - Vibrant Accent */
    --secondary-hover: #1d4ed8; /* Blue 700 */
    --accent: #f1f5f9;       /* Slate 100 - Light Backgrounds */
    --surface: #ffffff;      /* White Cards */
    
    --text-main: #1e293b;    /* Slate 800 */
    --text-muted: #64748b;   /* Slate 500 */
    --text-light: #94a3b8;   /* Slate 400 */
    --white: #ffffff;
    
    --border: #e2e8f0;       /* Slate 200 */
    
    /* Effects */
    --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);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-full: 9999px;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color: var(--text-muted);
    background-color: var(--white);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-main);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    letter-spacing: -0.025em; /* Tighter modern tracking */
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.5rem; }

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

ul { list-style: none; }

.container {
    width: 90%;
    max-width: 1280px; /* Wider container for modern look */
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 100px 0; /* More whitespace */
}

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

/* Utilities */
.divider, .divider-left {
    height: 4px;
    width: 60px;
    background: linear-gradient(90deg, var(--secondary), transparent);
    border-radius: var(--radius-full);
    margin: 1.5rem auto;
}
.divider-left { margin: 1.5rem 0; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: var(--radius-full); /* Pill shape */
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: 1px solid transparent;
    transition: var(--transition);
    gap: 8px;
}

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

.btn-primary:hover {
    background-color: var(--secondary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--white);
    color: var(--white);
    backdrop-filter: blur(4px);
}

.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

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

.btn-white:hover {
    background-color: var(--accent);
    transform: translateY(-2px);
}

.full-width { width: 100%; }

/* Header */
header {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border);
}

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

.logo img {
    height: 48px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 40px;
    align-items: center;
}

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

.nav-links a:hover,
.nav-links a.active {
    color: var(--secondary);
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    color: var(--text-main);
    cursor: pointer;
}

/* Hero Section - Modern Gradient */
.hero {
    background: 
        linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.9) 100%),
        url('images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    min-height: 80vh; /* Taller hero */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding-top: 80px; /* Offset for sticky header */
}

.hero-content h1 {
    color: var(--white);
    font-size: 4rem; /* Larger */
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.hero-content p {
    font-size: 1.25rem;
    color: #cbd5e1; /* Light slate */
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 300;
}

.hero .btn { margin: 0 10px; }

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary);
}

/* Service Category Headers (Icons side-by-side with title) */
.service-category {
    margin-bottom: 60px;
}

.category-header {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.category-header .icon-box {
    width: 60px;
    height: 60px;
    background-color: var(--secondary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 20px;
    font-size: 1.5rem;
    flex-shrink: 0;
    box-shadow: var(--shadow-md);
}

.category-header h2 {
    margin-bottom: 0;
    font-size: 2rem;
}

/* Cards Grid - Restored to Classic Layout */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.card {
    background: var(--white);
    padding: 30px;
    border-radius: 8px; /* Original radius */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Original shadow */
    transition: all 0.3s ease;
    border-bottom: 4px solid transparent;
    border-top: none; /* Remove new style */
    border-left: none;
    border-right: none;
}

/* Remove the new top-bar animation */
.card::before {
    display: none;
}

.card:hover {
    transform: translateY(-5px);
    border-bottom-color: var(--secondary); /* Using new blue */
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--secondary);
    background: transparent; /* Remove new background */
    width: auto;
    height: auto;
    border-radius: 0;
    display: block; /* Original block display */
    margin-bottom: 20px;
}

.card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.card-list li {
    margin-bottom: 8px;
    color: var(--text-muted);
    font-size: 0.95rem;
    display: list-item; /* Restore standard list behavior */
    list-style-type: none; /* Handled by pseudo-element or none */
}

/* Restore list bullet if it was there, or keep current clean look */
.card-list li::before {
    content: none; /* Remove the custom bullet from new design if prefer old */
}

/* If old design had specific list style, let's look at the read output:
.card ul.card-list {
    text-align: left;
    margin-bottom: 25px;
    padding-left: 20px;
    list-style-type: disc;
}
*/
.card ul.card-list {
    text-align: left;
    margin-bottom: 25px;
    padding-left: 20px;
    list-style-type: disc;
}
.card ul.card-list li {
    display: list-item;
}
.card ul.card-list li::before {
    content: none;
}

.read-more {
    display: inline-block;
    margin-top: 15px;
    color: var(--secondary);
    font-weight: 600;
}

.read-more i { margin-left: 6px; transition: 0.3s; }
.read-more:hover i { transform: translateX(4px); }

/* About Section */
.about-preview {
    background-color: var(--white);
    position: relative;
    overflow: hidden;
}

.about-preview::before {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    width: 40%;
    height: 100%;
    background: var(--accent);
    z-index: 0;
}

.about-preview .container { position: relative; z-index: 1; }

.row {
    display: flex;
    align-items: center;
    gap: 80px;
}

.col-half { flex: 1; }

.content-col p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.about-image {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    width: 100%;
    height: auto;
    transform: rotate(2deg); /* Modern stylistic tilt */
    transition: var(--transition);
}

.about-image:hover { transform: rotate(0); }

/* Stats Section */
.stats-section {
    background-color: var(--primary);
    color: var(--white);
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.stat-item {
    padding: 20px;
}

.stat-number-wrapper {
    font-size: 3rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 10px;
    line-height: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.stat-item p {
    font-size: 1.1rem;
    color: #cbd5e1; /* Light slate */
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
    font-weight: 500;
}

/* Reviews Section - Google Style */
.reviews-section {
    background-color: var(--white);
    position: relative;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px; /* Tighter gap like Google grids */
    margin-top: 40px;
}

.google-review-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    box-shadow: none; /* Google is usually flat or very subtle */
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    font-family: 'Roboto', sans-serif; /* Google uses Roboto/Product Sans */
}

.google-review-card:hover {
    box-shadow: 0 1px 3px rgba(60,64,67,0.3);
}

.review-header {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
}

.reviewer-avatar {
    width: 40px;
    height: 40px;
    background-color: #ef5350; /* Fallback color */
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    font-size: 1.1rem;
    margin-right: 12px;
}

.reviewer-info {
    flex-grow: 1;
}

.reviewer-info h4 {
    margin: 0;
    font-size: 0.95rem;
    color: #202124; /* Google Black */
    font-weight: 700;
    line-height: 1.2;
}

.review-meta {
    font-size: 0.75rem;
    color: #70757a; /* Google Gray */
    margin-top: 2px;
    display: flex;
    align-items: center;
}

.review-meta i {
    margin-right: 4px;
    font-size: 0.8rem;
}

.review-stars {
    color: #fbbc04; /* Google Star Yellow */
    margin-bottom: 10px;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.review-text {
    font-size: 0.9rem;
    color: #3c4043; /* Google Dark Gray */
    line-height: 1.5;
    flex-grow: 1;
    margin-bottom: 0;
}

/* CTA Section */
.cta-section {
    background: var(--secondary);
    color: var(--white);
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(255,255,255,0.1) 0%, transparent 70%);
}

.cta-section .container { position: relative; z-index: 1; }

.cta-section h2 { color: var(--white); margin-bottom: 1rem; }
.cta-section p { 
    color: rgba(255,255,255,0.9); 
    font-size: 1.25rem; 
    margin-bottom: 2.5rem; 
}

/* Footer - Dark & Clean */
footer {
    background-color: var(--primary);
    color: #94a3b8;
    padding-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr 1fr; /* Custom grid */
    gap: 60px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-section h3 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.footer-section a {
    color: #94a3b8;
    display: inline-block;
    margin-bottom: 12px;
}

.footer-section a:hover {
    color: var(--secondary);
    transform: translateX(4px);
}

.footer-bottom {
    padding: 30px 0;
    text-align: center;
    font-size: 0.9rem;
    color: #64748b;
    background-color: var(--primary-light);
}

/* Mobile */
@media (max-width: 992px) {
    .hero-content h1 { font-size: 3rem; }
    .cards-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-content { grid-template-columns: 1fr 1fr; }
    .row { flex-direction: column; gap: 40px; }
    .about-preview::before { display: none; }
    .about-image { transform: none; width: 100%; }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow-lg);
        border-bottom: 1px solid var(--border);
    }
    .nav-links.active { display: flex; }
    .hamburger { display: block; }
    
    .hero { min-height: 600px; }
    .hero-content h1 { font-size: 2.5rem; }
    
    .cards-grid { grid-template-columns: 1fr; }
    .footer-content { grid-template-columns: 1fr; }
}

/* About Page Specifics */
.mission-vision {
    margin-top: 80px;
}

.page-header {
    background-color: var(--accent);
    padding: 80px 0;
    text-align: center;
}
.page-header h1 { color: var(--primary); }
.page-header p { color: var(--text-muted); font-size: 1.1rem; }

/* Forms */
input, textarea {
    width: 100%;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    background: var(--accent);
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--secondary);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Services Page - Restored Classic Layout */
.service-items-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.service-item {
    background-color: var(--white);
    padding: 25px;
    border-left: 4px solid var(--secondary);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05); /* Original light shadow */
    display: flex;
    align-items: flex-start;
    height: 100%;
    transition: all 0.3s ease;
    border-radius: 4px; /* Slightly softer corners than square but not full round */
}

.service-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.service-content h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--primary);
    display: flex;
    align-items: center;
}

.service-content h4 i {
    color: var(--secondary);
    margin-right: 10px;
    font-size: 1rem;
}

/* Mobile responsive for services grid */
@media (max-width: 768px) {
    .service-items-grid {
        grid-template-columns: 1fr;
    }
}

/* Social Links Spacing */
.social-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.social-links .social-icon {
    margin-right: 0 !important; /* Reset generic margins */
    margin-bottom: 0 !important;
}

.footer-tagline {
    font-weight: 400;
    color: #ffffff;
    font-size: 0.9rem;
    margin-top: 0;
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    border-right: 3px solid;
    width: 0;
    animation: typing 2.5s steps(30, end) forwards, blink 0.8s infinite;
}

@keyframes typing {
    from { width: 0; }
    to { width: 24ch; }
}

@keyframes blink {
    50% { border-color: transparent; }
}

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

.animate-fade-up {
    animation: fadeUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Initial state for scroll elements (applied by JS) */
.scroll-hidden {
    opacity: 0;
}

/* Hero Animation */
.hero-content {
    opacity: 0; /* Start hidden */
    animation: fadeUp 1s cubic-bezier(0.4, 0, 0.2, 1) 0.2s forwards; /* Added delay */
}

/* Divider Expansion */
@keyframes expandWidth {
    from { width: 0; opacity: 0; }
    to { width: 60px; opacity: 1; }
}

.expand {
    animation: expandWidth 0.8s ease forwards;
}
