/* ==========================================================================
   CONSULTANT DETAIL PAGE - PREMIUM DESIGN SYSTEM
   ========================================================================== */

:root {
    --cd-container-max: var(--size-container-max, 1280px);
    --cd-sidebar-w: 380px;
    --cd-header-offset: 100px;
    --cd-transition-smooth: cubic-bezier(0.22, 1, 0.36, 1);
    --cd-gold: var(--color-gold, #D4A574);
    --cd-navy: var(--color-dark-navy, #000a1e);
    --cd-navy-dark: #000818;
    --cd-cream: var(--color-light-cream, #F9F9F7);
}

@media (min-width: 769px) {
    :root {
        --cd-header-offset: 96px;
    }
}

.cd-main {
    background-color: #fff;
}

.cd-container {
    max-width: var(--cd-container-max);
    margin: 0 auto;
    padding: 0 40px;
}

@media (max-width: 768px) {
    .cd-container {
        padding: 0 24px;
    }
}

/* --- HERO SECTION --- */

.cd-hero {
    position: relative;
    padding: 120px 0 80px;
    background: linear-gradient(155deg, var(--color-dark-navy) 0%, var(--color-dark-blue) 100%);
    color: var(--color-text-white);
    overflow: hidden;
}

.cd-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48'%3E%3Crect width='48' height='48' fill='none'/%3E%3Cpath d='M0 0h48v48H0z' fill='none' stroke='%23ffffff' stroke-width='0.4'/%3E%3Cpath d='M12 0v48M24 0v48M36 0v48M0 12h48M0 24h48M0 36h48' stroke='%23ffffff' stroke-width='0.2'/%3E%3Cpath d='M0 0l48 48M48 0L0 48' stroke='%23ffffff' stroke-width='0.15'/%3E%3C/svg%3E");
    background-size: 48px 48px;
    background-repeat: repeat;
}


.cd-hero--has-cover {
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.cd-hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.cd-hero__bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
}

.cd-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 33, 71, 0.2), rgba(0, 33, 71, 0.95));
}

.cd-hero__container {
    position: relative;
    z-index: 1;
}

.cd-breadcrumb {
    margin-bottom: 32px;
}

.cd-breadcrumb__list {
    display: flex;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.10em;
    color: rgba(255, 255, 255, 0.55);
}

.cd-breadcrumb__list a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: color 0.3s ease;
}

.cd-breadcrumb__list a:hover {
    color: var(--color-text-white);
}


.cd-breadcrumb__sep {
    margin: 0 10px;
    font-size: 8px;
    opacity: 0.5;
}

.cd-hero__title {
    font-family: var(--font-serif-display, 'Cormorant Garamond', serif);
    font-size: clamp(3rem, 6vw, 4.5rem);
    line-height: 1.1;
    font-weight: 400;
    margin: 0 0 16px;
    letter-spacing: -0.02em;
}

.cd-hero__role {
    font-family: var(--font-sans, 'Inter', sans-serif);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--cd-gold);
    margin: 0 0 24px;
    font-weight: 500;
}

.cd-hero__subtitle {
    font-family: var(--font-sans, 'Inter', sans-serif);
    font-size: 1.125rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    margin: 0;
    font-weight: 300;
}

/* --- LAYOUT --- */

.cd-layout {
    display: grid;
    grid-template-columns: 1fr var(--cd-sidebar-w);
    gap: 80px;
    padding-top: 80px;
    padding-bottom: 100px;
    align-items: start;
}

@media (max-width: 1024px) {
    .cd-layout {
        grid-template-columns: 1fr;
        gap: 60px;
    }
}

/* --- BIO & ARTICLE --- */

.cd-bio {
    margin-bottom: 60px;
}

.cd-bio__quote {
    margin: 0;
    padding-left: 32px;
    border-left: 2px solid var(--cd-gold);
}

.cd-bio__quote p {
    font-family: var(--font-serif, 'Cormorant Garamond', serif);
    font-size: 1.75rem;
    line-height: 1.4;
    font-style: italic;
    color: var(--cd-navy);
    margin: 0;
}

.cd-article__content {
    font-family: var(--font-sans, 'Inter', sans-serif);
    font-size: 1.0625rem;
    line-height: 1.8;
    color: #444;
    font-weight: 300;
}

.cd-article__content p {
    margin-bottom: 1.8em;
}

.cd-article__content h2 {
    font-family: var(--font-serif-display, serif);
    font-size: 2.25rem;
    color: var(--cd-navy);
    margin: 2.5em 0 1em;
    font-weight: 400;
    letter-spacing: -0.01em;
}

.cd-article__content h3 {
    font-family: var(--font-serif-display, serif);
    font-size: 1.5rem;
    color: var(--cd-navy);
    margin: 2em 0 0.8em;
    font-weight: 500;
}

.cd-article__content ul, 
.cd-article__content ol {
    margin-bottom: 2em;
    padding-left: 1.5em;
}

.cd-article__content li {
    margin-bottom: 0.8em;
}

