/**
 * Stiliai pagrindiniam puslapiui (Pradžia).
 * Kraunamas tik front page, žr. functions.php.
 */

/* ====================================================================
   Full-width pataisos — Shoptimizer's content wrapper apriboja iki
   1440px. Mūsų sekcijoms reikia, kad fonas eitų nuo krašto iki krašto.
   ==================================================================== */
.page-template-template-fullwidth-no-heading #primary,
.page-template-template-fullwidth-no-heading #content,
.page-template-template-fullwidth-no-heading .col-full,
.page-template-template-fullwidth-no-heading article.page,
.page-template-template-fullwidth-no-heading .entry-content {
    max-width: none !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.page-template-template-fullwidth-no-heading .entry-content > p:empty {
    display: none;
}

/* Oras tarp header ir pirmos sekcijos */
.page-template-template-fullwidth-no-heading .site-content {
    padding-top: 32px;
}
@media (max-width: 768px) {
    .page-template-template-fullwidth-no-heading .site-content { padding-top: 16px; }
}

/* ====================================================================
   Skiltys: kintantys foniniai atspalviai pagal BRANDBOOK
   ==================================================================== */
.gp-section {
    padding: 80px 0;
    width: 100%;
}
@media (max-width: 768px) {
    .gp-section { padding: 48px 0; }
}

.gp-section--white      { background: #FFFFFF; }
.gp-section--lightblue  { background: #E8F0FE; }
.gp-section--lightgray  { background: #F5F5F5; }
.gp-section--softpink   { background: #FCE4F1; }
.gp-section--softyellow { background: #FEF9E7; }
.gp-section--brand {
    background: linear-gradient(135deg, #002F66 0%, #1E4DB3 100%);
    color: #FFFFFF;
}
.gp-section--brand h1,
.gp-section--brand h2,
.gp-section--brand h3,
.gp-section--brand p { color: #FFFFFF; }

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

.gp-section h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 36px;
    line-height: 44px;
    font-weight: 600;
    margin: 0 0 12px;
    text-align: center;
}
.gp-section .gp-section-lead {
    text-align: center;
    font-size: 18px;
    line-height: 28px;
    color: #555;
    max-width: 720px;
    margin: 0 auto 48px;
}
.gp-section--brand .gp-section-lead { color: rgba(255,255,255,0.85); }

/* ====================================================================
   1. HERO slider — placeholder slaidai
   ==================================================================== */
.gp-hero { padding: 0; }
.gp-hero .wp-block-cover {
    min-height: 520px;
    border-radius: 0;
}
@media (max-width: 768px) {
    .gp-hero .wp-block-cover { min-height: 380px; }
}
.gp-hero h1 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 56px;
    line-height: 64px;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0 0 16px;
}
@media (max-width: 768px) {
    .gp-hero h1 { font-size: 36px; line-height: 44px; }
}
.gp-hero .gp-hero-sub {
    font-size: 20px;
    line-height: 30px;
    color: rgba(255,255,255,0.92);
    margin-bottom: 32px;
}
.gp-hero .gp-hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }

/* ====================================================================
   2. Shop by application — 3x3 grid
   ==================================================================== */
.gp-app-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
@media (max-width: 992px) { .gp-app-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .gp-app-grid { grid-template-columns: 1fr; } }

.gp-app-card {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    border-radius: 12px;
    overflow: hidden;
    background: #1E4DB3;
    text-decoration: none;
    transition: transform .25s ease, box-shadow .25s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.gp-app-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.16);
}
.gp-app-card img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}
.gp-app-card::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.7) 100%);
}
.gp-app-card-label {
    position: absolute;
    left: 20px; right: 20px; bottom: 20px;
    z-index: 2;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 22px;
    line-height: 28px;
    font-weight: 600;
    color: #FFFFFF;
}
.gp-section-cta-row {
    text-align: center;
    margin-top: 40px;
}

/* ====================================================================
   3. Shop by shape — 3x2, naudoja WC handpicked-products
   ==================================================================== */
