/* ============================================================
   WORKSHOP PAGE — BUY A BIKE
   All styles scoped to: .ws-page
   ============================================================ */

/* --- Variables & Reset --- */
.ws-page {
    --ws-blue:        #0605ab;
    --ws-blue-bright: #0505fd;
    --ws-dark:        #151515;
    --ws-light:       #f5f5f5;
    --ws-red:         #ff3333;
    --ws-white:       #ffffff;
    --ws-bg:          #ffffff;
    --ws-bg-alt:      #F4F4F4;
    --ws-radius:      10px;
    --ws-font-display: 'citrfontbold';
    --ws-font-body:    'citrfontreg';
}

.ws-page *,
.ws-page *::before,
.ws-page *::after {
    box-sizing: border-box;
}

/* --- Shared Layout --- */
.ws-wrap {
    width: 100%;
    overflow-x: hidden;
    font-family: var(--ws-font-body);
    color: var(--ws-dark);
    background: var(--ws-bg);
}

.ws-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding: 0 24px;
}

.ws-section {
    padding: 80px 0;
}

.ws-section-label {
    font-family: var(--ws-font-display);
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--ws-blue);
    margin: 0 0 14px;
    display: block;
}

.ws-section-title {
    font-family: var(--ws-font-display);
    font-weight: 800;
    font-size: clamp(32px, 5vw, 52px);
    line-height: 1.05;
    color: var(--ws-dark);
    margin: 0 0 20px;
}


/* ============================================================
   HERO
   ============================================================ */
.ws-hero {
    background-color: var(--ws-dark);
    background-image: url('/SiteSpecific/CustomContent/pages/workshop/images/hero.webp');
    background-size: cover;
    background-position: center;
    color: var(--ws-white);
    padding: 80px 24px 72px;
    position: relative;
    overflow: hidden;
}

/* Dark scrim — heavier on the left (text side), fades to image on the right */
.ws-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(21, 21, 21, 0.92) 0%,
        rgba(21, 21, 21, 0.75) 50%,
        rgba(21, 21, 21, 0.45) 100%
    );
    pointer-events: none;
    z-index: 0;
}

/* Blue accent tint on the right */
.ws-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 85% 50%, rgba(6, 5, 171, 0.25) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.ws-hero__inner {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.ws-hero__breadcrumb {
    font-family: var(--ws-font-body);
    font-size: 13px;
    color: rgba(255, 255, 255, 0.45);
    margin: 0 0 48px;
}

.ws-hero__breadcrumb a {
    color: rgba(255, 255, 255, 0.45);
    text-decoration: none;
    transition: color 0.2s;
}

.ws-hero__breadcrumb a:hover {
    color: rgba(255, 255, 255, 0.8);
}

.ws-hero__breadcrumb span {
    margin: 0 8px;
}

.ws-hero__eyebrow {
    font-family: var(--ws-font-display);
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--ws-white);
    margin: 0 0 20px;
    display: block;
}

.ws-hero__title {
    font-family: var(--ws-font-display);
    font-weight: 800;
    font-size: clamp(52px, 9vw, 100px);
    line-height: 0.95;
    color: var(--ws-white);
    margin: 0 0 28px;
    overflow: hidden;
}

.ws-hero__title-line {
    display: block;
    line-height: calc(100% + 15px);
}

.ws-hero__body {
    font-size: 17px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
    max-width: 520px;
    margin: 0 0 40px;
}

.ws-hero__cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--ws-blue);
    color: var(--ws-white);
    font-family: var(--ws-font-display);
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 0.3px;
    padding: 15px 30px;
    border-radius: var(--ws-radius);
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
}

.ws-hero__cta:hover {
    background: var(--ws-blue-bright);
    transform: translateY(-2px);
}

.ws-hero__cta svg {
    transition: transform 0.2s;
    flex-shrink: 0;
}

.ws-hero__cta:hover svg {
    transform: translateX(4px);
}


/* ============================================================
   SHIMANO STRIP
   ============================================================ */
.ws-shimano {
    background: var(--ws-blue);
    padding: 44px 24px;
}

.ws-shimano__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 40px;
}

.ws-shimano__logo {
    flex-shrink: 0;
}

.ws-shimano__logo img {
    height: 200px;
    width: auto;
    display: block;
}

.ws-shimano__divider {
    width: 1px;
    height: 56px;
    background: rgba(255, 255, 255, 0.22);
    flex-shrink: 0;
}

.ws-shimano__content {
    flex: 1;
}

.ws-shimano__label {
    font-family: var(--ws-font-display);
    font-weight: 600;
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    margin: 0 0 6px;
}

