/* services.css - Adapted to match the main site's dark theme, golden accents, spacing, colors, root variables, and responsiveness */

/* =========================================
   1. GLOBAL STYLES & VARIABLES (Adapted from main site)
   ========================================= */

/* CSS Custom Properties (Variables) - Matching the main site's dark theme */
:root {
    /* Dark Theme Colors */
    --background: #0a0a0a;
    --foreground: #f5f5f5;
    --card: #1a1a1a;
    --card-foreground: #f5f5f5;
    --primary: #b38d31; /* Golden accent */
    --primary-foreground: #0a0a0a;
    --secondary: #2a2a2a;
    --secondary-foreground: #f5f5f5;
    --muted: #1f1f1f;
    --muted-foreground: #a1a1a1;
    --accent: #b38d31;
    --accent-foreground: #0a0a0a;
    --border: #2a2a2a;
    --ring: #b38d31;
    --warm-light: #b38d31;
    --color-black: #000000;
    --color-white: #ffffff;
    --color-gold: #ffd700;
    --color-light-grey: #e0e0e0;
    --color-medium-grey: #aaaaaa;
    
    /* Fonts (Assumes Poppins and Lato are imported in HTML head) */
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Lato', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* Body - Matching main site */
body {
    font-family: 'Lato', sans-serif;
    line-height: 1.6;
    color: var(--foreground);
    background-color: var(--background);
    overflow-x: hidden;
}

/* Typography - Matching main site */
h1, h2, h3 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
}

/* Container - Matching main site */
.container {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1.5rem;
}

/* CTA Buttons - Matching main site */
.cta-btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--primary);
    color: var(--primary-foreground);
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-weight: 700;
}

.cta-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 10px var(--primary);
}

.cta-btn.secondary {
    background-color: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.cta-btn.secondary:hover {
    background-color: var(--primary);
    color: var(--primary-foreground);
}

/* Section Titles and Subtitles - Matching main site */
.section-title {
    font-size: 3.5rem;
    text-align: center;
    margin-bottom: -.4rem;
    color: var(--foreground);
}

.section-subtitle {
    font-family: 'Lato', sans-serif;
    font-size: 1.4rem;
    font-weight: 300;
    color: var(--muted-foreground);
    text-align: center;
    margin-bottom: 2.5rem;
}

/* --- HEADER --- */
/* (Assuming header.css handles fixed positioning and nav, these are general elements) */

/* Section 1: Hero */
.about-hero {
    position: relative;
    height: 45vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    
    /* --- NEW BACKGROUND IMAGE PROPERTIES --- */
    background-size: cover; /* Cover the entire area */
    background-position: center center; /* Center the image */
    background-repeat: no-repeat; /* Do not repeat the image */
    /* Fallback background color if image fails to load */
    background-color: var(--charcoal); 
}

.about-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Black gradient from top to bottom, slightly transparent to fully opaque */
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.95));
    z-index: 1; /* Ensure gradient is below text but above background image */
}

.hero-content {
    position: relative;
    z-index: 10; /* Higher than the ::before gradient */
    text-align: center;
    padding: 2rem;
    max-width: 900px;
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    color: white;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    animation: fadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1);
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}

.hero-subline {
    font-size: 1.75rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1rem;
    animation: fadeUp 0.92s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-oneliner {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    animation: fadeUp 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* =========================================
   2. Insights Services Section (New Content)
   ========================================= */

/* Main section styling (Dark background, centered text) */
#insights-services.dark-section {
    background-color: var(--color-black);
    color: var(--color-white);
    padding: 80px 20px;
    text-align: center;
    margin-bottom: 170px;
}

#insights-services .container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Section Title and Tagline */
#insights-services .section-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

#insights-services .section-tagline {
    font-family: var(--font-body);
    font-size: 1.5rem;
    font-style: italic;
    font-weight: 400;
    margin-bottom: 50px;
    color: var(--color-medium-grey);
}

/* Grid layout for cards */
.service-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding-top: 30px;
}

/* Individual Card Styling */
.service-card {
    border: 1px dashed var(--color-gold);
    padding: 40px;
    text-align: left;
    transition: transform 0.3s ease, border-color 0.3s ease;
    height: 100%; 
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-white);
}

/* --- SVG ICON STYLING --- */
.capability-icon {
    /* Style to make the icon stand out */
    background-color: transparent; 
    border: 2px solid var(--color-gold); /* Gold circle border */
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: background-color 0.3s ease;
}

