/* ========================================
   Elektropuls 2026 - Custom WordPress Theme CSS
   Theme Name: Elektropuls 2026
   Version: 1.0.1
   ======================================== */

/* ========================================
   ROOT VARIABLES & PALETTE
   ======================================== */
:root {
    --primary: #1f6b4f;          /* main green */
    --primary-dark: #154b39;     /* darker green for headings */
    --accent: #2e8b57;
    --button: #1f6b4f;
    --button-hover: #154b39;
    --light-bg: #f7f9f8;
    --border: #e9eceb;
    --text: #213033;
    --muted: #6b7a77;
}

/* ========================================
   RESET & BASE STYLES
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    font-size: 16px;
}

a {
    color: #0073aa;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #eeeeee;
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

/* Utility classes */
.text-right {
    text-align: right;
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--button);
    color: #fff;
}

.btn-primary:hover {
    background: var(--button-hover);
}

.btn-secondary {
    background: #fff;
    color: var(--button);
    border: 2px solid var(--button);
}

.btn-secondary:hover {
    background: var(--button);
    color: #fff;
}

/* ========================================
   FRONT PAGE SECTIONS
   ======================================== */
.hero {
    padding: 60px 0;
    background-position: right center;
    background-size: auto 533px;
    background-repeat: no-repeat;
}

.hero-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
}

.hero-content {
    flex: 1 1 350px;
    min-width: 300px;
    z-index: 100;
}

.hero-content h1 {
    font-size: 2.2rem;
    color: var(--primary-dark);
    margin-bottom: 18px;
}

.hero-content p {
    color: var(--muted);
    font-size: 1.1rem;
    margin-bottom: 28px;
    text-shadow: -1px -1px 0 rgba(255,255,255,0.6),
                 1px -1px 0 rgba(255,255,255,0.6),
                 -1px 1px 0 rgba(255,255,255,0.6),
                 1px 1px 0 rgba(255,255,255,0.6);
}

.hero-actions {
    display: flex;
    gap: 16px;
}