.ws-shimano__text {
    font-family: var(--ws-font-body);
    font-size: 15px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.88);
    margin: 0;
    max-width: 700px;
}

@media (max-width: 640px) {
    .ws-shimano__inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .ws-shimano__divider {
        display: none;
    }
}


/* ============================================================
   PRICING CALLOUT
   ============================================================ */
.ws-pricing {
    background: var(--ws-bg-alt);
    border-top: 3px solid var(--ws-blue);
    padding: 64px 24px 80px;
}

.ws-pricing__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.ws-pricing__title {
    font-family: var(--ws-font-display);
    font-weight: 700;
    font-size: 26px;
    color: var(--ws-dark);
    margin: 0 0 14px;
    line-height: 1.2;
}

.ws-pricing__body {
    font-size: 15px;
    line-height: 1.75;
    color: #4a4a4a;
    margin: 0 0 28px;
}

.ws-pricing__body strong {
    color: var(--ws-dark);
}

.ws-pricing__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--ws-blue);
    color: var(--ws-white);
    font-family: var(--ws-font-display);
    font-weight: 600;
    font-size: 15px;
    padding: 13px 24px;
    border-radius: var(--ws-radius);
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
}

.ws-pricing__cta:hover {
    background: var(--ws-blue-bright);
    transform: translateY(-2px);
}

.ws-pricing__cta svg {
    flex-shrink: 0;
    transition: transform 0.2s;
}

.ws-pricing__cta:hover svg {
    transform: translateX(3px);
}

/* Right side: image with overlapping fee box */
.ws-pricing__visual {
    position: relative;
    padding-bottom: 52px;
}

.ws-pricing__image {
    border-radius: var(--ws-radius);
    overflow: hidden;
    width: 100%;
    aspect-ratio: 4 / 5;
    position: relative;
}

.ws-pricing__image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Fee box overlaps the bottom-left corner of the image */
.ws-pricing__fee {
    position: absolute;
    top: -20px;
    right: -20px;
    z-index: 2;
    text-align: center;
    background: var(--ws-white);
    border: 2px solid var(--ws-blue);
    border-radius: var(--ws-radius);
    padding: 20px 28px;
    box-shadow: 0 8px 32px rgba(6, 5, 171, 0.18);
}

.ws-pricing__fee-amount {
    font-family: var(--ws-font-display);
    font-weight: 800;
    font-size: 52px;
    color: var(--ws-blue);
    line-height: 1;
    display: block;
}

.ws-pricing__fee-label {
    font-size: 13px;
    color: #666;
    margin: 6px 0 4px;
}

.ws-pricing__fee-note {
    font-family: var(--ws-font-display);
    font-size: 12px;
    font-weight: 600;
    color: var(--ws-blue);
    letter-spacing: 0.2px;
}

@media (max-width: 860px) {
    .ws-pricing__inner {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .ws-pricing__visual {
        padding-bottom: 44px;
    }

    .ws-pricing__fee {
        left: 12px;
        padding: 14px 20px;
        width: fit-content;
    }

    .ws-pricing__fee-amount {
        font-size: 38px;
    }

    .ws-pricing__fee-label {
        font-size: 12px;
        margin: 4px 0 3px;
    }

    .ws-pricing__fee-note {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .ws-pricing {
        padding: 48px 20px 64px;
    }

    .ws-pricing__fee {
        left: 0;
        right: 0;
        width: fit-content;
        margin: 0 auto;
        position: absolute;
        bottom: 0;
        height: fit-content;
    }
}


/* ============================================================
   WHAT WE OFFER
   ============================================================ */
.ws-offer {
    background: var(--ws-white);
}

.ws-offer__header {
    margin-bottom: 44px;
}

.ws-offer__header .ws-section-title {
    margin-bottom: 0;
}

.ws-offer__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: stretch;
}

@media (max-width: 900px) {
    .ws-offer__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 540px) {
    .ws-offer__grid {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 12px;
        padding-right: 24px;
        align-items: stretch;
    }

    .ws-offer__grid::-webkit-scrollbar {
        display: none;
    }

    .ws-offer__card {
        flex: 0 0 calc(66.67% - 8px);
        scroll-snap-align: start;
        height: auto;
    }
}

.ws-offer__card {
    background: var(--ws-white);
    border-radius: var(--ws-radius);
    border: 1px solid #e8e8e8;
    overflow: hidden;
    transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.ws-offer__card:hover {
    border-color: var(--ws-blue);
    box-shadow: 0 8px 32px rgba(6, 5, 171, 0.1);
    transform: translateY(-4px);
}

.ws-offer__image {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--ws-bg-alt);
    flex-shrink: 0;
    position: relative;
}

/* Override any site-global img height:auto */
.ws-offer__image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.ws-offer__card:hover .ws-offer__image img {
    transform: scale(1.04);
}

.ws-offer__card-content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.ws-offer__card-title {
    font-family: var(--ws-font-display);
    font-weight: 700;
    font-size: 19px;
    color: var(--ws-dark);
    margin: 0 0 10px;
    line-height: 1.2;
}

.ws-offer__card-body {
    font-size: 14px;
    line-height: 1.7;
    color: #555;
    margin: 0;
}


/* ============================================================
   STATS
   ============================================================ */
.ws-stats {
    background: var(--ws-blue);
    padding: 72px 24px;
}

.ws-stats__grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1px 1fr 1px 1fr;
    gap: 0;
    align-items: center;
}

