/* Custom styles carried over from the original Layer 3 Logic site.  These
 * declarations preserve the colour palette and interactive behaviours used on
 * the static HTML version.  The classes defined here are referenced by the
 * layout and Markdown files in this Hugo project. */

/* --- General & Global Styles --- */
body {
    font-family: 'Inter', sans-serif;
}

.hidden {
    display: none;
}

/* --- Reusable Button Styles --- */
.btn-primary {
    background-color: #3b82f6;
    color: #fff;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: #2563eb;
}

/* --- Navigation Links --- */
.nav-link {
    color: #4b5563;
    transition: color 0.3s ease;
}

.dark .nav-link {
    color: #d1d5db;
}

.nav-link:hover {
    color: #3b82f6;
}

.dark .nav-link:hover {
    color: #60a5fa;
}

.nav-link-active {
    color: #3b82f6;
    font-weight: 600;
}

.dark .nav-link-active {
    color: #60a5fa;
}

/* --- Theme Toggle & Menu Buttons --- */
.theme-toggle,
.theme-toggle-mobile {
    color: #4b5563;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.dark .theme-toggle,
.dark .theme-toggle-mobile {
    color: #d1d5db;
}

.theme-toggle:hover,
.theme-toggle-mobile:hover {
    background-color: #e5e7eb;
}

.dark .theme-toggle:hover,
.dark .theme-toggle-mobile:hover {
    background-color: #374151;
}

.theme-toggle:focus,
.theme-toggle-mobile:focus,
.menu-toggle:focus {
    outline: none;
    box-shadow: 0 0 0 2px #3b82f6;
}

.menu-toggle {
    color: #4b5563;
}

.dark .menu-toggle {
    color: #d1d5db;
}

/* --- Mobile Menu Divider --- */
.mobile-menu-divider {
    border-top: 1px solid #e5e7eb;
}

.dark .mobile-menu-divider {
    border-top: 1px solid #374151;
}

/* --- Filter Buttons --- */
.filter-btn {
    background-color: #e5e7eb;
    color: #374151;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.dark .filter-btn {
    background-color: #374151;
    color: #d1d5db;
}

.filter-btn:hover,
.filter-btn.active {
    background-color: #3b82f6;
    color: #fff;
}

/* --- Sticky Header Placeholder --- */
#header-placeholder {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 50;
}

/* --- Index Page Specific Styles --- */
.hero-section {
    /* Fallback image (overridden inline in the layout) */
    background-image: linear-gradient(rgba(17, 24, 39, 0.8), rgba(17, 24, 39, 0.8)), url('https://images.pexels.com/photos/3184418/pexels-photo-3184418.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=2');
    background-size: cover;
    background-position: center;
}

.section-title {
    border-bottom: 3px solid #3b82f6;
    padding-bottom: 0.5rem;
    display: inline-block;
}

.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

.dark .service-card:hover {
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.2), 0 8px 10px -6px rgb(0 0 0 / 0.2);
}

.service-card-content {
    flex-grow: 1;
}

.cta-button {
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.cta-button:hover {
    transform: scale(1.05);
}

/* --- Blog Page Specific Styles --- */
.post-card-link {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: block;
}

.post-card-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

.dark .post-card-link:hover {
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.2), 0 4px 6px -4px rgb(0 0 0 / 0.2);
}

/* --- Post Template Specific Styles --- */
.prose {
    font-size: 1.125rem;
    line-height: 1.75;
}

.prose h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.prose h2 {
    margin-top: 3rem;
}