/* ============================================================
   My Studio Widgets — GC Services
   Full-bleed image cards pulled from wp_latepoint_services.
   ============================================================ */

.gc-services-wrap {
    --gc-sv-gold:       #b8953a;
    --gc-sv-gold-light: #d4af6a;
    --gc-sv-gold-pale:  #ecddb8;
    --gc-sv-dark:       #1c1914;
    --gc-sv-text:       #3a3228;
    --gc-sv-text-light: #7a6e62;
    --gc-sv-cream:      #faf5ec;
    --gc-sv-border:     rgba(184,149,58,0.25);
    --gc-sv-count:      3;
    --gc-sv-accent:     #b8953a;
    --gc-sv-img-h:      220px;
}

.gc-services-wrap *,
.gc-services-wrap *::before,
.gc-services-wrap *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ── Section wrapper ── */
.gc-services-wrap {
    width: 100%;
    font-family: 'Montserrat', Arial, sans-serif;
}

/* ─────────────────────────────────────────
   SECTION HEADER
   ───────────────────────────────────────── */
.gc-services-header {
    text-align: center;
    padding: 0 1rem 2.8rem;
}

.gc-services-header__ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.9rem;
    margin-bottom: 1.2rem;
}

.gc-services-header__line {
    flex: 1;
    max-width: 80px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gc-sv-gold-light));
}

.gc-services-header__line + .gc-services-header__line {
    background: linear-gradient(90deg, var(--gc-sv-gold-light), transparent);
}

.gc-services-header__diamond {
    width: 6px;
    height: 6px;
    background: var(--gc-sv-gold);
    transform: rotate(45deg);
    flex-shrink: 0;
}

.gc-services-header__overline {
    font-family: 'trajan-pro', 'Cormorant Garamond', Georgia, serif;
    font-size: 1.58rem;
    font-weight: 700;
    letter-spacing: 0px;
    text-transform: uppercase;
    color: var(--gc-j-gold);
    margin-bottom: 0.6rem;
}

.gc-services-header__heading {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 700;
    color: var(--gc-sv-dark);
    letter-spacing: 0.04em;
    line-height: 1.15;
    margin-bottom: 0.6rem;
}

.gc-services-header__sub {
    /* font-family: 'Cormorant Garamond', Georgia, serif; */
    font-size: 19px;
    font-style: italic;
    font-weight: 300;
    color: var(--gc-sv-text-light);
    line-height: 1.6;
}

/* ─────────────────────────────────────────
   GRID
   ───────────────────────────────────────── */
.gc-services-grid {
    display: grid;
    grid-template-columns: repeat(var(--gc-sv-count), 1fr);
    grid-auto-rows: 1fr;
    gap: 8px;
    align-items: stretch;
}

/* ─────────────────────────────────────────
   CARD
   ───────────────────────────────────────── */
.gc-services-card {
    position: relative;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    background: var(--gc-sv-cream);
    border: 1px solid var(--gc-sv-border);
    box-shadow: 0 2px 16px rgba(28,25,20,0.07);
    transition: box-shadow 0.4s ease;
    min-height: calc(var(--gc-sv-img-h) + 160px);
}

.gc-services-card:hover {
    box-shadow: 0 8px 32px rgba(28,25,20,0.15);
}

.gc-services-card__link {
    display: flex;
    flex-direction: column;
    width: 100%;
    flex: 1;
    min-height: 0;
    text-decoration: none;
    color: inherit;
    position: relative;
}

/* ── Image (top of card, fixed height) ── */
.gc-services-card__image {
    position: relative;
    width: 100%;
    height: var(--gc-sv-img-h);
    overflow: hidden;
    flex-shrink: 0;
}

.gc-services-card__image img,
.gc-services-card__img-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.gc-services-card:hover .gc-services-card__image img {
    transform: scale(1.08);
}

/* ── Subtle overlay on image only ── */
.gc-services-card__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: var(--gc-sv-img-h);
    z-index: 1;
    background: linear-gradient(
        to bottom,
        rgba(28,25,20,0.0) 60%,
        rgba(28,25,20,0.2) 100%
    );
    pointer-events: none;
}

