/* =========================================
   SPECIALIZATION SECTION — USER'S WORKSPACE
   Centres of Excellence + Detailed Sections
   ========================================= */

/* ── Section Shell ── */
.spec-section {
    padding: 55px 0 50px;
    background: var(--beige);
    position: relative;
    overflow: hidden;
}

/* Subtle spotlight background */
.spec-section::before {
    content: '';
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    height: 600px;
    background: radial-gradient(ellipse at center, rgba(109, 102, 84,0.07) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.spec-section .container {
    position: relative;
    z-index: 1;
}

/* ── Section Header ── */
.spec-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 50px;
}

.spec-eyebrow {
    display: inline-block;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 16px;
    padding: 6px 18px;
    border: 1px solid rgba(109, 102, 84, 0.35);
    border-radius: 30px;
}

.spec-heading {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3.8rem;
    line-height: 1.1;
    color: var(--charcoal);
    margin-bottom: 20px;
}

.spec-intro {
    font-family: 'DM Sans', sans-serif;
    font-size: 1.05rem;
    color: #666;
    line-height: 1.75;
}

/* ── 3+2 Premium Grid ── */
.spec-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 28px;
    align-items: stretch;
}

/* Row 1: cards 1–3 each span 2 columns */
.spec-card:nth-child(1) { grid-column: 1 / 3; }
.spec-card:nth-child(2) { grid-column: 3 / 5; }
.spec-card:nth-child(3) { grid-column: 5 / 7; }

/* Row 2: cards 4–6 fill the full row */
.spec-card:nth-child(4) { grid-column: 1 / 3; }
.spec-card:nth-child(5) { grid-column: 3 / 5; }
.spec-card:nth-child(6) { grid-column: 5 / 7; }

/* ── Card ── */
.spec-card {
    border-radius: 20px;
    overflow: hidden;
    background: var(--white);
    box-shadow: 0 8px 32px rgba(43, 47, 32, 0.07);
    transition: transform 0.45s cubic-bezier(0.2,0.8,0.2,1), box-shadow 0.45s ease;
    display: flex;
    flex-direction: column;
}

.spec-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 60px rgba(43, 47, 32, 0.13);
}

.spec-card-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

/* ── Card Image Area (top 42%) ── */
.spec-card-image {
    position: relative;
    height: 240px;
    overflow: hidden;
    flex-shrink: 0;
    background-color: #f8f5ef;
}

.spec-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(43, 47, 32,0.05) 0%, rgba(43, 47, 32,0.25) 100%);
    z-index: 1;
    transition: opacity 0.4s ease;
}

.spec-card:hover .spec-img-overlay {
    opacity: 0.6;
}

.chroma-bg,
.eraze-bg,
.capeli-bg,
.rejuvenize-bg,
.regen-bg,
.sculpt-bg {
    --spec-logo-width: 70%;
    --spec-logo-position: center 50%;
    background-position: var(--spec-logo-position);
    background-repeat: no-repeat;
    background-size: var(--spec-logo-width) auto;
    transition: background-size 0.45s ease, transform 0.55s ease;
}

.chroma-bg {
    background-image: url('../images/Copy of chrome clinique.png');
    --spec-logo-width: 68%;
}

.eraze-bg {
    background-image: url('../images/Copy of eraze.png');
    --spec-logo-width: 56%;
    --spec-logo-position: center 49%;
}

.capeli-bg {
    background-image: url('../images/Copy of capelli clinique.png');
    --spec-logo-width: 70%;
    --spec-logo-position: center 51%;
}

.rejuvenize-bg {
    background-image: url('../images/Copy of rejuvenize.png');
    --spec-logo-width: 68%;
}

.regen-bg {
    background-image: url('../images/regenerative-dermatology-logo.svg');
    --spec-logo-width: 88%;
    --spec-logo-position: center 50%;
}