.gp-shapes ul.products,
.gp-shapes .wc-block-grid__products {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    list-style: none;
    padding: 0;
    margin: 0;
}
@media (max-width: 992px) {
    .gp-shapes ul.products,
    .gp-shapes .wc-block-grid__products {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 540px) {
    .gp-shapes ul.products,
    .gp-shapes .wc-block-grid__products {
        grid-template-columns: 1fr;
    }
}
.gp-shapes ul.products li.product,
.gp-shapes .wc-block-grid__product {
    width: 100% !important;
    margin: 0 !important;
    background: #FFFFFF;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: box-shadow .25s ease, transform .25s ease;
    padding: 0 !important;
}
.gp-shapes ul.products li.product:hover,
.gp-shapes .wc-block-grid__product:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.gp-shapes ul.products li.product img {
    border-radius: 12px 12px 0 0;
    margin: 0;
    width: 100%;
}
.gp-shapes ul.products li.product .woocommerce-loop-product__title,
.gp-shapes .wc-block-grid__product-title {
    padding: 16px 20px 4px;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 20px;
    color: #002F66;
    margin: 0;
}
.gp-shapes ul.products li.product .price,
.gp-shapes .wc-block-grid__product-price {
    padding: 0 20px 16px;
    color: #1E4DB3;
    font-weight: 600;
}
.gp-shapes ul.products li.product .button,
.gp-shapes .wc-block-grid__product-add-to-cart .wp-block-button__link {
    margin: 0 20px 20px !important;
    width: calc(100% - 40px);
    background: #1E4DB3;
    color: #FFFFFF;
    border-radius: 8px;
    text-align: center;
}

/* ====================================================================
   4. Real cases — 3 placeholder photos
   ==================================================================== */
.gp-cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
@media (max-width: 992px) { .gp-cases-grid { grid-template-columns: 1fr; } }

.gp-case-card {
    background: #FFFFFF;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.gp-case-card img {
    width: 100%; height: 240px;
    object-fit: cover;
    display: block;
}
.gp-case-card-body { padding: 20px 24px 24px; }
.gp-case-card-body h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 20px;
    color: #002F66;
    margin: 0 0 8px;
}
.gp-case-card-body p {
    margin: 0;
    color: #555;
    font-size: 15px;
    line-height: 22px;
}

/* ====================================================================
   5. Trust strip — 4 ikonų eilė
   ==================================================================== */
.gp-trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
@media (max-width: 992px) { .gp-trust-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .gp-trust-grid { grid-template-columns: 1fr; } }

.gp-trust-item {
    text-align: center;
    padding: 24px 16px;
    background: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.gp-trust-icon {
    font-size: 40px;
    line-height: 1;
    margin-bottom: 12px;
    color: #1E4DB3;
}
.gp-trust-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 18px;
    font-weight: 600;
    color: #002F66;
    margin: 0 0 6px;
}
.gp-trust-desc {
    font-size: 14px;
    line-height: 20px;
    color: #666;
    margin: 0;
}

/* ====================================================================
   6. Why Us — 3 blokai su ikonomis (centruoti)
   ==================================================================== */
.gp-why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}
@media (max-width: 992px) { .gp-why-grid { grid-template-columns: 1fr; } }

.gp-why-item { text-align: center; }
.gp-why-icon {
    font-size: 48px;
    line-height: 1;
    margin-bottom: 16px;
    color: #D1268A;
}
.gp-why-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 22px;
    font-weight: 600;
    color: #002F66;
    margin: 0 0 8px;
}
.gp-why-desc {
    font-size: 16px;
    line-height: 24px;
    color: #444;
    margin: 0;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
}

/* ====================================================================
   7. CTA strip — full-width brand background
   ==================================================================== */
.gp-cta {
    text-align: center;
    padding: 80px 24px;
}
.gp-cta h2 {
    color: #FFFFFF;
    font-size: 40px;
    line-height: 48px;
    margin: 0 0 16px;
}
.gp-cta p {
    color: rgba(255,255,255,0.92);
    font-size: 18px;
    line-height: 28px;
    max-width: 640px;
    margin: 0 auto 32px;
}
.gp-cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.gp-btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: transform .2s, box-shadow .2s;
}
.gp-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.18); }
.gp-btn--primary { background: #D1268A; color: #FFFFFF; }
.gp-btn--primary:hover { background: #B01E75; color: #FFFFFF; }
.gp-btn--secondary {
    background: transparent;
    border: 2px solid #FFFFFF;
    color: #FFFFFF;
}
.gp-btn--secondary:hover { background: #FFFFFF; color: #002F66; }
.gp-btn--white { background: #FFFFFF; color: #1E4DB3; }
.gp-btn--white:hover { background: #F5F5F5; color: #002F66; }