@media (max-width: 640px) {
    .ws-stats__grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .ws-stats__divider {
        display: none;
    }
}

.ws-stats__item {
    text-align: center;
    padding: 0 24px;
}

.ws-stats__number {
    font-family: var(--ws-font-display);
    font-weight: 800;
    font-size: clamp(56px, 8vw, 84px);
    line-height: 1;
    color: var(--ws-white);
    margin-bottom: 10px;
    display: block;
}

.ws-stats__suffix {
    font-size: 0.55em;
    vertical-align: super;
    line-height: 0;
}

.ws-stats__label {
    font-size: 15px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.65);
    margin: 0;
}

.ws-stats__divider {
    background: rgba(255, 255, 255, 0.18);
    height: 80px;
    width: 1px;
}


/* ============================================================
   BIKE TYPE — SIDE NAV
   ============================================================ */
.ws-bikes {
    background: var(--ws-bg-alt);
}

.ws-bikes__header {
    margin-bottom: 40px;
}

.ws-bikes__header .ws-section-title {
    margin-bottom: 10px;
}

.ws-bikes__intro {
    font-size: 15px;
    color: #666;
    margin: 0;
}

/* Layout: left nav + right panel */
.ws-bikes__layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 28px;
    align-items: start;
}

@media (max-width: 860px) {
    .ws-bikes__layout {
        grid-template-columns: 1fr;
    }
}

/* Left nav cards */
.ws-bikes__sidenav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

@media (max-width: 860px) {
    .ws-bikes__sidenav {
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 10px;
        /* Bleed slightly past the container to show the half-card peek */
        padding-right: 24px;
    }

    .ws-bikes__sidenav::-webkit-scrollbar {
        display: none;
    }
}

.ws-bikes__navcard {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: var(--ws-radius);
    border: 2px solid #e4e4e4;
    background: var(--ws-white);
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
    user-select: none;
}

.ws-bikes__navcard:hover {
    border-color: var(--ws-blue);
    box-shadow: 0 2px 12px rgba(6, 5, 171, 0.08);
}

.ws-bikes__navcard.is-active {
    background: var(--ws-blue);
    border-color: var(--ws-blue);
}

.ws-bikes__navcard-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ws-bikes__navcard-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ws-bikes__navcard-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.ws-bikes__navcard-label {
    flex: 1;
    font-family: var(--ws-font-body);
    font-size: 15px;
    font-weight: 600;
    color: var(--ws-dark);
    transition: color 0.2s;
}

.ws-bikes__navcard.is-active .ws-bikes__navcard-label {
    color: var(--ws-white);
}

.ws-bikes__navcard.is-active .ws-bikes__navcard-icon svg {
    fill: var(--ws-white);
}

.ws-bikes__navcard-arrow {
    color: #bbb;
    flex-shrink: 0;
    transition: color 0.2s, transform 0.2s;
}

.ws-bikes__navcard:hover .ws-bikes__navcard-arrow {
    color: var(--ws-blue);
    transform: translateX(2px);
}

.ws-bikes__navcard.is-active .ws-bikes__navcard-arrow {
    color: rgba(255, 255, 255, 0.6);
    transform: translateX(2px);
}

@media (max-width: 860px) {
    .ws-bikes__navcard {
        /* Show 1.5 cards: (100% - 1 gap) / 1.5 */
        flex: 0 0 calc(66.67% - 7px);
        scroll-snap-align: start;
    }

    .ws-bikes__navcard-arrow {
        display: none;
    }
}

/* Right panels */
.ws-bikes__panels {
    background: var(--ws-white);
    border-radius: var(--ws-radius);
    border: 1px solid #e4e4e4;
    padding: 32px;
    min-height: 400px;
}

.ws-bikes__panel {
    display: none;
    grid-template-columns: 1fr 1fr;
    gap: 36px;
}

.ws-bikes__panel.is-active {
    display: grid;
}

