/**
 * Professional page layouts – Portfolio & Booking
 * Brand: deep blue + orange
 */

/* ========== Portfolio ========== */
.page-portfolio {
    background: #f5f7fb;
}

.pf-hero {
    position: relative;
    padding: 7.5rem 1.5rem 4rem;
    background: var(--brand-hero-bg, #003366);
    color: #fff;
    overflow: hidden;
}

.pf-hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 60% at 85% 20%, rgba(242, 101, 34, 0.28), transparent 55%),
        radial-gradient(ellipse 50% 50% at 10% 80%, rgba(0, 86, 179, 0.35), transparent 50%);
    pointer-events: none;
}

.pf-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 720px;
}

.pf-eyebrow,
.bk-eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--brand-secondary, #f26522);
    margin-bottom: 0.75rem;
}

.pf-hero-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
    font-weight: 700;
    line-height: 1.15;
    color: #ffffff !important;
    margin: 0 0 1rem;
    letter-spacing: -0.02em;
    visibility: visible !important;
    opacity: 1 !important;
}

.pf-hero-lead {
    font-size: 1.1rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.88);
    margin: 0 0 1.5rem;
    max-width: 36rem;
}

.pf-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.pf-meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.95);
}

.pf-meta-pill strong {
    color: #fff;
    font-weight: 700;
}

.pf-gallery {
    padding-top: 3rem;
    padding-bottom: 4rem;
    background: #f5f7fb;
}

.pf-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding: 1rem 1.15rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.pf-search {
    position: relative;
    flex: 1;
    min-width: 220px;
    max-width: 340px;
}

.pf-search-icon {
    position: absolute;
    left: 0.9rem;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--brand-primary, #004080);
    opacity: 0.75;
    pointer-events: none;
}

.pf-search-input.portfolio-search-input {
    max-width: none;
    width: 100%;
    padding-left: 2.6rem;
    background-image: none;
    border-radius: 10px;
    border-color: #dbe3ef;
}

.pf-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.pf-chip.portfolio-filter-btn {
    border-radius: 999px;
    border-color: #dbe3ef;
    background: #f8fafc;
    color: #334155;
    font-weight: 600;
    font-size: 0.85rem;
}

