/* ============================================================
   Energishop — Pages (Sobre + Contato) Shared Styles
   Prefix: esh-  |  Colors: #111 / #FFD100 / #FFF
   Depends on: esh-home.css tokens, esh-home.css .esh-btn,
               esh-home.css .esh-whatsapp-cta__btn
   ============================================================ */

/* ============================================================
   LAYOUT — Full-width, force container widths, kill sidebar
   ============================================================ */
body.page-template-page-sobre .site-content,
body.page-template-page-contato .site-content {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

body.page-template-page-sobre .ast-container,
body.page-template-page-contato .ast-container {
    max-width: 100% !important;
    padding: 0 !important;
    display: block !important;
}

body.page-template-page-sobre #primary,
body.page-template-page-contato #primary {
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}

body.page-template-page-sobre #secondary,
body.page-template-page-contato #secondary {
    display: none !important;
    width: 0 !important;
}

body.page-template-page-sobre .entry-header,
body.page-template-page-contato .entry-header {
    display: none !important;
}

/* ---- Container (replicate esh-home.css token for standalone pages) ---- */
.esh-page-section .esh-container,
.esh-page-hero .esh-container {
    max-width: 1240px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
    width: 100%;
    box-sizing: border-box;
}

/* ============================================================
   PAGE HERO
   ============================================================ */
.esh-page-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 220px;
    background: var(--esh-black, #111);
    overflow: hidden;
}

.esh-page-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(17, 17, 17, .95) 0%,
        rgba(17, 17, 17, .8) 50%,
        rgba(255, 209, 0, .15) 100%
    );
    z-index: 1;
}

.esh-page-hero .esh-container {
    position: relative;
    z-index: 2;
    text-align: center;
    padding-top: 48px;
    padding-bottom: 48px;
}

.esh-page-hero__title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--esh-white, #FFF);
    margin: 0 0 8px;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.esh-page-hero__subtitle {
    font-size: clamp(.95rem, 1.5vw, 1.1rem);
    color: rgba(255, 255, 255, .7);
    margin: 0;
    line-height: 1.5;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================================
   PAGE SECTION — Generic wrapper
   ============================================================ */
.esh-page-section {
    padding: 64px 0;
}

.esh-page-section--alt {
    background: var(--esh-gray-50, #FAFAFA);
}

/* ============================================================
   SOBRE — Main (image + text grid)
   ============================================================ */
.esh-sobre__main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}

.esh-sobre__image-wrap {
    position: relative;
    border-radius: var(--esh-radius, 12px);
    overflow: hidden;
    box-shadow: var(--esh-shadow-lg, 0 8px 40px rgba(0,0,0,.12));
}

.esh-sobre__image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform .6s cubic-bezier(.4,0,.2,1);
}

.esh-sobre__image-wrap:hover .esh-sobre__image {
    transform: scale(1.03);
}