/* Stack panel columns when layout stacks at 860px */
@media (max-width: 860px) {
    .ws-bikes__panel.is-active {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

@media (max-width: 540px) {
    .ws-bikes__panels {
        padding: 20px;
    }
}

/* Grid children must have min-width:0 to prevent overflow blowout */
.ws-bikes__col {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.ws-bikes__col-title {
    font-family: var(--ws-font-display);
    font-weight: 700;
    font-size: 17px;
    color: var(--ws-dark);
    margin: 0 0 12px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--ws-light);
    letter-spacing: 0.2px;
}

.ws-bikes__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ws-bikes__list li {
    padding: 8px 0 8px 16px;
    position: relative;
    font-size: 14px;
    line-height: 1.5;
    color: #4a4a4a;
    border-bottom: 1px solid #ebebeb;
}

.ws-bikes__list li:last-child {
    border-bottom: none;
}

/* Bullet aligned to first line of text, not a fixed top offset */
.ws-bikes__list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: calc(8px + 0.35em);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--ws-blue);
    flex-shrink: 0;
}

.ws-bikes__list li strong {
    color: var(--ws-dark);
    display: block;
    font-weight: 600;
    margin-bottom: 1px;
    font-size: 13px;
}

@media (max-width: 540px) {
    .ws-bikes__list li {
        font-size: 13px;
    }
}

.ws-bikes__cta {
    grid-column: 1 / -1;
    padding-top: 8px;
}

.ws-bikes__book-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--ws-blue);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    border-bottom: 2px solid var(--ws-blue);
    padding-bottom: 2px;
    transition: opacity 0.2s;
}

.ws-bikes__book-link:hover {
    opacity: 0.7;
    border-bottom: 2px solid var(--ws-blue);
}


/* ============================================================
   BOOKING CTA
   ============================================================ */
.ws-booking {
    background-color: var(--ws-dark);
    background-image: url('/SiteSpecific/CustomContent/pages/workshop/images/placeholder.jpg');
    background-size: cover;
    background-position: center;
    padding: 88px 24px;
    text-align: center;
    position: relative;
}

.ws-booking::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(21, 21, 21, 0.84);
    pointer-events: none;
}

.ws-booking__inner {
    max-width: 640px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.ws-booking__title {
    font-family: var(--ws-font-display);
    font-weight: 800;
    font-size: clamp(40px, 7vw, 68px);
    color: var(--ws-white);
    line-height: 1.0;
    margin: 0 0 20px;
}

.ws-booking__body {
    font-size: 16px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.65);
    margin: 0 0 40px;
}

.ws-booking__btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--ws-white);
    color: var(--ws-blue);
    font-family: var(--ws-font-display);
    font-weight: 700;
    font-size: 18px;
    padding: 17px 38px;
    border-radius: var(--ws-radius);
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.ws-booking__btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 40px rgba(255, 255, 255, 0.12);
}

.ws-booking__btn svg {
    flex-shrink: 0;
    transition: transform 0.2s;
}

.ws-booking__btn:hover svg {
    transform: translateX(4px);
}

.ws-booking__note {
    margin: 22px 0 0;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 0.3px;
}


/* ============================================================
   FAQs
   ============================================================ */

.ws-faqs {
    background: var(--ws-bg-alt);
}

.ws-faqs__header {
    text-align: center;
    margin-bottom: 48px;
}

.ws-faqs__list {
    max-width: 780px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ws-faq {
    background: var(--ws-white);
    border-radius: var(--ws-radius);
    border: 1px solid rgba(6, 5, 171, 0.1);
    overflow: hidden;
}

.ws-faq__question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    font-family: var(--ws-font-display);
    font-size: 16px;
    color: var(--ws-dark);
    cursor: pointer;
    list-style: none;
    user-select: none;
    transition: background 0.2s;
}

.ws-faq__question::-webkit-details-marker {
    display: none;
}

.ws-faq__question::after {
    content: '';
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    background: var(--ws-blue);
    border-radius: 50%;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 7.5L10 12.5L15 7.5' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 7.5L10 12.5L15 7.5' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E");
    -webkit-mask-size: cover;
    mask-size: cover;
    transition: transform 0.25s ease;
}

.ws-faq[open] > .ws-faq__question::after {
    transform: rotate(180deg);
}

.ws-faq[open] > .ws-faq__question {
    background: var(--ws-bg);
}

.ws-faq__answer {
    padding: 0 24px 20px;
    border-top: 1px solid rgba(6, 5, 171, 0.08);
}

.ws-faq__answer p {
    margin: 16px 0 0;
    font-size: 15px;
    line-height: 1.6;
    color: #444;
}
