/*
Theme Name: Law Hesselbaum - CHILD
Template: law-hesselbaum
Theme URI: https://git.weblinx.com/weblinx/law-hesselbaum
Author: Weblinx, Inc.
Author URI: https://www.weblinxinc.com/
Description: A brand new child theme built just for Law Hesselbaum!
Version: 0.1.0
License:
License URI: ../LICENSE.md
Text Domain: Law Hesselbaum
Tags:

Law Hesselbaum is based on Underscores http://underscores.me/, (C) 2012-2019 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.

Normalizing styles have been helped along thanks to the fine work of
Nicolas Gallagher and Jonathan Neal http://necolas.github.io/normalize.css/
*/


/* ── Center the LH (middle) logo in the viewport at all widths.
   The header row is a 3-column grid with EQUAL side columns, so the middle
   logo lands dead-center while LEL stays flush-left and the contact block
   flush-right — independent of the side elements' widths. Below 1200px the
   theme hides .contact_address, which just leaves the right column empty,
   so LH stays centered with no spacer needed. */
.middle_inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    column-gap: 40px; /* guaranteed minimum spacing between the logo and each side */
}

/* LEL (left) logo: sizing + flush-left in its column */
.middle_inner .header_logo:first-child {
    display: flex;
    align-items: center;
    width: auto;
    justify-self: start;
    img {
        max-width: 180px;
    }
}

/* Contact block: flush-right in its column (keeps its left-aligned icons) */
.middle_inner .contact_address {
    justify-self: end;
    max-width: 100%;
}

/* LH (middle) logo: drop the parent theme's 30px right margin on the image
   (.header_logo img:first-child) so the logo is symmetric within its column. */
.middle_inner .header_logo + .header_logo img {
    margin: 0;
}

@media (max-width: 767px) {
    /* Shrink-to-fit: cap both logos in viewport units so 2×LEL + LH + gaps
       always fits the viewport — LEL never overflows its grid column, so the
       two logos can't overlap (verified to ~300px). The px caps win on wider
       phones (full size); narrower widths scale both down proportionally. */
    .middle_inner {
        column-gap: 12px;
    }
    .middle_inner .header_logo:first-child img {       /* LEL */
        max-width: min(110px, 25vw);
    }
    .middle_inner .header_logo + .header_logo img {    /* LH */
        max-width: min(157px, 40vw);
    }
}

/* ── Homepage Google Reviews blade: overall rating summary (above the slider) */
.reviews-google__rating {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px 12px;
    margin: 4px 0 26px;
}

.reviews-google__score {
    font-size: 32px;
    font-weight: 700;
    line-height: 1;
    color: #163b61; /* brand navy */
}

.reviews-google__stars {
    font-size: 24px;
    letter-spacing: 2px;
    color: #f5b50a; /* Google-style gold */
}

.reviews-google__count {
    font-size: 16px;
    color: #2f6398; /* brand blue */
    text-decoration: none;
}

a.reviews-google__count:hover {
    text-decoration: underline;
}

/* Site-wide (in-page) reviews sections that replaced the old testimonials:
   tighter vertical padding than the homepage feature. */
.review_section.reviews-google--in-page {
    padding: 96px 0 36px;
}

/* Clears the preceding .whychoose.overlap (margin-bottom: -110px). */
.review_section.reviews-google--in-page.reviews-google--overlap {
    padding-top: 200px;
}
