:root {
    /* Luxuriant Grey Color Palette */
    --primary: #4A708B;       /* Professional Blue-Grey */
    --primary-light: #8C9DAE; /* Architectural Grey */
    --bg-light: #FFFFFF;      /* Pure White */
    --bg-grey: #F9F9F9;       /* Ultra-Light Grey Section Background */
    --text-main: #333333;     /* Soft Dark Grey */
    --text-muted: #666666;    /* Muted Grey */
    --border-light: #E5E7EB;  /* Subtle Border */
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(0, 0, 0, 0.05);
    
    /* Spacing & Borders */
    --radius: 12px;           /* More modern radius */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --header-height: 90px;
    --header-height-scrolled: 70px;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 15px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.12);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.7;
    overflow-x: hidden;
    padding-top: var(--header-height);
}

/* Typography */
h1, h2, h3 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: #1a1a1a;
}

h2 {
    font-size: 2.25rem;
    letter-spacing: -0.02em;
}

.text-muted {
    color: var(--text-muted);
}

/* Layout */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: var(--bg-light);
    border-bottom: 1px solid var(--border-light);
    height: var(--header-height);
    display: flex;
    align-items: center;
    transition: var(--transition);
}

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

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

.logo {
    font-size: 1.25rem;
    font-weight: 800;
    text-decoration: none;
    color: #000;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

/* Main Content Wrapper */
.main-content {
    min-height: calc(100vh - var(--header-height));
    padding-bottom: 5rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Blog Styles */
.blog-header {
    padding: 5rem 0 4rem;
    text-align: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    margin-bottom: 4rem;
    border-bottom: 1px solid var(--border-light);
}

.category-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}

.category-nav a {
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    background: #fff;
    border: 1px solid var(--border-light);
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.category-nav a:hover,
.category-nav a.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2.5rem;
}

.blog-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border-light);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.blog-card-image {
    width: 100%;
    height: 240px;
    overflow: hidden;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.05);
}

.blog-card-body {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-category {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 0.75rem;
    letter-spacing: 1px;
}

.blog-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

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

.blog-title a:hover {
    color: var(--primary);
}

.blog-excerpt {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.blog-meta {
    font-size: 0.85rem;
    color: #999;
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Blog Post Detail */
.post-detail {
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem 1.5rem;
}

.post-meta-top {
    text-align: center;
    margin-bottom: 3rem;
}

.post-featured-image {
    width: 100%;
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 3rem;
    box-shadow: var(--shadow-md);
}

.post-featured-image img {
    width: 100%;
    display: block;
}

.post-content {
    font-size: 1.15rem;
    line-height: 1.8;
}

.post-content p {
    margin-bottom: 2rem;
}

/* Mobile Navigation */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    align-items: center;
    gap: 0.75rem;
}

.toggle-label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-main);
    letter-spacing: 0.5px;
}

.hamburger-lines span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-main);
    margin: 4px 0;
    transition: var(--transition);
}

.mobile-toggle.active .hamburger-lines span:nth-child(1) {
    transform: rotate(-45deg) translate(-4px, 4px);
}

.mobile-toggle.active .hamburger-lines span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active .hamburger-lines span:nth-child(3) {
    transform: rotate(45deg) translate(-4px, -4px);
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--primary);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.9rem 2.2rem;
    border-radius: var(--radius);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

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

.btn-primary:hover {
    background-color: #3a5b73;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(74, 112, 139, 0.15);
}

.btn-outline {
    border: 1px solid var(--border-light);
    background: transparent;
    color: var(--text-main);
}

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

/* Hero Section */
.hero {
    padding: 6rem 2rem 8rem;
    background-color: var(--bg-grey);
    text-align: center;
    border-bottom: 1px solid var(--border-light);
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 2rem;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Sections */
section {
    padding: 8rem 2rem;
    max-width: 1300px;
    margin: 0 auto;
}

section.alt {
    background-color: var(--bg-grey);
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
}

/* Service Cards */
.card {
    background: var(--bg-light);
    padding: 0;
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    transition: var(--transition);
    text-align: left;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.05);
    border-color: var(--primary-light);
}

.card-body {
    padding: 2.5rem;
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    color: var(--primary);
}

/* Footer */
footer {
    padding: 6rem 2rem 3rem;
    background-color: #1a1a1a;
    color: #fff;
}

footer a {
    color: #ccc;
    text-decoration: none;
    transition: var(--transition);
}

footer a:hover {
    color: #fff;
}

.footer-grid {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 4rem;
    margin-bottom: 4rem;
}

/* Mobile */
@media (max-width: 992px) {
    .nav-links {
        display: none;
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background: var(--bg-light);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        border-bottom: 1px solid var(--border-light);
        box-shadow: var(--shadow-md);
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-toggle {
        display: flex;
    }

    .contact-pill {
        display: none;
    }

    .blog-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .blog-header { padding: 3rem 0; }
    .hero { padding: 10rem 1.5rem 6rem; }
}
