/*
Theme Name: EyeCare Partners Child
Description: Child theme for Eye Care Partners
Author: Glacial Multimedia
Author URI: https://www.glacial.com
Template: eye-care-partners
Version: 1.0.0
*/


/*
 * Aesthetics styles
 *
 * Everything is scoped under .is-aesthetic (added to the body on the Aesthetic Homepage and the
 * Aesthetics pages, and to the before & after block) so the shared template is untouched.
 * Sand and gold appear only on cosmetic content.
 * */

.is-aesthetic {
    --aesthetic-sand: #f8f1e9;
    --aesthetic-sand-tint: #eadccc;
    --aesthetic-gold: #b5832a;
    /* Small gold text uses the darker gold for WCAG AA contrast on white and sand */
    --aesthetic-gold-dark: #8a6420;
    --aesthetic-accent-font: 'Cormorant Garamond', Georgia, serif;
}

/* Eyebrow label */
.is-aesthetic .aesthetic-eyebrow {
    margin-bottom: 12px;
    color: var(--aesthetic-gold-dark);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .22em;
    line-height: 1.4;
    text-transform: uppercase;
}

/* Accent word: one per heading, about 6px larger than its heading */
.is-aesthetic .aesthetic-accent {
    font-family: var(--aesthetic-accent-font);
    font-size: calc(1em + 6px);
    font-style: italic;
    font-weight: 500;
}

/* Outline button: same pill shape and size as the existing buttons */
.is-aesthetic .button.aesthetic-outline-button,
.is-aesthetic .ui-button.aesthetic-outline-button {
    border: 1px solid var(--aesthetic-gold);
    background-color: transparent;
    color: var(--text-black);
}

.is-aesthetic .button.aesthetic-outline-button:hover,
.is-aesthetic .ui-button.aesthetic-outline-button:hover {
    background-color: var(--aesthetic-gold-dark);
    color: #fff;
}

/* Aesthetics tiles: the existing service tile on sand, taller photo */
.is-aesthetic .aesthetic-services-section {
    background-color: var(--aesthetic-sand);
    text-align: center;
}

/*
 * Service tiles (Aesthetics and Eye Care Services): 5 per row at the same size.
 * Flex instead of grid so a short last row stays centered (e.g. 7 tiles = 5 + 2).
 */
.is-aesthetic .home-services-grid {
    --aesthetic-tile-gap: 1.25rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--aesthetic-tile-gap);
    text-align: left;
}

.is-aesthetic .home-services-grid .service-link {
    width: calc((100% - (var(--aesthetic-tiles-per-row, 5) - 1) * var(--aesthetic-tile-gap)) / var(--aesthetic-tiles-per-row, 5));
}

.is-aesthetic .home-services-grid .top-service-div {
    padding: 20px;
    font-size: 1em;
}

.is-aesthetic .aesthetic-services-grid .service-photo-div {
    background-color: var(--aesthetic-sand-tint);
}

.is-aesthetic .aesthetic-services-grid .service-photo-div img {
    height: 260px;
    aspect-ratio: auto;
    object-position: center;
}

/* Before & after on the homepage */
.is-aesthetic .aesthetic-home-before-after {
    padding-left: 5%;
    padding-right: 5%;
    background-color: #fff;
}

.is-aesthetic .aesthetic-home-before-after .button {
    margin-top: 10px;
}

/*
 * Patient Reviews: shorter section. The parent gives it a 55vh minimum, 5% padding and a fixed-height
 * slider with absolutely positioned slides; here the slider fits its tallest review instead.
 */
.is-aesthetic .testimonial-section {
    min-height: 0;
    padding-top: clamp(20px, 3.5vw, 50px);
    padding-bottom: clamp(20px, 3.5vw, 50px);
}

/* min-height overrides the parent's 350px on phones */
.is-aesthetic .testimonial-section .slider {
    height: auto;
    min-height: 0;
    margin-top: 10px;
    margin-bottom: 10px;
}

.is-aesthetic .testimonial-section .slide-content-div {
    position: relative;
}

/* Review tag: white pill above the quote */
.is-aesthetic .testimonial-tag {
    display: inline-block;
    margin-bottom: 15px;
    padding: 4px 14px;
    border-radius: 50px;
    background-color: #fff;
    color: var(--aesthetic-gold-dark);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .15em;
    text-transform: uppercase;
}

/* Specialty tag under each doctor's name */
.is-aesthetic .doc-specialty-tag {
    display: block;
    margin-top: 6px;
    color: var(--aesthetic-gold-dark);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .15em;
    text-transform: uppercase;
}

/* Payment cards: four across instead of three, so tighten the Link Cards padding */
.is-aesthetic .insurance-section .card-content {
    padding: 30px 25px;
}

/* Footer callout: appointment + cosmetic consultation buttons side by side */
.is-aesthetic .aesthetic-button-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
}

@media screen and (max-width: 991px) {

    .is-aesthetic .home-services-grid {
        --aesthetic-tiles-per-row: 2;
    }
}

@media screen and (max-width: 767px) {

    .is-aesthetic .home-services-grid {
        --aesthetic-tiles-per-row: 1;
    }
}
