:root {
    --accent: #3AAA35;
}

html {scroll-behavior: smooth;
    scroll-padding-top: 140px; /* Offset for sticky header */
}

.site-header {
    background-color: #222533;
}

.site-header.scrolled {
    background-color: #222533 !important;
    color: #fff !important;
}

/* Mobile menu toggle - white on dark header */
.mobile-menu-toggle span {
    background: #fff !important;
}

.page-body, .post-body {
    font-size: inherit;
    line-height: 1.4;
}

.post-body table, .page-body table {
    width: 100%;
    border-collapse: collapse;
    font-size: .9rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
    text-align: left;
}

.post-body table th, .post-body table td, .page-body table th, .page-body table td {
    border: 1px solid #ddd;
    padding: 8px;
}

.post-body table tr:nth-child(even), .page-body table tr:nth-child(even) {
    background-color: #f2f2f2;
}

.post-body table tr:hover, .page-body table tr:hover {
    background-color: #ddd;
}

.header-content {
    padding: 10px 0;
}

.site-nav {
    text-transform: uppercase;
}

.site-nav a {
    color: #fff;
}

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

.contact-detail-value {
    line-height: 1.5;
    font-size: 1.2rem;
}

.hero-block h1 {
    font-size: 4rem;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.homepage .content-block {
    padding: 60px 0;
}

.hero-content .btn-primary {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    border: solid 2px rgba(255, 255, 255, 0.8);
    border-radius: 0px;
    padding: 14px 40px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-right: 10px;
    background-color: transparent;
    -webkit-transition: all .5s;
    -o-transition: all .5s;
    transition: all .5s;
}

.features-grid[data-columns="3"] {
    gap: 60px;
}

.features-block h2 {
    font-size: 3rem;
}

.features-block .feature-icon {
    font-size: 4rem;
    color: #3AAA35;
}

.feature-item {
    padding: 1rem 2rem;
    border: solid 1px rgba(209, 209, 209, 0.7);
    position: relative;
    background: white;
    transition: border-color 1s ease;
}

/* Gradient border on hover using pseudo-element */
.feature-item-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    padding: 1px; /* Border thickness */
    background: linear-gradient(135deg, #3AAA35, #00c6d7, #3AAA35);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.feature-item-link:hover::before {
    opacity: 1;
}

.feature-item-link:hover {
    border-color: transparent;
}

.feature-image img {
    width: 100%;
    height: auto;
}

.feature-item h3 {
    margin-bottom: 2rem;
}

.page-body p, .post-body p, .content p {
    line-height: 1.7;
    text-indent: 0;
}

.content a {
    color: #3AAA35; 
    text-decoration: none;
}

.gallery-block {
    padding: 0;
}

.image-block {
    padding: 0;
}

.image-block img {
    box-shadow: none;
}

.homepage .site-main {
    padding-bottom: 0;
}

.site-footer {
    background-color: #1a1c27!important;
    padding: 60px 0 30px;
    margin-top: 0;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 80px;
    margin-bottom: 40px;
    text-align: left;
}

/* Tablet: 2x2 grid */
@media (min-width: 768px) and (max-width: 991px) {
    .footer-columns {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
}

.footer-column h3 {
    color: #3AAA35;
    font-size: 1.6rem;
    margin-bottom: 10px;
}

.footer-column p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    color: #3AAA35;
    margin-left: 0;
}

.footer-nav {
    justify-content: start;
}

.site-footer .footer-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-footer .footer-nav a,
.footer-column a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

.site-footer .footer-nav a:hover,
.footer-column a:hover {
    color: #00c6d7;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

@media (max-width: 768px) {
    .footer-columns {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .footer-columns {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* Clients */
.clients .posts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 34px;
}

.clients .post-card {
    border-bottom: none;
    padding: 0;
}

.clients .post-card-image {
    width: 100%;
    height: auto;
}

.clients .archive-header {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 2rem;
}

.clients .post-featured-image {
    width: 100%;
    height: auto;
    margin-top: 2rem;
}

/* Post Tags */
.post-tags .tag-link:hover {
    background-color: #3AAA35;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px #3AAA35;
    border-color: #3AAA35;
}