.pf-chip.portfolio-filter-btn:hover {
    color: var(--brand-primary, #004080);
    border-color: var(--brand-primary, #004080);
    background: #fff;
}

.pf-chip.portfolio-filter-btn.active {
    background: var(--brand-primary, #004080);
    border-color: var(--brand-primary, #004080);
    color: #fff;
}

.pf-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.pf-card {
    background: #fff;
    border: 1px solid #e8eef5;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pf-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(0, 64, 128, 0.12);
}

.pf-card-media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #e2e8f0;
}

.pf-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.pf-card:hover .pf-card-media img {
    transform: scale(1.05);
}

.pf-card-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, rgba(0, 51, 102, 0.1), rgba(0, 51, 102, 0.72));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pf-card-overlay span {
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.65rem 1.1rem;
    border-radius: 999px;
    background: var(--brand-secondary, #f26522);
}

.pf-card:hover .pf-card-overlay {
    opacity: 1;
}

.pf-card-body {
    padding: 1.25rem 1.35rem 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.pf-card-cat {
    display: inline-block;
    align-self: flex-start;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--brand-secondary, #f26522);
    margin-bottom: 0.55rem;
}

.pf-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 0.55rem;
    color: var(--brand-primary, #004080) !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.pf-card-title a {
    color: inherit;
    text-decoration: none;
}

.pf-card-title a:hover {
    color: var(--brand-secondary, #f26522);
}

.pf-card-desc {
    font-size: 0.92rem;
    line-height: 1.6;
    color: #64748b;
    margin: 0 0 1.1rem;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pf-card-cta {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--brand-primary, #004080);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.pf-card-cta:hover {
    color: var(--brand-secondary, #f26522);
}

.pf-empty {
    text-align: center;
    padding: 2.5rem 1rem;
    color: #64748b;
}

.pf-cta {
    padding: 3.5rem 1.5rem;
    background: linear-gradient(135deg, #003366 0%, #004080 55%, #0056b3 100%);
    color: #fff;
}

.pf-cta-inner {
    text-align: center;
    max-width: 560px;
    margin: 0 auto;
}

.pf-cta-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: #fff !important;
    margin: 0 0 0.65rem;
    visibility: visible !important;
}

.pf-cta-text {
    color: rgba(255, 255, 255, 0.88);
    margin: 0 0 1.5rem;
}

.pf-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.pf-cta .btn-primary {
    background: var(--brand-secondary, #f26522) !important;
    border: none;
    color: #fff !important;
}

.pf-cta .btn-outline {
    border-color: rgba(255, 255, 255, 0.55) !important;
    color: #fff !important;
    background: transparent !important;
}

.pf-cta .btn-outline:hover {
    background: rgba(255, 255, 255, 0.12) !important;
}

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

@media (max-width: 640px) {
    .pf-hero { padding: 6.5rem 1rem 3rem; }
    .pf-grid { grid-template-columns: 1fr; }
    .pf-toolbar { padding: 1rem; }
}

/* ========== Booking ========== */
.page-booking {
    background: #f4f7fb;
}

.bk-hero {
    padding: 7rem 1.5rem 2.75rem;
    background: var(--brand-hero-bg, #003366);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.bk-hero::after {
    content: '';
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: rgba(242, 101, 34, 0.2);
    top: -80px;
    right: -60px;
    pointer-events: none;
}

.bk-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 640px;
}

.bk-hero-title {
    font-size: clamp(1.9rem, 4vw, 2.6rem);
    font-weight: 700;
    color: #ffffff !important;
    margin: 0 0 0.75rem;
    letter-spacing: -0.02em;
    visibility: visible !important;
    opacity: 1 !important;
}

.bk-hero-lead {
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.05rem;
    line-height: 1.6;
}

.bk-main.section {
    padding: 2.5rem 1rem 4rem !important;
    background: #f4f7fb !important;
}

.bk-layout {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 1.75rem;
    align-items: start;
    max-width: 980px;
    margin: 0 auto;
}

.bk-aside {
    position: sticky;
    top: 5.5rem;
}

.bk-steps {
    list-style: none;
    margin: 0 0 1.25rem;
    padding: 1.25rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.bk-step {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0;
    color: #94a3b8;
    font-weight: 600;
    font-size: 0.92rem;
}

.bk-step + .bk-step {
    border-top: 1px solid #f1f5f9;
}

.bk-step-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #eef2f7;
    color: #64748b;
    font-size: 0.85rem;
    font-weight: 700;
    flex-shrink: 0;
}

.bk-step.is-active {
    color: var(--brand-primary, #004080);
}

.bk-step.is-active .bk-step-num {
    background: var(--brand-primary, #004080);
    color: #fff;
}

.bk-step.is-done {
    color: #0f172a;
}

.bk-step.is-done .bk-step-num {
    background: var(--brand-secondary, #f26522);
    color: #fff;
}

.bk-step-label {
    visibility: visible !important;
    opacity: 1 !important;
}

.bk-aside-note {
    padding: 1rem 1.15rem;
    border-radius: 14px;
    background: rgba(0, 64, 128, 0.06);
    border: 1px solid rgba(0, 64, 128, 0.1);
    font-size: 0.88rem;
    color: #475569;
}

.bk-aside-note strong {
    display: block;
    color: var(--brand-primary, #004080);
    margin-bottom: 0.25rem;
}

.bk-aside-note a {
    color: var(--brand-secondary, #f26522);
    font-weight: 600;
}

.bk-panel.booking-container {
    max-width: none;
    margin: 0;
}

.bk-card.booking-card {
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 12px 36px rgba(15, 23, 42, 0.06);
}

.bk-card .booking-card-title {
    color: var(--brand-primary, #004080) !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.page-booking .booking-step.active,
.page-booking .btn-booking:not(.secondary) {
    background: var(--brand-secondary, #f26522) !important;
    box-shadow: 0 4px 14px rgba(242, 101, 34, 0.35) !important;
}

.page-booking .booking-step.done {
    background: var(--brand-primary, #004080) !important;
}

.page-booking .booking-slot.selected {
    border-color: var(--brand-secondary, #f26522);
    color: var(--brand-primary, #004080);
    background: rgba(242, 101, 34, 0.08);
}

.page-booking .booking-slot {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    align-items: center;
}

.bk-slot-time {
    font-weight: 700;
    color: inherit;
}

.bk-slot-date {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 500;
}

.bk-empty-slots {
    margin-top: 1rem;
    color: #64748b;
}

.bk-summary.booking-summary {
    display: grid;
    gap: 0.65rem;
    background: linear-gradient(135deg, rgba(0, 64, 128, 0.06), rgba(242, 101, 34, 0.08));
    border: 1px solid rgba(0, 64, 128, 0.12);
}

.bk-summary-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.92rem;
}

.bk-summary-row span {
    color: #64748b;
}

.bk-summary-row strong {
    color: var(--brand-primary, #004080);
    text-align: right;
}

.bk-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 1rem;
}

.bk-form-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.bk-form-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    margin: 0 0 1rem;
    font-size: 0.9rem;
}

/* Calendar schedule step */
.bk-cal-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 1.5rem;
    margin: 0.5rem 0 1.25rem;
}

.bk-calendar {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 1.1rem 1.15rem 1.25rem;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.bk-cal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.bk-cal-month {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--brand-primary, #004080);
    letter-spacing: -0.01em;
}

.bk-cal-nav {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: var(--brand-primary, #004080);
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.bk-cal-nav:hover:not(:disabled) {
    background: rgba(0, 64, 128, 0.08);
    border-color: rgba(0, 64, 128, 0.25);
}

.bk-cal-nav:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.bk-cal-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.25rem;
    margin-bottom: 0.35rem;
    text-align: center;
    font-size: 0.72rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.bk-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.3rem;
}

.bk-cal-day {
    aspect-ratio: 1;
    min-height: 40px;
    border: 1px solid transparent;
    border-radius: 12px;
    background: transparent;
    color: #0f172a;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: default;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.12s ease;
}

.bk-cal-day.is-empty {
    visibility: hidden;
    pointer-events: none;
}

.bk-cal-day.is-past,
.bk-cal-day.is-unavailable {
    color: #cbd5e1;
    cursor: not-allowed;
}

.bk-cal-day.is-available {
    background: rgba(0, 64, 128, 0.06);
    border-color: rgba(0, 64, 128, 0.08);
    color: var(--brand-primary, #004080);
    cursor: pointer;
}

.bk-cal-day.is-available:hover {
    background: rgba(0, 64, 128, 0.12);
    transform: translateY(-1px);
}

.bk-cal-day.is-today:not(.is-selected) {
    box-shadow: inset 0 0 0 1.5px var(--brand-secondary, #f26522);
}

.bk-cal-day.is-selected {
    background: var(--brand-secondary, #f26522) !important;
    border-color: var(--brand-secondary, #f26522) !important;
    color: #fff !important;
    box-shadow: 0 6px 16px rgba(242, 101, 34, 0.35);
}

.bk-cal-times {
    background: linear-gradient(180deg, #f8fafc 0%, #fff 40%);
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 1.15rem 1.2rem 1.35rem;
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.bk-cal-times-title {
    margin: 0 0 0.35rem;
    font-size: 1rem;
    font-weight: 700;
    color: var(--brand-primary, #004080);
}

.bk-cal-times-hint {
    margin: 0 0 1rem;
    color: #64748b;
    font-size: 0.88rem;
}

.bk-time-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
    gap: 0.55rem;
    flex: 1;
    align-content: start;
}

.bk-time-chip {
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #0f172a;
    border-radius: 10px;
    padding: 0.65rem 0.5rem;
    font-size: 0.88rem;
    font-weight: 650;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.bk-time-chip:hover {
    border-color: rgba(0, 64, 128, 0.35);
    color: var(--brand-primary, #004080);
}

.bk-time-chip.is-selected {
    background: var(--brand-primary, #004080);
    border-color: var(--brand-primary, #004080);
    color: #fff;
    box-shadow: 0 6px 16px rgba(0, 64, 128, 0.28);
}

.bk-cal-selection {
    margin-top: 1.15rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.bk-cal-selection-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
}

.bk-cal-selection strong {
    color: var(--brand-primary, #004080);
    font-size: 0.95rem;
}

/* Confirm step */
.bk-confirm {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 0.5rem 0 1.5rem;
}

.bk-confirm-block {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 1.15rem 1.2rem;
}

.bk-confirm-block h3 {
    margin: 0 0 0.85rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
}

.bk-confirm-dl {
    margin: 0;
    display: grid;
    gap: 0.7rem;
}

.bk-confirm-dl > div {
    display: grid;
    grid-template-columns: 88px 1fr;
    gap: 0.5rem;
    align-items: start;
}

.bk-confirm-dl dt {
    margin: 0;
    color: #94a3b8;
    font-size: 0.82rem;
    font-weight: 600;
}

.bk-confirm-dl dd {
    margin: 0;
    color: #0f172a;
    font-weight: 650;
    font-size: 0.92rem;
    word-break: break-word;
}

.bk-confirm-notes {
    grid-column: 1 / -1;
}

.bk-confirm-notes dd {
    font-weight: 500;
    color: #334155;
    line-height: 1.55;
}

.bk-done {
    text-align: center;
    padding: 3rem 2rem !important;
}

.bk-done h2 {
    color: var(--brand-primary, #004080) !important;
    margin-bottom: 0.75rem;
}

.bk-done p {
    color: #64748b;
    margin-bottom: 1.5rem;
    line-height: 1.65;
}

.bk-done-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    justify-content: center;
}

.page-booking .booking-done-icon {
    background: linear-gradient(135deg, var(--brand-secondary, #f26522), #ff8533) !important;
    box-shadow: 0 8px 24px rgba(242, 101, 34, 0.35) !important;
}

/* ========== Booking success popup ========== */
.bk-done-placeholder {
    text-align: center;
    padding: 2.5rem 1.5rem !important;
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bk-done-placeholder-text {
    margin: 0;
    color: #94a3b8;
    font-size: 0.95rem;
}

.bk-success-modal {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.bk-success-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.bk-success-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    animation: bkBackdropIn 0.4s ease forwards;
}

.bk-success-dialog {
    position: relative;
    z-index: 1;
    width: min(440px, 100%);
    background: #fff;
    border-radius: 20px;
    padding: 2.25rem 1.75rem 1.75rem;
    text-align: center;
    box-shadow: 0 28px 64px rgba(15, 23, 42, 0.28);
    transform: translateY(28px) scale(0.92);
    opacity: 0;
    transition:
        transform 0.55s cubic-bezier(0.16, 1, 0.3, 1),
        opacity 0.4s ease;
}

.bk-success-dialog.is-visible {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.bk-success-icon {
    width: 84px;
    height: 84px;
    margin: 0 auto 1.25rem;
}

.bk-success-check {
    width: 84px;
    height: 84px;
    display: block;
}

.bk-success-circle {
    stroke: var(--brand-secondary, #f26522);
    stroke-width: 2.5;
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    animation: bkCircleDraw 0.7s cubic-bezier(0.65, 0, 0.45, 1) 0.15s forwards;
}

.bk-success-tick {
    stroke: var(--brand-secondary, #f26522);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: bkTickDraw 0.45s cubic-bezier(0.65, 0, 0.45, 1) 0.65s forwards;
}

.bk-success-title {
    margin: 0 0 0.75rem;
    font-size: 1.55rem;
    font-weight: 700;
    color: var(--brand-primary, #004080) !important;
    letter-spacing: -0.02em;
    animation: bkFadeUp 0.45s ease 0.35s both;
}

.bk-success-text {
    margin: 0 0 1.5rem;
    color: #64748b;
    line-height: 1.65;
    font-size: 0.98rem;
    animation: bkFadeUp 0.45s ease 0.45s both;
}

.bk-success-text strong {
    color: #1e293b;
}

.bk-success-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    justify-content: center;
    animation: bkFadeUp 0.45s ease 0.55s both;
}

@keyframes bkBackdropIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes bkCircleDraw {
    to { stroke-dashoffset: 0; }
}

@keyframes bkTickDraw {
    to { stroke-dashoffset: 0; }
}

@keyframes bkFadeUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 560px) {
    .bk-success-dialog {
        padding: 2rem 1.25rem 1.5rem;
        border-radius: 16px;
    }
    .bk-success-actions {
        flex-direction: column;
    }
    .bk-success-actions .btn-booking {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .bk-success-modal,
    .bk-success-dialog,
    .bk-success-circle,
    .bk-success-tick,
    .bk-success-title,
    .bk-success-text,
    .bk-success-actions,
    .bk-success-backdrop {
        animation: none !important;
        transition: none !important;
    }
    .bk-success-dialog {
        opacity: 1;
        transform: none;
    }
    .bk-success-circle,
    .bk-success-tick {
        stroke-dashoffset: 0;
    }
}

@media (max-width: 960px) {
    .bk-cal-layout,
    .bk-confirm,
    .bk-form-grid-3 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 860px) {
    .bk-layout {
        grid-template-columns: 1fr;
    }
    .bk-aside {
        position: static;
    }
    .bk-steps {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        gap: 0.35rem;
        padding: 0.85rem;
    }
    .bk-step {
        flex-direction: column;
        text-align: center;
        padding: 0.4rem 0.2rem;
        border-top: none !important;
        gap: 0.4rem;
        font-size: 0.72rem;
    }
    .bk-aside-note { display: none; }
}

@media (max-width: 560px) {
    .bk-form-grid { grid-template-columns: 1fr; }
    .bk-steps { grid-template-columns: repeat(3, 1fr); }
    .bk-hero { padding: 6.25rem 1rem 2.25rem; }
    .bk-cal-day { min-height: 36px; font-size: 0.82rem; }
}

/* ========== Testimonials (homepage) ========== */
.ts-section {
    padding: 5rem 1.5rem !important;
    background: #f5f7fb !important;
}

.ts-header {
    text-align: center;
    max-width: 560px;
    margin: 0 auto 2.75rem;
}

.ts-eyebrow {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--brand-secondary, #f26522) !important;
    margin: 0 0 0.65rem;
    visibility: visible !important;
    opacity: 1 !important;
}

.ts-title {
    font-size: clamp(1.85rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--brand-primary, #004080) !important;
    margin: 0 0 0.75rem;
    letter-spacing: -0.02em;
    visibility: visible !important;
    opacity: 1 !important;
    -webkit-text-fill-color: unset !important;
    background: none !important;
}

.ts-subtitle {
    margin: 0;
    color: #64748b !important;
    font-size: 1.05rem;
    line-height: 1.6;
    visibility: visible !important;
    opacity: 1 !important;
}

.ts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

/* Continuous right → left marquee */
.ts-marquee-wrap {
    overflow: hidden;
    width: 100%;
    margin-top: 0.5rem;
    mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}

.ts-marquee {
    display: flex;
    width: max-content;
    gap: 1.5rem;
    animation: tsMarqueeRtl 40s linear infinite;
    will-change: transform;
}

.ts-marquee:hover {
    animation-play-state: paused;
}

.ts-marquee .ts-card {
    flex: 0 0 min(380px, 85vw);
    width: min(380px, 85vw);
    max-width: 380px;
}

@keyframes tsMarqueeRtl {
    from { transform: translate3d(0, 0, 0); }
    to { transform: translate3d(-50%, 0, 0); }
}

@media (prefers-reduced-motion: reduce) {
    .ts-marquee-wrap {
        mask-image: none;
        -webkit-mask-image: none;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .ts-marquee {
        animation: none;
        padding: 0 1.25rem;
    }
}

.ts-card {
    background: #fff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 18px;
    padding: 1.75rem 1.5rem 1.6rem;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
    display: flex;
    flex-direction: column;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}

.ts-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 44px rgba(0, 64, 128, 0.12);
    border-color: rgba(242, 101, 34, 0.4) !important;
}

.ts-quote-mark {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(242, 101, 34, 0.12);
    color: var(--brand-secondary, #f26522) !important;
    margin-bottom: 1rem;
    visibility: visible !important;
    opacity: 1 !important;
}

.ts-quote-mark svg {
    display: block;
    fill: currentColor;
}

.ts-text {
    font-size: 0.98rem;
    line-height: 1.7;
    color: #475569 !important;
    margin: 0 0 1.5rem;
    flex: 1;
    visibility: visible !important;
    opacity: 1 !important;
}

.ts-author {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding-top: 1rem;
    border-top: 1px solid #f1f5f9;
}

.ts-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid var(--brand-secondary, #f26522);
}

.ts-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ts-name {
    font-weight: 700;
    color: var(--brand-primary, #004080) !important;
    margin: 0 0 0.15rem;
    font-size: 0.95rem;
    visibility: visible !important;
    opacity: 1 !important;
}

.ts-role {
    margin: 0;
    font-size: 0.82rem;
    color: #64748b !important;
    visibility: visible !important;
    opacity: 1 !important;
}

@media (max-width: 960px) {
    .ts-grid { grid-template-columns: 1fr 1fr; }
    .ts-marquee { animation-duration: 32s; }
}

@media (max-width: 640px) {
    .ts-grid { grid-template-columns: 1fr; }
    .ts-section { padding: 3.5rem 1rem !important; }
    .ts-marquee {
        gap: 1rem;
        animation-duration: 28s;
    }
    .ts-marquee .ts-card {
        flex-basis: min(300px, 82vw);
        width: min(300px, 82vw);
    }
}

/* ========== Project detail page ========== */
.pd-page {
    background: #f5f7fb;
}

.pd-hero {
    position: relative;
    min-height: 48vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    padding: 7rem 1.5rem 3.5rem;
}

.pd-hero--clickable {
    cursor: zoom-in;
}

.pd-hero--clickable:focus-visible {
    outline: 3px solid var(--brand-secondary, #f26522);
    outline-offset: -3px;
}

.pd-hero-view-photos {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: 1.25rem;
    padding: 0.55rem 0.95rem;
    border-radius: 999px;
    background: rgba(242, 101, 34, 0.95);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: 0 8px 24px rgba(242, 101, 34, 0.35);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pd-hero--clickable:hover .pd-hero-view-photos {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(242, 101, 34, 0.45);
}

.pd-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 51, 102, 0.35) 0%, rgba(0, 34, 68, 0.88) 100%);
}

.pd-hero-inner {
    position: relative;
    z-index: 1;
    color: #fff;
    max-width: 760px;
}

.pd-back {
    display: inline-block;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.pd-back:hover { color: #fff; }

.pd-label {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--brand-secondary, #f26522);
    margin: 0 0 0.75rem;
}

.pd-hero-title {
    font-size: clamp(2rem, 5vw, 3.1rem);
    font-weight: 700;
    color: #ffffff !important;
    margin: 0 0 0.85rem;
    line-height: 1.15;
    visibility: visible !important;
    opacity: 1 !important;
}

.pd-hero-lead {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.9);
    max-width: 40rem;
}

.pd-content.section {
    padding-top: 3rem;
    padding-bottom: 4rem;
    background: #f5f7fb !important;
}

.pd-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 2rem;
    align-items: start;
}

.pd-main {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 2rem 2rem 2.25rem;
    box-shadow: 0 12px 36px rgba(15, 23, 42, 0.05);
}

.pd-header {
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--brand-primary, #004080) !important;
    margin: 0 0 1.25rem;
    visibility: visible !important;
}

.pd-body,
.pd-body.prose {
    font-size: 1.05rem;
    line-height: 1.85;
    color: #475569 !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.pd-body p { margin: 0 0 1.15rem; }
.pd-body h3 { color: var(--brand-primary, #004080); margin: 1.5rem 0 0.75rem; }
.pd-body ul, .pd-body ol { margin: 0 0 1.15rem 1.2rem; }
.pd-body img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 1rem 0;
}

.pd-gallery { margin-top: 2.25rem; }

.pd-gallery-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--brand-primary, #004080) !important;
    margin: 0 0 0.35rem;
}

.pd-gallery-hint {
    margin: 0 0 1rem;
    font-size: 0.9rem;
    color: #64748b;
}

.pd-gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.pd-gallery-item {
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 14px;
    overflow: hidden;
    background: #e2e8f0;
    aspect-ratio: 4 / 3;
    cursor: zoom-in;
    display: block;
    width: 100%;
    position: relative;
}

.pd-gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 51, 102, 0);
    transition: background 0.3s ease;
}

.pd-gallery-item:hover::after {
    background: rgba(0, 51, 102, 0.18);
}

.pd-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease;
}

.pd-gallery-item:hover img { transform: scale(1.04); }

/* Lightbox viewer */
body.pd-lightbox-open {
    overflow: hidden;
}

.pd-lightbox {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pd-lightbox[hidden] {
    display: none !important;
}

.pd-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 16, 28, 0.92);
    backdrop-filter: blur(6px);
}

.pd-lightbox-stage {
    position: relative;
    z-index: 1;
    max-width: min(1100px, 92vw);
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.pd-lightbox-img {
    max-width: 100%;
    max-height: 78vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
    transition: opacity 0.25s ease;
    background: #111;
}

.pd-lightbox-counter {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.pd-lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 2;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.25s ease;
}

.pd-lightbox-close:hover {
    background: var(--brand-secondary, #f26522);
    transform: scale(1.05);
}

.pd-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.25s ease, transform 0.25s ease;
}

.pd-lightbox-nav:hover {
    background: var(--brand-secondary, #f26522);
    transform: translateY(-50%) scale(1.06);
}

.pd-lightbox-prev { left: 1rem; }
.pd-lightbox-next { right: 1rem; }

@media (max-width: 640px) {
    .pd-lightbox-nav {
        width: 40px;
        height: 40px;
    }
    .pd-lightbox-prev { left: 0.5rem; }
    .pd-lightbox-next { right: 0.5rem; }
    .pd-lightbox-img { max-height: 70vh; }
}

.pd-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eef2f7;
}

.pd-aside {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: sticky;
    top: 5.5rem;
}

.pd-meta-card,
.pd-nav-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 1.25rem;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.pd-meta-title {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--brand-secondary, #f26522);
    margin: 0 0 1rem;
}

.pd-meta-row {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: 0.9rem;
    padding: 0.55rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.pd-meta-row span { color: #64748b; }
.pd-meta-row strong { color: var(--brand-primary, #004080); text-align: right; }
.pd-meta-row a { color: var(--brand-secondary, #f26522); }

.pd-nav-link {
    display: block;
    text-decoration: none;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.pd-nav-link span {
    display: block;
    font-size: 0.75rem;
    color: #94a3b8;
    margin-bottom: 0.2rem;
}

.pd-nav-link strong {
    color: var(--brand-primary, #004080);
    font-size: 0.95rem;
}

.pd-nav-link:hover strong { color: var(--brand-secondary, #f26522); }
.pd-meta-empty { color: #64748b; font-size: 0.9rem; margin: 0; }

@media (max-width: 900px) {
    .pd-layout { grid-template-columns: 1fr; }
    .pd-aside { position: static; }
    .pd-gallery-grid { grid-template-columns: 1fr; }
}

/* ========== Training & Workshops ========== */
.tw-section {
    background: #ffffff !important;
    padding: 5rem 1.5rem !important;
}

.tw-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 2.75rem;
}

.tw-eyebrow {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--brand-secondary, #f26522) !important;
    margin: 0 0 0.65rem;
}

.tw-title {
    font-size: clamp(1.85rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--brand-primary, #004080) !important;
    margin: 0 0 0.75rem;
    visibility: visible !important;
    opacity: 1 !important;
}

.tw-intro {
    margin: 0;
    color: #64748b;
    font-size: 1.05rem;
    line-height: 1.65;
}

.tw-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.tw-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}

.tw-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 44px rgba(0, 64, 128, 0.12);
    border-color: rgba(242, 101, 34, 0.35);
}

.tw-card-link {
    display: flex;
    flex-direction: column;
    flex: 1;
    color: inherit;
    text-decoration: none;
    min-height: 100%;
}

.tw-card-media {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #e2e8f0;
}

.tw-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.tw-card:hover .tw-card-media img { transform: scale(1.05); }

.tw-card-body {
    padding: 1.25rem 1.35rem 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.tw-card-label {
    display: inline-block;
    align-self: flex-start;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--brand-secondary, #f26522);
    margin-bottom: 0.5rem;
}

.tw-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--brand-primary, #004080) !important;
    margin: 0 0 0.55rem;
    visibility: visible !important;
}

.tw-card-desc {
    font-size: 0.92rem;
    line-height: 1.6;
    color: #64748b;
    margin: 0 0 1rem;
    flex: 1;
}

.tw-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.tw-card-meta span {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--brand-primary, #004080);
    background: rgba(0, 64, 128, 0.08);
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
}

.tw-card-more {
    margin-top: 0.9rem;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--brand-secondary, #f26522);
}

.tw-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 2.5rem;
}

@media (max-width: 960px) {
    .tw-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
    .tw-grid { grid-template-columns: 1fr; }
    .tw-section { padding: 3.5rem 1rem !important; }
}

@media (max-width: 420px) {
    .bk-steps {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .bk-step {
        font-size: 0.65rem;
        line-height: 1.2;
        min-width: 0;
        overflow-wrap: anywhere;
    }
    .bk-cal-day {
        min-height: 32px;
        border-radius: 8px;
        font-size: 0.75rem;
    }
    .ct-submit {
        width: 100%;
        max-width: none;
    }
    .cv-frame iframe {
        height: 65vh;
        min-height: 320px;
    }
}
