/* =============================================
   PAGE SERVICE DETAIL — Capital Panache
   ============================================= */

/* ---- HERO ---- */
.sd-hero {
    background-color: #0612F9;
    padding: 80px 28px 60px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.sd-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(255,219,59,0.15) 0%, rgba(6,18,249,0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

.sd-hero__inner {
    max-width: 1144px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.sd-hero__breadcrumb {
    font-family: Orkney, sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: rgba(255,255,255,0.7);
    margin-bottom: 40px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.sd-hero__breadcrumb #breadcrumbs {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    line-height: 1.6;
}

.sd-hero__breadcrumb #breadcrumbs span {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.sd-hero__breadcrumb a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.sd-hero__breadcrumb a:hover {
    color: #FFDB3B;
}

.sd-hero__sep {
    opacity: 0.5;
}

.sd-hero__split {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
}

.sd-hero__number {
    display: block;
    font-family: Gilroy, sans-serif;
    font-weight: 800;
    font-size: clamp(100px, 18vw, 240px);
    line-height: 0.8;
    color: transparent;
    -webkit-text-stroke: 2px rgba(255,255,255,0.15);
    letter-spacing: -6px;
    user-select: none;
    transform: translateY(20px);
}

.sd-hero__tagline {
    font-family: Orkney, sans-serif;
    font-size: 18px;
    line-height: 1.5;
    color: rgba(255,255,255,0.8);
    text-align: right;
    margin: 0;
    max-width: 300px;
    font-weight: 500;
}

@media screen and (max-width: 768px) {
    .sd-hero__split { flex-direction: column; align-items: flex-start; }
    .sd-hero__tagline { text-align: left; margin-top: 20px; }
    .sd-hero__number { transform: translateY(0); }
}

/* ---- MAIN LAYOUT ---- */
.sd-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    max-width: 1144px;
    margin: 0 auto;
    padding: 0 28px;
    gap: 80px;
    align-items: flex-start;
}

@media screen and (max-width: 1023px) {
    .sd-layout {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

/* ---- SIDEBAR ---- */
.sd-sidebar {
    position: sticky;
    top: 40px;
    padding: 60px 0 40px;
}

@media screen and (max-width: 1023px) {
    .sd-sidebar {
        position: static;
        padding: 40px 0 20px;
        border-bottom: 1px solid #e8e8ff;
        margin-bottom: 40px;
    }
}

.sd-sidebar__label {
    font-family: Orkney, sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #0000FF;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sd-sidebar__label::before {
    content: '';
    display: block;
    width: 20px;
    height: 2px;
    background-color: #0000FF;
}

.sd-sidebar__nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    height: auto;
    float: none;
    padding: 0;
    background-color: transparent;
    z-index: 1;
}

@media screen and (max-width: 1023px) {
    .sd-sidebar__nav {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
}

@media screen and (max-width: 600px) {
    .sd-sidebar__nav { grid-template-columns: 1fr; }
}

.sd-sidebar__link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    text-decoration: none;
    background-color: transparent;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid transparent;
}

.sd-sidebar__link:hover {
    background-color: #f8f8ff;
    transform: translateX(4px);
}

.sd-sidebar__link.is-active {
    background-color: #f8f8ff;
    border: 1px solid #d0d0ff;
    box-shadow: 0 4px 15px rgba(0,0,255,0.08);
    position: relative;
}

.sd-sidebar__link.is-active::before {
    content: '';
    position: absolute;
    left: -1px;
    top: -1px;
    bottom: -1px;
    width: 4px;
    background-color: #0000FF;
    border-radius: 8px 0 0 8px;
}

.sd-sidebar__num {
    font-family: Gilroy, sans-serif;
    font-weight: 800;
    font-size: 12px;
    color: #b0b0d0;
    min-width: 24px;
    transition: color 0.3s;
}

.sd-sidebar__link.is-active .sd-sidebar__num {
    color: #0000FF;
}

.sd-sidebar__name {
    font-family: Orkney, sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #505060;
    line-height: 1.3;
    transition: color 0.3s, font-weight 0.3s;
}

.sd-sidebar__link.is-active .sd-sidebar__name {
    color: #0612F9;
    font-weight: 700;
}

.sd-sidebar__cta {
    margin-top: 60px;
    padding: 32px 24px;
    background-color: #FFDB3B;
    border-radius: 0;
    position: relative;
    overflow: hidden;
}

.sd-sidebar__cta::after {
    content: '';
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    background-color: #0000FF;
    border-radius: 50%;
    opacity: 0.1;
}

.sd-sidebar__cta p {
    font-family: Gilroy, sans-serif;
    font-weight: 800;
    font-size: 22px;
    line-height: 1.1;
    color: #0000FF;
    margin-bottom: 24px;
    position: relative;
    z-index: 2;
}

.sd-sidebar__cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #0612F9;
    color: #ffffff;
    font-family: Gilroy, sans-serif;
    font-weight: 800;
    font-size: 15px;
    padding: 14px 28px;
    text-decoration: none;
    border-radius: 0;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.sd-sidebar__cta-btn:hover {
    background-color: #0000FF;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(6,18,249,0.2);
}

@media screen and (max-width: 1023px) {
    .sd-sidebar__cta { display: none; }
}

/* ---- CONTENT ---- */
.sd-content {
    padding: 60px 0 100px;
    min-width: 0;
}

.sd-content__body h1.wp-block-heading {
    font-family: Gilroy, sans-serif;
    font-weight: 800;
    font-size: clamp(40px, 6vw, 72px);
    line-height: 1.05;
    color: #0612F9;
    margin-bottom: 40px;
    letter-spacing: -0.02em;
}

.sd-content__body p {
    font-family: Orkney, sans-serif;
    font-size: 18px;
    line-height: 1.8;
    color: #404050;
    margin-bottom: 24px;
}

/* Larger intro paragraphs */
.sd-content__body h1.wp-block-heading + p,
.sd-content__body h1.wp-block-heading + p + p {
    font-size: 22px;
    line-height: 1.6;
    color: #1a1a2e;
}

.sd-content__body h2.wp-block-heading {
    font-family: Gilroy, sans-serif;
    font-weight: 800;
    font-size: clamp(28px, 4vw, 40px);
    color: #0612F9;
    margin-top: 80px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.sd-content__body h2.wp-block-heading::before {
    content: '';
    display: block;
    width: 30px;
    height: 4px;
    background-color: #FFDB3B;
    border-radius: 2px;
}

.sd-content__body h3.wp-block-heading {
    font-family: Gilroy, sans-serif;
    font-weight: 800;
    font-size: 26px;
    color: #0612F9;
    margin-top: 64px;
    margin-bottom: 20px;
    opacity: 0.9;
}

.sd-content__body ul.wp-block-list {
    padding-left: 0;
    list-style: none;
    margin: 32px 0 40px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}

.sd-content__body ul.wp-block-list li {
    font-family: Orkney, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #303040;
    padding: 32px 24px;
    background-color: #ffffff;
    border-radius: 0;
    border: 1px solid #e8e8ff;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: 0 4px 12px rgba(0,0,255,0.02);
}

.sd-content__body ul.wp-block-list li:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0,0,255,0.08);
    border-color: #0000FF;
}

.sd-content__body ul.wp-block-list li a {
    font-family: Gilroy, sans-serif;
    font-size: 22px;
    font-weight: 800;
    color: #0000FF;
    border-bottom: none;
    padding-bottom: 0;
    display: block;
    margin-bottom: 4px;
}

.sd-content__body ul.wp-block-list li a:hover {
    color: #0612F9;
    background-color: transparent;
}

.sd-content__body a {
    color: #0000FF;
    font-weight: 700;
    text-decoration: none;
    border-bottom: 2px solid rgba(255,219,59,0.5);
    padding-bottom: 2px;
    transition: all 0.2s;
}

.sd-content__body a:hover {
    color: #0612F9;
    background-color: rgba(255,219,59,0.2);
    border-bottom-color: #FFDB3B;
}

.sd-content__body blockquote {
    margin: 48px 0;
    padding: 32px 40px;
    background-color: #f8f8ff;
    border-left: 6px solid #FFDB3B;
    border-radius: 0 12px 12px 0;
    font-family: Playfair Display, serif;
    font-size: 24px;
    font-style: italic;
    color: #0612F9;
    line-height: 1.6;
}

/* Yoast FAQ Block */
.sd-content__body .schema-faq.wp-block-yoast-faq-block {
    margin-top: 80px;
    background-color: #ffffff;
    border: 1px solid #e0e0ff;
    border-radius: 0;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0,0,255,0.04);
    margin-bottom: 24px;
}

