/* =============================================================================
   OH Blocks — Frontend Stylesheet
   JACB Services — v1.0.0
   ============================================================================= */

/* =============================================================================
   HERO BANNER
   ============================================================================= */

:root {
    --oh-hero-bg:          #7d8570;
    --oh-hero-accent:      #2d4a3e;
    --oh-hero-text:        #f0ece0;
    --oh-hero-text-muted:  rgba(240,236,224,0.82);
    --oh-hero-border-top:  #a8b49a;
    --oh-hero-btn-bg:      #2d4a3e;
    --oh-hero-btn-color:   #f0ece0;
    --oh-hero-btn-hover:   #1a2e25;
    --oh-hero-btn2-bg:     transparent;
    --oh-hero-btn2-color:  #f0ece0;
    --oh-hero-btn2-hover:  rgba(240,236,224,0.12);
    --oh-hero-max-width:   1300px;
    --oh-hero-radius:      6px;
}

.oh-hero-wrapper {
    width: 100%;
    background-color: var(--oh-hero-bg);
    border-top: 4px solid var(--oh-hero-border-top);
    margin-bottom: 2.5rem;
    box-sizing: border-box;
}

.oh-hero--full-width {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.oh-hero--header-offset {
    padding-top: var(--gp-header-height, 80px);
}

.oh-hero-inner {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    max-width: var(--oh-hero-max-width);
    margin: 0 auto;
    padding: 3rem 1.5rem 4rem;
    gap: 3rem;
    box-sizing: border-box;
}

.oh-hero-content {
    flex: 1 1 65%;
    max-width: 65%;
}

.oh-hero-breadcrumbs {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    font-size: 0.875rem;
    color: rgba(240,236,224,0.7);
}

.oh-hero-breadcrumbs li { display: flex; align-items: center; }
.oh-hero-breadcrumbs a { color: var(--oh-hero-text); text-decoration: underline; text-underline-offset: 2px; font-weight: 500; }
.oh-hero-breadcrumbs span[aria-hidden] { margin: 0 0.5rem; opacity: 0.5; }

.oh-hero-headline {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--oh-hero-text);
    margin: 0 0 1rem;
}

.oh-hero-lead {
    font-size: 1.125rem;
    line-height: 1.65;
    color: var(--oh-hero-text-muted);
    margin: 0 0 0.75rem;
}

.oh-hero-action {
    margin-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.oh-hero-btn {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--oh-hero-radius);
    text-decoration: none;
    transition: background-color 0.2s, border-color 0.2s, transform 0.15s;
    border: 2px solid transparent;
    cursor: pointer;
}

.oh-hero-btn--primary {
    background-color: var(--oh-hero-btn-bg);
    color: var(--oh-hero-btn-color);
    border-color: var(--oh-hero-btn-bg);
}

.oh-hero-btn--primary:hover {
    background-color: var(--oh-hero-btn-hover);
    border-color: var(--oh-hero-btn-hover);
    color: var(--oh-hero-btn-color);
    transform: translateY(-1px);
}

.oh-hero-btn--secondary.oh-hero-btn--2 {
    background-color: var(--oh-hero-btn2-bg);
    color: var(--oh-hero-btn2-color);
    border-color: rgba(240,236,224,0.4);
}

.oh-hero-btn--secondary.oh-hero-btn--2:hover {
    background-color: var(--oh-hero-btn2-hover);
    color: var(--oh-hero-btn2-color);
    transform: translateY(-1px);
}

.oh-hero-btn--secondary:not(.oh-hero-btn--2) {
    background-color: transparent;
    color: var(--oh-hero-text);
    border-color: rgba(240,236,224,0.4);
}

.oh-hero-btn--secondary:not(.oh-hero-btn--2):hover {
    background-color: rgba(240,236,224,0.12);
    transform: translateY(-1px);
}

.oh-hero-image-col {
    flex: 0 1 320px;
    max-width: 32%;
    margin-left: auto;
}

.oh-hero-image-col a { display: block; cursor: zoom-in; }

.oh-hero-image-col img {
    width: 100%;
    height: auto;
    max-height: 320px;
    object-fit: cover;
    border-radius: var(--oh-hero-radius);
    box-shadow: 0 12px 28px rgba(0,0,0,0.15);
    transition: transform 0.2s;
    display: block;
}

.oh-hero-image-col a:hover img { transform: scale(1.015); }

.oh-hero-image-caption {
    font-size: 0.82rem;
    color: var(--oh-hero-text-muted);
    font-style: italic;
    margin: 0.6rem 0 0;
    text-align: right;
}

/* Lightbox */
#oh-lightbox-overlay.active {
    display: flex !important;
    animation: ohLightboxIn 0.2s ease-out;
}

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

/* =============================================================================
   PRICING CARD
   ============================================================================= */

.oh-pricing-card {
    max-width: 520px;
    margin: 0 auto;
    border-radius: 12px;
    border: 1px solid #d8d5cc;
    overflow: hidden;
    background: #ffffff;
    font-family: inherit;
}

.oh-pricing-header {
    padding: 2rem 1.5rem;
    text-align: center;
}

.oh-pricing-price {
    font-size: 52px;
    font-weight: 700;
    line-height: 1;
}

.oh-pricing-label {
    font-size: 20px;
    font-weight: 400;
    margin-top: 0.5rem;
    opacity: 0.85;
}