.esh-sobre__heading {
    font-size: clamp(1.3rem, 2.5vw, 1.75rem);
    font-weight: 800;
    color: var(--esh-black, #111);
    margin: 0 0 16px;
    line-height: 1.2;
}

.esh-sobre__text {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--esh-gray-600, #525252);
    margin: 0 0 28px;
}

/* ============================================================
   SOBRE — Cards (Missão / Visão / Valores)
   ============================================================ */
.esh-sobre__cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.esh-sobre__card {
    background: var(--esh-white, #FFF);
    border-radius: var(--esh-radius, 12px);
    padding: 36px 28px;
    text-align: center;
    box-shadow: var(--esh-shadow-sm, 0 1px 3px rgba(0,0,0,.08));
    transition: transform var(--esh-transition, .3s cubic-bezier(.4,0,.2,1)),
                box-shadow var(--esh-transition, .3s cubic-bezier(.4,0,.2,1));
}

.esh-sobre__card:hover {
    transform: translateY(-4px);
    box-shadow: var(--esh-shadow-md, 0 4px 20px rgba(0,0,0,.08));
}

.esh-sobre__card-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255, 209, 0, .12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--esh-yellow, #FFD100);
    transition: background var(--esh-transition, .3s cubic-bezier(.4,0,.2,1));
}

.esh-sobre__card:hover .esh-sobre__card-icon {
    background: var(--esh-yellow, #FFD100);
    color: var(--esh-black, #111);
}

.esh-sobre__card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--esh-black, #111);
    margin: 0 0 10px;
}

.esh-sobre__card-text {
    font-size: .9rem;
    line-height: 1.6;
    color: var(--esh-gray-600, #525252);
    margin: 0;
}

/* ============================================================
   SOBRE — WhatsApp CTA section
   ============================================================ */
.esh-sobre__cta {
    background: var(--esh-gray-50, #FAFAFA);
}

.esh-sobre__cta-title {
    font-size: clamp(1.3rem, 2.5vw, 1.75rem);
    font-weight: 800;
    color: var(--esh-black, #111);
    margin: 0 0 8px;
}

.esh-sobre__cta-text {
    font-size: 1rem;
    color: var(--esh-gray-600, #525252);
    margin: 0 0 28px;
}

/* ============================================================
   CONTATO — Info Cards (4-col grid)
   ============================================================ */
.esh-contato__cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.esh-contato__card {
    background: var(--esh-white, #FFF);
    border-radius: var(--esh-radius, 12px);
    padding: 32px 24px;
    text-align: center;
    box-shadow: var(--esh-shadow-sm, 0 1px 3px rgba(0,0,0,.08));
    transition: transform var(--esh-transition, .3s cubic-bezier(.4,0,.2,1)),
                box-shadow var(--esh-transition, .3s cubic-bezier(.4,0,.2,1));
}

.esh-contato__card:hover {
    transform: translateY(-4px);
    box-shadow: var(--esh-shadow-md, 0 4px 20px rgba(0,0,0,.08));
}

.esh-contato__card-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 209, 0, .12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    color: var(--esh-yellow, #FFD100);
    transition: background var(--esh-transition, .3s cubic-bezier(.4,0,.2,1)),
                color var(--esh-transition, .3s cubic-bezier(.4,0,.2,1));
}

.esh-contato__card:hover .esh-contato__card-icon {
    background: var(--esh-yellow, #FFD100);
    color: var(--esh-black, #111);
}

.esh-contato__card-icon--wa {
    background: rgba(37, 211, 102, .12);
    color: #25D366;
}

.esh-contato__card:hover .esh-contato__card-icon--wa {
    background: #25D366;
    color: var(--esh-white, #FFF);
}

.esh-contato__card-title {
    font-size: .9rem;
    font-weight: 700;
    color: var(--esh-black, #111);
    margin: 0 0 8px;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.esh-contato__card-value {
    font-size: .95rem;
    line-height: 1.5;
    color: var(--esh-gray-600, #525252);
    text-decoration: none;
    word-break: break-word;
    transition: color var(--esh-transition, .3s cubic-bezier(.4,0,.2,1));
}

a.esh-contato__card-value:hover {
    color: var(--esh-yellow, #FFD100);
}

/* ============================================================
   CONTATO — Map + Hours (2-col grid)
   ============================================================ */
.esh-contato__map-section {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: center;
}

.esh-contato__map-wrap {
    border-radius: var(--esh-radius, 12px);
    overflow: hidden;
    box-shadow: var(--esh-shadow-md, 0 4px 20px rgba(0,0,0,.08));
}

.esh-contato__map {
    width: 100%;
    height: 400px;
    border: none;
    display: block;
}

.esh-contato__hours {
    padding: 20px 0;
}

.esh-contato__hours-title {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    font-weight: 800;
    color: var(--esh-black, #111);
    margin: 0 0 12px;
    line-height: 1.2;
}

.esh-contato__hours-text {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--esh-gray-600, #525252);
    margin: 0 0 28px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablet — 768px */
@media (max-width: 768px) {
    .esh-page-hero {
        min-height: 180px;
    }

    .esh-page-section {
        padding: 48px 0;
    }

    .esh-sobre__main {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .esh-sobre__image-wrap {
        max-width: 400px;
        margin: 0 auto;
    }

    .esh-sobre__cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .esh-contato__cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .esh-contato__map-section {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .esh-contato__map {
        height: 300px;
    }
}

/* Mobile — 480px */
@media (max-width: 480px) {
    .esh-page-hero {
        min-height: 160px;
    }

    .esh-page-hero .esh-container {
        padding-top: 32px;
        padding-bottom: 32px;
    }

    .esh-page-section {
        padding: 36px 0;
    }

    .esh-sobre__main {
        gap: 24px;
    }

    .esh-sobre__card {
        padding: 28px 20px;
    }

    .esh-contato__cards {
        grid-template-columns: 1fr;
    }

    .esh-contato__card {
        padding: 24px 20px;
    }

    .esh-contato__map {
        height: 240px;
    }

    .esh-contato__hours-title {
        font-size: 1.2rem;
    }
}