.sculpt-bg {
    background-image: url('../images/Copy of Cutisculpt 1.png');
    --spec-logo-width: 62%;
    --spec-logo-position: center 50%;
}

/* subtle texture on placeholders */
.spec-card-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(43, 47, 32, 0.04), rgba(43, 47, 32, 0.2)),
        url('data:image/svg+xml,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="n"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="4" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23n)" opacity="0.06"/%3E%3C/svg%3E');
    z-index: 0;
    pointer-events: none;
}

/* zoom on hover */
.spec-card:hover .spec-card-image {
    transform: scale(1.03);
    transition: transform 0.55s ease;
}

.spec-card:hover .chroma-bg,
.spec-card:hover .eraze-bg,
.spec-card:hover .capeli-bg,
.spec-card:hover .rejuvenize-bg,
.spec-card:hover .regen-bg,
.spec-card:hover .sculpt-bg {
    background-size: calc(var(--spec-logo-width) + 2%) auto;
}

/* ── Icon Badge ── */
.spec-icon-badge {
    position: absolute;
    bottom: -18px;
    left: 32px;
    z-index: 2;
    width: 48px;
    height: 48px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(43, 47, 32,0.12);
    border: 1.5px solid rgba(109, 102, 84,0.25);
}

.spec-icon-badge svg {
    width: 22px;
    height: 22px;
    stroke: var(--gold);
}

/* ── Card Body ── */
.spec-card-body {
    padding: 36px 32px 32px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.spec-focus-tag {
    display: inline-block;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--sage);
    margin-bottom: 2px;
}

.spec-card-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.65rem;
    font-weight: 600;
    color: var(--charcoal);
    line-height: 1.2;
    margin: 0;
}

.spec-card-desc {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.92rem;
    color: #666;
    line-height: 1.7;
    margin: 0;
    flex: 1;
}

.spec-learn-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--gold);
    margin-top: 8px;
    position: relative;
    width: fit-content;
}

.spec-learn-more::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: width 0.3s ease;
}

.spec-card:hover .spec-learn-more::after {
    width: 100%;
}

.spec-arrow {
    transition: transform 0.3s ease;
    display: inline-block;
}

.spec-card:hover .spec-arrow {
    transform: translateX(5px);
}

/* =========================================
   DETAILED SPECIALTY SECTIONS
   Hidden by default — shown on Learn More click
   ========================================= */

.spec-detail {
    padding: 70px 0;
    background: var(--white);
    display: none;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.spec-detail.visible {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.spec-detail--alt {
    background: var(--beige);
}

.spec-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.spec-detail-grid--rev {
    direction: rtl;
}

.spec-detail-grid--rev > * {
    direction: ltr;
}

.spec-detail-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.spec-detail-content .spec-eyebrow {
    align-self: flex-start;
}

.spec-detail-content h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3rem;
    line-height: 1.1;
    color: var(--charcoal);
    margin: 0;
}

.spec-detail-lead {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    color: var(--charcoal);
    line-height: 1.65;
    font-style: italic;
    opacity: 0.85;
    margin: 0;
}

.spec-detail-body {
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    color: #555;
    line-height: 1.85;
    margin: 0;
}

/* Condition tags */
.spec-detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 4px;
}

.spec-detail-tags span {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--sage);
    background: var(--sage-light);
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid rgba(143, 149, 125,0.15);
}

/* Trust signals row */
.spec-trust-row {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 4px;
    padding: 20px;
    background: rgba(109, 102, 84,0.06);
    border-left: 3px solid var(--gold);
    border-radius: 0 12px 12px 0;
}

.spec-trust-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.92rem;
    color: var(--charcoal);
}

.trust-icon {
    color: var(--gold);
    font-size: 0.7rem;
    flex-shrink: 0;
}

.spec-detail-btn {
    align-self: flex-start;
    margin-top: 8px;
}

/* Detail image box */
.spec-detail-img-box {
    height: 520px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 60px rgba(43, 47, 32,0.1);
}