.oh-pricing-rows {
    padding: 0.5rem 1.5rem 0.5rem;
}

.oh-pricing-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0.85rem 0;
    border-bottom: 1px solid #eeece8;
    text-align: center;
}

.oh-pricing-row--last {
    border-bottom: none;
}

.oh-pricing-row__icon {
    display: none;
}

.oh-pricing-row__text {
    font-size: 15px;
    color: #2d2d2d;
    line-height: 1.5;
    list-style: none;
}

.oh-pricing-row__text::before {
    content: '• ';
    color: #5e6458;
    font-size: 1.2em;
}

.oh-pricing-row__text--muted {
    font-size: 14px;
    color: #5a6b5e;
}

.oh-pricing-row__text--muted::before {
    content: '';
}

/* =============================================================================
   ACCORDION
   ============================================================================= */

.oh-accordion-title {
    margin-bottom: 1rem;
    color: #1a2e25;
}

.oh-accordion {
    --oh-accordion-accent:          #f0ece0;
    --oh-accordion-bg:              #2d4a3e;
    --oh-accordion-hover-bg:        #3a5c4e;
    --oh-accordion-open-bg:         #ffffff;
    --oh-accordion-title-colour:    #f0ece0;
    --oh-accordion-content-colour:  #1a2e25;
    --oh-accordion-border-colour:   #1a2e25;
    --oh-accordion-row-padding:     1.1rem;
    --oh-accordion-content-pad:     1.25rem;
    border-top: 1px solid var(--oh-accordion-border-colour);
    font-family: inherit;
}

.oh-accordion__item {
    border-bottom: 1px solid var(--oh-accordion-border-colour);
    background: var(--oh-accordion-bg);
    transition: background 0.15s;
}

.oh-accordion__item:hover {
    background: var(--oh-accordion-hover-bg);
}

.oh-accordion__item--open {
    background: var(--oh-accordion-open-bg);
}

.oh-accordion__btn {
    all: unset;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: var(--oh-accordion-row-padding) 0.75rem;
    cursor: pointer;
    box-sizing: border-box;
    gap: 1rem;
    background-color: var(--oh-accordion-bg) !important;
    color: var(--oh-accordion-title-colour) !important;
    transition: background-color 0.15s ease !important;
}

.oh-accordion__title {
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--oh-accordion-title-colour) !important;
    line-height: 1.4;
    transition: color 0.15s;
    text-decoration: none !important;
}

.oh-accordion__btn:hover {
    background-color: var(--oh-accordion-hover-bg) !important;
    color: var(--oh-accordion-title-colour) !important;
}

.oh-accordion__btn:hover .oh-accordion__title {
    color: var(--oh-accordion-accent) !important;
}

.oh-accordion__btn:focus,
.oh-accordion__btn:focus-visible,
.oh-accordion__btn:active {
    background-color: var(--oh-accordion-bg) !important;
    color: var(--oh-accordion-title-colour) !important;
    outline: none !important;
}

.oh-accordion__btn:focus .oh-accordion__title,
.oh-accordion__btn:focus-visible .oh-accordion__title,
.oh-accordion__btn:active .oh-accordion__title {
    color: var(--oh-accordion-title-colour) !important;
}

.oh-accordion__icon {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    position: relative;
    color: var(--oh-accordion-accent);
}

.oh-accordion__icon::before,
.oh-accordion__icon::after {
    content: '';
    position: absolute;
    background: currentColor;
    transition: transform 0.2s ease, opacity 0.2s ease;
    border-radius: 2px;
}

.oh-accordion__icon::before { width: 14px; height: 2px; top: 10px; left: 4px; }
.oh-accordion__icon::after  { width: 2px; height: 14px; top: 4px; left: 10px; }

.oh-accordion__item--open .oh-accordion__icon::after {
    transform: rotate(90deg);
    opacity: 0;
}

.oh-accordion__item--open .oh-accordion__btn {
    background-color: var(--oh-accordion-open-bg) !important;
    color: var(--oh-accordion-title-colour) !important;
    border-left: 3px solid var(--oh-accordion-accent);
    padding-left: 0.5rem;
}

.oh-accordion__body {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.28s ease;
}

.oh-accordion__item--open .oh-accordion__body {
    max-height: 2000px;
}

.oh-accordion__content {
    padding: 0 0.75rem var(--oh-accordion-content-pad);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--oh-accordion-content-colour);
}

.oh-accordion__content p { margin-bottom: 0.75rem; }
.oh-accordion__content p:last-child { margin-bottom: 0; }
.oh-accordion__content a { color: var(--oh-accordion-accent); text-decoration: underline; text-underline-offset: 2px; }
.oh-accordion__content ul, .oh-accordion__content ol { padding-left: 1.5rem; margin-bottom: 0.75rem; }

/* =============================================================================
   RESPONSIVE
   ============================================================================= */

@media (max-width: 768px) {
    .oh-hero-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 2rem;
        padding: 2rem 1.25rem 3rem;
    }

    .oh-hero-content,
    .oh-hero-image-col {
        max-width: 100%;
        flex: 1 1 100%;
        margin-left: 0;
    }

    .oh-hero-headline { font-size: 2rem; }
    .oh-hero-image-col img { max-height: 280px; }
    .oh-hero-image-caption { text-align: left; }
}