.sd-content__body .schema-faq-section {
    padding: 24px 0;
    border-bottom: 1px solid #f0f0ff;
}

.sd-content__body .schema-faq-section:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.sd-content__body .schema-faq-section:first-child {
    padding-top: 0;
}

.sd-content__body .schema-faq-question {
    display: block;
    font-family: Gilroy, sans-serif;
    font-weight: 800;
    font-size: 20px;
    color: #0612F9;
    margin-bottom: 12px;
}

.sd-content__body .schema-faq-answer {
    font-family: Orkney, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #505060;
    margin: 0;
}

/* ---- OTHER SERVICES ---- */
.sd-other {
    background-color: #f8f8ff;
    padding: 100px 0;
    border-top: 4px solid #e0e0ff;
}

.sd-other__label {
    font-family: Orkney, sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #0000FF;
    margin-bottom: 40px;
    text-align: center;
}

.sd-other__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media screen and (max-width: 1023px) {
    .sd-other__grid { grid-template-columns: repeat(2, 1fr); }
}

@media screen and (max-width: 600px) {
    .sd-other__grid { grid-template-columns: 1fr; }
}

.sd-other__card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 30px;
    background-color: #ffffff;
    border: 1px solid #e0e0ff;
    border-radius: 0;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.sd-other__card-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.sd-other__card:hover {
    background-color: #FFDB3B;
    border-color: #FFDB3B;
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.sd-other__card:hover .sd-other__num,
.sd-other__card:hover .sd-other__title,
.sd-other__card:hover .sd-other__arrow {
    color: #0612F9;
}

.sd-other__num {
    font-family: Gilroy, sans-serif;
    font-weight: 800;
    font-size: 16px;
    color: #b0b0d0;
    min-width: 30px;
    transition: color 0.3s;
}

.sd-other__title {
    font-family: Gilroy, sans-serif;
    font-size: 18px;
    font-weight: 800;
    color: #1a1a2e;
    transition: color 0.3s;
}

.sd-other__arrow {
    color: #0000FF;
    font-size: 20px;
    transition: color 0.3s;
}

/* ---- PORTFOLIO CASES ON SERVICE PAGES ---- */
.sd-portfolio {
    padding: 0 0 100px;
    max-width: 1144px;
    margin: 100px auto 0;
    padding: 0 28px 100px;
}

.sd-portfolio__label {
    font-family: Gilroy, sans-serif;
    font-size: clamp(22px, 3vw, 32px);
    font-weight: 800;
    color: #0612F9;
    margin-bottom: 48px;
    display: flex;
    align-items: center;
    gap: 20px;
    line-height: 1.1;
}

.sd-portfolio__label::before {
    content: '';
    display: block;
    width: 30px;
    height: 4px;
    background-color: #FFDB3B;
    border-radius: 2px;
}

.sd-portfolio__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

@media screen and (max-width: 900px) {
    .sd-portfolio__grid { grid-template-columns: repeat(2, 1fr); }
}

@media screen and (max-width: 600px) {
    .sd-portfolio__grid { grid-template-columns: 1fr; }
}

.sd-portfolio__card {
    display: block;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    background-color: #000;
}

.sd-portfolio__img {
    aspect-ratio: 4/5;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
    opacity: 0.8;
}

.sd-portfolio__card:hover .sd-portfolio__img {
    transform: scale(1.05);
    opacity: 1;
}

.sd-portfolio__info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 32px;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
    color: #fff;
}