.capability-icon svg {
    /* Sets the line color of the SVG to Gold */
    stroke: var(--color-gold); 
    width: 28px;
    height: 28px;
    transition: stroke 0.3s ease;
}

/* Hover effect on the card */
.service-card:hover .capability-icon {
    background-color: var(--color-gold);
}

.service-card:hover .capability-icon svg {
    stroke: var(--color-black); /* Change icon color to black on hover */
}
/* ------------------------ */


/* Card Content */
.service-card .card-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    margin-top: 0; /* Ensures proper spacing from the icon */
    margin-bottom: 10px;
}

.yellow-text {
    color: var(--color-gold);
}

.service-card .card-subtitle {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 25px; /* Adjust spacing above the list */
    color: var(--color-light-grey);
}

/* === SERVICE LIST STYLING (New/Re-added) === */
.service-list {
    list-style: none; /* Remove default bullet points */
    padding-left: 0;
    margin-bottom: 10px;
    flex-grow: 1; /* Ensures the button is pushed to the bottom */
}

.service-list li {
    font-family: var(--font-body);
    font-size: 0.95rem;
    line-height: 1.8; /* Tighter line spacing for list items */
    color: var(--color-light-grey); 
    padding-left: 18px; /* Space for custom bullet */
    position: relative;
}

.service-list li::before {
    content: "•"; /* Custom bullet point */
    color: var(--color-gold);
    font-size: 1.2rem;
    position: absolute;
    left: 0;
    top: 0;
}
/* ========================================= */

/* Read More Button Styling */
.read-more-btn {
    display: inline-block;
    padding: 10px 20px;
    border: 1px solid var(--color-gold); 
    color: var(--color-gold);
    text-decoration: none;
    font-weight: 700;
    transition: background-color 0.3s ease, color 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.read-more-btn:hover {
    background-color: var(--color-gold);
    color: var(--color-black);
}

/* =========================================
   3. Media Queries for Responsiveness
   ========================================= */

@media (max-width: 768px) {
    #insights-services .section-title {
        font-size: 2.5rem;
    }

    #insights-services .section-tagline {
        font-size: 1.2rem;
    }

    .service-cards-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   4. INSIGHTS PREVIEW SECTION (Adapted to Capabilities Style)
   ========================================= */

/* Main section styling (Matching capabilities dark gradient background) */
#insights-preview.light-section {
    padding: 5rem 0;
    background: linear-gradient(180deg, #1a1a1a 0%, #0f0f0f 100%);
    text-align: center;
}

#insights-preview .container {
    max-width: 1200px;
    margin-bottom: 170px;

}

/* Section Title, Tagline, and Intro (Matching capabilities typography) */
#insights-preview .section-title {
    font-size: 3.5rem;
    text-align: center;
    margin-bottom: -.4rem;
    color: rgb(255, 255, 255);
}

#insights-preview .section-tagline {
    font-family: 'Lato', sans-serif;
    font-size: 1.4rem;
    font-weight: 300;
    color: var(--muted-foreground);
    text-align: center;
    margin-bottom: 6.5rem; /* Space below subheadline */
}

#insights-preview .section-intro {
    font-family: 'Lato', sans-serif;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 3rem;
    color: rgba(255, 255, 255, 0.897);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Grid layout for insights cards (Matching capabilities grid) */
#insights-preview .service-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(220px, 1fr));
    gap: 2rem;
    align-items: stretch;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

/* Individual Insights Card Styling (Adapted to capabilities glassy style) */
#insights-preview .service-card.insights-card {
    position: relative;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 2.25rem 2rem;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02)), rgba(20,20,20,0.6);
    border: 1px solid rgba(218, 185, 0, 0.15);
    box-shadow: 0 10px 30px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    min-height: 200px;
    
    /* Reveal transitions */
    /* opacity: 0; */
    /* transform: translateY(40px); */
    transition: opacity 0.8s ease-out, transform 0.8s ease-out, box-shadow 0.35s ease, border-color 0.35s ease;
}

#insights-preview .service-card.insights-card.visible { /* Used by JS */
    opacity: 1;
    transform: translateY(0);
}

#insights-preview .service-card.insights-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(218, 185, 0, 0.25);
    border-color: rgba(218, 185, 0, 0.35);
}

/* --- SVG ICON STYLING (Adapted to capabilities icon style) --- */
#insights-preview .capability-icon {
    width: 76px;
    height: 76px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    margin-bottom: 1rem;
    background: linear-gradient(180deg, #ffe45e, #ffcf00);
    color: #171717;
    box-shadow: 0 6px 16px rgba(255, 207, 0, 0.4);
}