.hero-image {
    flex: 1 1 350px;
    min-width: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.img-placeholder {
    width: 340px;
    height: 200px;
    background: #e0e0e0;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    font-size: 1.2rem;
}

.services {
    background: #fff;
    padding: 32px 0 24px;
}

.services-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.service-card {
    background: var(--light-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px 18px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.icon-placeholder {
    width: 106px;
	height: 78px;
	background: #ffffff;
	border: 1px solid #edefee;
	padding: 0px 10px;
    border-radius: 8px;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    font-size: 1.2rem;
}

.service-card h3 {
    color: var(--primary);
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.service-card p {
    color: var(--muted);
    font-size: 0.86rem;
    margin-bottom: 10px;
    text-align: justify;
}

.service-card a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.98rem;
}

.service-card a:hover {
    text-decoration: underline;
}

.our-work {
    background: var(--light-bg);
    padding: 32px 0 24px;
}

.our-work h2 {
    color: var(--primary-dark);
    margin-bottom: 18px;
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.work-img-placeholder {
    width: 160px;
    height: 90px;
    background: #e0e0e0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    font-size: 1rem;
}

.view-all {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    font-size: 1rem;
}

.view-all:hover {
    text-decoration: underline;
}

.testimonials {
    background: #fff;
    padding: 32px 0 24px;
}

.testimonials h2 {
    color: var(--primary-dark);
    margin-bottom: 18px;
}

.testimonials-list {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.testimonials-list blockquote {
    background: var(--light-bg);
    border-left: 4px solid var(--primary);
    border-radius: 8px;
    padding: 18px 18px 12px;
    font-size: 1.05rem;
    color: var(--primary-dark);
    margin: 0;
    flex: 1 1 220px;
    min-width: 180px;
}

.testimonials-list blockquote span {
    display: block;
    color: var(--muted);
    font-size: 0.95rem;
    margin-top: 8px;
}

.cta-contact {
    background: var(--light-bg);
    padding: 32px 0;
}

.cta-box {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    background: #fff;
    border-radius: 12px;
    padding: 24px 32px;
}

.cta-box span {
    font-size: 1.1rem;
    color: var(--primary-dark);
    font-weight: 500;
}

/* ========================================
   ARCHIVE / CATEGORY / BLOG STYLES
   ======================================== */
.archive-hero {
    padding: 28px 0 8px;
}

.archive-title {
    font-size: 28px;
    color: var(--primary-dark);
    margin-bottom: 6px;
}

.archive-description {
    color: var(--muted);
    margin-bottom: 16px;
}

.archive-layout {
	/*
    display: grid;
    grid-template-columns: 280px 1fr;
	*/
    gap: 28px;
    align-items: start;
}

.archive-sidebar .widget {
    background: #fff;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 18px;
}

.archive-sidebar .widget-title {
    margin-bottom: 12px;
    color: var(--primary-dark);
}

.archive-list .archive-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.post-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.post-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.post-card-thumb img,
.post-card-thumb .img-placeholder {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}
.object-fit-contain {
	object-fit: contain !important;
}

.post-card-body {
    padding: 16px;
    flex: 1;
}

.post-card-title {
    font-size: 18px;
    color: var(--primary-dark);
    margin-bottom: 8px;
}

.post-card-excerpt {
    color: var(--muted);
    font-size: 14px;
}

.archive-pagination {
    margin-top: 24px;
}

/* ========================================
   SINGLE POST STYLES
   ======================================== */
.single-post .post-featured img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    display: block;
}

.post-header {
    padding: 28px 0 14px;
}

.post-title {
    font-size: 34px;
    color: var(--primary-dark);
    margin-bottom: 10px;
}

.post-meta {
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 18px;
}

.post-content {
    background: #fff;
    padding: 18px;
    border-radius: 8px;
    border: 1px solid var(--border);
    line-height: 1.8;
}

.post-content img {
    max-width: 100%;
    height: auto;
}

.post-footer {
    margin-top: 18px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
}

.post-tags {
    color: var(--muted);
    font-size: 14px;
}

.post-nav {
    display: flex;
    gap: 12px;
}

.post-nav .nav-previous a,
.post-nav .nav-next a {
    color: var(--primary);
    font-weight: 700;
}

.related-posts {
    margin-top: 36px;
}

.related-posts h3 {
    margin-bottom: 12px;
    color: var(--primary-dark);
}

.related-grid {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.related-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    width: calc(33.333% - 10.6px);
}

.related-card img,
.related-card .img-placeholder {
    width: 100%;
    height: 120px;
    object-fit: cover;
    display: block;
}

.related-card h4 {
    padding: 10px;
    font-size: 15px;
    color: var(--primary-dark);
}

/* ========================================
   HEADER & NAVIGATION
   ======================================== */
.site-header {
    background: #ffffff;
    border-bottom: 1px solid var(--border);
    padding: 18px 0;
    position: sticky;
    top: 0;
    z-index: 10000;
    color: var(--text);
}

.site-header .container {
    display: flex;
    align-items: center;
    gap: 20px;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.site-branding img {
    max-height: 60px;
    width: 96px;
}

.site-title-wrapper {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.site-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
}

.site-title a {
    color: #333;
    text-decoration: none;
}

.site-title a:hover {
    color: #0073aa;
}

.site-description {
    font-size: 15px;
    color: #e0e7ef;
    margin: 0;
    font-weight: 400;
    letter-spacing: 0.5px;
}

.main-navigation {
    display: flex;
    align-items: center;
    gap: 0;
    flex: 1 1 auto;
    justify-content: center;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    padding: 8px 12px;
    color: var(--text);
    transition: color 0.3s ease;
    flex-shrink: 0;
}

.menu-toggle:hover {
    color: #0073aa;
}

#primary-menu {
    display: flex;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: stretch;
}

#primary-menu > li {
    position: relative;
}

#primary-menu a {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    margin: 0 10px;
    color: var(--text);
    text-decoration: none;
    background: transparent;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 15px;
    white-space: nowrap;
    position: relative;
    transition: color 0.25s ease, transform 0.15s ease;
}

#primary-menu a::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 6px;
    width: 56%;
    height: 2px;
    background: var(--primary);
    transform: translateX(-50%) scaleX(0);
    transform-origin: center;
    transition: transform 0.25s ease;
    opacity: 0.95;
}

#primary-menu a:hover,
#primary-menu li.current-menu-item > a,
#primary-menu li:hover > a {
    color: var(--primary);
}

#primary-menu a:hover::after,
#primary-menu li.current-menu-item > a::after,
#primary-menu li:hover > a::after {
    transform: translateX(-50%) scaleX(1);
}

.header-cta {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 8px;
    background: var(--button);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
}

.header-cta:hover {
    background: var(--button-hover);
}

/* ========================================
   FOOTER
   ======================================== */
.site-footer {
    background: #fff;
    color: #333;
    padding: 40px 0 30px;
    border-top: 1px solid #e9eceb;
}

.site-footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 32px;
}

.footer-left,
.footer-right {
    flex: 1 1 250px;
    min-width: 220px;
}

.footer-right {
    text-align: right;
}

.footer-branding {
    display: flex;
    flex-direction: column;
    margin-bottom: 10px;
}

.footer-branding span {
    font-weight: 700;
    font-size: 18px;
}

.custom-logo {
    max-height: 100px;
    width: auto;
}

.footer-phone a {
    color: #1f6b4f;
    font-weight: normal;
    text-decoration: none;
}

.footer-copyright {
    font-size: 13px;
}

#footer-menu {
    display: flex;
    flex-direction: column;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}

#footer-menu a {
    color: #999;
    transition: color 0.3s ease;
}

#footer-menu a:hover {
    color: #0073aa;
}

.site-info {
    text-align: center;
    border-top: 1px solid #444;
    padding-top: 20px;
    color: #999;
    font-size: 14px;
}

/* ========================================
   MISC / SHARED ELEMENTS
   ======================================== */