.sd-portfolio__title {
    font-family: Gilroy, sans-serif;
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 8px;
    line-height: 1.1;
}

.sd-portfolio__client {
    font-family: Orkney, sans-serif;
    font-size: 14px;
    opacity: 0.7;
    margin-bottom: 0px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* =============================================
   WPML LANGUAGE SELECTOR (CIRCULAR)
   ============================================= */
.cp-language-selector {
    margin-bottom: 24px;
    display: flex;
    justify-content: flex-end; /* Align to the right */
    position: relative;
    z-index: 10;
}

/* Reset default WPML list styles */
.cp-language-selector .wpml-ls-legacy-list-horizontal,
.cp-language-selector .wpml-ls-legacy-list-horizontal ul {
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
    background: transparent !important;
}

.cp-language-selector .wpml-ls-legacy-list-horizontal ul {
    display: flex !important;
    gap: 12px;
}

.cp-language-selector .wpml-ls-item {
    margin: 0 !important;
    padding: 0 !important;
}

.cp-language-selector .wpml-ls-link {
    display: flex !important;
    align-items: center;
    border: none !important; /* Remove CP theme default underline */
    padding: 0 !important;
}

/* CIRCULAR FLAGS */
.cp-language-selector img.wpml-ls-flag {
    width: 32px !important;
    height: 32px !important;
    max-width: none !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    box-shadow: 0 4px 12px rgba(6, 18, 249, 0.15);
    border: 2px solid #fff;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.cp-language-selector .wpml-ls-link:hover img.wpml-ls-flag {
    transform: scale(1.15);
    box-shadow: 0 8px 20px rgba(6, 18, 249, 0.25);
    border-color: #FFDB3B; /* Yellow accent from CP brand */
}

/* If language names are enabled */
.cp-language-selector .wpml-ls-native {
    font-family: Gilroy, sans-serif;
    font-weight: 800;
    font-size: 13px;
    color: #0612F9;
    text-transform: uppercase;
    margin-left: 10px;
    letter-spacing: 0.05em;
}