/* ── Gold accent line at bottom of image ── */
.gc-services-card__accent-line {
    position: absolute;
    top: calc(var(--gc-sv-img-h) - 3px);
    left: 0;
    right: 0;
    height: 3px;
    z-index: 3;
    background: var(--gc-sv-accent);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.gc-services-card:hover .gc-services-card__accent-line {
    transform: scaleX(1);
}

/* ── Reset LatePoint's default button styles on our card link ── */
.gc-services-card__link.latepoint-book-button,
.gc-services-card__link.latepoint-book-button:hover,
.gc-services-card__link.latepoint-book-button:focus {
    display: flex !important;
    flex-direction: column !important;
    width: 100%;
    flex: 1;
    text-decoration: none;
    position: relative;
    background: none !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    font-size: inherit !important;
    color: inherit !important;
    outline: none;
}

/* ── Card content (below image) ── */
.gc-services-card__content {
    position: relative;
    z-index: 2;
    padding: 1.4rem 1.5rem 1.6rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    background: #161616;
    border-top: 1px solid var(--gc-sv-border);
    flex: 1;
}

/* ── Service name ── */
.gc-services-card__name {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 27px;
    font-weight: 700;
    font-style: italic;
    color: var(--gc-sv-dark);
    letter-spacing: 0.03em;
    line-height: 1.2;
    text-transform: uppercase;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    /* min-height: calc(27px * 1.2 * 2); */
}

/* ── Description ── */
.gc-services-card__desc {
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gc-sv-text-light);
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

/* ── Meta: duration + price — overlaid on image bottom-right ── */
.gc-services-card__meta {
    position: absolute;
    bottom: calc(100% - var(--gc-sv-img-h) + 12px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(28,25,20,0.62);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(184,149,58,0.4);
    border-radius: 20px;
    padding: 0.35em 0.9em;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 17px !important;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gc-sv-gold-light);
}

.gc-services-card__dot {
    font-size: 0.55rem;
    opacity: 0.6;
}

/* ── CTA button ── */
.gc-services-card__cta {
    display: inline-block;
    margin-top: 0.8rem;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: #ffffff !important;
    background: var(--gc-sv-gold);
    border: 1px solid var(--gc-sv-gold);
    padding: 0.95em 1.8em;
    align-self: flex-start;
    transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    border-radius: 9px;
}

.gc-services-card__cta:hover {
    background: transparent;
    color: var(--gc-sv-gold) !important;
    border-color: var(--gc-sv-gold);
}

/* ─────────────────────────────────────────
   LATEPOINT — icon encoding fix
   ───────────────────────────────────────── */
.latepoint-icon-common-01:before { content: "\e90a"; }

/* ─────────────────────────────────────────
   LATEPOINT — brand colour overrides
   ───────────────────────────────────────── */
:root {
    --latepoint-brand-primary:              #b8953a;
    --latepoint-body-color:                 #3a3228;
    --latepoint-headings-color:             #1c1914;
    --latepoint-color-text-faded:           #7a6e62;
    --latepoint-summary-panel-bg:           #faf5ec;
    --latepoint-calendar-weekday-label-bg:  #faf5ec;
    --latepoint-side-panel-bg:              transparent;
}

/* ─────────────────────────────────────────
   LATEPOINT SIDE PANEL — image bg overrides
   ───────────────────────────────────────── */
.latepoint-side-panel,
.latepoint-side-panel *,
.latepoint-side-panel h1,
.latepoint-side-panel h2,
.latepoint-side-panel h3,
.latepoint-side-panel h4,
.latepoint-side-panel p,
.latepoint-side-panel span,
.latepoint-side-panel label,
.latepoint-side-panel a {
    color: #ffffff !important;
}

/* ─────────────────────────────────────────
   REVEAL ANIMATIONS
   ───────────────────────────────────────── */
.gc-services-wrap [data-gc-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.gc-services-wrap [data-gc-reveal].gc-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Always visible in Elementor editor */
.elementor-editor-active .gc-services-wrap [data-gc-reveal] {
    opacity: 1;
    transform: none;
}

/* ─────────────────────────────────────────
   RESPONSIVE
   ───────────────────────────────────────── */
@media (max-width: 1024px) {
    .gc-services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .gc-services-grid {
        grid-template-columns: 1fr;
    }
}