.spec-detail-img-box .spec-img-overlay {
    background: linear-gradient(180deg, rgba(43, 47, 32,0) 50%, rgba(43, 47, 32,0.35) 100%);
}

.spec-detail-img-label {
    position: absolute;
    bottom: 24px;
    left: 24px;
    z-index: 2;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    color: rgba(255,255,255,0.85);
    letter-spacing: 1px;
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 1100px) {
    .spec-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .spec-card:nth-child(1),
    .spec-card:nth-child(2),
    .spec-card:nth-child(3),
    .spec-card:nth-child(4),
    .spec-card:nth-child(5) {
        grid-column: auto;
    }
}

@media (max-width: 768px) {
    .spec-section {
        padding: 70px 0 60px;
    }
    .spec-heading {
        font-size: 2.8rem;
    }
    .spec-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .spec-card:nth-child(n) {
        grid-column: auto;
    }
    .spec-detail-grid,
    .spec-detail-grid--rev {
        grid-template-columns: 1fr;
        direction: ltr;
        gap: 40px;
    }
    .spec-detail-img-box {
        height: 300px;
    }
    .spec-detail-content h2 {
        font-size: 2.2rem;
    }
    .spec-detail-lead {
        font-size: 1.1rem;
    }
    .spec-trust-row {
        flex-direction: column;
    }
}

/* =========================================
   OUR TECHNOLOGIES SECTION
   ========================================= */

.tech2-header {
    padding: 0 0 24px;
    text-align: center;
}

.tech2-header h2 {
    font-size: 3.5rem;
    color: var(--charcoal);
    border-left: 4px solid var(--gold);
    display: inline-block;
    padding-left: 20px;
    margin-bottom: 15px;
}

.tech2-header p {
    font-family: 'DM Sans';
    color: var(--sage);
    font-size: 1.1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Filter Bar */
.filter-bar {
    padding: 0 0 32px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.filter-btn {
    font-family: 'DM Sans';
    padding: 10px 25px;
    border-radius: 30px;
    border: 1px solid var(--sage);
    background: transparent;
    color: var(--charcoal);
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background: var(--sage-light);
}

.filter-btn.active {
    background: var(--gold);
    color: var(--white);
    border-color: var(--gold);
}

/* Tech Grid */
.tech-grid-2 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    min-height: 400px;
}

/* Tech Cards */
.t-card {
    background: var(--beige);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 16px rgba(43, 47, 32, 0.06);
    transition: transform 0.3s ease, opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid transparent;
}

.t-card:hover {
    transform: translateY(-8px);
    background: var(--white);
    border-color: var(--sage-light);
}

.t-card.hidden {
    opacity: 0;
    transform: scale(0.97);
    pointer-events: none;
}

.t-card-img {
    width: 100%;
    height: 240px;
    background: #f9f7f4;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    font-family: 'Cormorant Garamond';
    color: var(--sage);
    text-align: center;
    padding: 10px;
}

.t-card-img img {
    height: 100%;
    width: 100%;
    object-fit: contain;
    object-position: center;
    position: absolute;
    inset: 0;
    padding: 10px;
    background: #f9f7f4;
}

.t-info {
    padding: 30px;
}

.t-info h3 {
    font-family: 'Cormorant Garamond';
    font-size: 20px;
    color: var(--gold);
    margin-bottom: 5px;
}

.t-brand {
    font-family: 'DM Sans';
    font-size: 12px;
    color: var(--sage);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 15px;
    display: block;
    font-weight: 500;
}

.t-desc {
    font-family: 'DM Sans';
    font-size: 14px;
    color: var(--charcoal);
    line-height: 1.7;
    margin: 0;
}

@media(max-width:900px) {
    .tech-grid-2 {
        grid-template-columns: repeat(2, 1fr);
        padding: 60px 20px;
    }
}

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