#insights-preview .capability-icon svg {
    stroke: #171717; /* Dark color for contrast on gold background */
    width: 28px;
    height: 28px;
}
/* ------------------------ */

/* Card Content (Matching capabilities) */
#insights-preview .service-card .card-title.dark-text {
    margin: 0.25rem 0;
    font-weight: 700;
    font-size: clamp(1.5rem, 1.6vw + 1.1rem, 1.75rem);
    color: var(--foreground);
    margin-bottom: 1.5rem;
}

#insights-preview .card-preview-text {
    margin-bottom: 30px;
    color: rgba(175, 175, 175, 0.897);
    line-height: 1.65;
    font-size: 1.2rem;
    flex-grow: 1;
}

/* Read More Button Styling (Adapted to match capabilities theme) */
#insights-preview .read-more-btn.primary-btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--primary);
    color: var(--primary-foreground);
    text-decoration: none;
    border-radius: 5px;
    font-weight: 700;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#insights-preview .read-more-btn.primary-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 10px var(--primary);
}



/* =========================================
   Media Queries for #insights-preview Responsiveness (Matching capabilities)
   ========================================= */

@media (max-width: 768px) {
    #insights-preview .section-title {
        font-size: 2.5rem;
    }

    #insights-preview .section-tagline {
        font-size: 1.2rem;
        margin-bottom: 3rem;
    }

    #insights-preview .section-intro {
        font-size: 1rem;
    }

    #insights-preview .service-cards-grid {
        grid-template-columns: 1fr;
        width: 100%;
        margin: 0;
    }

    #insights-preview .service-card.insights-card {
        padding: 2rem;
        min-height: auto;
    }
}

/* =========================================
   5. ANIMATIONS (Matching main site)
   ========================================= */

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   6. RESPONSIVENESS (Matching main site)
   ========================================= */

@media (max-width: 768px) {
    #services-hero .section-headline {
        font-size: 2rem;
    }
    
    .services-grid, .insights-preview-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-card, .insight-card {
        padding: 1.5rem;
        min-height: auto;
    }
    
    .insights-preview-grid {
        max-width: 400px;
    }
}

/* Section 2: News & Blogs - Adapted to Main Site Theme */

/* Container and background */
.news-section {
    padding: 5rem 1.5rem;
    background: linear-gradient(180deg, var(--card) 0%, var(--background) 100%);
    color: var(--foreground);
    
    /* Left align all text inside the news section */
    text-align: left;
}

/* Section Heading */
.news-section .section-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
    color: var(--foreground);
    
    /* Align heading to the left */
    text-align: left;
}

/* Section Subtitle */
.news-section .section-subtitle {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 1.4rem;
    color: var(--muted-foreground);
    margin-bottom: 3rem;
    
    /* Align subtitle to the left */
    text-align: left;
}

/* News Card Grid */
/* Align cards to the left within the grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    justify-items: start;       /* Align grid items (cards) to the left */
    max-width: 1200px;
    margin: 0 auto;
}

/* Individual news cards */
.news-card {
    background-color: var(--card);
    border: 1px solid var(--color-gold);
    border-radius: 1rem;
    overflow: hidden;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 4px 12px rgba(179, 141, 49, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 10px 25px rgba(179, 141, 49, 0.4);
}

/* News image area */
.news-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.05);
}

/* Content inside the card */
.news-content {
    padding: 1.5rem 1.75rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    
    /* Align content items and text to the left */
    align-items: flex-start;
    text-align: left;
}

/* Headline */
.news-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.55rem;
    margin-bottom: 0.75rem;
    color: var(--foreground);
}

/* Description */
.news-description {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--muted-foreground);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

/* Read More Button */
.news-readmore-btn {
    align-self: flex-start;   /* Align button left inside .news-content */
    padding: 10px 24px;
    background-color: var(--primary);
    color: var(--primary-foreground);
    border-radius: 5px;
    font-weight: 700;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.news-readmore-btn:hover {
    background-color: var(--accent);
    color: var(--accent-foreground);
}

/* Responsiveness */
@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }

    .news-card {
        max-width: 100%;
    }
}

.section-subline {
    font-family: var(--font-body);
    font-size: 1.5rem;
    font-style: italic;
    font-weight: 400;
    margin-bottom: 50px;
    color: var(--color-medium-grey);
}
