@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;800&family=Merriweather:ital,wght@0,300;0,400;1,300&display=swap');

:root {
    /* Modern Dark Theme Palette */
    --bg-primary: #111827;   /* Deep Charcoal */
    --bg-secondary: #1F2937; /* Lighter Charcoal */
    --bg-accent: #374151;    /* Subtle highlight */
    
    --accent-color: #EF4444; /* Vibrant Red */
    --accent-hover: #DC2626; /* Darker Red for hover */
    
    --text-main: #F9FAFB;    /* Off-white */
    --text-muted: #9CA3AF;   /* Gray text */
    
    --font-heading: 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --radius: 12px;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    background-color: var(--bg-primary);
    color: var(--text-main);
    -webkit-font-smoothing: antialiased;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-main);
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 3.5rem; font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: 2.25rem; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 2rem; position: relative; display: inline-block; }
h3 { font-size: 1.5rem; font-weight: 600; color: var(--text-main); }
p { color: var(--text-muted); font-size: 1.125rem; margin-bottom: 1.5rem; max-width: 65ch; }

a {
    color: var(--text-main);
    text-decoration: none;
    transition: all 0.2s ease;
}

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

/* --- Layout --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* --- Header --- */
header {
    background-color: rgba(17, 24, 39, 0.95); /* Glassy effect */
    backdrop-filter: blur(10px);
    padding: 1.25rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text-main);
}

.logo span { color: var(--accent-color); }

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

nav ul li a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-muted);
}

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

main { padding-top: 80px; }

/* --- Sections --- */
section {
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

section h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--accent-color);
    margin: 0.5rem auto 0;
    border-radius: 2px;
}

/* --- Hero --- */
#hero {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 80px;
}

#hero h1 {
    max-width: 800px;
    margin-bottom: 1.5rem;
}

#hero p {
    font-size: 1.35rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.cta-button {
    display: inline-block;
    background-color: var(--accent-color);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: transform 0.2s, background-color 0.2s;
}

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

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

.card {
    background-color: var(--bg-secondary);
    padding: 2.5rem;
    border-radius: var(--radius);
    transition: transform 0.3s ease;
    border: 1px solid rgba(255,255,255,0.05);
    text-align: left; /* Enforce left alignment */
}

.card:hover {
    transform: translateY(-5px);
}

.card h3 {
    text-align: left;
    margin-bottom: 1rem;
    font-size: 1.35rem;
}

.card p {
    text-align: left;
    font-size: 1rem;
    margin-bottom: 0;
}

#services { background-color: var(--bg-primary); }
#about { background-color: var(--bg-secondary); }

/* --- Brands --- */
#brands {
    background-color: var(--bg-primary);
    text-align: center;
}

.brand-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 3rem;
}

.brand-item {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-muted);
    padding: 0.75rem 2rem;
    border: 1px solid var(--bg-accent);
    border-radius: 50px;
    background: var(--bg-secondary);
    transition: all 0.3s ease;
}

.brand-item:hover {
    border-color: var(--accent-color);
    color: var(--text-main);
}

/* --- Testimonials --- */
#testimonials {
    background-color: var(--bg-secondary);
    text-align: center;
}

.testimonial-carousel {
    max-width: 900px;
    margin: 4rem auto;
    min-height: 200px;
    position: relative;
}

.testimonial-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.testimonial-slide.active {
    opacity: 1;
}

.testimonial-slide blockquote {
    font-size: 1.5rem;
    font-weight: 300;
    line-height: 1.4;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-slide cite {
    font-weight: 600;
    color: var(--accent-color);
    text-transform: uppercase;
}

/* --- Contact --- */
#contact {
    text-align: center;
}

#contact p {
    max-width: none; /* Override max-width for centering */
}

.contact-direct { margin-top: 2rem; }
.contact-direct a { color: var(--accent-color); font-weight: 600; }

/* --- Footer --- */
footer {
    background-color: #0f131a;
    padding: 4rem 2rem;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.05);
}

footer p { margin: 0; font-size: 0.9rem; }

/* --- Blog --- */
.blog-main {
    max-width: 800px;
    margin: 0 auto;
    padding: 120px 2rem 6rem;
}

.post-summary {
    background: var(--bg-secondary);
    padding: 2.5rem;
    border-radius: var(--radius);
    margin-bottom: 2rem;
}
.post-summary h2 a:hover { color: var(--accent-color); }
.view-post-link { color: var(--accent-color); font-weight: 600; }

/* Blog Post Navigation - Boxed Style (Reader Mode Safe) */
.further-reading {
    display: flex;
    justify-content: center; /* Center the group of buttons */
    align-items: stretch;    /* Make buttons equal height */
    width: 100%;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    gap: 1.5rem; /* Slightly more space */
}

.further-reading-link {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1rem 1.5rem; /* Larger padding for better touch target */
    flex: 1;              /* Grow to fill space equally */
    width: 100%;
    max-width: 320px;     /* Cap width so they don't get absurdly wide */
    border-radius: 8px;
    background-color: var(--bg-accent);
    transition: all 0.2s ease;
    text-align: center;
}

.further-reading-link:hover {
    color: var(--text-main);
    background-color: var(--accent-color);
    cursor: pointer;
    transform: translateY(-2px);
}

.further-reading-link .nav-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.further-reading-link:hover .nav-label {
    color: rgba(255,255,255,0.9);
}

.further-reading-link .nav-title {
    font-size: 0.95rem;
    line-height: 1.3;
}

/* Mobile Response */
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 1.75rem; }
    .grid-3, .bio-grid { grid-template-columns: 1fr; }
    nav { flex-direction: column; gap: 1rem; }
    nav ul { flex-wrap: wrap; justify-content: center; gap: 1rem; }
    
    /* Increase top padding on mobile to account for taller header */
    main { padding-top: 160px; }
    
    /* Specific override for blog pages to ensure title clears the header */
    .blog-main { 
        padding-top: 200px; 
    }

    /* Responsive adjustments for blog navigation */
    .further-reading {
        flex-direction: column;
    }
    
    .further-reading-link {
        width: 100%;
        max-width: none;
    }
}

/* Blog Content Styling */
.blog-post ul {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
    list-style-type: disc;
}

.blog-post li {
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

.blog-post li strong {
    color: var(--text-main);
}