article {
    background: #fff;
    overflow: hidden;
}

.entry-header {
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.entry-title {
    font-size: 22px;
    margin-bottom: 10px;
}

.entry-title a {
    color: #333;
}

.entry-title a:hover {
    color: #0073aa;
    text-decoration: none;
}

.entry-meta {
    font-size: 14px;
    color: #666;
}

.entry-content {
    padding: 20px;
}

.entry-content p {
    margin-bottom: 15px;
}

.entry-footer {
    padding: 15px 20px;
    background-color: #f9f9f9;
    border-top: 1px solid #e0e0e0;
    font-size: 14px;
}

.cat-links a {
    display: inline-block;
    background-color: #e0e0e0;
    padding: 4px 10px;
    border-radius: 4px;
    margin-right: 8px;
    transition: background-color 0.3s ease;
}

.cat-links a:hover {
    background-color: #0073aa;
    color: #fff;
    text-decoration: none;
}

.read-more {
    display: inline-block;
    padding: 8px 16px;
    background-color: #0073aa;
    color: #fff;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.read-more:hover {
    background-color: #005a87;
    text-decoration: none;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 900px) {
    .hero-inner,
    .services-list,
    .work-grid,
    .testimonials-list,
    .cta-box {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-image,
    .hero-content {
        min-width: 0;
    }

    .archive-sidebar {
        order: 2;
    }

    .post-title {
        font-size: 26px;
    }

    .related-card {
        width: 100%;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 14px;
    }

    .site-header .container {
        padding: 0;
        gap: 10px;
    }

    .site-branding {
        width: 100%;
        gap: 10px;
        flex: unset;
        order: 1;
        justify-content: space-around;
    }

    .site-branding img {
        max-height: 50px;
    }

    .site-title {
        font-size: 20px;
    }

    .site-description {
        font-size: 12px;
    }

    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        order: -1;
        font-size: 25px;
    }

    .main-navigation {
        width: 100%;
        justify-content: flex-end;
        order: 3;
    }

    .header-cta-wrap {
        order: 2;
        display: none;
    }

    #primary-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background-color: #fff;
        border-top: 2px solid #0073aa;
        border-bottom: 1px solid #e0e0e0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        gap: 0;
        z-index: 999;
    }

    #primary-menu.active {
        max-height: 500px;
    }

    #primary-menu a {
        border-bottom: 1px solid #e0e0e0;
        padding: 15px 20px;
        width: 100%;
        margin: 0;
    }

    .container {
        padding: 0 15px;
    }

    .site-main {
        padding: 20px 0;
    }

    .entry-header,
    .entry-content,
    .entry-footer {
        padding: 15px;
    }

    .entry-title {
        font-size: 18px;
    }

    .service-card {
        max-width: unset;
    }
}

@media (max-width: 480px) {
    .site-title {
        font-size: 18px;
    }

    .entry-title {
        font-size: 16px;
    }

    #primary-menu.active {
        max-height: 400px;
    }

    .site-header {
        padding: 15px 0;
    }

    .site-footer {
        padding: 30px 0 15px;
    }

    .site-main {
        padding: 15px 0;
    }

    .services-list,
    .work-grid,
    .archive-list .archive-cards {
        gap: 16px;
		grid-template-columns: repeat(1, minmax(280px, 1fr));
    }
}

#site-navigation .menu-text {
	display: none;
}
/* ========================================
   FOOTER — Variantas B (4 stulpeliai, brand dark)
   ======================================== */
.site-footer {
    background: linear-gradient(180deg, #154b39 0%, #103c2e 100%);
    color: #d4e3dc;
    padding: 56px 0 28px;
    border-top: none;
    font-size: 15px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.4fr;
    gap: 40px;
    align-items: start;
}

.footer-col-brand {
    max-width: 320px;
}

.footer-brand {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.3px;
    color: #fff;
    margin-bottom: 12px;
}

.footer-tagline {
    margin: 0;
    color: #a9c4b8;
    line-height: 1.6;
    font-size: 14px;
}

.footer-heading {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #7fb89e;
    margin: 0 0 16px;
}

.footer-links,
.footer-contacts {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.footer-links a {
    color: #d4e3dc;
    text-decoration: none;
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.footer-links a:hover {
    color: #fff;
    padding-left: 4px;
}

.footer-contacts li {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.footer-contact-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6f9d89;
}

.footer-contacts a {
    color: #fff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-contacts a:hover {
    color: #9fe3c4;
}

.footer-maps {
    margin-left: 8px;
    font-size: 13px;
    color: #9fe3c4 !important;
    border-bottom: 1px solid rgba(159, 227, 196, 0.4);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 44px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-copyright {
    font-size: 13px;
    color: #93b3a6;
}

.footer-legal {
    font-size: 13px;
    color: #7fa094;
}

@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
    .footer-col-brand {
        grid-column: 1 / -1;
        max-width: none;
    }
}

@media (max-width: 560px) {
    .site-footer {
        padding: 40px 0 24px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}