.cd-article__content strong {
    font-weight: 600;
    color: var(--cd-navy);
}

.cd-article__content img,
.cd-article__content video,
.cd-article__content iframe {
    max-width: 100%;
    height: auto;
}

.cd-article__content pre {
    max-width: 100%;
    overflow-x: auto;
}

/* --- SIDEBAR CARD --- */

.cd-layout__sidebar {
    position: sticky;
    top: var(--cd-header-offset);
    align-self: start;
}

.cd-card {
    background: #fff;
    border: 1px solid rgba(0, 33, 71, 0.08);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.04);
}

.cd-card__image-wrap {
    width: 100%;
    aspect-ratio: 4 / 5;
    overflow: hidden;
}

@media (min-width: 1025px) {
    .cd-card__image-wrap {
        aspect-ratio: 1 / 1;
        max-height: 300px;
    }
}

.cd-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--cd-transition-smooth);
}

.cd-card:hover .cd-card__image {
    transform: scale(1.05);
}

.cd-card__body {
    padding: 32px;
}

.cd-card__label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--cd-gold);
    margin: 0 0 8px;
    font-weight: 600;
}

.cd-card__name {
    font-family: var(--font-serif-display, serif);
    font-size: 1.75rem;
    color: var(--cd-navy);
    margin: 0 0 32px;
    font-weight: 400;
}

.cd-card__contacts {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 40px;
}

.cd-card__link {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: #555;
    font-size: 0.9375rem;
    transition: all 0.3s ease;
}

.cd-card__link:hover {
    color: var(--cd-navy);
    transform: translateX(4px);
}

.cd-card__icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--cd-cream);
    border-radius: 50%;
    color: var(--cd-navy);
    flex-shrink: 0;
}

.cd-card__cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 18px;
    background-color: var(--cd-navy);
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all 0.3s var(--cd-transition-smooth);
}

.cd-card__cta:hover {
    background-color: var(--cd-gold);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(212, 165, 116, 0.3);
}

.cd-studio-info {
    margin-top: 40px;
    padding: 0 10px;
}

.cd-studio-info__title {
    font-size: 14px;
    font-weight: 700;
    color: var(--cd-navy);
    margin: 0 0 8px;
}

.cd-studio-info__text {
    font-size: 13px;
    color: #777;
    line-height: 1.5;
    margin: 0 0 12px;
}

.cd-studio-info__phone {
    font-size: 14px;
    color: var(--cd-navy);
    font-weight: 600;
    text-decoration: none;
}

/* --- BACK LINK --- */

.cd-back {
    margin-top: 80px;
    padding-top: 40px;
    border-top: 1px solid #eee;
}

.cd-back__link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--cd-navy);
    font-size: 14px;
    font-weight: 500;
    transition: transform 0.3s var(--cd-transition-smooth);
}

.cd-back__link:hover {
    transform: translateX(-8px);
    color: var(--cd-gold);
}

/* --- FOOTER CTA --- */

.cd-footer-cta {
    background-color: var(--cd-cream);
    padding: 100px 0;
}

.cd-footer-cta__box {
    background-color: var(--cd-navy);
    padding: 80px 40px;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.cd-footer-cta__box::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.1;
    background-image: radial-gradient(circle at 2px 2px, #fff 1px, transparent 0);
    background-size: 40px 40px;
}

.cd-footer-cta__title {
    font-family: var(--font-serif-display, serif);
    font-size: clamp(2rem, 4vw, 3rem);
    margin: 0 0 16px;
    font-weight: 400;
}

.cd-footer-cta__desc {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    margin: 0 auto 40px;
    font-weight: 300;
}

.cd-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 40px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    text-decoration: none;
    transition: all 0.3s var(--cd-transition-smooth);
    border: none;
    cursor: pointer;
}

.cd-btn--gold {
    background-color: var(--cd-gold);
    color: #fff;
}

/* --- HERO CREDENTIAL BADGE --- */

.cd-hero__credential {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: rgba(255, 255, 255, 0.38);
    margin: 0 0 28px;
    font-weight: 400;
}

.cd-hero__credential svg {
    color: var(--cd-gold);
    opacity: 0.75;
    flex-shrink: 0;
}

.cd-btn--gold:hover {
    background-color: #fff;
    color: var(--cd-navy);
    transform: scale(1.05);
}

/* --- REVEAL ANIMATIONS --- */

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s var(--cd-transition-smooth);
    transition-delay: var(--reveal-delay, 0s);
}

.reveal.is-revealed {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        transition: none;
        opacity: 1;
        transform: none;
    }
}

/* --- MOBILE ADAPTATIONS --- */

@media (max-width: 1024px) {
    .cd-layout__sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .cd-hero {
        padding: 80px 0 60px;
    }
    
    .cd-hero__title {
        font-size: 2.75rem;
    }
    
    .cd-bio__quote p {
        font-size: 1.35rem;
    }
    
    .cd-layout {
        padding-top: 40px;
    }
    
    .cd-footer-cta__box {
        padding: 60px 24px;
    }
}
